/* * @Author: your name * @Date: 2022-04-11 15:28:14 * @Description: * @FilePath: /zl-large-screen/src/type/largeScreenLayer.ts */ export interface ILargeScreenLayerProps { levelButtons?: IIconList[]; layerList?: IContent[]; contextMenus?: IContextMenus[]; layerListEvent?: Function; boardEvent?: Function; hierarchyDisabled?: boolean; uiStateOn?: boolean; uiLayerList?: IContent[]; layerType?: string; layer3DList?: IContent[]; GISChildren?: IGISChildren[]; layerExpandIds?: string[]; fristSelectedElement?: string; hoverElement?: string; } export interface ILargeScreenLayerState { iconList?: IIconList[]; content?: IContent[]; contextMenus?: IContextMenus[]; layerListEvent?: Function; boardEvent?: Function; hierarchyDisabled?: boolean; uiStateOn?: boolean; uiLayerList?: IContent[]; layerType?: string; layer3DList?: IContent[]; GISChildren?: IGISChildren[]; layerExpandIds?: string[]; dragInfo?: IDragInfo; fristSelectedElement?: string; hoverElement?: string; } //图层icon export interface ILargeScreenHierarchy { iconList?: IIconList[]; layerListEvent?: Function; hierarchyDisabled?: boolean; } //图层content export interface ILargeScreenLayerListProps { content?: IContent[]; contextMenus?: IContextMenus[]; layerListEvent?: Function; boardEvent?: Function; fristSelectedElement?: string; hoverElement?: string; } export interface IIconList { key: string | number; title?: string; icon?: string; } export interface IContent { key?: string | number; componentId?: string; layerIndex: string; elementIndex: number; type?: string; title?: string; name?: string; icon?: string; status?: string; selected?: boolean; statusIcon?: string; autofocus?: boolean | undefined; value?: string | undefined; children?: IContent[]; data?: IContent[]; elementInfo?: IElement; [key: string]: string | number | boolean | object | any; } export interface IElement { width: number; height: number; x: number; y: number; chartType: string; element: React.ReactNode; // keepRatio:boolean } export interface IContextMenus { label: string | React.ReactNode; key: string | number; icon?: string; type?: string; disabled?: string[] | string; hidden?: string[] | string; children?: IContextMenus[]; visible?: boolean; fileStyle?: any; labelName?: string; } export interface IGISChildren { key: string | number; icon: string; title: string; active: boolean; config: string; gisLayerStateIcon: string; isHide?: boolean; } export interface IDragInfo { draggable: boolean; oldY: number; midHeight: number; endHeight: number; }