@tscircuit/props 0.0.451 → 0.0.453

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 CHANGED
@@ -1454,6 +1454,9 @@ export interface SchematicLineProps {
1454
1454
  ```ts
1455
1455
  export interface SchematicPathProps {
1456
1456
  points: Point[];
1457
+ svgPath?: string;
1458
+ strokeWidth?: Distance;
1459
+ strokeColor?: string;
1457
1460
  isFilled?: boolean;
1458
1461
  fillColor?: "red" | "blue";
1459
1462
  }
package/dist/index.d.ts CHANGED
@@ -163163,6 +163163,9 @@ declare const schematicPathProps: z.ZodObject<{
163163
163163
  x: string | number;
163164
163164
  y: string | number;
163165
163165
  }>, "many">;
163166
+ svgPath: z.ZodOptional<z.ZodString>;
163167
+ strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
163168
+ strokeColor: z.ZodOptional<z.ZodString>;
163166
163169
  isFilled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
163167
163170
  fillColor: z.ZodOptional<z.ZodEnum<["red", "blue"]>>;
163168
163171
  }, "strip", z.ZodTypeAny, {
@@ -163171,17 +163174,26 @@ declare const schematicPathProps: z.ZodObject<{
163171
163174
  y: number;
163172
163175
  }[];
163173
163176
  isFilled: boolean;
163177
+ strokeWidth?: number | undefined;
163174
163178
  fillColor?: "red" | "blue" | undefined;
163179
+ svgPath?: string | undefined;
163180
+ strokeColor?: string | undefined;
163175
163181
  }, {
163176
163182
  points: {
163177
163183
  x: string | number;
163178
163184
  y: string | number;
163179
163185
  }[];
163186
+ strokeWidth?: string | number | undefined;
163180
163187
  isFilled?: boolean | undefined;
163181
163188
  fillColor?: "red" | "blue" | undefined;
163189
+ svgPath?: string | undefined;
163190
+ strokeColor?: string | undefined;
163182
163191
  }>;
163183
163192
  interface SchematicPathProps {
163184
163193
  points: Point[];
163194
+ svgPath?: string;
163195
+ strokeWidth?: Distance;
163196
+ strokeColor?: string;
163185
163197
  isFilled?: boolean;
163186
163198
  fillColor?: "red" | "blue";
163187
163199
  }
package/dist/index.js CHANGED
@@ -2321,49 +2321,52 @@ var schematicTextProps = z99.object({
2321
2321
  expectTypesMatch(true);
2322
2322
 
2323
2323
  // lib/components/schematic-path.ts
2324
- import { point as point8 } from "circuit-json";
2324
+ import { distance as distance33, point as point8 } from "circuit-json";
2325
2325
  import { z as z100 } from "zod";
2326
2326
  var schematicPathProps = z100.object({
2327
2327
  points: z100.array(point8),
2328
+ svgPath: z100.string().optional(),
2329
+ strokeWidth: distance33.optional(),
2330
+ strokeColor: z100.string().optional(),
2328
2331
  isFilled: z100.boolean().optional().default(false),
2329
2332
  fillColor: z100.enum(["red", "blue"]).optional()
2330
2333
  });
2331
2334
  expectTypesMatch(true);
2332
2335
 
2333
2336
  // lib/components/schematic-table.ts
2334
- import { distance as distance33 } from "circuit-json";
2337
+ import { distance as distance34 } from "circuit-json";
2335
2338
  import { z as z101 } from "zod";
2336
2339
  var schematicTableProps = z101.object({
2337
- schX: distance33.optional(),
2338
- schY: distance33.optional(),
2340
+ schX: distance34.optional(),
2341
+ schY: distance34.optional(),
2339
2342
  children: z101.any().optional(),
2340
- cellPadding: distance33.optional(),
2341
- borderWidth: distance33.optional(),
2343
+ cellPadding: distance34.optional(),
2344
+ borderWidth: distance34.optional(),
2342
2345
  anchor: ninePointAnchor.optional(),
2343
- fontSize: distance33.optional()
2346
+ fontSize: distance34.optional()
2344
2347
  });
2345
2348
  expectTypesMatch(true);
2346
2349
 
2347
2350
  // lib/components/schematic-row.ts
2348
- import { distance as distance34 } from "circuit-json";
2351
+ import { distance as distance35 } from "circuit-json";
2349
2352
  import { z as z102 } from "zod";
2350
2353
  var schematicRowProps = z102.object({
2351
2354
  children: z102.any().optional(),
2352
- height: distance34.optional()
2355
+ height: distance35.optional()
2353
2356
  });
2354
2357
  expectTypesMatch(true);
2355
2358
 
2356
2359
  // lib/components/schematic-cell.ts
2357
- import { distance as distance35 } from "circuit-json";
2360
+ import { distance as distance36 } from "circuit-json";
2358
2361
  import { z as z103 } from "zod";
2359
2362
  var schematicCellProps = z103.object({
2360
2363
  children: z103.string().optional(),
2361
2364
  horizontalAlign: z103.enum(["left", "center", "right"]).optional(),
2362
2365
  verticalAlign: z103.enum(["top", "middle", "bottom"]).optional(),
2363
- fontSize: distance35.optional(),
2366
+ fontSize: distance36.optional(),
2364
2367
  rowSpan: z103.number().optional(),
2365
2368
  colSpan: z103.number().optional(),
2366
- width: distance35.optional(),
2369
+ width: distance36.optional(),
2367
2370
  text: z103.string().optional()
2368
2371
  });
2369
2372
  expectTypesMatch(true);
@@ -2420,7 +2423,7 @@ var silkscreenPathProps = pcbLayoutProps.omit({
2420
2423
  });
2421
2424
 
2422
2425
  // lib/components/silkscreen-line.ts
2423
- import { distance as distance36 } from "circuit-json";
2426
+ import { distance as distance37 } from "circuit-json";
2424
2427
  var silkscreenLineProps = pcbLayoutProps.omit({
2425
2428
  pcbX: true,
2426
2429
  pcbY: true,
@@ -2428,41 +2431,41 @@ var silkscreenLineProps = pcbLayoutProps.omit({
2428
2431
  pcbOffsetY: true,
2429
2432
  pcbRotation: true
2430
2433
  }).extend({
2431
- strokeWidth: distance36,
2432
- x1: distance36,
2433
- y1: distance36,
2434
- x2: distance36,
2435
- y2: distance36
2434
+ strokeWidth: distance37,
2435
+ x1: distance37,
2436
+ y1: distance37,
2437
+ x2: distance37,
2438
+ y2: distance37
2436
2439
  });
2437
2440
 
2438
2441
  // lib/components/silkscreen-rect.ts
2439
- import { distance as distance37 } from "circuit-json";
2442
+ import { distance as distance38 } from "circuit-json";
2440
2443
  import { z as z107 } from "zod";
2441
2444
  var silkscreenRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
2442
2445
  filled: z107.boolean().default(true).optional(),
2443
2446
  stroke: z107.enum(["dashed", "solid", "none"]).optional(),
2444
- strokeWidth: distance37.optional(),
2445
- width: distance37,
2446
- height: distance37,
2447
- cornerRadius: distance37.optional()
2447
+ strokeWidth: distance38.optional(),
2448
+ width: distance38,
2449
+ height: distance38,
2450
+ cornerRadius: distance38.optional()
2448
2451
  });
2449
2452
 
2450
2453
  // lib/components/silkscreen-circle.ts
2451
- import { distance as distance38 } from "circuit-json";
2454
+ import { distance as distance39 } from "circuit-json";
2452
2455
  import { z as z108 } from "zod";
2453
2456
  var silkscreenCircleProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
2454
2457
  isFilled: z108.boolean().optional(),
2455
2458
  isOutline: z108.boolean().optional(),
2456
- strokeWidth: distance38.optional(),
2457
- radius: distance38
2459
+ strokeWidth: distance39.optional(),
2460
+ radius: distance39
2458
2461
  });
2459
2462
 
2460
2463
  // lib/components/trace-hint.ts
2461
- import { distance as distance39, layer_ref as layer_ref10, route_hint_point as route_hint_point6 } from "circuit-json";
2464
+ import { distance as distance40, layer_ref as layer_ref10, route_hint_point as route_hint_point6 } from "circuit-json";
2462
2465
  import { z as z109 } from "zod";
2463
2466
  var routeHintPointProps = z109.object({
2464
- x: distance39,
2465
- y: distance39,
2467
+ x: distance40,
2468
+ y: distance40,
2466
2469
  via: z109.boolean().optional(),
2467
2470
  toLayer: layer_ref10.optional()
2468
2471
  });
@@ -2499,17 +2502,17 @@ var pcbNoteTextProps = pcbLayoutProps.extend({
2499
2502
  expectTypesMatch(true);
2500
2503
 
2501
2504
  // lib/components/pcb-note-rect.ts
2502
- import { distance as distance40 } from "circuit-json";
2505
+ import { distance as distance41 } from "circuit-json";
2503
2506
  import { z as z112 } from "zod";
2504
2507
  var pcbNoteRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
2505
- width: distance40,
2506
- height: distance40,
2507
- strokeWidth: distance40.optional(),
2508
+ width: distance41,
2509
+ height: distance41,
2510
+ strokeWidth: distance41.optional(),
2508
2511
  isFilled: z112.boolean().optional(),
2509
2512
  hasStroke: z112.boolean().optional(),
2510
2513
  isStrokeDashed: z112.boolean().optional(),
2511
2514
  color: z112.string().optional(),
2512
- cornerRadius: distance40.optional()
2515
+ cornerRadius: distance41.optional()
2513
2516
  });
2514
2517
  expectTypesMatch(true);
2515
2518
 
@@ -2537,7 +2540,7 @@ var pcbNotePathProps = pcbLayoutProps.omit({
2537
2540
  expectTypesMatch(true);
2538
2541
 
2539
2542
  // lib/components/pcb-note-line.ts
2540
- import { distance as distance41 } from "circuit-json";
2543
+ import { distance as distance42 } from "circuit-json";
2541
2544
  import { z as z114 } from "zod";
2542
2545
  var pcbNoteLineProps = pcbLayoutProps.omit({
2543
2546
  pcbLeftEdgeX: true,
@@ -2550,18 +2553,18 @@ var pcbNoteLineProps = pcbLayoutProps.omit({
2550
2553
  pcbOffsetY: true,
2551
2554
  pcbRotation: true
2552
2555
  }).extend({
2553
- x1: distance41,
2554
- y1: distance41,
2555
- x2: distance41,
2556
- y2: distance41,
2557
- strokeWidth: distance41.optional(),
2556
+ x1: distance42,
2557
+ y1: distance42,
2558
+ x2: distance42,
2559
+ y2: distance42,
2560
+ strokeWidth: distance42.optional(),
2558
2561
  color: z114.string().optional(),
2559
2562
  isDashed: z114.boolean().optional()
2560
2563
  });
2561
2564
  expectTypesMatch(true);
2562
2565
 
2563
2566
  // lib/components/pcb-note-dimension.ts
2564
- import { distance as distance42, length as length12 } from "circuit-json";
2567
+ import { distance as distance43, length as length12 } from "circuit-json";
2565
2568
  import { z as z115 } from "zod";
2566
2569
  var dimensionTarget2 = z115.union([z115.string(), point]);
2567
2570
  var pcbNoteDimensionProps = pcbLayoutProps.omit({
@@ -2578,11 +2581,11 @@ var pcbNoteDimensionProps = pcbLayoutProps.omit({
2578
2581
  from: dimensionTarget2,
2579
2582
  to: dimensionTarget2,
2580
2583
  text: z115.string().optional(),
2581
- offset: distance42.optional(),
2584
+ offset: distance43.optional(),
2582
2585
  font: z115.enum(["tscircuit2024"]).optional(),
2583
2586
  fontSize: length12.optional(),
2584
2587
  color: z115.string().optional(),
2585
- arrowSize: distance42.optional(),
2588
+ arrowSize: distance43.optional(),
2586
2589
  units: z115.enum(["in", "mm"]).optional(),
2587
2590
  outerEdgeToEdge: z115.literal(true).optional(),
2588
2591
  centerToCenter: z115.literal(true).optional(),