@sienci/gviewer 0.1.11 → 0.1.12

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.
@@ -3009,13 +3009,11 @@ class Hi {
3009
3009
  this.setToolpathGeometry({
3010
3010
  rapid: {
3011
3011
  positions: B.positions,
3012
- prefixEndVertex: B.prefixEndVertex,
3013
- colors: B.colors
3012
+ prefixEndVertex: B.prefixEndVertex
3014
3013
  },
3015
3014
  cuts: [{
3016
3015
  positions: A.positions,
3017
- prefixEndVertex: A.prefixEndVertex,
3018
- colors: A.colors
3016
+ prefixEndVertex: A.prefixEndVertex
3019
3017
  }],
3020
3018
  cutBucketCount: 1
3021
3019
  }), this.focusToModel();
@@ -3503,7 +3501,11 @@ class ji {
3503
3501
  }
3504
3502
  loadFromWorkerData(Q) {
3505
3503
  const B = EP(Q);
3506
- if (this.workerMode = !0, this.rapidVerts = new Float32Array(0), this.cutVerts = new Float32Array(0), this.segmentGroups = B.map((A) => ({ color: A.hexColor, opacity: A.opacity, verts: A.positions })), this.bounds = BA(...B.map((A) => A.positions)), !this.bounds.empty) {
3504
+ if (this.workerMode = !0, this.rapidVerts = new Float32Array(0), this.cutVerts = new Float32Array(0), this.segmentGroups = B.map((A) => ({
3505
+ color: A.opacity < 0.75 ? this.options.rapidColor : this.options.cutColor,
3506
+ opacity: A.opacity,
3507
+ verts: A.positions
3508
+ })), this.bounds = BA(...B.map((A) => A.positions)), !this.bounds.empty) {
3507
3509
  this.centerX = (this.bounds.minX + this.bounds.maxX) / 2, this.centerY = (this.bounds.minY + this.bounds.maxY) / 2, this.centerZ = (this.bounds.minZ + this.bounds.maxZ) / 2;
3508
3510
  const A = Math.hypot(
3509
3511
  this.bounds.maxX - this.bounds.minX,