@tscircuit/props 0.0.383 → 0.0.384
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/README.md +2 -0
- package/dist/index.d.ts +7 -6
- package/dist/index.js +921 -917
- package/dist/index.js.map +1 -1
- package/lib/common/layout.ts +5 -16
- package/lib/common/pcbStyle.ts +13 -0
- package/lib/components/group.ts +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1335,6 +1335,10 @@ type BasicFootprint = "0402" | "0603" | "0805" | "1206" | "1210" | "dip" | "axia
|
|
|
1335
1335
|
type FootprintProp = AutocompleteString<BasicFootprint> | KicadAutocompleteStringPath | ReactElement | FootprintSoupElements[];
|
|
1336
1336
|
declare const footprintProp: z.ZodType<FootprintProp, z.ZodTypeDef, FootprintProp>;
|
|
1337
1337
|
|
|
1338
|
+
interface PcbStyle {
|
|
1339
|
+
silkscreenFontSize?: string | number;
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1338
1342
|
type SymbolProp = string | ReactElement;
|
|
1339
1343
|
declare const symbolProp: z.ZodType<SymbolProp, z.ZodTypeDef, SymbolProp>;
|
|
1340
1344
|
|
|
@@ -1356,9 +1360,7 @@ interface PcbLayoutProps {
|
|
|
1356
1360
|
pcbMarginLeft?: string | number;
|
|
1357
1361
|
pcbMarginX?: string | number;
|
|
1358
1362
|
pcbMarginY?: string | number;
|
|
1359
|
-
pcbStyle?:
|
|
1360
|
-
silkscreenFontSize?: string | number;
|
|
1361
|
-
};
|
|
1363
|
+
pcbStyle?: PcbStyle;
|
|
1362
1364
|
/**
|
|
1363
1365
|
* If true, pcbX/pcbY will be interpreted relative to the parent group
|
|
1364
1366
|
*/
|
|
@@ -1382,9 +1384,7 @@ interface CommonLayoutProps {
|
|
|
1382
1384
|
pcbMarginLeft?: string | number;
|
|
1383
1385
|
pcbMarginX?: string | number;
|
|
1384
1386
|
pcbMarginY?: string | number;
|
|
1385
|
-
pcbStyle?:
|
|
1386
|
-
silkscreenFontSize?: string | number;
|
|
1387
|
-
};
|
|
1387
|
+
pcbStyle?: PcbStyle;
|
|
1388
1388
|
schMarginTop?: string | number;
|
|
1389
1389
|
schMarginRight?: string | number;
|
|
1390
1390
|
schMarginBottom?: string | number;
|
|
@@ -5187,6 +5187,7 @@ interface BaseGroupProps extends CommonLayoutProps, LayoutConfig {
|
|
|
5187
5187
|
name?: string;
|
|
5188
5188
|
key?: any;
|
|
5189
5189
|
children?: any;
|
|
5190
|
+
pcbStyle?: PcbStyle;
|
|
5190
5191
|
/**
|
|
5191
5192
|
* Title to display above this group in the schematic view
|
|
5192
5193
|
*/
|