@xtctwins/tctwins-industry-engine 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/AnnotationTool-p1JXCwLS.mjs +129 -0
- package/dist/BCFTool-Cssf2dIk.mjs +25118 -0
- package/dist/CommentTool-Bug4iFC9.mjs +167 -0
- package/dist/Industry_Viewer_Lib.es.js +12 -0
- package/dist/Industry_Viewer_Lib.umd.js +633 -0
- package/dist/InspectorTool-BJzXtOU-.mjs +674 -0
- package/dist/MeasureTool-Dkrz8dS6.mjs +168 -0
- package/dist/MouseTool-Cvc5G90V.mjs +80 -0
- package/dist/NavigateTool-DwEEE5nd.mjs +52 -0
- package/dist/RoamTool-dChjfNvn.mjs +212 -0
- package/dist/ScreenShotTool-CPrA7pEa.mjs +357 -0
- package/dist/SectionTool-Du-V6U-J.mjs +217 -0
- package/dist/SettingTool-X6AjiptI.mjs +691 -0
- package/dist/StructureTree-CHhrQiDL.mjs +1591 -0
- package/dist/XRayTool-Ci1SR92x.mjs +57 -0
- package/dist/alert-BzjOjWCu.mjs +46 -0
- package/dist/const-DeViLYl5.mjs +266 -0
- package/dist/el-checkbox-DeNYO9VE.mjs +460 -0
- package/dist/el-input-number-CsUyeV_5.mjs +858 -0
- package/dist/index-CBO0Vhj8.mjs +99354 -0
- package/dist/index.html +17 -0
- package/dist/panel.vue_vue_type_style_index_0_lang-CUi6naB0.mjs +61 -0
- package/dist/style.css +1 -0
- package/dist/tallPanel-D226sbKd.mjs +84 -0
- package/package.json +65 -0
- package/types/App.vue.d.ts +2 -0
- package/types/components/BCFComponents/BCFAddPanel.vue.d.ts +55 -0
- package/types/components/BCFComponents/BCFDetailPanel.vue.d.ts +59 -0
- package/types/components/BCFComponents/BCFDisplayList.vue.d.ts +18 -0
- package/types/components/BCFComponents/BCFFilter.vue.d.ts +14 -0
- package/types/components/BCFComponents/BCFTool.vue.d.ts +15 -0
- package/types/components/BCFComponents/addObjectOrAnno.vue.d.ts +16 -0
- package/types/components/BCFComponents/checkObjectPanel.vue.d.ts +11 -0
- package/types/components/BCFComponents/commentInput.vue.d.ts +51 -0
- package/types/components/BCFComponents/commentsView.vue.d.ts +48 -0
- package/types/components/BCFComponents/dialogPanel.vue.d.ts +15 -0
- package/types/components/BCFComponents/imageView.vue.d.ts +17 -0
- package/types/components/BCFComponents/imageZoomIn.vue.d.ts +9 -0
- package/types/components/BimViewerComponents/AnnotationTool.vue.d.ts +14 -0
- package/types/components/BimViewerComponents/ClickEvent.vue.d.ts +6 -0
- package/types/components/BimViewerComponents/CommentTool.vue.d.ts +12 -0
- package/types/components/BimViewerComponents/InspectorTool.vue.d.ts +12 -0
- package/types/components/BimViewerComponents/MeasureTool.vue.d.ts +12 -0
- package/types/components/BimViewerComponents/MouseTool.vue.d.ts +6 -0
- package/types/components/BimViewerComponents/NavigateTool.vue.d.ts +10 -0
- package/types/components/BimViewerComponents/RoamTool.vue.d.ts +12 -0
- package/types/components/BimViewerComponents/ScreenShotTool.vue.d.ts +10 -0
- package/types/components/BimViewerComponents/SectionTool.vue.d.ts +10 -0
- package/types/components/BimViewerComponents/SettingTool.vue.d.ts +13 -0
- package/types/components/BimViewerComponents/StructureTree.vue.d.ts +3053 -0
- package/types/components/BimViewerComponents/Toolbar.vue.d.ts +10 -0
- package/types/components/BimViewerComponents/XRayTool.vue.d.ts +12 -0
- package/types/components/BimViewerComponents/mobileToolbar.vue.d.ts +27 -0
- package/types/components/MobileBCFComponents/MobileBCFAdd.vue.d.ts +56 -0
- package/types/components/MobileBCFComponents/MobileBCFDetail.vue.d.ts +55 -0
- package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +278 -0
- package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +255 -0
- package/types/components/MobileBCFComponents/MobileBCFTool.vue.d.ts +15 -0
- package/types/components/MobileBCFComponents/MobileCommentInput.vue.d.ts +54 -0
- package/types/components/MobileBCFComponents/MobileCommentsView.vue.d.ts +17 -0
- package/types/components/MobileBCFComponents/selectPanel.vue.d.ts +12 -0
- package/types/components/index.d.ts +3 -0
- package/types/components/industryViewer.vue.d.ts +18 -0
- package/types/components/utilsComponents/alert.vue.d.ts +32 -0
- package/types/components/utilsComponents/closeButton.vue.d.ts +50 -0
- package/types/components/utilsComponents/closeButton_dark.vue.d.ts +32 -0
- package/types/components/utilsComponents/emptyPage.vue.d.ts +6 -0
- package/types/components/utilsComponents/loading.vue.d.ts +2 -0
- package/types/components/utilsComponents/panel.vue.d.ts +47 -0
- package/types/components/utilsComponents/rectangleButton.vue.d.ts +106 -0
- package/types/components/utilsComponents/tallPanel.vue.d.ts +69 -0
- package/types/components/utilsComponents/tallPanel_noPos.vue.d.ts +82 -0
- package/types/index.d.ts +31 -0
- package/types/main.d.ts +1 -0
- package/types/pages/viewerEntry.vue.d.ts +59 -0
- package/types/services/request/config.d.ts +8 -0
- package/types/store/bcfManager.d.ts +11 -0
- package/types/store/bcfReflect.d.ts +88 -0
- package/types/store/const.d.ts +211 -0
- package/types/store/initConfigs.d.ts +58 -0
- package/types/store/propertyReflect.d.ts +1 -0
- package/types/store/themeManager.d.ts +8 -0
- package/types/store/toolbars.d.ts +392 -0
- package/types/utils/OSSHelper.d.ts +4 -0
- package/types/utils/cacheInfo.d.ts +20 -0
- package/types/utils/dateFormat.d.ts +2 -0
- package/types/utils/dpscan.d.ts +1 -0
- package/types/utils/eventBus.d.ts +86 -0
- package/types/utils/roles.d.ts +1 -0
- package/types/utils/splitType.d.ts +3 -0
- package/types/utils/timer.d.ts +9 -0
- package/types/viewerManager/initial/viewerInitial.d.ts +7 -0
- package/types/viewerManager/load/loadModel.d.ts +1 -0
- package/types/viewerManager/viewerManager.d.ts +12 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export type UserInfo = {
|
|
2
|
+
isMember: boolean;
|
|
3
|
+
isInShare: boolean;
|
|
4
|
+
isShareHost: boolean;
|
|
5
|
+
isShareClient: boolean;
|
|
6
|
+
};
|
|
7
|
+
export type AnnotationLimit = {
|
|
8
|
+
file: boolean;
|
|
9
|
+
image: boolean;
|
|
10
|
+
record: boolean;
|
|
11
|
+
text: boolean;
|
|
12
|
+
video: boolean;
|
|
13
|
+
};
|
|
14
|
+
export type Offset = {
|
|
15
|
+
offsetX: number;
|
|
16
|
+
offsetY: number;
|
|
17
|
+
};
|
|
18
|
+
export type AppType = "architecture" | "industry";
|
|
19
|
+
export type BasicDir = "left" | "right" | "bottom" | "top";
|
|
20
|
+
export type BasicMixDir = "right-top" | "right-bottom" | "left-top" | "left-bottom";
|
|
21
|
+
export type ThemeColor = "blue" | "light-gray";
|
|
22
|
+
export type NavCubeDir = BasicMixDir;
|
|
23
|
+
export type NavCubePos = {
|
|
24
|
+
pos?: NavCubeDir;
|
|
25
|
+
};
|
|
26
|
+
export type NavCubePosNum = {
|
|
27
|
+
pos?: NavCubeDir;
|
|
28
|
+
posNum?: number[];
|
|
29
|
+
};
|
|
30
|
+
export type ToolDir = BasicDir | BasicMixDir;
|
|
31
|
+
export type ToolPos = {
|
|
32
|
+
pos?: ToolDir;
|
|
33
|
+
posNum?: number[];
|
|
34
|
+
};
|
|
35
|
+
export type TallPanelPos = "left" | "right";
|
|
36
|
+
/**配置参数 */
|
|
37
|
+
export type ConfigsParams = {
|
|
38
|
+
toolList?: number[];
|
|
39
|
+
configs?: Partial<Record<ConfigNames, any>>;
|
|
40
|
+
callback?: Function;
|
|
41
|
+
};
|
|
42
|
+
/**基础配置 */
|
|
43
|
+
export type BasicConfig = "showTree" | "showRoam" | "annoLimit" | "userInfo" | "isMobile" | "isPc" | "loadMeta" | "outliersDetect" | "fileName" | "themeColor" | "hideTool" | "backButton" | "backgroundColor" | "appType";
|
|
44
|
+
/**边距配置 */
|
|
45
|
+
export type MarginConfig = "topHeight" | "rightWidth" | "bottomHeight" | "leftWidth";
|
|
46
|
+
/**界面配置 */
|
|
47
|
+
export type UIConfig = "inspectorPos" | "treePos" | "commentPos" | "annotationPos";
|
|
48
|
+
/**引擎配置 */
|
|
49
|
+
export type ViewerConfig = "commentOffset" | "measureOffset" | "roamPos" | "navCubePos" | "navCubeSize" | "skyboxImg";
|
|
50
|
+
/**配置名称 */
|
|
51
|
+
export type ConfigNames = BasicConfig | MarginConfig | UIConfig | ViewerConfig;
|
|
52
|
+
type ConfigValues = boolean | AnnotationLimit | UserInfo | Offset | NavCubePos | NavCubePosNum | String | Number | ToolPos | undefined | HTMLImageElement;
|
|
53
|
+
export declare let INDUSTRY_CONFIGS: Record<ConfigNames, ConfigValues>;
|
|
54
|
+
export declare function InitConfigs(): void;
|
|
55
|
+
export declare function setConfigs(configs: Partial<Record<ConfigNames, ConfigValues>>): void;
|
|
56
|
+
export declare function setConfig(name: ConfigNames, value: ConfigValues | undefined, straight?: boolean): void;
|
|
57
|
+
export declare function getConfig(name: ConfigNames): any;
|
|
58
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function translateProperties(key: any): any;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export default class ThemeManager {
|
|
2
|
+
static ConfigViewer(): void;
|
|
3
|
+
static get currentTheme(): string | null;
|
|
4
|
+
static setTheme(themeName: string): void;
|
|
5
|
+
static setProperty(name: string, content: string): void;
|
|
6
|
+
static getProperty(name: string): string;
|
|
7
|
+
}
|
|
8
|
+
export declare const getNavPos: (move: boolean, extraWidth: number) => number[];
|
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
export type ComponentName = "StructureTree" | "InspectorTool" | "XRayTool" | "RoamTool" | "MeasureTool" | "SectionTool" | "CommentTool" | "AnnotationTool" | "ScreenShotTool" | "SettingTool" | "NavigateTool" | "BCFTool" | "MobileBCFTool" | "MouseTool";
|
|
2
|
+
export type Tool = {
|
|
3
|
+
id: number;
|
|
4
|
+
key: string;
|
|
5
|
+
name: string;
|
|
6
|
+
hasActiveState: boolean;
|
|
7
|
+
component: ComponentName | "";
|
|
8
|
+
isShowDelimiter: boolean;
|
|
9
|
+
img: string;
|
|
10
|
+
imgActive: string;
|
|
11
|
+
isActive: boolean;
|
|
12
|
+
};
|
|
13
|
+
export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar", {
|
|
14
|
+
tools: Tool[];
|
|
15
|
+
visibleToolIds: number[];
|
|
16
|
+
readyToolIds: number[];
|
|
17
|
+
}, {
|
|
18
|
+
visibleTools: (state: {
|
|
19
|
+
tools: {
|
|
20
|
+
id: number;
|
|
21
|
+
key: string;
|
|
22
|
+
name: string;
|
|
23
|
+
hasActiveState: boolean;
|
|
24
|
+
component: ComponentName | "";
|
|
25
|
+
isShowDelimiter: boolean;
|
|
26
|
+
img: string;
|
|
27
|
+
imgActive: string;
|
|
28
|
+
isActive: boolean;
|
|
29
|
+
}[];
|
|
30
|
+
visibleToolIds: number[];
|
|
31
|
+
readyToolIds: number[];
|
|
32
|
+
} & import('pinia').PiniaCustomStateProperties<{
|
|
33
|
+
tools: Tool[];
|
|
34
|
+
visibleToolIds: number[];
|
|
35
|
+
readyToolIds: number[];
|
|
36
|
+
}>) => Tool[];
|
|
37
|
+
readyTools: (state: {
|
|
38
|
+
tools: {
|
|
39
|
+
id: number;
|
|
40
|
+
key: string;
|
|
41
|
+
name: string;
|
|
42
|
+
hasActiveState: boolean;
|
|
43
|
+
component: ComponentName | "";
|
|
44
|
+
isShowDelimiter: boolean;
|
|
45
|
+
img: string;
|
|
46
|
+
imgActive: string;
|
|
47
|
+
isActive: boolean;
|
|
48
|
+
}[];
|
|
49
|
+
visibleToolIds: number[];
|
|
50
|
+
readyToolIds: number[];
|
|
51
|
+
} & import('pinia').PiniaCustomStateProperties<{
|
|
52
|
+
tools: Tool[];
|
|
53
|
+
visibleToolIds: number[];
|
|
54
|
+
readyToolIds: number[];
|
|
55
|
+
}>) => number[];
|
|
56
|
+
visibleComponents: (state: {
|
|
57
|
+
tools: {
|
|
58
|
+
id: number;
|
|
59
|
+
key: string;
|
|
60
|
+
name: string;
|
|
61
|
+
hasActiveState: boolean;
|
|
62
|
+
component: ComponentName | "";
|
|
63
|
+
isShowDelimiter: boolean;
|
|
64
|
+
img: string;
|
|
65
|
+
imgActive: string;
|
|
66
|
+
isActive: boolean;
|
|
67
|
+
}[];
|
|
68
|
+
visibleToolIds: number[];
|
|
69
|
+
readyToolIds: number[];
|
|
70
|
+
} & import('pinia').PiniaCustomStateProperties<{
|
|
71
|
+
tools: Tool[];
|
|
72
|
+
visibleToolIds: number[];
|
|
73
|
+
readyToolIds: number[];
|
|
74
|
+
}>) => ("" | ComponentName)[];
|
|
75
|
+
getKeyById: (state: {
|
|
76
|
+
tools: {
|
|
77
|
+
id: number;
|
|
78
|
+
key: string;
|
|
79
|
+
name: string;
|
|
80
|
+
hasActiveState: boolean;
|
|
81
|
+
component: ComponentName | "";
|
|
82
|
+
isShowDelimiter: boolean;
|
|
83
|
+
img: string;
|
|
84
|
+
imgActive: string;
|
|
85
|
+
isActive: boolean;
|
|
86
|
+
}[];
|
|
87
|
+
visibleToolIds: number[];
|
|
88
|
+
readyToolIds: number[];
|
|
89
|
+
} & import('pinia').PiniaCustomStateProperties<{
|
|
90
|
+
tools: Tool[];
|
|
91
|
+
visibleToolIds: number[];
|
|
92
|
+
readyToolIds: number[];
|
|
93
|
+
}>) => (toolId: number) => string | undefined;
|
|
94
|
+
getToolById: (state: {
|
|
95
|
+
tools: {
|
|
96
|
+
id: number;
|
|
97
|
+
key: string;
|
|
98
|
+
name: string;
|
|
99
|
+
hasActiveState: boolean;
|
|
100
|
+
component: ComponentName | "";
|
|
101
|
+
isShowDelimiter: boolean;
|
|
102
|
+
img: string;
|
|
103
|
+
imgActive: string;
|
|
104
|
+
isActive: boolean;
|
|
105
|
+
}[];
|
|
106
|
+
visibleToolIds: number[];
|
|
107
|
+
readyToolIds: number[];
|
|
108
|
+
} & import('pinia').PiniaCustomStateProperties<{
|
|
109
|
+
tools: Tool[];
|
|
110
|
+
visibleToolIds: number[];
|
|
111
|
+
readyToolIds: number[];
|
|
112
|
+
}>) => (toolId: number) => Tool | undefined;
|
|
113
|
+
hasActiveState: (state: {
|
|
114
|
+
tools: {
|
|
115
|
+
id: number;
|
|
116
|
+
key: string;
|
|
117
|
+
name: string;
|
|
118
|
+
hasActiveState: boolean;
|
|
119
|
+
component: ComponentName | "";
|
|
120
|
+
isShowDelimiter: boolean;
|
|
121
|
+
img: string;
|
|
122
|
+
imgActive: string;
|
|
123
|
+
isActive: boolean;
|
|
124
|
+
}[];
|
|
125
|
+
visibleToolIds: number[];
|
|
126
|
+
readyToolIds: number[];
|
|
127
|
+
} & import('pinia').PiniaCustomStateProperties<{
|
|
128
|
+
tools: Tool[];
|
|
129
|
+
visibleToolIds: number[];
|
|
130
|
+
readyToolIds: number[];
|
|
131
|
+
}>) => (id: number) => boolean;
|
|
132
|
+
isToolEnable: (state: {
|
|
133
|
+
tools: {
|
|
134
|
+
id: number;
|
|
135
|
+
key: string;
|
|
136
|
+
name: string;
|
|
137
|
+
hasActiveState: boolean;
|
|
138
|
+
component: ComponentName | "";
|
|
139
|
+
isShowDelimiter: boolean;
|
|
140
|
+
img: string;
|
|
141
|
+
imgActive: string;
|
|
142
|
+
isActive: boolean;
|
|
143
|
+
}[];
|
|
144
|
+
visibleToolIds: number[];
|
|
145
|
+
readyToolIds: number[];
|
|
146
|
+
} & import('pinia').PiniaCustomStateProperties<{
|
|
147
|
+
tools: Tool[];
|
|
148
|
+
visibleToolIds: number[];
|
|
149
|
+
readyToolIds: number[];
|
|
150
|
+
}>) => (id: number) => boolean;
|
|
151
|
+
isToolActive: (state: {
|
|
152
|
+
tools: {
|
|
153
|
+
id: number;
|
|
154
|
+
key: string;
|
|
155
|
+
name: string;
|
|
156
|
+
hasActiveState: boolean;
|
|
157
|
+
component: ComponentName | "";
|
|
158
|
+
isShowDelimiter: boolean;
|
|
159
|
+
img: string;
|
|
160
|
+
imgActive: string;
|
|
161
|
+
isActive: boolean;
|
|
162
|
+
}[];
|
|
163
|
+
visibleToolIds: number[];
|
|
164
|
+
readyToolIds: number[];
|
|
165
|
+
} & import('pinia').PiniaCustomStateProperties<{
|
|
166
|
+
tools: Tool[];
|
|
167
|
+
visibleToolIds: number[];
|
|
168
|
+
readyToolIds: number[];
|
|
169
|
+
}>) => (id: number) => boolean;
|
|
170
|
+
isToolActiveBykey: (state: {
|
|
171
|
+
tools: {
|
|
172
|
+
id: number;
|
|
173
|
+
key: string;
|
|
174
|
+
name: string;
|
|
175
|
+
hasActiveState: boolean;
|
|
176
|
+
component: ComponentName | "";
|
|
177
|
+
isShowDelimiter: boolean;
|
|
178
|
+
img: string;
|
|
179
|
+
imgActive: string;
|
|
180
|
+
isActive: boolean;
|
|
181
|
+
}[];
|
|
182
|
+
visibleToolIds: number[];
|
|
183
|
+
readyToolIds: number[];
|
|
184
|
+
} & import('pinia').PiniaCustomStateProperties<{
|
|
185
|
+
tools: Tool[];
|
|
186
|
+
visibleToolIds: number[];
|
|
187
|
+
readyToolIds: number[];
|
|
188
|
+
}>) => (key: string) => boolean;
|
|
189
|
+
}, {
|
|
190
|
+
toggleToolVisibility(toolId: any): void;
|
|
191
|
+
setEnableTools(toolIds: number[]): void;
|
|
192
|
+
setEnableToolsByKey(keys: string[]): void;
|
|
193
|
+
setToolActiveStatus(toolId: number, isOpen?: boolean): void;
|
|
194
|
+
setToolActiveStatusBykey(key: string, isOpen?: boolean): void;
|
|
195
|
+
setAllToolClose(extraTool?: number[]): void;
|
|
196
|
+
setReadyById(toolId: number): void;
|
|
197
|
+
ifToolAllReady(): boolean;
|
|
198
|
+
setReadyTools(toolIds: number[]): void;
|
|
199
|
+
}>;
|
|
200
|
+
export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
201
|
+
tools: Tool[];
|
|
202
|
+
visibleToolIds: number[];
|
|
203
|
+
readyToolIds: number[];
|
|
204
|
+
}, {
|
|
205
|
+
visibleTools: (state: {
|
|
206
|
+
tools: {
|
|
207
|
+
id: number;
|
|
208
|
+
key: string;
|
|
209
|
+
name: string;
|
|
210
|
+
hasActiveState: boolean;
|
|
211
|
+
component: ComponentName | "";
|
|
212
|
+
isShowDelimiter: boolean;
|
|
213
|
+
img: string;
|
|
214
|
+
imgActive: string;
|
|
215
|
+
isActive: boolean;
|
|
216
|
+
}[];
|
|
217
|
+
visibleToolIds: number[];
|
|
218
|
+
readyToolIds: number[];
|
|
219
|
+
} & import('pinia').PiniaCustomStateProperties<{
|
|
220
|
+
tools: Tool[];
|
|
221
|
+
visibleToolIds: number[];
|
|
222
|
+
readyToolIds: number[];
|
|
223
|
+
}>) => Tool[];
|
|
224
|
+
readyTools: (state: {
|
|
225
|
+
tools: {
|
|
226
|
+
id: number;
|
|
227
|
+
key: string;
|
|
228
|
+
name: string;
|
|
229
|
+
hasActiveState: boolean;
|
|
230
|
+
component: ComponentName | "";
|
|
231
|
+
isShowDelimiter: boolean;
|
|
232
|
+
img: string;
|
|
233
|
+
imgActive: string;
|
|
234
|
+
isActive: boolean;
|
|
235
|
+
}[];
|
|
236
|
+
visibleToolIds: number[];
|
|
237
|
+
readyToolIds: number[];
|
|
238
|
+
} & import('pinia').PiniaCustomStateProperties<{
|
|
239
|
+
tools: Tool[];
|
|
240
|
+
visibleToolIds: number[];
|
|
241
|
+
readyToolIds: number[];
|
|
242
|
+
}>) => number[];
|
|
243
|
+
visibleComponents: (state: {
|
|
244
|
+
tools: {
|
|
245
|
+
id: number;
|
|
246
|
+
key: string;
|
|
247
|
+
name: string;
|
|
248
|
+
hasActiveState: boolean;
|
|
249
|
+
component: ComponentName | "";
|
|
250
|
+
isShowDelimiter: boolean;
|
|
251
|
+
img: string;
|
|
252
|
+
imgActive: string;
|
|
253
|
+
isActive: boolean;
|
|
254
|
+
}[];
|
|
255
|
+
visibleToolIds: number[];
|
|
256
|
+
readyToolIds: number[];
|
|
257
|
+
} & import('pinia').PiniaCustomStateProperties<{
|
|
258
|
+
tools: Tool[];
|
|
259
|
+
visibleToolIds: number[];
|
|
260
|
+
readyToolIds: number[];
|
|
261
|
+
}>) => ("" | ComponentName)[];
|
|
262
|
+
getKeyById: (state: {
|
|
263
|
+
tools: {
|
|
264
|
+
id: number;
|
|
265
|
+
key: string;
|
|
266
|
+
name: string;
|
|
267
|
+
hasActiveState: boolean;
|
|
268
|
+
component: ComponentName | "";
|
|
269
|
+
isShowDelimiter: boolean;
|
|
270
|
+
img: string;
|
|
271
|
+
imgActive: string;
|
|
272
|
+
isActive: boolean;
|
|
273
|
+
}[];
|
|
274
|
+
visibleToolIds: number[];
|
|
275
|
+
readyToolIds: number[];
|
|
276
|
+
} & import('pinia').PiniaCustomStateProperties<{
|
|
277
|
+
tools: Tool[];
|
|
278
|
+
visibleToolIds: number[];
|
|
279
|
+
readyToolIds: number[];
|
|
280
|
+
}>) => (toolId: number) => string | undefined;
|
|
281
|
+
getToolById: (state: {
|
|
282
|
+
tools: {
|
|
283
|
+
id: number;
|
|
284
|
+
key: string;
|
|
285
|
+
name: string;
|
|
286
|
+
hasActiveState: boolean;
|
|
287
|
+
component: ComponentName | "";
|
|
288
|
+
isShowDelimiter: boolean;
|
|
289
|
+
img: string;
|
|
290
|
+
imgActive: string;
|
|
291
|
+
isActive: boolean;
|
|
292
|
+
}[];
|
|
293
|
+
visibleToolIds: number[];
|
|
294
|
+
readyToolIds: number[];
|
|
295
|
+
} & import('pinia').PiniaCustomStateProperties<{
|
|
296
|
+
tools: Tool[];
|
|
297
|
+
visibleToolIds: number[];
|
|
298
|
+
readyToolIds: number[];
|
|
299
|
+
}>) => (toolId: number) => Tool | undefined;
|
|
300
|
+
hasActiveState: (state: {
|
|
301
|
+
tools: {
|
|
302
|
+
id: number;
|
|
303
|
+
key: string;
|
|
304
|
+
name: string;
|
|
305
|
+
hasActiveState: boolean;
|
|
306
|
+
component: ComponentName | "";
|
|
307
|
+
isShowDelimiter: boolean;
|
|
308
|
+
img: string;
|
|
309
|
+
imgActive: string;
|
|
310
|
+
isActive: boolean;
|
|
311
|
+
}[];
|
|
312
|
+
visibleToolIds: number[];
|
|
313
|
+
readyToolIds: number[];
|
|
314
|
+
} & import('pinia').PiniaCustomStateProperties<{
|
|
315
|
+
tools: Tool[];
|
|
316
|
+
visibleToolIds: number[];
|
|
317
|
+
readyToolIds: number[];
|
|
318
|
+
}>) => (id: number) => boolean;
|
|
319
|
+
isToolEnable: (state: {
|
|
320
|
+
tools: {
|
|
321
|
+
id: number;
|
|
322
|
+
key: string;
|
|
323
|
+
name: string;
|
|
324
|
+
hasActiveState: boolean;
|
|
325
|
+
component: ComponentName | "";
|
|
326
|
+
isShowDelimiter: boolean;
|
|
327
|
+
img: string;
|
|
328
|
+
imgActive: string;
|
|
329
|
+
isActive: boolean;
|
|
330
|
+
}[];
|
|
331
|
+
visibleToolIds: number[];
|
|
332
|
+
readyToolIds: number[];
|
|
333
|
+
} & import('pinia').PiniaCustomStateProperties<{
|
|
334
|
+
tools: Tool[];
|
|
335
|
+
visibleToolIds: number[];
|
|
336
|
+
readyToolIds: number[];
|
|
337
|
+
}>) => (id: number) => boolean;
|
|
338
|
+
isToolActive: (state: {
|
|
339
|
+
tools: {
|
|
340
|
+
id: number;
|
|
341
|
+
key: string;
|
|
342
|
+
name: string;
|
|
343
|
+
hasActiveState: boolean;
|
|
344
|
+
component: ComponentName | "";
|
|
345
|
+
isShowDelimiter: boolean;
|
|
346
|
+
img: string;
|
|
347
|
+
imgActive: string;
|
|
348
|
+
isActive: boolean;
|
|
349
|
+
}[];
|
|
350
|
+
visibleToolIds: number[];
|
|
351
|
+
readyToolIds: number[];
|
|
352
|
+
} & import('pinia').PiniaCustomStateProperties<{
|
|
353
|
+
tools: Tool[];
|
|
354
|
+
visibleToolIds: number[];
|
|
355
|
+
readyToolIds: number[];
|
|
356
|
+
}>) => (id: number) => boolean;
|
|
357
|
+
isToolActiveBykey: (state: {
|
|
358
|
+
tools: {
|
|
359
|
+
id: number;
|
|
360
|
+
key: string;
|
|
361
|
+
name: string;
|
|
362
|
+
hasActiveState: boolean;
|
|
363
|
+
component: ComponentName | "";
|
|
364
|
+
isShowDelimiter: boolean;
|
|
365
|
+
img: string;
|
|
366
|
+
imgActive: string;
|
|
367
|
+
isActive: boolean;
|
|
368
|
+
}[];
|
|
369
|
+
visibleToolIds: number[];
|
|
370
|
+
readyToolIds: number[];
|
|
371
|
+
} & import('pinia').PiniaCustomStateProperties<{
|
|
372
|
+
tools: Tool[];
|
|
373
|
+
visibleToolIds: number[];
|
|
374
|
+
readyToolIds: number[];
|
|
375
|
+
}>) => (key: string) => boolean;
|
|
376
|
+
}, {
|
|
377
|
+
toggleToolVisibility(toolId: any): void;
|
|
378
|
+
setEnableTools(toolIds: number[]): void;
|
|
379
|
+
setEnableToolsByKey(keys: string[]): void;
|
|
380
|
+
setToolActiveStatus(toolId: number, isOpen?: boolean): void;
|
|
381
|
+
setToolActiveStatusBykey(key: string, isOpen?: boolean): void;
|
|
382
|
+
setAllToolClose(extraTool?: number[]): void;
|
|
383
|
+
setReadyById(toolId: number): void;
|
|
384
|
+
ifToolAllReady(): boolean;
|
|
385
|
+
setReadyTools(toolIds: number[]): void;
|
|
386
|
+
}>;
|
|
387
|
+
export declare function InitToolBar(): void;
|
|
388
|
+
export declare let MobileToolOrder: string[];
|
|
389
|
+
export declare let PcToolOrder: string[];
|
|
390
|
+
export declare function setPcToolOrder(order: string[]): void;
|
|
391
|
+
export declare function setMobileToolOrder(order: string[]): void;
|
|
392
|
+
export declare function sortArrayByOrder(a: any, b: any): any;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 本地缓存
|
|
3
|
+
* LStorage
|
|
4
|
+
* sStorage
|
|
5
|
+
*/
|
|
6
|
+
declare enum StorageType {
|
|
7
|
+
l = "localStorage",
|
|
8
|
+
s = "sessionStorage"
|
|
9
|
+
}
|
|
10
|
+
declare class MyStorage {
|
|
11
|
+
storage: Storage;
|
|
12
|
+
constructor(type: StorageType);
|
|
13
|
+
set(key: string, value: any, expires?: boolean | number): void;
|
|
14
|
+
get(key: string): any;
|
|
15
|
+
remove(key: string): void;
|
|
16
|
+
clear(): void;
|
|
17
|
+
}
|
|
18
|
+
declare const LStorage: MyStorage;
|
|
19
|
+
declare const SStorage: MyStorage;
|
|
20
|
+
export { LStorage, SStorage };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function startDBSCAN(modelId: string): void;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { BcfTopic, BcfTopicTotal } from '../store/bcfReflect';
|
|
2
|
+
import { ToolDir } from '../store/initConfigs';
|
|
3
|
+
import { ComponentName } from '../store/toolbars';
|
|
4
|
+
import { InputComment } from '@xtctwins/tctwins-bimx-viewer/types/src/toolbar/BCFTool';
|
|
5
|
+
declare const emitter: import('mitt').Emitter<Record<import('mitt').EventType, unknown>>;
|
|
6
|
+
export default emitter;
|
|
7
|
+
export declare let EventMemory: {
|
|
8
|
+
INDUSTRY_CONFIGS: {
|
|
9
|
+
viewerManager: boolean;
|
|
10
|
+
Toolbar: boolean;
|
|
11
|
+
RoamTool: boolean;
|
|
12
|
+
};
|
|
13
|
+
BimViewer: {
|
|
14
|
+
viewerManager: boolean;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export type AnnoType = "file" | "image" | "record" | "text" | "video";
|
|
18
|
+
export type RoamEvent = "goUp" | "goDown" | "goLeft" | "goRight" | "goForward" | "goBackward" | "stop";
|
|
19
|
+
export type MeasureTool = "distance" | "angle";
|
|
20
|
+
export type EventContent = {
|
|
21
|
+
/**
|
|
22
|
+
* 是否是功能
|
|
23
|
+
*/
|
|
24
|
+
isTool: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* 触发的事件对象
|
|
27
|
+
*/
|
|
28
|
+
event_target: ComponentName | "BimXViewer" | "ToolBar";
|
|
29
|
+
/**
|
|
30
|
+
* 事件名称
|
|
31
|
+
*/
|
|
32
|
+
event_name: string;
|
|
33
|
+
/**
|
|
34
|
+
* 事件内容
|
|
35
|
+
*/
|
|
36
|
+
content: {
|
|
37
|
+
msg?: string;
|
|
38
|
+
code?: 200 | -1;
|
|
39
|
+
item?: any;
|
|
40
|
+
type?: string;
|
|
41
|
+
toolId?: number;
|
|
42
|
+
toolKey?: string;
|
|
43
|
+
color?: string;
|
|
44
|
+
active?: boolean;
|
|
45
|
+
enable?: boolean;
|
|
46
|
+
tool_type?: AnnoType;
|
|
47
|
+
annoId?: string;
|
|
48
|
+
currentAnnotation?: any;
|
|
49
|
+
rawFile?: any;
|
|
50
|
+
targetAnno?: any;
|
|
51
|
+
status?: string | boolean;
|
|
52
|
+
nodeId?: string | number;
|
|
53
|
+
entityId?: string | number;
|
|
54
|
+
objectId?: string | number;
|
|
55
|
+
viewer_nodeId?: string | number;
|
|
56
|
+
active_tree?: number;
|
|
57
|
+
img_data?: string;
|
|
58
|
+
roam?: RoamEvent;
|
|
59
|
+
newSets?: any;
|
|
60
|
+
direction?: number;
|
|
61
|
+
measureTool?: MeasureTool;
|
|
62
|
+
newMeasure?: any;
|
|
63
|
+
measurePrefer?: any;
|
|
64
|
+
bcf?: BcfTopic | BcfTopicTotal;
|
|
65
|
+
bcfId?: number;
|
|
66
|
+
bcf_guid?: string;
|
|
67
|
+
bcf_cmt?: InputComment;
|
|
68
|
+
bcf_cmt_guid?: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
type instructionName = "updateBcfList" | "checkBcfDetail" | "changeBackgroundColor" | "setNavCube" | "setAnnoStatus" | "lastSetsContent";
|
|
72
|
+
export type InstructionContent = {
|
|
73
|
+
instruct_name: instructionName;
|
|
74
|
+
content: {
|
|
75
|
+
type?: any;
|
|
76
|
+
active?: boolean;
|
|
77
|
+
color?: string;
|
|
78
|
+
move?: boolean;
|
|
79
|
+
pos?: ToolDir;
|
|
80
|
+
posNum?: number[];
|
|
81
|
+
index?: number;
|
|
82
|
+
bcfList?: BcfTopicTotal[];
|
|
83
|
+
bcfDetail?: BcfTopicTotal;
|
|
84
|
+
lastSet?: any;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getRole: (num: number) => "游客" | "普通用户" | "管理员" | "创建者" | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function viewerLoadModel(modelId: string, modelType: string, modelArrayBuffer: ArrayBuffer, multiModel?: boolean, callback?: Function): void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default class ViewerManager {
|
|
2
|
+
static viewerState: {
|
|
3
|
+
measureType: string;
|
|
4
|
+
};
|
|
5
|
+
static ConfigViewer(eventTarget?: string): void;
|
|
6
|
+
static SaveViewerState(content: any): void;
|
|
7
|
+
static SetToolActiveById(id: number, active?: boolean): void;
|
|
8
|
+
static SetToolActiveByKey(key: string, active?: boolean): void;
|
|
9
|
+
static SetAllClose(): void;
|
|
10
|
+
static DestroyViewer(): void;
|
|
11
|
+
static showRequestBusy(show: boolean, callback?: Function): void;
|
|
12
|
+
}
|