@tscircuit/props 0.0.612 → 0.0.613
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 +9 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/lib/components/trace.ts +6 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -104671,6 +104671,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
104671
104671
|
schStroke: z.ZodOptional<z.ZodString>;
|
|
104672
104672
|
highlightColor: z.ZodOptional<z.ZodString>;
|
|
104673
104673
|
maxLength: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
104674
|
+
maxViaCount: z.ZodOptional<z.ZodNumber>;
|
|
104674
104675
|
connectsTo: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
104675
104676
|
} & {
|
|
104676
104677
|
path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<{
|
|
@@ -104720,6 +104721,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
104720
104721
|
pcbStraightLine?: boolean | undefined;
|
|
104721
104722
|
schDisplayLabel?: string | undefined;
|
|
104722
104723
|
schStroke?: string | undefined;
|
|
104724
|
+
maxViaCount?: number | undefined;
|
|
104723
104725
|
}, {
|
|
104724
104726
|
path: (string | {
|
|
104725
104727
|
getPortSelector: () => string;
|
|
@@ -104772,6 +104774,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
104772
104774
|
pcbStraightLine?: boolean | undefined;
|
|
104773
104775
|
schDisplayLabel?: string | undefined;
|
|
104774
104776
|
schStroke?: string | undefined;
|
|
104777
|
+
maxViaCount?: number | undefined;
|
|
104775
104778
|
}>, z.ZodObject<{
|
|
104776
104779
|
key: z.ZodOptional<z.ZodString>;
|
|
104777
104780
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -104936,6 +104939,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
104936
104939
|
schStroke: z.ZodOptional<z.ZodString>;
|
|
104937
104940
|
highlightColor: z.ZodOptional<z.ZodString>;
|
|
104938
104941
|
maxLength: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
104942
|
+
maxViaCount: z.ZodOptional<z.ZodNumber>;
|
|
104939
104943
|
connectsTo: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
104940
104944
|
} & {
|
|
104941
104945
|
from: z.ZodUnion<[z.ZodString, z.ZodType<{
|
|
@@ -104993,6 +104997,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
104993
104997
|
pcbStraightLine?: boolean | undefined;
|
|
104994
104998
|
schDisplayLabel?: string | undefined;
|
|
104995
104999
|
schStroke?: string | undefined;
|
|
105000
|
+
maxViaCount?: number | undefined;
|
|
104996
105001
|
}, {
|
|
104997
105002
|
from: string | {
|
|
104998
105003
|
getPortSelector: () => string;
|
|
@@ -105048,6 +105053,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
105048
105053
|
pcbStraightLine?: boolean | undefined;
|
|
105049
105054
|
schDisplayLabel?: string | undefined;
|
|
105050
105055
|
schStroke?: string | undefined;
|
|
105056
|
+
maxViaCount?: number | undefined;
|
|
105051
105057
|
}>, z.ZodObject<{
|
|
105052
105058
|
key: z.ZodOptional<z.ZodString>;
|
|
105053
105059
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -105212,6 +105218,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
105212
105218
|
schStroke: z.ZodOptional<z.ZodString>;
|
|
105213
105219
|
highlightColor: z.ZodOptional<z.ZodString>;
|
|
105214
105220
|
maxLength: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
105221
|
+
maxViaCount: z.ZodOptional<z.ZodNumber>;
|
|
105215
105222
|
connectsTo: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
105216
105223
|
} & {
|
|
105217
105224
|
start: z.ZodUnion<[z.ZodString, z.ZodType<{
|
|
@@ -105269,6 +105276,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
105269
105276
|
pcbStraightLine?: boolean | undefined;
|
|
105270
105277
|
schDisplayLabel?: string | undefined;
|
|
105271
105278
|
schStroke?: string | undefined;
|
|
105279
|
+
maxViaCount?: number | undefined;
|
|
105272
105280
|
}, {
|
|
105273
105281
|
start: string | {
|
|
105274
105282
|
getPortSelector: () => string;
|
|
@@ -105324,6 +105332,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
105324
105332
|
pcbStraightLine?: boolean | undefined;
|
|
105325
105333
|
schDisplayLabel?: string | undefined;
|
|
105326
105334
|
schStroke?: string | undefined;
|
|
105335
|
+
maxViaCount?: number | undefined;
|
|
105327
105336
|
}>]>;
|
|
105328
105337
|
type TraceProps = z.input<typeof traceProps>;
|
|
105329
105338
|
|
package/dist/index.js
CHANGED
|
@@ -17383,6 +17383,7 @@ var baseTraceProps = z70.object({
|
|
|
17383
17383
|
schStroke: z70.string().optional(),
|
|
17384
17384
|
highlightColor: z70.string().optional(),
|
|
17385
17385
|
maxLength: distance18.optional(),
|
|
17386
|
+
maxViaCount: z70.number().int().nonnegative().optional().describe("Maximum number of vias allowed in the PCB trace route"),
|
|
17386
17387
|
connectsTo: z70.string().or(z70.array(z70.string())).optional()
|
|
17387
17388
|
});
|
|
17388
17389
|
var traceProps = z70.union([
|