import { ComponentInterface } from '../../stencil-public-runtime'; import { DateSplitItem, IBzResourceNode } from '../../interface'; export declare class IBzResourceAllocationView implements ComponentInterface { el: HTMLDivElement; canvas: HTMLCanvasElement; ctx: CanvasRenderingContext2D; height: number; width: number; /** * 日历内容区,Y轴滚动高度 * * @author chitanda * @date 2021-03-13 18:03:05 * @type {number} */ offsetScrollY: number; watchOffsetScrollY(): void; /** * 容器的高 * * @author chitanda * @date 2021-03-13 14:03:40 * @type {number} */ canvasHeight: number; watchCanvasHeight(): void; /** * 容器宽 * * @author chitanda * @date 2021-03-13 17:03:00 * @type {number} */ canvasWidth: number; watchCanvasWidth(): void; /** * 标题 * * @author chitanda * @date 2021-03-13 17:03:59 * @type {string} */ viewTitle: string; watchViewTitle(): void; /** * 行高 * * @author chitanda * @date 2021-03-13 14:03:47 * @type {number} */ lineHeight: number; watchLineHeight(): void; /** * 行宽 * * @author chitanda * @date 2021-03-13 14:03:08 * @type {number} */ lineWidth: number; watchLineWidth(): void; /** * 显示资源 * * @author chitanda * @date 2021-03-13 14:03:52 * @type {IBzResourceNode[]} */ resources: IBzResourceNode[]; watchResources(): void; /** * 小时分割 * * @author chitanda * @date 2021-03-13 14:03:58 * @type {string[]} */ hourSplits: string[]; watchHourSplits(): void; /** * 月度时间分割 * * @author chitanda * @date 2021-03-13 14:03:33 * @type {Map} */ monthDateSplits: Map; watchMonthDateSplits(): void; /** * 头部高 * * @author chitanda * @date 2021-03-13 14:03:28 * @type {number} */ headerHeight: number; /** * 资源容器宽度 * * @author chitanda * @date 2021-03-13 14:03:50 * @type {number} */ resourceContainerWidth: number; /** * 时间刻度展示容器宽度 * * @author chitanda * @date 2021-03-13 14:03:29 * @type {number} */ hourContainerWidth: number; /** * 时间线绘制偏移 * * @author chitanda * @date 2021-03-13 14:03:28 * @type {number} */ hourLineOffset: number; /** * 日期展示区高度 * * @author chitanda * @date 2021-03-17 14:03:31 * @type {number} */ dateHeight: number; /** * 默认字体 * * @author chitanda * @date 2021-03-17 14:03:26 */ fontFamily: string; /** * 资源占高 * * @author chitanda * @date 2021-03-13 14:03:22 * @readonly * @type {number} */ get resourceLineHeight(): number; componentWillLoad(): void; draw(): void; /** * 绘制背景色 * * @author chitanda * @date 2021-03-17 13:03:36 */ dragBackgroundColor(): void; drawLineX(x: number, y: number, length: number, data?: { style?: string; size?: number; }): void; drawLineY(x: number, y: number, length: number, data?: { style?: string; size?: number; }): void; /** * 绘制标题 * * @author chitanda * @date 2021-03-13 17:03:59 */ drawViewTitle(): void; /** * 绘制资源文字 * * @author chitanda * @date 2021-03-13 17:03:32 * @param {string} text * @param {number} y */ drawResourceText(text: string, y: number): void; /** * 绘制时间文本 * * @author chitanda * @date 2021-03-13 17:03:03 * @param {string} text * @param {number} x * @param {number} y */ drawHourText(text: string, x: number, y: number): void; /** * 绘制日期文本 * * @author chitanda * @date 2021-03-13 17:03:03 * @param {string} text * @param {number} x * @param {number} y */ drawDateText(text: string, x: number, y: number): void; /** * 绘制月份文本 * * @author chitanda * @date 2021-03-13 17:03:03 * @param {string} text * @param {number} x * @param {number} y */ drawMonthText(text: string, x: number, y: number): void; /** * 分割字符行数 * * @author chitanda * @date 2021-03-13 16:03:05 * @param {string} text * @param {number} maxWidth * @return {*} {string[]} */ getTextRows(text: string, maxWidth: number): string[]; /** * 绘制资源线 * * @author chitanda * @date 2021-03-13 14:03:27 */ drawResourceLine(): void; /** * 绘制小时线 * * @author chitanda * @date 2021-03-13 14:03:48 * @param {number} resourceIndex */ drawHourLine(resourceIndex: number): void; /** * 绘制日期线 * * @author chitanda * @date 2021-03-13 14:03:31 */ drawDateLine(): void; /** * 计算坐标是否在可视范围 * * @author chitanda * @date 2021-03-13 18:03:05 * @param {number} x * @param {number} y * @return {*} {boolean} */ isVisualRange(x: number, y: number): boolean; render(): any; }