import { Rectangle, PositionType } from "../common/vline"; import { CoodinateType, HorizontalAnchor, VerticalAnchor } from "../common/enums"; import { ShapeObjectType } from "../common/enums"; import { IObject } from "./i_object"; export type ZObjectMaps = { groupAttributes?: Map; surfaceAttributes?: Map; textAttributes?: Map; }; export declare class ZObject implements IObject { protected _svgSurface: SVGElement | null; protected _tag: any; private _svgGroup; protected _observer: MutationObserver; private _observerOption; constructor(svgbox: SVGElement | string); protected copyAttribute(from: SVGElement, to: SVGElement, attributeName: string, remove: boolean): void; initializeSetBasicOption(source: SVGElement): void; static setSubAttributes(e: SVGElement, source: SVGElement): void; static setSubAttributesWithObjName(e: SVGElement, objName: string, source: SVGElement): void; initializeOptionalPosition(source: SVGElement): void; initialize(source: SVGElement): void; get stableFlag(): boolean; get syncXTargetObject(): ZObject | null; get syncYTargetObject(): ZObject | null; get syncXSourcePosition(): HorizontalAnchor | null; get syncXTargetPosition(): HorizontalAnchor | null; get syncYSourcePosition(): VerticalAnchor | null; get syncYTargetPosition(): VerticalAnchor | null; protected set stableFlag(b: boolean); get childrenStableFlag(): boolean; updateSurfaceWithoutSVGText(): boolean; updateObjectLocation(): void; private joint; 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; 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 getObjectFromIDOrObjectID(id: string | SVGElement): ZObject | null; static setObjectFromObjectID(obj: ZObject): void; static getObjectFromID(id: string): ZObject | null; /** * グラフの領域を表すRectangleを返します。位置の基準はグラフが追加されているNodeです。 */ getRegion(): Rectangle; getVirtualWidth(): number; getVirtualHeight(): number; getVirtualRegion(): Rectangle; movable(): void; get allowHover(): boolean; set allowHover(value: boolean); }