@xeokit/xeokit-sdk 2.2.5-beta → 2.2.5-beta-3
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/dist/xeokit-sdk.cjs.js +33 -37
- package/dist/xeokit-sdk.es.js +33 -37
- package/dist/xeokit-sdk.min.cjs.js +1 -1
- package/dist/xeokit-sdk.min.es.js +1 -1
- package/package.json +10 -5
- package/types/extras/ContextMenu/ContextMenu.d.ts +125 -0
- package/types/extras/ContextMenu/index.d.ts +1 -0
- package/types/extras/index.d.ts +1 -0
- package/types/index.d.ts +3 -0
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurement.d.ts +144 -0
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsControl.d.ts +67 -0
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsPlugin.d.ts +99 -0
- package/types/plugins/AngleMeasurementsPlugin/index.d.ts +1 -0
- package/types/plugins/AnnotationsPlugin/Annotation.d.ts +135 -0
- package/types/plugins/AnnotationsPlugin/AnnotationsPlugin.d.ts +131 -0
- package/types/plugins/AnnotationsPlugin/index.d.ts +2 -0
- package/types/plugins/AxisGizmoPlugin/AxisGizmoPlugin.d.ts +28 -0
- package/types/plugins/AxisGizmoPlugin/index.d.ts +1 -0
- package/types/plugins/BCFViewpointsPlugin/BCFViewpointsPlugin.d.ts +146 -0
- package/types/plugins/BCFViewpointsPlugin/index.d.ts +1 -0
- package/types/plugins/CityJSONLoaderPlugin/CityJSONLoaderPlugin.d.ts +81 -0
- package/types/plugins/CityJSONLoaderPlugin/index.d.ts +1 -0
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurement.d.ts +137 -0
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsControl.d.ts +65 -0
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsPlugin.d.ts +135 -0
- package/types/plugins/DistanceMeasurementsPlugin/index.d.ts +1 -0
- package/types/plugins/FastNavPlugin/FastNavPlugin.d.ts +203 -0
- package/types/plugins/FastNavPlugin/index.d.ts +1 -0
- package/types/plugins/GLTFLoaderPlugin/GLTFLoaderPlugin.d.ts +140 -0
- package/types/plugins/GLTFLoaderPlugin/index.d.ts +1 -0
- package/types/plugins/LASLoaderPlugin/LASLoaderPlugin.d.ts +146 -0
- package/types/plugins/LASLoaderPlugin/index.d.ts +1 -0
- package/types/plugins/NavCubePlugin/NavCubePlugin.d.ts +160 -0
- package/types/plugins/NavCubePlugin/index.d.ts +1 -0
- package/types/plugins/OBJLoaderPlugin/OBJLoaderPlugin.d.ts +44 -0
- package/types/plugins/OBJLoaderPlugin/index.d.ts +1 -0
- package/types/plugins/STLLoaderPlugin/STLLoaderPlugin.d.ts +88 -0
- package/types/plugins/STLLoaderPlugin/index.d.ts +1 -0
- package/types/plugins/SectionPlanesPlugin/SectionPlanesPlugin.d.ts +103 -0
- package/types/plugins/SectionPlanesPlugin/index.d.ts +1 -0
- package/types/plugins/SkyboxesPlugin/SkyboxesPlugin.d.ts +34 -0
- package/types/plugins/SkyboxesPlugin/index.d.ts +1 -0
- package/types/plugins/StoreyViewsPlugin/Storey.d.ts +47 -0
- package/types/plugins/StoreyViewsPlugin/StoreyMap.d.ts +41 -0
- package/types/plugins/StoreyViewsPlugin/StoreyViewsPlugin.d.ts +180 -0
- package/types/plugins/StoreyViewsPlugin/index.d.ts +1 -0
- package/types/plugins/TreeViewPlugin/ModelTreeView.d.ts +24 -0
- package/types/plugins/TreeViewPlugin/TreeViewNode.d.ts +66 -0
- package/types/plugins/TreeViewPlugin/TreeViewPlugin.d.ts +150 -0
- package/types/plugins/TreeViewPlugin/index.d.ts +1 -0
- package/types/plugins/ViewCullPlugin/ViewCullPlugin.d.ts +34 -0
- package/types/plugins/ViewCullPlugin/index.d.ts +1 -0
- package/types/plugins/WebIFCLoaderPlugin/WebIFCLoaderPlugin.d.ts +230 -0
- package/types/plugins/WebIFCLoaderPlugin/index.d.ts +1 -0
- package/types/plugins/XKTLoaderPlugin/XKTLoaderPlugin.d.ts +277 -0
- package/types/plugins/XKTLoaderPlugin/index.d.ts +1 -0
- package/types/plugins/XML3DLoaderPlugin/XML3DLoaderPlugin.d.ts +65 -0
- package/types/plugins/XML3DLoaderPlugin/index.d.ts +1 -0
- package/types/plugins/index.d.ts +34 -0
- package/types/viewer/Configs.d.ts +20 -0
- package/types/viewer/Plugin.d.ts +69 -0
- package/types/viewer/Viewer.d.ts +212 -0
- package/types/viewer/index.d.ts +6 -0
- package/types/viewer/localization/LocaleService.d.ts +183 -0
- package/types/viewer/metadata/IFCObjectDefaults.d.ts +9 -0
- package/types/viewer/metadata/MetaModel.d.ts +65 -0
- package/types/viewer/metadata/MetaObject.d.ts +74 -0
- package/types/viewer/metadata/MetaScene.d.ts +135 -0
- package/types/viewer/metadata/Property.d.ts +29 -0
- package/types/viewer/metadata/PropertySet.d.ts +31 -0
- package/types/viewer/metadata/index.d.ts +6 -0
- package/types/viewer/scene/CameraControl/CameraControl.d.ts +599 -0
- package/types/viewer/scene/Component.d.ts +155 -0
- package/types/viewer/scene/Entity.d.ts +394 -0
- package/types/viewer/scene/PerformanceModel/PerformanceModel.d.ts +622 -0
- package/types/viewer/scene/PerformanceModel/PerformanceNode.d.ts +302 -0
- package/types/viewer/scene/camera/Camera.d.ts +364 -0
- package/types/viewer/scene/camera/CameraFlightAnimation.d.ts +167 -0
- package/types/viewer/scene/camera/CameraPath.d.ts +28 -0
- package/types/viewer/scene/camera/CameraPathAnimation.d.ts +95 -0
- package/types/viewer/scene/camera/CustomProjection.d.ts +57 -0
- package/types/viewer/scene/camera/Frustum.d.ts +166 -0
- package/types/viewer/scene/camera/Ortho.d.ts +115 -0
- package/types/viewer/scene/camera/Perspective.d.ts +136 -0
- package/types/viewer/scene/camera/index.d.ts +4 -0
- package/types/viewer/scene/geometry/Geometry.d.ts +7 -0
- package/types/viewer/scene/geometry/ReadableGeometry.d.ts +95 -0
- package/types/viewer/scene/geometry/index.d.ts +1 -0
- package/types/viewer/scene/index.d.ts +7 -0
- package/types/viewer/scene/marker/Marker.d.ts +136 -0
- package/types/viewer/scene/marker/index.d.ts +1 -0
- package/types/viewer/scene/materials/EdgeMaterial.d.ts +83 -0
- package/types/viewer/scene/materials/EmphasisMaterial.d.ts +241 -0
- package/types/viewer/scene/materials/Fresnel.d.ts +148 -0
- package/types/viewer/scene/materials/LinesMaterial.d.ts +71 -0
- package/types/viewer/scene/materials/Material.d.ts +3 -0
- package/types/viewer/scene/materials/PhongMaterial.d.ts +468 -0
- package/types/viewer/scene/materials/PointsMaterial.d.ts +206 -0
- package/types/viewer/scene/materials/Texture.d.ts +260 -0
- package/types/viewer/scene/materials/index.d.ts +6 -0
- package/types/viewer/scene/math/math.d.ts +36 -0
- package/types/viewer/scene/mesh/Mesh.d.ts +786 -0
- package/types/viewer/scene/mesh/index.d.ts +1 -0
- package/types/viewer/scene/nodes/Node.d.ts +664 -0
- package/types/viewer/scene/nodes/index.d.ts +1 -0
- package/types/viewer/scene/postfx/SAO.d.ts +209 -0
- package/types/viewer/scene/scene/Scene.d.ts +771 -0
- package/types/viewer/scene/sectionPlane/SectionPlane.d.ts +93 -0
- package/types/viewer/scene/sectionPlane/index.d.ts +1 -0
- package/types/viewer/scene/viewport/Viewport.d.ts +23 -0
- package/types/viewer/scene/webgl/PickResult.d.ts +103 -0
package/dist/xeokit-sdk.cjs.js
CHANGED
|
@@ -6956,7 +6956,7 @@ function Core() {
|
|
|
6956
6956
|
Existing {@link Scene}s , mapped to their IDs
|
|
6957
6957
|
@property scenes
|
|
6958
6958
|
@namespace xeokit
|
|
6959
|
-
@type {
|
|
6959
|
+
@type {Scene}
|
|
6960
6960
|
*/
|
|
6961
6961
|
this.scenes = {};
|
|
6962
6962
|
|
|
@@ -12025,7 +12025,7 @@ class Canvas extends Component {
|
|
|
12025
12025
|
* ````
|
|
12026
12026
|
*
|
|
12027
12027
|
* @property boundary
|
|
12028
|
-
* @type {
|
|
12028
|
+
* @type {Number[]}
|
|
12029
12029
|
* @final
|
|
12030
12030
|
*/
|
|
12031
12031
|
this.boundary = [
|
|
@@ -39819,8 +39819,8 @@ class GLTFDefaultDataSource {
|
|
|
39819
39819
|
* Gets metamodel JSON.
|
|
39820
39820
|
*
|
|
39821
39821
|
* @param {String|Number} metaModelSrc Identifies the metamodel JSON asset.
|
|
39822
|
-
* @param {
|
|
39823
|
-
* @param {
|
|
39822
|
+
* @param {Function} ok Fired on successful loading of the metamodel JSON asset.
|
|
39823
|
+
* @param {Function} error Fired on error while loading the metamodel JSON asset.
|
|
39824
39824
|
*/
|
|
39825
39825
|
getMetaModel(metaModelSrc, ok, error) {
|
|
39826
39826
|
utils.loadJSON(metaModelSrc,
|
|
@@ -65119,41 +65119,37 @@ class PerformanceModel extends Component {
|
|
|
65119
65119
|
|
|
65120
65120
|
let needNewBatchingLayers = false;
|
|
65121
65121
|
|
|
65122
|
-
|
|
65122
|
+
const origin = math.vec3(this._origin);
|
|
65123
|
+
|
|
65124
|
+
const cfgOrigin = cfg.origin || cfg.rtcCenter;
|
|
65125
|
+
if (cfgOrigin) {
|
|
65126
|
+
math.addVec3(origin, cfgOrigin, origin);
|
|
65127
|
+
}
|
|
65123
65128
|
|
|
65129
|
+
let rtcOrigin = null;
|
|
65124
65130
|
if (!cfg.positionsDecodeMatrix) { // TODO: Assumes we never quantize double-precision coordinates
|
|
65125
65131
|
const rtcCenter = math.vec3();
|
|
65126
65132
|
const rtcPositions = [];
|
|
65127
65133
|
const rtcNeeded = worldToRTCPositions(positions, rtcPositions, rtcCenter);
|
|
65128
65134
|
if (rtcNeeded) {
|
|
65129
65135
|
positions = rtcPositions;
|
|
65130
|
-
|
|
65136
|
+
rtcOrigin = rtcCenter;
|
|
65131
65137
|
}
|
|
65132
65138
|
}
|
|
65133
|
-
|
|
65134
|
-
|
|
65135
|
-
if (cfgOrigin) {
|
|
65136
|
-
if (!origin) {
|
|
65137
|
-
origin = cfgOrigin;
|
|
65138
|
-
} else {
|
|
65139
|
-
origin = math.addVec3(this._origin, cfgOrigin, tempVec3a$9);
|
|
65140
|
-
}
|
|
65141
|
-
} else {
|
|
65142
|
-
origin = this._origin;
|
|
65139
|
+
if (rtcOrigin) {
|
|
65140
|
+
math.addVec3(origin, rtcOrigin, origin);
|
|
65143
65141
|
}
|
|
65144
65142
|
|
|
65145
|
-
if (
|
|
65146
|
-
|
|
65143
|
+
if (!this._lastOrigin) {
|
|
65144
|
+
needNewBatchingLayers = true;
|
|
65145
|
+
this._lastOrigin = math.vec3(origin);
|
|
65146
|
+
} else {
|
|
65147
|
+
if (!math.compareVec3(this._lastOrigin, origin)) {
|
|
65147
65148
|
needNewBatchingLayers = true;
|
|
65148
|
-
this._lastOrigin
|
|
65149
|
-
} else {
|
|
65150
|
-
if (!math.compareVec3(this._lastOrigin, origin)) {
|
|
65151
|
-
needNewBatchingLayers = true;
|
|
65152
|
-
this._lastOrigin.set(origin);
|
|
65153
|
-
}
|
|
65149
|
+
this._lastOrigin.set(origin);
|
|
65154
65150
|
}
|
|
65155
65151
|
}
|
|
65156
|
-
|
|
65152
|
+
|
|
65157
65153
|
if (cfg.positionsDecodeMatrix) {
|
|
65158
65154
|
if (!this._lastDecodeMatrix) {
|
|
65159
65155
|
needNewBatchingLayers = true;
|
|
@@ -71537,8 +71533,8 @@ class GLTFLoaderPlugin extends Plugin {
|
|
|
71537
71533
|
* @param {String} [params.metaModelSrc] Path to an optional metadata file, as an alternative to the ````metaModelData```` parameter.
|
|
71538
71534
|
* @param {*} [params.metaModelData] JSON model metadata, as an alternative to the ````metaModelSrc```` parameter.
|
|
71539
71535
|
* @param {{String:Object}} [params.objectDefaults] Map of initial default states for each loaded {@link Entity} that represents an object. Default value is {@link IFCObjectDefaults}.
|
|
71540
|
-
* @
|
|
71541
|
-
* @
|
|
71536
|
+
* @param {String[]} [params.includeTypes] When loading metadata, only loads objects that have {@link MetaObject}s with {@link MetaObject#type} values in this list.
|
|
71537
|
+
* @param {String[]} [params.excludeTypes] When loading metadata, never loads objects that have {@link MetaObject}s with {@link MetaObject#type} values in this list.
|
|
71542
71538
|
* @param {Boolean} [params.edges=false] Whether or not xeokit renders the model with edges emphasized.
|
|
71543
71539
|
* @param {Number[]} [params.origin=[0,0,0]] The double-precision World-space origin of the model's coordinates.
|
|
71544
71540
|
* @param {Number[]} [params.position=[0,0,0]] The single-precision position, relative to ````origin````.
|
|
@@ -71547,7 +71543,7 @@ class GLTFLoaderPlugin extends Plugin {
|
|
|
71547
71543
|
* @param {Number[]} [params.matrix=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]] The model's world transform matrix. Overrides the position, scale and rotation parameters. Relative to ````origin````.
|
|
71548
71544
|
* @param {Boolean} [params.backfaces=false] When true, allows visible backfaces, wherever specified in the glTF. When false, ignores backfaces.
|
|
71549
71545
|
* @param {Number} [params.edgeThreshold=10] When xraying, highlighting, selecting or edging, this is the threshold angle between normals of adjacent triangles, below which their shared wireframe edge is not drawn.
|
|
71550
|
-
* @
|
|
71546
|
+
* @param {Boolean} [params.performance=true] Set ````false```` to load all the materials and textures provided by the glTF file, otherwise leave ````true```` to load the default high-performance representation optimized for low memory usage and efficient rendering.
|
|
71551
71547
|
* @returns {Entity} Entity representing the model, which will have {@link Entity#isModel} set ````true```` and will be registered by {@link Entity#id} in {@link Scene#models}
|
|
71552
71548
|
*/
|
|
71553
71549
|
load(params = {}) {
|
|
@@ -80297,8 +80293,8 @@ class XKTDefaultDataSource {
|
|
|
80297
80293
|
* Gets metamodel JSON.
|
|
80298
80294
|
*
|
|
80299
80295
|
* @param {String|Number} metaModelSrc Identifies the metamodel JSON asset.
|
|
80300
|
-
* @param {
|
|
80301
|
-
* @param {
|
|
80296
|
+
* @param {Function} ok Fired on successful loading of the metamodel JSON asset.
|
|
80297
|
+
* @param {Function} error Fired on error while loading the metamodel JSON asset.
|
|
80302
80298
|
*/
|
|
80303
80299
|
getMetaModel(metaModelSrc, ok, error) {
|
|
80304
80300
|
utils.loadJSON(metaModelSrc,
|
|
@@ -137514,7 +137510,7 @@ class Curve extends Component {
|
|
|
137514
137510
|
/**
|
|
137515
137511
|
* Gets the tangent on this Curve at position {@link Curve#t}.
|
|
137516
137512
|
*
|
|
137517
|
-
* @returns {
|
|
137513
|
+
* @returns {Number[]} The tangent.
|
|
137518
137514
|
*/
|
|
137519
137515
|
get tangent() {
|
|
137520
137516
|
return this.getTangent(this._t);
|
|
@@ -137534,7 +137530,7 @@ class Curve extends Component {
|
|
|
137534
137530
|
* Returns a normalized tangent vector on this Curve at the given position.
|
|
137535
137531
|
*
|
|
137536
137532
|
* @param {Number} t Position to get tangent at.
|
|
137537
|
-
* @returns {
|
|
137533
|
+
* @returns {Number[]} Normalized tangent vector
|
|
137538
137534
|
*/
|
|
137539
137535
|
getTangent(t) {
|
|
137540
137536
|
var delta = 0.0001;
|
|
@@ -142804,7 +142800,7 @@ class CubicBezierCurve extends Curve {
|
|
|
142804
142800
|
*
|
|
142805
142801
|
* @param {Number} t Position to get point at.
|
|
142806
142802
|
*
|
|
142807
|
-
* @returns {
|
|
142803
|
+
* @returns {Number[]} The point at the given position.
|
|
142808
142804
|
*/
|
|
142809
142805
|
get point() {
|
|
142810
142806
|
return this.getPoint(this._t);
|
|
@@ -142815,7 +142811,7 @@ class CubicBezierCurve extends Curve {
|
|
|
142815
142811
|
*
|
|
142816
142812
|
* @param {Number} t Position to get point at.
|
|
142817
142813
|
*
|
|
142818
|
-
* @returns {
|
|
142814
|
+
* @returns {Number[]} The point at the given position.
|
|
142819
142815
|
*/
|
|
142820
142816
|
getPoint(t) {
|
|
142821
142817
|
|
|
@@ -142992,7 +142988,7 @@ class Path extends Curve {
|
|
|
142992
142988
|
/**
|
|
142993
142989
|
* Gets point on this Path corresponding to the current value of {@link Path#t}.
|
|
142994
142990
|
*
|
|
142995
|
-
* @returns {
|
|
142991
|
+
* @returns {Number[]} The point.
|
|
142996
142992
|
*/
|
|
142997
142993
|
get point() {
|
|
142998
142994
|
return this.getPoint(this._t);
|
|
@@ -143012,7 +143008,7 @@ class Path extends Curve {
|
|
|
143012
143008
|
* Gets a point on this Path corresponding to the given progress position.
|
|
143013
143009
|
*
|
|
143014
143010
|
* @param {Number} t Indicates point of progress along this curve, in the range [0..1].
|
|
143015
|
-
* @returns {
|
|
143011
|
+
* @returns {Number[]}
|
|
143016
143012
|
*/
|
|
143017
143013
|
getPoint(t) {
|
|
143018
143014
|
var d = t * this.length;
|
|
@@ -143201,7 +143197,7 @@ class QuadraticBezierCurve extends Curve {
|
|
|
143201
143197
|
Point on this QuadraticBezierCurve at position {@link QuadraticBezierCurve/t}.
|
|
143202
143198
|
|
|
143203
143199
|
@property point
|
|
143204
|
-
@type {
|
|
143200
|
+
@type {Number[]}
|
|
143205
143201
|
*/
|
|
143206
143202
|
get point() {
|
|
143207
143203
|
return this.getPoint(this._t);
|
package/dist/xeokit-sdk.es.js
CHANGED
|
@@ -6952,7 +6952,7 @@ function Core() {
|
|
|
6952
6952
|
Existing {@link Scene}s , mapped to their IDs
|
|
6953
6953
|
@property scenes
|
|
6954
6954
|
@namespace xeokit
|
|
6955
|
-
@type {
|
|
6955
|
+
@type {Scene}
|
|
6956
6956
|
*/
|
|
6957
6957
|
this.scenes = {};
|
|
6958
6958
|
|
|
@@ -12021,7 +12021,7 @@ class Canvas extends Component {
|
|
|
12021
12021
|
* ````
|
|
12022
12022
|
*
|
|
12023
12023
|
* @property boundary
|
|
12024
|
-
* @type {
|
|
12024
|
+
* @type {Number[]}
|
|
12025
12025
|
* @final
|
|
12026
12026
|
*/
|
|
12027
12027
|
this.boundary = [
|
|
@@ -39815,8 +39815,8 @@ class GLTFDefaultDataSource {
|
|
|
39815
39815
|
* Gets metamodel JSON.
|
|
39816
39816
|
*
|
|
39817
39817
|
* @param {String|Number} metaModelSrc Identifies the metamodel JSON asset.
|
|
39818
|
-
* @param {
|
|
39819
|
-
* @param {
|
|
39818
|
+
* @param {Function} ok Fired on successful loading of the metamodel JSON asset.
|
|
39819
|
+
* @param {Function} error Fired on error while loading the metamodel JSON asset.
|
|
39820
39820
|
*/
|
|
39821
39821
|
getMetaModel(metaModelSrc, ok, error) {
|
|
39822
39822
|
utils.loadJSON(metaModelSrc,
|
|
@@ -65115,41 +65115,37 @@ class PerformanceModel extends Component {
|
|
|
65115
65115
|
|
|
65116
65116
|
let needNewBatchingLayers = false;
|
|
65117
65117
|
|
|
65118
|
-
|
|
65118
|
+
const origin = math.vec3(this._origin);
|
|
65119
|
+
|
|
65120
|
+
const cfgOrigin = cfg.origin || cfg.rtcCenter;
|
|
65121
|
+
if (cfgOrigin) {
|
|
65122
|
+
math.addVec3(origin, cfgOrigin, origin);
|
|
65123
|
+
}
|
|
65119
65124
|
|
|
65125
|
+
let rtcOrigin = null;
|
|
65120
65126
|
if (!cfg.positionsDecodeMatrix) { // TODO: Assumes we never quantize double-precision coordinates
|
|
65121
65127
|
const rtcCenter = math.vec3();
|
|
65122
65128
|
const rtcPositions = [];
|
|
65123
65129
|
const rtcNeeded = worldToRTCPositions(positions, rtcPositions, rtcCenter);
|
|
65124
65130
|
if (rtcNeeded) {
|
|
65125
65131
|
positions = rtcPositions;
|
|
65126
|
-
|
|
65132
|
+
rtcOrigin = rtcCenter;
|
|
65127
65133
|
}
|
|
65128
65134
|
}
|
|
65129
|
-
|
|
65130
|
-
|
|
65131
|
-
if (cfgOrigin) {
|
|
65132
|
-
if (!origin) {
|
|
65133
|
-
origin = cfgOrigin;
|
|
65134
|
-
} else {
|
|
65135
|
-
origin = math.addVec3(this._origin, cfgOrigin, tempVec3a$9);
|
|
65136
|
-
}
|
|
65137
|
-
} else {
|
|
65138
|
-
origin = this._origin;
|
|
65135
|
+
if (rtcOrigin) {
|
|
65136
|
+
math.addVec3(origin, rtcOrigin, origin);
|
|
65139
65137
|
}
|
|
65140
65138
|
|
|
65141
|
-
if (
|
|
65142
|
-
|
|
65139
|
+
if (!this._lastOrigin) {
|
|
65140
|
+
needNewBatchingLayers = true;
|
|
65141
|
+
this._lastOrigin = math.vec3(origin);
|
|
65142
|
+
} else {
|
|
65143
|
+
if (!math.compareVec3(this._lastOrigin, origin)) {
|
|
65143
65144
|
needNewBatchingLayers = true;
|
|
65144
|
-
this._lastOrigin
|
|
65145
|
-
} else {
|
|
65146
|
-
if (!math.compareVec3(this._lastOrigin, origin)) {
|
|
65147
|
-
needNewBatchingLayers = true;
|
|
65148
|
-
this._lastOrigin.set(origin);
|
|
65149
|
-
}
|
|
65145
|
+
this._lastOrigin.set(origin);
|
|
65150
65146
|
}
|
|
65151
65147
|
}
|
|
65152
|
-
|
|
65148
|
+
|
|
65153
65149
|
if (cfg.positionsDecodeMatrix) {
|
|
65154
65150
|
if (!this._lastDecodeMatrix) {
|
|
65155
65151
|
needNewBatchingLayers = true;
|
|
@@ -71533,8 +71529,8 @@ class GLTFLoaderPlugin extends Plugin {
|
|
|
71533
71529
|
* @param {String} [params.metaModelSrc] Path to an optional metadata file, as an alternative to the ````metaModelData```` parameter.
|
|
71534
71530
|
* @param {*} [params.metaModelData] JSON model metadata, as an alternative to the ````metaModelSrc```` parameter.
|
|
71535
71531
|
* @param {{String:Object}} [params.objectDefaults] Map of initial default states for each loaded {@link Entity} that represents an object. Default value is {@link IFCObjectDefaults}.
|
|
71536
|
-
* @
|
|
71537
|
-
* @
|
|
71532
|
+
* @param {String[]} [params.includeTypes] When loading metadata, only loads objects that have {@link MetaObject}s with {@link MetaObject#type} values in this list.
|
|
71533
|
+
* @param {String[]} [params.excludeTypes] When loading metadata, never loads objects that have {@link MetaObject}s with {@link MetaObject#type} values in this list.
|
|
71538
71534
|
* @param {Boolean} [params.edges=false] Whether or not xeokit renders the model with edges emphasized.
|
|
71539
71535
|
* @param {Number[]} [params.origin=[0,0,0]] The double-precision World-space origin of the model's coordinates.
|
|
71540
71536
|
* @param {Number[]} [params.position=[0,0,0]] The single-precision position, relative to ````origin````.
|
|
@@ -71543,7 +71539,7 @@ class GLTFLoaderPlugin extends Plugin {
|
|
|
71543
71539
|
* @param {Number[]} [params.matrix=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]] The model's world transform matrix. Overrides the position, scale and rotation parameters. Relative to ````origin````.
|
|
71544
71540
|
* @param {Boolean} [params.backfaces=false] When true, allows visible backfaces, wherever specified in the glTF. When false, ignores backfaces.
|
|
71545
71541
|
* @param {Number} [params.edgeThreshold=10] When xraying, highlighting, selecting or edging, this is the threshold angle between normals of adjacent triangles, below which their shared wireframe edge is not drawn.
|
|
71546
|
-
* @
|
|
71542
|
+
* @param {Boolean} [params.performance=true] Set ````false```` to load all the materials and textures provided by the glTF file, otherwise leave ````true```` to load the default high-performance representation optimized for low memory usage and efficient rendering.
|
|
71547
71543
|
* @returns {Entity} Entity representing the model, which will have {@link Entity#isModel} set ````true```` and will be registered by {@link Entity#id} in {@link Scene#models}
|
|
71548
71544
|
*/
|
|
71549
71545
|
load(params = {}) {
|
|
@@ -80293,8 +80289,8 @@ class XKTDefaultDataSource {
|
|
|
80293
80289
|
* Gets metamodel JSON.
|
|
80294
80290
|
*
|
|
80295
80291
|
* @param {String|Number} metaModelSrc Identifies the metamodel JSON asset.
|
|
80296
|
-
* @param {
|
|
80297
|
-
* @param {
|
|
80292
|
+
* @param {Function} ok Fired on successful loading of the metamodel JSON asset.
|
|
80293
|
+
* @param {Function} error Fired on error while loading the metamodel JSON asset.
|
|
80298
80294
|
*/
|
|
80299
80295
|
getMetaModel(metaModelSrc, ok, error) {
|
|
80300
80296
|
utils.loadJSON(metaModelSrc,
|
|
@@ -137510,7 +137506,7 @@ class Curve extends Component {
|
|
|
137510
137506
|
/**
|
|
137511
137507
|
* Gets the tangent on this Curve at position {@link Curve#t}.
|
|
137512
137508
|
*
|
|
137513
|
-
* @returns {
|
|
137509
|
+
* @returns {Number[]} The tangent.
|
|
137514
137510
|
*/
|
|
137515
137511
|
get tangent() {
|
|
137516
137512
|
return this.getTangent(this._t);
|
|
@@ -137530,7 +137526,7 @@ class Curve extends Component {
|
|
|
137530
137526
|
* Returns a normalized tangent vector on this Curve at the given position.
|
|
137531
137527
|
*
|
|
137532
137528
|
* @param {Number} t Position to get tangent at.
|
|
137533
|
-
* @returns {
|
|
137529
|
+
* @returns {Number[]} Normalized tangent vector
|
|
137534
137530
|
*/
|
|
137535
137531
|
getTangent(t) {
|
|
137536
137532
|
var delta = 0.0001;
|
|
@@ -142800,7 +142796,7 @@ class CubicBezierCurve extends Curve {
|
|
|
142800
142796
|
*
|
|
142801
142797
|
* @param {Number} t Position to get point at.
|
|
142802
142798
|
*
|
|
142803
|
-
* @returns {
|
|
142799
|
+
* @returns {Number[]} The point at the given position.
|
|
142804
142800
|
*/
|
|
142805
142801
|
get point() {
|
|
142806
142802
|
return this.getPoint(this._t);
|
|
@@ -142811,7 +142807,7 @@ class CubicBezierCurve extends Curve {
|
|
|
142811
142807
|
*
|
|
142812
142808
|
* @param {Number} t Position to get point at.
|
|
142813
142809
|
*
|
|
142814
|
-
* @returns {
|
|
142810
|
+
* @returns {Number[]} The point at the given position.
|
|
142815
142811
|
*/
|
|
142816
142812
|
getPoint(t) {
|
|
142817
142813
|
|
|
@@ -142988,7 +142984,7 @@ class Path extends Curve {
|
|
|
142988
142984
|
/**
|
|
142989
142985
|
* Gets point on this Path corresponding to the current value of {@link Path#t}.
|
|
142990
142986
|
*
|
|
142991
|
-
* @returns {
|
|
142987
|
+
* @returns {Number[]} The point.
|
|
142992
142988
|
*/
|
|
142993
142989
|
get point() {
|
|
142994
142990
|
return this.getPoint(this._t);
|
|
@@ -143008,7 +143004,7 @@ class Path extends Curve {
|
|
|
143008
143004
|
* Gets a point on this Path corresponding to the given progress position.
|
|
143009
143005
|
*
|
|
143010
143006
|
* @param {Number} t Indicates point of progress along this curve, in the range [0..1].
|
|
143011
|
-
* @returns {
|
|
143007
|
+
* @returns {Number[]}
|
|
143012
143008
|
*/
|
|
143013
143009
|
getPoint(t) {
|
|
143014
143010
|
var d = t * this.length;
|
|
@@ -143197,7 +143193,7 @@ class QuadraticBezierCurve extends Curve {
|
|
|
143197
143193
|
Point on this QuadraticBezierCurve at position {@link QuadraticBezierCurve/t}.
|
|
143198
143194
|
|
|
143199
143195
|
@property point
|
|
143200
|
-
@type {
|
|
143196
|
+
@type {Number[]}
|
|
143201
143197
|
*/
|
|
143202
143198
|
get point() {
|
|
143203
143199
|
return this.getPoint(this._t);
|