@xeokit/xeokit-sdk 2.6.86 → 2.6.87-rc1-no-las
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 +3 -3
- package/dist/xeokit-sdk.cjs.js +15512 -32635
- package/dist/xeokit-sdk.es.js +15513 -32634
- package/dist/xeokit-sdk.es5.js +31259 -29843
- package/dist/xeokit-sdk.es5.js.map +1 -0
- package/dist/xeokit-sdk.min.cjs.js +8 -8
- package/dist/xeokit-sdk.min.es.js +8 -8
- package/dist/xeokit-sdk.min.es5.js +34 -33
- package/dist/xeokit-sdk.min.es5.js.map +1 -0
- package/package.json +10 -3
- package/src/plugins/CxConverterIFCLoaderPlugin/CxConverterIFCLoaderPlugin.js +81 -81
- package/src/plugins/CxConverterIFCLoaderPlugin/index.js +1 -1
- package/src/plugins/LASLoaderPlugin/index.js +1 -1
- package/src/plugins/NavCubePlugin/NavCubePlugin.js +63 -22
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV1.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV10.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV12.js +9 -9
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV2.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV3.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV4.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV5.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV6.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV7.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV8.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV9.js +5 -5
- package/src/plugins/index.js +2 -2
- package/src/viewer/scene/CameraControl/lib/handlers/TouchPickHandler.js +7 -6
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurement.d.ts +26 -108
- package/types/plugins/CityJSONLoaderPlugin/CityJSONLoaderPlugin.d.ts +3 -14
- package/types/plugins/DotBIMLoaderPlugin/DotBIMLoaderPlugin.d.ts +5 -23
- package/types/plugins/GLTFLoaderPlugin/GLTFLoaderPlugin.d.ts +5 -25
- package/types/plugins/LASLoaderPlugin/LASLoaderPlugin.d.ts +20 -100
- package/types/plugins/STLLoaderPlugin/STLLoaderPlugin.d.ts +3 -14
- package/types/plugins/WebIFCLoaderPlugin/WebIFCLoaderPlugin.d.ts +18 -83
- package/types/plugins/XKTLoaderPlugin/XKTLoaderPlugin.d.ts +21 -106
- package/types/viewer/Configs.d.ts +6 -24
- package/types/viewer/scene/CameraControl/CameraControl.d.ts +66 -445
- package/types/viewer/scene/Component.d.ts +1 -1
- package/types/viewer/scene/Entity.d.ts +40 -186
- package/types/viewer/scene/camera/Camera.d.ts +50 -170
- package/types/viewer/scene/camera/CameraFlightAnimation.d.ts +8 -57
- package/types/viewer/scene/camera/CameraPath.d.ts +8 -13
- package/types/viewer/scene/camera/CameraPathAnimation.d.ts +4 -22
- package/types/viewer/scene/camera/CustomProjection.d.ts +6 -21
- package/types/viewer/scene/camera/Frustum.d.ts +18 -90
- package/types/viewer/scene/camera/Ortho.d.ts +14 -54
- package/types/viewer/scene/camera/Perspective.d.ts +16 -70
- package/types/viewer/scene/geometry/ReadableGeometry.d.ts +21 -25
- package/types/viewer/scene/geometry/VBOGeometry.d.ts +7 -7
- package/types/viewer/scene/lights/AmbientLight.d.ts +4 -26
- package/types/viewer/scene/lights/DirLight.d.ts +8 -52
- package/types/viewer/scene/lights/PointLight.d.ts +14 -93
- package/types/viewer/scene/materials/EdgeMaterial.d.ts +12 -37
- package/types/viewer/scene/materials/EmphasisMaterial.d.ts +22 -119
- package/types/viewer/scene/materials/Fresnel.d.ts +10 -50
- package/types/viewer/scene/materials/LambertMaterial.d.ts +16 -90
- package/types/viewer/scene/materials/LinesMaterial.d.ts +7 -25
- package/types/viewer/scene/materials/MetallicMaterial.d.ts +40 -127
- package/types/viewer/scene/materials/PhongMaterial.d.ts +52 -185
- package/types/viewer/scene/materials/PointsMaterial.d.ts +20 -101
- package/types/viewer/scene/materials/SpecularMaterial.d.ts +41 -117
- package/types/viewer/scene/materials/Texture.d.ts +22 -62
- package/types/viewer/scene/models/SceneModel.d.ts +76 -233
- package/types/viewer/scene/models/SceneModelEntity.d.ts +50 -211
- package/types/viewer/scene/models/SceneModelMesh.d.ts +4 -4
- package/types/viewer/scene/models/SceneModelTransform.d.ts +14 -59
- package/types/viewer/scene/paths/CubicBezierCurve.d.ts +12 -73
- package/types/viewer/scene/paths/Curve.d.ts +6 -19
- package/types/viewer/scene/paths/Path.d.ts +10 -57
- package/types/viewer/scene/paths/QuadraticBezierCurve.d.ts +10 -57
- package/types/viewer/scene/paths/SplineCurve.d.ts +6 -32
- package/types/viewer/scene/scene/Scene.d.ts +94 -196
- package/types/viewer/scene/sectionPlane/SectionPlane.d.ts +12 -69
- package/types/viewer/scene/viewport/Viewport.d.ts +4 -14
- package/types/viewer/scene/webgl/PickResult.d.ts +13 -28
|
@@ -30,134 +30,55 @@ export declare class PointLight extends Light {
|
|
|
30
30
|
constructor(owner: Component, cfg: PointLightConfiguration);
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* The position of this PointLight.
|
|
34
34
|
*
|
|
35
35
|
* This will be either World- or View-space, depending on the value of {@link PointLight#space}.
|
|
36
36
|
*
|
|
37
37
|
* Default value is ````[1.0, 1.0, 1.0]````.
|
|
38
|
-
*
|
|
39
|
-
* @param {Number[]} pos The position.
|
|
40
38
|
*/
|
|
41
|
-
|
|
39
|
+
pos: number[];
|
|
42
40
|
|
|
43
41
|
/**
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
* This will be either World- or View-space, depending on the value of {@link PointLight#space}.
|
|
47
|
-
*
|
|
48
|
-
* Default value is ````[1.0, 1.0, 1.0]````.
|
|
49
|
-
*
|
|
50
|
-
* @returns {Number[]} The position.
|
|
51
|
-
*/
|
|
52
|
-
get pos(): number[];
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Sets the RGB color of this PointLight.
|
|
42
|
+
* The RGB color of this PointLight.
|
|
56
43
|
*
|
|
57
44
|
* Default value is ````[0.7, 0.7, 0.8]````.
|
|
58
|
-
*
|
|
59
|
-
* @param {Number[]} color The PointLight's RGB color.
|
|
60
45
|
*/
|
|
61
|
-
|
|
46
|
+
color: number[];
|
|
62
47
|
|
|
63
48
|
/**
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
* Default value is ````[0.7, 0.7, 0.8]````.
|
|
67
|
-
*
|
|
68
|
-
* @returns {Number[]} The PointLight's RGB color.
|
|
69
|
-
*/
|
|
70
|
-
get color(): number[];
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Sets the intensity of this PointLight.
|
|
74
|
-
*
|
|
75
|
-
* Default intensity is ````1.0```` for maximum intensity.
|
|
76
|
-
*
|
|
77
|
-
* @param {Number} intensity The PointLight's intensity
|
|
78
|
-
*/
|
|
79
|
-
set intensity(intensity: number);
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Gets the intensity of this PointLight.
|
|
49
|
+
* The intensity of this PointLight.
|
|
83
50
|
*
|
|
84
51
|
* Default value is ````1.0```` for maximum intensity.
|
|
85
|
-
*
|
|
86
|
-
* @returns {Number} The PointLight's intensity.
|
|
87
|
-
*/
|
|
88
|
-
get intensity(): number;
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* Sets the constant attenuation factor for this PointLight.
|
|
92
|
-
*
|
|
93
|
-
* Default value is ````0````.
|
|
94
|
-
*
|
|
95
|
-
* @param {Number} value The constant attenuation factor.
|
|
96
52
|
*/
|
|
97
|
-
|
|
53
|
+
intensity: number;
|
|
98
54
|
|
|
99
55
|
/**
|
|
100
|
-
*
|
|
56
|
+
* The constant attenuation factor for this PointLight.
|
|
101
57
|
*
|
|
102
58
|
* Default value is ````0````.
|
|
103
|
-
*
|
|
104
|
-
* @returns {Number} The constant attenuation factor.
|
|
105
59
|
*/
|
|
106
|
-
|
|
60
|
+
constantAttenuation: number;
|
|
107
61
|
|
|
108
62
|
/**
|
|
109
|
-
*
|
|
63
|
+
* The linear attenuation factor for this PointLight.
|
|
110
64
|
*
|
|
111
65
|
* Default value is ````0````.
|
|
112
|
-
*
|
|
113
|
-
* @param {Number} value The linear attenuation factor.
|
|
114
66
|
*/
|
|
115
|
-
|
|
67
|
+
linearAttenuation: number;
|
|
116
68
|
|
|
117
69
|
/**
|
|
118
|
-
*
|
|
70
|
+
* The quadratic attenuation factor for this PointLight.
|
|
119
71
|
*
|
|
120
72
|
* Default value is ````0````.
|
|
121
|
-
*
|
|
122
|
-
* @returns {Number} The linear attenuation factor.
|
|
123
73
|
*/
|
|
124
|
-
|
|
74
|
+
quadraticAttenuation: number;
|
|
125
75
|
|
|
126
76
|
/**
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
* Default value is ````0````.
|
|
130
|
-
*
|
|
131
|
-
* @param {Number} value The quadratic attenuation factor.
|
|
132
|
-
*/
|
|
133
|
-
set quadraticAttenuation(value: number);
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* Gets the quadratic attenuation factor for this PointLight.
|
|
137
|
-
*
|
|
138
|
-
* Default value is ````0````.
|
|
139
|
-
*
|
|
140
|
-
* @returns {Number} The quadratic attenuation factor.
|
|
141
|
-
*/
|
|
142
|
-
get quadraticAttenuation(): number;
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* Sets if this PointLight casts a shadow.
|
|
146
|
-
*
|
|
147
|
-
* Default value is ````false````.
|
|
148
|
-
*
|
|
149
|
-
* @param {Boolean} castsShadow Set ````true```` to cast shadows.
|
|
150
|
-
*/
|
|
151
|
-
set castsShadow(castsShadow: boolean);
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* Gets if this PointLight casts a shadow.
|
|
77
|
+
* Whether this PointLight casts a shadow.
|
|
155
78
|
*
|
|
156
79
|
* Default value is ````false````.
|
|
157
|
-
*
|
|
158
|
-
* @returns {Boolean} ````true```` if this PointLight casts shadows.
|
|
159
80
|
*/
|
|
160
|
-
|
|
81
|
+
castsShadow: boolean;
|
|
161
82
|
|
|
162
83
|
/**
|
|
163
84
|
* Destroys this PointLight.
|
|
@@ -26,58 +26,33 @@ export declare class EdgeMaterial extends Material {
|
|
|
26
26
|
constructor(owner: Component, cfg?: EdgeMaterialConfiguration);
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Available EdgeMaterial presets.
|
|
30
30
|
*/
|
|
31
|
-
|
|
31
|
+
readonly presets: any;
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Preset EdgeMaterial configuration.
|
|
35
35
|
* @type {String}
|
|
36
36
|
*/
|
|
37
|
-
|
|
37
|
+
preset: string;
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* RGB edge color.
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
edgeColor: number[];
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Edge transparency.
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
edgeAlpha: number;
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* Edge width.
|
|
51
51
|
*/
|
|
52
|
-
|
|
52
|
+
edgeWidth: number;
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Whether edges are visible.
|
|
56
56
|
*/
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Gets edge transparency.
|
|
61
|
-
*/
|
|
62
|
-
get edgeAlpha(): number;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Sets edge width.
|
|
66
|
-
*/
|
|
67
|
-
set edgeWidth(arg: number);
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Gets edge width.
|
|
71
|
-
*/
|
|
72
|
-
get edgeWidth(): number;
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Sets if edges are visible.
|
|
76
|
-
*/
|
|
77
|
-
set edges(arg: boolean);
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Gets if edges are visible.
|
|
81
|
-
*/
|
|
82
|
-
get edges(): boolean;
|
|
57
|
+
edges: boolean;
|
|
83
58
|
}
|
|
@@ -38,68 +38,41 @@ export declare class EmphasisMaterial extends Material {
|
|
|
38
38
|
constructor(owner: Component, cfg?: EmphasisMaterialConfiguration);
|
|
39
39
|
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* Available EmphasisMaterial presets.
|
|
42
42
|
*
|
|
43
43
|
* @type {Object}
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
readonly presets: any;
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Preset EmphasisMaterial configuration.
|
|
49
49
|
*
|
|
50
50
|
* Default value is "default".
|
|
51
51
|
*
|
|
52
52
|
* @type {String}
|
|
53
53
|
*/
|
|
54
|
-
|
|
54
|
+
preset: string;
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
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.
|
|
57
|
+
* Whether surfaces are filled with color.
|
|
76
58
|
*
|
|
77
59
|
* Default is ````true````.
|
|
78
60
|
*
|
|
79
61
|
* @type {Boolean}
|
|
80
62
|
*/
|
|
81
|
-
|
|
63
|
+
fill: boolean;
|
|
82
64
|
|
|
83
65
|
/**
|
|
84
|
-
*
|
|
66
|
+
* RGB color of filled faces.
|
|
85
67
|
*
|
|
86
68
|
* Default is ````[0.4, 0.4, 0.4]````.
|
|
87
69
|
*
|
|
88
70
|
* @type {Number[]}
|
|
89
71
|
*/
|
|
90
|
-
|
|
72
|
+
fillColor: number[];
|
|
91
73
|
|
|
92
74
|
/**
|
|
93
|
-
*
|
|
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.
|
|
75
|
+
* Transparency of filled faces.
|
|
103
76
|
*
|
|
104
77
|
* A value of ````0.0```` indicates fully transparent, ````1.0```` is fully opaque.
|
|
105
78
|
*
|
|
@@ -107,58 +80,28 @@ export declare class EmphasisMaterial extends Material {
|
|
|
107
80
|
*
|
|
108
81
|
* @type {Number}
|
|
109
82
|
*/
|
|
110
|
-
|
|
83
|
+
fillAlpha: number;
|
|
111
84
|
|
|
112
85
|
/**
|
|
113
|
-
*
|
|
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.
|
|
86
|
+
* Whether edges are visible.
|
|
126
87
|
*
|
|
127
88
|
* Default is ````true````.
|
|
128
89
|
*
|
|
129
90
|
* @type {Boolean}
|
|
130
91
|
*/
|
|
131
|
-
|
|
92
|
+
edges: boolean;
|
|
132
93
|
|
|
133
94
|
/**
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
* Default is ````true````.
|
|
137
|
-
*
|
|
138
|
-
* @type {Boolean}
|
|
139
|
-
*/
|
|
140
|
-
get edges(): boolean;
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Sets the RGB color of edges.
|
|
95
|
+
* RGB color of edges.
|
|
144
96
|
*
|
|
145
97
|
* Default is ```` [0.2, 0.2, 0.2]````.
|
|
146
98
|
*
|
|
147
99
|
* @type {Number[]}
|
|
148
100
|
*/
|
|
149
|
-
|
|
101
|
+
edgeColor: number[];
|
|
150
102
|
|
|
151
103
|
/**
|
|
152
|
-
*
|
|
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.
|
|
104
|
+
* Transparency of edges.
|
|
162
105
|
*
|
|
163
106
|
* A value of ````0.0```` indicates fully transparent, ````1.0```` is fully opaque.
|
|
164
107
|
*
|
|
@@ -166,32 +109,10 @@ export declare class EmphasisMaterial extends Material {
|
|
|
166
109
|
*
|
|
167
110
|
* @type {Number}
|
|
168
111
|
*/
|
|
169
|
-
|
|
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);
|
|
112
|
+
edgeAlpha: number;
|
|
192
113
|
|
|
193
114
|
/**
|
|
194
|
-
*
|
|
115
|
+
* Edge width.
|
|
195
116
|
*
|
|
196
117
|
* This is not supported by WebGL implementations based on DirectX [2019].
|
|
197
118
|
*
|
|
@@ -199,28 +120,19 @@ export declare class EmphasisMaterial extends Material {
|
|
|
199
120
|
*
|
|
200
121
|
* @type {Number}
|
|
201
122
|
*/
|
|
202
|
-
|
|
123
|
+
edgeWidth: number;
|
|
203
124
|
|
|
204
125
|
/**
|
|
205
|
-
*
|
|
126
|
+
* Whether to render backfaces when {@link EmphasisMaterial.fill} is ````true````.
|
|
206
127
|
*
|
|
207
128
|
* Default is ````false````.
|
|
208
129
|
*
|
|
209
130
|
* @type {Boolean}
|
|
210
131
|
*/
|
|
211
|
-
|
|
132
|
+
backfaces: boolean;
|
|
212
133
|
|
|
213
134
|
/**
|
|
214
|
-
*
|
|
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".
|
|
135
|
+
* Whether to render emphasized objects over the top of other objects, as if they were "glowing through".
|
|
224
136
|
*
|
|
225
137
|
* Default is ````true````.
|
|
226
138
|
*
|
|
@@ -228,16 +140,7 @@ export declare class EmphasisMaterial extends Material {
|
|
|
228
140
|
*
|
|
229
141
|
* @type {Boolean}
|
|
230
142
|
*/
|
|
231
|
-
|
|
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;
|
|
143
|
+
glowThrough: boolean;
|
|
241
144
|
|
|
242
145
|
/**
|
|
243
146
|
* Destroys this EmphasisMaterial.
|
|
@@ -24,85 +24,45 @@ export declare class Fresnel extends Component {
|
|
|
24
24
|
constructor(owner: Component, cfg?: FresnelMaterialConfiguration);
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Fresnel's edge color.
|
|
28
28
|
*
|
|
29
29
|
* Default value is ````[0.0, 0.0, 0.0]````.
|
|
30
30
|
*
|
|
31
31
|
* @type {Number[]}
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
edgeColor: number[];
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* Default value is ````[0.0, 0.0, 0.0]````.
|
|
38
|
-
*
|
|
39
|
-
* @type {Number[]}
|
|
40
|
-
*/
|
|
41
|
-
get edgeColor(): number[];
|
|
42
|
-
/**
|
|
43
|
-
* Sets the Fresnel's center color.
|
|
35
|
+
* Fresnel's center color.
|
|
44
36
|
*
|
|
45
37
|
* Default value is ````[1.0, 1.0, 1.0]````.
|
|
46
38
|
*
|
|
47
39
|
* @type {Number[]}
|
|
48
40
|
*/
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Gets the Fresnel's center color.
|
|
52
|
-
*
|
|
53
|
-
* Default value is ````[1.0, 1.0, 1.0]````.
|
|
54
|
-
*
|
|
55
|
-
* @type {Number[]}
|
|
56
|
-
*/
|
|
57
|
-
get centerColor(): number[];
|
|
58
|
-
/**
|
|
59
|
-
* Sets the Fresnel's edge bias.
|
|
60
|
-
*
|
|
61
|
-
* Default value is ````0````.
|
|
62
|
-
*
|
|
63
|
-
* @type {Number}
|
|
64
|
-
*/
|
|
65
|
-
set edgeBias(arg: number);
|
|
41
|
+
centerColor: number[];
|
|
66
42
|
/**
|
|
67
|
-
*
|
|
43
|
+
* Fresnel's edge bias.
|
|
68
44
|
*
|
|
69
45
|
* Default value is ````0````.
|
|
70
46
|
*
|
|
71
47
|
* @type {Number}
|
|
72
48
|
*/
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Sets the Fresnel's center bias.
|
|
76
|
-
*
|
|
77
|
-
* Default value is ````1````.
|
|
78
|
-
*
|
|
79
|
-
* @type {Number}
|
|
80
|
-
*/
|
|
81
|
-
set centerBias(arg: number);
|
|
82
|
-
/**
|
|
83
|
-
* Gets the Fresnel's center bias.
|
|
84
|
-
*
|
|
85
|
-
* Default value is ````1````.
|
|
86
|
-
*
|
|
87
|
-
* @type {Number}
|
|
88
|
-
*/
|
|
89
|
-
get centerBias(): number;
|
|
49
|
+
edgeBias: number;
|
|
90
50
|
/**
|
|
91
|
-
*
|
|
51
|
+
* Fresnel's center bias.
|
|
92
52
|
*
|
|
93
53
|
* Default value is ````1````.
|
|
94
54
|
*
|
|
95
55
|
* @type {Number}
|
|
96
56
|
*/
|
|
97
|
-
|
|
57
|
+
centerBias: number;
|
|
98
58
|
/**
|
|
99
|
-
*
|
|
59
|
+
* Fresnel's power.
|
|
100
60
|
*
|
|
101
61
|
* Default value is ````1````.
|
|
102
62
|
*
|
|
103
63
|
* @type {Number}
|
|
104
64
|
*/
|
|
105
|
-
|
|
65
|
+
power: number;
|
|
106
66
|
|
|
107
67
|
/**
|
|
108
68
|
* Destroys this Fresnel.
|
|
@@ -38,72 +38,34 @@ export declare class LambertMaterial extends Material {
|
|
|
38
38
|
constructor(owner: Component, cfg?: LambertMaterialConfiguration);
|
|
39
39
|
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* LambertMaterial's ambient color.
|
|
42
42
|
*
|
|
43
43
|
* Default value is ````[0.3, 0.3, 0.3]````.
|
|
44
44
|
*
|
|
45
45
|
* @type {Number[]}
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
ambient: number[];
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
* Default value is ````[0.3, 0.3, 0.3]````.
|
|
53
|
-
*
|
|
54
|
-
* @type {Number[]}
|
|
55
|
-
*/
|
|
56
|
-
get ambient(): number[];
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Sets the LambertMaterial's diffuse color.
|
|
50
|
+
* LambertMaterial's diffuse color.
|
|
60
51
|
*
|
|
61
52
|
* Default value is ````[1.0, 1.0, 1.0]````.
|
|
62
53
|
*
|
|
63
54
|
* @type {Number[]}
|
|
64
55
|
*/
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Gets the LambertMaterial's diffuse color.
|
|
69
|
-
*
|
|
70
|
-
* Default value is ````[1.0, 1.0, 1.0]````.
|
|
71
|
-
*
|
|
72
|
-
* @type {Number[]}
|
|
73
|
-
*/
|
|
74
|
-
get color(): number[];
|
|
56
|
+
color: number[];
|
|
75
57
|
|
|
76
58
|
/**
|
|
77
|
-
*
|
|
59
|
+
* LambertMaterial's emissive color.
|
|
78
60
|
*
|
|
79
61
|
* Default value is ````[0.0, 0.0, 0.0]````.
|
|
80
62
|
*
|
|
81
63
|
* @type {Number[]}
|
|
82
64
|
*/
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Gets the LambertMaterial's emissive color.
|
|
87
|
-
*
|
|
88
|
-
* Default value is ````[0.0, 0.0, 0.0]````.
|
|
89
|
-
*
|
|
90
|
-
* @type {Number[]}
|
|
91
|
-
*/
|
|
92
|
-
get emissive(): number[];
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* Sets factor in the range ````[0..1]```` indicating how transparent the LambertMaterial is.
|
|
96
|
-
*
|
|
97
|
-
* A value of ````0.0```` indicates fully transparent, ````1.0```` is fully opaque.
|
|
98
|
-
*
|
|
99
|
-
* Default value is ````1.0````
|
|
100
|
-
*
|
|
101
|
-
* @type {Number}
|
|
102
|
-
*/
|
|
103
|
-
set alpha(value: number);
|
|
65
|
+
emissive: number[];
|
|
104
66
|
|
|
105
67
|
/**
|
|
106
|
-
*
|
|
68
|
+
* Factor in the range ````[0..1]```` indicating how transparent the LambertMaterial is.
|
|
107
69
|
*
|
|
108
70
|
* A value of ````0.0```` indicates fully transparent, ````1.0```` is fully opaque.
|
|
109
71
|
*
|
|
@@ -111,10 +73,10 @@ export declare class LambertMaterial extends Material {
|
|
|
111
73
|
*
|
|
112
74
|
* @type {Number}
|
|
113
75
|
*/
|
|
114
|
-
|
|
76
|
+
alpha: number;
|
|
115
77
|
|
|
116
78
|
/**
|
|
117
|
-
*
|
|
79
|
+
* LambertMaterial's line width.
|
|
118
80
|
*
|
|
119
81
|
* This is not supported by WebGL implementations based on DirectX [2019].
|
|
120
82
|
*
|
|
@@ -122,68 +84,32 @@ export declare class LambertMaterial extends Material {
|
|
|
122
84
|
*
|
|
123
85
|
* @type {Number}
|
|
124
86
|
*/
|
|
125
|
-
|
|
87
|
+
lineWidth: number;
|
|
126
88
|
|
|
127
89
|
/**
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
* This is not supported by WebGL implementations based on DirectX [2019].
|
|
90
|
+
* LambertMaterial's point size.
|
|
131
91
|
*
|
|
132
92
|
* Default value is ````1.0````.
|
|
133
93
|
*
|
|
134
94
|
* @type {Number}
|
|
135
95
|
*/
|
|
136
|
-
|
|
96
|
+
pointSize: number;
|
|
137
97
|
|
|
138
98
|
/**
|
|
139
|
-
*
|
|
140
|
-
*
|
|
141
|
-
* Default value is ````1.0````.
|
|
142
|
-
*
|
|
143
|
-
* @type {Number}
|
|
144
|
-
*/
|
|
145
|
-
set pointSize(value: number);
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Gets the LambertMaterial's point size.
|
|
149
|
-
*
|
|
150
|
-
* Default value is ````1.0````.
|
|
151
|
-
*
|
|
152
|
-
* @type {Number}
|
|
153
|
-
*/
|
|
154
|
-
get pointSize(): number;
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* Sets whether backfaces are visible on attached {@link Mesh}es.
|
|
158
|
-
*
|
|
159
|
-
* @type {Boolean}
|
|
160
|
-
*/
|
|
161
|
-
set backfaces(value: boolean);
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* Gets whether backfaces are visible on attached {@link Mesh}es.
|
|
99
|
+
* Whether backfaces are visible on attached {@link Mesh}es.
|
|
165
100
|
*
|
|
166
101
|
* @type {Boolean}
|
|
167
102
|
*/
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* Sets the winding direction of front faces of {@link Geometry} of attached {@link Mesh}es.
|
|
172
|
-
*
|
|
173
|
-
* Default value is ````"ccw"````.
|
|
174
|
-
*
|
|
175
|
-
* @type {String}
|
|
176
|
-
*/
|
|
177
|
-
set frontface(value: "cw" | "ccw");
|
|
103
|
+
backfaces: boolean;
|
|
178
104
|
|
|
179
105
|
/**
|
|
180
|
-
*
|
|
106
|
+
* Winding direction of front faces of {@link Geometry} of attached {@link Mesh}es.
|
|
181
107
|
*
|
|
182
108
|
* Default value is ````"ccw"````.
|
|
183
109
|
*
|
|
184
110
|
* @type {String}
|
|
185
111
|
*/
|
|
186
|
-
|
|
112
|
+
frontface: "cw" | "ccw";
|
|
187
113
|
|
|
188
114
|
/**
|
|
189
115
|
* Destroys this LambertMaterial.
|