import { IInital } from 'ts-toolset'; import { MapStore, EventBus } from '../../../services'; import { IHtmlComponentEntity, IHtmlSchemaNode } from '../../../models/html'; import { LoopSchemaNodeParams, LoopSchemaNodeScope, HtmlSchemaNode, HtmlStageAttachment } from './common'; import { HtmlStage } from '../../parts/htmlStage'; import { Functional } from '../../parts/functional'; import { StyleAccess } from '../../parts/styleAccess'; import { HtmlSchema } from '../../../workbench/parts/htmlSchema'; /** 视图层 部件集合 */ export declare type InitHtmlInterfaceIntegratorParams = Omit; export interface IHtmlInterfaceIntegrator extends IInital { } export declare class HtmlInterfaceIntegrator implements IHtmlInterfaceIntegrator { private _mapStore; private _eventBus; private _htmlSchema; private _htmlStage; private _functional; private _styleAccess; private readonly _schemaTree; private readonly _cssRuleStore; private readonly _componentStore; private readonly _templateSchemaStore; private readonly _schemaUndoManager; constructor(_mapStore: MapStore, _eventBus: EventBus, _htmlSchema: HtmlSchema, _htmlStage: HtmlStage, _functional: Functional, _styleAccess: StyleAccess); /** 加载部件需要的内容 */ initial({ stageDoc, stageProxyLayer }: InitHtmlInterfaceIntegratorParams): void; /** 协议节点的操作方式 */ private _mapSchemaTreeHandle; private _generateCustomSlotProps; /** 遍历插槽协议节点 */ private _mapSlotSchemaTree; /** 遍历协议节点 */ mapSchemaTree(scope: LoopSchemaNodeScope): any; mapSchemaTree(node: HtmlSchemaNode, scope: LoopSchemaNodeScope): any; getComponentProps(data: IHtmlSchemaNode, entity: IHtmlComponentEntity, params: LoopSchemaNodeParams): any; /** 渲染视图层,触发渲染事件 */ private _renderHtmlStage; private _mapHtmlStageProxyHandle; private _parseNestHtmlStageProxy; /** 渲染代理层,触发渲染事件 */ private _renderHtmlStageProxy; /** 生成协议节点 */ private _generateHtmlSchemaNode; /** 判断是否可以拖拽 */ proxyLayerCanDrag(node?: HtmlSchemaNode): boolean; private _addComponentDndSource; /** 经过视图层的 代理层 */ private _overHtmlStageProxy; /** 点击视图层的 代理层 */ private _clickHtmlStageProxy; /** 右击菜单 的代理层 */ private _contextMenuHtmlStageProxy; /** 视图层的 代理层 开始拖拽 */ private _htmlStageProxyDragStart; /** 拖拽经过视图层的 代理层 */ private _htmlStageProxyDragOver; /** 放置节点 到视图层的 代理层 */ private _htmlStageProxyDrop; /** 视图层的 代理层 拖拽结束 */ private _htmlStageProxyDragEnd; /** 放置 根节点 */ private _dropHtmlStageRootProxy; /** 清理 放置视图层的 代理层 */ private _clearDropHtmlStageRootProxy; /** 清理 经过视图层的 代理层 */ private _clearOverHtmlStageProxy; /** 清理 选中视图层的 代理层 */ private _onClickHtmlStageRootProxy; private _isUndoReodoSelectedNode; private _htmlSchemaUndo; private _htmlSchemaRedo; private _htmlSchemaOperate; private _htmlSchemaUpdate; }