@xeokit/xeokit-sdk 2.6.98 → 2.6.99

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xeokit/xeokit-sdk",
3
- "version": "2.6.98",
3
+ "version": "2.6.99",
4
4
  "description": "3D BIM IFC Viewer SDK for AEC engineering applications. Open Source JavaScript Toolkit based on pure WebGL for top performance, real-world coordinates and full double precision",
5
5
  "module": "./dist/xeokit-sdk.es.js",
6
6
  "main": "./dist/xeokit-sdk.cjs.js",
@@ -323,6 +323,7 @@ class GLTFLoaderPlugin extends Plugin {
323
323
  * primitives. Only works while {@link DTX#enabled} is also ````true````.
324
324
  * @param {Boolean} [params.autoMetaModel] When supplied, creates a default MetaModel with a single MetaObject.
325
325
  * @param {Boolean} [params.globalizeObjectIds=false] Indicates whether to globalize each {@link Entity#id} and {@link MetaObject#id}, in case you need to prevent ID clashes with other models.
326
+ * @param {*} [params.parseOptions={}] Options to pass to loaders.gl parse method, eg. ````{ gltf: { excludeExtensions: { "KHR_texture_transform": false } } }````.
326
327
  * @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}
327
328
  */
328
329
  load(params = {}) {
@@ -102,6 +102,7 @@ function parseGLTF(plugin, src, gltf, metaModelJSON, options, sceneModel, ok, er
102
102
  const spinner = plugin.viewer.scene.canvas.spinner;
103
103
  spinner.processes++;
104
104
  parse(gltf, GLTFLoader, {
105
+ ...(options.parseOptions || { }),
105
106
  baseUri: options.basePath
106
107
  }).then((gltfData) => {
107
108
  const processedGLTF = postProcessGLTF(gltfData);
@@ -83,6 +83,8 @@ export declare type LoadGLTFModel = {
83
83
  performance?: boolean;
84
84
  /** When true, generate a single MetaObject that represents the entire glTF model, and a MetaObject for each entity within it. */
85
85
  autoMetaModel?: boolean;
86
+ /** Options to pass to loaders.gl parse method, eg. ````{ gltf: { excludeExtensions: { "KHR_texture_transform": false } } }````. */
87
+ parseOptions?: any;
86
88
  };
87
89
 
88
90
  /**