@xeokit/xeokit-sdk 2.3.4 → 2.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/xeokit-sdk.cjs.js
CHANGED
|
@@ -81198,6 +81198,9 @@ class DistanceMeasurement extends Component {
|
|
|
81198
81198
|
this.targetVisible = cfg.targetVisible;
|
|
81199
81199
|
this.wireVisible = cfg.wireVisible;
|
|
81200
81200
|
this.axisVisible = cfg.axisVisible;
|
|
81201
|
+
this.xAxisVisible = cfg.xAxisVisible;
|
|
81202
|
+
this.yAxisVisible = cfg.yAxisVisible;
|
|
81203
|
+
this.zAxisVisible = cfg.zAxisVisible;
|
|
81201
81204
|
this.labelsVisible = cfg.labelsVisible;
|
|
81202
81205
|
}
|
|
81203
81206
|
|
|
@@ -81363,9 +81366,11 @@ class DistanceMeasurement extends Component {
|
|
|
81363
81366
|
|
|
81364
81367
|
this._originDot.setVisible(this._visible && this._originVisible);
|
|
81365
81368
|
this._targetDot.setVisible(this._visible && this._targetVisible);
|
|
81366
|
-
|
|
81367
|
-
this.
|
|
81368
|
-
this.
|
|
81369
|
+
|
|
81370
|
+
this._xAxisWire.setVisible(this.axisVisible && this.xAxisVisible);
|
|
81371
|
+
this._yAxisWire.setVisible(this.axisVisible && this.yAxisVisible);
|
|
81372
|
+
this._zAxisWire.setVisible(this.axisVisible && this.zAxisVisible);
|
|
81373
|
+
|
|
81369
81374
|
this._lengthWire.setVisible(this.wireVisible);
|
|
81370
81375
|
this._lengthLabel.setCulled(!this.wireVisible);
|
|
81371
81376
|
|
|
@@ -81535,12 +81540,12 @@ class DistanceMeasurement extends Component {
|
|
|
81535
81540
|
value = value !== undefined ? Boolean(value) : this.plugin.defaultAxisVisible;
|
|
81536
81541
|
this._axisEnabled = value;
|
|
81537
81542
|
var axisVisible = this._visible && this._axisVisible && this._axisEnabled;
|
|
81538
|
-
this._xAxisWire.setVisible(axisVisible);
|
|
81539
|
-
this._yAxisWire.setVisible(axisVisible);
|
|
81540
|
-
this._zAxisWire.setVisible(axisVisible);
|
|
81541
|
-
this._xAxisLabel.setVisible(axisVisible && !this._xAxisLabelCulled);
|
|
81542
|
-
this._yAxisLabel.setVisible(axisVisible && !this._yAxisLabelCulled);
|
|
81543
|
-
this._zAxisLabel.setVisible(axisVisible && !this._zAxisLabelCulled);
|
|
81543
|
+
this._xAxisWire.setVisible(axisVisible && this._xAxisVisible);
|
|
81544
|
+
this._yAxisWire.setVisible(axisVisible && this._yAxisVisible);
|
|
81545
|
+
this._zAxisWire.setVisible(axisVisible && this._zAxisVisible);
|
|
81546
|
+
this._xAxisLabel.setVisible(axisVisible && !this._xAxisLabelCulled&& this._xAxisVisible);
|
|
81547
|
+
this._yAxisLabel.setVisible(axisVisible && !this._yAxisLabelCulled&& this._xAxisVisible);
|
|
81548
|
+
this._zAxisLabel.setVisible(axisVisible && !this._zAxisLabelCulled&& this._xAxisVisible);
|
|
81544
81549
|
this._cpDirty = true;
|
|
81545
81550
|
this._needUpdate();
|
|
81546
81551
|
}
|
|
@@ -81567,12 +81572,12 @@ class DistanceMeasurement extends Component {
|
|
|
81567
81572
|
value = value !== undefined ? Boolean(value) : this.plugin.defaultAxisVisible;
|
|
81568
81573
|
this._axisVisible = value;
|
|
81569
81574
|
var axisVisible = this._visible && this._axisVisible && this._axisEnabled;
|
|
81570
|
-
this._xAxisWire.setVisible(axisVisible);
|
|
81571
|
-
this._yAxisWire.setVisible(axisVisible);
|
|
81572
|
-
this._zAxisWire.setVisible(axisVisible);
|
|
81573
|
-
this._xAxisLabel.setVisible(axisVisible && !this._xAxisLabelCulled);
|
|
81574
|
-
this._yAxisLabel.setVisible(axisVisible && !this._yAxisLabelCulled);
|
|
81575
|
-
this._zAxisLabel.setVisible(axisVisible && !this._zAxisLabelCulled);
|
|
81575
|
+
this._xAxisWire.setVisible(axisVisible && this._xAxisVisible);
|
|
81576
|
+
this._yAxisWire.setVisible(axisVisible && this._yAxisVisible);
|
|
81577
|
+
this._zAxisWire.setVisible(axisVisible && this._zAxisVisible);
|
|
81578
|
+
this._xAxisLabel.setVisible(axisVisible && !this._xAxisLabelCulled&& this._xAxisVisible);
|
|
81579
|
+
this._yAxisLabel.setVisible(axisVisible && !this._yAxisLabelCulled&& this._yAxisVisible);
|
|
81580
|
+
this._zAxisLabel.setVisible(axisVisible && !this._zAxisLabelCulled&& this._zAxisVisible);
|
|
81576
81581
|
this._cpDirty = true;
|
|
81577
81582
|
this._needUpdate();
|
|
81578
81583
|
}
|
package/dist/xeokit-sdk.es.js
CHANGED
|
@@ -81194,6 +81194,9 @@ class DistanceMeasurement extends Component {
|
|
|
81194
81194
|
this.targetVisible = cfg.targetVisible;
|
|
81195
81195
|
this.wireVisible = cfg.wireVisible;
|
|
81196
81196
|
this.axisVisible = cfg.axisVisible;
|
|
81197
|
+
this.xAxisVisible = cfg.xAxisVisible;
|
|
81198
|
+
this.yAxisVisible = cfg.yAxisVisible;
|
|
81199
|
+
this.zAxisVisible = cfg.zAxisVisible;
|
|
81197
81200
|
this.labelsVisible = cfg.labelsVisible;
|
|
81198
81201
|
}
|
|
81199
81202
|
|
|
@@ -81359,9 +81362,11 @@ class DistanceMeasurement extends Component {
|
|
|
81359
81362
|
|
|
81360
81363
|
this._originDot.setVisible(this._visible && this._originVisible);
|
|
81361
81364
|
this._targetDot.setVisible(this._visible && this._targetVisible);
|
|
81362
|
-
|
|
81363
|
-
this.
|
|
81364
|
-
this.
|
|
81365
|
+
|
|
81366
|
+
this._xAxisWire.setVisible(this.axisVisible && this.xAxisVisible);
|
|
81367
|
+
this._yAxisWire.setVisible(this.axisVisible && this.yAxisVisible);
|
|
81368
|
+
this._zAxisWire.setVisible(this.axisVisible && this.zAxisVisible);
|
|
81369
|
+
|
|
81365
81370
|
this._lengthWire.setVisible(this.wireVisible);
|
|
81366
81371
|
this._lengthLabel.setCulled(!this.wireVisible);
|
|
81367
81372
|
|
|
@@ -81531,12 +81536,12 @@ class DistanceMeasurement extends Component {
|
|
|
81531
81536
|
value = value !== undefined ? Boolean(value) : this.plugin.defaultAxisVisible;
|
|
81532
81537
|
this._axisEnabled = value;
|
|
81533
81538
|
var axisVisible = this._visible && this._axisVisible && this._axisEnabled;
|
|
81534
|
-
this._xAxisWire.setVisible(axisVisible);
|
|
81535
|
-
this._yAxisWire.setVisible(axisVisible);
|
|
81536
|
-
this._zAxisWire.setVisible(axisVisible);
|
|
81537
|
-
this._xAxisLabel.setVisible(axisVisible && !this._xAxisLabelCulled);
|
|
81538
|
-
this._yAxisLabel.setVisible(axisVisible && !this._yAxisLabelCulled);
|
|
81539
|
-
this._zAxisLabel.setVisible(axisVisible && !this._zAxisLabelCulled);
|
|
81539
|
+
this._xAxisWire.setVisible(axisVisible && this._xAxisVisible);
|
|
81540
|
+
this._yAxisWire.setVisible(axisVisible && this._yAxisVisible);
|
|
81541
|
+
this._zAxisWire.setVisible(axisVisible && this._zAxisVisible);
|
|
81542
|
+
this._xAxisLabel.setVisible(axisVisible && !this._xAxisLabelCulled&& this._xAxisVisible);
|
|
81543
|
+
this._yAxisLabel.setVisible(axisVisible && !this._yAxisLabelCulled&& this._xAxisVisible);
|
|
81544
|
+
this._zAxisLabel.setVisible(axisVisible && !this._zAxisLabelCulled&& this._xAxisVisible);
|
|
81540
81545
|
this._cpDirty = true;
|
|
81541
81546
|
this._needUpdate();
|
|
81542
81547
|
}
|
|
@@ -81563,12 +81568,12 @@ class DistanceMeasurement extends Component {
|
|
|
81563
81568
|
value = value !== undefined ? Boolean(value) : this.plugin.defaultAxisVisible;
|
|
81564
81569
|
this._axisVisible = value;
|
|
81565
81570
|
var axisVisible = this._visible && this._axisVisible && this._axisEnabled;
|
|
81566
|
-
this._xAxisWire.setVisible(axisVisible);
|
|
81567
|
-
this._yAxisWire.setVisible(axisVisible);
|
|
81568
|
-
this._zAxisWire.setVisible(axisVisible);
|
|
81569
|
-
this._xAxisLabel.setVisible(axisVisible && !this._xAxisLabelCulled);
|
|
81570
|
-
this._yAxisLabel.setVisible(axisVisible && !this._yAxisLabelCulled);
|
|
81571
|
-
this._zAxisLabel.setVisible(axisVisible && !this._zAxisLabelCulled);
|
|
81571
|
+
this._xAxisWire.setVisible(axisVisible && this._xAxisVisible);
|
|
81572
|
+
this._yAxisWire.setVisible(axisVisible && this._yAxisVisible);
|
|
81573
|
+
this._zAxisWire.setVisible(axisVisible && this._zAxisVisible);
|
|
81574
|
+
this._xAxisLabel.setVisible(axisVisible && !this._xAxisLabelCulled&& this._xAxisVisible);
|
|
81575
|
+
this._yAxisLabel.setVisible(axisVisible && !this._yAxisLabelCulled&& this._yAxisVisible);
|
|
81576
|
+
this._zAxisLabel.setVisible(axisVisible && !this._zAxisLabelCulled&& this._zAxisVisible);
|
|
81572
81577
|
this._cpDirty = true;
|
|
81573
81578
|
this._needUpdate();
|
|
81574
81579
|
}
|
package/dist/xeokit-sdk.es5.js
CHANGED
|
@@ -19038,7 +19038,7 @@ origin:eye,direction:look});look=hit?hit.worldPos:math.addVec3(eye,look,tempVec3
|
|
|
19038
19038
|
});_this85._targetMarker.on("worldPos",function(value){_this85._targetWorld.set(value||[0,0,0]);_this85._wpDirty=true;_this85._needUpdate(0);// No lag
|
|
19039
19039
|
});_this85._onViewMatrix=scene.camera.on("viewMatrix",function(){_this85._vpDirty=true;_this85._needUpdate(0);// No lag
|
|
19040
19040
|
});_this85._onProjMatrix=scene.camera.on("projMatrix",function(){_this85._cpDirty=true;_this85._needUpdate();});_this85._onCanvasBoundary=scene.canvas.on("boundary",function(){_this85._cpDirty=true;_this85._needUpdate(0);// No lag
|
|
19041
|
-
});_this85._onMetricsUnits=scene.metrics.on("units",function(){_this85._cpDirty=true;_this85._needUpdate();});_this85._onMetricsScale=scene.metrics.on("scale",function(){_this85._cpDirty=true;_this85._needUpdate();});_this85._onMetricsOrigin=scene.metrics.on("origin",function(){_this85._cpDirty=true;_this85._needUpdate();});_this85.approximate=cfg.approximate;_this85.visible=cfg.visible;_this85.originVisible=cfg.originVisible;_this85.targetVisible=cfg.targetVisible;_this85.wireVisible=cfg.wireVisible;_this85.axisVisible=cfg.axisVisible;_this85.labelsVisible=cfg.labelsVisible;return _this85;}_createClass(DistanceMeasurement,[{key:"_update",value:function _update(){if(!this._visible){return;}var scene=this.plugin.viewer.scene;if(this._wpDirty){this._wp[0]=this._originWorld[0];this._wp[1]=this._originWorld[1];this._wp[2]=this._originWorld[2];this._wp[3]=1.0;this._wp[4]=this._targetWorld[0];this._wp[5]=this._originWorld[1];this._wp[6]=this._originWorld[2];this._wp[7]=1.0;this._wp[8]=this._targetWorld[0];this._wp[9]=this._targetWorld[1];this._wp[10]=this._originWorld[2];this._wp[11]=1.0;this._wp[12]=this._targetWorld[0];this._wp[13]=this._targetWorld[1];this._wp[14]=this._targetWorld[2];this._wp[15]=1.0;this._wpDirty=false;this._vpDirty=true;}if(this._vpDirty){math.transformPositions4(scene.camera.viewMatrix,this._wp,this._vp);this._vp[3]=1.0;this._vp[7]=1.0;this._vp[11]=1.0;this._vp[15]=1.0;this._vpDirty=false;this._cpDirty=true;}var near=-0.3;var vpz1=this._originMarker.viewPos[2];var vpz2=this._targetMarker.viewPos[2];if(vpz1>near||vpz2>near){this._xAxisLabel.setVisible(false);this._yAxisLabel.setVisible(false);this._zAxisLabel.setVisible(false);this._lengthLabel.setVisible(false);this._xAxisWire.setVisible(false);this._yAxisWire.setVisible(false);this._zAxisWire.setVisible(false);this._lengthWire.setVisible(false);this._originDot.setVisible(false);this._targetDot.setVisible(false);return;}if(this._cpDirty){math.transformPositions4(scene.camera.project.matrix,this._vp,this._pp);var pp=this._pp;var cp=this._cp;var canvas=scene.canvas.canvas;var offsets=canvas.getBoundingClientRect();var containerOffsets=this._container.getBoundingClientRect();var top=offsets.top-containerOffsets.top;var left=offsets.left-containerOffsets.left;var aabb=scene.canvas.boundary;var canvasWidth=aabb[2];var canvasHeight=aabb[3];var j=0;var metrics=this.plugin.viewer.scene.metrics;var _scale3=metrics.scale;var units=metrics.units;var unitInfo=metrics.unitsInfo[units];var unitAbbrev=unitInfo.abbrev;for(var i=0,len=pp.length;i<len;i+=4){cp[j]=left+Math.floor((1+pp[i+0]/pp[i+3])*canvasWidth/2);cp[j+1]=top+Math.floor((1-pp[i+1]/pp[i+3])*canvasHeight/2);j+=2;}this._originDot.setPos(cp[0],cp[1]);this._targetDot.setPos(cp[6],cp[7]);this._lengthWire.setStartAndEnd(cp[0],cp[1],cp[6],cp[7]);this._xAxisWire.setStartAndEnd(cp[0],cp[1],cp[2],cp[3]);this._yAxisWire.setStartAndEnd(cp[2],cp[3],cp[4],cp[5]);this._zAxisWire.setStartAndEnd(cp[4],cp[5],cp[6],cp[7]);if(!this.labelsVisible){this._lengthLabel.setCulled(true);this._xAxisLabel.setCulled(true);this._yAxisLabel.setCulled(true);this._zAxisLabel.setCulled(true);}else{this._lengthLabel.setPosOnWire(cp[0],cp[1],cp[6],cp[7]);this._xAxisLabel.setPosOnWire(cp[0],cp[1],cp[2],cp[3]);this._yAxisLabel.setPosOnWire(cp[2],cp[3],cp[4],cp[5]);this._zAxisLabel.setPosOnWire(cp[4],cp[5],cp[6],cp[7]);var tilde=this._approximate?" ~ ":" = ";this._length=Math.abs(math.lenVec3(math.subVec3(this._targetWorld,this._originWorld,distVec3)));this._lengthLabel.setText(tilde+(this._length*_scale3).toFixed(2)+unitAbbrev);var xAxisCanvasLength=Math.abs(lengthWire(cp[0],cp[1],cp[2],cp[3]));var yAxisCanvasLength=Math.abs(lengthWire(cp[2],cp[3],cp[4],cp[5]));var zAxisCanvasLength=Math.abs(lengthWire(cp[4],cp[5],cp[6],cp[7]));var labelMinAxisLength=this.plugin.labelMinAxisLength;this._xAxisLabelCulled=xAxisCanvasLength<labelMinAxisLength;this._yAxisLabelCulled=yAxisCanvasLength<labelMinAxisLength;this._zAxisLabelCulled=zAxisCanvasLength<labelMinAxisLength;if(!this._xAxisLabelCulled){this._xAxisLabel.setText(tilde+Math.abs((this._targetWorld[0]-this._originWorld[0])*_scale3).toFixed(2)+unitAbbrev);this._xAxisLabel.setCulled(!this.axisVisible);}else{this._xAxisLabel.setCulled(true);}if(!this._yAxisLabelCulled){this._yAxisLabel.setText(tilde+Math.abs((this._targetWorld[1]-this._originWorld[1])*_scale3).toFixed(2)+unitAbbrev);this._yAxisLabel.setCulled(!this.axisVisible);}else{this._yAxisLabel.setCulled(true);}if(!this._zAxisLabelCulled){this._zAxisLabel.setText(tilde+Math.abs((this._targetWorld[2]-this._originWorld[2])*_scale3).toFixed(2)+unitAbbrev);this._zAxisLabel.setCulled(!this.axisVisible);}else{this._zAxisLabel.setCulled(true);}}this._originDot.setVisible(this._visible&&this._originVisible);this._targetDot.setVisible(this._visible&&this._targetVisible);this._xAxisWire.setVisible(this.axisVisible);this._yAxisWire.setVisible(this.axisVisible);this._zAxisWire.setVisible(this.axisVisible);this._lengthWire.setVisible(this.wireVisible);this._lengthLabel.setCulled(!this.wireVisible);this._cpDirty=false;}}/**
|
|
19041
|
+
});_this85._onMetricsUnits=scene.metrics.on("units",function(){_this85._cpDirty=true;_this85._needUpdate();});_this85._onMetricsScale=scene.metrics.on("scale",function(){_this85._cpDirty=true;_this85._needUpdate();});_this85._onMetricsOrigin=scene.metrics.on("origin",function(){_this85._cpDirty=true;_this85._needUpdate();});_this85.approximate=cfg.approximate;_this85.visible=cfg.visible;_this85.originVisible=cfg.originVisible;_this85.targetVisible=cfg.targetVisible;_this85.wireVisible=cfg.wireVisible;_this85.axisVisible=cfg.axisVisible;_this85.xAxisVisible=cfg.xAxisVisible;_this85.yAxisVisible=cfg.yAxisVisible;_this85.zAxisVisible=cfg.zAxisVisible;_this85.labelsVisible=cfg.labelsVisible;return _this85;}_createClass(DistanceMeasurement,[{key:"_update",value:function _update(){if(!this._visible){return;}var scene=this.plugin.viewer.scene;if(this._wpDirty){this._wp[0]=this._originWorld[0];this._wp[1]=this._originWorld[1];this._wp[2]=this._originWorld[2];this._wp[3]=1.0;this._wp[4]=this._targetWorld[0];this._wp[5]=this._originWorld[1];this._wp[6]=this._originWorld[2];this._wp[7]=1.0;this._wp[8]=this._targetWorld[0];this._wp[9]=this._targetWorld[1];this._wp[10]=this._originWorld[2];this._wp[11]=1.0;this._wp[12]=this._targetWorld[0];this._wp[13]=this._targetWorld[1];this._wp[14]=this._targetWorld[2];this._wp[15]=1.0;this._wpDirty=false;this._vpDirty=true;}if(this._vpDirty){math.transformPositions4(scene.camera.viewMatrix,this._wp,this._vp);this._vp[3]=1.0;this._vp[7]=1.0;this._vp[11]=1.0;this._vp[15]=1.0;this._vpDirty=false;this._cpDirty=true;}var near=-0.3;var vpz1=this._originMarker.viewPos[2];var vpz2=this._targetMarker.viewPos[2];if(vpz1>near||vpz2>near){this._xAxisLabel.setVisible(false);this._yAxisLabel.setVisible(false);this._zAxisLabel.setVisible(false);this._lengthLabel.setVisible(false);this._xAxisWire.setVisible(false);this._yAxisWire.setVisible(false);this._zAxisWire.setVisible(false);this._lengthWire.setVisible(false);this._originDot.setVisible(false);this._targetDot.setVisible(false);return;}if(this._cpDirty){math.transformPositions4(scene.camera.project.matrix,this._vp,this._pp);var pp=this._pp;var cp=this._cp;var canvas=scene.canvas.canvas;var offsets=canvas.getBoundingClientRect();var containerOffsets=this._container.getBoundingClientRect();var top=offsets.top-containerOffsets.top;var left=offsets.left-containerOffsets.left;var aabb=scene.canvas.boundary;var canvasWidth=aabb[2];var canvasHeight=aabb[3];var j=0;var metrics=this.plugin.viewer.scene.metrics;var _scale3=metrics.scale;var units=metrics.units;var unitInfo=metrics.unitsInfo[units];var unitAbbrev=unitInfo.abbrev;for(var i=0,len=pp.length;i<len;i+=4){cp[j]=left+Math.floor((1+pp[i+0]/pp[i+3])*canvasWidth/2);cp[j+1]=top+Math.floor((1-pp[i+1]/pp[i+3])*canvasHeight/2);j+=2;}this._originDot.setPos(cp[0],cp[1]);this._targetDot.setPos(cp[6],cp[7]);this._lengthWire.setStartAndEnd(cp[0],cp[1],cp[6],cp[7]);this._xAxisWire.setStartAndEnd(cp[0],cp[1],cp[2],cp[3]);this._yAxisWire.setStartAndEnd(cp[2],cp[3],cp[4],cp[5]);this._zAxisWire.setStartAndEnd(cp[4],cp[5],cp[6],cp[7]);if(!this.labelsVisible){this._lengthLabel.setCulled(true);this._xAxisLabel.setCulled(true);this._yAxisLabel.setCulled(true);this._zAxisLabel.setCulled(true);}else{this._lengthLabel.setPosOnWire(cp[0],cp[1],cp[6],cp[7]);this._xAxisLabel.setPosOnWire(cp[0],cp[1],cp[2],cp[3]);this._yAxisLabel.setPosOnWire(cp[2],cp[3],cp[4],cp[5]);this._zAxisLabel.setPosOnWire(cp[4],cp[5],cp[6],cp[7]);var tilde=this._approximate?" ~ ":" = ";this._length=Math.abs(math.lenVec3(math.subVec3(this._targetWorld,this._originWorld,distVec3)));this._lengthLabel.setText(tilde+(this._length*_scale3).toFixed(2)+unitAbbrev);var xAxisCanvasLength=Math.abs(lengthWire(cp[0],cp[1],cp[2],cp[3]));var yAxisCanvasLength=Math.abs(lengthWire(cp[2],cp[3],cp[4],cp[5]));var zAxisCanvasLength=Math.abs(lengthWire(cp[4],cp[5],cp[6],cp[7]));var labelMinAxisLength=this.plugin.labelMinAxisLength;this._xAxisLabelCulled=xAxisCanvasLength<labelMinAxisLength;this._yAxisLabelCulled=yAxisCanvasLength<labelMinAxisLength;this._zAxisLabelCulled=zAxisCanvasLength<labelMinAxisLength;if(!this._xAxisLabelCulled){this._xAxisLabel.setText(tilde+Math.abs((this._targetWorld[0]-this._originWorld[0])*_scale3).toFixed(2)+unitAbbrev);this._xAxisLabel.setCulled(!this.axisVisible);}else{this._xAxisLabel.setCulled(true);}if(!this._yAxisLabelCulled){this._yAxisLabel.setText(tilde+Math.abs((this._targetWorld[1]-this._originWorld[1])*_scale3).toFixed(2)+unitAbbrev);this._yAxisLabel.setCulled(!this.axisVisible);}else{this._yAxisLabel.setCulled(true);}if(!this._zAxisLabelCulled){this._zAxisLabel.setText(tilde+Math.abs((this._targetWorld[2]-this._originWorld[2])*_scale3).toFixed(2)+unitAbbrev);this._zAxisLabel.setCulled(!this.axisVisible);}else{this._zAxisLabel.setCulled(true);}}this._originDot.setVisible(this._visible&&this._originVisible);this._targetDot.setVisible(this._visible&&this._targetVisible);this._xAxisWire.setVisible(this.axisVisible&&this.xAxisVisible);this._yAxisWire.setVisible(this.axisVisible&&this.yAxisVisible);this._zAxisWire.setVisible(this.axisVisible&&this.zAxisVisible);this._lengthWire.setVisible(this.wireVisible);this._lengthLabel.setCulled(!this.wireVisible);this._cpDirty=false;}}/**
|
|
19042
19042
|
* Sets whether this DistanceMeasurement indicates that its measurement is approximate.
|
|
19043
19043
|
*
|
|
19044
19044
|
* This is ````true```` by default.
|
|
@@ -19104,7 +19104,7 @@ origin:eye,direction:look});look=hit?hit.worldPos:math.addVec3(eye,look,tempVec3
|
|
|
19104
19104
|
* Wires are only shown if enabled and visible.
|
|
19105
19105
|
*
|
|
19106
19106
|
* @type {Boolean}
|
|
19107
|
-
*/,set:function set(value){value=value!==undefined?Boolean(value):this.plugin.defaultAxisVisible;this._axisEnabled=value;var axisVisible=this._visible&&this._axisVisible&&this._axisEnabled;this._xAxisWire.setVisible(axisVisible);this._yAxisWire.setVisible(axisVisible);this._zAxisWire.setVisible(axisVisible);this._xAxisLabel.setVisible(axisVisible&&!this._xAxisLabelCulled);this._yAxisLabel.setVisible(axisVisible&&!this._yAxisLabelCulled);this._zAxisLabel.setVisible(axisVisible&&!this._zAxisLabelCulled);this._cpDirty=true;this._needUpdate();}},{key:"axisVisible",get:/**
|
|
19107
|
+
*/,set:function set(value){value=value!==undefined?Boolean(value):this.plugin.defaultAxisVisible;this._axisEnabled=value;var axisVisible=this._visible&&this._axisVisible&&this._axisEnabled;this._xAxisWire.setVisible(axisVisible&&this._xAxisVisible);this._yAxisWire.setVisible(axisVisible&&this._yAxisVisible);this._zAxisWire.setVisible(axisVisible&&this._zAxisVisible);this._xAxisLabel.setVisible(axisVisible&&!this._xAxisLabelCulled&&this._xAxisVisible);this._yAxisLabel.setVisible(axisVisible&&!this._yAxisLabelCulled&&this._xAxisVisible);this._zAxisLabel.setVisible(axisVisible&&!this._zAxisLabelCulled&&this._xAxisVisible);this._cpDirty=true;this._needUpdate();}},{key:"axisVisible",get:/**
|
|
19108
19108
|
* Gets if the axis-aligned wires between {@link DistanceMeasurement#origin} and {@link DistanceMeasurement#target} are visible.
|
|
19109
19109
|
*
|
|
19110
19110
|
* Wires are only shown if enabled and visible.
|
|
@@ -19116,7 +19116,7 @@ origin:eye,direction:look});look=hit?hit.worldPos:math.addVec3(eye,look,tempVec3
|
|
|
19116
19116
|
* Wires are only shown if enabled and visible.
|
|
19117
19117
|
*
|
|
19118
19118
|
* @type {Boolean}
|
|
19119
|
-
*/,set:function set(value){value=value!==undefined?Boolean(value):this.plugin.defaultAxisVisible;this._axisVisible=value;var axisVisible=this._visible&&this._axisVisible&&this._axisEnabled;this._xAxisWire.setVisible(axisVisible);this._yAxisWire.setVisible(axisVisible);this._zAxisWire.setVisible(axisVisible);this._xAxisLabel.setVisible(axisVisible&&!this._xAxisLabelCulled);this._yAxisLabel.setVisible(axisVisible&&!this._yAxisLabelCulled);this._zAxisLabel.setVisible(axisVisible&&!this._zAxisLabelCulled);this._cpDirty=true;this._needUpdate();}},{key:"xAxisVisible",get:/**
|
|
19119
|
+
*/,set:function set(value){value=value!==undefined?Boolean(value):this.plugin.defaultAxisVisible;this._axisVisible=value;var axisVisible=this._visible&&this._axisVisible&&this._axisEnabled;this._xAxisWire.setVisible(axisVisible&&this._xAxisVisible);this._yAxisWire.setVisible(axisVisible&&this._yAxisVisible);this._zAxisWire.setVisible(axisVisible&&this._zAxisVisible);this._xAxisLabel.setVisible(axisVisible&&!this._xAxisLabelCulled&&this._xAxisVisible);this._yAxisLabel.setVisible(axisVisible&&!this._yAxisLabelCulled&&this._yAxisVisible);this._zAxisLabel.setVisible(axisVisible&&!this._zAxisLabelCulled&&this._zAxisVisible);this._cpDirty=true;this._needUpdate();}},{key:"xAxisVisible",get:/**
|
|
19120
19120
|
* Gets if the X-axis-aligned wires between {@link DistanceMeasurement#origin} and {@link DistanceMeasurement#target} are visible.
|
|
19121
19121
|
*
|
|
19122
19122
|
* Wires are only shown if enabled and visible.
|