import { Rectangle, PositionType } from "../common/vline"; import { CoodinateType } from "../common/enums"; import { ShapeObjectType } from "../common/enums"; import * as GOptions from "./x_options"; import { IObject } from "./i_object"; import { GVertexOptionReteral } from "../logics/gobject_reterals"; export declare type GObjectMaps = { groupAttributes?: Map; surfaceAttributes?: Map; textAttributes?: Map; }; export declare class GObject implements IObject { protected _svgSurface: SVGElement | null; protected _tag: any; private _svgGroup; protected _observer: MutationObserver; private _observerOption; constructor(svgbox: SVGElement | string); get stableFlag(): boolean; protected set stableFlag(b: boolean); get childrenStableFlag(): boolean; updateSurfaceWithoutSVGText(): boolean; protected setBasicOption(option: GOptions.GObjectAttributes): void; protected setOptionalSize(option: GOptions.GObjectAttributes): void; protected setOptionalPosition(option: GOptions.GObjectAttributes): void; setOption(option: GOptions.GObjectAttributes): void; assignOption(option: GVertexOptionReteral): void; private _isInitialized; private __x; private __y; private __cx; private __cy; protected disconnectObserverFunction(): void; protected connectObserverFunction(): void; private _hasConnectedObserverFunction; protected get hasConnectedObserverFunction(): boolean; protected set hasConnectedObserverFunction(b: boolean); get coordinateType(): CoodinateType; get defaultClassName(): string | undefined; protected get isInitialized(): boolean; protected firstFunctionAfterInitialized(): void; protected groupObserverOption: MutationObserverInit; private removeResizeEvent; private addResizeEvent; private pUpdateFunc; protected firstResizeUpdate(): void; static constructAttributes(e: Element, removeAttributes: boolean | undefined, output: GOptions.GObjectAttributes | undefined, defaultPositionType: "center" | "upper-left"): GOptions.GObjectAttributes; get tag(): any; set tag(v: any); get isShown(): boolean; /** セルを表しているSVGGElementを返します。 */ get svgGroup(): SVGGElement; get isLocated(): boolean; get svgSurface(): SVGElement | null; /** このVertexのX座標を返します。 */ get cx(): number; set cx(value: number); /** このVertexのY座標を返します。 */ get cy(): number; set cy(value: number); get upperHeight(): number; get leftWidth(): number; get surfaceRegion(): Rectangle; get x(): number; get y(): number; set x(v: number); set y(v: number); setVirtualXY(x: number, y: number): void; /** 頂点の幅を返します。 */ get width(): number; set width(value: number); /** 頂点の高さを返します。 */ get height(): number; set height(value: number); get isCenterBased(): boolean; get positionType(): PositionType; set positionType(value: PositionType); get isProhibitionOutOfRange(): boolean; set isProhibitionOutOfRange(v: boolean); moveInCanvas(): void; get type(): ShapeObjectType; protected createSurface(svgbox: SVGElement): void; protected setClassNameOfSVGGroup(): void; private observerFunc; protected observerFunction(x: MutationRecord[]): void; /** * この頂点を廃棄します。廃棄された頂点はグラフから取り除かれます。 */ dispose(): void; /** この頂点が廃棄されていたらTrueを返します。 */ get isDisposed(): boolean; /** このVertexのObjectIDを返します。 */ get objectID(): string; createVBACode(id: number): string[]; get VBAObjectNum(): number; protected dispatchObjectCreatedEvent(): void; get isDynamic(): boolean; protected set isDynamic(value: boolean); protected _isUpdating: boolean; getUpdateFlag(): boolean; update(): void; protected updateAttributes: string[]; protected dispatchConnectPositionChangedEvent(): void; get hasSize(): boolean; private static objectDic; static getObjectFromObjectID(id: string | SVGElement): GObject | null; static setObjectFromObjectID(obj: GObject): void; static getObjectFromID(id: string): GObject | null; /** * グラフの領域を表すRectangleを返します。位置の基準はグラフが追加されているNodeです。 */ getRegion(): Rectangle; getVirtualWidth(): number; getVirtualHeight(): number; getVirtualRegion(): Rectangle; movable(): void; get allowHover(): boolean; set allowHover(value: boolean); }