@sienci/gviewer 0.1.13 → 0.1.15
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-CCA3LUSq.js → GCodeSVGRenderer-B05PWYIl.js} +3 -3
- package/dist/{GCodeSVGRenderer-8mX-XL8F.cjs → GCodeSVGRenderer-DWQ9SXV7.cjs} +1 -1
- package/dist/gviewer.cjs +1 -1
- package/dist/gviewer.js +370 -370
- package/dist/react.cjs +1 -1
- package/dist/react.js +1 -1
- package/dist/types/types.d.ts +3 -0
- package/dist/viewer.cjs +1 -1
- package/dist/viewer.js +1 -1
- package/package.json +1 -1
|
@@ -2728,7 +2728,7 @@ function Ei() {
|
|
|
2728
2728
|
return e.wrapS = h.RepeatWrapping, e.wrapT = h.RepeatWrapping, WB = e, e;
|
|
2729
2729
|
}
|
|
2730
2730
|
function ai(r, Q) {
|
|
2731
|
-
const B = Math.max(1e-3, r), A = B *
|
|
2731
|
+
const B = Math.max(1e-3, r), A = B * 1.6, t = B * 0.08, P = B * 0.187, e = DB(Q), i = new h.CylinderGeometry(0, t, A, 8, 1, !1);
|
|
2732
2732
|
i.rotateX(-Math.PI / 2), i.translate(0, 0, A / 2);
|
|
2733
2733
|
const s = new h.CylinderGeometry(0, P, A, 8, 1, !0);
|
|
2734
2734
|
s.rotateX(-Math.PI / 2), s.translate(0, 0, A / 2);
|
|
@@ -3020,7 +3020,7 @@ class Hi {
|
|
|
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" });
|
|
@@ -3032,7 +3032,7 @@ class Hi {
|
|
|
3032
3032
|
const A = B.units !== this.options.units || B.grid.size !== this.options.grid.size || B.grid.axisDepth !== this.options.grid.axisDepth, t = B.render.theme.colors.grid.major !== this.options.render.theme.colors.grid.major || B.render.theme.colors.grid.minor !== this.options.render.theme.colors.grid.minor || B.render.theme.colors.axes.x !== this.options.render.theme.colors.axes.x || B.render.theme.colors.axes.y !== this.options.render.theme.colors.axes.y || B.render.theme.colors.axes.z !== this.options.render.theme.colors.axes.z;
|
|
3033
3033
|
(A || t) && this.renderGridAndAxes(), (B.grid.labels !== this.options.grid.labels || B.units !== this.options.units || B.grid.size !== this.options.grid.size || t) && this.refreshGridLabels(), (B.boundingBox.visible !== this.options.boundingBox.visible || B.boundingBox.labels !== this.options.boundingBox.labels || B.units !== this.options.units || B.render.theme.colors.boundingBox !== this.options.render.theme.colors.boundingBox) && this.refreshBoundingBox();
|
|
3034
3034
|
const i = B.render.theme.colors.rapid !== this.options.render.theme.colors.rapid || B.render.theme.colors.cutting !== this.options.render.theme.colors.cutting || B.render.theme.colors.laser !== this.options.render.theme.colors.laser || B.render.theme.background !== this.options.render.theme.background || B.render.theme.colors.processed !== this.options.render.theme.colors.processed;
|
|
3035
|
-
if (i && this.refreshToolpathColors(), (B.bit.enabled !== this.options.bit.enabled || B.bit.type !== this.options.bit.type || B.bit.size !== this.options.bit.size || B.bit.opacity !== this.options.bit.opacity || B.bit.colorSource !== this.options.bit.colorSource || B.bit.color !== this.options.bit.color || i) && (this.ensureBitMarker(), (c = this.bitMarker) == null || c.setOptions(this.options)), B.mode.laser !== this.options.mode.laser && (this.options.mode.laser ? this.options.bit.type !== "laser" && (this.preLaserBitType = this.options.bit.type, this.options = { ...this.options, bit: { ...this.options.bit, type: "laser" } }) : this.options = { ...this.options, bit: { ...this.options.bit, type: this.preLaserBitType } }, this.ensureBitMarker(), (n = this.bitMarker) == null || n.setOptions(this.options), this.renderScene()), B.mode.sim3d !== this.options.mode.sim3d)
|
|
3035
|
+
if (i && this.refreshToolpathColors(), (B.bit.enabled !== this.options.bit.enabled || B.bit.type !== this.options.bit.type || B.bit.size !== this.options.bit.size || B.bit.opacity !== this.options.bit.opacity || B.bit.colorSource !== this.options.bit.colorSource || B.bit.color !== this.options.bit.color || i) && (this.ensureBitMarker(), (c = this.bitMarker) == null || c.setOptions(this.options)), B.mode.laser !== this.options.mode.laser && (this.options.mode.laser ? this.options.bit.type !== "laser" && (this.preLaserBitType = this.options.bit.type, this.options = { ...this.options, bit: { ...this.options.bit, type: "laser" } }) : this.options = { ...this.options, bit: { ...this.options.bit, type: this.preLaserBitType } }, this.ensureBitMarker(), (n = this.bitMarker) == null || n.setOptions(this.options), this.currentLines.length > 0 && this.renderScene()), B.mode.sim3d !== this.options.mode.sim3d)
|
|
3036
3036
|
if (!this.options.mode.sim3d)
|
|
3037
3037
|
this.setSim3dHandle(null), this.setToolpathStreamsVisible(!0);
|
|
3038
3038
|
else {
|