@tscircuit/props 0.0.429 → 0.0.431
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 +42 -0
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/lib/components/trace.ts +5 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -41829,11 +41829,22 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
41829
41829
|
x: string | number;
|
|
41830
41830
|
y: string | number;
|
|
41831
41831
|
}>, z.ZodString]>, "many">>;
|
|
41832
|
+
pcbPaths: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
41833
|
+
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
41834
|
+
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
41835
|
+
}, "strip", z.ZodTypeAny, {
|
|
41836
|
+
x: number;
|
|
41837
|
+
y: number;
|
|
41838
|
+
}, {
|
|
41839
|
+
x: string | number;
|
|
41840
|
+
y: string | number;
|
|
41841
|
+
}>, z.ZodString]>, "many">, "many">>;
|
|
41832
41842
|
pcbStraightLine: z.ZodOptional<z.ZodBoolean>;
|
|
41833
41843
|
schDisplayLabel: z.ZodOptional<z.ZodString>;
|
|
41834
41844
|
schStroke: z.ZodOptional<z.ZodString>;
|
|
41835
41845
|
highlightColor: z.ZodOptional<z.ZodString>;
|
|
41836
41846
|
maxLength: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
41847
|
+
connectsTo: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
41837
41848
|
} & {
|
|
41838
41849
|
path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<{
|
|
41839
41850
|
getPortSelector: () => string;
|
|
@@ -41849,6 +41860,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
41849
41860
|
width?: number | undefined;
|
|
41850
41861
|
thickness?: number | undefined;
|
|
41851
41862
|
maxLength?: number | undefined;
|
|
41863
|
+
connectsTo?: string | string[] | undefined;
|
|
41852
41864
|
schematicRouteHints?: {
|
|
41853
41865
|
x: number;
|
|
41854
41866
|
y: number;
|
|
@@ -41865,6 +41877,10 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
41865
41877
|
x: number;
|
|
41866
41878
|
y: number;
|
|
41867
41879
|
})[] | undefined;
|
|
41880
|
+
pcbPaths?: (string | {
|
|
41881
|
+
x: number;
|
|
41882
|
+
y: number;
|
|
41883
|
+
})[][] | undefined;
|
|
41868
41884
|
pcbStraightLine?: boolean | undefined;
|
|
41869
41885
|
schDisplayLabel?: string | undefined;
|
|
41870
41886
|
schStroke?: string | undefined;
|
|
@@ -41877,6 +41893,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
41877
41893
|
width?: string | number | undefined;
|
|
41878
41894
|
thickness?: string | number | undefined;
|
|
41879
41895
|
maxLength?: string | number | undefined;
|
|
41896
|
+
connectsTo?: string | string[] | undefined;
|
|
41880
41897
|
schematicRouteHints?: {
|
|
41881
41898
|
x: string | number;
|
|
41882
41899
|
y: string | number;
|
|
@@ -41895,6 +41912,10 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
41895
41912
|
x: string | number;
|
|
41896
41913
|
y: string | number;
|
|
41897
41914
|
})[] | undefined;
|
|
41915
|
+
pcbPaths?: (string | {
|
|
41916
|
+
x: string | number;
|
|
41917
|
+
y: string | number;
|
|
41918
|
+
})[][] | undefined;
|
|
41898
41919
|
pcbStraightLine?: boolean | undefined;
|
|
41899
41920
|
schDisplayLabel?: string | undefined;
|
|
41900
41921
|
schStroke?: string | undefined;
|
|
@@ -41952,11 +41973,22 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
41952
41973
|
x: string | number;
|
|
41953
41974
|
y: string | number;
|
|
41954
41975
|
}>, z.ZodString]>, "many">>;
|
|
41976
|
+
pcbPaths: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
41977
|
+
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
41978
|
+
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
41979
|
+
}, "strip", z.ZodTypeAny, {
|
|
41980
|
+
x: number;
|
|
41981
|
+
y: number;
|
|
41982
|
+
}, {
|
|
41983
|
+
x: string | number;
|
|
41984
|
+
y: string | number;
|
|
41985
|
+
}>, z.ZodString]>, "many">, "many">>;
|
|
41955
41986
|
pcbStraightLine: z.ZodOptional<z.ZodBoolean>;
|
|
41956
41987
|
schDisplayLabel: z.ZodOptional<z.ZodString>;
|
|
41957
41988
|
schStroke: z.ZodOptional<z.ZodString>;
|
|
41958
41989
|
highlightColor: z.ZodOptional<z.ZodString>;
|
|
41959
41990
|
maxLength: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
41991
|
+
connectsTo: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
41960
41992
|
} & {
|
|
41961
41993
|
from: z.ZodUnion<[z.ZodString, z.ZodType<{
|
|
41962
41994
|
getPortSelector: () => string;
|
|
@@ -41980,6 +42012,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
41980
42012
|
width?: number | undefined;
|
|
41981
42013
|
thickness?: number | undefined;
|
|
41982
42014
|
maxLength?: number | undefined;
|
|
42015
|
+
connectsTo?: string | string[] | undefined;
|
|
41983
42016
|
schematicRouteHints?: {
|
|
41984
42017
|
x: number;
|
|
41985
42018
|
y: number;
|
|
@@ -41996,6 +42029,10 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
41996
42029
|
x: number;
|
|
41997
42030
|
y: number;
|
|
41998
42031
|
})[] | undefined;
|
|
42032
|
+
pcbPaths?: (string | {
|
|
42033
|
+
x: number;
|
|
42034
|
+
y: number;
|
|
42035
|
+
})[][] | undefined;
|
|
41999
42036
|
pcbStraightLine?: boolean | undefined;
|
|
42000
42037
|
schDisplayLabel?: string | undefined;
|
|
42001
42038
|
schStroke?: string | undefined;
|
|
@@ -42011,6 +42048,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
42011
42048
|
width?: string | number | undefined;
|
|
42012
42049
|
thickness?: string | number | undefined;
|
|
42013
42050
|
maxLength?: string | number | undefined;
|
|
42051
|
+
connectsTo?: string | string[] | undefined;
|
|
42014
42052
|
schematicRouteHints?: {
|
|
42015
42053
|
x: string | number;
|
|
42016
42054
|
y: string | number;
|
|
@@ -42029,6 +42067,10 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
42029
42067
|
x: string | number;
|
|
42030
42068
|
y: string | number;
|
|
42031
42069
|
})[] | undefined;
|
|
42070
|
+
pcbPaths?: (string | {
|
|
42071
|
+
x: string | number;
|
|
42072
|
+
y: string | number;
|
|
42073
|
+
})[][] | undefined;
|
|
42032
42074
|
pcbStraightLine?: boolean | undefined;
|
|
42033
42075
|
schDisplayLabel?: string | undefined;
|
|
42034
42076
|
schStroke?: string | undefined;
|
package/dist/index.js
CHANGED
|
@@ -1369,6 +1369,7 @@ var portRef = z56.union([
|
|
|
1369
1369
|
(v) => Boolean(v.getPortSelector)
|
|
1370
1370
|
)
|
|
1371
1371
|
]);
|
|
1372
|
+
var pcbPath = z56.array(z56.union([point, z56.string()]));
|
|
1372
1373
|
var baseTraceProps = z56.object({
|
|
1373
1374
|
key: z56.string().optional(),
|
|
1374
1375
|
thickness: distance16.optional(),
|
|
@@ -1376,12 +1377,14 @@ var baseTraceProps = z56.object({
|
|
|
1376
1377
|
schematicRouteHints: z56.array(point).optional(),
|
|
1377
1378
|
pcbRouteHints: z56.array(route_hint_point2).optional(),
|
|
1378
1379
|
pcbPathRelativeTo: z56.string().optional(),
|
|
1379
|
-
pcbPath:
|
|
1380
|
+
pcbPath: pcbPath.optional(),
|
|
1381
|
+
pcbPaths: z56.array(pcbPath).optional(),
|
|
1380
1382
|
pcbStraightLine: z56.boolean().optional().describe("Draw a straight pcb trace between the connected points"),
|
|
1381
1383
|
schDisplayLabel: z56.string().optional(),
|
|
1382
1384
|
schStroke: z56.string().optional(),
|
|
1383
1385
|
highlightColor: z56.string().optional(),
|
|
1384
|
-
maxLength: distance16.optional()
|
|
1386
|
+
maxLength: distance16.optional(),
|
|
1387
|
+
connectsTo: z56.string().or(z56.array(z56.string())).optional()
|
|
1385
1388
|
});
|
|
1386
1389
|
var traceProps = z56.union([
|
|
1387
1390
|
baseTraceProps.extend({
|