import { ZTextBox } from "./z_textbox"; import { ShapeObjectType, ConnectorType, VBAShapeType } from "../common/enums"; import { Rectangle } from "../common/vline"; import * as GOptions from "./z_options"; /** * ZRectです。 * */ export declare class ZRect extends ZTextBox { get svgRectangle(): SVGRectElement; constructor(svgbox: SVGElement | string, option?: GOptions.ZTextBoxAttributes | null); protected createSurface(svgbox: SVGElement): void; /** * SVGRectElementを生成します。 * @param parent 生成したSVG要素を子に追加する要素 * @param className 生成するSVG要素のクラス属性名 * @returns 生成されたSVGRectElement */ private static createRectangle; get type(): ShapeObjectType; /** 頂点の幅を返します。 */ get width(): number; set width(value: number); protected setWidthWithoutUpdate(value: number): void; /** 頂点の高さを返します。 */ get height(): number; set height(value: number); protected setHeightWithoutUpdate(value: number): void; get surfaceRegion(): Rectangle; protected updateSurfaceLocation(): boolean; /** * 接続部分の座標を返します。 * @param type * @param x * @param y */ getContactPosition(type: ConnectorType, x: number, y: number): [number, number]; getContactAutoPosition(x: number, y: number): ConnectorType; get shape(): VBAShapeType; }