@tscircuit/props 0.0.408 → 0.0.409
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 +22 -0
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/lib/components/panel.ts +12 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -12809,6 +12809,13 @@ interface PanelProps extends BaseGroupProps {
|
|
|
12809
12809
|
* If true, prevent a solder mask from being applied to this panel.
|
|
12810
12810
|
*/
|
|
12811
12811
|
noSolderMask?: boolean;
|
|
12812
|
+
/** Method for panelization */
|
|
12813
|
+
panelizationMethod?: "tab-routing" | "none";
|
|
12814
|
+
/** Gap between boards in a panel */
|
|
12815
|
+
boardGap?: Distance;
|
|
12816
|
+
tabWidth?: Distance;
|
|
12817
|
+
tabLength?: Distance;
|
|
12818
|
+
mouseBites?: boolean;
|
|
12812
12819
|
}
|
|
12813
12820
|
declare const panelProps: z.ZodObject<Omit<{
|
|
12814
12821
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -13327,6 +13334,11 @@ declare const panelProps: z.ZodObject<Omit<{
|
|
|
13327
13334
|
height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
13328
13335
|
children: z.ZodOptional<z.ZodAny>;
|
|
13329
13336
|
noSolderMask: z.ZodOptional<z.ZodBoolean>;
|
|
13337
|
+
panelizationMethod: z.ZodOptional<z.ZodEnum<["tab-routing", "none"]>>;
|
|
13338
|
+
boardGap: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
13339
|
+
tabWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
13340
|
+
tabLength: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
13341
|
+
mouseBites: z.ZodOptional<z.ZodBoolean>;
|
|
13330
13342
|
}, "strip", z.ZodTypeAny, {
|
|
13331
13343
|
width: number;
|
|
13332
13344
|
height: number;
|
|
@@ -13571,6 +13583,11 @@ declare const panelProps: z.ZodObject<Omit<{
|
|
|
13571
13583
|
schPack?: boolean | undefined;
|
|
13572
13584
|
schMatchAdapt?: boolean | undefined;
|
|
13573
13585
|
noSolderMask?: boolean | undefined;
|
|
13586
|
+
panelizationMethod?: "none" | "tab-routing" | undefined;
|
|
13587
|
+
boardGap?: number | undefined;
|
|
13588
|
+
tabWidth?: number | undefined;
|
|
13589
|
+
tabLength?: number | undefined;
|
|
13590
|
+
mouseBites?: boolean | undefined;
|
|
13574
13591
|
}, {
|
|
13575
13592
|
width: string | number;
|
|
13576
13593
|
height: string | number;
|
|
@@ -13817,6 +13834,11 @@ declare const panelProps: z.ZodObject<Omit<{
|
|
|
13817
13834
|
schPack?: boolean | undefined;
|
|
13818
13835
|
schMatchAdapt?: boolean | undefined;
|
|
13819
13836
|
noSolderMask?: boolean | undefined;
|
|
13837
|
+
panelizationMethod?: "none" | "tab-routing" | undefined;
|
|
13838
|
+
boardGap?: string | number | undefined;
|
|
13839
|
+
tabWidth?: string | number | undefined;
|
|
13840
|
+
tabLength?: string | number | undefined;
|
|
13841
|
+
mouseBites?: boolean | undefined;
|
|
13820
13842
|
}>;
|
|
13821
13843
|
|
|
13822
13844
|
interface BreakoutProps extends Omit<SubcircuitGroupProps, "subcircuit"> {
|
package/dist/index.js
CHANGED
|
@@ -732,7 +732,12 @@ var panelProps = baseGroupProps.omit({
|
|
|
732
732
|
width: distance,
|
|
733
733
|
height: distance,
|
|
734
734
|
children: z30.any().optional(),
|
|
735
|
-
noSolderMask: z30.boolean().optional()
|
|
735
|
+
noSolderMask: z30.boolean().optional(),
|
|
736
|
+
panelizationMethod: z30.enum(["tab-routing", "none"]).optional(),
|
|
737
|
+
boardGap: distance.optional(),
|
|
738
|
+
tabWidth: distance.optional(),
|
|
739
|
+
tabLength: distance.optional(),
|
|
740
|
+
mouseBites: z30.boolean().optional()
|
|
736
741
|
});
|
|
737
742
|
expectTypesMatch(true);
|
|
738
743
|
|