@tscircuit/props 0.0.503 → 0.0.505
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 +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/lib/components/group.ts +1 -0
- package/lib/components/net.ts +2 -0
- package/lib/components/trace.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -17762,6 +17762,7 @@ type PartsEngine = {
|
|
|
17762
17762
|
fetchPartCircuitJson?: (params: {
|
|
17763
17763
|
supplierPartNumber?: string;
|
|
17764
17764
|
manufacturerPartNumber?: string;
|
|
17765
|
+
platformFetch?: typeof fetch;
|
|
17765
17766
|
}) => Promise<AnyCircuitElement[] | undefined> | AnyCircuitElement[] | undefined;
|
|
17766
17767
|
};
|
|
17767
17768
|
interface PcbRouteCache {
|
|
@@ -94377,6 +94378,7 @@ declare const capacitorPins: readonly ["pin1", "left", "anode", "pos", "pin2", "
|
|
|
94377
94378
|
interface NetProps {
|
|
94378
94379
|
name: string;
|
|
94379
94380
|
connectsTo?: string | string[];
|
|
94381
|
+
routingPhaseIndex?: number | null;
|
|
94380
94382
|
highlightColor?: string;
|
|
94381
94383
|
isPowerNet?: boolean;
|
|
94382
94384
|
isGroundNet?: boolean;
|
|
@@ -94384,6 +94386,7 @@ interface NetProps {
|
|
|
94384
94386
|
declare const netProps: z.ZodObject<{
|
|
94385
94387
|
name: z.ZodString;
|
|
94386
94388
|
connectsTo: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
94389
|
+
routingPhaseIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
94387
94390
|
highlightColor: z.ZodOptional<z.ZodString>;
|
|
94388
94391
|
isPowerNet: z.ZodOptional<z.ZodBoolean>;
|
|
94389
94392
|
isGroundNet: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -94391,12 +94394,14 @@ declare const netProps: z.ZodObject<{
|
|
|
94391
94394
|
name: string;
|
|
94392
94395
|
highlightColor?: string | undefined;
|
|
94393
94396
|
connectsTo?: string | string[] | undefined;
|
|
94397
|
+
routingPhaseIndex?: number | null | undefined;
|
|
94394
94398
|
isPowerNet?: boolean | undefined;
|
|
94395
94399
|
isGroundNet?: boolean | undefined;
|
|
94396
94400
|
}, {
|
|
94397
94401
|
name: string;
|
|
94398
94402
|
highlightColor?: string | undefined;
|
|
94399
94403
|
connectsTo?: string | string[] | undefined;
|
|
94404
|
+
routingPhaseIndex?: number | null | undefined;
|
|
94400
94405
|
isPowerNet?: boolean | undefined;
|
|
94401
94406
|
isGroundNet?: boolean | undefined;
|
|
94402
94407
|
}>;
|
|
@@ -103012,6 +103017,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
103012
103017
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
103013
103018
|
} | undefined;
|
|
103014
103019
|
}>, z.ZodString]>, "many">, "many">>;
|
|
103020
|
+
routingPhaseIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
103015
103021
|
pcbStraightLine: z.ZodOptional<z.ZodBoolean>;
|
|
103016
103022
|
schDisplayLabel: z.ZodOptional<z.ZodString>;
|
|
103017
103023
|
schStroke: z.ZodOptional<z.ZodString>;
|
|
@@ -103034,6 +103040,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
103034
103040
|
width?: number | undefined;
|
|
103035
103041
|
maxLength?: number | undefined;
|
|
103036
103042
|
connectsTo?: string | string[] | undefined;
|
|
103043
|
+
routingPhaseIndex?: number | null | undefined;
|
|
103037
103044
|
schematicRouteHints?: {
|
|
103038
103045
|
x: number;
|
|
103039
103046
|
y: number;
|
|
@@ -103073,6 +103080,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
103073
103080
|
width?: string | number | undefined;
|
|
103074
103081
|
maxLength?: string | number | undefined;
|
|
103075
103082
|
connectsTo?: string | string[] | undefined;
|
|
103083
|
+
routingPhaseIndex?: number | null | undefined;
|
|
103076
103084
|
schematicRouteHints?: {
|
|
103077
103085
|
x: string | number;
|
|
103078
103086
|
y: string | number;
|
|
@@ -103268,6 +103276,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
103268
103276
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
103269
103277
|
} | undefined;
|
|
103270
103278
|
}>, z.ZodString]>, "many">, "many">>;
|
|
103279
|
+
routingPhaseIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
103271
103280
|
pcbStraightLine: z.ZodOptional<z.ZodBoolean>;
|
|
103272
103281
|
schDisplayLabel: z.ZodOptional<z.ZodString>;
|
|
103273
103282
|
schStroke: z.ZodOptional<z.ZodString>;
|
|
@@ -103298,6 +103307,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
103298
103307
|
width?: number | undefined;
|
|
103299
103308
|
maxLength?: number | undefined;
|
|
103300
103309
|
connectsTo?: string | string[] | undefined;
|
|
103310
|
+
routingPhaseIndex?: number | null | undefined;
|
|
103301
103311
|
schematicRouteHints?: {
|
|
103302
103312
|
x: number;
|
|
103303
103313
|
y: number;
|
|
@@ -103340,6 +103350,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
103340
103350
|
width?: string | number | undefined;
|
|
103341
103351
|
maxLength?: string | number | undefined;
|
|
103342
103352
|
connectsTo?: string | string[] | undefined;
|
|
103353
|
+
routingPhaseIndex?: number | null | undefined;
|
|
103343
103354
|
schematicRouteHints?: {
|
|
103344
103355
|
x: string | number;
|
|
103345
103356
|
y: string | number;
|
package/dist/index.js
CHANGED
|
@@ -16875,6 +16875,7 @@ import { z as z54 } from "zod";
|
|
|
16875
16875
|
var netProps = z54.object({
|
|
16876
16876
|
name: z54.string(),
|
|
16877
16877
|
connectsTo: z54.string().or(z54.array(z54.string())).optional(),
|
|
16878
|
+
routingPhaseIndex: z54.number().nullable().optional(),
|
|
16878
16879
|
highlightColor: z54.string().optional(),
|
|
16879
16880
|
isPowerNet: z54.boolean().optional(),
|
|
16880
16881
|
isGroundNet: z54.boolean().optional()
|
|
@@ -17150,6 +17151,7 @@ var baseTraceProps = z62.object({
|
|
|
17150
17151
|
pcbPathRelativeTo: z62.string().optional(),
|
|
17151
17152
|
pcbPath: pcbPath.optional(),
|
|
17152
17153
|
pcbPaths: z62.array(pcbPath).optional(),
|
|
17154
|
+
routingPhaseIndex: z62.number().nullable().optional(),
|
|
17153
17155
|
pcbStraightLine: z62.boolean().optional().describe("Draw a straight pcb trace between the connected points"),
|
|
17154
17156
|
schDisplayLabel: z62.string().optional(),
|
|
17155
17157
|
schStroke: z62.string().optional(),
|