@tscircuit/core 0.0.715 → 0.0.716
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.d.ts +10 -0
- package/dist/index.js +10 -6
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -17498,6 +17498,8 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
17498
17498
|
holeShape: zod.ZodOptional<zod.ZodLiteral<"circle">>;
|
|
17499
17499
|
padShape: zod.ZodOptional<zod.ZodLiteral<"rect">>;
|
|
17500
17500
|
portHints: zod.ZodOptional<zod.ZodArray<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, "many">>;
|
|
17501
|
+
pcbHoleOffsetX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
17502
|
+
pcbHoleOffsetY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
17501
17503
|
}, "strip", zod.ZodTypeAny, {
|
|
17502
17504
|
shape: "circular_hole_with_rect_pad";
|
|
17503
17505
|
holeDiameter: number;
|
|
@@ -17519,6 +17521,8 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
17519
17521
|
portHints?: (string | number)[] | undefined;
|
|
17520
17522
|
holeShape?: "circle" | undefined;
|
|
17521
17523
|
padShape?: "rect" | undefined;
|
|
17524
|
+
pcbHoleOffsetX?: number | undefined;
|
|
17525
|
+
pcbHoleOffsetY?: number | undefined;
|
|
17522
17526
|
}, {
|
|
17523
17527
|
shape: "circular_hole_with_rect_pad";
|
|
17524
17528
|
holeDiameter: string | number;
|
|
@@ -17540,6 +17544,8 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
17540
17544
|
portHints?: (string | number)[] | undefined;
|
|
17541
17545
|
holeShape?: "circle" | undefined;
|
|
17542
17546
|
padShape?: "rect" | undefined;
|
|
17547
|
+
pcbHoleOffsetX?: string | number | undefined;
|
|
17548
|
+
pcbHoleOffsetY?: string | number | undefined;
|
|
17543
17549
|
}>, zod.ZodObject<Omit<{
|
|
17544
17550
|
pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
17545
17551
|
pcbY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
@@ -17702,6 +17708,8 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
17702
17708
|
portHints?: (string | number)[] | undefined;
|
|
17703
17709
|
holeShape?: "circle" | undefined;
|
|
17704
17710
|
padShape?: "rect" | undefined;
|
|
17711
|
+
pcbHoleOffsetX?: number | undefined;
|
|
17712
|
+
pcbHoleOffsetY?: number | undefined;
|
|
17705
17713
|
} | {
|
|
17706
17714
|
shape: "pill_hole_with_rect_pad";
|
|
17707
17715
|
holeWidth: number;
|
|
@@ -17809,6 +17817,8 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
17809
17817
|
portHints?: (string | number)[] | undefined;
|
|
17810
17818
|
holeShape?: "circle" | undefined;
|
|
17811
17819
|
padShape?: "rect" | undefined;
|
|
17820
|
+
pcbHoleOffsetX?: string | number | undefined;
|
|
17821
|
+
pcbHoleOffsetY?: string | number | undefined;
|
|
17812
17822
|
} | {
|
|
17813
17823
|
shape: "pill_hole_with_rect_pad";
|
|
17814
17824
|
holeWidth: string | number;
|
package/dist/index.js
CHANGED
|
@@ -2382,7 +2382,9 @@ var PlatedHole = class extends PrimitiveComponent2 {
|
|
|
2382
2382
|
y: position.y,
|
|
2383
2383
|
layers: ["top", "bottom"],
|
|
2384
2384
|
subcircuit_id: subcircuit?.subcircuit_id ?? void 0,
|
|
2385
|
-
pcb_group_id: this.getGroup()?.pcb_group_id ?? void 0
|
|
2385
|
+
pcb_group_id: this.getGroup()?.pcb_group_id ?? void 0,
|
|
2386
|
+
hole_offset_x: props.pcbHoleOffsetX ?? 0,
|
|
2387
|
+
hole_offset_y: props.pcbHoleOffsetY ?? 0
|
|
2386
2388
|
});
|
|
2387
2389
|
this.pcb_plated_hole_id = pcb_plated_hole.pcb_plated_hole_id;
|
|
2388
2390
|
} else if (props.shape === "pill_hole_with_rect_pad") {
|
|
@@ -2826,7 +2828,9 @@ var createComponentsFromCircuitJson = ({
|
|
|
2826
2828
|
holeDiameter: elm.hole_diameter,
|
|
2827
2829
|
rectPadHeight: elm.rect_pad_height,
|
|
2828
2830
|
rectPadWidth: elm.rect_pad_width,
|
|
2829
|
-
portHints: elm.port_hints
|
|
2831
|
+
portHints: elm.port_hints,
|
|
2832
|
+
pcbHoleOffsetX: elm.hole_offset_x,
|
|
2833
|
+
pcbHoleOffsetY: elm.hole_offset_y
|
|
2830
2834
|
})
|
|
2831
2835
|
);
|
|
2832
2836
|
}
|
|
@@ -14707,7 +14711,7 @@ import { identity as identity6 } from "transformation-matrix";
|
|
|
14707
14711
|
var package_default = {
|
|
14708
14712
|
name: "@tscircuit/core",
|
|
14709
14713
|
type: "module",
|
|
14710
|
-
version: "0.0.
|
|
14714
|
+
version: "0.0.715",
|
|
14711
14715
|
types: "dist/index.d.ts",
|
|
14712
14716
|
main: "dist/index.js",
|
|
14713
14717
|
module: "dist/index.js",
|
|
@@ -14746,7 +14750,7 @@ var package_default = {
|
|
|
14746
14750
|
"@tscircuit/matchpack": "^0.0.16",
|
|
14747
14751
|
"@tscircuit/math-utils": "^0.0.21",
|
|
14748
14752
|
"@tscircuit/miniflex": "^0.0.4",
|
|
14749
|
-
"@tscircuit/props": "0.0.
|
|
14753
|
+
"@tscircuit/props": "0.0.315",
|
|
14750
14754
|
"@tscircuit/schematic-autolayout": "^0.0.6",
|
|
14751
14755
|
"@tscircuit/schematic-match-adapt": "^0.0.16",
|
|
14752
14756
|
"@tscircuit/schematic-trace-solver": "^0.0.36",
|
|
@@ -14760,11 +14764,11 @@ var package_default = {
|
|
|
14760
14764
|
"bun-match-svg": "0.0.12",
|
|
14761
14765
|
"calculate-elbow": "^0.0.12",
|
|
14762
14766
|
"chokidar-cli": "^3.0.0",
|
|
14763
|
-
"circuit-json": "^0.0.
|
|
14767
|
+
"circuit-json": "^0.0.250",
|
|
14764
14768
|
"circuit-json-to-bpc": "^0.0.13",
|
|
14765
14769
|
"circuit-json-to-connectivity-map": "^0.0.22",
|
|
14766
14770
|
"circuit-json-to-simple-3d": "^0.0.6",
|
|
14767
|
-
"circuit-to-svg": "^0.0.
|
|
14771
|
+
"circuit-to-svg": "^0.0.189",
|
|
14768
14772
|
concurrently: "^9.1.2",
|
|
14769
14773
|
"connectivity-map": "^1.0.0",
|
|
14770
14774
|
debug: "^4.3.6",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.716",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@tscircuit/matchpack": "^0.0.16",
|
|
41
41
|
"@tscircuit/math-utils": "^0.0.21",
|
|
42
42
|
"@tscircuit/miniflex": "^0.0.4",
|
|
43
|
-
"@tscircuit/props": "0.0.
|
|
43
|
+
"@tscircuit/props": "0.0.315",
|
|
44
44
|
"@tscircuit/schematic-autolayout": "^0.0.6",
|
|
45
45
|
"@tscircuit/schematic-match-adapt": "^0.0.16",
|
|
46
46
|
"@tscircuit/schematic-trace-solver": "^0.0.36",
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
"bun-match-svg": "0.0.12",
|
|
55
55
|
"calculate-elbow": "^0.0.12",
|
|
56
56
|
"chokidar-cli": "^3.0.0",
|
|
57
|
-
"circuit-json": "^0.0.
|
|
57
|
+
"circuit-json": "^0.0.250",
|
|
58
58
|
"circuit-json-to-bpc": "^0.0.13",
|
|
59
59
|
"circuit-json-to-connectivity-map": "^0.0.22",
|
|
60
60
|
"circuit-json-to-simple-3d": "^0.0.6",
|
|
61
|
-
"circuit-to-svg": "^0.0.
|
|
61
|
+
"circuit-to-svg": "^0.0.189",
|
|
62
62
|
"concurrently": "^9.1.2",
|
|
63
63
|
"connectivity-map": "^1.0.0",
|
|
64
64
|
"debug": "^4.3.6",
|