@tscircuit/3d-viewer 0.0.389 → 0.0.390
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 +34 -12
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -15372,6 +15372,7 @@ var source_group = z38.object({
|
|
|
15372
15372
|
parent_subcircuit_id: z38.string().optional(),
|
|
15373
15373
|
parent_source_group_id: z38.string().optional(),
|
|
15374
15374
|
is_subcircuit: z38.boolean().optional(),
|
|
15375
|
+
show_as_schematic_box: z38.boolean().optional(),
|
|
15375
15376
|
name: z38.string().optional()
|
|
15376
15377
|
});
|
|
15377
15378
|
expectTypesMatch(true);
|
|
@@ -15496,7 +15497,7 @@ var schematic_component = z45.object({
|
|
|
15496
15497
|
type: z45.literal("schematic_component"),
|
|
15497
15498
|
size,
|
|
15498
15499
|
center: point,
|
|
15499
|
-
source_component_id: z45.string(),
|
|
15500
|
+
source_component_id: z45.string().optional(),
|
|
15500
15501
|
schematic_component_id: z45.string(),
|
|
15501
15502
|
pin_spacing: length.optional(),
|
|
15502
15503
|
pin_styles: schematic_pin_styles.optional(),
|
|
@@ -15506,7 +15507,9 @@ var schematic_component = z45.object({
|
|
|
15506
15507
|
port_labels: z45.record(z45.string()).optional(),
|
|
15507
15508
|
symbol_display_value: z45.string().optional(),
|
|
15508
15509
|
subcircuit_id: z45.string().optional(),
|
|
15509
|
-
schematic_group_id: z45.string().optional()
|
|
15510
|
+
schematic_group_id: z45.string().optional(),
|
|
15511
|
+
is_schematic_group: z45.boolean().optional(),
|
|
15512
|
+
source_group_id: z45.string().optional()
|
|
15510
15513
|
});
|
|
15511
15514
|
expectTypesMatch(true);
|
|
15512
15515
|
var schematic_line = z46.object({
|
|
@@ -15686,6 +15689,7 @@ var schematic_group = z57.object({
|
|
|
15686
15689
|
height: length,
|
|
15687
15690
|
center: point,
|
|
15688
15691
|
schematic_component_ids: z57.array(z57.string()),
|
|
15692
|
+
show_as_schematic_box: z57.boolean().optional(),
|
|
15689
15693
|
name: z57.string().optional(),
|
|
15690
15694
|
description: z57.string().optional()
|
|
15691
15695
|
}).describe("Defines a group of components on the schematic");
|
|
@@ -15824,6 +15828,7 @@ var pcb_plated_hole_oval = z65.object({
|
|
|
15824
15828
|
hole_height: z65.number(),
|
|
15825
15829
|
x: distance,
|
|
15826
15830
|
y: distance,
|
|
15831
|
+
ccw_rotation: rotation,
|
|
15827
15832
|
layers: z65.array(layer_ref),
|
|
15828
15833
|
port_hints: z65.array(z65.string()).optional(),
|
|
15829
15834
|
pcb_component_id: z65.string().optional(),
|
|
@@ -15916,7 +15921,8 @@ var pcb_port = z66.object({
|
|
|
15916
15921
|
pcb_component_id: z66.string(),
|
|
15917
15922
|
x: distance,
|
|
15918
15923
|
y: distance,
|
|
15919
|
-
layers: z66.array(layer_ref)
|
|
15924
|
+
layers: z66.array(layer_ref),
|
|
15925
|
+
is_board_pinout: z66.boolean().optional()
|
|
15920
15926
|
}).describe("Defines a port on the PCB");
|
|
15921
15927
|
expectTypesMatch(true);
|
|
15922
15928
|
var pcb_smtpad_circle = z67.object({
|
|
@@ -15931,7 +15937,8 @@ var pcb_smtpad_circle = z67.object({
|
|
|
15931
15937
|
layer: layer_ref,
|
|
15932
15938
|
port_hints: z67.array(z67.string()).optional(),
|
|
15933
15939
|
pcb_component_id: z67.string().optional(),
|
|
15934
|
-
pcb_port_id: z67.string().optional()
|
|
15940
|
+
pcb_port_id: z67.string().optional(),
|
|
15941
|
+
is_covered_with_solder_mask: z67.boolean().optional()
|
|
15935
15942
|
});
|
|
15936
15943
|
var pcb_smtpad_rect = z67.object({
|
|
15937
15944
|
type: z67.literal("pcb_smtpad"),
|
|
@@ -15947,7 +15954,8 @@ var pcb_smtpad_rect = z67.object({
|
|
|
15947
15954
|
layer: layer_ref,
|
|
15948
15955
|
port_hints: z67.array(z67.string()).optional(),
|
|
15949
15956
|
pcb_component_id: z67.string().optional(),
|
|
15950
|
-
pcb_port_id: z67.string().optional()
|
|
15957
|
+
pcb_port_id: z67.string().optional(),
|
|
15958
|
+
is_covered_with_solder_mask: z67.boolean().optional()
|
|
15951
15959
|
});
|
|
15952
15960
|
var pcb_smtpad_rotated_rect = z67.object({
|
|
15953
15961
|
type: z67.literal("pcb_smtpad"),
|
|
@@ -15964,7 +15972,8 @@ var pcb_smtpad_rotated_rect = z67.object({
|
|
|
15964
15972
|
layer: layer_ref,
|
|
15965
15973
|
port_hints: z67.array(z67.string()).optional(),
|
|
15966
15974
|
pcb_component_id: z67.string().optional(),
|
|
15967
|
-
pcb_port_id: z67.string().optional()
|
|
15975
|
+
pcb_port_id: z67.string().optional(),
|
|
15976
|
+
is_covered_with_solder_mask: z67.boolean().optional()
|
|
15968
15977
|
});
|
|
15969
15978
|
var pcb_smtpad_pill = z67.object({
|
|
15970
15979
|
type: z67.literal("pcb_smtpad"),
|
|
@@ -15980,7 +15989,8 @@ var pcb_smtpad_pill = z67.object({
|
|
|
15980
15989
|
layer: layer_ref,
|
|
15981
15990
|
port_hints: z67.array(z67.string()).optional(),
|
|
15982
15991
|
pcb_component_id: z67.string().optional(),
|
|
15983
|
-
pcb_port_id: z67.string().optional()
|
|
15992
|
+
pcb_port_id: z67.string().optional(),
|
|
15993
|
+
is_covered_with_solder_mask: z67.boolean().optional()
|
|
15984
15994
|
});
|
|
15985
15995
|
var pcb_smtpad_rotated_pill = z67.object({
|
|
15986
15996
|
type: z67.literal("pcb_smtpad"),
|
|
@@ -15997,7 +16007,8 @@ var pcb_smtpad_rotated_pill = z67.object({
|
|
|
15997
16007
|
layer: layer_ref,
|
|
15998
16008
|
port_hints: z67.array(z67.string()).optional(),
|
|
15999
16009
|
pcb_component_id: z67.string().optional(),
|
|
16000
|
-
pcb_port_id: z67.string().optional()
|
|
16010
|
+
pcb_port_id: z67.string().optional(),
|
|
16011
|
+
is_covered_with_solder_mask: z67.boolean().optional()
|
|
16001
16012
|
});
|
|
16002
16013
|
var pcb_smtpad_polygon = z67.object({
|
|
16003
16014
|
type: z67.literal("pcb_smtpad"),
|
|
@@ -16009,7 +16020,8 @@ var pcb_smtpad_polygon = z67.object({
|
|
|
16009
16020
|
layer: layer_ref,
|
|
16010
16021
|
port_hints: z67.array(z67.string()).optional(),
|
|
16011
16022
|
pcb_component_id: z67.string().optional(),
|
|
16012
|
-
pcb_port_id: z67.string().optional()
|
|
16023
|
+
pcb_port_id: z67.string().optional(),
|
|
16024
|
+
is_covered_with_solder_mask: z67.boolean().optional()
|
|
16013
16025
|
});
|
|
16014
16026
|
var pcb_smtpad = z67.discriminatedUnion("shape", [
|
|
16015
16027
|
pcb_smtpad_circle,
|
|
@@ -26021,7 +26033,7 @@ import * as THREE11 from "three";
|
|
|
26021
26033
|
// package.json
|
|
26022
26034
|
var package_default = {
|
|
26023
26035
|
name: "@tscircuit/3d-viewer",
|
|
26024
|
-
version: "0.0.
|
|
26036
|
+
version: "0.0.389",
|
|
26025
26037
|
main: "./dist/index.js",
|
|
26026
26038
|
module: "./dist/index.js",
|
|
26027
26039
|
type: "module",
|
|
@@ -26077,7 +26089,7 @@ var package_default = {
|
|
|
26077
26089
|
"@vitejs/plugin-react": "^4.3.4",
|
|
26078
26090
|
"bun-match-svg": "^0.0.9",
|
|
26079
26091
|
"bun-types": "1.2.1",
|
|
26080
|
-
"circuit-json": "0.0.
|
|
26092
|
+
"circuit-json": "0.0.256",
|
|
26081
26093
|
"circuit-to-svg": "^0.0.179",
|
|
26082
26094
|
debug: "^4.4.0",
|
|
26083
26095
|
"jscad-electronics": "^0.0.38",
|
|
@@ -26087,7 +26099,7 @@ var package_default = {
|
|
|
26087
26099
|
"react-use-gesture": "^9.1.3",
|
|
26088
26100
|
semver: "^7.7.0",
|
|
26089
26101
|
"strip-ansi": "^7.1.0",
|
|
26090
|
-
tscircuit: "^0.0.
|
|
26102
|
+
tscircuit: "^0.0.649",
|
|
26091
26103
|
tsup: "^8.3.6",
|
|
26092
26104
|
typescript: "^5.7.3",
|
|
26093
26105
|
vite: "^7.1.5",
|
|
@@ -28724,6 +28736,11 @@ function processPlatedHolesForManifold(Manifold, circuitJson, pcbThickness, mani
|
|
|
28724
28736
|
manifoldInstancesForCleanup.push(rotatedOp);
|
|
28725
28737
|
boardPillDrillOp = rotatedOp;
|
|
28726
28738
|
}
|
|
28739
|
+
if (ph.ccw_rotation) {
|
|
28740
|
+
const rotatedOp = boardPillDrillOp.rotate([0, 0, ph.ccw_rotation]);
|
|
28741
|
+
manifoldInstancesForCleanup.push(rotatedOp);
|
|
28742
|
+
boardPillDrillOp = rotatedOp;
|
|
28743
|
+
}
|
|
28727
28744
|
const translatedBoardPillDrill = boardPillDrillOp.translate([
|
|
28728
28745
|
ph.x,
|
|
28729
28746
|
ph.y,
|
|
@@ -28752,6 +28769,11 @@ function processPlatedHolesForManifold(Manifold, circuitJson, pcbThickness, mani
|
|
|
28752
28769
|
manifoldInstancesForCleanup.push(rotatedOp);
|
|
28753
28770
|
finalPlatedPartOp = rotatedOp;
|
|
28754
28771
|
}
|
|
28772
|
+
if (ph.ccw_rotation) {
|
|
28773
|
+
const rotatedOp = finalPlatedPartOp.rotate([0, 0, ph.ccw_rotation]);
|
|
28774
|
+
manifoldInstancesForCleanup.push(rotatedOp);
|
|
28775
|
+
finalPlatedPartOp = rotatedOp;
|
|
28776
|
+
}
|
|
28755
28777
|
const translatedPlatedPart = finalPlatedPartOp.translate([ph.x, ph.y, 0]);
|
|
28756
28778
|
manifoldInstancesForCleanup.push(translatedPlatedPart);
|
|
28757
28779
|
const threeGeom = manifoldMeshToThreeGeometry(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/3d-viewer",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.390",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@vitejs/plugin-react": "^4.3.4",
|
|
57
57
|
"bun-match-svg": "^0.0.9",
|
|
58
58
|
"bun-types": "1.2.1",
|
|
59
|
-
"circuit-json": "0.0.
|
|
59
|
+
"circuit-json": "0.0.256",
|
|
60
60
|
"circuit-to-svg": "^0.0.179",
|
|
61
61
|
"debug": "^4.4.0",
|
|
62
62
|
"jscad-electronics": "^0.0.38",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"react-use-gesture": "^9.1.3",
|
|
67
67
|
"semver": "^7.7.0",
|
|
68
68
|
"strip-ansi": "^7.1.0",
|
|
69
|
-
"tscircuit": "^0.0.
|
|
69
|
+
"tscircuit": "^0.0.649",
|
|
70
70
|
"tsup": "^8.3.6",
|
|
71
71
|
"typescript": "^5.7.3",
|
|
72
72
|
"vite": "^7.1.5",
|