@tscircuit/core 0.0.939 → 0.0.940
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 +16 -10
- package/dist/index.js +4 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -2157,6 +2157,7 @@ declare class Board extends Group<typeof boardProps> implements BoardI, Subcircu
|
|
|
2157
2157
|
schTraceAutoLabelEnabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
2158
2158
|
schMaxTraceDistance: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
2159
2159
|
routingDisabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
2160
|
+
bomDisabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
2160
2161
|
defaultTraceWidth: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
2161
2162
|
minTraceWidth: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
2162
2163
|
partsEngine: zod.ZodOptional<zod.ZodType<_tscircuit_props.PartsEngine, zod.ZodTypeDef, _tscircuit_props.PartsEngine>>;
|
|
@@ -2453,6 +2454,7 @@ declare class Board extends Group<typeof boardProps> implements BoardI, Subcircu
|
|
|
2453
2454
|
}[] | undefined;
|
|
2454
2455
|
} | undefined;
|
|
2455
2456
|
routingDisabled?: boolean | undefined;
|
|
2457
|
+
bomDisabled?: boolean | undefined;
|
|
2456
2458
|
defaultTraceWidth?: number | undefined;
|
|
2457
2459
|
pcbGrid?: boolean | undefined;
|
|
2458
2460
|
pcbGridCols?: string | number | undefined;
|
|
@@ -2772,6 +2774,7 @@ declare class Board extends Group<typeof boardProps> implements BoardI, Subcircu
|
|
|
2772
2774
|
}[] | undefined;
|
|
2773
2775
|
} | undefined;
|
|
2774
2776
|
routingDisabled?: boolean | undefined;
|
|
2777
|
+
bomDisabled?: boolean | undefined;
|
|
2775
2778
|
defaultTraceWidth?: string | number | undefined;
|
|
2776
2779
|
pcbGrid?: boolean | undefined;
|
|
2777
2780
|
pcbGridCols?: string | number | undefined;
|
|
@@ -13579,6 +13582,7 @@ declare class Interconnect extends NormalComponent<typeof interconnectProps> {
|
|
|
13579
13582
|
}>>>;
|
|
13580
13583
|
} & {
|
|
13581
13584
|
standard: zod.ZodOptional<zod.ZodEnum<["TSC0001_36P_XALT_2025_11", "0805", "0603", "1206"]>>;
|
|
13585
|
+
pinLabels: zod.ZodOptional<zod.ZodRecord<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>, zod.ZodUnion<[zod.ZodString, zod.ZodArray<zod.ZodString, "many">]>>>;
|
|
13582
13586
|
internallyConnectedPins: zod.ZodOptional<zod.ZodArray<zod.ZodArray<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, "many">, "many">>;
|
|
13583
13587
|
}, "strip", zod.ZodTypeAny, {
|
|
13584
13588
|
name: string;
|
|
@@ -13782,6 +13786,7 @@ declare class Interconnect extends NormalComponent<typeof interconnectProps> {
|
|
|
13782
13786
|
doNotPlace?: boolean | undefined;
|
|
13783
13787
|
obstructsWithinBounds?: boolean | undefined;
|
|
13784
13788
|
showAsTranslucentModel?: boolean | undefined;
|
|
13789
|
+
pinLabels?: Record<string | number, string | string[]> | undefined;
|
|
13785
13790
|
internallyConnectedPins?: (string | number)[][] | undefined;
|
|
13786
13791
|
standard?: "0603" | "0805" | "1206" | "TSC0001_36P_XALT_2025_11" | undefined;
|
|
13787
13792
|
}, {
|
|
@@ -13988,6 +13993,7 @@ declare class Interconnect extends NormalComponent<typeof interconnectProps> {
|
|
|
13988
13993
|
doNotPlace?: boolean | undefined;
|
|
13989
13994
|
obstructsWithinBounds?: boolean | undefined;
|
|
13990
13995
|
showAsTranslucentModel?: boolean | undefined;
|
|
13996
|
+
pinLabels?: Record<string | number, string | string[]> | undefined;
|
|
13991
13997
|
internallyConnectedPins?: (string | number)[][] | undefined;
|
|
13992
13998
|
standard?: "0603" | "0805" | "1206" | "TSC0001_36P_XALT_2025_11" | undefined;
|
|
13993
13999
|
}>;
|
|
@@ -23657,8 +23663,8 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
23657
23663
|
name: zod.ZodOptional<zod.ZodString>;
|
|
23658
23664
|
connectsTo: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodArray<zod.ZodString, "many">]>>;
|
|
23659
23665
|
shape: zod.ZodLiteral<"pill_hole_with_rect_pad">;
|
|
23660
|
-
holeShape: zod.ZodLiteral<"pill"
|
|
23661
|
-
padShape: zod.ZodLiteral<"rect"
|
|
23666
|
+
holeShape: zod.ZodOptional<zod.ZodLiteral<"pill">>;
|
|
23667
|
+
padShape: zod.ZodOptional<zod.ZodLiteral<"rect">>;
|
|
23662
23668
|
holeWidth: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
23663
23669
|
holeHeight: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
23664
23670
|
rectPadWidth: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
@@ -23674,8 +23680,6 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
23674
23680
|
holeHeight: number;
|
|
23675
23681
|
rectPadWidth: number;
|
|
23676
23682
|
rectPadHeight: number;
|
|
23677
|
-
holeShape: "pill";
|
|
23678
|
-
padShape: "rect";
|
|
23679
23683
|
pcbX?: string | number | undefined;
|
|
23680
23684
|
pcbY?: string | number | undefined;
|
|
23681
23685
|
pcbLeftEdgeX?: string | number | undefined;
|
|
@@ -23711,14 +23715,14 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
23711
23715
|
coveredWithSolderMask?: boolean | undefined;
|
|
23712
23716
|
holeOffsetX?: number | undefined;
|
|
23713
23717
|
holeOffsetY?: number | undefined;
|
|
23718
|
+
holeShape?: "pill" | undefined;
|
|
23719
|
+
padShape?: "rect" | undefined;
|
|
23714
23720
|
}, {
|
|
23715
23721
|
shape: "pill_hole_with_rect_pad";
|
|
23716
23722
|
holeWidth: string | number;
|
|
23717
23723
|
holeHeight: string | number;
|
|
23718
23724
|
rectPadWidth: string | number;
|
|
23719
23725
|
rectPadHeight: string | number;
|
|
23720
|
-
holeShape: "pill";
|
|
23721
|
-
padShape: "rect";
|
|
23722
23726
|
pcbX?: string | number | undefined;
|
|
23723
23727
|
pcbY?: string | number | undefined;
|
|
23724
23728
|
pcbLeftEdgeX?: string | number | undefined;
|
|
@@ -23754,6 +23758,8 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
23754
23758
|
coveredWithSolderMask?: boolean | undefined;
|
|
23755
23759
|
holeOffsetX?: string | number | undefined;
|
|
23756
23760
|
holeOffsetY?: string | number | undefined;
|
|
23761
|
+
holeShape?: "pill" | undefined;
|
|
23762
|
+
padShape?: "rect" | undefined;
|
|
23757
23763
|
}>, zod.ZodObject<Omit<{
|
|
23758
23764
|
pcbX: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>]>>;
|
|
23759
23765
|
pcbY: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>]>>;
|
|
@@ -24104,8 +24110,6 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
24104
24110
|
holeHeight: number;
|
|
24105
24111
|
rectPadWidth: number;
|
|
24106
24112
|
rectPadHeight: number;
|
|
24107
|
-
holeShape: "pill";
|
|
24108
|
-
padShape: "rect";
|
|
24109
24113
|
pcbX?: string | number | undefined;
|
|
24110
24114
|
pcbY?: string | number | undefined;
|
|
24111
24115
|
pcbLeftEdgeX?: string | number | undefined;
|
|
@@ -24141,6 +24145,8 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
24141
24145
|
coveredWithSolderMask?: boolean | undefined;
|
|
24142
24146
|
holeOffsetX?: number | undefined;
|
|
24143
24147
|
holeOffsetY?: number | undefined;
|
|
24148
|
+
holeShape?: "pill" | undefined;
|
|
24149
|
+
padShape?: "rect" | undefined;
|
|
24144
24150
|
} | {
|
|
24145
24151
|
shape: "hole_with_polygon_pad";
|
|
24146
24152
|
holeOffsetX: number;
|
|
@@ -24360,8 +24366,6 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
24360
24366
|
holeHeight: string | number;
|
|
24361
24367
|
rectPadWidth: string | number;
|
|
24362
24368
|
rectPadHeight: string | number;
|
|
24363
|
-
holeShape: "pill";
|
|
24364
|
-
padShape: "rect";
|
|
24365
24369
|
pcbX?: string | number | undefined;
|
|
24366
24370
|
pcbY?: string | number | undefined;
|
|
24367
24371
|
pcbLeftEdgeX?: string | number | undefined;
|
|
@@ -24397,6 +24401,8 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
24397
24401
|
coveredWithSolderMask?: boolean | undefined;
|
|
24398
24402
|
holeOffsetX?: string | number | undefined;
|
|
24399
24403
|
holeOffsetY?: string | number | undefined;
|
|
24404
|
+
holeShape?: "pill" | undefined;
|
|
24405
|
+
padShape?: "rect" | undefined;
|
|
24400
24406
|
} | {
|
|
24401
24407
|
shape: "hole_with_polygon_pad";
|
|
24402
24408
|
holeOffsetX: string | number;
|
package/dist/index.js
CHANGED
|
@@ -9430,6 +9430,7 @@ var NormalComponent3 = class extends PrimitiveComponent2 {
|
|
|
9430
9430
|
}
|
|
9431
9431
|
doInitialPartsEngineRender() {
|
|
9432
9432
|
if (this.props.doNotPlace) return;
|
|
9433
|
+
if (this.getInheritedProperty("bomDisabled")) return;
|
|
9433
9434
|
const partsEngine = this.getInheritedProperty("partsEngine");
|
|
9434
9435
|
if (!partsEngine) return;
|
|
9435
9436
|
const { db } = this.root;
|
|
@@ -9470,6 +9471,7 @@ var NormalComponent3 = class extends PrimitiveComponent2 {
|
|
|
9470
9471
|
}
|
|
9471
9472
|
updatePartsEngineRender() {
|
|
9472
9473
|
if (this.props.doNotPlace) return;
|
|
9474
|
+
if (this.getInheritedProperty("bomDisabled")) return;
|
|
9473
9475
|
const { db } = this.root;
|
|
9474
9476
|
const source_component = db.source_component.get(this.source_component_id);
|
|
9475
9477
|
if (!source_component) return;
|
|
@@ -19771,7 +19773,7 @@ import { identity as identity5 } from "transformation-matrix";
|
|
|
19771
19773
|
var package_default = {
|
|
19772
19774
|
name: "@tscircuit/core",
|
|
19773
19775
|
type: "module",
|
|
19774
|
-
version: "0.0.
|
|
19776
|
+
version: "0.0.939",
|
|
19775
19777
|
types: "dist/index.d.ts",
|
|
19776
19778
|
main: "dist/index.js",
|
|
19777
19779
|
module: "dist/index.js",
|
|
@@ -19815,7 +19817,7 @@ var package_default = {
|
|
|
19815
19817
|
"@tscircuit/math-utils": "^0.0.29",
|
|
19816
19818
|
"@tscircuit/miniflex": "^0.0.4",
|
|
19817
19819
|
"@tscircuit/ngspice-spice-engine": "^0.0.8",
|
|
19818
|
-
"@tscircuit/props": "^0.0.
|
|
19820
|
+
"@tscircuit/props": "^0.0.435",
|
|
19819
19821
|
"@tscircuit/schematic-autolayout": "^0.0.6",
|
|
19820
19822
|
"@tscircuit/schematic-match-adapt": "^0.0.16",
|
|
19821
19823
|
"@tscircuit/schematic-trace-solver": "^v0.0.45",
|
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.940",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@tscircuit/math-utils": "^0.0.29",
|
|
46
46
|
"@tscircuit/miniflex": "^0.0.4",
|
|
47
47
|
"@tscircuit/ngspice-spice-engine": "^0.0.8",
|
|
48
|
-
"@tscircuit/props": "^0.0.
|
|
48
|
+
"@tscircuit/props": "^0.0.435",
|
|
49
49
|
"@tscircuit/schematic-autolayout": "^0.0.6",
|
|
50
50
|
"@tscircuit/schematic-match-adapt": "^0.0.16",
|
|
51
51
|
"@tscircuit/schematic-trace-solver": "^v0.0.45",
|