@inweb/viewer-three 27.6.1 → 27.6.2
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/viewer-three.js +49 -19
- package/dist/viewer-three.js.map +1 -1
- package/dist/viewer-three.min.js +1 -1
- package/package.json +5 -5
package/dist/viewer-three.js
CHANGED
|
@@ -422,16 +422,28 @@
|
|
|
422
422
|
return this._data.enableStreamingMode;
|
|
423
423
|
}
|
|
424
424
|
set enableStreamingMode(value) {
|
|
425
|
-
this.
|
|
426
|
-
|
|
425
|
+
this.beginUpdate();
|
|
426
|
+
try {
|
|
427
|
+
this.setProperty("enableStreamingMode", value);
|
|
428
|
+
this.setProperty("enablePartialMode", this.enablePartialMode && this.enableStreamingMode);
|
|
429
|
+
}
|
|
430
|
+
finally {
|
|
431
|
+
this.endUpdate();
|
|
432
|
+
}
|
|
427
433
|
}
|
|
428
434
|
get enablePartialMode() {
|
|
429
435
|
return this._data.enablePartialMode;
|
|
430
436
|
}
|
|
431
437
|
set enablePartialMode(value) {
|
|
432
|
-
this.
|
|
433
|
-
|
|
434
|
-
|
|
438
|
+
this.beginUpdate();
|
|
439
|
+
try {
|
|
440
|
+
this.setProperty("enablePartialMode", value);
|
|
441
|
+
this.setProperty("enableStreamingMode", this.enableStreamingMode || this.enablePartialMode);
|
|
442
|
+
this.setProperty("sceneGraph", this.sceneGraph && !this.enablePartialMode);
|
|
443
|
+
}
|
|
444
|
+
finally {
|
|
445
|
+
this.endUpdate();
|
|
446
|
+
}
|
|
435
447
|
}
|
|
436
448
|
get memoryLimit() {
|
|
437
449
|
return this._data.memoryLimit;
|
|
@@ -446,12 +458,18 @@
|
|
|
446
458
|
if (this._updateCount === 0) {
|
|
447
459
|
console.warn("Options.cuttingPlaneFillColor has been deprecated since 27.5 and will be removed in a future release, use sectionFillColor instead");
|
|
448
460
|
}
|
|
449
|
-
this.
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
461
|
+
this.beginUpdate();
|
|
462
|
+
try {
|
|
463
|
+
this.setProperty("cuttingPlaneFillColor", value, isLegacyRGB(value));
|
|
464
|
+
this.setProperty("sectionFillColor", {
|
|
465
|
+
r: this._data.cuttingPlaneFillColor.red,
|
|
466
|
+
g: this._data.cuttingPlaneFillColor.green,
|
|
467
|
+
b: this._data.cuttingPlaneFillColor.blue,
|
|
468
|
+
});
|
|
469
|
+
}
|
|
470
|
+
finally {
|
|
471
|
+
this.endUpdate();
|
|
472
|
+
}
|
|
455
473
|
}
|
|
456
474
|
get enableSectionFill() {
|
|
457
475
|
return this._data.enableSectionFill;
|
|
@@ -463,12 +481,18 @@
|
|
|
463
481
|
return this._data.sectionFillColor;
|
|
464
482
|
}
|
|
465
483
|
set sectionFillColor(value) {
|
|
466
|
-
this.
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
484
|
+
this.beginUpdate();
|
|
485
|
+
try {
|
|
486
|
+
this.setProperty("sectionFillColor", value, isColorRGB(value));
|
|
487
|
+
this.setProperty("cuttingPlaneFillColor", {
|
|
488
|
+
red: this._data.sectionFillColor.r,
|
|
489
|
+
green: this._data.sectionFillColor.g,
|
|
490
|
+
blue: this._data.sectionFillColor.b,
|
|
491
|
+
});
|
|
492
|
+
}
|
|
493
|
+
finally {
|
|
494
|
+
this.endUpdate();
|
|
495
|
+
}
|
|
472
496
|
}
|
|
473
497
|
get sectionUseObjectColor() {
|
|
474
498
|
return this._data.sectionUseObjectColor;
|
|
@@ -558,8 +582,14 @@
|
|
|
558
582
|
return this._data.sceneGraph;
|
|
559
583
|
}
|
|
560
584
|
set sceneGraph(value) {
|
|
561
|
-
this.
|
|
562
|
-
|
|
585
|
+
this.beginUpdate();
|
|
586
|
+
try {
|
|
587
|
+
this.setProperty("sceneGraph", value);
|
|
588
|
+
this.setProperty("enablePartialMode", this.enablePartialMode && !this.sceneGraph);
|
|
589
|
+
}
|
|
590
|
+
finally {
|
|
591
|
+
this.endUpdate();
|
|
592
|
+
}
|
|
563
593
|
}
|
|
564
594
|
get edgeModel() {
|
|
565
595
|
return Boolean(this._data.edgeModel);
|