@xeokit/xeokit-sdk 2.6.91 → 2.6.92

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.
@@ -1,11 +1,11 @@
1
1
  /**
2
- * xeokit-sdk v2.6.91
3
- * Commit: 2db2a75dcf9d25eb41ff787cc12a1723e194eb92
4
- * Built: 2025-10-06T08:15:18.154Z
2
+ * xeokit-sdk v2.6.92
3
+ * Commit: a317970399bdcd497e4f8d9960516332510c7cb5
4
+ * Built: 2025-10-16T08:46:50.502Z
5
5
  */
6
6
 
7
7
  if (typeof window !== 'undefined') {
8
- window.__XEOKIT__ = { version: '2.6.91', commit: '2db2a75dcf9d25eb41ff787cc12a1723e194eb92', built: '2025-10-06T08:15:18.154Z' };
8
+ window.__XEOKIT__ = { version: '2.6.92', commit: 'a317970399bdcd497e4f8d9960516332510c7cb5', built: '2025-10-16T08:46:50.502Z' };
9
9
  }
10
10
 
11
11
  'use strict';
@@ -135108,6 +135108,9 @@ class AngleMeasurement extends Component {
135108
135108
 
135109
135109
  this.approximate = cfg.approximate;
135110
135110
 
135111
+ this._labelStringFormat = (angle) => {
135112
+ return (this._approximate ? " ~ " : " = ") + angle.toFixed(2) + "°";
135113
+ };
135111
135114
 
135112
135115
  const canvas = scene.canvas.canvas;
135113
135116
 
@@ -135229,7 +135232,7 @@ class AngleMeasurement extends Component {
135229
135232
  math.normalizeVec3(tmpVec3a$1);
135230
135233
  math.normalizeVec3(tmpVec3b$1);
135231
135234
  this._angle = Math.abs(math.angleVec3(tmpVec3a$1, tmpVec3b$1)) * math.RADTODEG;
135232
- this._angleLabel.setText((this._approximate ? " ~ " : " = ") + this._angle.toFixed(2) + "°");
135235
+ this._angleLabel.setText(this._labelStringFormat(this._angle));
135233
135236
  } else {
135234
135237
  this._angle = undefined;
135235
135238
  this._angleLabel.setText("");
@@ -135489,6 +135492,23 @@ class AngleMeasurement extends Component {
135489
135492
  this._drawables.forEach(d => d.setClickable(this._clickable.get()));
135490
135493
  }
135491
135494
 
135495
+ /**
135496
+ * Gets the function that formats the angle label's text.
135497
+ *
135498
+ * By default, this function formats the angle with two decimal places.
135499
+ */
135500
+ get labelStringFormat() {
135501
+ return this._labelStringFormat;
135502
+ }
135503
+
135504
+ /**
135505
+ * Sets the function that formats the angle label's text.
135506
+ */
135507
+ set labelStringFormat(value) {
135508
+ this._labelStringFormat = value;
135509
+ this._update();
135510
+ }
135511
+
135492
135512
  /**
135493
135513
  * Gets if the wires, dots ad labels will fire "mouseOver" "mouseLeave" and "contextMenu" events.
135494
135514
  *
@@ -139873,6 +139893,13 @@ class DistanceMeasurement extends Component {
139873
139893
  this._axesBasis = math.identityMat4();
139874
139894
  this.approximate = cfg.approximate;
139875
139895
 
139896
+ this._labelStringFormat = (len) => {
139897
+ const metrics = this.plugin.viewer.scene.metrics;
139898
+ const scale = metrics.scale;
139899
+ const unit = metrics.unitsInfo[metrics.units].abbrev;
139900
+
139901
+ return (this.approximate ? " ~ " : " = ") + (len * scale).toFixed(2) + unit;
139902
+ };
139876
139903
 
139877
139904
  const canvas = scene.canvas.canvas;
139878
139905
 
@@ -140001,7 +140028,7 @@ class DistanceMeasurement extends Component {
140001
140028
 
140002
140029
  const metrics = this.plugin.viewer.scene.metrics;
140003
140030
  const scale = metrics.scale;
140004
- const unit = metrics.unitsInfo[metrics.units].abbrev;
140031
+ metrics.unitsInfo[metrics.units].abbrev;
140005
140032
 
140006
140033
  const setAxisLabelCoords = (label, a, b, offsetIdx) => {
140007
140034
  if (this._labelsOnWires.get()) {
@@ -140010,24 +140037,24 @@ class DistanceMeasurement extends Component {
140010
140037
  label.setPosOnWire(p0, p1, offsetIdx * 35, 0);
140011
140038
  }
140012
140039
  };
140013
- const unitStr = len => (this._approximate ? " ~ " : " = ") + len.toFixed(2) + unit;
140014
140040
 
140015
140041
  this._xAxisWire.setEnds(p0, xEnd);
140016
140042
  setAxisLabelCoords(this._xAxisLabel, p0, xEnd, 1);
140017
- this._xAxisLabel.setText("X" + unitStr(math.distVec3(p0, xEnd) * scale));
140043
+ this._xAxisLabel.setText("X" + this._labelStringFormat(math.distVec3(p0, xEnd)));
140018
140044
 
140019
140045
  this._yAxisWire.setEnds(xEnd, zStart);
140020
140046
  setAxisLabelCoords(this._yAxisLabel, xEnd, zStart, 2);
140021
- this._yAxisLabel.setText("Y" + unitStr(math.distVec3(xEnd, zStart) * scale));
140047
+ this._yAxisLabel.setText("Y" + this._labelStringFormat(math.distVec3(xEnd, zStart)));
140022
140048
 
140023
140049
  this._zAxisWire.setEnds(zStart, p1);
140024
140050
  setAxisLabelCoords(this._zAxisLabel, zStart, p1, 3);
140025
- this._zAxisLabel.setText((measurementOrientationVertical ? "" : "Z") + unitStr(math.distVec3(zStart, p1) * scale));
140051
+ this._zAxisLabel.setText((measurementOrientationVertical ? "" : "Z") + this._labelStringFormat(math.distVec3(zStart, p1)));
140026
140052
 
140027
140053
  this._lengthWire.setEnds(p0, p1);
140028
140054
  setAxisLabelCoords(this._lengthLabel, p0, p1, 0);
140029
- this._length = math.distVec3(p0, p1) * scale;
140030
- this._lengthLabel.setText(unitStr(this._length));
140055
+ const length = math.distVec3(p0, p1);
140056
+ this._length = length * scale;
140057
+ this._lengthLabel.setText(this._labelStringFormat(length));
140031
140058
  };
140032
140059
 
140033
140060
  if (measurementOrientationVertical) {
@@ -140480,6 +140507,25 @@ class DistanceMeasurement extends Component {
140480
140507
  return this._clickable.get();
140481
140508
  }
140482
140509
 
140510
+ /**
140511
+ * Sets the function to format unit strings.
140512
+ *
140513
+ * @type {Function}
140514
+ */
140515
+ set labelStringFormat(value) {
140516
+ this._labelStringFormat = value;
140517
+ this._update();
140518
+ }
140519
+
140520
+ /**
140521
+ * Gets the function to format unit strings.
140522
+ *
140523
+ * @type {Function}
140524
+ */
140525
+ get labelStringFormat() {
140526
+ return this._labelStringFormat;
140527
+ }
140528
+
140483
140529
  /**
140484
140530
  * @private
140485
140531
  */
@@ -1,11 +1,11 @@
1
1
  /**
2
- * xeokit-sdk v2.6.91
3
- * Commit: 2db2a75dcf9d25eb41ff787cc12a1723e194eb92
4
- * Built: 2025-10-06T08:15:18.154Z
2
+ * xeokit-sdk v2.6.92
3
+ * Commit: a317970399bdcd497e4f8d9960516332510c7cb5
4
+ * Built: 2025-10-16T08:46:50.502Z
5
5
  */
6
6
 
7
7
  if (typeof window !== 'undefined') {
8
- window.__XEOKIT__ = { version: '2.6.91', commit: '2db2a75dcf9d25eb41ff787cc12a1723e194eb92', built: '2025-10-06T08:15:18.154Z' };
8
+ window.__XEOKIT__ = { version: '2.6.92', commit: 'a317970399bdcd497e4f8d9960516332510c7cb5', built: '2025-10-16T08:46:50.502Z' };
9
9
  }
10
10
 
11
11
  /** @private */
@@ -135104,6 +135104,9 @@ class AngleMeasurement extends Component {
135104
135104
 
135105
135105
  this.approximate = cfg.approximate;
135106
135106
 
135107
+ this._labelStringFormat = (angle) => {
135108
+ return (this._approximate ? " ~ " : " = ") + angle.toFixed(2) + "°";
135109
+ };
135107
135110
 
135108
135111
  const canvas = scene.canvas.canvas;
135109
135112
 
@@ -135225,7 +135228,7 @@ class AngleMeasurement extends Component {
135225
135228
  math.normalizeVec3(tmpVec3a$1);
135226
135229
  math.normalizeVec3(tmpVec3b$1);
135227
135230
  this._angle = Math.abs(math.angleVec3(tmpVec3a$1, tmpVec3b$1)) * math.RADTODEG;
135228
- this._angleLabel.setText((this._approximate ? " ~ " : " = ") + this._angle.toFixed(2) + "°");
135231
+ this._angleLabel.setText(this._labelStringFormat(this._angle));
135229
135232
  } else {
135230
135233
  this._angle = undefined;
135231
135234
  this._angleLabel.setText("");
@@ -135485,6 +135488,23 @@ class AngleMeasurement extends Component {
135485
135488
  this._drawables.forEach(d => d.setClickable(this._clickable.get()));
135486
135489
  }
135487
135490
 
135491
+ /**
135492
+ * Gets the function that formats the angle label's text.
135493
+ *
135494
+ * By default, this function formats the angle with two decimal places.
135495
+ */
135496
+ get labelStringFormat() {
135497
+ return this._labelStringFormat;
135498
+ }
135499
+
135500
+ /**
135501
+ * Sets the function that formats the angle label's text.
135502
+ */
135503
+ set labelStringFormat(value) {
135504
+ this._labelStringFormat = value;
135505
+ this._update();
135506
+ }
135507
+
135488
135508
  /**
135489
135509
  * Gets if the wires, dots ad labels will fire "mouseOver" "mouseLeave" and "contextMenu" events.
135490
135510
  *
@@ -139869,6 +139889,13 @@ class DistanceMeasurement extends Component {
139869
139889
  this._axesBasis = math.identityMat4();
139870
139890
  this.approximate = cfg.approximate;
139871
139891
 
139892
+ this._labelStringFormat = (len) => {
139893
+ const metrics = this.plugin.viewer.scene.metrics;
139894
+ const scale = metrics.scale;
139895
+ const unit = metrics.unitsInfo[metrics.units].abbrev;
139896
+
139897
+ return (this.approximate ? " ~ " : " = ") + (len * scale).toFixed(2) + unit;
139898
+ };
139872
139899
 
139873
139900
  const canvas = scene.canvas.canvas;
139874
139901
 
@@ -139997,7 +140024,7 @@ class DistanceMeasurement extends Component {
139997
140024
 
139998
140025
  const metrics = this.plugin.viewer.scene.metrics;
139999
140026
  const scale = metrics.scale;
140000
- const unit = metrics.unitsInfo[metrics.units].abbrev;
140027
+ metrics.unitsInfo[metrics.units].abbrev;
140001
140028
 
140002
140029
  const setAxisLabelCoords = (label, a, b, offsetIdx) => {
140003
140030
  if (this._labelsOnWires.get()) {
@@ -140006,24 +140033,24 @@ class DistanceMeasurement extends Component {
140006
140033
  label.setPosOnWire(p0, p1, offsetIdx * 35, 0);
140007
140034
  }
140008
140035
  };
140009
- const unitStr = len => (this._approximate ? " ~ " : " = ") + len.toFixed(2) + unit;
140010
140036
 
140011
140037
  this._xAxisWire.setEnds(p0, xEnd);
140012
140038
  setAxisLabelCoords(this._xAxisLabel, p0, xEnd, 1);
140013
- this._xAxisLabel.setText("X" + unitStr(math.distVec3(p0, xEnd) * scale));
140039
+ this._xAxisLabel.setText("X" + this._labelStringFormat(math.distVec3(p0, xEnd)));
140014
140040
 
140015
140041
  this._yAxisWire.setEnds(xEnd, zStart);
140016
140042
  setAxisLabelCoords(this._yAxisLabel, xEnd, zStart, 2);
140017
- this._yAxisLabel.setText("Y" + unitStr(math.distVec3(xEnd, zStart) * scale));
140043
+ this._yAxisLabel.setText("Y" + this._labelStringFormat(math.distVec3(xEnd, zStart)));
140018
140044
 
140019
140045
  this._zAxisWire.setEnds(zStart, p1);
140020
140046
  setAxisLabelCoords(this._zAxisLabel, zStart, p1, 3);
140021
- this._zAxisLabel.setText((measurementOrientationVertical ? "" : "Z") + unitStr(math.distVec3(zStart, p1) * scale));
140047
+ this._zAxisLabel.setText((measurementOrientationVertical ? "" : "Z") + this._labelStringFormat(math.distVec3(zStart, p1)));
140022
140048
 
140023
140049
  this._lengthWire.setEnds(p0, p1);
140024
140050
  setAxisLabelCoords(this._lengthLabel, p0, p1, 0);
140025
- this._length = math.distVec3(p0, p1) * scale;
140026
- this._lengthLabel.setText(unitStr(this._length));
140051
+ const length = math.distVec3(p0, p1);
140052
+ this._length = length * scale;
140053
+ this._lengthLabel.setText(this._labelStringFormat(length));
140027
140054
  };
140028
140055
 
140029
140056
  if (measurementOrientationVertical) {
@@ -140476,6 +140503,25 @@ class DistanceMeasurement extends Component {
140476
140503
  return this._clickable.get();
140477
140504
  }
140478
140505
 
140506
+ /**
140507
+ * Sets the function to format unit strings.
140508
+ *
140509
+ * @type {Function}
140510
+ */
140511
+ set labelStringFormat(value) {
140512
+ this._labelStringFormat = value;
140513
+ this._update();
140514
+ }
140515
+
140516
+ /**
140517
+ * Gets the function to format unit strings.
140518
+ *
140519
+ * @type {Function}
140520
+ */
140521
+ get labelStringFormat() {
140522
+ return this._labelStringFormat;
140523
+ }
140524
+
140479
140525
  /**
140480
140526
  * @private
140481
140527
  */
@@ -1,10 +1,10 @@
1
1
  /**
2
- * xeokit-sdk v2.6.91
3
- * Commit: 2db2a75dcf9d25eb41ff787cc12a1723e194eb92
4
- * Built: 2025-10-06T08:15:18.154Z
2
+ * xeokit-sdk v2.6.92
3
+ * Commit: a317970399bdcd497e4f8d9960516332510c7cb5
4
+ * Built: 2025-10-16T08:46:50.502Z
5
5
  */
6
6
 
7
- var _globalThis$loaders3,_DRACO_EXTERNAL_LIBRA,_DEFAULT_SAMPLER_PARA;var _marked=/*#__PURE__*/_regeneratorRuntime().mark(makeStringIterator),_marked2=/*#__PURE__*/_regeneratorRuntime().mark(makeArrayBufferIterator),_marked3=/*#__PURE__*/_regeneratorRuntime().mark(makeMeshPrimitiveIterator);function _wrapNativeSuper(Class){var _cache=typeof Map==="function"?new Map():undefined;_wrapNativeSuper=function _wrapNativeSuper(Class){if(Class===null||!_isNativeFunction(Class))return Class;if(typeof Class!=="function"){throw new TypeError("Super expression must either be null or a function");}if(typeof _cache!=="undefined"){if(_cache.has(Class))return _cache.get(Class);_cache.set(Class,Wrapper);}function Wrapper(){return _construct(Class,arguments,_getPrototypeOf(this).constructor);}Wrapper.prototype=Object.create(Class.prototype,{constructor:{value:Wrapper,enumerable:false,writable:true,configurable:true}});return _setPrototypeOf(Wrapper,Class);};return _wrapNativeSuper(Class);}function _construct(Parent,args,Class){if(_isNativeReflectConstruct()){_construct=Reflect.construct.bind();}else{_construct=function _construct(Parent,args,Class){var a=[null];a.push.apply(a,args);var Constructor=Function.bind.apply(Parent,a);var instance=new Constructor();if(Class)_setPrototypeOf(instance,Class.prototype);return instance;};}return _construct.apply(null,arguments);}function _isNativeFunction(fn){return Function.toString.call(fn).indexOf("[native code]")!==-1;}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return exports;};var exports={},Op=Object.prototype,hasOwn=Op.hasOwnProperty,$Symbol="function"==typeof Symbol?Symbol:{},iteratorSymbol=$Symbol.iterator||"@@iterator",asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator",toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";function define(obj,key,value){return Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}),obj[key];}try{define({},"");}catch(err){define=function define(obj,key,value){return obj[key]=value;};}function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator,generator=Object.create(protoGenerator.prototype),context=new Context(tryLocsList||[]);return generator._invoke=function(innerFn,self,context){var state="suspendedStart";return function(method,arg){if("executing"===state)throw new Error("Generator is already running");if("completed"===state){if("throw"===method)throw arg;return doneResult();}for(context.method=method,context.arg=arg;;){var delegate=context.delegate;if(delegate){var delegateResult=maybeInvokeDelegate(delegate,context);if(delegateResult){if(delegateResult===ContinueSentinel)continue;return delegateResult;}}if("next"===context.method)context.sent=context._sent=context.arg;else if("throw"===context.method){if("suspendedStart"===state)throw state="completed",context.arg;context.dispatchException(context.arg);}else"return"===context.method&&context.abrupt("return",context.arg);state="executing";var record=tryCatch(innerFn,self,context);if("normal"===record.type){if(state=context.done?"completed":"suspendedYield",record.arg===ContinueSentinel)continue;return{value:record.arg,done:context.done};}"throw"===record.type&&(state="completed",context.method="throw",context.arg=record.arg);}};}(innerFn,self,context),generator;}function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)};}catch(err){return{type:"throw",arg:err};}}exports.wrap=wrap;var ContinueSentinel={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var IteratorPrototype={};define(IteratorPrototype,iteratorSymbol,function(){return this;});var getProto=Object.getPrototypeOf,NativeIteratorPrototype=getProto&&getProto(getProto(values([])));NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)&&(IteratorPrototype=NativeIteratorPrototype);var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);function defineIteratorMethods(prototype){["next","throw","return"].forEach(function(method){define(prototype,method,function(arg){return this._invoke(method,arg);});});}function AsyncIterator(generator,PromiseImpl){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if("throw"!==record.type){var result=record.arg,value=result.value;return value&&"object"==_typeof(value)&&hasOwn.call(value,"__await")?PromiseImpl.resolve(value.__await).then(function(value){invoke("next",value,resolve,reject);},function(err){invoke("throw",err,resolve,reject);}):PromiseImpl.resolve(value).then(function(unwrapped){result.value=unwrapped,resolve(result);},function(error){return invoke("throw",error,resolve,reject);});}reject(record.arg);}var previousPromise;this._invoke=function(method,arg){function callInvokeWithMethodAndArg(){return new PromiseImpl(function(resolve,reject){invoke(method,arg,resolve,reject);});}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();};}function maybeInvokeDelegate(delegate,context){var method=delegate.iterator[context.method];if(undefined===method){if(context.delegate=null,"throw"===context.method){if(delegate.iterator["return"]&&(context.method="return",context.arg=undefined,maybeInvokeDelegate(delegate,context),"throw"===context.method))return ContinueSentinel;context.method="throw",context.arg=new TypeError("The iterator does not provide a 'throw' method");}return ContinueSentinel;}var record=tryCatch(method,delegate.iterator,context.arg);if("throw"===record.type)return context.method="throw",context.arg=record.arg,context.delegate=null,ContinueSentinel;var info=record.arg;return info?info.done?(context[delegate.resultName]=info.value,context.next=delegate.nextLoc,"return"!==context.method&&(context.method="next",context.arg=undefined),context.delegate=null,ContinueSentinel):info:(context.method="throw",context.arg=new TypeError("iterator result is not an object"),context.delegate=null,ContinueSentinel);}function pushTryEntry(locs){var entry={tryLoc:locs[0]};1 in locs&&(entry.catchLoc=locs[1]),2 in locs&&(entry.finallyLoc=locs[2],entry.afterLoc=locs[3]),this.tryEntries.push(entry);}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal",delete record.arg,entry.completion=record;}function Context(tryLocsList){this.tryEntries=[{tryLoc:"root"}],tryLocsList.forEach(pushTryEntry,this),this.reset(!0);}function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod)return iteratorMethod.call(iterable);if("function"==typeof iterable.next)return iterable;if(!isNaN(iterable.length)){var i=-1,next=function next(){for(;++i<iterable.length;){if(hasOwn.call(iterable,i))return next.value=iterable[i],next.done=!1,next;}return next.value=undefined,next.done=!0,next;};return next.next=next;}}return{next:doneResult};}function doneResult(){return{value:undefined,done:!0};}return GeneratorFunction.prototype=GeneratorFunctionPrototype,define(Gp,"constructor",GeneratorFunctionPrototype),define(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,toStringTagSymbol,"GeneratorFunction"),exports.isGeneratorFunction=function(genFun){var ctor="function"==typeof genFun&&genFun.constructor;return!!ctor&&(ctor===GeneratorFunction||"GeneratorFunction"===(ctor.displayName||ctor.name));},exports.mark=function(genFun){return Object.setPrototypeOf?Object.setPrototypeOf(genFun,GeneratorFunctionPrototype):(genFun.__proto__=GeneratorFunctionPrototype,define(genFun,toStringTagSymbol,"GeneratorFunction")),genFun.prototype=Object.create(Gp),genFun;},exports.awrap=function(arg){return{__await:arg};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,asyncIteratorSymbol,function(){return this;}),exports.AsyncIterator=AsyncIterator,exports.async=function(innerFn,outerFn,self,tryLocsList,PromiseImpl){void 0===PromiseImpl&&(PromiseImpl=Promise);var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList),PromiseImpl);return exports.isGeneratorFunction(outerFn)?iter:iter.next().then(function(result){return result.done?result.value:iter.next();});},defineIteratorMethods(Gp),define(Gp,toStringTagSymbol,"Generator"),define(Gp,iteratorSymbol,function(){return this;}),define(Gp,"toString",function(){return"[object Generator]";}),exports.keys=function(object){var keys=[];for(var key in object){keys.push(key);}return keys.reverse(),function next(){for(;keys.length;){var key=keys.pop();if(key in object)return next.value=key,next.done=!1,next;}return next.done=!0,next;};},exports.values=values,Context.prototype={constructor:Context,reset:function reset(skipTempReset){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(resetTryEntry),!skipTempReset)for(var name in this){"t"===name.charAt(0)&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))&&(this[name]=undefined);}},stop:function stop(){this.done=!0;var rootRecord=this.tryEntries[0].completion;if("throw"===rootRecord.type)throw rootRecord.arg;return this.rval;},dispatchException:function dispatchException(exception){if(this.done)throw exception;var context=this;function handle(loc,caught){return record.type="throw",record.arg=exception,context.next=loc,caught&&(context.method="next",context.arg=undefined),!!caught;}for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i],record=entry.completion;if("root"===entry.tryLoc)return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc"),hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}else if(hasCatch){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);}else{if(!hasFinally)throw new Error("try statement without catch or finally");if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}}}},abrupt:function abrupt(type,arg){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break;}}finallyEntry&&("break"===type||"continue"===type)&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc&&(finallyEntry=null);var record=finallyEntry?finallyEntry.completion:{};return record.type=type,record.arg=arg,finallyEntry?(this.method="next",this.next=finallyEntry.finallyLoc,ContinueSentinel):this.complete(record);},complete:function complete(record,afterLoc){if("throw"===record.type)throw record.arg;return"break"===record.type||"continue"===record.type?this.next=record.arg:"return"===record.type?(this.rval=this.arg=record.arg,this.method="return",this.next="end"):"normal"===record.type&&afterLoc&&(this.next=afterLoc),ContinueSentinel;},finish:function finish(finallyLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc),resetTryEntry(entry),ContinueSentinel;}},"catch":function _catch(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if("throw"===record.type){var thrown=record.arg;resetTryEntry(entry);}return thrown;}}throw new Error("illegal catch attempt");},delegateYield:function delegateYield(iterable,resultName,nextLoc){return this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc},"next"===this.method&&(this.arg=undefined),ContinueSentinel;}},exports;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;})),keys.push.apply(keys,symbols);}return keys;}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key));});}return target;}function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function e(_e14){throw _e14;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function e(_e15){didErr=true;err=_e15;},f:function f(){try{if(!normalCompletion&&it["return"]!=null)it["return"]();}finally{if(didErr)throw err;}}};}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter);}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr);}function _get(){if(typeof Reflect!=="undefined"&&Reflect.get){_get=Reflect.get.bind();}else{_get=function _get(target,property,receiver){var base=_superPropBase(target,property);if(!base)return;var desc=Object.getOwnPropertyDescriptor(base,property);if(desc.get){return desc.get.call(arguments.length<3?target:receiver);}return desc.value;};}return _get.apply(this,arguments);}function _superPropBase(object,property){while(!Object.prototype.hasOwnProperty.call(object,property)){object=_getPrototypeOf(object);if(object===null)break;}return object;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++){arr2[i]=arr[i];}return arr2;}function _iterableToArrayLimit(arr,i){var _i=arr==null?null:typeof Symbol!=="undefined"&&arr[Symbol.iterator]||arr["@@iterator"];if(_i==null)return;var _arr=[];var _n=true;var _d=false;var _s,_e;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break;}}catch(err){_d=true;_e=err;}finally{try{if(!_n&&_i["return"]!=null)_i["return"]();}finally{if(_d)throw _e;}}return _arr;}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _awaitAsyncGenerator(value){return new _AwaitValue(value);}function _wrapAsyncGenerator(fn){return function(){return new _AsyncGenerator(fn.apply(this,arguments));};}function _AsyncGenerator(gen){var front,back;function send(key,arg){return new Promise(function(resolve,reject){var request={key:key,arg:arg,resolve:resolve,reject:reject,next:null};if(back){back=back.next=request;}else{front=back=request;resume(key,arg);}});}function resume(key,arg){try{var result=gen[key](arg);var value=result.value;var wrappedAwait=value instanceof _AwaitValue;Promise.resolve(wrappedAwait?value.wrapped:value).then(function(arg){if(wrappedAwait){resume(key==="return"?"return":"next",arg);return;}settle(result.done?"return":"normal",arg);},function(err){resume("throw",err);});}catch(err){settle("throw",err);}}function settle(type,value){switch(type){case"return":front.resolve({value:value,done:true});break;case"throw":front.reject(value);break;default:front.resolve({value:value,done:false});break;}front=front.next;if(front){resume(front.key,front.arg);}else{back=null;}}this._invoke=send;if(typeof gen["return"]!=="function"){this["return"]=undefined;}}_AsyncGenerator.prototype[typeof Symbol==="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this;};_AsyncGenerator.prototype.next=function(arg){return this._invoke("next",arg);};_AsyncGenerator.prototype["throw"]=function(arg){return this._invoke("throw",arg);};_AsyncGenerator.prototype["return"]=function(arg){return this._invoke("return",arg);};function _AwaitValue(value){this.wrapped=value;}function _asyncIterator(iterable){var method,async,sync,retry=2;for("undefined"!=typeof Symbol&&(async=Symbol.asyncIterator,sync=Symbol.iterator);retry--;){if(async&&null!=(method=iterable[async]))return method.call(iterable);if(sync&&null!=(method=iterable[sync]))return new AsyncFromSyncIterator(method.call(iterable));async="@@asyncIterator",sync="@@iterator";}throw new TypeError("Object is not async iterable");}function AsyncFromSyncIterator(s){function AsyncFromSyncIteratorContinuation(r){if(Object(r)!==r)return Promise.reject(new TypeError(r+" is not an object."));var done=r.done;return Promise.resolve(r.value).then(function(value){return{value:value,done:done};});}return AsyncFromSyncIterator=function AsyncFromSyncIterator(s){this.s=s,this.n=s.next;},AsyncFromSyncIterator.prototype={s:null,n:null,next:function next(){return AsyncFromSyncIteratorContinuation(this.n.apply(this.s,arguments));},"return":function _return(value){var ret=this.s["return"];return void 0===ret?Promise.resolve({value:value,done:!0}):AsyncFromSyncIteratorContinuation(ret.apply(this.s,arguments));},"throw":function _throw(value){var thr=this.s["return"];return void 0===thr?Promise.reject(value):AsyncFromSyncIteratorContinuation(thr.apply(this.s,arguments));}},new AsyncFromSyncIterator(s);}if(typeof window!=='undefined'){window.__XEOKIT__={version:'2.6.91',commit:'2db2a75dcf9d25eb41ff787cc12a1723e194eb92',built:'2025-10-06T08:15:18.154Z'};}/** @private */var Map$1=/*#__PURE__*/function(){function Map$1(items,baseId){_classCallCheck(this,Map$1);this.items=items||[];this._lastUniqueId=(baseId||0)+1;}/**
7
+ var _globalThis$loaders3,_DRACO_EXTERNAL_LIBRA,_DEFAULT_SAMPLER_PARA;var _marked=/*#__PURE__*/_regeneratorRuntime().mark(makeStringIterator),_marked2=/*#__PURE__*/_regeneratorRuntime().mark(makeArrayBufferIterator),_marked3=/*#__PURE__*/_regeneratorRuntime().mark(makeMeshPrimitiveIterator);function _wrapNativeSuper(Class){var _cache=typeof Map==="function"?new Map():undefined;_wrapNativeSuper=function _wrapNativeSuper(Class){if(Class===null||!_isNativeFunction(Class))return Class;if(typeof Class!=="function"){throw new TypeError("Super expression must either be null or a function");}if(typeof _cache!=="undefined"){if(_cache.has(Class))return _cache.get(Class);_cache.set(Class,Wrapper);}function Wrapper(){return _construct(Class,arguments,_getPrototypeOf(this).constructor);}Wrapper.prototype=Object.create(Class.prototype,{constructor:{value:Wrapper,enumerable:false,writable:true,configurable:true}});return _setPrototypeOf(Wrapper,Class);};return _wrapNativeSuper(Class);}function _construct(Parent,args,Class){if(_isNativeReflectConstruct()){_construct=Reflect.construct.bind();}else{_construct=function _construct(Parent,args,Class){var a=[null];a.push.apply(a,args);var Constructor=Function.bind.apply(Parent,a);var instance=new Constructor();if(Class)_setPrototypeOf(instance,Class.prototype);return instance;};}return _construct.apply(null,arguments);}function _isNativeFunction(fn){return Function.toString.call(fn).indexOf("[native code]")!==-1;}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return exports;};var exports={},Op=Object.prototype,hasOwn=Op.hasOwnProperty,$Symbol="function"==typeof Symbol?Symbol:{},iteratorSymbol=$Symbol.iterator||"@@iterator",asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator",toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";function define(obj,key,value){return Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}),obj[key];}try{define({},"");}catch(err){define=function define(obj,key,value){return obj[key]=value;};}function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator,generator=Object.create(protoGenerator.prototype),context=new Context(tryLocsList||[]);return generator._invoke=function(innerFn,self,context){var state="suspendedStart";return function(method,arg){if("executing"===state)throw new Error("Generator is already running");if("completed"===state){if("throw"===method)throw arg;return doneResult();}for(context.method=method,context.arg=arg;;){var delegate=context.delegate;if(delegate){var delegateResult=maybeInvokeDelegate(delegate,context);if(delegateResult){if(delegateResult===ContinueSentinel)continue;return delegateResult;}}if("next"===context.method)context.sent=context._sent=context.arg;else if("throw"===context.method){if("suspendedStart"===state)throw state="completed",context.arg;context.dispatchException(context.arg);}else"return"===context.method&&context.abrupt("return",context.arg);state="executing";var record=tryCatch(innerFn,self,context);if("normal"===record.type){if(state=context.done?"completed":"suspendedYield",record.arg===ContinueSentinel)continue;return{value:record.arg,done:context.done};}"throw"===record.type&&(state="completed",context.method="throw",context.arg=record.arg);}};}(innerFn,self,context),generator;}function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)};}catch(err){return{type:"throw",arg:err};}}exports.wrap=wrap;var ContinueSentinel={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var IteratorPrototype={};define(IteratorPrototype,iteratorSymbol,function(){return this;});var getProto=Object.getPrototypeOf,NativeIteratorPrototype=getProto&&getProto(getProto(values([])));NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)&&(IteratorPrototype=NativeIteratorPrototype);var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);function defineIteratorMethods(prototype){["next","throw","return"].forEach(function(method){define(prototype,method,function(arg){return this._invoke(method,arg);});});}function AsyncIterator(generator,PromiseImpl){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if("throw"!==record.type){var result=record.arg,value=result.value;return value&&"object"==_typeof(value)&&hasOwn.call(value,"__await")?PromiseImpl.resolve(value.__await).then(function(value){invoke("next",value,resolve,reject);},function(err){invoke("throw",err,resolve,reject);}):PromiseImpl.resolve(value).then(function(unwrapped){result.value=unwrapped,resolve(result);},function(error){return invoke("throw",error,resolve,reject);});}reject(record.arg);}var previousPromise;this._invoke=function(method,arg){function callInvokeWithMethodAndArg(){return new PromiseImpl(function(resolve,reject){invoke(method,arg,resolve,reject);});}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();};}function maybeInvokeDelegate(delegate,context){var method=delegate.iterator[context.method];if(undefined===method){if(context.delegate=null,"throw"===context.method){if(delegate.iterator["return"]&&(context.method="return",context.arg=undefined,maybeInvokeDelegate(delegate,context),"throw"===context.method))return ContinueSentinel;context.method="throw",context.arg=new TypeError("The iterator does not provide a 'throw' method");}return ContinueSentinel;}var record=tryCatch(method,delegate.iterator,context.arg);if("throw"===record.type)return context.method="throw",context.arg=record.arg,context.delegate=null,ContinueSentinel;var info=record.arg;return info?info.done?(context[delegate.resultName]=info.value,context.next=delegate.nextLoc,"return"!==context.method&&(context.method="next",context.arg=undefined),context.delegate=null,ContinueSentinel):info:(context.method="throw",context.arg=new TypeError("iterator result is not an object"),context.delegate=null,ContinueSentinel);}function pushTryEntry(locs){var entry={tryLoc:locs[0]};1 in locs&&(entry.catchLoc=locs[1]),2 in locs&&(entry.finallyLoc=locs[2],entry.afterLoc=locs[3]),this.tryEntries.push(entry);}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal",delete record.arg,entry.completion=record;}function Context(tryLocsList){this.tryEntries=[{tryLoc:"root"}],tryLocsList.forEach(pushTryEntry,this),this.reset(!0);}function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod)return iteratorMethod.call(iterable);if("function"==typeof iterable.next)return iterable;if(!isNaN(iterable.length)){var i=-1,next=function next(){for(;++i<iterable.length;){if(hasOwn.call(iterable,i))return next.value=iterable[i],next.done=!1,next;}return next.value=undefined,next.done=!0,next;};return next.next=next;}}return{next:doneResult};}function doneResult(){return{value:undefined,done:!0};}return GeneratorFunction.prototype=GeneratorFunctionPrototype,define(Gp,"constructor",GeneratorFunctionPrototype),define(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,toStringTagSymbol,"GeneratorFunction"),exports.isGeneratorFunction=function(genFun){var ctor="function"==typeof genFun&&genFun.constructor;return!!ctor&&(ctor===GeneratorFunction||"GeneratorFunction"===(ctor.displayName||ctor.name));},exports.mark=function(genFun){return Object.setPrototypeOf?Object.setPrototypeOf(genFun,GeneratorFunctionPrototype):(genFun.__proto__=GeneratorFunctionPrototype,define(genFun,toStringTagSymbol,"GeneratorFunction")),genFun.prototype=Object.create(Gp),genFun;},exports.awrap=function(arg){return{__await:arg};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,asyncIteratorSymbol,function(){return this;}),exports.AsyncIterator=AsyncIterator,exports.async=function(innerFn,outerFn,self,tryLocsList,PromiseImpl){void 0===PromiseImpl&&(PromiseImpl=Promise);var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList),PromiseImpl);return exports.isGeneratorFunction(outerFn)?iter:iter.next().then(function(result){return result.done?result.value:iter.next();});},defineIteratorMethods(Gp),define(Gp,toStringTagSymbol,"Generator"),define(Gp,iteratorSymbol,function(){return this;}),define(Gp,"toString",function(){return"[object Generator]";}),exports.keys=function(object){var keys=[];for(var key in object){keys.push(key);}return keys.reverse(),function next(){for(;keys.length;){var key=keys.pop();if(key in object)return next.value=key,next.done=!1,next;}return next.done=!0,next;};},exports.values=values,Context.prototype={constructor:Context,reset:function reset(skipTempReset){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(resetTryEntry),!skipTempReset)for(var name in this){"t"===name.charAt(0)&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))&&(this[name]=undefined);}},stop:function stop(){this.done=!0;var rootRecord=this.tryEntries[0].completion;if("throw"===rootRecord.type)throw rootRecord.arg;return this.rval;},dispatchException:function dispatchException(exception){if(this.done)throw exception;var context=this;function handle(loc,caught){return record.type="throw",record.arg=exception,context.next=loc,caught&&(context.method="next",context.arg=undefined),!!caught;}for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i],record=entry.completion;if("root"===entry.tryLoc)return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc"),hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}else if(hasCatch){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);}else{if(!hasFinally)throw new Error("try statement without catch or finally");if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}}}},abrupt:function abrupt(type,arg){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break;}}finallyEntry&&("break"===type||"continue"===type)&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc&&(finallyEntry=null);var record=finallyEntry?finallyEntry.completion:{};return record.type=type,record.arg=arg,finallyEntry?(this.method="next",this.next=finallyEntry.finallyLoc,ContinueSentinel):this.complete(record);},complete:function complete(record,afterLoc){if("throw"===record.type)throw record.arg;return"break"===record.type||"continue"===record.type?this.next=record.arg:"return"===record.type?(this.rval=this.arg=record.arg,this.method="return",this.next="end"):"normal"===record.type&&afterLoc&&(this.next=afterLoc),ContinueSentinel;},finish:function finish(finallyLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc),resetTryEntry(entry),ContinueSentinel;}},"catch":function _catch(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if("throw"===record.type){var thrown=record.arg;resetTryEntry(entry);}return thrown;}}throw new Error("illegal catch attempt");},delegateYield:function delegateYield(iterable,resultName,nextLoc){return this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc},"next"===this.method&&(this.arg=undefined),ContinueSentinel;}},exports;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;})),keys.push.apply(keys,symbols);}return keys;}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key));});}return target;}function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function e(_e14){throw _e14;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function e(_e15){didErr=true;err=_e15;},f:function f(){try{if(!normalCompletion&&it["return"]!=null)it["return"]();}finally{if(didErr)throw err;}}};}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter);}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr);}function _get(){if(typeof Reflect!=="undefined"&&Reflect.get){_get=Reflect.get.bind();}else{_get=function _get(target,property,receiver){var base=_superPropBase(target,property);if(!base)return;var desc=Object.getOwnPropertyDescriptor(base,property);if(desc.get){return desc.get.call(arguments.length<3?target:receiver);}return desc.value;};}return _get.apply(this,arguments);}function _superPropBase(object,property){while(!Object.prototype.hasOwnProperty.call(object,property)){object=_getPrototypeOf(object);if(object===null)break;}return object;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++){arr2[i]=arr[i];}return arr2;}function _iterableToArrayLimit(arr,i){var _i=arr==null?null:typeof Symbol!=="undefined"&&arr[Symbol.iterator]||arr["@@iterator"];if(_i==null)return;var _arr=[];var _n=true;var _d=false;var _s,_e;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break;}}catch(err){_d=true;_e=err;}finally{try{if(!_n&&_i["return"]!=null)_i["return"]();}finally{if(_d)throw _e;}}return _arr;}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _awaitAsyncGenerator(value){return new _AwaitValue(value);}function _wrapAsyncGenerator(fn){return function(){return new _AsyncGenerator(fn.apply(this,arguments));};}function _AsyncGenerator(gen){var front,back;function send(key,arg){return new Promise(function(resolve,reject){var request={key:key,arg:arg,resolve:resolve,reject:reject,next:null};if(back){back=back.next=request;}else{front=back=request;resume(key,arg);}});}function resume(key,arg){try{var result=gen[key](arg);var value=result.value;var wrappedAwait=value instanceof _AwaitValue;Promise.resolve(wrappedAwait?value.wrapped:value).then(function(arg){if(wrappedAwait){resume(key==="return"?"return":"next",arg);return;}settle(result.done?"return":"normal",arg);},function(err){resume("throw",err);});}catch(err){settle("throw",err);}}function settle(type,value){switch(type){case"return":front.resolve({value:value,done:true});break;case"throw":front.reject(value);break;default:front.resolve({value:value,done:false});break;}front=front.next;if(front){resume(front.key,front.arg);}else{back=null;}}this._invoke=send;if(typeof gen["return"]!=="function"){this["return"]=undefined;}}_AsyncGenerator.prototype[typeof Symbol==="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this;};_AsyncGenerator.prototype.next=function(arg){return this._invoke("next",arg);};_AsyncGenerator.prototype["throw"]=function(arg){return this._invoke("throw",arg);};_AsyncGenerator.prototype["return"]=function(arg){return this._invoke("return",arg);};function _AwaitValue(value){this.wrapped=value;}function _asyncIterator(iterable){var method,async,sync,retry=2;for("undefined"!=typeof Symbol&&(async=Symbol.asyncIterator,sync=Symbol.iterator);retry--;){if(async&&null!=(method=iterable[async]))return method.call(iterable);if(sync&&null!=(method=iterable[sync]))return new AsyncFromSyncIterator(method.call(iterable));async="@@asyncIterator",sync="@@iterator";}throw new TypeError("Object is not async iterable");}function AsyncFromSyncIterator(s){function AsyncFromSyncIteratorContinuation(r){if(Object(r)!==r)return Promise.reject(new TypeError(r+" is not an object."));var done=r.done;return Promise.resolve(r.value).then(function(value){return{value:value,done:done};});}return AsyncFromSyncIterator=function AsyncFromSyncIterator(s){this.s=s,this.n=s.next;},AsyncFromSyncIterator.prototype={s:null,n:null,next:function next(){return AsyncFromSyncIteratorContinuation(this.n.apply(this.s,arguments));},"return":function _return(value){var ret=this.s["return"];return void 0===ret?Promise.resolve({value:value,done:!0}):AsyncFromSyncIteratorContinuation(ret.apply(this.s,arguments));},"throw":function _throw(value){var thr=this.s["return"];return void 0===thr?Promise.reject(value):AsyncFromSyncIteratorContinuation(thr.apply(this.s,arguments));}},new AsyncFromSyncIterator(s);}if(typeof window!=='undefined'){window.__XEOKIT__={version:'2.6.92',commit:'a317970399bdcd497e4f8d9960516332510c7cb5',built:'2025-10-16T08:46:50.502Z'};}/** @private */var Map$1=/*#__PURE__*/function(){function Map$1(items,baseId){_classCallCheck(this,Map$1);this.items=items||[];this._lastUniqueId=(baseId||0)+1;}/**
8
8
  * Usage:
9
9
  *
10
10
  * id = myMap.addItem("foo") // ID internally generated
@@ -25667,7 +25667,7 @@ primitive:"triangles",positions:[1,1,1,-1,1,1,-1,-1,1,1,-1,1,// v0-v1-v2-v3 fron
25667
25667
  */function AngleMeasurement(plugin){var _this113;var cfg=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,AngleMeasurement);var scene=plugin.viewer.scene;_this113=_super131.call(this,scene,cfg);/**
25668
25668
  * The {@link AngleMeasurementsPlugin} that owns this AngleMeasurement.
25669
25669
  * @type {AngleMeasurementsPlugin}
25670
- */_this113.plugin=plugin;var container=cfg.container;if(!container){throw"config missing: container";}_this113._color=cfg.color||plugin.defaultColor;var channel=function channel(v){var listeners=[];var value=v!==false;return{reg:function reg(l){return listeners.push(l);},get:function get(){return value;},set:function set(v){value=v!==false;listeners.forEach(function(l){return l(value);});}};};_this113._visible=channel(cfg.visible);_this113._originVisible=channel(cfg.originVisible);_this113._cornerVisible=channel(cfg.cornerVisible);_this113._targetVisible=channel(cfg.targetVisible);_this113._originWireVisible=channel(cfg.originWireVisible);_this113._targetWireVisible=channel(cfg.targetWireVisible);_this113._angleVisible=channel(cfg.angleVisible);_this113._labelsVisible=channel();_this113.labelsVisible=cfg.labelsVisible;_this113._clickable=channel(false);_this113.approximate=cfg.approximate;var canvas=scene.canvas.canvas;var onMouseOver=cfg.onMouseOver?function(event){cfg.onMouseOver(event,_assertThisInitialized(_this113));canvas.dispatchEvent(new MouseEvent('mouseover',event));}:null;var onMouseLeave=cfg.onMouseLeave?function(event){cfg.onMouseLeave(event,_assertThisInitialized(_this113));canvas.dispatchEvent(new MouseEvent('mouseleave',event));}:null;var onContextMenu=cfg.onContextMenu?function(event){cfg.onContextMenu(event,_assertThisInitialized(_this113));}:null;var onMouseDown=function onMouseDown(event){return canvas.dispatchEvent(new MouseEvent('mousedown',event));};var onMouseUp=function onMouseUp(event){return canvas.dispatchEvent(new MouseEvent('mouseup',event));};var onMouseMove=function onMouseMove(event){return canvas.dispatchEvent(new MouseEvent('mousemove',event));};var onMouseWheel=function onMouseWheel(event){return canvas.dispatchEvent(new WheelEvent('wheel',event));};_this113._cleanups=[];_this113._drawables=[];var registerDrawable=function registerDrawable(drawable,visibilityChannels){var updateVisibility=function updateVisibility(){return drawable.setVisible(visibilityChannels.every(function(ch){return ch.get();}));};visibilityChannels.forEach(function(ch){return ch.reg(updateVisibility);});_this113._drawables.push(drawable);_this113._cleanups.push(function(){return drawable.destroy();});};var makeWire=function makeWire(color,thickness,visibilityChannels){var wire=new Wire3D(scene,container,{color:color,thickness:thickness,thicknessClickable:6,zIndex:plugin.zIndex!==undefined?plugin.zIndex+1:undefined,onMouseOver:onMouseOver,onMouseLeave:onMouseLeave,onMouseWheel:onMouseWheel,onMouseDown:onMouseDown,onMouseUp:onMouseUp,onMouseMove:onMouseMove,onContextMenu:onContextMenu});registerDrawable(wire,visibilityChannels);return{setEnds:function setEnds(p0,p1){return wire.setEnds(p0,p1);},setColor:function setColor(value){return wire.setColor(value);}};};_this113._originWire=makeWire(_this113._color||"blue",1,[_this113._visible,_this113._originWireVisible]);_this113._targetWire=makeWire(_this113._color||"red",1,[_this113._visible,_this113._targetWireVisible]);var makeLabel=function makeLabel(color,zIndexOffset,visibilityChannels){var label=new Label3D(scene,container,{fillColor:color,zIndex:plugin.zIndex+zIndexOffset,onMouseOver:onMouseOver,onMouseLeave:onMouseLeave,onMouseWheel:onMouseWheel,onMouseDown:onMouseDown,onMouseUp:onMouseUp,onMouseMove:onMouseMove,onContextMenu:onContextMenu});registerDrawable(label,visibilityChannels);return{setFillColor:function setFillColor(value){return label.setFillColor(value);},setPosOnWire:function setPosOnWire(p0,p1,offset){return label.setPosOnWire(p0,p1,offset);},setPosBetween:function setPosBetween(p0,p1,p2){return label.setPosBetween(p0,p1,p2);},setText:function setText(str){return label.setText(str);}};};_this113._angleLabel=makeLabel(_this113._color||"#00BBFF",2,[_this113._visible,_this113._angleVisible,_this113._labelsVisible]);var makeDot=function makeDot(cfg,visibilityChannels){var dot=new Dot3D(scene,cfg,container,{fillColor:_this113._color,zIndex:plugin.zIndex!==undefined?plugin.zIndex+2:undefined,onMouseOver:onMouseOver,onMouseLeave:onMouseLeave,onMouseWheel:onMouseWheel,onMouseDown:onMouseDown,onMouseUp:onMouseUp,onMouseMove:onMouseMove,onContextMenu:onContextMenu});dot.on("worldPos",function(){return _this113._update();});registerDrawable(dot,visibilityChannels);return dot;};_this113._originDot=makeDot(cfg.origin,[_this113._visible,_this113._originVisible]);_this113._cornerDot=makeDot(cfg.corner,[_this113._visible,_this113._cornerVisible]);_this113._targetDot=makeDot(cfg.target,[_this113._visible,_this113._targetVisible]);_this113._update();return _this113;}_createClass(AngleMeasurement,[{key:"_update",value:function _update(){if(!this._targetDot){return;}var p0=this._originDot.worldPos;var p1=this._cornerDot.worldPos;var p2=this._targetDot.worldPos;this._originWire.setEnds(p0,p1);this._targetWire.setEnds(p1,p2);this._angleLabel.setPosBetween(p0,p1,p2);math.subVec3(p0,p1,tmpVec3a$1);math.subVec3(p2,p1,tmpVec3b$1);if(math.lenVec3(tmpVec3a$1)>0&&math.lenVec3(tmpVec3b$1)>0){math.normalizeVec3(tmpVec3a$1);math.normalizeVec3(tmpVec3b$1);this._angle=Math.abs(math.angleVec3(tmpVec3a$1,tmpVec3b$1))*math.RADTODEG;this._angleLabel.setText((this._approximate?" ~ ":" = ")+this._angle.toFixed(2)+"°");}else{this._angle=undefined;this._angleLabel.setText("");}}/**
25670
+ */_this113.plugin=plugin;var container=cfg.container;if(!container){throw"config missing: container";}_this113._color=cfg.color||plugin.defaultColor;var channel=function channel(v){var listeners=[];var value=v!==false;return{reg:function reg(l){return listeners.push(l);},get:function get(){return value;},set:function set(v){value=v!==false;listeners.forEach(function(l){return l(value);});}};};_this113._visible=channel(cfg.visible);_this113._originVisible=channel(cfg.originVisible);_this113._cornerVisible=channel(cfg.cornerVisible);_this113._targetVisible=channel(cfg.targetVisible);_this113._originWireVisible=channel(cfg.originWireVisible);_this113._targetWireVisible=channel(cfg.targetWireVisible);_this113._angleVisible=channel(cfg.angleVisible);_this113._labelsVisible=channel();_this113.labelsVisible=cfg.labelsVisible;_this113._clickable=channel(false);_this113.approximate=cfg.approximate;_this113._labelStringFormat=function(angle){return(_this113._approximate?" ~ ":" = ")+angle.toFixed(2)+"°";};var canvas=scene.canvas.canvas;var onMouseOver=cfg.onMouseOver?function(event){cfg.onMouseOver(event,_assertThisInitialized(_this113));canvas.dispatchEvent(new MouseEvent('mouseover',event));}:null;var onMouseLeave=cfg.onMouseLeave?function(event){cfg.onMouseLeave(event,_assertThisInitialized(_this113));canvas.dispatchEvent(new MouseEvent('mouseleave',event));}:null;var onContextMenu=cfg.onContextMenu?function(event){cfg.onContextMenu(event,_assertThisInitialized(_this113));}:null;var onMouseDown=function onMouseDown(event){return canvas.dispatchEvent(new MouseEvent('mousedown',event));};var onMouseUp=function onMouseUp(event){return canvas.dispatchEvent(new MouseEvent('mouseup',event));};var onMouseMove=function onMouseMove(event){return canvas.dispatchEvent(new MouseEvent('mousemove',event));};var onMouseWheel=function onMouseWheel(event){return canvas.dispatchEvent(new WheelEvent('wheel',event));};_this113._cleanups=[];_this113._drawables=[];var registerDrawable=function registerDrawable(drawable,visibilityChannels){var updateVisibility=function updateVisibility(){return drawable.setVisible(visibilityChannels.every(function(ch){return ch.get();}));};visibilityChannels.forEach(function(ch){return ch.reg(updateVisibility);});_this113._drawables.push(drawable);_this113._cleanups.push(function(){return drawable.destroy();});};var makeWire=function makeWire(color,thickness,visibilityChannels){var wire=new Wire3D(scene,container,{color:color,thickness:thickness,thicknessClickable:6,zIndex:plugin.zIndex!==undefined?plugin.zIndex+1:undefined,onMouseOver:onMouseOver,onMouseLeave:onMouseLeave,onMouseWheel:onMouseWheel,onMouseDown:onMouseDown,onMouseUp:onMouseUp,onMouseMove:onMouseMove,onContextMenu:onContextMenu});registerDrawable(wire,visibilityChannels);return{setEnds:function setEnds(p0,p1){return wire.setEnds(p0,p1);},setColor:function setColor(value){return wire.setColor(value);}};};_this113._originWire=makeWire(_this113._color||"blue",1,[_this113._visible,_this113._originWireVisible]);_this113._targetWire=makeWire(_this113._color||"red",1,[_this113._visible,_this113._targetWireVisible]);var makeLabel=function makeLabel(color,zIndexOffset,visibilityChannels){var label=new Label3D(scene,container,{fillColor:color,zIndex:plugin.zIndex+zIndexOffset,onMouseOver:onMouseOver,onMouseLeave:onMouseLeave,onMouseWheel:onMouseWheel,onMouseDown:onMouseDown,onMouseUp:onMouseUp,onMouseMove:onMouseMove,onContextMenu:onContextMenu});registerDrawable(label,visibilityChannels);return{setFillColor:function setFillColor(value){return label.setFillColor(value);},setPosOnWire:function setPosOnWire(p0,p1,offset){return label.setPosOnWire(p0,p1,offset);},setPosBetween:function setPosBetween(p0,p1,p2){return label.setPosBetween(p0,p1,p2);},setText:function setText(str){return label.setText(str);}};};_this113._angleLabel=makeLabel(_this113._color||"#00BBFF",2,[_this113._visible,_this113._angleVisible,_this113._labelsVisible]);var makeDot=function makeDot(cfg,visibilityChannels){var dot=new Dot3D(scene,cfg,container,{fillColor:_this113._color,zIndex:plugin.zIndex!==undefined?plugin.zIndex+2:undefined,onMouseOver:onMouseOver,onMouseLeave:onMouseLeave,onMouseWheel:onMouseWheel,onMouseDown:onMouseDown,onMouseUp:onMouseUp,onMouseMove:onMouseMove,onContextMenu:onContextMenu});dot.on("worldPos",function(){return _this113._update();});registerDrawable(dot,visibilityChannels);return dot;};_this113._originDot=makeDot(cfg.origin,[_this113._visible,_this113._originVisible]);_this113._cornerDot=makeDot(cfg.corner,[_this113._visible,_this113._cornerVisible]);_this113._targetDot=makeDot(cfg.target,[_this113._visible,_this113._targetVisible]);_this113._update();return _this113;}_createClass(AngleMeasurement,[{key:"_update",value:function _update(){if(!this._targetDot){return;}var p0=this._originDot.worldPos;var p1=this._cornerDot.worldPos;var p2=this._targetDot.worldPos;this._originWire.setEnds(p0,p1);this._targetWire.setEnds(p1,p2);this._angleLabel.setPosBetween(p0,p1,p2);math.subVec3(p0,p1,tmpVec3a$1);math.subVec3(p2,p1,tmpVec3b$1);if(math.lenVec3(tmpVec3a$1)>0&&math.lenVec3(tmpVec3b$1)>0){math.normalizeVec3(tmpVec3a$1);math.normalizeVec3(tmpVec3b$1);this._angle=Math.abs(math.angleVec3(tmpVec3a$1,tmpVec3b$1))*math.RADTODEG;this._angleLabel.setText(this._labelStringFormat(this._angle));}else{this._angle=undefined;this._angleLabel.setText("");}}/**
25671
25671
  * Sets whether this AngleMeasurement indicates that its measurement is approximate.
25672
25672
  *
25673
25673
  * This is ````true```` by default.
@@ -25784,7 +25784,13 @@ primitive:"triangles",positions:[1,1,1,-1,1,1,-1,-1,1,1,-1,1,// v0-v1-v2-v3 fron
25784
25784
  * @type {Boolean}
25785
25785
  */function get(){return this._clickable.get();}/**
25786
25786
  * @private
25787
- */,set:function set(value){var _this114=this;this._clickable.set(!!value);this._drawables.forEach(function(d){return d.setClickable(_this114._clickable.get());});}},{key:"destroy",value:function destroy(){this._cleanups.forEach(function(cleanup){return cleanup();});_get(_getPrototypeOf(AngleMeasurement.prototype),"destroy",this).call(this);}}]);return AngleMeasurement;}(Component);/**
25787
+ */,set:function set(value){var _this114=this;this._clickable.set(!!value);this._drawables.forEach(function(d){return d.setClickable(_this114._clickable.get());});}/**
25788
+ * Gets the function that formats the angle label's text.
25789
+ *
25790
+ * By default, this function formats the angle with two decimal places.
25791
+ */},{key:"labelStringFormat",get:function get(){return this._labelStringFormat;}/**
25792
+ * Sets the function that formats the angle label's text.
25793
+ */,set:function set(value){this._labelStringFormat=value;this._update();}},{key:"destroy",value:function destroy(){this._cleanups.forEach(function(cleanup){return cleanup();});_get(_getPrototypeOf(AngleMeasurement.prototype),"destroy",this).call(this);}}]);return AngleMeasurement;}(Component);/**
25788
25794
  * Creates {@link AngleMeasurement}s in an {@link AngleMeasurementsPlugin} from user input.
25789
25795
  *
25790
25796
  * @interface
@@ -27315,7 +27321,7 @@ origin:eye,direction:look});look=hit?hit.worldPos:math.addVec3(eye,look,tempVec3
27315
27321
  */function DistanceMeasurement(plugin){var _this131;var cfg=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,DistanceMeasurement);var scene=plugin.viewer.scene;_this131=_super143.call(this,scene,cfg);/**
27316
27322
  * The {@link DistanceMeasurementsPlugin} that owns this DistanceMeasurement.
27317
27323
  * @type {DistanceMeasurementsPlugin}
27318
- */_this131.plugin=plugin;var container=cfg.container;if(!container){throw"config missing: container";}_this131._color=cfg.color||plugin.defaultColor;var channel=function channel(v,defaultIfUndefined){var listeners=[];var value=v!==undefined?Boolean(v):defaultIfUndefined;return{reg:function reg(l){return listeners.push(l);},get:function get(){return value;},set:function set(v){value=v!==undefined?Boolean(v):defaultIfUndefined;listeners.forEach(function(l){return l(value);});}};};_this131._visible=channel(cfg.visible,plugin.defaultVisible);_this131._originVisible=channel(cfg.originVisible,plugin.defaultOriginVisible);_this131._targetVisible=channel(cfg.targetVisible,plugin.defaultTargetVisible);_this131._axisVisible=channel(cfg.axisVisible,plugin.defaultAxisVisible);_this131._xAxisVisible=channel(cfg.xAxisVisible,plugin.defaultAxisVisible);_this131._yAxisVisible=channel(cfg.yAxisVisible,plugin.defaultAxisVisible);_this131._zAxisVisible=channel(cfg.zAxisVisible,plugin.defaultAxisVisible);_this131._axisEnabled=channel(true,plugin.defaultAxisVisible);_this131._wireVisible=channel(cfg.wireVisible,plugin.defaultWireVisible);_this131._xLabelEnabled=channel(cfg.xLabelEnabled,plugin.defaultXLabelEnabled);_this131._yLabelEnabled=channel(cfg.yLabelEnabled,plugin.defaultYLabelEnabled);_this131._zLabelEnabled=channel(cfg.zLabelEnabled,plugin.defaultZLabelEnabled);_this131._lengthLabelEnabled=channel(cfg.lengthLabelEnabled,plugin.defaultLengthLabelEnabled);_this131._labelsVisible=channel(cfg.labelsVisible,plugin.defaultLabelsVisible);_this131._clickable=channel(false,false);_this131._labelsOnWires=channel(cfg.labelsOnWires,plugin.defaultLabelsOnWires);_this131._useRotationAdjustment=channel(cfg.useRotationAdjustment,plugin.useRotationAdjustment);_this131._axesBasis=math.identityMat4();_this131.approximate=cfg.approximate;var canvas=scene.canvas.canvas;var onMouseOver=cfg.onMouseOver?function(event){cfg.onMouseOver(event,_assertThisInitialized(_this131));canvas.dispatchEvent(new MouseEvent('mouseover',event));}:null;var onMouseLeave=cfg.onMouseLeave?function(event){cfg.onMouseLeave(event,_assertThisInitialized(_this131));canvas.dispatchEvent(new MouseEvent('mouseleave',event));}:null;var onContextMenu=cfg.onContextMenu?function(event){cfg.onContextMenu(event,_assertThisInitialized(_this131));}:null;var onMouseDown=function onMouseDown(event){return canvas.dispatchEvent(new MouseEvent('mousedown',event));};var onMouseUp=function onMouseUp(event){return canvas.dispatchEvent(new MouseEvent('mouseup',event));};var onMouseMove=function onMouseMove(event){return canvas.dispatchEvent(new MouseEvent('mousemove',event));};var onMouseWheel=function onMouseWheel(event){return canvas.dispatchEvent(new WheelEvent('wheel',event));};_this131._cleanups=[];["units","scale"].forEach(function(evt){var handler=scene.metrics.on("units",function(){return _this131._update();});_this131._cleanups.push(function(){return scene.metrics.off(handler);});});_this131._drawables=[];var registerDrawable=function registerDrawable(drawable,visibilityChannels){var updateVisibility=function updateVisibility(){return drawable.setVisible(visibilityChannels.every(function(ch){return ch.get();}));};visibilityChannels.forEach(function(ch){return ch.reg(updateVisibility);});_this131._drawables.push(drawable);_this131._cleanups.push(function(){return drawable.destroy();});};var makeWire=function makeWire(color,thickness,visibilityChannels){var wire=new Wire3D(scene,container,{color:color,thickness:thickness,thicknessClickable:6,zIndex:plugin.zIndex!==undefined?plugin.zIndex+1:undefined,onMouseOver:onMouseOver,onMouseLeave:onMouseLeave,onMouseWheel:onMouseWheel,onMouseDown:onMouseDown,onMouseUp:onMouseUp,onMouseMove:onMouseMove,onContextMenu:onContextMenu});registerDrawable(wire,visibilityChannels);return{setEnds:function setEnds(p0,p1){return wire.setEnds(p0,p1);},setColor:function setColor(value){return wire.setColor(value);}};};_this131._lengthWire=makeWire(_this131._color,2,[_this131._visible,_this131._wireVisible]);_this131._xAxisWire=makeWire("red",1,[_this131._visible,_this131._axisEnabled,_this131._axisVisible,_this131._xAxisVisible]);_this131._yAxisWire=makeWire("green",1,[_this131._visible,_this131._axisEnabled,_this131._axisVisible,_this131._yAxisVisible]);_this131._zAxisWire=makeWire("blue",1,[_this131._visible,_this131._axisEnabled,_this131._axisVisible,_this131._zAxisVisible]);var makeLabel=function makeLabel(color,zIndexOffset,visibilityChannels){var label=new Label3D(scene,container,{fillColor:color,zIndex:plugin.zIndex!==undefined?plugin.zIndex+zIndexOffset:undefined,onMouseOver:onMouseOver,onMouseLeave:onMouseLeave,onMouseWheel:onMouseWheel,onMouseDown:onMouseDown,onMouseUp:onMouseUp,onMouseMove:onMouseMove,onContextMenu:onContextMenu});registerDrawable(label,visibilityChannels);return{setFillColor:function setFillColor(value){return label.setFillColor(value);},setPosOnWire:function setPosOnWire(p0,p1,offset,labelMinAxisLength){return label.setPosOnWire(p0,p1,offset,labelMinAxisLength);},setPosBetween:function setPosBetween(p0,p1,p2){return label.setPosBetween(p0,p1,p2);},setText:function setText(str){return label.setText(str.replace(/ /g,"&nbsp;"));}};};_this131._lengthLabel=makeLabel(_this131._color,4,[_this131._visible,_this131._wireVisible,_this131._labelsVisible,_this131._clickable,_this131._axisEnabled,_this131._lengthLabelEnabled]);_this131._xAxisLabel=makeLabel("red",3,[_this131._visible,_this131._axisEnabled,_this131._axisVisible,_this131._xAxisVisible,_this131._labelsVisible,_this131._clickable,_this131._xLabelEnabled]);_this131._yAxisLabel=makeLabel("green",3,[_this131._visible,_this131._axisEnabled,_this131._axisVisible,_this131._yAxisVisible,_this131._labelsVisible,_this131._clickable,_this131._yLabelEnabled]);_this131._zAxisLabel=makeLabel("blue",3,[_this131._visible,_this131._axisEnabled,_this131._axisVisible,_this131._zAxisVisible,_this131._labelsVisible,_this131._clickable,_this131._zLabelEnabled]);var makeDot=function makeDot(cfg,visibilityChannels){var dot=new Dot3D(scene,cfg,container,{fillColor:_this131._color,zIndex:plugin.zIndex!==undefined?plugin.zIndex+2:undefined,onMouseOver:onMouseOver,onMouseLeave:onMouseLeave,onMouseWheel:onMouseWheel,onMouseDown:onMouseDown,onMouseUp:onMouseUp,onMouseMove:onMouseMove,onContextMenu:onContextMenu});dot.on("worldPos",function(){return _this131._update();});registerDrawable(dot,visibilityChannels);return dot;};_this131._originDot=makeDot(cfg.origin,[_this131._visible,_this131._originVisible]);_this131._targetDot=makeDot(cfg.target,[_this131._visible,_this131._targetVisible]);_this131._update();return _this131;}_createClass(DistanceMeasurement,[{key:"_update",value:function _update(){var _this132=this;if(!this._targetDot){return;}var p0=this._originDot.worldPos;var p1=this._targetDot.worldPos;var axesBasis=this._axesBasis;var delta=math.subVec3(p1,p0,tmpVec3a);var factors=math.transformVec3(axesBasis,delta,delta);var measurementOrientationVertical=this._useRotationAdjustment.get()&&Math.abs(delta[1])>0;var setWireCoordinates=function setWireCoordinates(xEnd,zStart){var metrics=_this132.plugin.viewer.scene.metrics;var scale=metrics.scale;var unit=metrics.unitsInfo[metrics.units].abbrev;var setAxisLabelCoords=function setAxisLabelCoords(label,a,b,offsetIdx){if(_this132._labelsOnWires.get()){label.setPosOnWire(a,b,0,_this132.plugin.labelMinAxisLength);}else{label.setPosOnWire(p0,p1,offsetIdx*35,0);}};var unitStr=function unitStr(len){return(_this132._approximate?" ~ ":" = ")+len.toFixed(2)+unit;};_this132._xAxisWire.setEnds(p0,xEnd);setAxisLabelCoords(_this132._xAxisLabel,p0,xEnd,1);_this132._xAxisLabel.setText("X"+unitStr(math.distVec3(p0,xEnd)*scale));_this132._yAxisWire.setEnds(xEnd,zStart);setAxisLabelCoords(_this132._yAxisLabel,xEnd,zStart,2);_this132._yAxisLabel.setText("Y"+unitStr(math.distVec3(xEnd,zStart)*scale));_this132._zAxisWire.setEnds(zStart,p1);setAxisLabelCoords(_this132._zAxisLabel,zStart,p1,3);_this132._zAxisLabel.setText((measurementOrientationVertical?"":"Z")+unitStr(math.distVec3(zStart,p1)*scale));_this132._lengthWire.setEnds(p0,p1);setAxisLabelCoords(_this132._lengthLabel,p0,p1,0);_this132._length=math.distVec3(p0,p1)*scale;_this132._lengthLabel.setText(unitStr(_this132._length));};if(measurementOrientationVertical){tmpVec3c[0]=p0[0];tmpVec3c[1]=p1[1];tmpVec3c[2]=p0[2];setWireCoordinates(p0,tmpVec3c);}else{tmpVec3b[0]=p0[0]+axesBasis[0]*factors[0];tmpVec3b[1]=p0[1]+axesBasis[4]*factors[0];tmpVec3b[2]=p0[2]+axesBasis[8]*factors[0];tmpVec3c[0]=tmpVec3b[0]+axesBasis[1]*factors[1];tmpVec3c[1]=tmpVec3b[1]+axesBasis[5]*factors[1];tmpVec3c[2]=tmpVec3b[2]+axesBasis[9]*factors[1];setWireCoordinates(tmpVec3b,tmpVec3c);}}/**
27324
+ */_this131.plugin=plugin;var container=cfg.container;if(!container){throw"config missing: container";}_this131._color=cfg.color||plugin.defaultColor;var channel=function channel(v,defaultIfUndefined){var listeners=[];var value=v!==undefined?Boolean(v):defaultIfUndefined;return{reg:function reg(l){return listeners.push(l);},get:function get(){return value;},set:function set(v){value=v!==undefined?Boolean(v):defaultIfUndefined;listeners.forEach(function(l){return l(value);});}};};_this131._visible=channel(cfg.visible,plugin.defaultVisible);_this131._originVisible=channel(cfg.originVisible,plugin.defaultOriginVisible);_this131._targetVisible=channel(cfg.targetVisible,plugin.defaultTargetVisible);_this131._axisVisible=channel(cfg.axisVisible,plugin.defaultAxisVisible);_this131._xAxisVisible=channel(cfg.xAxisVisible,plugin.defaultAxisVisible);_this131._yAxisVisible=channel(cfg.yAxisVisible,plugin.defaultAxisVisible);_this131._zAxisVisible=channel(cfg.zAxisVisible,plugin.defaultAxisVisible);_this131._axisEnabled=channel(true,plugin.defaultAxisVisible);_this131._wireVisible=channel(cfg.wireVisible,plugin.defaultWireVisible);_this131._xLabelEnabled=channel(cfg.xLabelEnabled,plugin.defaultXLabelEnabled);_this131._yLabelEnabled=channel(cfg.yLabelEnabled,plugin.defaultYLabelEnabled);_this131._zLabelEnabled=channel(cfg.zLabelEnabled,plugin.defaultZLabelEnabled);_this131._lengthLabelEnabled=channel(cfg.lengthLabelEnabled,plugin.defaultLengthLabelEnabled);_this131._labelsVisible=channel(cfg.labelsVisible,plugin.defaultLabelsVisible);_this131._clickable=channel(false,false);_this131._labelsOnWires=channel(cfg.labelsOnWires,plugin.defaultLabelsOnWires);_this131._useRotationAdjustment=channel(cfg.useRotationAdjustment,plugin.useRotationAdjustment);_this131._axesBasis=math.identityMat4();_this131.approximate=cfg.approximate;_this131._labelStringFormat=function(len){var metrics=_this131.plugin.viewer.scene.metrics;var scale=metrics.scale;var unit=metrics.unitsInfo[metrics.units].abbrev;return(_this131.approximate?" ~ ":" = ")+(len*scale).toFixed(2)+unit;};var canvas=scene.canvas.canvas;var onMouseOver=cfg.onMouseOver?function(event){cfg.onMouseOver(event,_assertThisInitialized(_this131));canvas.dispatchEvent(new MouseEvent('mouseover',event));}:null;var onMouseLeave=cfg.onMouseLeave?function(event){cfg.onMouseLeave(event,_assertThisInitialized(_this131));canvas.dispatchEvent(new MouseEvent('mouseleave',event));}:null;var onContextMenu=cfg.onContextMenu?function(event){cfg.onContextMenu(event,_assertThisInitialized(_this131));}:null;var onMouseDown=function onMouseDown(event){return canvas.dispatchEvent(new MouseEvent('mousedown',event));};var onMouseUp=function onMouseUp(event){return canvas.dispatchEvent(new MouseEvent('mouseup',event));};var onMouseMove=function onMouseMove(event){return canvas.dispatchEvent(new MouseEvent('mousemove',event));};var onMouseWheel=function onMouseWheel(event){return canvas.dispatchEvent(new WheelEvent('wheel',event));};_this131._cleanups=[];["units","scale"].forEach(function(evt){var handler=scene.metrics.on("units",function(){return _this131._update();});_this131._cleanups.push(function(){return scene.metrics.off(handler);});});_this131._drawables=[];var registerDrawable=function registerDrawable(drawable,visibilityChannels){var updateVisibility=function updateVisibility(){return drawable.setVisible(visibilityChannels.every(function(ch){return ch.get();}));};visibilityChannels.forEach(function(ch){return ch.reg(updateVisibility);});_this131._drawables.push(drawable);_this131._cleanups.push(function(){return drawable.destroy();});};var makeWire=function makeWire(color,thickness,visibilityChannels){var wire=new Wire3D(scene,container,{color:color,thickness:thickness,thicknessClickable:6,zIndex:plugin.zIndex!==undefined?plugin.zIndex+1:undefined,onMouseOver:onMouseOver,onMouseLeave:onMouseLeave,onMouseWheel:onMouseWheel,onMouseDown:onMouseDown,onMouseUp:onMouseUp,onMouseMove:onMouseMove,onContextMenu:onContextMenu});registerDrawable(wire,visibilityChannels);return{setEnds:function setEnds(p0,p1){return wire.setEnds(p0,p1);},setColor:function setColor(value){return wire.setColor(value);}};};_this131._lengthWire=makeWire(_this131._color,2,[_this131._visible,_this131._wireVisible]);_this131._xAxisWire=makeWire("red",1,[_this131._visible,_this131._axisEnabled,_this131._axisVisible,_this131._xAxisVisible]);_this131._yAxisWire=makeWire("green",1,[_this131._visible,_this131._axisEnabled,_this131._axisVisible,_this131._yAxisVisible]);_this131._zAxisWire=makeWire("blue",1,[_this131._visible,_this131._axisEnabled,_this131._axisVisible,_this131._zAxisVisible]);var makeLabel=function makeLabel(color,zIndexOffset,visibilityChannels){var label=new Label3D(scene,container,{fillColor:color,zIndex:plugin.zIndex!==undefined?plugin.zIndex+zIndexOffset:undefined,onMouseOver:onMouseOver,onMouseLeave:onMouseLeave,onMouseWheel:onMouseWheel,onMouseDown:onMouseDown,onMouseUp:onMouseUp,onMouseMove:onMouseMove,onContextMenu:onContextMenu});registerDrawable(label,visibilityChannels);return{setFillColor:function setFillColor(value){return label.setFillColor(value);},setPosOnWire:function setPosOnWire(p0,p1,offset,labelMinAxisLength){return label.setPosOnWire(p0,p1,offset,labelMinAxisLength);},setPosBetween:function setPosBetween(p0,p1,p2){return label.setPosBetween(p0,p1,p2);},setText:function setText(str){return label.setText(str.replace(/ /g,"&nbsp;"));}};};_this131._lengthLabel=makeLabel(_this131._color,4,[_this131._visible,_this131._wireVisible,_this131._labelsVisible,_this131._clickable,_this131._axisEnabled,_this131._lengthLabelEnabled]);_this131._xAxisLabel=makeLabel("red",3,[_this131._visible,_this131._axisEnabled,_this131._axisVisible,_this131._xAxisVisible,_this131._labelsVisible,_this131._clickable,_this131._xLabelEnabled]);_this131._yAxisLabel=makeLabel("green",3,[_this131._visible,_this131._axisEnabled,_this131._axisVisible,_this131._yAxisVisible,_this131._labelsVisible,_this131._clickable,_this131._yLabelEnabled]);_this131._zAxisLabel=makeLabel("blue",3,[_this131._visible,_this131._axisEnabled,_this131._axisVisible,_this131._zAxisVisible,_this131._labelsVisible,_this131._clickable,_this131._zLabelEnabled]);var makeDot=function makeDot(cfg,visibilityChannels){var dot=new Dot3D(scene,cfg,container,{fillColor:_this131._color,zIndex:plugin.zIndex!==undefined?plugin.zIndex+2:undefined,onMouseOver:onMouseOver,onMouseLeave:onMouseLeave,onMouseWheel:onMouseWheel,onMouseDown:onMouseDown,onMouseUp:onMouseUp,onMouseMove:onMouseMove,onContextMenu:onContextMenu});dot.on("worldPos",function(){return _this131._update();});registerDrawable(dot,visibilityChannels);return dot;};_this131._originDot=makeDot(cfg.origin,[_this131._visible,_this131._originVisible]);_this131._targetDot=makeDot(cfg.target,[_this131._visible,_this131._targetVisible]);_this131._update();return _this131;}_createClass(DistanceMeasurement,[{key:"_update",value:function _update(){var _this132=this;if(!this._targetDot){return;}var p0=this._originDot.worldPos;var p1=this._targetDot.worldPos;var axesBasis=this._axesBasis;var delta=math.subVec3(p1,p0,tmpVec3a);var factors=math.transformVec3(axesBasis,delta,delta);var measurementOrientationVertical=this._useRotationAdjustment.get()&&Math.abs(delta[1])>0;var setWireCoordinates=function setWireCoordinates(xEnd,zStart){var metrics=_this132.plugin.viewer.scene.metrics;var scale=metrics.scale;metrics.unitsInfo[metrics.units].abbrev;var setAxisLabelCoords=function setAxisLabelCoords(label,a,b,offsetIdx){if(_this132._labelsOnWires.get()){label.setPosOnWire(a,b,0,_this132.plugin.labelMinAxisLength);}else{label.setPosOnWire(p0,p1,offsetIdx*35,0);}};_this132._xAxisWire.setEnds(p0,xEnd);setAxisLabelCoords(_this132._xAxisLabel,p0,xEnd,1);_this132._xAxisLabel.setText("X"+_this132._labelStringFormat(math.distVec3(p0,xEnd)));_this132._yAxisWire.setEnds(xEnd,zStart);setAxisLabelCoords(_this132._yAxisLabel,xEnd,zStart,2);_this132._yAxisLabel.setText("Y"+_this132._labelStringFormat(math.distVec3(xEnd,zStart)));_this132._zAxisWire.setEnds(zStart,p1);setAxisLabelCoords(_this132._zAxisLabel,zStart,p1,3);_this132._zAxisLabel.setText((measurementOrientationVertical?"":"Z")+_this132._labelStringFormat(math.distVec3(zStart,p1)));_this132._lengthWire.setEnds(p0,p1);setAxisLabelCoords(_this132._lengthLabel,p0,p1,0);var length=math.distVec3(p0,p1);_this132._length=length*scale;_this132._lengthLabel.setText(_this132._labelStringFormat(length));};if(measurementOrientationVertical){tmpVec3c[0]=p0[0];tmpVec3c[1]=p1[1];tmpVec3c[2]=p0[2];setWireCoordinates(p0,tmpVec3c);}else{tmpVec3b[0]=p0[0]+axesBasis[0]*factors[0];tmpVec3b[1]=p0[1]+axesBasis[4]*factors[0];tmpVec3b[2]=p0[2]+axesBasis[8]*factors[0];tmpVec3c[0]=tmpVec3b[0]+axesBasis[1]*factors[1];tmpVec3c[1]=tmpVec3b[1]+axesBasis[5]*factors[1];tmpVec3c[2]=tmpVec3b[2]+axesBasis[9]*factors[1];setWireCoordinates(tmpVec3b,tmpVec3c);}}/**
27319
27325
  * Sets the axes basis for the measurement.
27320
27326
  *
27321
27327
  * The value is a 4x4 matrix where each column-vector defines an axis and must have unit length.
@@ -27515,8 +27521,16 @@ origin:eye,direction:look});look=hit?hit.worldPos:math.addVec3(eye,look,tempVec3
27515
27521
  *
27516
27522
  * @type {Boolean}
27517
27523
  */function get(){return this._clickable.get();}/**
27524
+ * Sets the function to format unit strings.
27525
+ *
27526
+ * @type {Function}
27527
+ */,set:function set(value){var _this133=this;this._clickable.set(!!value);this._drawables.forEach(function(d){return d.setClickable(_this133._clickable.get());});}},{key:"labelStringFormat",get:/**
27528
+ * Gets the function to format unit strings.
27529
+ *
27530
+ * @type {Function}
27531
+ */function get(){return this._labelStringFormat;}/**
27518
27532
  * @private
27519
- */,set:function set(value){var _this133=this;this._clickable.set(!!value);this._drawables.forEach(function(d){return d.setClickable(_this133._clickable.get());});}},{key:"destroy",value:function destroy(){this._cleanups.forEach(function(cleanup){return cleanup();});_get(_getPrototypeOf(DistanceMeasurement.prototype),"destroy",this).call(this);}}]);return DistanceMeasurement;}(Component);/**
27533
+ */,set:function set(value){this._labelStringFormat=value;this._update();}},{key:"destroy",value:function destroy(){this._cleanups.forEach(function(cleanup){return cleanup();});_get(_getPrototypeOf(DistanceMeasurement.prototype),"destroy",this).call(this);}}]);return DistanceMeasurement;}(Component);/**
27520
27534
  * Creates {@link DistanceMeasurement}s in a {@link DistanceMeasurementsPlugin} from user input.
27521
27535
  *
27522
27536
  * @interface