@xeokit/xeokit-sdk 2.2.5-beta-1 → 2.2.5-beta-4
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 +22 -20
- package/dist/xeokit-sdk.es.js +22 -20
- 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 +681 -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
|
|
|
@@ -9725,8 +9725,9 @@ class AngleMeasurement extends Component {
|
|
|
9725
9725
|
|
|
9726
9726
|
var canvas = scene.canvas.canvas;
|
|
9727
9727
|
var offsets = canvas.getBoundingClientRect();
|
|
9728
|
-
|
|
9729
|
-
var
|
|
9728
|
+
const containerOffsets = this._container.getBoundingClientRect();
|
|
9729
|
+
var top = offsets.top - containerOffsets.top;
|
|
9730
|
+
var left = offsets.left - containerOffsets.left;
|
|
9730
9731
|
var aabb = scene.canvas.boundary;
|
|
9731
9732
|
var canvasWidth = aabb[2];
|
|
9732
9733
|
var canvasHeight = aabb[3];
|
|
@@ -12025,7 +12026,7 @@ class Canvas extends Component {
|
|
|
12025
12026
|
* ````
|
|
12026
12027
|
*
|
|
12027
12028
|
* @property boundary
|
|
12028
|
-
* @type {
|
|
12029
|
+
* @type {Number[]}
|
|
12029
12030
|
* @final
|
|
12030
12031
|
*/
|
|
12031
12032
|
this.boundary = [
|
|
@@ -38536,8 +38537,9 @@ class DistanceMeasurement extends Component {
|
|
|
38536
38537
|
|
|
38537
38538
|
var canvas = scene.canvas.canvas;
|
|
38538
38539
|
var offsets = canvas.getBoundingClientRect();
|
|
38539
|
-
|
|
38540
|
-
var
|
|
38540
|
+
const containerOffsets = this._container.getBoundingClientRect();
|
|
38541
|
+
var top = offsets.top - containerOffsets.top;
|
|
38542
|
+
var left = offsets.left - containerOffsets.left;
|
|
38541
38543
|
var aabb = scene.canvas.boundary;
|
|
38542
38544
|
var canvasWidth = aabb[2];
|
|
38543
38545
|
var canvasHeight = aabb[3];
|
|
@@ -39819,8 +39821,8 @@ class GLTFDefaultDataSource {
|
|
|
39819
39821
|
* Gets metamodel JSON.
|
|
39820
39822
|
*
|
|
39821
39823
|
* @param {String|Number} metaModelSrc Identifies the metamodel JSON asset.
|
|
39822
|
-
* @param {
|
|
39823
|
-
* @param {
|
|
39824
|
+
* @param {Function} ok Fired on successful loading of the metamodel JSON asset.
|
|
39825
|
+
* @param {Function} error Fired on error while loading the metamodel JSON asset.
|
|
39824
39826
|
*/
|
|
39825
39827
|
getMetaModel(metaModelSrc, ok, error) {
|
|
39826
39828
|
utils.loadJSON(metaModelSrc,
|
|
@@ -71533,8 +71535,8 @@ class GLTFLoaderPlugin extends Plugin {
|
|
|
71533
71535
|
* @param {String} [params.metaModelSrc] Path to an optional metadata file, as an alternative to the ````metaModelData```` parameter.
|
|
71534
71536
|
* @param {*} [params.metaModelData] JSON model metadata, as an alternative to the ````metaModelSrc```` parameter.
|
|
71535
71537
|
* @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
|
-
* @
|
|
71538
|
+
* @param {String[]} [params.includeTypes] When loading metadata, only loads objects that have {@link MetaObject}s with {@link MetaObject#type} values in this list.
|
|
71539
|
+
* @param {String[]} [params.excludeTypes] When loading metadata, never loads objects that have {@link MetaObject}s with {@link MetaObject#type} values in this list.
|
|
71538
71540
|
* @param {Boolean} [params.edges=false] Whether or not xeokit renders the model with edges emphasized.
|
|
71539
71541
|
* @param {Number[]} [params.origin=[0,0,0]] The double-precision World-space origin of the model's coordinates.
|
|
71540
71542
|
* @param {Number[]} [params.position=[0,0,0]] The single-precision position, relative to ````origin````.
|
|
@@ -71543,7 +71545,7 @@ class GLTFLoaderPlugin extends Plugin {
|
|
|
71543
71545
|
* @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
71546
|
* @param {Boolean} [params.backfaces=false] When true, allows visible backfaces, wherever specified in the glTF. When false, ignores backfaces.
|
|
71545
71547
|
* @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
|
-
* @
|
|
71548
|
+
* @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
71549
|
* @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
71550
|
*/
|
|
71549
71551
|
load(params = {}) {
|
|
@@ -80293,8 +80295,8 @@ class XKTDefaultDataSource {
|
|
|
80293
80295
|
* Gets metamodel JSON.
|
|
80294
80296
|
*
|
|
80295
80297
|
* @param {String|Number} metaModelSrc Identifies the metamodel JSON asset.
|
|
80296
|
-
* @param {
|
|
80297
|
-
* @param {
|
|
80298
|
+
* @param {Function} ok Fired on successful loading of the metamodel JSON asset.
|
|
80299
|
+
* @param {Function} error Fired on error while loading the metamodel JSON asset.
|
|
80298
80300
|
*/
|
|
80299
80301
|
getMetaModel(metaModelSrc, ok, error) {
|
|
80300
80302
|
utils.loadJSON(metaModelSrc,
|
|
@@ -137510,7 +137512,7 @@ class Curve extends Component {
|
|
|
137510
137512
|
/**
|
|
137511
137513
|
* Gets the tangent on this Curve at position {@link Curve#t}.
|
|
137512
137514
|
*
|
|
137513
|
-
* @returns {
|
|
137515
|
+
* @returns {Number[]} The tangent.
|
|
137514
137516
|
*/
|
|
137515
137517
|
get tangent() {
|
|
137516
137518
|
return this.getTangent(this._t);
|
|
@@ -137530,7 +137532,7 @@ class Curve extends Component {
|
|
|
137530
137532
|
* Returns a normalized tangent vector on this Curve at the given position.
|
|
137531
137533
|
*
|
|
137532
137534
|
* @param {Number} t Position to get tangent at.
|
|
137533
|
-
* @returns {
|
|
137535
|
+
* @returns {Number[]} Normalized tangent vector
|
|
137534
137536
|
*/
|
|
137535
137537
|
getTangent(t) {
|
|
137536
137538
|
var delta = 0.0001;
|
|
@@ -142800,7 +142802,7 @@ class CubicBezierCurve extends Curve {
|
|
|
142800
142802
|
*
|
|
142801
142803
|
* @param {Number} t Position to get point at.
|
|
142802
142804
|
*
|
|
142803
|
-
* @returns {
|
|
142805
|
+
* @returns {Number[]} The point at the given position.
|
|
142804
142806
|
*/
|
|
142805
142807
|
get point() {
|
|
142806
142808
|
return this.getPoint(this._t);
|
|
@@ -142811,7 +142813,7 @@ class CubicBezierCurve extends Curve {
|
|
|
142811
142813
|
*
|
|
142812
142814
|
* @param {Number} t Position to get point at.
|
|
142813
142815
|
*
|
|
142814
|
-
* @returns {
|
|
142816
|
+
* @returns {Number[]} The point at the given position.
|
|
142815
142817
|
*/
|
|
142816
142818
|
getPoint(t) {
|
|
142817
142819
|
|
|
@@ -142988,7 +142990,7 @@ class Path extends Curve {
|
|
|
142988
142990
|
/**
|
|
142989
142991
|
* Gets point on this Path corresponding to the current value of {@link Path#t}.
|
|
142990
142992
|
*
|
|
142991
|
-
* @returns {
|
|
142993
|
+
* @returns {Number[]} The point.
|
|
142992
142994
|
*/
|
|
142993
142995
|
get point() {
|
|
142994
142996
|
return this.getPoint(this._t);
|
|
@@ -143008,7 +143010,7 @@ class Path extends Curve {
|
|
|
143008
143010
|
* Gets a point on this Path corresponding to the given progress position.
|
|
143009
143011
|
*
|
|
143010
143012
|
* @param {Number} t Indicates point of progress along this curve, in the range [0..1].
|
|
143011
|
-
* @returns {
|
|
143013
|
+
* @returns {Number[]}
|
|
143012
143014
|
*/
|
|
143013
143015
|
getPoint(t) {
|
|
143014
143016
|
var d = t * this.length;
|
|
@@ -143197,7 +143199,7 @@ class QuadraticBezierCurve extends Curve {
|
|
|
143197
143199
|
Point on this QuadraticBezierCurve at position {@link QuadraticBezierCurve/t}.
|
|
143198
143200
|
|
|
143199
143201
|
@property point
|
|
143200
|
-
@type {
|
|
143202
|
+
@type {Number[]}
|
|
143201
143203
|
*/
|
|
143202
143204
|
get point() {
|
|
143203
143205
|
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
|
|
|
@@ -9721,8 +9721,9 @@ class AngleMeasurement extends Component {
|
|
|
9721
9721
|
|
|
9722
9722
|
var canvas = scene.canvas.canvas;
|
|
9723
9723
|
var offsets = canvas.getBoundingClientRect();
|
|
9724
|
-
|
|
9725
|
-
var
|
|
9724
|
+
const containerOffsets = this._container.getBoundingClientRect();
|
|
9725
|
+
var top = offsets.top - containerOffsets.top;
|
|
9726
|
+
var left = offsets.left - containerOffsets.left;
|
|
9726
9727
|
var aabb = scene.canvas.boundary;
|
|
9727
9728
|
var canvasWidth = aabb[2];
|
|
9728
9729
|
var canvasHeight = aabb[3];
|
|
@@ -12021,7 +12022,7 @@ class Canvas extends Component {
|
|
|
12021
12022
|
* ````
|
|
12022
12023
|
*
|
|
12023
12024
|
* @property boundary
|
|
12024
|
-
* @type {
|
|
12025
|
+
* @type {Number[]}
|
|
12025
12026
|
* @final
|
|
12026
12027
|
*/
|
|
12027
12028
|
this.boundary = [
|
|
@@ -38532,8 +38533,9 @@ class DistanceMeasurement extends Component {
|
|
|
38532
38533
|
|
|
38533
38534
|
var canvas = scene.canvas.canvas;
|
|
38534
38535
|
var offsets = canvas.getBoundingClientRect();
|
|
38535
|
-
|
|
38536
|
-
var
|
|
38536
|
+
const containerOffsets = this._container.getBoundingClientRect();
|
|
38537
|
+
var top = offsets.top - containerOffsets.top;
|
|
38538
|
+
var left = offsets.left - containerOffsets.left;
|
|
38537
38539
|
var aabb = scene.canvas.boundary;
|
|
38538
38540
|
var canvasWidth = aabb[2];
|
|
38539
38541
|
var canvasHeight = aabb[3];
|
|
@@ -39815,8 +39817,8 @@ class GLTFDefaultDataSource {
|
|
|
39815
39817
|
* Gets metamodel JSON.
|
|
39816
39818
|
*
|
|
39817
39819
|
* @param {String|Number} metaModelSrc Identifies the metamodel JSON asset.
|
|
39818
|
-
* @param {
|
|
39819
|
-
* @param {
|
|
39820
|
+
* @param {Function} ok Fired on successful loading of the metamodel JSON asset.
|
|
39821
|
+
* @param {Function} error Fired on error while loading the metamodel JSON asset.
|
|
39820
39822
|
*/
|
|
39821
39823
|
getMetaModel(metaModelSrc, ok, error) {
|
|
39822
39824
|
utils.loadJSON(metaModelSrc,
|
|
@@ -71529,8 +71531,8 @@ class GLTFLoaderPlugin extends Plugin {
|
|
|
71529
71531
|
* @param {String} [params.metaModelSrc] Path to an optional metadata file, as an alternative to the ````metaModelData```` parameter.
|
|
71530
71532
|
* @param {*} [params.metaModelData] JSON model metadata, as an alternative to the ````metaModelSrc```` parameter.
|
|
71531
71533
|
* @param {{String:Object}} [params.objectDefaults] Map of initial default states for each loaded {@link Entity} that represents an object. Default value is {@link IFCObjectDefaults}.
|
|
71532
|
-
* @
|
|
71533
|
-
* @
|
|
71534
|
+
* @param {String[]} [params.includeTypes] When loading metadata, only loads objects that have {@link MetaObject}s with {@link MetaObject#type} values in this list.
|
|
71535
|
+
* @param {String[]} [params.excludeTypes] When loading metadata, never loads objects that have {@link MetaObject}s with {@link MetaObject#type} values in this list.
|
|
71534
71536
|
* @param {Boolean} [params.edges=false] Whether or not xeokit renders the model with edges emphasized.
|
|
71535
71537
|
* @param {Number[]} [params.origin=[0,0,0]] The double-precision World-space origin of the model's coordinates.
|
|
71536
71538
|
* @param {Number[]} [params.position=[0,0,0]] The single-precision position, relative to ````origin````.
|
|
@@ -71539,7 +71541,7 @@ class GLTFLoaderPlugin extends Plugin {
|
|
|
71539
71541
|
* @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````.
|
|
71540
71542
|
* @param {Boolean} [params.backfaces=false] When true, allows visible backfaces, wherever specified in the glTF. When false, ignores backfaces.
|
|
71541
71543
|
* @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.
|
|
71542
|
-
* @
|
|
71544
|
+
* @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.
|
|
71543
71545
|
* @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}
|
|
71544
71546
|
*/
|
|
71545
71547
|
load(params = {}) {
|
|
@@ -80289,8 +80291,8 @@ class XKTDefaultDataSource {
|
|
|
80289
80291
|
* Gets metamodel JSON.
|
|
80290
80292
|
*
|
|
80291
80293
|
* @param {String|Number} metaModelSrc Identifies the metamodel JSON asset.
|
|
80292
|
-
* @param {
|
|
80293
|
-
* @param {
|
|
80294
|
+
* @param {Function} ok Fired on successful loading of the metamodel JSON asset.
|
|
80295
|
+
* @param {Function} error Fired on error while loading the metamodel JSON asset.
|
|
80294
80296
|
*/
|
|
80295
80297
|
getMetaModel(metaModelSrc, ok, error) {
|
|
80296
80298
|
utils.loadJSON(metaModelSrc,
|
|
@@ -137506,7 +137508,7 @@ class Curve extends Component {
|
|
|
137506
137508
|
/**
|
|
137507
137509
|
* Gets the tangent on this Curve at position {@link Curve#t}.
|
|
137508
137510
|
*
|
|
137509
|
-
* @returns {
|
|
137511
|
+
* @returns {Number[]} The tangent.
|
|
137510
137512
|
*/
|
|
137511
137513
|
get tangent() {
|
|
137512
137514
|
return this.getTangent(this._t);
|
|
@@ -137526,7 +137528,7 @@ class Curve extends Component {
|
|
|
137526
137528
|
* Returns a normalized tangent vector on this Curve at the given position.
|
|
137527
137529
|
*
|
|
137528
137530
|
* @param {Number} t Position to get tangent at.
|
|
137529
|
-
* @returns {
|
|
137531
|
+
* @returns {Number[]} Normalized tangent vector
|
|
137530
137532
|
*/
|
|
137531
137533
|
getTangent(t) {
|
|
137532
137534
|
var delta = 0.0001;
|
|
@@ -142796,7 +142798,7 @@ class CubicBezierCurve extends Curve {
|
|
|
142796
142798
|
*
|
|
142797
142799
|
* @param {Number} t Position to get point at.
|
|
142798
142800
|
*
|
|
142799
|
-
* @returns {
|
|
142801
|
+
* @returns {Number[]} The point at the given position.
|
|
142800
142802
|
*/
|
|
142801
142803
|
get point() {
|
|
142802
142804
|
return this.getPoint(this._t);
|
|
@@ -142807,7 +142809,7 @@ class CubicBezierCurve extends Curve {
|
|
|
142807
142809
|
*
|
|
142808
142810
|
* @param {Number} t Position to get point at.
|
|
142809
142811
|
*
|
|
142810
|
-
* @returns {
|
|
142812
|
+
* @returns {Number[]} The point at the given position.
|
|
142811
142813
|
*/
|
|
142812
142814
|
getPoint(t) {
|
|
142813
142815
|
|
|
@@ -142984,7 +142986,7 @@ class Path extends Curve {
|
|
|
142984
142986
|
/**
|
|
142985
142987
|
* Gets point on this Path corresponding to the current value of {@link Path#t}.
|
|
142986
142988
|
*
|
|
142987
|
-
* @returns {
|
|
142989
|
+
* @returns {Number[]} The point.
|
|
142988
142990
|
*/
|
|
142989
142991
|
get point() {
|
|
142990
142992
|
return this.getPoint(this._t);
|
|
@@ -143004,7 +143006,7 @@ class Path extends Curve {
|
|
|
143004
143006
|
* Gets a point on this Path corresponding to the given progress position.
|
|
143005
143007
|
*
|
|
143006
143008
|
* @param {Number} t Indicates point of progress along this curve, in the range [0..1].
|
|
143007
|
-
* @returns {
|
|
143009
|
+
* @returns {Number[]}
|
|
143008
143010
|
*/
|
|
143009
143011
|
getPoint(t) {
|
|
143010
143012
|
var d = t * this.length;
|
|
@@ -143193,7 +143195,7 @@ class QuadraticBezierCurve extends Curve {
|
|
|
143193
143195
|
Point on this QuadraticBezierCurve at position {@link QuadraticBezierCurve/t}.
|
|
143194
143196
|
|
|
143195
143197
|
@property point
|
|
143196
|
-
@type {
|
|
143198
|
+
@type {Number[]}
|
|
143197
143199
|
*/
|
|
143198
143200
|
get point() {
|
|
143199
143201
|
return this.getPoint(this._t);
|