@tscircuit/core 0.0.843 → 0.0.845
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 +7 -0
- package/dist/index.js +12 -4
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -340,6 +340,7 @@ declare abstract class PrimitiveComponent<ZodProps extends ZodType = any> extend
|
|
|
340
340
|
_parsedProps: z.infer<ZodProps>;
|
|
341
341
|
get componentName(): string;
|
|
342
342
|
getInheritedProperty(propertyName: string): any;
|
|
343
|
+
getInheritedMergedProperty(propertyName: string): any;
|
|
343
344
|
get lowercaseComponentName(): string;
|
|
344
345
|
externallyAddedAliases: string[];
|
|
345
346
|
/**
|
|
@@ -24653,20 +24654,26 @@ declare class CopperPour extends PrimitiveComponent<typeof copperPourProps> {
|
|
|
24653
24654
|
connectsTo: zod.ZodString;
|
|
24654
24655
|
padMargin: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
24655
24656
|
traceMargin: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
24657
|
+
clearance: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
24658
|
+
coveredWithSolderMask: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
|
|
24656
24659
|
}, "strip", zod.ZodTypeAny, {
|
|
24657
24660
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
24658
24661
|
connectsTo: string;
|
|
24662
|
+
coveredWithSolderMask: boolean;
|
|
24659
24663
|
name?: string | undefined;
|
|
24660
24664
|
padMargin?: number | undefined;
|
|
24661
24665
|
traceMargin?: number | undefined;
|
|
24666
|
+
clearance?: number | undefined;
|
|
24662
24667
|
}, {
|
|
24663
24668
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
24664
24669
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
24665
24670
|
};
|
|
24666
24671
|
connectsTo: string;
|
|
24667
24672
|
name?: string | undefined;
|
|
24673
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
24668
24674
|
padMargin?: string | number | undefined;
|
|
24669
24675
|
traceMargin?: string | number | undefined;
|
|
24676
|
+
clearance?: string | number | undefined;
|
|
24670
24677
|
}>;
|
|
24671
24678
|
};
|
|
24672
24679
|
getPcbSize(): {
|
package/dist/index.js
CHANGED
|
@@ -669,6 +669,11 @@ var PrimitiveComponent2 = class extends Renderable {
|
|
|
669
669
|
}
|
|
670
670
|
return void 0;
|
|
671
671
|
}
|
|
672
|
+
getInheritedMergedProperty(propertyName) {
|
|
673
|
+
const parentPropertyObject = this.parent?.getInheritedMergedProperty?.(propertyName);
|
|
674
|
+
const myPropertyObject = this._parsedProps?.[propertyName];
|
|
675
|
+
return { ...parentPropertyObject, ...myPropertyObject };
|
|
676
|
+
}
|
|
672
677
|
get lowercaseComponentName() {
|
|
673
678
|
return this.componentName.toLowerCase();
|
|
674
679
|
}
|
|
@@ -7479,9 +7484,12 @@ function NormalComponent_doInitialPcbFootprintStringRender(component, queueAsync
|
|
|
7479
7484
|
resolverFn = libMap;
|
|
7480
7485
|
}
|
|
7481
7486
|
if (!resolverFn) return;
|
|
7487
|
+
const resolvedPcbStyle = component.getInheritedMergedProperty("pcbStyle");
|
|
7482
7488
|
queueAsyncEffect("load-lib-footprint", async () => {
|
|
7483
7489
|
try {
|
|
7484
|
-
const result = await resolverFn(libRef.footprintName
|
|
7490
|
+
const result = await resolverFn(libRef.footprintName, {
|
|
7491
|
+
resolvedPcbStyle
|
|
7492
|
+
});
|
|
7485
7493
|
let circuitJson = null;
|
|
7486
7494
|
if (Array.isArray(result)) {
|
|
7487
7495
|
circuitJson = result;
|
|
@@ -17821,7 +17829,7 @@ import { identity as identity6 } from "transformation-matrix";
|
|
|
17821
17829
|
var package_default = {
|
|
17822
17830
|
name: "@tscircuit/core",
|
|
17823
17831
|
type: "module",
|
|
17824
|
-
version: "0.0.
|
|
17832
|
+
version: "0.0.844",
|
|
17825
17833
|
types: "dist/index.d.ts",
|
|
17826
17834
|
main: "dist/index.js",
|
|
17827
17835
|
module: "dist/index.js",
|
|
@@ -17855,7 +17863,7 @@ var package_default = {
|
|
|
17855
17863
|
"@tscircuit/capacity-autorouter": "^0.0.140",
|
|
17856
17864
|
"@tscircuit/checks": "^0.0.85",
|
|
17857
17865
|
"@tscircuit/circuit-json-util": "^0.0.72",
|
|
17858
|
-
"@tscircuit/common": "^0.0.
|
|
17866
|
+
"@tscircuit/common": "^0.0.20",
|
|
17859
17867
|
"@tscircuit/footprinter": "^0.0.236",
|
|
17860
17868
|
"@tscircuit/import-snippet": "^0.0.4",
|
|
17861
17869
|
"@tscircuit/infgrid-ijump-astar": "^0.0.33",
|
|
@@ -17864,7 +17872,7 @@ var package_default = {
|
|
|
17864
17872
|
"@tscircuit/math-utils": "^0.0.29",
|
|
17865
17873
|
"@tscircuit/miniflex": "^0.0.4",
|
|
17866
17874
|
"@tscircuit/ngspice-spice-engine": "^0.0.2",
|
|
17867
|
-
"@tscircuit/props": "^0.0.
|
|
17875
|
+
"@tscircuit/props": "^0.0.393",
|
|
17868
17876
|
"@tscircuit/schematic-autolayout": "^0.0.6",
|
|
17869
17877
|
"@tscircuit/schematic-match-adapt": "^0.0.16",
|
|
17870
17878
|
"@tscircuit/schematic-trace-solver": "^0.0.43",
|
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.845",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@tscircuit/capacity-autorouter": "^0.0.140",
|
|
36
36
|
"@tscircuit/checks": "^0.0.85",
|
|
37
37
|
"@tscircuit/circuit-json-util": "^0.0.72",
|
|
38
|
-
"@tscircuit/common": "^0.0.
|
|
38
|
+
"@tscircuit/common": "^0.0.20",
|
|
39
39
|
"@tscircuit/footprinter": "^0.0.236",
|
|
40
40
|
"@tscircuit/import-snippet": "^0.0.4",
|
|
41
41
|
"@tscircuit/infgrid-ijump-astar": "^0.0.33",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@tscircuit/math-utils": "^0.0.29",
|
|
45
45
|
"@tscircuit/miniflex": "^0.0.4",
|
|
46
46
|
"@tscircuit/ngspice-spice-engine": "^0.0.2",
|
|
47
|
-
"@tscircuit/props": "^0.0.
|
|
47
|
+
"@tscircuit/props": "^0.0.393",
|
|
48
48
|
"@tscircuit/schematic-autolayout": "^0.0.6",
|
|
49
49
|
"@tscircuit/schematic-match-adapt": "^0.0.16",
|
|
50
50
|
"@tscircuit/schematic-trace-solver": "^0.0.43",
|