@xtctwins/tctwins-core 1.1.19 → 1.1.21

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 (151) hide show
  1. package/README.md +4 -4
  2. package/dist/tctwins-core.es5.js +27557 -27494
  3. package/dist/tctwins-core.min.es5.js +4 -4
  4. package/package.json +84 -84
  5. package/types/extras/ContextMenu/ContextMenu.d.ts +127 -127
  6. package/types/extras/ContextMenu/index.d.ts +1 -1
  7. package/types/extras/PointerCircle/PointerCircle.d.ts +51 -51
  8. package/types/extras/PointerCircle/index.d.ts +1 -1
  9. package/types/extras/PointerLens/PointerLens.d.ts +146 -146
  10. package/types/extras/index.d.ts +3 -3
  11. package/types/index.d.ts +3 -3
  12. package/types/plugins/AngleMeasurementsPlugin/AngleMeasurement.d.ts +204 -204
  13. package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsControl.d.ts +91 -91
  14. package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsMouseControl.d.ts +125 -125
  15. package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsPlugin.d.ts +151 -151
  16. package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsSimulateMouseControl.d.ts +86 -86
  17. package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsTouchControl.d.ts +124 -124
  18. package/types/plugins/AngleMeasurementsPlugin/index.d.ts +5 -5
  19. package/types/plugins/AnnotationsPlugin/Annotation.d.ts +135 -135
  20. package/types/plugins/AnnotationsPlugin/AnnotationsPlugin.d.ts +172 -172
  21. package/types/plugins/AnnotationsPlugin/index.d.ts +2 -2
  22. package/types/plugins/BCFViewpointsPlugin/BCFViewpointsPlugin.d.ts +148 -148
  23. package/types/plugins/BCFViewpointsPlugin/index.d.ts +1 -1
  24. package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurement.d.ts +253 -253
  25. package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsControl.d.ts +96 -96
  26. package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsMouseControl.d.ts +102 -102
  27. package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsPlugin.d.ts +192 -192
  28. package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsSimulateMouseControl.d.ts +83 -83
  29. package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsTouchControl.d.ts +103 -103
  30. package/types/plugins/DistanceMeasurementsPlugin/index.d.ts +5 -5
  31. package/types/plugins/FastNavPlugin/FastNavPlugin.d.ts +223 -223
  32. package/types/plugins/FastNavPlugin/index.d.ts +1 -1
  33. package/types/plugins/GLTFLoaderPlugin/GLTFLoaderPlugin.d.ts +142 -142
  34. package/types/plugins/GLTFLoaderPlugin/index.d.ts +1 -1
  35. package/types/plugins/LASLoaderPlugin/LASLoaderPlugin.d.ts +240 -240
  36. package/types/plugins/LASLoaderPlugin/index.d.ts +1 -1
  37. package/types/plugins/NavCubePlugin/NavCubePlugin.d.ts +177 -177
  38. package/types/plugins/NavCubePlugin/index.d.ts +1 -1
  39. package/types/plugins/ObjectEditPlugin/ObjectEditPlugin.d.ts +242 -242
  40. package/types/plugins/ObjectEditPlugin/index.d.ts +1 -1
  41. package/types/plugins/SectionPlanesPlugin/SectionBoxControl.d.ts +36 -36
  42. package/types/plugins/SectionPlanesPlugin/SectionPlanesPlugin.d.ts +186 -186
  43. package/types/plugins/SectionPlanesPlugin/index.d.ts +2 -2
  44. package/types/plugins/SkyboxesPlugin/SkyboxesPlugin.d.ts +66 -66
  45. package/types/plugins/SkyboxesPlugin/index.d.ts +1 -1
  46. package/types/plugins/StoreyViewsPlugin/Storey.d.ts +69 -69
  47. package/types/plugins/StoreyViewsPlugin/StoreyMap.d.ts +41 -41
  48. package/types/plugins/StoreyViewsPlugin/StoreyViewsPlugin.d.ts +180 -180
  49. package/types/plugins/StoreyViewsPlugin/index.d.ts +1 -1
  50. package/types/plugins/TreeViewPlugin/ModelTreeView.d.ts +24 -24
  51. package/types/plugins/TreeViewPlugin/TreeViewNode.d.ts +71 -71
  52. package/types/plugins/TreeViewPlugin/TreeViewPlugin.d.ts +267 -267
  53. package/types/plugins/TreeViewPlugin/index.d.ts +1 -1
  54. package/types/plugins/TreeViewPlugin/renderService.d.ts +128 -128
  55. package/types/plugins/ViewCullPlugin/ViewCullPlugin.d.ts +34 -34
  56. package/types/plugins/ViewCullPlugin/index.d.ts +1 -1
  57. package/types/plugins/WebIFCLoaderPlugin/WebIFCLoaderPlugin.d.ts +236 -236
  58. package/types/plugins/WebIFCLoaderPlugin/index.d.ts +1 -1
  59. package/types/plugins/XTCLoaderPlugin/XTCLoaderPlugin.d.ts +288 -288
  60. package/types/plugins/XTCLoaderPlugin/index.d.ts +1 -1
  61. package/types/plugins/index.d.ts +30 -30
  62. package/types/viewer/Configs.d.ts +46 -46
  63. package/types/viewer/Plugin.d.ts +69 -69
  64. package/types/viewer/Viewer.d.ts +282 -282
  65. package/types/viewer/index.d.ts +6 -6
  66. package/types/viewer/localization/LocaleService.d.ts +183 -183
  67. package/types/viewer/metadata/IFCObjectDefaults.d.ts +9 -9
  68. package/types/viewer/metadata/MetaModel.d.ts +94 -102
  69. package/types/viewer/metadata/MetaObject.d.ts +74 -74
  70. package/types/viewer/metadata/MetaScene.d.ts +135 -135
  71. package/types/viewer/metadata/Property.d.ts +29 -29
  72. package/types/viewer/metadata/PropertySet.d.ts +31 -31
  73. package/types/viewer/metadata/index.d.ts +6 -6
  74. package/types/viewer/scene/Bitmap/Bitmap.d.ts +255 -255
  75. package/types/viewer/scene/CameraControl/CameraControl.d.ts +777 -777
  76. package/types/viewer/scene/Component.d.ts +155 -155
  77. package/types/viewer/scene/Entity.d.ts +401 -401
  78. package/types/viewer/scene/LineSet/LineSet.d.ts +111 -111
  79. package/types/viewer/scene/camera/Camera.d.ts +364 -364
  80. package/types/viewer/scene/camera/CameraFlightAnimation.d.ts +167 -167
  81. package/types/viewer/scene/camera/CameraPath.d.ts +28 -28
  82. package/types/viewer/scene/camera/CameraPathAnimation.d.ts +95 -95
  83. package/types/viewer/scene/camera/CustomProjection.d.ts +57 -57
  84. package/types/viewer/scene/camera/Frustum.d.ts +166 -166
  85. package/types/viewer/scene/camera/Ortho.d.ts +115 -115
  86. package/types/viewer/scene/camera/Perspective.d.ts +136 -136
  87. package/types/viewer/scene/camera/index.d.ts +4 -4
  88. package/types/viewer/scene/geometry/Geometry.d.ts +7 -7
  89. package/types/viewer/scene/geometry/ReadableGeometry.d.ts +95 -95
  90. package/types/viewer/scene/geometry/VBOGeometry.d.ts +62 -62
  91. package/types/viewer/scene/geometry/builders/buildBoxGeometry.d.ts +21 -21
  92. package/types/viewer/scene/geometry/builders/buildBoxLinesGeometry.d.ts +21 -21
  93. package/types/viewer/scene/geometry/builders/buildCylinderGeometry.d.ts +27 -27
  94. package/types/viewer/scene/geometry/builders/buildGridGeometry.d.ts +17 -17
  95. package/types/viewer/scene/geometry/builders/buildPlaneGeometry.d.ts +21 -21
  96. package/types/viewer/scene/geometry/builders/buildSphereGeometry.d.ts +21 -21
  97. package/types/viewer/scene/geometry/builders/buildTorusGeometry.d.ts +25 -25
  98. package/types/viewer/scene/geometry/builders/buildVectorTextGeometry.d.ts +21 -21
  99. package/types/viewer/scene/geometry/builders/index.d.ts +8 -8
  100. package/types/viewer/scene/geometry/index.d.ts +2 -2
  101. package/types/viewer/scene/index.d.ts +23 -23
  102. package/types/viewer/scene/input/input.d.ts +69 -69
  103. package/types/viewer/scene/lights/AmbientLight.d.ts +19 -19
  104. package/types/viewer/scene/lights/DirLight.d.ts +25 -25
  105. package/types/viewer/scene/lights/Light.d.ts +3 -3
  106. package/types/viewer/scene/lights/PointLight.d.ts +30 -30
  107. package/types/viewer/scene/lights/index.d.ts +2 -2
  108. package/types/viewer/scene/marker/Marker.d.ts +136 -136
  109. package/types/viewer/scene/marker/SpriteMarker.d.ts +185 -185
  110. package/types/viewer/scene/marker/index.d.ts +2 -2
  111. package/types/viewer/scene/materials/EdgeMaterial.d.ts +83 -83
  112. package/types/viewer/scene/materials/EmphasisMaterial.d.ts +241 -241
  113. package/types/viewer/scene/materials/Fresnel.d.ts +148 -148
  114. package/types/viewer/scene/materials/LinesMaterial.d.ts +71 -71
  115. package/types/viewer/scene/materials/Material.d.ts +3 -3
  116. package/types/viewer/scene/materials/PhongMaterial.d.ts +468 -468
  117. package/types/viewer/scene/materials/PointsMaterial.d.ts +206 -206
  118. package/types/viewer/scene/materials/Texture.d.ts +260 -260
  119. package/types/viewer/scene/materials/index.d.ts +6 -6
  120. package/types/viewer/scene/math/Frustum.d.ts +41 -41
  121. package/types/viewer/scene/math/index.d.ts +1 -1
  122. package/types/viewer/scene/math/math.d.ts +104 -104
  123. package/types/viewer/scene/mementos/CameraMemento.d.ts +28 -28
  124. package/types/viewer/scene/mementos/ModelMemento.d.ts +44 -44
  125. package/types/viewer/scene/mementos/ObjectsMemento.d.ts +39 -39
  126. package/types/viewer/scene/mementos/index.d.ts +3 -3
  127. package/types/viewer/scene/mesh/Mesh.d.ts +793 -793
  128. package/types/viewer/scene/mesh/index.d.ts +1 -1
  129. package/types/viewer/scene/models/PerformanceModel/PerformanceModel.d.ts +9 -9
  130. package/types/viewer/scene/models/PerformanceModel/index.d.ts +1 -1
  131. package/types/viewer/scene/models/SceneModel.d.ts +757 -762
  132. package/types/viewer/scene/models/SceneModelEntity.d.ts +417 -417
  133. package/types/viewer/scene/models/SceneModelMesh.d.ts +68 -68
  134. package/types/viewer/scene/models/SceneModelTexture.d.ts +16 -16
  135. package/types/viewer/scene/models/SceneModelTextureSet.d.ts +51 -51
  136. package/types/viewer/scene/models/SceneModelTransform.d.ts +197 -197
  137. package/types/viewer/scene/models/VBOSceneModel/VBOSceneModel.d.ts +7 -7
  138. package/types/viewer/scene/models/index.d.ts +7 -7
  139. package/types/viewer/scene/nodes/Node.d.ts +664 -664
  140. package/types/viewer/scene/nodes/index.d.ts +1 -1
  141. package/types/viewer/scene/postfx/CrossSections.d.ts +42 -42
  142. package/types/viewer/scene/postfx/SAO.d.ts +209 -209
  143. package/types/viewer/scene/scene/Scene.d.ts +1068 -1068
  144. package/types/viewer/scene/sectionPlane/SectionPlane.d.ts +110 -110
  145. package/types/viewer/scene/sectionPlane/index.d.ts +1 -1
  146. package/types/viewer/scene/stats.d.ts +40 -40
  147. package/types/viewer/scene/viewport/Viewport.d.ts +23 -23
  148. package/types/viewer/scene/viewport/index.d.ts +1 -1
  149. package/types/viewer/scene/webgl/PickResult.d.ts +115 -115
  150. package/types/viewer/scene/webgl/index.d.ts +1 -1
  151. package/dist/tctwins-core.umd.js +0 -37
