@xtctwins/tctwins-bimx-viewer 0.1.0

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.
Files changed (44) hide show
  1. package/README.md +0 -0
  2. package/dist/tctwins-bimx-viewer.min.es.js +847 -0
  3. package/dist/version.js +2 -0
  4. package/package.json +60 -0
  5. package/types/index.d.ts +6 -0
  6. package/types/src/BIMViewer.d.ts +668 -0
  7. package/types/src/BusyModal.d.ts +28 -0
  8. package/types/src/Controller.d.ts +142 -0
  9. package/types/src/EventTrigger.d.ts +23 -0
  10. package/types/src/IFCElementDescriptions/IFCElementDescriptions.d.ts +780 -0
  11. package/types/src/IFCObjectDefaults/ModelIFCObjectColors.d.ts +26 -0
  12. package/types/src/IFCObjectDefaults/ViewerIFCObjectColors.d.ts +161 -0
  13. package/types/src/TMap.d.ts +27 -0
  14. package/types/src/collision/ObjectsKdTree3.d.ts +37 -0
  15. package/types/src/contextMenus/CanvasContextMenu.d.ts +12 -0
  16. package/types/src/contextMenus/ModelsContextMenu.d.ts +13 -0
  17. package/types/src/contextMenus/ObjectContextMenu.d.ts +20 -0
  18. package/types/src/contextMenus/TreeViewContextMenu.d.ts +20 -0
  19. package/types/src/explorer/ClassesExplorer.d.ts +75 -0
  20. package/types/src/explorer/ModelsExplorer.d.ts +106 -0
  21. package/types/src/explorer/ObjectsExplorer.d.ts +44 -0
  22. package/types/src/explorer/StoreysExplorer.d.ts +58 -0
  23. package/types/src/inspector/PropertiesInspector.d.ts +39 -0
  24. package/types/src/messages.d.ts +373 -0
  25. package/types/src/server/OSSHelper.d.ts +4 -0
  26. package/types/src/server/Server.d.ts +129 -0
  27. package/types/src/toolbar/AnnotationTool.d.ts +71 -0
  28. package/types/src/toolbar/CommentsTool.d.ts +248 -0
  29. package/types/src/toolbar/FirstPersonMode.d.ts +55 -0
  30. package/types/src/toolbar/FitAction.d.ts +21 -0
  31. package/types/src/toolbar/HideTool.d.ts +13 -0
  32. package/types/src/toolbar/MarqueeSelectionTool.d.ts +28 -0
  33. package/types/src/toolbar/MeasureTool.d.ts +12 -0
  34. package/types/src/toolbar/MeasureTools/MeasureAngleTool.d.ts +115 -0
  35. package/types/src/toolbar/MeasureTools/MeasureDistanceTool.d.ts +123 -0
  36. package/types/src/toolbar/NavCubeMode.d.ts +21 -0
  37. package/types/src/toolbar/OrthoMode.d.ts +21 -0
  38. package/types/src/toolbar/QueryTool.d.ts +13 -0
  39. package/types/src/toolbar/ResetAction.d.ts +16 -0
  40. package/types/src/toolbar/SectionTool.d.ts +131 -0
  41. package/types/src/toolbar/SelectionTool.d.ts +14 -0
  42. package/types/src/toolbar/SettingTool.d.ts +13 -0
  43. package/types/src/toolbar/ShowSpacesMode.d.ts +22 -0
  44. package/types/src/toolbar/ThreeDMode.d.ts +20 -0
