@xeokit/xeokit-sdk 2.4.0-alpha-96 → 2.4.0-alpha-95

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.
@@ -51523,6 +51523,16 @@ class DistanceMeasurementsPlugin extends Plugin {
51523
51523
  }
51524
51524
  }
51525
51525
 
51526
+ /**
51527
+ * Shows all or hides the axis wires of each {@link DistanceMeasurement}.
51528
+ *
51529
+ * @param {Boolean} labelsShown Whether or not to show the axis wires.
51530
+ */
51531
+ setAxisVisible(axisVisible) {
51532
+ for (const [key, measurement] of Object.entries(this.measurements)) {
51533
+ measurement.axisVisible = axisVisible;
51534
+ }
51535
+ }
51526
51536
 
51527
51537
  /**
51528
51538
  * Destroys all {@link DistanceMeasurement}s.
@@ -92349,94 +92359,94 @@ function arrayToMap(array) {
92349
92359
  * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
92350
92360
  * Released under MIT License
92351
92361
  */
92352
- /*! *****************************************************************************
92353
- Copyright (c) Microsoft Corporation.
92354
-
92355
- Permission to use, copy, modify, and/or distribute this software for any
92356
- purpose with or without fee is hereby granted.
92357
-
92358
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
92359
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
92360
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
92361
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
92362
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
92363
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
92364
- PERFORMANCE OF THIS SOFTWARE.
92365
- ***************************************************************************** */
92366
- /* global Reflect, Promise */
92367
-
92368
- var extendStatics = function(d, b) {
92369
- extendStatics = Object.setPrototypeOf ||
92370
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
92371
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
92372
- return extendStatics(d, b);
92373
- };
92374
-
92375
- function __extends(d, b) {
92376
- if (typeof b !== "function" && b !== null)
92377
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
92378
- extendStatics(d, b);
92379
- function __() { this.constructor = d; }
92380
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
92381
- }
92382
-
92383
- var __assign = function() {
92384
- __assign = Object.assign || function __assign(t) {
92385
- for (var s, i = 1, n = arguments.length; i < n; i++) {
92386
- s = arguments[i];
92387
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
92388
- }
92389
- return t;
92390
- };
92391
- return __assign.apply(this, arguments);
92392
- };
92393
-
92394
- function __awaiter(thisArg, _arguments, P, generator) {
92395
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
92396
- return new (P || (P = Promise))(function (resolve, reject) {
92397
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
92398
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
92399
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
92400
- step((generator = generator.apply(thisArg, _arguments || [])).next());
92401
- });
92402
- }
92403
-
92404
- function __generator(thisArg, body) {
92405
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
92406
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
92407
- function verb(n) { return function (v) { return step([n, v]); }; }
92408
- function step(op) {
92409
- if (f) throw new TypeError("Generator is already executing.");
92410
- while (_) try {
92411
- 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;
92412
- if (y = 0, t) op = [op[0] & 2, t.value];
92413
- switch (op[0]) {
92414
- case 0: case 1: t = op; break;
92415
- case 4: _.label++; return { value: op[1], done: false };
92416
- case 5: _.label++; y = op[1]; op = [0]; continue;
92417
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
92418
- default:
92419
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
92420
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
92421
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
92422
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
92423
- if (t[2]) _.ops.pop();
92424
- _.trys.pop(); continue;
92425
- }
92426
- op = body.call(thisArg, _);
92427
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
92428
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
92429
- }
92430
- }
92431
-
92432
- function __spreadArray(to, from, pack) {
92433
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
92434
- if (ar || !(i in from)) {
92435
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
92436
- ar[i] = from[i];
92437
- }
92438
- }
92439
- return to.concat(ar || from);
92362
+ /*! *****************************************************************************
92363
+ Copyright (c) Microsoft Corporation.
92364
+
92365
+ Permission to use, copy, modify, and/or distribute this software for any
92366
+ purpose with or without fee is hereby granted.
92367
+
92368
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
92369
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
92370
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
92371
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
92372
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
92373
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
92374
+ PERFORMANCE OF THIS SOFTWARE.
92375
+ ***************************************************************************** */
92376
+ /* global Reflect, Promise */
92377
+
92378
+ var extendStatics = function(d, b) {
92379
+ extendStatics = Object.setPrototypeOf ||
92380
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
92381
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
92382
+ return extendStatics(d, b);
92383
+ };
92384
+
92385
+ function __extends(d, b) {
92386
+ if (typeof b !== "function" && b !== null)
92387
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
92388
+ extendStatics(d, b);
92389
+ function __() { this.constructor = d; }
92390
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
92391
+ }
92392
+
92393
+ var __assign = function() {
92394
+ __assign = Object.assign || function __assign(t) {
92395
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
92396
+ s = arguments[i];
92397
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
92398
+ }
92399
+ return t;
92400
+ };
92401
+ return __assign.apply(this, arguments);
92402
+ };
92403
+
92404
+ function __awaiter(thisArg, _arguments, P, generator) {
92405
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
92406
+ return new (P || (P = Promise))(function (resolve, reject) {
92407
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
92408
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
92409
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
92410
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
92411
+ });
92412
+ }
92413
+
92414
+ function __generator(thisArg, body) {
92415
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
92416
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
92417
+ function verb(n) { return function (v) { return step([n, v]); }; }
92418
+ function step(op) {
92419
+ if (f) throw new TypeError("Generator is already executing.");
92420
+ while (_) try {
92421
+ 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;
92422
+ if (y = 0, t) op = [op[0] & 2, t.value];
92423
+ switch (op[0]) {
92424
+ case 0: case 1: t = op; break;
92425
+ case 4: _.label++; return { value: op[1], done: false };
92426
+ case 5: _.label++; y = op[1]; op = [0]; continue;
92427
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
92428
+ default:
92429
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
92430
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
92431
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
92432
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
92433
+ if (t[2]) _.ops.pop();
92434
+ _.trys.pop(); continue;
92435
+ }
92436
+ op = body.call(thisArg, _);
92437
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
92438
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
92439
+ }
92440
+ }
92441
+
92442
+ function __spreadArray(to, from, pack) {
92443
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
92444
+ if (ar || !(i in from)) {
92445
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
92446
+ ar[i] = from[i];
92447
+ }
92448
+ }
92449
+ return to.concat(ar || from);
92440
92450
  }
