@tscircuit/3d-viewer 0.0.553 → 0.0.555
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/index.js +4 -10
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -31985,7 +31985,7 @@ import * as THREE20 from "three";
|
|
|
31985
31985
|
// package.json
|
|
31986
31986
|
var package_default = {
|
|
31987
31987
|
name: "@tscircuit/3d-viewer",
|
|
31988
|
-
version: "0.0.
|
|
31988
|
+
version: "0.0.554",
|
|
31989
31989
|
main: "./dist/index.js",
|
|
31990
31990
|
module: "./dist/index.js",
|
|
31991
31991
|
type: "module",
|
|
@@ -32015,7 +32015,7 @@ var package_default = {
|
|
|
32015
32015
|
"@jscad/regl-renderer": "^2.6.12",
|
|
32016
32016
|
"@jscad/stl-serializer": "^2.1.20",
|
|
32017
32017
|
"circuit-json": "^0.0.407",
|
|
32018
|
-
"circuit-to-canvas": "^0.0.
|
|
32018
|
+
"circuit-to-canvas": "^0.0.100",
|
|
32019
32019
|
"react-hot-toast": "^2.6.0",
|
|
32020
32020
|
three: "^0.165.0",
|
|
32021
32021
|
"three-stdlib": "^2.36.0",
|
|
@@ -33975,7 +33975,6 @@ var BOARD_CLIP_Z_MARGIN = 1;
|
|
|
33975
33975
|
var BOARD_CLIP_XY_OUTSET = 0.05;
|
|
33976
33976
|
var buildStateOrder = [
|
|
33977
33977
|
"initializing",
|
|
33978
|
-
"processing_copper_pours",
|
|
33979
33978
|
"processing_plated_holes",
|
|
33980
33979
|
"processing_holes",
|
|
33981
33980
|
"processing_cutouts",
|
|
@@ -33993,7 +33992,6 @@ var BoardGeomBuilder = class {
|
|
|
33993
33992
|
platedHoleGeoms = [];
|
|
33994
33993
|
viaGeoms = [];
|
|
33995
33994
|
// Combined with platedHoleGeoms
|
|
33996
|
-
copperPourGeoms = [];
|
|
33997
33995
|
boardClipGeom = null;
|
|
33998
33996
|
state = "initializing";
|
|
33999
33997
|
currentIndex = 0;
|
|
@@ -34062,7 +34060,7 @@ var BoardGeomBuilder = class {
|
|
|
34062
34060
|
center: [this.board.center.x, this.board.center.y, 0]
|
|
34063
34061
|
});
|
|
34064
34062
|
}
|
|
34065
|
-
this.state = "
|
|
34063
|
+
this.state = "processing_plated_holes";
|
|
34066
34064
|
this.currentIndex = 0;
|
|
34067
34065
|
}
|
|
34068
34066
|
goToNextState() {
|
|
@@ -34093,9 +34091,6 @@ var BoardGeomBuilder = class {
|
|
|
34093
34091
|
this.goToNextState();
|
|
34094
34092
|
}
|
|
34095
34093
|
break;
|
|
34096
|
-
case "processing_copper_pours":
|
|
34097
|
-
this.goToNextState();
|
|
34098
|
-
break;
|
|
34099
34094
|
case "processing_vias":
|
|
34100
34095
|
if (this.currentIndex < this.pcb_vias.length) {
|
|
34101
34096
|
this.processVia(this.pcb_vias[this.currentIndex]);
|
|
@@ -34490,8 +34485,7 @@ var BoardGeomBuilder = class {
|
|
|
34490
34485
|
this.finalGeoms = [
|
|
34491
34486
|
this.boardGeom,
|
|
34492
34487
|
...this.platedHoleGeoms,
|
|
34493
|
-
...this.viaGeoms
|
|
34494
|
-
...this.copperPourGeoms
|
|
34488
|
+
...this.viaGeoms
|
|
34495
34489
|
];
|
|
34496
34490
|
if (this.onCompleteCallback) {
|
|
34497
34491
|
this.onCompleteCallback(this.finalGeoms);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/3d-viewer",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.555",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@jscad/regl-renderer": "^2.6.12",
|
|
31
31
|
"@jscad/stl-serializer": "^2.1.20",
|
|
32
32
|
"circuit-json": "^0.0.407",
|
|
33
|
-
"circuit-to-canvas": "^0.0.
|
|
33
|
+
"circuit-to-canvas": "^0.0.100",
|
|
34
34
|
"react-hot-toast": "^2.6.0",
|
|
35
35
|
"three": "^0.165.0",
|
|
36
36
|
"three-stdlib": "^2.36.0",
|