/** * @file 每个渲染器的节点信息存在这了。 * Outline 就是靠这个生成的。 */ import { IAnyModelType, Instance, SnapshotIn } from 'mobx-state-tree'; import { RegionConfig, RendererInfo } from '../plugin'; import React from 'react'; export declare const EditorNode: import("mobx-state-tree").IModelType<{ parentId: import("mobx-state-tree").IType; parentRegion: import("mobx-state-tree").IType; isCommonConfig: import("mobx-state-tree").IType; isFormConfig: import("mobx-state-tree").IType; id: import("mobx-state-tree").IType; type: import("mobx-state-tree").IType; label: import("mobx-state-tree").IType; regionInfo: import("mobx-state-tree").IMaybe>; path: import("mobx-state-tree").IType; schemaPath: import("mobx-state-tree").IType; region: import("mobx-state-tree").IType; preferTag: import("mobx-state-tree").IType; state: import("mobx-state-tree").IOptionalIType, [undefined]>; widthMutable: import("mobx-state-tree").IType; heightMutable: import("mobx-state-tree").IType; memberIndex: import("mobx-state-tree").IType; folded: import("mobx-state-tree").IType; patched: import("mobx-state-tree").IType; x: import("mobx-state-tree").IType; y: import("mobx-state-tree").IType; w: import("mobx-state-tree").IType; h: import("mobx-state-tree").IType; dialogTitle: import("mobx-state-tree").IType; dialogType: import("mobx-state-tree").IType; children: import("mobx-state-tree").IOptionalIType, [undefined]>; }, { getData: import("mobx-state-tree").IType<() => any, () => any, () => any>; } & { readonly info: RendererInfo; getNodeById(id: string, regionOrType?: string): any; getNodeByComponentId(id: string): any; setInfo(value: RendererInfo): void; updateSharedContext(value: Record): void; readonly rendererConfig: any; setRendererConfig(value: RendererConfig): void; readonly isVitualRenderer: boolean; readonly clickable: boolean; readonly draggable: boolean; readonly moveable: boolean; readonly canMoveUp: boolean; readonly canMoveDown: boolean; readonly removable: boolean; readonly duplicatable: boolean; readonly replaceable: boolean; memberImmutable(region: string): boolean; readonly isRegion: boolean; readonly childRegions: any[]; readonly uniqueChildren: any[]; readonly sameIdChild: any; readonly singleRegion: boolean; isExists(id: string): boolean; getChildById(id: string): any; readonly parent: any; readonly ancestorField: any; readonly host: any; readonly firstChild: any; readonly index: any; readonly prevSibling: any; readonly nextSibling: any; readonly schema: any; readonly schemaParent: any; readonly isSecondFactor: boolean; } & { getClosestParentByType: (type: string) => EditorNodeType | void; getParentNodeByCB: (callback: (node: EditorNodeSnapshot) => Boolean) => { parentId: string; parentRegion: string; isCommonConfig: boolean; isFormConfig: boolean; id: string; type: string; label: string; regionInfo: (RegionConfig & import("mobx-state-tree").IStateTreeNode>>) | undefined; path: string; schemaPath: string; region: string; preferTag: string; state: any; widthMutable: boolean; heightMutable: boolean; memberIndex: number; folded: boolean; patched: boolean; x: number; y: number; w: number; h: number; dialogTitle: string; dialogType: string; children: import("mobx-state-tree").IMSTArray & import("mobx-state-tree").IStateTreeNode, [undefined]>>; } & import("mobx-state-tree/dist/internal").NonEmptyObject & { getData: import("mobx-state-tree").IType<() => any, () => any, () => any>; } & { readonly info: RendererInfo; getNodeById(id: string, regionOrType?: string): any; getNodeByComponentId(id: string): any; setInfo(value: RendererInfo): void; updateSharedContext(value: Record): void; readonly rendererConfig: any; setRendererConfig(value: RendererConfig): void; readonly isVitualRenderer: boolean; readonly clickable: boolean; readonly draggable: boolean; readonly moveable: boolean; readonly canMoveUp: boolean; readonly canMoveDown: boolean; readonly removable: boolean; readonly duplicatable: boolean; readonly replaceable: boolean; memberImmutable(region: string): boolean; readonly isRegion: boolean; readonly childRegions: any[]; readonly uniqueChildren: any[]; readonly sameIdChild: any; readonly singleRegion: boolean; isExists(id: string): boolean; getChildById(id: string): any; readonly parent: any; readonly ancestorField: any; readonly host: any; readonly firstChild: any; readonly index: any; readonly prevSibling: any; readonly nextSibling: any; readonly schema: any; readonly schemaParent: any; readonly isSecondFactor: boolean; } & import("mobx-state-tree").IStateTreeNode; parentRegion: import("mobx-state-tree").IType; isCommonConfig: import("mobx-state-tree").IType; isFormConfig: import("mobx-state-tree").IType; id: import("mobx-state-tree").IType; type: import("mobx-state-tree").IType; label: import("mobx-state-tree").IType; regionInfo: import("mobx-state-tree").IMaybe>; path: import("mobx-state-tree").IType; schemaPath: import("mobx-state-tree").IType; region: import("mobx-state-tree").IType; preferTag: import("mobx-state-tree").IType; state: import("mobx-state-tree").IOptionalIType, [undefined]>; widthMutable: import("mobx-state-tree").IType; heightMutable: import("mobx-state-tree").IType; memberIndex: import("mobx-state-tree").IType; folded: import("mobx-state-tree").IType; patched: import("mobx-state-tree").IType; x: import("mobx-state-tree").IType; y: import("mobx-state-tree").IType; w: import("mobx-state-tree").IType; h: import("mobx-state-tree").IType; dialogTitle: import("mobx-state-tree").IType; dialogType: import("mobx-state-tree").IType; children: import("mobx-state-tree").IOptionalIType, [undefined]>; }, { getData: import("mobx-state-tree").IType<() => any, () => any, () => any>; } & { readonly info: RendererInfo; getNodeById(id: string, regionOrType?: string): any; getNodeByComponentId(id: string): any; setInfo(value: RendererInfo): void; updateSharedContext(value: Record): void; readonly rendererConfig: any; setRendererConfig(value: RendererConfig): void; readonly isVitualRenderer: boolean; readonly clickable: boolean; readonly draggable: boolean; readonly moveable: boolean; readonly canMoveUp: boolean; readonly canMoveDown: boolean; readonly removable: boolean; readonly duplicatable: boolean; readonly replaceable: boolean; memberImmutable(region: string): boolean; readonly isRegion: boolean; readonly childRegions: any[]; readonly uniqueChildren: any[]; readonly sameIdChild: any; readonly singleRegion: boolean; isExists(id: string): boolean; getChildById(id: string): any; readonly parent: any; readonly ancestorField: any; readonly host: any; readonly firstChild: any; readonly index: any; readonly prevSibling: any; readonly nextSibling: any; readonly schema: any; readonly schemaParent: any; readonly isSecondFactor: boolean; }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>; updateIsCommonConfig: (value: boolean) => void; updateIsFormConfig: (value: boolean) => void; addChild(props: { id: string; type: string; label: string; path: string; isCommonConfig?: boolean; isFormConfig?: boolean; info?: RendererInfo; region?: string; getData?: () => any; preferTag?: string; schemaPath?: string; dialogTitle?: string; dialogType?: string; regionInfo?: RegionConfig; widthMutable?: boolean; memberIndex?: number; }): any; removeChild(child: any): void; toggleFold(e: React.MouseEvent): void; patch(store: any, force?: boolean, setPatchInfo?: ((id: string, value: any) => void) | undefined, ids?: Map): void; updateSchema(value: any): void; updateSchemaStyle(value: any): void; setComponent(value: any): void; getComponent(): any; getTarget(): null | HTMLElement | Array; /** * 计算高亮区域信息。 * @param layer * @param root */ calculateHighlightBox(root?: any): void; resetHighlightBox(root: any): void; updateState(state: any, replace?: boolean): void; setWidthMutable(value: any): void; setHeightMutable(value: any): void; }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>; export declare const EditorNodeContext: React.Context<({ parentId: string; parentRegion: string; isCommonConfig: boolean; isFormConfig: boolean; id: string; type: string; label: string; regionInfo: (RegionConfig & import("mobx-state-tree").IStateTreeNode>>) | undefined; path: string; schemaPath: string; region: string; preferTag: string; state: any; widthMutable: boolean; heightMutable: boolean; memberIndex: number; folded: boolean; patched: boolean; x: number; y: number; w: number; h: number; dialogTitle: string; dialogType: string; children: import("mobx-state-tree").IMSTArray & import("mobx-state-tree").IStateTreeNode, [undefined]>>; } & import("mobx-state-tree/dist/internal").NonEmptyObject & { getData: import("mobx-state-tree").IType<() => any, () => any, () => any>; } & { readonly info: RendererInfo; getNodeById(id: string, regionOrType?: string): any; getNodeByComponentId(id: string): any; setInfo(value: RendererInfo): void; updateSharedContext(value: Record): void; readonly rendererConfig: any; setRendererConfig(value: RendererConfig): void; readonly isVitualRenderer: boolean; readonly clickable: boolean; readonly draggable: boolean; readonly moveable: boolean; readonly canMoveUp: boolean; readonly canMoveDown: boolean; readonly removable: boolean; readonly duplicatable: boolean; readonly replaceable: boolean; memberImmutable(region: string): boolean; readonly isRegion: boolean; readonly childRegions: any[]; readonly uniqueChildren: any[]; readonly sameIdChild: any; readonly singleRegion: boolean; isExists(id: string): boolean; getChildById(id: string): any; readonly parent: any; readonly ancestorField: any; readonly host: any; readonly firstChild: any; readonly index: any; readonly prevSibling: any; readonly nextSibling: any; readonly schema: any; readonly schemaParent: any; readonly isSecondFactor: boolean; } & { getClosestParentByType: (type: string) => EditorNodeType | void; getParentNodeByCB: (callback: (node: EditorNodeSnapshot) => Boolean) => { parentId: string; parentRegion: string; isCommonConfig: boolean; isFormConfig: boolean; id: string; type: string; label: string; regionInfo: (RegionConfig & import("mobx-state-tree").IStateTreeNode>>) | undefined; path: string; schemaPath: string; region: string; preferTag: string; state: any; widthMutable: boolean; heightMutable: boolean; memberIndex: number; folded: boolean; patched: boolean; x: number; y: number; w: number; h: number; dialogTitle: string; dialogType: string; children: import("mobx-state-tree").IMSTArray & import("mobx-state-tree").IStateTreeNode, [undefined]>>; } & import("mobx-state-tree/dist/internal").NonEmptyObject & { getData: import("mobx-state-tree").IType<() => any, () => any, () => any>; } & { readonly info: RendererInfo; getNodeById(id: string, regionOrType?: string): any; getNodeByComponentId(id: string): any; setInfo(value: RendererInfo): void; updateSharedContext(value: Record): void; readonly rendererConfig: any; setRendererConfig(value: RendererConfig): void; readonly isVitualRenderer: boolean; readonly clickable: boolean; readonly draggable: boolean; readonly moveable: boolean; readonly canMoveUp: boolean; readonly canMoveDown: boolean; readonly removable: boolean; readonly duplicatable: boolean; readonly replaceable: boolean; memberImmutable(region: string): boolean; readonly isRegion: boolean; readonly childRegions: any[]; readonly uniqueChildren: any[]; readonly sameIdChild: any; readonly singleRegion: boolean; isExists(id: string): boolean; getChildById(id: string): any; readonly parent: any; readonly ancestorField: any; readonly host: any; readonly firstChild: any; readonly index: any; readonly prevSibling: any; readonly nextSibling: any; readonly schema: any; readonly schemaParent: any; readonly isSecondFactor: boolean; } & import("mobx-state-tree").IStateTreeNode; parentRegion: import("mobx-state-tree").IType; isCommonConfig: import("mobx-state-tree").IType; isFormConfig: import("mobx-state-tree").IType; id: import("mobx-state-tree").IType; type: import("mobx-state-tree").IType; label: import("mobx-state-tree").IType; regionInfo: import("mobx-state-tree").IMaybe>; path: import("mobx-state-tree").IType; schemaPath: import("mobx-state-tree").IType; region: import("mobx-state-tree").IType; preferTag: import("mobx-state-tree").IType; state: import("mobx-state-tree").IOptionalIType, [undefined]>; widthMutable: import("mobx-state-tree").IType; heightMutable: import("mobx-state-tree").IType; memberIndex: import("mobx-state-tree").IType; folded: import("mobx-state-tree").IType; patched: import("mobx-state-tree").IType; x: import("mobx-state-tree").IType; y: import("mobx-state-tree").IType; w: import("mobx-state-tree").IType; h: import("mobx-state-tree").IType; dialogTitle: import("mobx-state-tree").IType; dialogType: import("mobx-state-tree").IType; children: import("mobx-state-tree").IOptionalIType, [undefined]>; }, { getData: import("mobx-state-tree").IType<() => any, () => any, () => any>; } & { readonly info: RendererInfo; getNodeById(id: string, regionOrType?: string): any; getNodeByComponentId(id: string): any; setInfo(value: RendererInfo): void; updateSharedContext(value: Record): void; readonly rendererConfig: any; setRendererConfig(value: RendererConfig): void; readonly isVitualRenderer: boolean; readonly clickable: boolean; readonly draggable: boolean; readonly moveable: boolean; readonly canMoveUp: boolean; readonly canMoveDown: boolean; readonly removable: boolean; readonly duplicatable: boolean; readonly replaceable: boolean; memberImmutable(region: string): boolean; readonly isRegion: boolean; readonly childRegions: any[]; readonly uniqueChildren: any[]; readonly sameIdChild: any; readonly singleRegion: boolean; isExists(id: string): boolean; getChildById(id: string): any; readonly parent: any; readonly ancestorField: any; readonly host: any; readonly firstChild: any; readonly index: any; readonly prevSibling: any; readonly nextSibling: any; readonly schema: any; readonly schemaParent: any; readonly isSecondFactor: boolean; }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>; updateIsCommonConfig: (value: boolean) => void; updateIsFormConfig: (value: boolean) => void; addChild(props: { id: string; type: string; label: string; path: string; isCommonConfig?: boolean; isFormConfig?: boolean; info?: RendererInfo; region?: string; getData?: () => any; preferTag?: string; schemaPath?: string; dialogTitle?: string; dialogType?: string; regionInfo?: RegionConfig; widthMutable?: boolean; memberIndex?: number; }): any; removeChild(child: any): void; toggleFold(e: React.MouseEvent): void; patch(store: any, force?: boolean, setPatchInfo?: ((id: string, value: any) => void) | undefined, ids?: Map): void; updateSchema(value: any): void; updateSchemaStyle(value: any): void; setComponent(value: any): void; getComponent(): any; getTarget(): null | HTMLElement | Array; /** * 计算高亮区域信息。 * @param layer * @param root */ calculateHighlightBox(root?: any): void; resetHighlightBox(root: any): void; updateState(state: any, replace?: boolean): void; setWidthMutable(value: any): void; setHeightMutable(value: any): void; } & import("mobx-state-tree").IStateTreeNode; parentRegion: import("mobx-state-tree").IType; isCommonConfig: import("mobx-state-tree").IType; isFormConfig: import("mobx-state-tree").IType; id: import("mobx-state-tree").IType; type: import("mobx-state-tree").IType; label: import("mobx-state-tree").IType; regionInfo: import("mobx-state-tree").IMaybe>; path: import("mobx-state-tree").IType; schemaPath: import("mobx-state-tree").IType; region: import("mobx-state-tree").IType; preferTag: import("mobx-state-tree").IType; state: import("mobx-state-tree").IOptionalIType, [undefined]>; widthMutable: import("mobx-state-tree").IType; heightMutable: import("mobx-state-tree").IType; memberIndex: import("mobx-state-tree").IType; folded: import("mobx-state-tree").IType; patched: import("mobx-state-tree").IType; x: import("mobx-state-tree").IType; y: import("mobx-state-tree").IType; w: import("mobx-state-tree").IType; h: import("mobx-state-tree").IType; dialogTitle: import("mobx-state-tree").IType; dialogType: import("mobx-state-tree").IType; children: import("mobx-state-tree").IOptionalIType, [undefined]>; }, { getData: import("mobx-state-tree").IType<() => any, () => any, () => any>; } & { readonly info: RendererInfo; getNodeById(id: string, regionOrType?: string): any; getNodeByComponentId(id: string): any; setInfo(value: RendererInfo): void; updateSharedContext(value: Record): void; readonly rendererConfig: any; setRendererConfig(value: RendererConfig): void; readonly isVitualRenderer: boolean; readonly clickable: boolean; readonly draggable: boolean; readonly moveable: boolean; readonly canMoveUp: boolean; readonly canMoveDown: boolean; readonly removable: boolean; readonly duplicatable: boolean; readonly replaceable: boolean; memberImmutable(region: string): boolean; readonly isRegion: boolean; readonly childRegions: any[]; readonly uniqueChildren: any[]; readonly sameIdChild: any; readonly singleRegion: boolean; isExists(id: string): boolean; getChildById(id: string): any; readonly parent: any; readonly ancestorField: any; readonly host: any; readonly firstChild: any; readonly index: any; readonly prevSibling: any; readonly nextSibling: any; readonly schema: any; readonly schemaParent: any; readonly isSecondFactor: boolean; } & { getClosestParentByType: (type: string) => EditorNodeType | void; getParentNodeByCB: (callback: (node: EditorNodeSnapshot) => Boolean) => { parentId: string; parentRegion: string; isCommonConfig: boolean; isFormConfig: boolean; id: string; type: string; label: string; regionInfo: (RegionConfig & import("mobx-state-tree").IStateTreeNode>>) | undefined; path: string; schemaPath: string; region: string; preferTag: string; state: any; widthMutable: boolean; heightMutable: boolean; memberIndex: number; folded: boolean; patched: boolean; x: number; y: number; w: number; h: number; dialogTitle: string; dialogType: string; children: import("mobx-state-tree").IMSTArray & import("mobx-state-tree").IStateTreeNode, [undefined]>>; } & import("mobx-state-tree/dist/internal").NonEmptyObject & { getData: import("mobx-state-tree").IType<() => any, () => any, () => any>; } & { readonly info: RendererInfo; getNodeById(id: string, regionOrType?: string): any; getNodeByComponentId(id: string): any; setInfo(value: RendererInfo): void; updateSharedContext(value: Record): void; readonly rendererConfig: any; setRendererConfig(value: RendererConfig): void; readonly isVitualRenderer: boolean; readonly clickable: boolean; readonly draggable: boolean; readonly moveable: boolean; readonly canMoveUp: boolean; readonly canMoveDown: boolean; readonly removable: boolean; readonly duplicatable: boolean; readonly replaceable: boolean; memberImmutable(region: string): boolean; readonly isRegion: boolean; readonly childRegions: any[]; readonly uniqueChildren: any[]; readonly sameIdChild: any; readonly singleRegion: boolean; isExists(id: string): boolean; getChildById(id: string): any; readonly parent: any; readonly ancestorField: any; readonly host: any; readonly firstChild: any; readonly index: any; readonly prevSibling: any; readonly nextSibling: any; readonly schema: any; readonly schemaParent: any; readonly isSecondFactor: boolean; } & import("mobx-state-tree").IStateTreeNode; parentRegion: import("mobx-state-tree").IType; isCommonConfig: import("mobx-state-tree").IType; isFormConfig: import("mobx-state-tree").IType; id: import("mobx-state-tree").IType; type: import("mobx-state-tree").IType; label: import("mobx-state-tree").IType; regionInfo: import("mobx-state-tree").IMaybe>; path: import("mobx-state-tree").IType; schemaPath: import("mobx-state-tree").IType; region: import("mobx-state-tree").IType; preferTag: import("mobx-state-tree").IType; state: import("mobx-state-tree").IOptionalIType, [undefined]>; widthMutable: import("mobx-state-tree").IType; heightMutable: import("mobx-state-tree").IType; memberIndex: import("mobx-state-tree").IType; folded: import("mobx-state-tree").IType; patched: import("mobx-state-tree").IType; x: import("mobx-state-tree").IType; y: import("mobx-state-tree").IType; w: import("mobx-state-tree").IType; h: import("mobx-state-tree").IType; dialogTitle: import("mobx-state-tree").IType; dialogType: import("mobx-state-tree").IType; children: import("mobx-state-tree").IOptionalIType, [undefined]>; }, { getData: import("mobx-state-tree").IType<() => any, () => any, () => any>; } & { readonly info: RendererInfo; getNodeById(id: string, regionOrType?: string): any; getNodeByComponentId(id: string): any; setInfo(value: RendererInfo): void; updateSharedContext(value: Record): void; readonly rendererConfig: any; setRendererConfig(value: RendererConfig): void; readonly isVitualRenderer: boolean; readonly clickable: boolean; readonly draggable: boolean; readonly moveable: boolean; readonly canMoveUp: boolean; readonly canMoveDown: boolean; readonly removable: boolean; readonly duplicatable: boolean; readonly replaceable: boolean; memberImmutable(region: string): boolean; readonly isRegion: boolean; readonly childRegions: any[]; readonly uniqueChildren: any[]; readonly sameIdChild: any; readonly singleRegion: boolean; isExists(id: string): boolean; getChildById(id: string): any; readonly parent: any; readonly ancestorField: any; readonly host: any; readonly firstChild: any; readonly index: any; readonly prevSibling: any; readonly nextSibling: any; readonly schema: any; readonly schemaParent: any; readonly isSecondFactor: boolean; }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>; updateIsCommonConfig: (value: boolean) => void; updateIsFormConfig: (value: boolean) => void; addChild(props: { id: string; type: string; label: string; path: string; isCommonConfig?: boolean; isFormConfig?: boolean; info?: RendererInfo; region?: string; getData?: () => any; preferTag?: string; schemaPath?: string; dialogTitle?: string; dialogType?: string; regionInfo?: RegionConfig; widthMutable?: boolean; memberIndex?: number; }): any; removeChild(child: any): void; toggleFold(e: React.MouseEvent): void; patch(store: any, force?: boolean, setPatchInfo?: ((id: string, value: any) => void) | undefined, ids?: Map): void; updateSchema(value: any): void; updateSchemaStyle(value: any): void; setComponent(value: any): void; getComponent(): any; getTarget(): null | HTMLElement | Array; /** * 计算高亮区域信息。 * @param layer * @param root */ calculateHighlightBox(root?: any): void; resetHighlightBox(root: any): void; updateState(state: any, replace?: boolean): void; setWidthMutable(value: any): void; setHeightMutable(value: any): void; }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | null>; export type EditorNodeType = Instance; export type EditorNodeSnapshot = SnapshotIn;