92441
92451
 
92442
92452
  var Bounds = /** @class */ (function () {
@@ -51519,6 +51519,16 @@ class DistanceMeasurementsPlugin extends Plugin {
51519
51519
  }
51520
51520
  }
51521
51521
 
51522
+ /**
51523
+ * Shows all or hides the axis wires of each {@link DistanceMeasurement}.
51524
+ *
51525
+ * @param {Boolean} labelsShown Whether or not to show the axis wires.
51526
+ */
51527
+ setAxisVisible(axisVisible) {
51528
+ for (const [key, measurement] of Object.entries(this.measurements)) {
51529
+ measurement.axisVisible = axisVisible;
51530
+ }
51531
+ }
51522
51532
 
51523
51533
  /**
51524
51534
  * Destroys all {@link DistanceMeasurement}s.
@@ -92345,94 +92355,94 @@ function arrayToMap(array) {
92345
92355
  * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
92346
92356
  * Released under MIT License
92347
92357
  */
92348
- /*! *****************************************************************************
92349
- Copyright (c) Microsoft Corporation.
92350
-
92351
- Permission to use, copy, modify, and/or distribute this software for any
92352
- purpose with or without fee is hereby granted.
92353
-
92354
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
92355
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
92356
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
92357
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
92358
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
92359
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
92360
- PERFORMANCE OF THIS SOFTWARE.
92361
- ***************************************************************************** */
92362
- /* global Reflect, Promise */
92363
-
92364
- var extendStatics = function(d, b) {
92365
- extendStatics = Object.setPrototypeOf ||
92366
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
92367
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
92368
- return extendStatics(d, b);
92369
- };
92370
-
92371
- function __extends(d, b) {
92372
- if (typeof b !== "function" && b !== null)
92373
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
92374
- extendStatics(d, b);
92375
- function __() { this.constructor = d; }
92376
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
92377
- }
92378
-
92379
- var __assign = function() {
92380
- __assign = Object.assign || function __assign(t) {
92381
- for (var s, i = 1, n = arguments.length; i < n; i++) {
92382
- s = arguments[i];
92383
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
92384
- }
92385
- return t;
92386
- };
92387
- return __assign.apply(this, arguments);
92388
- };
92389
-
92390
- function __awaiter(thisArg, _arguments, P, generator) {
92391
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
92392
- return new (P || (P = Promise))(function (resolve, reject) {
92393
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
92394
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
92395
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
92396
- step((generator = generator.apply(thisArg, _arguments || [])).next());
92397
- });
92398
- }
92399
-
92400
- function __generator(thisArg, body) {
92401
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
92402
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
92403
- function verb(n) { return function (v) { return step([n, v]); }; }
92404
- function step(op) {
92405
- if (f) throw new TypeError("Generator is already executing.");
92406
- while (_) try {
92407
- 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;
92408
- if (y = 0, t) op = [op[0] & 2, t.value];
92409
- switch (op[0]) {
92410
- case 0: case 1: t = op; break;
92411
- case 4: _.label++; return { value: op[1], done: false };
92412
- case 5: _.label++; y = op[1]; op = [0]; continue;
92413
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
92414
- default:
92415
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
92416
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
92417
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
92418
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
92419
- if (t[2]) _.ops.pop();
92420
- _.trys.pop(); continue;
92421
- }
92422
- op = body.call(thisArg, _);
92423
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
92424
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
92425
- }
92426
- }
92427
-
92428
- function __spreadArray(to, from, pack) {
92429
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
92430
- if (ar || !(i in from)) {
92431
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
92432
- ar[i] = from[i];
92433
- }
92434
- }
92435
- return to.concat(ar || from);
92358
+ /*! *****************************************************************************
92359
+ Copyright (c) Microsoft Corporation.
92360
+
92361
+ Permission to use, copy, modify, and/or distribute this software for any
92362
+ purpose with or without fee is hereby granted.
92363
+
92364
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
92365
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
92366
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
92367
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
92368
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
92369
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
92370
+ PERFORMANCE OF THIS SOFTWARE.
92371
+ ***************************************************************************** */
92372
+ /* global Reflect, Promise */
92373
+
92374
+ var extendStatics = function(d, b) {
92375
+ extendStatics = Object.setPrototypeOf ||
92376
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
92377
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
92378
+ return extendStatics(d, b);
92379
+ };
92380
+
92381
+ function __extends(d, b) {
92382
+ if (typeof b !== "function" && b !== null)
92383
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
92384
+ extendStatics(d, b);
92385
+ function __() { this.constructor = d; }
92386
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
92387
+ }
92388
+
92389
+ var __assign = function() {
92390
+ __assign = Object.assign || function __assign(t) {
92391
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
92392
+ s = arguments[i];
92393
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
92394
+ }
92395
+ return t;
92396
+ };
92397
+ return __assign.apply(this, arguments);
92398
+ };
92399
+
92400
+ function __awaiter(thisArg, _arguments, P, generator) {
92401
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
92402
+ return new (P || (P = Promise))(function (resolve, reject) {
92403
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
92404
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
92405
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
92406
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
92407
+ });
92408
+ }
92409
+
92410
+ function __generator(thisArg, body) {
92411
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
92412
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
92413
+ function verb(n) { return function (v) { return step([n, v]); }; }
92414
+ function step(op) {
92415
+ if (f) throw new TypeError("Generator is already executing.");
92416
+ while (_) try {
92417
+ 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;
92418
+ if (y = 0, t) op = [op[0] & 2, t.value];
92419
+ switch (op[0]) {
92420
+ case 0: case 1: t = op; break;
92421
+ case 4: _.label++; return { value: op[1], done: false };
92422
+ case 5: _.label++; y = op[1]; op = [0]; continue;
92423
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
92424
+ default:
92425
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
92426
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
92427
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
92428
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
92429
+ if (t[2]) _.ops.pop();
92430
+ _.trys.pop(); continue;
92431
+ }
92432
+ op = body.call(thisArg, _);
92433
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
92434
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
92435
+ }
92436
+ }
92437
+
92438
+ function __spreadArray(to, from, pack) {
92439
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
92440
+ if (ar || !(i in from)) {
92441
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
92442
+ ar[i] = from[i];
92443
+ }
92444
+ }
92445
+ return to.concat(ar || from);
92436
92446
  }
92437
92447
 
92438
92448
  var Bounds = /** @class */ (function () {