@xeokit/xeokit-sdk 2.3.0-beta-26 → 2.3.0-beta-29
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 +37 -28
- package/dist/xeokit-sdk.es.js +37 -28
- package/dist/xeokit-sdk.min.cjs.js +1 -1
- package/dist/xeokit-sdk.min.es.js +1 -1
- package/package.json +1 -1
- package/dist/xeokit-sdk.umd.js +0 -163848
package/dist/xeokit-sdk.cjs.js
CHANGED
|
@@ -8873,7 +8873,7 @@ function worldToRTCPos(worldPos, rtcCenter, rtcPos) {
|
|
|
8873
8873
|
* ````false````, we can safely ignore the data returned in ````rtcPositions```` and ````rtcCenter````,
|
|
8874
8874
|
* since ````rtcCenter```` will equal ````[0,0,0]````, and ````rtcPositions```` will contain identical values to ````positions````.
|
|
8875
8875
|
*/
|
|
8876
|
-
function worldToRTCPositions(worldPositions, rtcPositions, rtcCenter, cellSize =
|
|
8876
|
+
function worldToRTCPositions(worldPositions, rtcPositions, rtcCenter, cellSize = 1000) {
|
|
8877
8877
|
|
|
8878
8878
|
const center = math.getPositionsCenter(worldPositions, tempVec3a$14);
|
|
8879
8879
|
|
|
@@ -9600,21 +9600,34 @@ class AngleMeasurement extends Component {
|
|
|
9600
9600
|
|
|
9601
9601
|
this._originDot = new Dot(this._container, {
|
|
9602
9602
|
fillColor: this._color,
|
|
9603
|
-
zIndex: plugin.zIndex +
|
|
9603
|
+
zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 2: undefined
|
|
9604
9604
|
});
|
|
9605
9605
|
this._cornerDot = new Dot(this._container, {
|
|
9606
9606
|
fillColor: this._color,
|
|
9607
|
-
zIndex: plugin.zIndex +
|
|
9607
|
+
zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 2: undefined
|
|
9608
9608
|
});
|
|
9609
9609
|
this._targetDot = new Dot(this._container, {
|
|
9610
9610
|
fillColor: this._color,
|
|
9611
|
-
zIndex: plugin.zIndex +
|
|
9611
|
+
zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 2: undefined
|
|
9612
9612
|
});
|
|
9613
9613
|
|
|
9614
|
-
this._originWire = new Wire(this._container, {
|
|
9615
|
-
|
|
9614
|
+
this._originWire = new Wire(this._container, {
|
|
9615
|
+
color: this._color || "blue",
|
|
9616
|
+
thickness: 1,
|
|
9617
|
+
zIndex: plugin.zIndex
|
|
9618
|
+
});
|
|
9619
|
+
this._targetWire = new Wire(this._container, {
|
|
9620
|
+
color: this._color || "red",
|
|
9621
|
+
thickness: 1,
|
|
9622
|
+
zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 1: undefined
|
|
9623
|
+
});
|
|
9616
9624
|
|
|
9617
|
-
this._angleLabel = new Label(this._container, {
|
|
9625
|
+
this._angleLabel = new Label(this._container, {
|
|
9626
|
+
fillColor: this._color || "#00BBFF",
|
|
9627
|
+
prefix: "",
|
|
9628
|
+
text: "",
|
|
9629
|
+
zIndex: plugin.zIndex + 2
|
|
9630
|
+
});
|
|
9618
9631
|
|
|
9619
9632
|
this._wpDirty = false;
|
|
9620
9633
|
this._vpDirty = false;
|
|
@@ -10631,7 +10644,7 @@ class AngleMeasurementsPlugin extends Plugin {
|
|
|
10631
10644
|
this._measurements = {};
|
|
10632
10645
|
|
|
10633
10646
|
this.defaultColor = cfg.defaultColor;
|
|
10634
|
-
this.zIndex = cfg.zIndex;
|
|
10647
|
+
this.zIndex = cfg.zIndex || 10000;
|
|
10635
10648
|
}
|
|
10636
10649
|
|
|
10637
10650
|
/**
|
|
@@ -12270,13 +12283,7 @@ class Canvas extends Component {
|
|
|
12270
12283
|
boundary[2] = newWidth;
|
|
12271
12284
|
boundary[3] = newHeight;
|
|
12272
12285
|
|
|
12273
|
-
|
|
12274
|
-
* Fired whenever this Canvas's {@link Canvas/boundary} property changes.
|
|
12275
|
-
*
|
|
12276
|
-
* @event boundary
|
|
12277
|
-
* @param value The property's new value
|
|
12278
|
-
*/
|
|
12279
|
-
if (!newResolutionScale || newCanvasSize) {
|
|
12286
|
+
if (!newResolutionScale) {
|
|
12280
12287
|
this.fire("boundary", boundary);
|
|
12281
12288
|
}
|
|
12282
12289
|
|
|
@@ -46189,64 +46196,64 @@ class DistanceMeasurement extends Component {
|
|
|
46189
46196
|
|
|
46190
46197
|
this._originDot = new Dot(this._container, {
|
|
46191
46198
|
fillColor: this._color,
|
|
46192
|
-
zIndex: plugin.zIndex !== undefined ? plugin.zIndex +
|
|
46199
|
+
zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 2: undefined
|
|
46193
46200
|
});
|
|
46194
46201
|
|
|
46195
46202
|
this._targetDot = new Dot(this._container, {
|
|
46196
46203
|
fillColor: this._color,
|
|
46197
|
-
zIndex: plugin.zIndex !== undefined ? plugin.zIndex +
|
|
46204
|
+
zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 2: undefined
|
|
46198
46205
|
});
|
|
46199
46206
|
|
|
46200
46207
|
this._lengthWire = new Wire(this._container, {
|
|
46201
46208
|
color: this._color,
|
|
46202
46209
|
thickness: 2,
|
|
46203
|
-
zIndex: plugin.zIndex
|
|
46210
|
+
zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 1: undefined
|
|
46204
46211
|
});
|
|
46205
46212
|
|
|
46206
46213
|
this._xAxisWire = new Wire(this._container, {
|
|
46207
46214
|
color: "red",
|
|
46208
46215
|
thickness: 1,
|
|
46209
|
-
zIndex: plugin.zIndex
|
|
46216
|
+
zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 1: undefined
|
|
46210
46217
|
});
|
|
46211
46218
|
|
|
46212
46219
|
this._yAxisWire = new Wire(this._container, {
|
|
46213
46220
|
color: "green",
|
|
46214
46221
|
thickness: 1,
|
|
46215
|
-
zIndex: plugin.zIndex
|
|
46222
|
+
zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 1: undefined
|
|
46216
46223
|
});
|
|
46217
46224
|
|
|
46218
46225
|
this._zAxisWire = new Wire(this._container, {
|
|
46219
46226
|
color: "blue",
|
|
46220
46227
|
thickness: 1,
|
|
46221
|
-
zIndex: plugin.zIndex
|
|
46228
|
+
zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 1: undefined
|
|
46222
46229
|
});
|
|
46223
46230
|
|
|
46224
46231
|
this._lengthLabel = new Label(this._container, {
|
|
46225
46232
|
fillColor: this._color,
|
|
46226
46233
|
prefix: "",
|
|
46227
46234
|
text: "",
|
|
46228
|
-
zIndex: plugin.zIndex !== undefined ? plugin.zIndex +
|
|
46235
|
+
zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 4: undefined
|
|
46229
46236
|
});
|
|
46230
46237
|
|
|
46231
46238
|
this._xAxisLabel = new Label(this._container, {
|
|
46232
46239
|
fillColor: "red",
|
|
46233
46240
|
prefix: "X",
|
|
46234
46241
|
text: "",
|
|
46235
|
-
zIndex: plugin.zIndex !== undefined ? plugin.zIndex +
|
|
46242
|
+
zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 3: undefined
|
|
46236
46243
|
});
|
|
46237
46244
|
|
|
46238
46245
|
this._yAxisLabel = new Label(this._container, {
|
|
46239
46246
|
fillColor: "green",
|
|
46240
46247
|
prefix: "Y",
|
|
46241
46248
|
text: "",
|
|
46242
|
-
zIndex: plugin.zIndex !== undefined ? plugin.zIndex +
|
|
46249
|
+
zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 3: undefined
|
|
46243
46250
|
});
|
|
46244
46251
|
|
|
46245
46252
|
this._zAxisLabel = new Label(this._container, {
|
|
46246
46253
|
fillColor: "blue",
|
|
46247
46254
|
prefix: "Z",
|
|
46248
46255
|
text: "",
|
|
46249
|
-
zIndex: plugin.zIndex !== undefined ? plugin.zIndex +
|
|
46256
|
+
zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 3: undefined
|
|
46250
46257
|
});
|
|
46251
46258
|
|
|
46252
46259
|
this._wpDirty = false;
|
|
@@ -87026,7 +87033,7 @@ class DistanceMeasurementsPlugin extends Plugin {
|
|
|
87026
87033
|
this.defaultWireVisible = cfg.defaultWireVisible !== false;
|
|
87027
87034
|
this.defaultAxisVisible = cfg.defaultAxisVisible !== false;
|
|
87028
87035
|
this.defaultColor = cfg.defaultColor !== undefined ? cfg.defaultColor : "#00BBFF";
|
|
87029
|
-
this.zIndex = cfg.zIndex;
|
|
87036
|
+
this.zIndex = cfg.zIndex || 10000;
|
|
87030
87037
|
}
|
|
87031
87038
|
|
|
87032
87039
|
/**
|
|
@@ -95480,11 +95487,13 @@ function loadNode(ctx, node, matrix) {
|
|
|
95480
95487
|
}
|
|
95481
95488
|
if (createEntity) {
|
|
95482
95489
|
sceneModel.createEntity(utils.apply(createEntity, {
|
|
95483
|
-
meshIds: meshIds
|
|
95490
|
+
meshIds: meshIds,
|
|
95491
|
+
isObject: true
|
|
95484
95492
|
}));
|
|
95485
95493
|
} else {
|
|
95486
95494
|
sceneModel.createEntity({
|
|
95487
|
-
meshIds: meshIds
|
|
95495
|
+
meshIds: meshIds,
|
|
95496
|
+
isObject: true
|
|
95488
95497
|
});
|
|
95489
95498
|
}
|
|
95490
95499
|
}
|
package/dist/xeokit-sdk.es.js
CHANGED
|
@@ -8869,7 +8869,7 @@ function worldToRTCPos(worldPos, rtcCenter, rtcPos) {
|
|
|
8869
8869
|
* ````false````, we can safely ignore the data returned in ````rtcPositions```` and ````rtcCenter````,
|
|
8870
8870
|
* since ````rtcCenter```` will equal ````[0,0,0]````, and ````rtcPositions```` will contain identical values to ````positions````.
|
|
8871
8871
|
*/
|
|
8872
|
-
function worldToRTCPositions(worldPositions, rtcPositions, rtcCenter, cellSize =
|
|
8872
|
+
function worldToRTCPositions(worldPositions, rtcPositions, rtcCenter, cellSize = 1000) {
|
|
8873
8873
|
|
|
8874
8874
|
const center = math.getPositionsCenter(worldPositions, tempVec3a$14);
|
|
8875
8875
|
|
|
@@ -9596,21 +9596,34 @@ class AngleMeasurement extends Component {
|
|
|
9596
9596
|
|
|
9597
9597
|
this._originDot = new Dot(this._container, {
|
|
9598
9598
|
fillColor: this._color,
|
|
9599
|
-
zIndex: plugin.zIndex +
|
|
9599
|
+
zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 2: undefined
|
|
9600
9600
|
});
|
|
9601
9601
|
this._cornerDot = new Dot(this._container, {
|
|
9602
9602
|
fillColor: this._color,
|
|
9603
|
-
zIndex: plugin.zIndex +
|
|
9603
|
+
zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 2: undefined
|
|
9604
9604
|
});
|
|
9605
9605
|
this._targetDot = new Dot(this._container, {
|
|
9606
9606
|
fillColor: this._color,
|
|
9607
|
-
zIndex: plugin.zIndex +
|
|
9607
|
+
zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 2: undefined
|
|
9608
9608
|
});
|
|
9609
9609
|
|
|
9610
|
-
this._originWire = new Wire(this._container, {
|
|
9611
|
-
|
|
9610
|
+
this._originWire = new Wire(this._container, {
|
|
9611
|
+
color: this._color || "blue",
|
|
9612
|
+
thickness: 1,
|
|
9613
|
+
zIndex: plugin.zIndex
|
|
9614
|
+
});
|
|
9615
|
+
this._targetWire = new Wire(this._container, {
|
|
9616
|
+
color: this._color || "red",
|
|
9617
|
+
thickness: 1,
|
|
9618
|
+
zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 1: undefined
|
|
9619
|
+
});
|
|
9612
9620
|
|
|
9613
|
-
this._angleLabel = new Label(this._container, {
|
|
9621
|
+
this._angleLabel = new Label(this._container, {
|
|
9622
|
+
fillColor: this._color || "#00BBFF",
|
|
9623
|
+
prefix: "",
|
|
9624
|
+
text: "",
|
|
9625
|
+
zIndex: plugin.zIndex + 2
|
|
9626
|
+
});
|
|
9614
9627
|
|
|
9615
9628
|
this._wpDirty = false;
|
|
9616
9629
|
this._vpDirty = false;
|
|
@@ -10627,7 +10640,7 @@ class AngleMeasurementsPlugin extends Plugin {
|
|
|
10627
10640
|
this._measurements = {};
|
|
10628
10641
|
|
|
10629
10642
|
this.defaultColor = cfg.defaultColor;
|
|
10630
|
-
this.zIndex = cfg.zIndex;
|
|
10643
|
+
this.zIndex = cfg.zIndex || 10000;
|
|
10631
10644
|
}
|
|
10632
10645
|
|
|
10633
10646
|
/**
|
|
@@ -12266,13 +12279,7 @@ class Canvas extends Component {
|
|
|
12266
12279
|
boundary[2] = newWidth;
|
|
12267
12280
|
boundary[3] = newHeight;
|
|
12268
12281
|
|
|
12269
|
-
|
|
12270
|
-
* Fired whenever this Canvas's {@link Canvas/boundary} property changes.
|
|
12271
|
-
*
|
|
12272
|
-
* @event boundary
|
|
12273
|
-
* @param value The property's new value
|
|
12274
|
-
*/
|
|
12275
|
-
if (!newResolutionScale || newCanvasSize) {
|
|
12282
|
+
if (!newResolutionScale) {
|
|
12276
12283
|
this.fire("boundary", boundary);
|
|
12277
12284
|
}
|
|
12278
12285
|
|
|
@@ -46185,64 +46192,64 @@ class DistanceMeasurement extends Component {
|
|
|
46185
46192
|
|
|
46186
46193
|
this._originDot = new Dot(this._container, {
|
|
46187
46194
|
fillColor: this._color,
|
|
46188
|
-
zIndex: plugin.zIndex !== undefined ? plugin.zIndex +
|
|
46195
|
+
zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 2: undefined
|
|
46189
46196
|
});
|
|
46190
46197
|
|
|
46191
46198
|
this._targetDot = new Dot(this._container, {
|
|
46192
46199
|
fillColor: this._color,
|
|
46193
|
-
zIndex: plugin.zIndex !== undefined ? plugin.zIndex +
|
|
46200
|
+
zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 2: undefined
|
|
46194
46201
|
});
|
|
46195
46202
|
|
|
46196
46203
|
this._lengthWire = new Wire(this._container, {
|
|
46197
46204
|
color: this._color,
|
|
46198
46205
|
thickness: 2,
|
|
46199
|
-
zIndex: plugin.zIndex
|
|
46206
|
+
zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 1: undefined
|
|
46200
46207
|
});
|
|
46201
46208
|
|
|
46202
46209
|
this._xAxisWire = new Wire(this._container, {
|
|
46203
46210
|
color: "red",
|
|
46204
46211
|
thickness: 1,
|
|
46205
|
-
zIndex: plugin.zIndex
|
|
46212
|
+
zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 1: undefined
|
|
46206
46213
|
});
|
|
46207
46214
|
|
|
46208
46215
|
this._yAxisWire = new Wire(this._container, {
|
|
46209
46216
|
color: "green",
|
|
46210
46217
|
thickness: 1,
|
|
46211
|
-
zIndex: plugin.zIndex
|
|
46218
|
+
zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 1: undefined
|
|
46212
46219
|
});
|
|
46213
46220
|
|
|
46214
46221
|
this._zAxisWire = new Wire(this._container, {
|
|
46215
46222
|
color: "blue",
|
|
46216
46223
|
thickness: 1,
|
|
46217
|
-
zIndex: plugin.zIndex
|
|
46224
|
+
zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 1: undefined
|
|
46218
46225
|
});
|
|
46219
46226
|
|
|
46220
46227
|
this._lengthLabel = new Label(this._container, {
|
|
46221
46228
|
fillColor: this._color,
|
|
46222
46229
|
prefix: "",
|
|
46223
46230
|
text: "",
|
|
46224
|
-
zIndex: plugin.zIndex !== undefined ? plugin.zIndex +
|
|
46231
|
+
zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 4: undefined
|
|
46225
46232
|
});
|
|
46226
46233
|
|
|
46227
46234
|
this._xAxisLabel = new Label(this._container, {
|
|
46228
46235
|
fillColor: "red",
|
|
46229
46236
|
prefix: "X",
|
|
46230
46237
|
text: "",
|
|
46231
|
-
zIndex: plugin.zIndex !== undefined ? plugin.zIndex +
|
|
46238
|
+
zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 3: undefined
|
|
46232
46239
|
});
|
|
46233
46240
|
|
|
46234
46241
|
this._yAxisLabel = new Label(this._container, {
|
|
46235
46242
|
fillColor: "green",
|
|
46236
46243
|
prefix: "Y",
|
|
46237
46244
|
text: "",
|
|
46238
|
-
zIndex: plugin.zIndex !== undefined ? plugin.zIndex +
|
|
46245
|
+
zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 3: undefined
|
|
46239
46246
|
});
|
|
46240
46247
|
|
|
46241
46248
|
this._zAxisLabel = new Label(this._container, {
|
|
46242
46249
|
fillColor: "blue",
|
|
46243
46250
|
prefix: "Z",
|
|
46244
46251
|
text: "",
|
|
46245
|
-
zIndex: plugin.zIndex !== undefined ? plugin.zIndex +
|
|
46252
|
+
zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 3: undefined
|
|
46246
46253
|
});
|
|
46247
46254
|
|
|
46248
46255
|
this._wpDirty = false;
|
|
@@ -87022,7 +87029,7 @@ class DistanceMeasurementsPlugin extends Plugin {
|
|
|
87022
87029
|
this.defaultWireVisible = cfg.defaultWireVisible !== false;
|
|
87023
87030
|
this.defaultAxisVisible = cfg.defaultAxisVisible !== false;
|
|
87024
87031
|
this.defaultColor = cfg.defaultColor !== undefined ? cfg.defaultColor : "#00BBFF";
|
|
87025
|
-
this.zIndex = cfg.zIndex;
|
|
87032
|
+
this.zIndex = cfg.zIndex || 10000;
|
|
87026
87033
|
}
|
|
87027
87034
|
|
|
87028
87035
|
/**
|
|
@@ -95476,11 +95483,13 @@ function loadNode(ctx, node, matrix) {
|
|
|
95476
95483
|
}
|
|
95477
95484
|
if (createEntity) {
|
|
95478
95485
|
sceneModel.createEntity(utils.apply(createEntity, {
|
|
95479
|
-
meshIds: meshIds
|
|
95486
|
+
meshIds: meshIds,
|
|
95487
|
+
isObject: true
|
|
95480
95488
|
}));
|
|
95481
95489
|
} else {
|
|
95482
95490
|
sceneModel.createEntity({
|
|
95483
|
-
meshIds: meshIds
|
|
95491
|
+
meshIds: meshIds,
|
|
95492
|
+
isObject: true
|
|
95484
95493
|
});
|
|
95485
95494
|
}
|
|
95486
95495
|
}
|