@sienci/gviewer 0.1.14 → 0.1.16
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/{GCodeSVGRenderer-DimkepyY.js → GCodeSVGRenderer-AJzTt7mi.js} +4 -4
- package/dist/{GCodeSVGRenderer-CKHhcVsX.cjs → GCodeSVGRenderer-BOliBeEd.cjs} +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.js +1 -1
- package/dist/types/types.d.ts +1 -0
- package/dist/viewer.cjs +1 -1
- package/dist/viewer.js +1 -1
- package/package.json +1 -1
|
@@ -3007,20 +3007,20 @@ class Hi {
|
|
|
3007
3007
|
}
|
|
3008
3008
|
async loadFromWorkerData(Q) {
|
|
3009
3009
|
this.currentLines = [];
|
|
3010
|
-
const { rapid: B, cut: A } = TP(Q);
|
|
3010
|
+
const { rapid: B, cut: A } = TP(Q), t = (Q.toolchangeCount ?? 0) > 0;
|
|
3011
3011
|
this.setToolpathGeometry({
|
|
3012
3012
|
rapid: {
|
|
3013
3013
|
positions: B.positions,
|
|
3014
|
-
colors:
|
|
3014
|
+
colors: void 0,
|
|
3015
3015
|
prefixEndVertex: B.prefixEndVertex
|
|
3016
3016
|
},
|
|
3017
3017
|
cuts: [{
|
|
3018
3018
|
positions: A.positions,
|
|
3019
|
-
colors: A.colors,
|
|
3019
|
+
colors: t ? A.colors : void 0,
|
|
3020
3020
|
prefixEndVertex: A.prefixEndVertex
|
|
3021
3021
|
}],
|
|
3022
3022
|
cutBucketCount: 1
|
|
3023
|
-
})
|
|
3023
|
+
});
|
|
3024
3024
|
}
|
|
3025
3025
|
unload() {
|
|
3026
3026
|
this.currentLines = [], this.setGeometryEmpty(), this.emitProgress({ state: "hidden" });
|