@@ -1,183 +1,183 @@
1
- export declare type LocaleServiceConfiguration = {
2
- messages: any;
3
- locale?: string;
4
- };
5
-
6
- /**
7
- * Localization service for a {@link Viewer}.
8
- */
9
- export declare class LocaleService {
10
- /**
11
- * @constructor
12
- * @param {LocaleServiceConfiguration} cfg LocaleService configuration
13
- */
14
- constructor(cfg?: LocaleServiceConfiguration);
15
-
16
- /**
17
- * Replaces the current set of locale translations.
18
- *
19
- * * Fires an "updated" event when done.
20
- * * Automatically refreshes any plugins that depend on the translations.
21
- * * Does not change the current locale.
22
- *
23
- * ## Usage
24
- *
25
- * ````javascript
26
- * viewer.localeService.setMessages({
27
- * messages: {
28
- * "en": { // English
29
- * "NavCube": {
30
- * "front": "Front",
31
- * "back": "Back",
32
- * "top": "Top",
33
- * "bottom": "Bottom",
34
- * "left": "Left",
35
- * "right": "Right"
36
- * }
37
- * },
38
- * "mi": { // Māori
39
- * "NavCube": {
40
- * "front": "Mua",
41
- * "back": "Tuarā",
42
- * "top": "Runga",
43
- * "bottom": "Raro",
44
- * "left": "Mauī",
45
- * "right": "Tika"
46
- * }
47
- * }
48
- * }
49
- * });
50
- * ````
51
- *
52
- * @param {*} messages The new translations.
53
- */
54
-
55
- set messages(arg: any);
56
-
57
- /**
58
- * Sets the current locale.
59
- *
60
- * * Fires an "updated" event when done.
61
- * * The given locale does not need to be in the list of available locales returned by {@link LocaleService.locales}, since
62
- * this method assumes that you may want to load the locales at a later point.
63
- * * Automatically refreshes any plugins that depend on the translations.
64
- * * We can then get translations for the locale, if translations have been loaded for it, via {@link LocaleService.translate} and {@link LocaleService.translatePlurals}.
65
- *
66
- * @param {String} locale The new current locale.
67
- */
68
- set locale(arg: string);
69
-
70
- /**
71
- * Gets the current locale.
72
- *
73
- * @returns {String} The current locale.
74
- */
75
- get locale(): string;
76
-
77
- /**
78
- * Loads a new set of locale translations, adding them to the existing translations.
79
- *
80
- * * Fires an "updated" event when done.
81
- * * Automatically refreshes any plugins that depend on the translations.
82
- * * Does not change the current locale.
83
- *
84
- * ## Usage
85
- *
86
- * ````javascript
87
- * viewer.localeService.loadMessages({
88
- * "jp": { // Japanese
89
- * "NavCube": {
90
- * "front": "前部",
91
- * "back": "裏",
92
- * "top": "上",
93
- * "bottom": "底",
94
- * "left": "左",
95
- * "right": "右"
96
- * }
97
- * }
98
- * });
99
- * ````
100
- *
101
- * @param {*} messages The new translations.
102
- */
103
- loadMessages(messages?: any): void;
104
-
105
- /**
106
- * Clears all locale translations.
107
- *
108
- * * Fires an "updated" event when done.
109
- * * Does not change the current locale.
110
- * * Automatically refreshes any plugins that depend on the translations, which will cause those
111
- * plugins to fall back on their internal hard-coded text values, since this method removes all
112
- * our translations.
113
- */
114
- clearMessages(): void;
115
-
116
- /**
117
- * Gets the list of available locales.
118
- *
119
- * These are derived from the currently configured set of translations.
120
- *
121
- * @returns {String[]} The list of available locales.
122
- */
123
-
124
- get locales(): string[];
125
- /**
126
- * Translates the given string according to the current locale.
127
- *
128
- * Returns null if no translation can be found.
129
- *
130
- * @param {String} msg String to translate.
131
- * @param {*} [args] Extra parameters.
132
- * @returns {String|null} Translated string if found, else null.
133
- */
134
-
135
- translate(msg: string, args?: any): string | null;
136
-
137
- /**
138
- * Translates the given phrase according to the current locale.
139
- *
140
- * Returns null if no translation can be found.
141
- *
142
- * @param {String} msg Phrase to translate.
143
- * @param {Number} count The plural number.
144
- * @param {*} [args] Extra parameters.
145
- * @returns {String|null} Translated string if found, else null.
146
- */
147
- translatePlurals(msg: string, count: number, args?: any): string | null;
148
-
149
- /**
150
- * Fires an event on this LocaleService.
151
- *
152
- * Notifies existing subscribers to the event, optionally retains the event to give to
153
- * any subsequent notifications on the event as they are made.
154
- *
155
- * @param {String} event The event type name.
156
- * @param {Object} value The event parameters.
157
- * @param {Boolean} [forget=false] When true, does not retain for subsequent subscribers.
158
- */
159
- fire(event: string, value: any, forget?: boolean): void;
160
-
161
- /**
162
- * Subscribes to an event on this LocaleService.
163
- *
164
- * @param {String} event The event
165
- * @param {Function} callback Callback fired on the event
166
- * @return {String} Handle to the subscription, which may be used to unsubscribe with {@link .off}.
167
- */
168
- on(event: string, callback: Function): string;
169
-
170
- /**
171
- * Cancels an event subscription that was previously made with {@link LocaleService.on}.
172
- *
173
- * @param {String} subId Subscription ID
174
- */
175
- off(subId: string): void;
176
-
177
- /**
178
- * Fires when the messages or the locale are updated
179
- * @param event The loaded event
180
- * @param callback Called fired on the event
181
- */
182
- on(event: "updated", callback: (e: LocaleService | string) => void): string
183
- }
1
+ export declare type LocaleServiceConfiguration = {
2
+ messages: any;
3
+ locale?: string;
4
+ };
5
+
6
+ /**
7
+ * Localization service for a {@link Viewer}.
8
+ */
9
+ export declare class LocaleService {
10
+ /**
11
+ * @constructor
12
+ * @param {LocaleServiceConfiguration} cfg LocaleService configuration
13
+ */
14
+ constructor(cfg?: LocaleServiceConfiguration);
15
+
16
+ /**
17
+ * Replaces the current set of locale translations.
18
+ *
19
+ * * Fires an "updated" event when done.
20
+ * * Automatically refreshes any plugins that depend on the translations.
21
+ * * Does not change the current locale.
22
+ *
23
+ * ## Usage
24
+ *
25
+ * ````javascript
26
+ * viewer.localeService.setMessages({
27
+ * messages: {
28
+ * "en": { // English
29
+ * "NavCube": {
30
+ * "front": "Front",
31
+ * "back": "Back",
32
+ * "top": "Top",
33
+ * "bottom": "Bottom",
34
+ * "left": "Left",
35
+ * "right": "Right"
36
+ * }
37
+ * },
38
+ * "mi": { // Māori
39
+ * "NavCube": {
40
+ * "front": "Mua",
41
+ * "back": "Tuarā",
42
+ * "top": "Runga",
43
+ * "bottom": "Raro",
44
+ * "left": "Mauī",
45
+ * "right": "Tika"
46
+ * }
47
+ * }
48
+ * }
49
+ * });
50
+ * ````
51
+ *
52
+ * @param {*} messages The new translations.
53
+ */
54
+
55
+ set messages(arg: any);
56
+
57
+ /**
58
+ * Sets the current locale.
59
+ *
60
+ * * Fires an "updated" event when done.
61
+ * * The given locale does not need to be in the list of available locales returned by {@link LocaleService.locales}, since
62
+ * this method assumes that you may want to load the locales at a later point.
63
+ * * Automatically refreshes any plugins that depend on the translations.
64
+ * * We can then get translations for the locale, if translations have been loaded for it, via {@link LocaleService.translate} and {@link LocaleService.translatePlurals}.
65
+ *
66
+ * @param {String} locale The new current locale.
67
+ */
68
+ set locale(arg: string);
69
+
70
+ /**
71
+ * Gets the current locale.
72
+ *
73
+ * @returns {String} The current locale.
74
+ */
75
+ get locale(): string;
76
+
77
+ /**
78
+ * Loads a new set of locale translations, adding them to the existing translations.
79
+ *
80
+ * * Fires an "updated" event when done.
81
+ * * Automatically refreshes any plugins that depend on the translations.
82
+ * * Does not change the current locale.
83
+ *
84
+ * ## Usage
85
+ *
86
+ * ````javascript
87
+ * viewer.localeService.loadMessages({
88
+ * "jp": { // Japanese
89
+ * "NavCube": {
90
+ * "front": "前部",
91
+ * "back": "裏",
92
+ * "top": "上",
93
+ * "bottom": "底",
94
+ * "left": "左",
95
+ * "right": "右"
96
+ * }
97
+ * }
98
+ * });
99
+ * ````
100
+ *
101
+ * @param {*} messages The new translations.
102
+ */
103
+ loadMessages(messages?: any): void;
104
+
105
+ /**
106
+ * Clears all locale translations.
107
+ *
108
+ * * Fires an "updated" event when done.
109
+ * * Does not change the current locale.
110
+ * * Automatically refreshes any plugins that depend on the translations, which will cause those
111
+ * plugins to fall back on their internal hard-coded text values, since this method removes all
112
+ * our translations.
113
+ */
114
+ clearMessages(): void;
115
+
116
+ /**
117
+ * Gets the list of available locales.
118
+ *
119
+ * These are derived from the currently configured set of translations.
120
+ *
121
+ * @returns {String[]} The list of available locales.
122
+ */
123
+
124
+ get locales(): string[];
125
+ /**
126
+ * Translates the given string according to the current locale.
127
+ *
128
+ * Returns null if no translation can be found.
129
+ *
130
+ * @param {String} msg String to translate.
131
+ * @param {*} [args] Extra parameters.
132
+ * @returns {String|null} Translated string if found, else null.
133
+ */
134
+
135
+ translate(msg: string, args?: any): string | null;
136
+
137
+ /**
138
+ * Translates the given phrase according to the current locale.
139
+ *
140
+ * Returns null if no translation can be found.
141
+ *
142
+ * @param {String} msg Phrase to translate.
143
+ * @param {Number} count The plural number.
144
+ * @param {*} [args] Extra parameters.
145
+ * @returns {String|null} Translated string if found, else null.
146
+ */
147
+ translatePlurals(msg: string, count: number, args?: any): string | null;
148
+
149
+ /**
150
+ * Fires an event on this LocaleService.
151
+ *
152
+ * Notifies existing subscribers to the event, optionally retains the event to give to
153
+ * any subsequent notifications on the event as they are made.
154
+ *
155
+ * @param {String} event The event type name.
156
+ * @param {Object} value The event parameters.
157
+ * @param {Boolean} [forget=false] When true, does not retain for subsequent subscribers.
158
+ */
159
+ fire(event: string, value: any, forget?: boolean): void;
160
+
161
+ /**
162
+ * Subscribes to an event on this LocaleService.
163
+ *
164
+ * @param {String} event The event
165
+ * @param {Function} callback Callback fired on the event
166
+ * @return {String} Handle to the subscription, which may be used to unsubscribe with {@link .off}.
167
+ */
168
+ on(event: string, callback: Function): string;
169
+
170
+ /**
171
+ * Cancels an event subscription that was previously made with {@link LocaleService.on}.
172
+ *
173
+ * @param {String} subId Subscription ID
174
+ */
175
+ off(subId: string): void;
176
+
177
+ /**
178
+ * Fires when the messages or the locale are updated
179
+ * @param event The loaded event
180
+ * @param callback Called fired on the event
181
+ */
182
+ on(event: "updated", callback: (e: LocaleService | string) => void): string
183
+ }
@@ -1,9 +1,9 @@
1
-
2
- export declare type IFCObjectDefaults = {
3
- [key: string]: {
4
- colorize?: number[];
5
- pickable?: boolean;
6
- visible?: boolean;
7
- opacity?: number
8
- }
9
- };
1
+
2
+ export declare type IFCObjectDefaults = {
3
+ [key: string]: {
4
+ colorize?: number[];
5
+ pickable?: boolean;
6
+ visible?: boolean;
7
+ opacity?: number
8
+ }
9
+ };
@@ -1,102 +1,94 @@
1
- import { MetaScene } from "./MetaScene";
2
- import { PropertySet } from "./PropertySet";
3
- import { MetaObject } from "./MetaObject";
4
-
5
- /**
6
- * Metadata corresponding to an {@link Entity} that represents a model.
7
- */
8
- export declare class MetaModel {
9
- /**
10
- * Creates a new MetaModel.
11
- * @param param
12
- */
13
- constructor(param: { metaScene: MetaScene; id: any | String | Number | string | number });
14
-
15
- /**
16
- * Globally-unique ID.
17
- *
18
- * MetaModels are registered by ID in {@link MetaScene.metaModels}.
19
- *
20
- * When this MetaModel corresponds to an {@link Entity} then this ID will match the {@link Entity.id}.
21
- *
22
- */
23
- id: string | number;
24
-
25
- /**
26
- * The project ID
27
- */
28
- projectId: string | number;
29
-
30
- /**
31
- * The revision ID, if available.
32
- */
33
- revisionId?: string | number;
34
-
35
- /**
36
- * The model author, if available.
37
- */
38
- author?: string;
39
-
40
- /**
41
- * The date the model was created, if available.
42
- */
43
- createdAt?: string;
44
-
45
- /**
46
- * The application that created the model, if available.
47
- */
48
- creatingApplication?: string;
49
-
50
- /**
51
- * The model schema version, if available.
52
- */
53
- schema?: string;
54
-
55
- /** Model coordinate unit from metadata; independent of measurement scale. */
56
- unit?: string;
57
- /** XTC takes precedence over separately loaded metadata. */
58
- unitSource?: "xtc";
59
- lengthUnitName?: string;
60
- /** Original XTC factor; not applied to measurement scale. */
61
- lengthUnit?: number;
62
-
63
- /**
64
- * Metadata on the {@link Scene}.
65
- */
66
- metaScene?: MetaScene;
67
-
68
- /**
69
- * The {@link PropertySet}s in this MetaModel.
70
- */
71
- propertySets: {
72
- String: PropertySet;
73
- };
74
-
75
- /**
76
- * The object count of this model.
77
- */
78
- objectCount?: number;
79
-
80
- /**
81
- * The property set count of this model.
82
- */
83
- propertySetCount?: number;
84
-
85
- /**
86
- * The root {@link MetaObject} in this MetaModel's composition structure hierarchy.
87
- */
88
- rootMetaObject: MetaObject;
89
-
90
- /**
91
- * Finalizes this MetaModel.
92
- */
93
- finalize(): void;
94
-
95
- /**
96
- * Loads data into this MetaModel.
97
- * @param metaModelData
98
- * @param options
99
- */
100
- // loadData(metaModelData: any, options: { includeTypes: String[]; excludeTypes: String[]; globalizeObjectIds: any }): void;
101
- loadData(metaModelData: any, done: Function, err: Function): void;
102
- }
1
+ import { MetaScene } from "./MetaScene";
2
+ import { PropertySet } from "./PropertySet";
3
+ import { MetaObject } from "./MetaObject";
4
+
5
+ /**
6
+ * Metadata corresponding to an {@link Entity} that represents a model.
7
+ */
8
+ export declare class MetaModel {
9
+ /**
10
+ * Creates a new MetaModel.
11
+ * @param param
12
+ */
13
+ constructor(param: { metaScene: MetaScene; id: any | String | Number | string | number });
14
+
15
+ /**
16
+ * Globally-unique ID.
17
+ *
18
+ * MetaModels are registered by ID in {@link MetaScene.metaModels}.
19
+ *
20
+ * When this MetaModel corresponds to an {@link Entity} then this ID will match the {@link Entity.id}.
21
+ *
22
+ */
23
+ id: string | number;
24
+
25
+ /**
26
+ * The project ID
27
+ */
28
+ projectId: string | number;
29
+
30
+ /**
31
+ * The revision ID, if available.
32
+ */
33
+ revisionId?: string | number;
34
+
35
+ /**
36
+ * The model author, if available.
37
+ */
38
+ author?: string;
39
+
40
+ /**
41
+ * The date the model was created, if available.
42
+ */
43
+ createdAt?: string;
44
+
45
+ /**
46
+ * The application that created the model, if available.
47
+ */
48
+ creatingApplication?: string;
49
+
50
+ /**
51
+ * The model schema version, if available.
52
+ */
53
+ schema?: string;
54
+
55
+ /**
56
+ * Metadata on the {@link Scene}.
57
+ */
58
+ metaScene?: MetaScene;
59
+
60
+ /**
61
+ * The {@link PropertySet}s in this MetaModel.
62
+ */
63
+ propertySets: {
64
+ String: PropertySet;
65
+ };
66
+
67
+ /**
68
+ * The object count of this model.
69
+ */
70
+ objectCount?: number;
71
+
72
+ /**
73
+ * The property set count of this model.
74
+ */
75
+ propertySetCount?: number;
76
+
77
+ /**
78
+ * The root {@link MetaObject} in this MetaModel's composition structure hierarchy.
79
+ */
80
+ rootMetaObject: MetaObject;
81
+
82
+ /**
83
+ * Finalizes this MetaModel.
84
+ */
85
+ finalize(): void;
86
+
87
+ /**
88
+ * Loads data into this MetaModel.
89
+ * @param metaModelData
90
+ * @param options
91
+ */
92
+ // loadData(metaModelData: any, options: { includeTypes: String[]; excludeTypes: String[]; globalizeObjectIds: any }): void;
93
+ loadData(metaModelData: any, done: Function, err: Function): void;
94
+ }