@@ -0,0 +1,131 @@
1
+ import { SectionPlanesPlugin } from "@xtctwins/tctwins-core";
2
+ import Controller from "../Controller";
3
+ import EventTrigger from "../EventTrigger";
4
+ /**
5
+ * 表示切片工具类
6
+ * @class
7
+ */
8
+ export default class SectionTool extends Controller {
9
+ protected _sectionPlanesPlugin: SectionPlanesPlugin;
10
+ protected _onHover: any;
11
+ protected eventTrigger: EventTrigger;
12
+ protected _isTouch: boolean;
13
+ constructor(parent: any, cfg: any);
14
+ /**
15
+ * 初始化剖切点击事件
16
+ *
17
+ */
18
+ protected _initSectionMode(): void;
19
+ /**
20
+ * 设置是否是触屏模式
21
+ * @param {boolean} isTouch
22
+ */
23
+ set isTouch(isTouch: boolean);
24
+ /**
25
+ * 设置剖切方式
26
+ * @param {string} sectionWay
27
+ */
28
+ set sectionWay(sectionWay: string);
29
+ /**
30
+ * 设置剖切面方向
31
+ * @param {number} direction
32
+ */
33
+ set sectionDirection(direction: number);
34
+ setControlPos(posRate: number): void;
35
+ /**
36
+ * 设置剖切对象样式
37
+ * @param {any} cfg
38
+ * @param {number} cfg.planeSize
39
+ * @param {number} cfg.controlSize
40
+ * @param {number} cfg.planeOpacity
41
+ * @param {number[]} cfg.controlFillColor
42
+ * @param {number[]} cfg.controlEdgeColor
43
+ */
44
+ set sectionConfigs(cfg: string);
45
+ /**
46
+ * 创建新的剖切面
47
+ * @param position
48
+ * @param direction
49
+ */
50
+ creatSection(position: any, direction: any): void;
51
+ /**
52
+ * 获取所有剖切面对象
53
+ * @returns 返回一个包含所有剖切id和对象的{}
54
+ */
55
+ getSectionPlanes(): {
56
+ [key: string]: import("@xtctwins/tctwins-core").SectionPlane;
57
+ };
58
+ /**
59
+ * 获取指定剖切面对象
60
+ * {[key: string]: SectionPlane}
61
+ * @param id
62
+ * @returns
63
+ */
64
+ getSectionPlane(id: string): import("@xtctwins/tctwins-core").SectionPlane;
65
+ /**
66
+ * 激活指定id剖切面对象
67
+ * @param id
68
+ */
69
+ setSectionEnable(id: string): void;
70
+ /**
71
+ * 取消激活指定id剖切面对象
72
+ * @param id
73
+ */
74
+ setSectionDisable(id: string): void;
75
+ /**
76
+ * 设置指定id剖切面的位置
77
+ * @param pos
78
+ */
79
+ setSectionPos(id: string, pos: number[]): void;
80
+ /**
81
+ * 翻转指定id剖切面对象
82
+ * @param id
83
+ */
84
+ flipSection(id: string): void;
85
+ /**
86
+ * 获取剖切面对象数量
87
+ */
88
+ getNumSections(): number;
89
+ /**
90
+ * 清除所有剖切面
91
+ */
92
+ clear(): void;
93
+ /**
94
+ * 翻转所有剖切面
95
+ */
96
+ flipSections(): void;
97
+ /**
98
+ * 返回当前展示了的剖切面的id
99
+ */
100
+ getShownControl(): void;
101
+ /**
102
+ * 激活所有剖切面
103
+ */
104
+ enableSections(): void;
105
+ /**
106
+ * 取消激活所有剖切面
107
+ */
108
+ disableSections(): void;
109
+ /**
110
+ * 隐藏所有展示了的剖切面
111
+ */
112
+ hideControl(): void;
113
+ /**
114
+ * 展示所有剖切面
115
+ */
116
+ showControl(): void;
117
+ /**
118
+ *
119
+ * @param id 展示指定id的剖切面
120
+ */
121
+ showSectionPlane(id: string): void;
122
+ /**
123
+ * destroy所有和剖切组件相关的内容,包括剖切插件对象和所有剖切面
124
+ */
125
+ destroy(): void;
126
+ /**
127
+ * 删除指定剖切面
128
+ * @param id
129
+ */
130
+ destroySectionPlane(id: string): void;
131
+ }
@@ -0,0 +1,14 @@
1
+ import Controller from "../Controller";
2
+ /**
3
+ * 表示选择工具类
4
+ * @class
5
+ */
6
+ export default class SelectionTool extends Controller {
7
+ protected _onPick: any;
8
+ /**
9
+ * 创建一个选择工具对象
10
+ * @param {*} parent
11
+ * @param {*} cfg
12
+ */
13
+ constructor(parent: any, cfg: any);
14
+ }
@@ -0,0 +1,13 @@
1
+ import Controller from "../Controller";
2
+ /**
3
+ * 表示设置工具类
4
+ * @class
5
+ */
6
+ export default class SettingTool extends Controller {
7
+ /**
8
+ * 创建一个设置工具对象
9
+ * @param {*} parent
10
+ * @param {*} cfg
11
+ */
12
+ constructor(parent: any, cfg: any);
13
+ }
@@ -0,0 +1,22 @@
1
+ import Controller from "../Controller";
2
+ /**
3
+ * ifc空间构建显隐控制
4
+ * @class
5
+ */
6
+ export default class ShowSpacesMode extends Controller {
7
+ protected _active: any;
8
+ /**
9
+ *
10
+ * @param {*} parent
11
+ * @param {*} cfg
12
+ */
13
+ constructor(parent: any, cfg: any);
14
+ setActive(active: any, done?: Function): void;
15
+ /**
16
+ * 设置ifc空间对象为半透明
17
+ */
18
+ private setIFCSpaceOpacity;
19
+ private _enterShowSpacesMode;
20
+ private _exitShowSpacesMode;
21
+ get spaceObjects(): any;
22
+ }
@@ -0,0 +1,20 @@
1
+ import Controller from "../Controller";
2
+ /**
3
+ *
4
+ * @class
5
+ */
6
+ export default class ThreeDMode extends Controller {
7
+ protected _saveOrthoActive: any;
8
+ protected _cameraControlNavModeMediator: any;
9
+ protected _active: boolean;
10
+ /**
11
+ *
12
+ * @param {*} parent
13
+ * @param {*} cfg
14
+ */
15
+ constructor(parent: any, cfg: any);
16
+ setEnabled(enabled: boolean): void;
17
+ setActive(active: boolean, done?: Function): void;
18
+ protected _enterThreeDMode(done?: Function): void;
19
+ protected _exitThreeDMode(done?: Function): void;
20
+ }