import { GTextBox } from "./g_textbox"; import { ShapeObjectType, ConnectorType, VBAShapeType } from "../common/enums"; import { Rectangle } from "../common/vline"; import * as GOptions from "./g_options"; /** * GRectです。 * */ export declare class GRect extends GTextBox { get svgRectangle(): SVGRectElement; constructor(svgbox: SVGElement | string, option?: GOptions.GTextBoxAttributes | null); protected createSurface(svgbox: SVGElement): void; /** * SVGRectElementを生成します。 * @param parent 生成したSVG要素を子に追加する要素 * @param className 生成するSVG要素のクラス属性名 * @returns 生成されたSVGRectElement */ private static createRectangle; static constructAttributes(e: Element, removeAttributes?: boolean, output?: GOptions.GTextBoxAttributes): GOptions.GTextBoxAttributes; 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; }