@xeokit/xeokit-sdk 2.4.0-alpha-37 → 2.4.0-alpha-38

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 CHANGED
@@ -64,7 +64,7 @@ which we can pre-convert offline from other formats.
64
64
  <script id="source" type="module">
65
65
 
66
66
  import {Viewer, WebIFCLoaderPlugin} from
67
- "https://cdn.jsdelivr.net/npm/@xeokit/xeokit-sdk/dist/xeokit-sdk.es.min.js";
67
+ "../dist/xeokit-sdk.es.js";
68
68
 
69
69
  const viewer = new Viewer({
70
70
  canvasId: "myCanvas",
@@ -16496,7 +16496,7 @@ class RenderBuffer {
16496
16496
 
16497
16497
  read(pickX, pickY, glFormat = null, glType = null, arrayType = Uint8Array, arrayMultiplier = 4) {
16498
16498
  const x = pickX;
16499
- const y = (this.buffer.height || this.gl.drawingBufferHeight) - 1 - pickY;
16499
+ const y = (this.buffer.height || this.gl.drawingBufferHeight) - pickY;
16500
16500
  const pix = new arrayType(arrayMultiplier);
16501
16501
  const gl = this.gl;
16502
16502
  gl.readPixels(x, y, 1, 1, glFormat || gl.RGBA, glType || gl.UNSIGNED_BYTE, pix, 0);
@@ -62533,7 +62533,7 @@ class Bitmap extends Component {
62533
62533
  * [[Run this example](http://xeokit.github.io/xeokit-sdk/examples/#LineSet_grid)]
62534
62534
  *
62535
62535
  * ````javascript
62536
- * import {Viewer, XKTLoaderPlugin, LineSet, buildGridGeometry} from "https://cdn.jsdelivr.net/npm/@xeokit/xeokit-sdk/dist/xeokit-sdk.es.min.js";
62536
+ * import {Viewer, XKTLoaderPlugin, LineSet, buildGridGeometry} from "../dist/xeokit-sdk.es.js";
62537
62537
  *
62538
62538
  * const viewer = new Viewer({
62539
62539
  * canvasId: "myCanvas",
@@ -67690,7 +67690,7 @@ class LightMap extends CubeTexture {
67690
67690
  * [[Run this example](http://xeokit.github.io/xeokit-sdk/examples/#markers_SpriteMarker)]
67691
67691
  *
67692
67692
  * ```` javascript
67693
- * import {Viewer, SpriteMarker } from "./https://cdn.jsdelivr.net/npm/@xeokit/xeokit-sdk/dist/xeokit-sdk.es.min.js";
67693
+ * import {Viewer, SpriteMarker } from "./../dist/xeokit-sdk.es.js";
67694
67694
  *
67695
67695
  * const viewer = new Viewer({
67696
67696
  * canvasId: "myCanvas",
@@ -103677,94 +103677,94 @@ function arrayToMap(array) {
103677
103677
  * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
103678
103678
  * Released under MIT License
103679
103679
  */
103680
- /*! *****************************************************************************
103681
- Copyright (c) Microsoft Corporation.
103682
-
103683
- Permission to use, copy, modify, and/or distribute this software for any
103684
- purpose with or without fee is hereby granted.
103685
-
103686
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
103687
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
103688
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
103689
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
103690
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
103691
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
103692
- PERFORMANCE OF THIS SOFTWARE.
103693
- ***************************************************************************** */
103694
- /* global Reflect, Promise */
103695
-
103696
- var extendStatics = function(d, b) {
103697
- extendStatics = Object.setPrototypeOf ||
103698
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
103699
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
103700
- return extendStatics(d, b);
103701
- };
103702
-
103703
- function __extends(d, b) {
103704
- if (typeof b !== "function" && b !== null)
103705
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
103706
- extendStatics(d, b);
103707
- function __() { this.constructor = d; }
103708
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
103709
- }
103710
-
103711
- var __assign = function() {
103712
- __assign = Object.assign || function __assign(t) {
103713
- for (var s, i = 1, n = arguments.length; i < n; i++) {
103714
- s = arguments[i];
103715
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
103716
- }
103717
- return t;
103718
- };
103719
- return __assign.apply(this, arguments);
103720
- };
103721
-
103722
- function __awaiter(thisArg, _arguments, P, generator) {
103723
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
103724
- return new (P || (P = Promise))(function (resolve, reject) {
103725
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
103726
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
103727
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
103728
- step((generator = generator.apply(thisArg, _arguments || [])).next());
103729
- });
103730
- }
103731
-
103732
- function __generator(thisArg, body) {
103733
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
103734
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
103735
- function verb(n) { return function (v) { return step([n, v]); }; }
103736
- function step(op) {
103737
- if (f) throw new TypeError("Generator is already executing.");
103738
- while (_) try {
103739
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
103740
- if (y = 0, t) op = [op[0] & 2, t.value];
103741
- switch (op[0]) {
103742
- case 0: case 1: t = op; break;
103743
- case 4: _.label++; return { value: op[1], done: false };
103744
- case 5: _.label++; y = op[1]; op = [0]; continue;
103745
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
103746
- default:
103747
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
103748
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
103749
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
103750
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
103751
- if (t[2]) _.ops.pop();
103752
- _.trys.pop(); continue;
103753
- }
103754
- op = body.call(thisArg, _);
103755
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
103756
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
103757
- }
103758
- }
103759
-
103760
- function __spreadArray(to, from, pack) {
103761
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
103762
- if (ar || !(i in from)) {
103763
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
103764
- ar[i] = from[i];
103765
- }
103766
- }
103767
- return to.concat(ar || from);
103680
+ /*! *****************************************************************************
103681
+ Copyright (c) Microsoft Corporation.
103682
+
103683
+ Permission to use, copy, modify, and/or distribute this software for any
103684
+ purpose with or without fee is hereby granted.
103685
+
103686
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
103687
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
103688
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
103689
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
103690
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
103691
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
103692
+ PERFORMANCE OF THIS SOFTWARE.
103693
+ ***************************************************************************** */
103694
+ /* global Reflect, Promise */
103695
+
103696
+ var extendStatics = function(d, b) {
103697
+ extendStatics = Object.setPrototypeOf ||
103698
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
103699
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
103700
+ return extendStatics(d, b);
103701
+ };
103702
+
103703
+ function __extends(d, b) {
103704
+ if (typeof b !== "function" && b !== null)
103705
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
103706
+ extendStatics(d, b);
103707
+ function __() { this.constructor = d; }
103708
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
103709
+ }
103710
+
103711
+ var __assign = function() {
103712
+ __assign = Object.assign || function __assign(t) {
103713
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
103714
+ s = arguments[i];
103715
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
103716
+ }
103717
+ return t;
103718
+ };
103719
+ return __assign.apply(this, arguments);
103720
+ };
103721
+
103722
+ function __awaiter(thisArg, _arguments, P, generator) {
103723
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
103724
+ return new (P || (P = Promise))(function (resolve, reject) {
103725
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
103726
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
103727
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
103728
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
103729
+ });
103730
+ }
103731
+
103732
+ function __generator(thisArg, body) {
103733
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
103734
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
103735
+ function verb(n) { return function (v) { return step([n, v]); }; }
103736
+ function step(op) {
103737
+ if (f) throw new TypeError("Generator is already executing.");
103738
+ while (_) try {
103739
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
103740
+ if (y = 0, t) op = [op[0] & 2, t.value];
103741
+ switch (op[0]) {
103742
+ case 0: case 1: t = op; break;
103743
+ case 4: _.label++; return { value: op[1], done: false };
103744
+ case 5: _.label++; y = op[1]; op = [0]; continue;
103745
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
103746
+ default:
103747
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
103748
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
103749
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
103750
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
103751
+ if (t[2]) _.ops.pop();
103752
+ _.trys.pop(); continue;
103753
+ }
103754
+ op = body.call(thisArg, _);
103755
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
103756
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
103757
+ }
103758
+ }
103759
+
103760
+ function __spreadArray(to, from, pack) {
103761
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
103762
+ if (ar || !(i in from)) {
103763
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
103764
+ ar[i] = from[i];
103765
+ }
103766
+ }
103767
+ return to.concat(ar || from);
103768
103768
  }
103769
103769
 
103770
103770
  var Bounds = /** @class */ (function () {
@@ -112039,7 +112039,7 @@ class Viewer {
112039
112039
  * [[Run this example](http://xeokit.github.io/xeokit-sdk/examples/#Configs_disableDoublePrecisionAndRAF)]
112040
112040
  *
112041
112041
  * ````javascript
112042
- * import {Configs, Viewer, XKTLoaderPlugin} from "https://cdn.jsdelivr.net/npm/@xeokit/xeokit-sdk/dist/xeokit-sdk.es.min.js";
112042
+ * import {Configs, Viewer, XKTLoaderPlugin} from "../dist/xeokit-sdk.es.js";
112043
112043
  *
112044
112044
  * // Access xeoit-sdk global configs.
112045
112045
  * // We typically set configs only before we create any Viewers.
@@ -16492,7 +16492,7 @@ class RenderBuffer {
16492
16492
 
16493
16493
  read(pickX, pickY, glFormat = null, glType = null, arrayType = Uint8Array, arrayMultiplier = 4) {
16494
16494
  const x = pickX;
16495
- const y = (this.buffer.height || this.gl.drawingBufferHeight) - 1 - pickY;
16495
+ const y = (this.buffer.height || this.gl.drawingBufferHeight) - pickY;
16496
16496
  const pix = new arrayType(arrayMultiplier);
16497
16497
  const gl = this.gl;
16498
16498
  gl.readPixels(x, y, 1, 1, glFormat || gl.RGBA, glType || gl.UNSIGNED_BYTE, pix, 0);
@@ -62529,7 +62529,7 @@ class Bitmap extends Component {
62529
62529
  * [[Run this example](http://xeokit.github.io/xeokit-sdk/examples/#LineSet_grid)]
62530
62530
  *
62531
62531
  * ````javascript
62532
- * import {Viewer, XKTLoaderPlugin, LineSet, buildGridGeometry} from "https://cdn.jsdelivr.net/npm/@xeokit/xeokit-sdk/dist/xeokit-sdk.es.min.js";
62532
+ * import {Viewer, XKTLoaderPlugin, LineSet, buildGridGeometry} from "../dist/xeokit-sdk.es.js";
62533
62533
  *
62534
62534
  * const viewer = new Viewer({
62535
62535
  * canvasId: "myCanvas",
@@ -67686,7 +67686,7 @@ class LightMap extends CubeTexture {
67686
67686
  * [[Run this example](http://xeokit.github.io/xeokit-sdk/examples/#markers_SpriteMarker)]
67687
67687
  *
67688
67688
  * ```` javascript
67689
- * import {Viewer, SpriteMarker } from "./https://cdn.jsdelivr.net/npm/@xeokit/xeokit-sdk/dist/xeokit-sdk.es.min.js";
67689
+ * import {Viewer, SpriteMarker } from "./../dist/xeokit-sdk.es.js";
67690
67690
  *
67691
67691
  * const viewer = new Viewer({
67692
67692
  * canvasId: "myCanvas",
@@ -103673,94 +103673,94 @@ function arrayToMap(array) {
103673
103673
  * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
103674
103674
  * Released under MIT License
103675
103675
  */
103676
- /*! *****************************************************************************
103677
- Copyright (c) Microsoft Corporation.
103678
-
103679
- Permission to use, copy, modify, and/or distribute this software for any
103680
- purpose with or without fee is hereby granted.
103681
-
103682
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
103683
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
103684
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
103685
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
103686
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
103687
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
103688
- PERFORMANCE OF THIS SOFTWARE.
103689
- ***************************************************************************** */
103690
- /* global Reflect, Promise */
103691
-
103692
- var extendStatics = function(d, b) {
103693
- extendStatics = Object.setPrototypeOf ||
103694
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
103695
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
103696
- return extendStatics(d, b);
103697
- };
103698
-
103699
- function __extends(d, b) {
103700
- if (typeof b !== "function" && b !== null)
103701
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
103702
- extendStatics(d, b);
103703
- function __() { this.constructor = d; }
103704
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
103705
- }
103706
-
103707
- var __assign = function() {
103708
- __assign = Object.assign || function __assign(t) {
103709
- for (var s, i = 1, n = arguments.length; i < n; i++) {
103710
- s = arguments[i];
103711
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
103712
- }
103713
- return t;
103714
- };
103715
- return __assign.apply(this, arguments);
103716
- };
103717
-
103718
- function __awaiter(thisArg, _arguments, P, generator) {
103719
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
103720
- return new (P || (P = Promise))(function (resolve, reject) {
103721
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
103722
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
103723
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
103724
- step((generator = generator.apply(thisArg, _arguments || [])).next());
103725
- });
103726
- }
103727
-
103728
- function __generator(thisArg, body) {
103729
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
103730
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
103731
- function verb(n) { return function (v) { return step([n, v]); }; }
103732
- function step(op) {
103733
- if (f) throw new TypeError("Generator is already executing.");
103734
- while (_) try {
103735
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
103736
- if (y = 0, t) op = [op[0] & 2, t.value];
103737
- switch (op[0]) {
103738
- case 0: case 1: t = op; break;
103739
- case 4: _.label++; return { value: op[1], done: false };
103740
- case 5: _.label++; y = op[1]; op = [0]; continue;
103741
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
103742
- default:
103743
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
103744
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
103745
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
103746
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
103747
- if (t[2]) _.ops.pop();
103748
- _.trys.pop(); continue;
103749
- }
103750
- op = body.call(thisArg, _);
103751
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
103752
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
103753
- }
103754
- }
103755
-
103756
- function __spreadArray(to, from, pack) {
103757
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
103758
- if (ar || !(i in from)) {
103759
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
103760
- ar[i] = from[i];
103761
- }
103762
- }
103763
- return to.concat(ar || from);
103676
+ /*! *****************************************************************************
103677
+ Copyright (c) Microsoft Corporation.
103678
+
103679
+ Permission to use, copy, modify, and/or distribute this software for any
103680
+ purpose with or without fee is hereby granted.
103681
+
103682
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
103683
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
103684
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
103685
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
103686
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
103687
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
103688
+ PERFORMANCE OF THIS SOFTWARE.
103689
+ ***************************************************************************** */
103690
+ /* global Reflect, Promise */
103691
+
103692
+ var extendStatics = function(d, b) {
103693
+ extendStatics = Object.setPrototypeOf ||
103694
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
103695
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
103696
+ return extendStatics(d, b);
103697
+ };
103698
+
103699
+ function __extends(d, b) {
103700
+ if (typeof b !== "function" && b !== null)
103701
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
103702
+ extendStatics(d, b);
103703
+ function __() { this.constructor = d; }
103704
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
103705
+ }
103706
+
103707
+ var __assign = function() {
103708
+ __assign = Object.assign || function __assign(t) {
103709
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
103710
+ s = arguments[i];
103711
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
103712
+ }
103713
+ return t;
103714
+ };
103715
+ return __assign.apply(this, arguments);
103716
+ };
103717
+
103718
+ function __awaiter(thisArg, _arguments, P, generator) {
103719
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
103720
+ return new (P || (P = Promise))(function (resolve, reject) {
103721
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
103722
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
103723
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
103724
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
103725
+ });
103726
+ }
103727
+
103728
+ function __generator(thisArg, body) {
103729
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
103730
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
103731
+ function verb(n) { return function (v) { return step([n, v]); }; }
103732
+ function step(op) {
103733
+ if (f) throw new TypeError("Generator is already executing.");
103734
+ while (_) try {
103735
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
103736
+ if (y = 0, t) op = [op[0] & 2, t.value];
103737
+ switch (op[0]) {
103738
+ case 0: case 1: t = op; break;
103739
+ case 4: _.label++; return { value: op[1], done: false };
103740
+ case 5: _.label++; y = op[1]; op = [0]; continue;
103741
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
103742
+ default:
103743
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
103744
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
103745
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
103746
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
103747
+ if (t[2]) _.ops.pop();
103748
+ _.trys.pop(); continue;
103749
+ }
103750
+ op = body.call(thisArg, _);
103751
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
103752
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
103753
+ }
103754
+ }
103755
+
103756
+ function __spreadArray(to, from, pack) {
103757
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
103758
+ if (ar || !(i in from)) {
103759
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
103760
+ ar[i] = from[i];
103761
+ }
103762
+ }
103763
+ return to.concat(ar || from);
103764
103764
  }
103765
103765
 
103766
103766
  var Bounds = /** @class */ (function () {
@@ -112035,7 +112035,7 @@ class Viewer {
112035
112035
  * [[Run this example](http://xeokit.github.io/xeokit-sdk/examples/#Configs_disableDoublePrecisionAndRAF)]
112036
112036
  *
112037
112037
  * ````javascript
112038
- * import {Configs, Viewer, XKTLoaderPlugin} from "https://cdn.jsdelivr.net/npm/@xeokit/xeokit-sdk/dist/xeokit-sdk.es.min.js";
112038
+ * import {Configs, Viewer, XKTLoaderPlugin} from "../dist/xeokit-sdk.es.js";
112039
112039
  *
112040
112040
  * // Access xeoit-sdk global configs.
112041
112041
  * // We typically set configs only before we create any Viewers.
@@ -4375,7 +4375,7 @@ program.bindTexture(this._uOcclusionTexture,occlusionTexture,1);this._aUV.bindAr
4375
4375
  */},{key:"_touch",value:function _touch(){var internalformat=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;var width;var height;/**
4376
4376
  * @type {WebGL2RenderingContext}
4377
4377
  */var gl=this.gl;if(this.size){width=this.size[0];height=this.size[1];}else{width=gl.drawingBufferWidth;height=gl.drawingBufferHeight;}if(this.buffer){if(this.buffer.width===width&&this.buffer.height===height){return;}else{gl.deleteTexture(this.buffer.texture);gl.deleteFramebuffer(this.buffer.framebuf);gl.deleteRenderbuffer(this.buffer.renderbuf);}}var colorTexture=gl.createTexture();gl.bindTexture(gl.TEXTURE_2D,colorTexture);gl.texParameteri(gl.TEXTURE_2D,gl.TEXTURE_MIN_FILTER,gl.NEAREST);gl.texParameteri(gl.TEXTURE_2D,gl.TEXTURE_MAG_FILTER,gl.NEAREST);gl.texParameteri(gl.TEXTURE_2D,gl.TEXTURE_WRAP_S,gl.CLAMP_TO_EDGE);gl.texParameteri(gl.TEXTURE_2D,gl.TEXTURE_WRAP_T,gl.CLAMP_TO_EDGE);if(!internalformat){gl.texImage2D(gl.TEXTURE_2D,0,gl.RGBA,width,height,0,gl.RGBA,gl.UNSIGNED_BYTE,null);}else{gl.texStorage2D(gl.TEXTURE_2D,1,internalformat,width,height);}var depthTexture;if(this._hasDepthTexture){depthTexture=gl.createTexture();gl.bindTexture(gl.TEXTURE_2D,depthTexture);gl.texParameteri(gl.TEXTURE_2D,gl.TEXTURE_MAG_FILTER,gl.NEAREST);gl.texParameteri(gl.TEXTURE_2D,gl.TEXTURE_MIN_FILTER,gl.NEAREST);gl.texParameteri(gl.TEXTURE_2D,gl.TEXTURE_WRAP_S,gl.CLAMP_TO_EDGE);gl.texParameteri(gl.TEXTURE_2D,gl.TEXTURE_WRAP_T,gl.CLAMP_TO_EDGE);gl.texImage2D(gl.TEXTURE_2D,0,gl.DEPTH_COMPONENT32F,width,height,0,gl.DEPTH_COMPONENT,gl.FLOAT,null);}var renderbuf=gl.createRenderbuffer();gl.bindRenderbuffer(gl.RENDERBUFFER,renderbuf);gl.renderbufferStorage(gl.RENDERBUFFER,gl.DEPTH_COMPONENT32F,width,height);var framebuf=gl.createFramebuffer();gl.bindFramebuffer(gl.FRAMEBUFFER,framebuf);gl.framebufferTexture2D(gl.FRAMEBUFFER,gl.COLOR_ATTACHMENT0,gl.TEXTURE_2D,colorTexture,0);if(this._hasDepthTexture){gl.framebufferTexture2D(gl.FRAMEBUFFER,gl.DEPTH_ATTACHMENT,gl.TEXTURE_2D,depthTexture,0);}else{gl.framebufferRenderbuffer(gl.FRAMEBUFFER,gl.DEPTH_ATTACHMENT,gl.RENDERBUFFER,renderbuf);}gl.bindTexture(gl.TEXTURE_2D,null);gl.bindRenderbuffer(gl.RENDERBUFFER,null);gl.bindFramebuffer(gl.FRAMEBUFFER,null);// Verify framebuffer is OK
4378
- gl.bindFramebuffer(gl.FRAMEBUFFER,framebuf);if(!gl.isFramebuffer(framebuf)){throw"Invalid framebuffer";}gl.bindFramebuffer(gl.FRAMEBUFFER,null);var status=gl.checkFramebufferStatus(gl.FRAMEBUFFER);switch(status){case gl.FRAMEBUFFER_COMPLETE:break;case gl.FRAMEBUFFER_INCOMPLETE_ATTACHMENT:throw"Incomplete framebuffer: FRAMEBUFFER_INCOMPLETE_ATTACHMENT";case gl.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:throw"Incomplete framebuffer: FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT";case gl.FRAMEBUFFER_INCOMPLETE_DIMENSIONS:throw"Incomplete framebuffer: FRAMEBUFFER_INCOMPLETE_DIMENSIONS";case gl.FRAMEBUFFER_UNSUPPORTED:throw"Incomplete framebuffer: FRAMEBUFFER_UNSUPPORTED";default:throw"Incomplete framebuffer: "+status;}this.buffer={framebuf:framebuf,renderbuf:renderbuf,texture:colorTexture,depthTexture:depthTexture,width:width,height:height};this.bound=false;}},{key:"clear",value:function clear(){if(!this.bound){throw"Render buffer not bound";}var gl=this.gl;gl.clear(gl.COLOR_BUFFER_BIT|gl.DEPTH_BUFFER_BIT);}},{key:"read",value:function read(pickX,pickY){var glFormat=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;var glType=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;var arrayType=arguments.length>4&&arguments[4]!==undefined?arguments[4]:Uint8Array;var arrayMultiplier=arguments.length>5&&arguments[5]!==undefined?arguments[5]:4;var x=pickX;var y=(this.buffer.height||this.gl.drawingBufferHeight)-1-pickY;var pix=new arrayType(arrayMultiplier);var gl=this.gl;gl.readPixels(x,y,1,1,glFormat||gl.RGBA,glType||gl.UNSIGNED_BYTE,pix,0);return pix;}},{key:"readArray",value:function readArray(){var glFormat=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;var glType=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;var arrayType=arguments.length>2&&arguments[2]!==undefined?arguments[2]:Uint8Array;var arrayMultiplier=arguments.length>3&&arguments[3]!==undefined?arguments[3]:4;var pix=new arrayType(this.buffer.width*this.buffer.height*arrayMultiplier);var gl=this.gl;gl.readPixels(0,0,this.buffer.width,this.buffer.height,glFormat||gl.RGBA,glType||gl.UNSIGNED_BYTE,pix,0);return pix;}/**
4378
+ gl.bindFramebuffer(gl.FRAMEBUFFER,framebuf);if(!gl.isFramebuffer(framebuf)){throw"Invalid framebuffer";}gl.bindFramebuffer(gl.FRAMEBUFFER,null);var status=gl.checkFramebufferStatus(gl.FRAMEBUFFER);switch(status){case gl.FRAMEBUFFER_COMPLETE:break;case gl.FRAMEBUFFER_INCOMPLETE_ATTACHMENT:throw"Incomplete framebuffer: FRAMEBUFFER_INCOMPLETE_ATTACHMENT";case gl.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:throw"Incomplete framebuffer: FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT";case gl.FRAMEBUFFER_INCOMPLETE_DIMENSIONS:throw"Incomplete framebuffer: FRAMEBUFFER_INCOMPLETE_DIMENSIONS";case gl.FRAMEBUFFER_UNSUPPORTED:throw"Incomplete framebuffer: FRAMEBUFFER_UNSUPPORTED";default:throw"Incomplete framebuffer: "+status;}this.buffer={framebuf:framebuf,renderbuf:renderbuf,texture:colorTexture,depthTexture:depthTexture,width:width,height:height};this.bound=false;}},{key:"clear",value:function clear(){if(!this.bound){throw"Render buffer not bound";}var gl=this.gl;gl.clear(gl.COLOR_BUFFER_BIT|gl.DEPTH_BUFFER_BIT);}},{key:"read",value:function read(pickX,pickY){var glFormat=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;var glType=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;var arrayType=arguments.length>4&&arguments[4]!==undefined?arguments[4]:Uint8Array;var arrayMultiplier=arguments.length>5&&arguments[5]!==undefined?arguments[5]:4;var x=pickX;var y=(this.buffer.height||this.gl.drawingBufferHeight)-pickY;var pix=new arrayType(arrayMultiplier);var gl=this.gl;gl.readPixels(x,y,1,1,glFormat||gl.RGBA,glType||gl.UNSIGNED_BYTE,pix,0);return pix;}},{key:"readArray",value:function readArray(){var glFormat=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;var glType=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;var arrayType=arguments.length>2&&arguments[2]!==undefined?arguments[2]:Uint8Array;var arrayMultiplier=arguments.length>3&&arguments[3]!==undefined?arguments[3]:4;var pix=new arrayType(this.buffer.width*this.buffer.height*arrayMultiplier);var gl=this.gl;gl.readPixels(0,0,this.buffer.width,this.buffer.height,glFormat||gl.RGBA,glType||gl.UNSIGNED_BYTE,pix,0);return pix;}/**
4379
4379
  * Returns an HTMLCanvas containing the contents of the RenderBuffer as an image.
4380
4380
  *
4381
4381
  * - The HTMLCanvas has a CanvasRenderingContext2D.
@@ -15723,7 +15723,7 @@ var positions=K3D.edit.unwrap(m.i_verts,m.c_verts,3);var normals=K3D.edit.unwrap
15723
15723
  * [[Run this example](http://xeokit.github.io/xeokit-sdk/examples/#LineSet_grid)]
15724
15724
  *
15725
15725
  * ````javascript
15726
- * import {Viewer, XKTLoaderPlugin, LineSet, buildGridGeometry} from "https://cdn.jsdelivr.net/npm/@xeokit/xeokit-sdk/dist/xeokit-sdk.es.min.js";
15726
+ * import {Viewer, XKTLoaderPlugin, LineSet, buildGridGeometry} from "../dist/xeokit-sdk.es.js";
15727
15727
  *
15728
15728
  * const viewer = new Viewer({
15729
15729
  * canvasId: "myCanvas",
@@ -17712,7 +17712,7 @@ if(this._src){this._loadSrc(this._src);}}},{key:"_loadSrc",value:function _loadS
17712
17712
  * [[Run this example](http://xeokit.github.io/xeokit-sdk/examples/#markers_SpriteMarker)]
17713
17713
  *
17714
17714
  * ```` javascript
17715
- * import {Viewer, SpriteMarker } from "./https://cdn.jsdelivr.net/npm/@xeokit/xeokit-sdk/dist/xeokit-sdk.es.min.js";
17715
+ * import {Viewer, SpriteMarker } from "./../dist/xeokit-sdk.es.js";
17716
17716
  *
17717
17717
  * const viewer = new Viewer({
17718
17718
  * canvasId: "myCanvas",
@@ -23477,19 +23477,19 @@ metaModel.rootMetaObjects[_objectId]=_existingObject;this.rootMetaObjects[_objec
23477
23477
  * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
23478
23478
  * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
23479
23479
  * Released under MIT License
23480
- */ /*! *****************************************************************************
23481
- Copyright (c) Microsoft Corporation.
23482
-
23483
- Permission to use, copy, modify, and/or distribute this software for any
23484
- purpose with or without fee is hereby granted.
23485
-
23486
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
23487
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
23488
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
23489
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
23490
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
23491
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
23492
- PERFORMANCE OF THIS SOFTWARE.
23480
+ */ /*! *****************************************************************************
23481
+ Copyright (c) Microsoft Corporation.
23482
+
23483
+ Permission to use, copy, modify, and/or distribute this software for any
23484
+ purpose with or without fee is hereby granted.
23485
+
23486
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
23487
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
23488
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
23489
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
23490
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
23491
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
23492
+ PERFORMANCE OF THIS SOFTWARE.
23493
23493
  ***************************************************************************** */ /* global Reflect, Promise */var _extendStatics=function extendStatics(d,b){_extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b;}||function(d,b){for(var p in b){if(Object.prototype.hasOwnProperty.call(b,p))d[p]=b[p];}};return _extendStatics(d,b);};function __extends(d,b){if(typeof b!=="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");_extendStatics(d,b);function __(){this.constructor=d;}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __());}var _assign=function __assign(){_assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s){if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p];}}return t;};return _assign.apply(this,arguments);};function __awaiter(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator["throw"](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});}function __generator(thisArg,body){var _={label:0,sent:function sent(){if(t[0]&1)throw t[1];return t[1];},trys:[],ops:[]},f,y,t,g;return g={next:verb(0),"throw":verb(1),"return":verb(2)},typeof Symbol==="function"&&(g[Symbol.iterator]=function(){return this;}),g;function verb(n){return function(v){return step([n,v]);};}function step(op){if(f)throw new TypeError("Generator is already executing.");while(_){try{if(f=1,y&&(t=op[0]&2?y["return"]:op[0]?y["throw"]||((t=y["return"])&&t.call(y),0):y.next)&&!(t=t.call(y,op[1])).done)return t;if(y=0,t)op=[op[0]&2,t.value];switch(op[0]){case 0:case 1:t=op;break;case 4:_.label++;return{value:op[1],done:false};case 5:_.label++;y=op[1];op=[0];continue;case 7:op=_.ops.pop();_.trys.pop();continue;default:if(!(t=_.trys,t=t.length>0&&t[t.length-1])&&(op[0]===6||op[0]===2)){_=0;continue;}if(op[0]===3&&(!t||op[1]>t[0]&&op[1]<t[3])){_.label=op[1];break;}if(op[0]===6&&_.label<t[1]){_.label=t[1];t=op;break;}if(t&&_.label<t[2]){_.label=t[2];_.ops.push(op);break;}if(t[2])_.ops.pop();_.trys.pop();continue;}op=body.call(thisArg,_);}catch(e){op=[6,e];y=0;}finally{f=t=0;}}if(op[0]&5)throw op[1];return{value:op[0]?op[1]:void 0,done:true};}}function __spreadArray(to,from,pack){if(pack||arguments.length===2)for(var i=0,l=from.length,ar;i<l;i++){if(ar||!(i in from)){if(!ar)ar=Array.prototype.slice.call(from,0,i);ar[i]=from[i];}}return to.concat(ar||from);}var Bounds=/** @class */function(){function Bounds(left,top,width,height){this.left=left;this.top=top;this.width=width;this.height=height;}Bounds.prototype.add=function(x,y,w,h){return new Bounds(this.left+x,this.top+y,this.width+w,this.height+h);};Bounds.fromClientRect=function(context,clientRect){return new Bounds(clientRect.left+context.windowBounds.left,clientRect.top+context.windowBounds.top,clientRect.width,clientRect.height);};Bounds.fromDOMRectList=function(context,domRectList){var domRect=Array.from(domRectList).find(function(rect){return rect.width!==0;});return domRect?new Bounds(domRect.left+context.windowBounds.left,domRect.top+context.windowBounds.top,domRect.width,domRect.height):Bounds.EMPTY;};Bounds.EMPTY=new Bounds(0,0,0,0);return Bounds;}();var parseBounds=function parseBounds(context,node){return Bounds.fromClientRect(context,node.getBoundingClientRect());};var parseDocumentSize=function parseDocumentSize(document){var body=document.body;var documentElement=document.documentElement;if(!body||!documentElement){throw new Error("Unable to get document size");}var width=Math.max(Math.max(body.scrollWidth,documentElement.scrollWidth),Math.max(body.offsetWidth,documentElement.offsetWidth),Math.max(body.clientWidth,documentElement.clientWidth));var height=Math.max(Math.max(body.scrollHeight,documentElement.scrollHeight),Math.max(body.offsetHeight,documentElement.offsetHeight),Math.max(body.clientHeight,documentElement.clientHeight));return new Bounds(0,0,width,height);};/*
23494
23494
  * css-line-break 2.1.0 <https://github.com/niklasvh/css-line-break#readme>
23495
23495
  * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
@@ -24023,7 +24023,7 @@ for(var _i554=0,len=plugins.length;_i554<len;_i554++){var plugin=plugins[_i554];
24023
24023
  * [[Run this example](http://xeokit.github.io/xeokit-sdk/examples/#Configs_disableDoublePrecisionAndRAF)]
24024
24024
  *
24025
24025
  * ````javascript
24026
- * import {Configs, Viewer, XKTLoaderPlugin} from "https://cdn.jsdelivr.net/npm/@xeokit/xeokit-sdk/dist/xeokit-sdk.es.min.js";
24026
+ * import {Configs, Viewer, XKTLoaderPlugin} from "../dist/xeokit-sdk.es.js";
24027
24027
  *
24028
24028
  * // Access xeoit-sdk global configs.
24029
24029
  * // We typically set configs only before we create any Viewers.