@xtctwins/tctwins-core 1.1.18 → 1.1.20
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 +4 -4
- package/dist/tctwins-core.es5.js +27337 -27310
- package/dist/tctwins-core.min.es5.js +3 -3
- package/package.json +84 -84
- package/types/extras/ContextMenu/ContextMenu.d.ts +127 -127
- package/types/extras/ContextMenu/index.d.ts +1 -1
- package/types/extras/PointerCircle/PointerCircle.d.ts +51 -51
- package/types/extras/PointerCircle/index.d.ts +1 -1
- package/types/extras/PointerLens/PointerLens.d.ts +146 -146
- package/types/extras/index.d.ts +3 -3
- package/types/index.d.ts +3 -3
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurement.d.ts +204 -204
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsControl.d.ts +91 -91
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsMouseControl.d.ts +125 -125
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsPlugin.d.ts +151 -151
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsSimulateMouseControl.d.ts +86 -86
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsTouchControl.d.ts +124 -124
- package/types/plugins/AngleMeasurementsPlugin/index.d.ts +5 -5
- package/types/plugins/AnnotationsPlugin/Annotation.d.ts +135 -135
- package/types/plugins/AnnotationsPlugin/AnnotationsPlugin.d.ts +172 -172
- package/types/plugins/AnnotationsPlugin/index.d.ts +2 -2
- package/types/plugins/BCFViewpointsPlugin/BCFViewpointsPlugin.d.ts +148 -148
- package/types/plugins/BCFViewpointsPlugin/index.d.ts +1 -1
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurement.d.ts +253 -253
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsControl.d.ts +96 -96
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsMouseControl.d.ts +102 -102
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsPlugin.d.ts +192 -192
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsSimulateMouseControl.d.ts +83 -83
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsTouchControl.d.ts +103 -103
- package/types/plugins/DistanceMeasurementsPlugin/index.d.ts +5 -5
- package/types/plugins/FastNavPlugin/FastNavPlugin.d.ts +223 -223
- package/types/plugins/FastNavPlugin/index.d.ts +1 -1
- package/types/plugins/GLTFLoaderPlugin/GLTFLoaderPlugin.d.ts +142 -142
- package/types/plugins/GLTFLoaderPlugin/index.d.ts +1 -1
- package/types/plugins/LASLoaderPlugin/LASLoaderPlugin.d.ts +240 -240
- package/types/plugins/LASLoaderPlugin/index.d.ts +1 -1
- package/types/plugins/NavCubePlugin/NavCubePlugin.d.ts +177 -177
- package/types/plugins/NavCubePlugin/index.d.ts +1 -1
- package/types/plugins/ObjectEditPlugin/ObjectEditPlugin.d.ts +242 -242
- package/types/plugins/ObjectEditPlugin/index.d.ts +1 -1
- package/types/plugins/SectionPlanesPlugin/SectionBoxControl.d.ts +36 -36
- package/types/plugins/SectionPlanesPlugin/SectionPlanesPlugin.d.ts +186 -186
- package/types/plugins/SectionPlanesPlugin/index.d.ts +2 -2
- package/types/plugins/SkyboxesPlugin/SkyboxesPlugin.d.ts +66 -66
- package/types/plugins/SkyboxesPlugin/index.d.ts +1 -1
- package/types/plugins/StoreyViewsPlugin/Storey.d.ts +69 -69
- package/types/plugins/StoreyViewsPlugin/StoreyMap.d.ts +41 -41
- package/types/plugins/StoreyViewsPlugin/StoreyViewsPlugin.d.ts +180 -180
- package/types/plugins/StoreyViewsPlugin/index.d.ts +1 -1
- package/types/plugins/TreeViewPlugin/ModelTreeView.d.ts +24 -24
- package/types/plugins/TreeViewPlugin/TreeViewNode.d.ts +71 -71
- package/types/plugins/TreeViewPlugin/TreeViewPlugin.d.ts +267 -267
- package/types/plugins/TreeViewPlugin/index.d.ts +1 -1
- package/types/plugins/TreeViewPlugin/renderService.d.ts +128 -128
- package/types/plugins/ViewCullPlugin/ViewCullPlugin.d.ts +34 -34
- package/types/plugins/ViewCullPlugin/index.d.ts +1 -1
- package/types/plugins/WebIFCLoaderPlugin/WebIFCLoaderPlugin.d.ts +236 -236
- package/types/plugins/WebIFCLoaderPlugin/index.d.ts +1 -1
- package/types/plugins/XTCLoaderPlugin/XTCLoaderPlugin.d.ts +288 -288
- package/types/plugins/XTCLoaderPlugin/index.d.ts +1 -1
- package/types/plugins/index.d.ts +30 -30
- package/types/viewer/Configs.d.ts +46 -46
- package/types/viewer/Plugin.d.ts +69 -69
- package/types/viewer/Viewer.d.ts +282 -282
- package/types/viewer/index.d.ts +6 -6
- package/types/viewer/localization/LocaleService.d.ts +183 -183
- package/types/viewer/metadata/IFCObjectDefaults.d.ts +9 -9
- package/types/viewer/metadata/MetaModel.d.ts +94 -94
- package/types/viewer/metadata/MetaObject.d.ts +74 -74
- package/types/viewer/metadata/MetaScene.d.ts +135 -135
- package/types/viewer/metadata/Property.d.ts +29 -29
- package/types/viewer/metadata/PropertySet.d.ts +31 -31
- package/types/viewer/metadata/index.d.ts +6 -6
- package/types/viewer/scene/Bitmap/Bitmap.d.ts +255 -255
- package/types/viewer/scene/CameraControl/CameraControl.d.ts +777 -777
- package/types/viewer/scene/Component.d.ts +155 -155
- package/types/viewer/scene/Entity.d.ts +401 -401
- package/types/viewer/scene/LineSet/LineSet.d.ts +111 -111
- package/types/viewer/scene/camera/Camera.d.ts +364 -364
- package/types/viewer/scene/camera/CameraFlightAnimation.d.ts +167 -167
- package/types/viewer/scene/camera/CameraPath.d.ts +28 -28
- package/types/viewer/scene/camera/CameraPathAnimation.d.ts +95 -95
- package/types/viewer/scene/camera/CustomProjection.d.ts +57 -57
- package/types/viewer/scene/camera/Frustum.d.ts +166 -166
- package/types/viewer/scene/camera/Ortho.d.ts +115 -115
- package/types/viewer/scene/camera/Perspective.d.ts +136 -136
- package/types/viewer/scene/camera/index.d.ts +4 -4
- package/types/viewer/scene/geometry/Geometry.d.ts +7 -7
- package/types/viewer/scene/geometry/ReadableGeometry.d.ts +95 -95
- package/types/viewer/scene/geometry/VBOGeometry.d.ts +62 -62
- package/types/viewer/scene/geometry/builders/buildBoxGeometry.d.ts +21 -21
- package/types/viewer/scene/geometry/builders/buildBoxLinesGeometry.d.ts +21 -21
- package/types/viewer/scene/geometry/builders/buildCylinderGeometry.d.ts +27 -27
- package/types/viewer/scene/geometry/builders/buildGridGeometry.d.ts +17 -17
- package/types/viewer/scene/geometry/builders/buildPlaneGeometry.d.ts +21 -21
- package/types/viewer/scene/geometry/builders/buildSphereGeometry.d.ts +21 -21
- package/types/viewer/scene/geometry/builders/buildTorusGeometry.d.ts +25 -25
- package/types/viewer/scene/geometry/builders/buildVectorTextGeometry.d.ts +21 -21
- package/types/viewer/scene/geometry/builders/index.d.ts +8 -8
- package/types/viewer/scene/geometry/index.d.ts +2 -2
- package/types/viewer/scene/index.d.ts +23 -23
- package/types/viewer/scene/input/input.d.ts +69 -69
- package/types/viewer/scene/lights/AmbientLight.d.ts +19 -19
- package/types/viewer/scene/lights/DirLight.d.ts +25 -25
- package/types/viewer/scene/lights/Light.d.ts +3 -3
- package/types/viewer/scene/lights/PointLight.d.ts +30 -30
- package/types/viewer/scene/lights/index.d.ts +2 -2
- package/types/viewer/scene/marker/Marker.d.ts +136 -136
- package/types/viewer/scene/marker/SpriteMarker.d.ts +185 -185
- package/types/viewer/scene/marker/index.d.ts +2 -2
- package/types/viewer/scene/materials/EdgeMaterial.d.ts +83 -83
- package/types/viewer/scene/materials/EmphasisMaterial.d.ts +241 -241
- package/types/viewer/scene/materials/Fresnel.d.ts +148 -148
- package/types/viewer/scene/materials/LinesMaterial.d.ts +71 -71
- package/types/viewer/scene/materials/Material.d.ts +3 -3
- package/types/viewer/scene/materials/PhongMaterial.d.ts +468 -468
- package/types/viewer/scene/materials/PointsMaterial.d.ts +206 -206
- package/types/viewer/scene/materials/Texture.d.ts +260 -260
- package/types/viewer/scene/materials/index.d.ts +6 -6
- package/types/viewer/scene/math/Frustum.d.ts +41 -41
- package/types/viewer/scene/math/index.d.ts +1 -1
- package/types/viewer/scene/math/math.d.ts +104 -104
- package/types/viewer/scene/mementos/CameraMemento.d.ts +28 -28
- package/types/viewer/scene/mementos/ModelMemento.d.ts +44 -44
- package/types/viewer/scene/mementos/ObjectsMemento.d.ts +39 -39
- package/types/viewer/scene/mementos/index.d.ts +3 -3
- package/types/viewer/scene/mesh/Mesh.d.ts +793 -793
- package/types/viewer/scene/mesh/index.d.ts +1 -1
- package/types/viewer/scene/models/PerformanceModel/PerformanceModel.d.ts +9 -9
- package/types/viewer/scene/models/PerformanceModel/index.d.ts +1 -1
- package/types/viewer/scene/models/SceneModel.d.ts +757 -757
- package/types/viewer/scene/models/SceneModelEntity.d.ts +417 -417
- package/types/viewer/scene/models/SceneModelMesh.d.ts +68 -68
- package/types/viewer/scene/models/SceneModelTexture.d.ts +16 -16
- package/types/viewer/scene/models/SceneModelTextureSet.d.ts +51 -51
- package/types/viewer/scene/models/SceneModelTransform.d.ts +197 -197
- package/types/viewer/scene/models/VBOSceneModel/VBOSceneModel.d.ts +7 -7
- package/types/viewer/scene/models/index.d.ts +7 -7
- package/types/viewer/scene/nodes/Node.d.ts +664 -664
- package/types/viewer/scene/nodes/index.d.ts +1 -1
- package/types/viewer/scene/postfx/CrossSections.d.ts +42 -42
- package/types/viewer/scene/postfx/SAO.d.ts +209 -209
- package/types/viewer/scene/scene/Scene.d.ts +1068 -1068
- package/types/viewer/scene/sectionPlane/SectionPlane.d.ts +110 -110
- package/types/viewer/scene/sectionPlane/index.d.ts +1 -1
- package/types/viewer/scene/stats.d.ts +40 -40
- package/types/viewer/scene/utils.d.ts +165 -165
- package/types/viewer/scene/viewport/Viewport.d.ts +23 -23
- package/types/viewer/scene/viewport/index.d.ts +1 -1
- package/types/viewer/scene/webgl/PickResult.d.ts +115 -115
- package/types/viewer/scene/webgl/index.d.ts +1 -1
|
@@ -1,241 +1,241 @@
|
|
|
1
|
-
import { Material } from "./Material";
|
|
2
|
-
import { Component } from "../Component";
|
|
3
|
-
|
|
4
|
-
export declare type EmphasisMaterialConfiguration = {
|
|
5
|
-
/** Optional ID, unique among all components in the parent {@link Scene}, generated automatically when omitted. */
|
|
6
|
-
id?: string;
|
|
7
|
-
/** Indicates if xray surfaces are filled with color. */
|
|
8
|
-
fill?: boolean;
|
|
9
|
-
/** EmphasisMaterial fill color. */
|
|
10
|
-
fillColor?: number[];
|
|
11
|
-
/** Transparency of filled xray faces. A value of ````0.0```` indicates fully transparent, ````1.0```` is fully opaque.*/
|
|
12
|
-
fillAlpha?: number;
|
|
13
|
-
/** Indicates if xray edges are visible. */
|
|
14
|
-
edges?: boolean;
|
|
15
|
-
/** RGB color of xray edges. */
|
|
16
|
-
edgeColor?: number[];
|
|
17
|
-
/** Transparency of xray edges. A value of ````0.0```` indicates fully transparent, ````1.0```` is fully opaque. */
|
|
18
|
-
edgeAlpha?: number;
|
|
19
|
-
/** Width of xray edges, in pixels. */
|
|
20
|
-
edgeWidth?: number;
|
|
21
|
-
/** Selects a preset EmphasisMaterial configuration - see {@link EmphasisMaterial.presets}. */
|
|
22
|
-
preset?: string;
|
|
23
|
-
/** Whether to render geometry backfaces when emphasising. */
|
|
24
|
-
backfaces?: boolean;
|
|
25
|
-
/** Whether to make the emphasized object appear to float on top of other objects, as if it were "glowing through" them. */
|
|
26
|
-
glowThrough?: boolean;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Configures the appearance of {@link Entity}s when they are xrayed, highlighted or selected.
|
|
31
|
-
*/
|
|
32
|
-
export declare class EmphasisMaterial extends Material {
|
|
33
|
-
/**
|
|
34
|
-
* @constructor
|
|
35
|
-
* @param {Component} owner Owner component. When destroyed, the owner will destroy this component as well.
|
|
36
|
-
* @param {EmphasisMaterialConfiguration} [cfg] The EmphasisMaterial configuration
|
|
37
|
-
*/
|
|
38
|
-
constructor(owner: Component, cfg?: EmphasisMaterialConfiguration);
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Gets available EmphasisMaterial presets.
|
|
42
|
-
*
|
|
43
|
-
* @type {Object}
|
|
44
|
-
*/
|
|
45
|
-
get presets(): any;
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Selects a preset EmphasisMaterial configuration.
|
|
49
|
-
*
|
|
50
|
-
* Default value is "default".
|
|
51
|
-
*
|
|
52
|
-
* @type {String}
|
|
53
|
-
*/
|
|
54
|
-
set preset(arg: string);
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Gets the current preset EmphasisMaterial configuration.
|
|
58
|
-
*
|
|
59
|
-
* Default value is "default".
|
|
60
|
-
*
|
|
61
|
-
* @type {String}
|
|
62
|
-
*/
|
|
63
|
-
get preset(): string;
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Sets if surfaces are filled with color.
|
|
67
|
-
*
|
|
68
|
-
* Default is ````true````.
|
|
69
|
-
*
|
|
70
|
-
* @type {Boolean}
|
|
71
|
-
*/
|
|
72
|
-
set fill(arg: boolean);
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Gets if surfaces are filled with color.
|
|
76
|
-
*
|
|
77
|
-
* Default is ````true````.
|
|
78
|
-
*
|
|
79
|
-
* @type {Boolean}
|
|
80
|
-
*/
|
|
81
|
-
get fill(): boolean;
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Sets the RGB color of filled faces.
|
|
85
|
-
*
|
|
86
|
-
* Default is ````[0.4, 0.4, 0.4]````.
|
|
87
|
-
*
|
|
88
|
-
* @type {Number[]}
|
|
89
|
-
*/
|
|
90
|
-
set fillColor(arg: number[]);
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Gets the RGB color of filled faces.
|
|
94
|
-
*
|
|
95
|
-
* Default is ````[0.4, 0.4, 0.4]````.
|
|
96
|
-
*
|
|
97
|
-
* @type {Number[]}
|
|
98
|
-
*/
|
|
99
|
-
get fillColor(): number[];
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* Sets the transparency of filled faces.
|
|
103
|
-
*
|
|
104
|
-
* A value of ````0.0```` indicates fully transparent, ````1.0```` is fully opaque.
|
|
105
|
-
*
|
|
106
|
-
* Default is ````0.2````.
|
|
107
|
-
*
|
|
108
|
-
* @type {Number}
|
|
109
|
-
*/
|
|
110
|
-
set fillAlpha(arg: number);
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* Gets the transparency of filled faces.
|
|
114
|
-
*
|
|
115
|
-
* A value of ````0.0```` indicates fully transparent, ````1.0```` is fully opaque.
|
|
116
|
-
*
|
|
117
|
-
* Default is ````0.2````.
|
|
118
|
-
*
|
|
119
|
-
* @type {Number}
|
|
120
|
-
*/
|
|
121
|
-
|
|
122
|
-
get fillAlpha(): number;
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* Sets if edges are visible.
|
|
126
|
-
*
|
|
127
|
-
* Default is ````true````.
|
|
128
|
-
*
|
|
129
|
-
* @type {Boolean}
|
|
130
|
-
*/
|
|
131
|
-
set edges(arg: boolean);
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* Gets if edges are visible.
|
|
135
|
-
*
|
|
136
|
-
* Default is ````true````.
|
|
137
|
-
*
|
|
138
|
-
* @type {Boolean}
|
|
139
|
-
*/
|
|
140
|
-
get edges(): boolean;
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Sets the RGB color of edges.
|
|
144
|
-
*
|
|
145
|
-
* Default is ```` [0.2, 0.2, 0.2]````.
|
|
146
|
-
*
|
|
147
|
-
* @type {Number[]}
|
|
148
|
-
*/
|
|
149
|
-
set edgeColor(arg: number[]);
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* Gets the RGB color of edges.
|
|
153
|
-
*
|
|
154
|
-
* Default is ```` [0.2, 0.2, 0.2]````.
|
|
155
|
-
*
|
|
156
|
-
* @type {Number[]}
|
|
157
|
-
*/
|
|
158
|
-
get edgeColor(): number[];
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* Sets the transparency of edges.
|
|
162
|
-
*
|
|
163
|
-
* A value of ````0.0```` indicates fully transparent, ````1.0```` is fully opaque.
|
|
164
|
-
*
|
|
165
|
-
* Default is ````0.2````.
|
|
166
|
-
*
|
|
167
|
-
* @type {Number}
|
|
168
|
-
*/
|
|
169
|
-
set edgeAlpha(arg: number);
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* Gets the transparency of edges.
|
|
173
|
-
*
|
|
174
|
-
* A value of ````0.0```` indicates fully transparent, ````1.0```` is fully opaque.
|
|
175
|
-
*
|
|
176
|
-
* Default is ````0.2````.
|
|
177
|
-
*
|
|
178
|
-
* @type {Number}
|
|
179
|
-
*/
|
|
180
|
-
get edgeAlpha(): number;
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* Sets edge width.
|
|
184
|
-
*
|
|
185
|
-
* This is not supported by WebGL implementations based on DirectX [2019].
|
|
186
|
-
*
|
|
187
|
-
* Default value is ````1.0```` pixels.
|
|
188
|
-
*
|
|
189
|
-
* @type {Number}
|
|
190
|
-
*/
|
|
191
|
-
set edgeWidth(arg: number);
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* Gets edge width.
|
|
195
|
-
*
|
|
196
|
-
* This is not supported by WebGL implementations based on DirectX [2019].
|
|
197
|
-
*
|
|
198
|
-
* Default value is ````1.0```` pixels.
|
|
199
|
-
*
|
|
200
|
-
* @type {Number}
|
|
201
|
-
*/
|
|
202
|
-
get edgeWidth(): number;
|
|
203
|
-
|
|
204
|
-
/**
|
|
205
|
-
* Sets whether to render backfaces when {@link EmphasisMaterial.fill} is ````true````.
|
|
206
|
-
*
|
|
207
|
-
* Default is ````false````.
|
|
208
|
-
*
|
|
209
|
-
* @type {Boolean}
|
|
210
|
-
*/
|
|
211
|
-
set backfaces(arg: boolean);
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* Gets whether to render backfaces when {@link EmphasisMaterial.fill} is ````true````.
|
|
215
|
-
*
|
|
216
|
-
* Default is ````true````.
|
|
217
|
-
*
|
|
218
|
-
* @type {Boolean}
|
|
219
|
-
*/
|
|
220
|
-
get backfaces(): boolean;
|
|
221
|
-
|
|
222
|
-
/**
|
|
223
|
-
* Sets whether to render emphasized objects over the top of other objects, as if they were "glowing through".
|
|
224
|
-
*
|
|
225
|
-
* Default is ````true````.
|
|
226
|
-
*
|
|
227
|
-
* Note: updating this property will not affect the appearance of objects that are already emphasized.
|
|
228
|
-
*
|
|
229
|
-
* @type {Boolean}
|
|
230
|
-
*/
|
|
231
|
-
set glowThrough(arg: boolean);
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* Sets whether to render emphasized objects over the top of other objects, as if they were "glowing through".
|
|
235
|
-
*
|
|
236
|
-
* Default is ````true````.
|
|
237
|
-
*
|
|
238
|
-
* @type {Boolean}
|
|
239
|
-
*/
|
|
240
|
-
get glowThrough(): boolean;
|
|
241
|
-
}
|
|
1
|
+
import { Material } from "./Material";
|
|
2
|
+
import { Component } from "../Component";
|
|
3
|
+
|
|
4
|
+
export declare type EmphasisMaterialConfiguration = {
|
|
5
|
+
/** Optional ID, unique among all components in the parent {@link Scene}, generated automatically when omitted. */
|
|
6
|
+
id?: string;
|
|
7
|
+
/** Indicates if xray surfaces are filled with color. */
|
|
8
|
+
fill?: boolean;
|
|
9
|
+
/** EmphasisMaterial fill color. */
|
|
10
|
+
fillColor?: number[];
|
|
11
|
+
/** Transparency of filled xray faces. A value of ````0.0```` indicates fully transparent, ````1.0```` is fully opaque.*/
|
|
12
|
+
fillAlpha?: number;
|
|
13
|
+
/** Indicates if xray edges are visible. */
|
|
14
|
+
edges?: boolean;
|
|
15
|
+
/** RGB color of xray edges. */
|
|
16
|
+
edgeColor?: number[];
|
|
17
|
+
/** Transparency of xray edges. A value of ````0.0```` indicates fully transparent, ````1.0```` is fully opaque. */
|
|
18
|
+
edgeAlpha?: number;
|
|
19
|
+
/** Width of xray edges, in pixels. */
|
|
20
|
+
edgeWidth?: number;
|
|
21
|
+
/** Selects a preset EmphasisMaterial configuration - see {@link EmphasisMaterial.presets}. */
|
|
22
|
+
preset?: string;
|
|
23
|
+
/** Whether to render geometry backfaces when emphasising. */
|
|
24
|
+
backfaces?: boolean;
|
|
25
|
+
/** Whether to make the emphasized object appear to float on top of other objects, as if it were "glowing through" them. */
|
|
26
|
+
glowThrough?: boolean;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Configures the appearance of {@link Entity}s when they are xrayed, highlighted or selected.
|
|
31
|
+
*/
|
|
32
|
+
export declare class EmphasisMaterial extends Material {
|
|
33
|
+
/**
|
|
34
|
+
* @constructor
|
|
35
|
+
* @param {Component} owner Owner component. When destroyed, the owner will destroy this component as well.
|
|
36
|
+
* @param {EmphasisMaterialConfiguration} [cfg] The EmphasisMaterial configuration
|
|
37
|
+
*/
|
|
38
|
+
constructor(owner: Component, cfg?: EmphasisMaterialConfiguration);
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Gets available EmphasisMaterial presets.
|
|
42
|
+
*
|
|
43
|
+
* @type {Object}
|
|
44
|
+
*/
|
|
45
|
+
get presets(): any;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Selects a preset EmphasisMaterial configuration.
|
|
49
|
+
*
|
|
50
|
+
* Default value is "default".
|
|
51
|
+
*
|
|
52
|
+
* @type {String}
|
|
53
|
+
*/
|
|
54
|
+
set preset(arg: string);
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Gets the current preset EmphasisMaterial configuration.
|
|
58
|
+
*
|
|
59
|
+
* Default value is "default".
|
|
60
|
+
*
|
|
61
|
+
* @type {String}
|
|
62
|
+
*/
|
|
63
|
+
get preset(): string;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Sets if surfaces are filled with color.
|
|
67
|
+
*
|
|
68
|
+
* Default is ````true````.
|
|
69
|
+
*
|
|
70
|
+
* @type {Boolean}
|
|
71
|
+
*/
|
|
72
|
+
set fill(arg: boolean);
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Gets if surfaces are filled with color.
|
|
76
|
+
*
|
|
77
|
+
* Default is ````true````.
|
|
78
|
+
*
|
|
79
|
+
* @type {Boolean}
|
|
80
|
+
*/
|
|
81
|
+
get fill(): boolean;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Sets the RGB color of filled faces.
|
|
85
|
+
*
|
|
86
|
+
* Default is ````[0.4, 0.4, 0.4]````.
|
|
87
|
+
*
|
|
88
|
+
* @type {Number[]}
|
|
89
|
+
*/
|
|
90
|
+
set fillColor(arg: number[]);
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Gets the RGB color of filled faces.
|
|
94
|
+
*
|
|
95
|
+
* Default is ````[0.4, 0.4, 0.4]````.
|
|
96
|
+
*
|
|
97
|
+
* @type {Number[]}
|
|
98
|
+
*/
|
|
99
|
+
get fillColor(): number[];
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Sets the transparency of filled faces.
|
|
103
|
+
*
|
|
104
|
+
* A value of ````0.0```` indicates fully transparent, ````1.0```` is fully opaque.
|
|
105
|
+
*
|
|
106
|
+
* Default is ````0.2````.
|
|
107
|
+
*
|
|
108
|
+
* @type {Number}
|
|
109
|
+
*/
|
|
110
|
+
set fillAlpha(arg: number);
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Gets the transparency of filled faces.
|
|
114
|
+
*
|
|
115
|
+
* A value of ````0.0```` indicates fully transparent, ````1.0```` is fully opaque.
|
|
116
|
+
*
|
|
117
|
+
* Default is ````0.2````.
|
|
118
|
+
*
|
|
119
|
+
* @type {Number}
|
|
120
|
+
*/
|
|
121
|
+
|
|
122
|
+
get fillAlpha(): number;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Sets if edges are visible.
|
|
126
|
+
*
|
|
127
|
+
* Default is ````true````.
|
|
128
|
+
*
|
|
129
|
+
* @type {Boolean}
|
|
130
|
+
*/
|
|
131
|
+
set edges(arg: boolean);
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Gets if edges are visible.
|
|
135
|
+
*
|
|
136
|
+
* Default is ````true````.
|
|
137
|
+
*
|
|
138
|
+
* @type {Boolean}
|
|
139
|
+
*/
|
|
140
|
+
get edges(): boolean;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Sets the RGB color of edges.
|
|
144
|
+
*
|
|
145
|
+
* Default is ```` [0.2, 0.2, 0.2]````.
|
|
146
|
+
*
|
|
147
|
+
* @type {Number[]}
|
|
148
|
+
*/
|
|
149
|
+
set edgeColor(arg: number[]);
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Gets the RGB color of edges.
|
|
153
|
+
*
|
|
154
|
+
* Default is ```` [0.2, 0.2, 0.2]````.
|
|
155
|
+
*
|
|
156
|
+
* @type {Number[]}
|
|
157
|
+
*/
|
|
158
|
+
get edgeColor(): number[];
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Sets the transparency of edges.
|
|
162
|
+
*
|
|
163
|
+
* A value of ````0.0```` indicates fully transparent, ````1.0```` is fully opaque.
|
|
164
|
+
*
|
|
165
|
+
* Default is ````0.2````.
|
|
166
|
+
*
|
|
167
|
+
* @type {Number}
|
|
168
|
+
*/
|
|
169
|
+
set edgeAlpha(arg: number);
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Gets the transparency of edges.
|
|
173
|
+
*
|
|
174
|
+
* A value of ````0.0```` indicates fully transparent, ````1.0```` is fully opaque.
|
|
175
|
+
*
|
|
176
|
+
* Default is ````0.2````.
|
|
177
|
+
*
|
|
178
|
+
* @type {Number}
|
|
179
|
+
*/
|
|
180
|
+
get edgeAlpha(): number;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Sets edge width.
|
|
184
|
+
*
|
|
185
|
+
* This is not supported by WebGL implementations based on DirectX [2019].
|
|
186
|
+
*
|
|
187
|
+
* Default value is ````1.0```` pixels.
|
|
188
|
+
*
|
|
189
|
+
* @type {Number}
|
|
190
|
+
*/
|
|
191
|
+
set edgeWidth(arg: number);
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Gets edge width.
|
|
195
|
+
*
|
|
196
|
+
* This is not supported by WebGL implementations based on DirectX [2019].
|
|
197
|
+
*
|
|
198
|
+
* Default value is ````1.0```` pixels.
|
|
199
|
+
*
|
|
200
|
+
* @type {Number}
|
|
201
|
+
*/
|
|
202
|
+
get edgeWidth(): number;
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Sets whether to render backfaces when {@link EmphasisMaterial.fill} is ````true````.
|
|
206
|
+
*
|
|
207
|
+
* Default is ````false````.
|
|
208
|
+
*
|
|
209
|
+
* @type {Boolean}
|
|
210
|
+
*/
|
|
211
|
+
set backfaces(arg: boolean);
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Gets whether to render backfaces when {@link EmphasisMaterial.fill} is ````true````.
|
|
215
|
+
*
|
|
216
|
+
* Default is ````true````.
|
|
217
|
+
*
|
|
218
|
+
* @type {Boolean}
|
|
219
|
+
*/
|
|
220
|
+
get backfaces(): boolean;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Sets whether to render emphasized objects over the top of other objects, as if they were "glowing through".
|
|
224
|
+
*
|
|
225
|
+
* Default is ````true````.
|
|
226
|
+
*
|
|
227
|
+
* Note: updating this property will not affect the appearance of objects that are already emphasized.
|
|
228
|
+
*
|
|
229
|
+
* @type {Boolean}
|
|
230
|
+
*/
|
|
231
|
+
set glowThrough(arg: boolean);
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Sets whether to render emphasized objects over the top of other objects, as if they were "glowing through".
|
|
235
|
+
*
|
|
236
|
+
* Default is ````true````.
|
|
237
|
+
*
|
|
238
|
+
* @type {Boolean}
|
|
239
|
+
*/
|
|
240
|
+
get glowThrough(): boolean;
|
|
241
|
+
}
|