circuit-json 0.0.217 → 0.0.218

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
@@ -118,6 +118,7 @@ https://github.com/user-attachments/assets/2f28b7ba-689e-4d80-85b2-5bdef84b41f8
118
118
  - [SchematicPath](#schematicpath)
119
119
  - [SchematicPort](#schematicport)
120
120
  - [SchematicTable](#schematictable)
121
+ - [SchematicTableCell](#schematictablecell)
121
122
  - [SchematicText](#schematictext)
122
123
  - [SchematicTrace](#schematictrace)
123
124
  - [SchematicVoltageProbe](#schematicvoltageprobe)
@@ -1595,12 +1596,48 @@ interface SchematicPort {
1595
1596
 
1596
1597
  [Source](https://github.com/tscircuit/circuit-json/blob/main/src/schematic/schematic_table.ts)
1597
1598
 
1599
+ Defines a table on the schematic, useful for displaying data in a structured format.
1600
+
1601
+ ```typescript
1602
+ /** Defines a table on the schematic, useful for displaying data in a structured format. */
1603
+ interface SchematicTable {
1604
+ type: "schematic_table"
1605
+ schematic_table_id: string
1606
+ anchor_position: Point
1607
+ column_widths: Length[]
1608
+ row_heights: Length[]
1609
+ cell_padding?: Length
1610
+ border_width?: Length
1611
+ subcircuit_id?: string
1612
+ schematic_component_id?: string
1613
+ anchor?: NinePointAnchor
1614
+ }
1615
+ ```
1616
+
1617
+ ### SchematicTableCell
1618
+
1619
+ [Source](https://github.com/tscircuit/circuit-json/blob/main/src/schematic/schematic_table_cell.ts)
1620
+
1621
+ Defines a cell within a schematic_table
1622
+
1598
1623
  ```typescript
1624
+ /** Defines a cell within a schematic_table */
1599
1625
  interface SchematicTableCell {
1600
- text: string
1626
+ type: "schematic_table_cell"
1627
+ schematic_table_cell_id: string
1628
+ schematic_table_id: string
1629
+ start_row_index: number
1630
+ end_row_index: number
1631
+ start_column_index: number
1632
+ end_column_index: number
1633
+ text?: string
1634
+ center: Point
1635
+ width: Length
1636
+ height: Length
1601
1637
  horizontal_align?: "left" | "center" | "right"
1602
1638
  vertical_align?: "top" | "middle" | "bottom"
1603
1639
  font_size?: Length
1640
+ subcircuit_id?: string
1604
1641
  }
1605
1642
  ```
1606
1643
 
package/dist/index.d.mts CHANGED
@@ -5387,32 +5387,10 @@ interface SchematicGroup {
5387
5387
  description?: string;
5388
5388
  }
5389
5389
 
5390
- declare const schematic_table_cell: z.ZodObject<{
5391
- text: z.ZodString;
5392
- horizontal_align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
5393
- vertical_align: z.ZodOptional<z.ZodEnum<["top", "middle", "bottom"]>>;
5394
- font_size: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
5395
- }, "strip", z.ZodTypeAny, {
5396
- text: string;
5397
- font_size?: number | undefined;
5398
- horizontal_align?: "center" | "left" | "right" | undefined;
5399
- vertical_align?: "top" | "bottom" | "middle" | undefined;
5400
- }, {
5401
- text: string;
5402
- font_size?: string | number | undefined;
5403
- horizontal_align?: "center" | "left" | "right" | undefined;
5404
- vertical_align?: "top" | "bottom" | "middle" | undefined;
5405
- }>;
5406
- interface SchematicTableCell {
5407
- text: string;
5408
- horizontal_align?: "left" | "center" | "right";
5409
- vertical_align?: "top" | "middle" | "bottom";
5410
- font_size?: Length;
5411
- }
5412
5390
  declare const schematic_table: z.ZodObject<{
5413
5391
  type: z.ZodLiteral<"schematic_table">;
5414
- schematic_table_id: z.ZodString;
5415
- position: z.ZodObject<{
5392
+ schematic_table_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
5393
+ anchor_position: z.ZodObject<{
5416
5394
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
5417
5395
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
5418
5396
  }, "strip", z.ZodTypeAny, {
@@ -5422,22 +5400,6 @@ declare const schematic_table: z.ZodObject<{
5422
5400
  x: string | number;
5423
5401
  y: string | number;
5424
5402
  }>;
5425
- cells: z.ZodArray<z.ZodArray<z.ZodObject<{
5426
- text: z.ZodString;
5427
- horizontal_align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
5428
- vertical_align: z.ZodOptional<z.ZodEnum<["top", "middle", "bottom"]>>;
5429
- font_size: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
5430
- }, "strip", z.ZodTypeAny, {
5431
- text: string;
5432
- font_size?: number | undefined;
5433
- horizontal_align?: "center" | "left" | "right" | undefined;
5434
- vertical_align?: "top" | "bottom" | "middle" | undefined;
5435
- }, {
5436
- text: string;
5437
- font_size?: string | number | undefined;
5438
- horizontal_align?: "center" | "left" | "right" | undefined;
5439
- vertical_align?: "top" | "bottom" | "middle" | undefined;
5440
- }>, "many">, "many">;
5441
5403
  column_widths: z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, "many">;
5442
5404
  row_heights: z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, "many">;
5443
5405
  cell_padding: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
@@ -5447,17 +5409,11 @@ declare const schematic_table: z.ZodObject<{
5447
5409
  anchor: z.ZodOptional<z.ZodEnum<["top_left", "top_center", "top_right", "center_left", "center", "center_right", "bottom_left", "bottom_center", "bottom_right"]>>;
5448
5410
  }, "strip", z.ZodTypeAny, {
5449
5411
  type: "schematic_table";
5450
- position: {
5412
+ anchor_position: {
5451
5413
  x: number;
5452
5414
  y: number;
5453
5415
  };
5454
5416
  schematic_table_id: string;
5455
- cells: {
5456
- text: string;
5457
- font_size?: number | undefined;
5458
- horizontal_align?: "center" | "left" | "right" | undefined;
5459
- vertical_align?: "top" | "bottom" | "middle" | undefined;
5460
- }[][];
5461
5417
  column_widths: number[];
5462
5418
  row_heights: number[];
5463
5419
  anchor?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
@@ -5467,22 +5423,16 @@ declare const schematic_table: z.ZodObject<{
5467
5423
  border_width?: number | undefined;
5468
5424
  }, {
5469
5425
  type: "schematic_table";
5470
- position: {
5426
+ anchor_position: {
5471
5427
  x: string | number;
5472
5428
  y: string | number;
5473
5429
  };
5474
- schematic_table_id: string;
5475
- cells: {
5476
- text: string;
5477
- font_size?: string | number | undefined;
5478
- horizontal_align?: "center" | "left" | "right" | undefined;
5479
- vertical_align?: "top" | "bottom" | "middle" | undefined;
5480
- }[][];
5481
5430
  column_widths: (string | number)[];
5482
5431
  row_heights: (string | number)[];
5483
5432
  anchor?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
5484
5433
  subcircuit_id?: string | undefined;
5485
5434
  schematic_component_id?: string | undefined;
5435
+ schematic_table_id?: string | undefined;
5486
5436
  cell_padding?: string | number | undefined;
5487
5437
  border_width?: string | number | undefined;
5488
5438
  }>;
@@ -5493,8 +5443,7 @@ type SchematicTableInput = z.input<typeof schematic_table>;
5493
5443
  interface SchematicTable {
5494
5444
  type: "schematic_table";
5495
5445
  schematic_table_id: string;
5496
- position: Point;
5497
- cells: SchematicTableCell[][];
5446
+ anchor_position: Point;
5498
5447
  column_widths: Length[];
5499
5448
  row_heights: Length[];
5500
5449
  cell_padding?: Length;
@@ -5504,6 +5453,92 @@ interface SchematicTable {
5504
5453
  anchor?: NinePointAnchor;
5505
5454
  }
5506
5455
 
5456
+ declare const schematic_table_cell: z.ZodObject<{
5457
+ type: z.ZodLiteral<"schematic_table_cell">;
5458
+ schematic_table_cell_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
5459
+ schematic_table_id: z.ZodString;
5460
+ start_row_index: z.ZodNumber;
5461
+ end_row_index: z.ZodNumber;
5462
+ start_column_index: z.ZodNumber;
5463
+ end_column_index: z.ZodNumber;
5464
+ text: z.ZodOptional<z.ZodString>;
5465
+ center: z.ZodObject<{
5466
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
5467
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
5468
+ }, "strip", z.ZodTypeAny, {
5469
+ x: number;
5470
+ y: number;
5471
+ }, {
5472
+ x: string | number;
5473
+ y: string | number;
5474
+ }>;
5475
+ width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
5476
+ height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
5477
+ horizontal_align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
5478
+ vertical_align: z.ZodOptional<z.ZodEnum<["top", "middle", "bottom"]>>;
5479
+ font_size: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
5480
+ subcircuit_id: z.ZodOptional<z.ZodString>;
5481
+ }, "strip", z.ZodTypeAny, {
5482
+ type: "schematic_table_cell";
5483
+ width: number;
5484
+ height: number;
5485
+ center: {
5486
+ x: number;
5487
+ y: number;
5488
+ };
5489
+ schematic_table_id: string;
5490
+ schematic_table_cell_id: string;
5491
+ start_row_index: number;
5492
+ end_row_index: number;
5493
+ start_column_index: number;
5494
+ end_column_index: number;
5495
+ subcircuit_id?: string | undefined;
5496
+ text?: string | undefined;
5497
+ font_size?: number | undefined;
5498
+ horizontal_align?: "center" | "left" | "right" | undefined;
5499
+ vertical_align?: "top" | "bottom" | "middle" | undefined;
5500
+ }, {
5501
+ type: "schematic_table_cell";
5502
+ width: string | number;
5503
+ height: string | number;
5504
+ center: {
5505
+ x: string | number;
5506
+ y: string | number;
5507
+ };
5508
+ schematic_table_id: string;
5509
+ start_row_index: number;
5510
+ end_row_index: number;
5511
+ start_column_index: number;
5512
+ end_column_index: number;
5513
+ subcircuit_id?: string | undefined;
5514
+ text?: string | undefined;
5515
+ font_size?: string | number | undefined;
5516
+ schematic_table_cell_id?: string | undefined;
5517
+ horizontal_align?: "center" | "left" | "right" | undefined;
5518
+ vertical_align?: "top" | "bottom" | "middle" | undefined;
5519
+ }>;
5520
+ type SchematicTableCellInput = z.input<typeof schematic_table_cell>;
5521
+ /**
5522
+ * Defines a cell within a schematic_table
5523
+ */
5524
+ interface SchematicTableCell {
5525
+ type: "schematic_table_cell";
5526
+ schematic_table_cell_id: string;
5527
+ schematic_table_id: string;
5528
+ start_row_index: number;
5529
+ end_row_index: number;
5530
+ start_column_index: number;
5531
+ end_column_index: number;
5532
+ text?: string;
5533
+ center: Point;
5534
+ width: Length;
5535
+ height: Length;
5536
+ horizontal_align?: "left" | "center" | "right";
5537
+ vertical_align?: "top" | "middle" | "bottom";
5538
+ font_size?: Length;
5539
+ subcircuit_id?: string;
5540
+ }
5541
+
5507
5542
  type CircuitJsonError = PcbTraceError | PcbPlacementError | PcbPortNotMatchedError | PcbAutoroutingError | PcbMissingFootprintError | SchematicError;
5508
5543
 
5509
5544
  interface SourceComponentBase {
@@ -12792,8 +12827,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
12792
12827
  schematic_group_id?: string | undefined;
12793
12828
  }>, z.ZodObject<{
12794
12829
  type: z.ZodLiteral<"schematic_table">;
12795
- schematic_table_id: z.ZodString;
12796
- position: z.ZodObject<{
12830
+ schematic_table_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
12831
+ anchor_position: z.ZodObject<{
12797
12832
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
12798
12833
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
12799
12834
  }, "strip", z.ZodTypeAny, {
@@ -12803,22 +12838,6 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
12803
12838
  x: string | number;
12804
12839
  y: string | number;
12805
12840
  }>;
12806
- cells: z.ZodArray<z.ZodArray<z.ZodObject<{
12807
- text: z.ZodString;
12808
- horizontal_align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
12809
- vertical_align: z.ZodOptional<z.ZodEnum<["top", "middle", "bottom"]>>;
12810
- font_size: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
12811
- }, "strip", z.ZodTypeAny, {
12812
- text: string;
12813
- font_size?: number | undefined;
12814
- horizontal_align?: "center" | "left" | "right" | undefined;
12815
- vertical_align?: "top" | "bottom" | "middle" | undefined;
12816
- }, {
12817
- text: string;
12818
- font_size?: string | number | undefined;
12819
- horizontal_align?: "center" | "left" | "right" | undefined;
12820
- vertical_align?: "top" | "bottom" | "middle" | undefined;
12821
- }>, "many">, "many">;
12822
12841
  column_widths: z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, "many">;
12823
12842
  row_heights: z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, "many">;
12824
12843
  cell_padding: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
@@ -12828,17 +12847,11 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
12828
12847
  anchor: z.ZodOptional<z.ZodEnum<["top_left", "top_center", "top_right", "center_left", "center", "center_right", "bottom_left", "bottom_center", "bottom_right"]>>;
12829
12848
  }, "strip", z.ZodTypeAny, {
12830
12849
  type: "schematic_table";
12831
- position: {
12850
+ anchor_position: {
12832
12851
  x: number;
12833
12852
  y: number;
12834
12853
  };
12835
12854
  schematic_table_id: string;
12836
- cells: {
12837
- text: string;
12838
- font_size?: number | undefined;
12839
- horizontal_align?: "center" | "left" | "right" | undefined;
12840
- vertical_align?: "top" | "bottom" | "middle" | undefined;
12841
- }[][];
12842
12855
  column_widths: number[];
12843
12856
  row_heights: number[];
12844
12857
  anchor?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
@@ -12848,24 +12861,81 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
12848
12861
  border_width?: number | undefined;
12849
12862
  }, {
12850
12863
  type: "schematic_table";
12851
- position: {
12864
+ anchor_position: {
12852
12865
  x: string | number;
12853
12866
  y: string | number;
12854
12867
  };
12855
- schematic_table_id: string;
12856
- cells: {
12857
- text: string;
12858
- font_size?: string | number | undefined;
12859
- horizontal_align?: "center" | "left" | "right" | undefined;
12860
- vertical_align?: "top" | "bottom" | "middle" | undefined;
12861
- }[][];
12862
12868
  column_widths: (string | number)[];
12863
12869
  row_heights: (string | number)[];
12864
12870
  anchor?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
12865
12871
  subcircuit_id?: string | undefined;
12866
12872
  schematic_component_id?: string | undefined;
12873
+ schematic_table_id?: string | undefined;
12867
12874
  cell_padding?: string | number | undefined;
12868
12875
  border_width?: string | number | undefined;
12876
+ }>, z.ZodObject<{
12877
+ type: z.ZodLiteral<"schematic_table_cell">;
12878
+ schematic_table_cell_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
12879
+ schematic_table_id: z.ZodString;
12880
+ start_row_index: z.ZodNumber;
12881
+ end_row_index: z.ZodNumber;
12882
+ start_column_index: z.ZodNumber;
12883
+ end_column_index: z.ZodNumber;
12884
+ text: z.ZodOptional<z.ZodString>;
12885
+ center: z.ZodObject<{
12886
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
12887
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
12888
+ }, "strip", z.ZodTypeAny, {
12889
+ x: number;
12890
+ y: number;
12891
+ }, {
12892
+ x: string | number;
12893
+ y: string | number;
12894
+ }>;
12895
+ width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
12896
+ height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
12897
+ horizontal_align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
12898
+ vertical_align: z.ZodOptional<z.ZodEnum<["top", "middle", "bottom"]>>;
12899
+ font_size: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
12900
+ subcircuit_id: z.ZodOptional<z.ZodString>;
12901
+ }, "strip", z.ZodTypeAny, {
12902
+ type: "schematic_table_cell";
12903
+ width: number;
12904
+ height: number;
12905
+ center: {
12906
+ x: number;
12907
+ y: number;
12908
+ };
12909
+ schematic_table_id: string;
12910
+ schematic_table_cell_id: string;
12911
+ start_row_index: number;
12912
+ end_row_index: number;
12913
+ start_column_index: number;
12914
+ end_column_index: number;
12915
+ subcircuit_id?: string | undefined;
12916
+ text?: string | undefined;
12917
+ font_size?: number | undefined;
12918
+ horizontal_align?: "center" | "left" | "right" | undefined;
12919
+ vertical_align?: "top" | "bottom" | "middle" | undefined;
12920
+ }, {
12921
+ type: "schematic_table_cell";
12922
+ width: string | number;
12923
+ height: string | number;
12924
+ center: {
12925
+ x: string | number;
12926
+ y: string | number;
12927
+ };
12928
+ schematic_table_id: string;
12929
+ start_row_index: number;
12930
+ end_row_index: number;
12931
+ start_column_index: number;
12932
+ end_column_index: number;
12933
+ subcircuit_id?: string | undefined;
12934
+ text?: string | undefined;
12935
+ font_size?: string | number | undefined;
12936
+ schematic_table_cell_id?: string | undefined;
12937
+ horizontal_align?: "center" | "left" | "right" | undefined;
12938
+ vertical_align?: "top" | "bottom" | "middle" | undefined;
12869
12939
  }>, z.ZodObject<{
12870
12940
  type: z.ZodLiteral<"cad_component">;
12871
12941
  cad_component_id: z.ZodString;
@@ -17879,8 +17949,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
17879
17949
  schematic_group_id?: string | undefined;
17880
17950
  }>, z.ZodObject<{
17881
17951
  type: z.ZodLiteral<"schematic_table">;
17882
- schematic_table_id: z.ZodString;
17883
- position: z.ZodObject<{
17952
+ schematic_table_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
17953
+ anchor_position: z.ZodObject<{
17884
17954
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
17885
17955
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
17886
17956
  }, "strip", z.ZodTypeAny, {
@@ -17890,22 +17960,6 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
17890
17960
  x: string | number;
17891
17961
  y: string | number;
17892
17962
  }>;
17893
- cells: z.ZodArray<z.ZodArray<z.ZodObject<{
17894
- text: z.ZodString;
17895
- horizontal_align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
17896
- vertical_align: z.ZodOptional<z.ZodEnum<["top", "middle", "bottom"]>>;
17897
- font_size: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
17898
- }, "strip", z.ZodTypeAny, {
17899
- text: string;
17900
- font_size?: number | undefined;
17901
- horizontal_align?: "center" | "left" | "right" | undefined;
17902
- vertical_align?: "top" | "bottom" | "middle" | undefined;
17903
- }, {
17904
- text: string;
17905
- font_size?: string | number | undefined;
17906
- horizontal_align?: "center" | "left" | "right" | undefined;
17907
- vertical_align?: "top" | "bottom" | "middle" | undefined;
17908
- }>, "many">, "many">;
17909
17963
  column_widths: z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, "many">;
17910
17964
  row_heights: z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, "many">;
17911
17965
  cell_padding: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
@@ -17915,17 +17969,11 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
17915
17969
  anchor: z.ZodOptional<z.ZodEnum<["top_left", "top_center", "top_right", "center_left", "center", "center_right", "bottom_left", "bottom_center", "bottom_right"]>>;
17916
17970
  }, "strip", z.ZodTypeAny, {
17917
17971
  type: "schematic_table";
17918
- position: {
17972
+ anchor_position: {
17919
17973
  x: number;
17920
17974
  y: number;
17921
17975
  };
17922
17976
  schematic_table_id: string;
17923
- cells: {
17924
- text: string;
17925
- font_size?: number | undefined;
17926
- horizontal_align?: "center" | "left" | "right" | undefined;
17927
- vertical_align?: "top" | "bottom" | "middle" | undefined;
17928
- }[][];
17929
17977
  column_widths: number[];
17930
17978
  row_heights: number[];
17931
17979
  anchor?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
@@ -17935,24 +17983,81 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
17935
17983
  border_width?: number | undefined;
17936
17984
  }, {
17937
17985
  type: "schematic_table";
17938
- position: {
17986
+ anchor_position: {
17939
17987
  x: string | number;
17940
17988
  y: string | number;
17941
17989
  };
17942
- schematic_table_id: string;
17943
- cells: {
17944
- text: string;
17945
- font_size?: string | number | undefined;
17946
- horizontal_align?: "center" | "left" | "right" | undefined;
17947
- vertical_align?: "top" | "bottom" | "middle" | undefined;
17948
- }[][];
17949
17990
  column_widths: (string | number)[];
17950
17991
  row_heights: (string | number)[];
17951
17992
  anchor?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
17952
17993
  subcircuit_id?: string | undefined;
17953
17994
  schematic_component_id?: string | undefined;
17995
+ schematic_table_id?: string | undefined;
17954
17996
  cell_padding?: string | number | undefined;
17955
17997
  border_width?: string | number | undefined;
17998
+ }>, z.ZodObject<{
17999
+ type: z.ZodLiteral<"schematic_table_cell">;
18000
+ schematic_table_cell_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
18001
+ schematic_table_id: z.ZodString;
18002
+ start_row_index: z.ZodNumber;
18003
+ end_row_index: z.ZodNumber;
18004
+ start_column_index: z.ZodNumber;
18005
+ end_column_index: z.ZodNumber;
18006
+ text: z.ZodOptional<z.ZodString>;
18007
+ center: z.ZodObject<{
18008
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
18009
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
18010
+ }, "strip", z.ZodTypeAny, {
18011
+ x: number;
18012
+ y: number;
18013
+ }, {
18014
+ x: string | number;
18015
+ y: string | number;
18016
+ }>;
18017
+ width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
18018
+ height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
18019
+ horizontal_align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
18020
+ vertical_align: z.ZodOptional<z.ZodEnum<["top", "middle", "bottom"]>>;
18021
+ font_size: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
18022
+ subcircuit_id: z.ZodOptional<z.ZodString>;
18023
+ }, "strip", z.ZodTypeAny, {
18024
+ type: "schematic_table_cell";
18025
+ width: number;
18026
+ height: number;
18027
+ center: {
18028
+ x: number;
18029
+ y: number;
18030
+ };
18031
+ schematic_table_id: string;
18032
+ schematic_table_cell_id: string;
18033
+ start_row_index: number;
18034
+ end_row_index: number;
18035
+ start_column_index: number;
18036
+ end_column_index: number;
18037
+ subcircuit_id?: string | undefined;
18038
+ text?: string | undefined;
18039
+ font_size?: number | undefined;
18040
+ horizontal_align?: "center" | "left" | "right" | undefined;
18041
+ vertical_align?: "top" | "bottom" | "middle" | undefined;
18042
+ }, {
18043
+ type: "schematic_table_cell";
18044
+ width: string | number;
18045
+ height: string | number;
18046
+ center: {
18047
+ x: string | number;
18048
+ y: string | number;
18049
+ };
18050
+ schematic_table_id: string;
18051
+ start_row_index: number;
18052
+ end_row_index: number;
18053
+ start_column_index: number;
18054
+ end_column_index: number;
18055
+ subcircuit_id?: string | undefined;
18056
+ text?: string | undefined;
18057
+ font_size?: string | number | undefined;
18058
+ schematic_table_cell_id?: string | undefined;
18059
+ horizontal_align?: "center" | "left" | "right" | undefined;
18060
+ vertical_align?: "top" | "bottom" | "middle" | undefined;
17956
18061
  }>, z.ZodObject<{
17957
18062
  type: z.ZodLiteral<"cad_component">;
17958
18063
  cad_component_id: z.ZodString;
@@ -18085,4 +18190,4 @@ type AnySoupElementInput = AnyCircuitElementInput;
18085
18190
  */
18086
18191
  type CircuitJson = AnyCircuitElement[];
18087
18192
 
18088
- export { type AnyCircuitElement, type AnyCircuitElementInput, type AnySoupElement, type AnySoupElementInput, type AnySourceComponent, type AnySourceElement, type CadComponent, type CadComponentInput, type CircuitJson, type CircuitJsonError, type Distance, type InferredProjectMetadata, type InferredSchematicNetLabel, type InputPoint, type InputPosition, type InputRotation, type LayerRef, type LayerRefInput, type Length, type NinePointAnchor, type PCBBoard, type PCBComponent, type PCBFabricationNotePath, type PCBFabricationNoteText, type PCBHole, type PCBHoleInput, type PCBKeepout, type PCBKeepoutCircle, type PCBKeepoutInput, type PCBKeepoutRect, type PCBMissingFootprintError, type PCBPlacementError, type PCBPlatedHole, type PCBPlatedHoleInput, type PCBPort, type PCBPortInput, type PCBPortNotMatchedError, type PCBSMTPad, type PCBSMTPadInput, type PCBSilkscreenLine, type PCBSilkscreenText, type PCBSolderPasteInput, type PCBText, type PCBTrace, type PCBTraceError, type PCBTraceHint, type PCBTraceInput, type PCBVia, type PcbAutoroutingError, type PcbAutoroutingErrorInput, type PcbAutoroutingErrorInterface, type PcbBoard, type PcbBoardInput, type PcbBreakoutPoint, type PcbBreakoutPointInput, type PcbCircuitElement, type PcbComponent, type PcbComponentInput, type PcbCutout, type PcbCutoutCircle, type PcbCutoutCircleInput, type PcbCutoutInput, type PcbCutoutPolygon, type PcbCutoutPolygonInput, type PcbCutoutRect, type PcbCutoutRectInput, type PcbFabricationNotePath, type PcbFabricationNotePathInput, type PcbFabricationNoteText, type PcbFabricationNoteTextInput, type PcbGroundPlane, type PcbGroundPlaneInput, type PcbGroundPlaneRegion, type PcbGroundPlaneRegionInput, type PcbGroup, type PcbGroupInput, type PcbHole, type PcbHoleCircleOrSquare, type PcbHoleCircleOrSquareInput, type PcbHoleCircularWithRectPad, type PcbHoleOval, type PcbHoleOvalInput, type PcbHolePillWithRectPad, type PcbManualEditConflictWarning, type PcbManualEditConflictWarningInput, type PcbMissingFootprintError, type PcbMissingFootprintErrorInput, type PcbPlacementError, type PcbPlacementErrorInput, type PcbPlatedHole, type PcbPlatedHoleCircle, type PcbPlatedHoleInput, type PcbPlatedHoleOval, type PcbPort, type PcbPortInput, type PcbPortNotMatchedError, type PcbPortNotMatchedErrorInput, type PcbRouteHint, type PcbRouteHintInput, type PcbRouteHints, type PcbRouteHintsInput, type PcbSilkscreenCircle, type PcbSilkscreenCircleInput, type PcbSilkscreenLine, type PcbSilkscreenLineInput, type PcbSilkscreenOval, type PcbSilkscreenOvalDeprecated, type PcbSilkscreenOvalInput, type PcbSilkscreenPath, type PcbSilkscreenPathDeprecated, type PcbSilkscreenPathInput, type PcbSilkscreenRect, type PcbSilkscreenRectInput, type PcbSilkscreenRectOld, type PcbSilkscreenText, type PcbSilkscreenTextInput, type PcbSmtPad, type PcbSmtPadCircle, type PcbSmtPadPill, type PcbSmtPadPolygon, type PcbSmtPadRect, type PcbSmtPadRotatedRect, type PcbSolderPaste, type PcbSolderPasteCircle, type PcbSolderPasteOval, type PcbSolderPastePill, type PcbSolderPasteRect, type PcbSolderPasteRotatedRect, type PcbText, type PcbTextInput, type PcbThermalSpoke, type PcbThermalSpokeInput, type PcbTrace, type PcbTraceError, type PcbTraceErrorInput, type PcbTraceHint, type PcbTraceHintInput, type PcbTraceInput, type PcbTraceRoutePoint, type PcbTraceRoutePointVia, type PcbTraceRoutePointWire, type PcbVia, type PcbViaInput, type Point, type Point3, type Position, type Rotation, type RouteHintPoint, type RouteHintPointInput, type SchematicBox, type SchematicBoxInput, type SchematicComponent, type SchematicComponentInput, type SchematicDebugLine, type SchematicDebugObject, type SchematicDebugObjectInput, type SchematicDebugPoint, type SchematicDebugRect, type SchematicError, type SchematicErrorInput, type SchematicGroup, type SchematicGroupInput, type SchematicLayoutError, type SchematicLayoutErrorInput, type SchematicLine, type SchematicLineInput, type SchematicManualEditConflictWarning, type SchematicManualEditConflictWarningInput, type SchematicNetLabel, type SchematicNetLabelInput, type SchematicPath, type SchematicPathInput, type SchematicPort, type SchematicPortArrangement, type SchematicPortArrangementBySides, type SchematicPortArrangementBySize, type SchematicPortInput, type SchematicTable, type SchematicTableCell, type SchematicTableInput, type SchematicText, type SchematicTextInput, type SchematicTrace, type SchematicTraceEdge, type SchematicTraceInput, type SchematicVoltageProbe, type SchematicVoltageProbeInput, type Size, type SizeInput, type SourceComponentBase, type SourceFailedToCreateComponentError, type SourceFailedToCreateComponentErrorInput, type SourceGroup, type SourceGroupInput, type SourceMissingPropertyError, type SourceMissingPropertyErrorInput, type SourceNet, type SourceNetInput, type SourcePcbGroundPlane, type SourcePcbGroundPlaneInput, type SourcePort, type SourcePortInput, type SourceProjectMetadata, type SourceSimpleBattery, type SourceSimpleBatteryInput, type SourceSimpleCapacitor, type SourceSimpleCapacitorInput, type SourceSimpleChip, type SourceSimpleChipInput, type SourceSimpleCrystal, type SourceSimpleCrystalInput, type SourceSimpleDiode, type SourceSimpleDiodeInput, type SourceSimpleGround, type SourceSimpleGroundInput, type SourceSimpleInductor, type SourceSimpleInductorInput, type SourceSimpleLed, type SourceSimpleLedInput, type SourceSimpleMosfet, type SourceSimpleMosfetInput, type SourceSimplePinHeader, type SourceSimplePinHeaderInput, type SourceSimplePotentiometer, type SourceSimplePotentiometerInput, type SourceSimplePowerSource, type SourceSimplePowerSourceInput, type SourceSimplePushButton, type SourceSimplePushButtonInput, type SourceSimpleResistor, type SourceSimpleResistorInput, type SourceSimpleResonator, type SourceSimpleResonatorInput, type SourceSimpleSwitch, type SourceSimpleSwitchInput, type SourceSimpleTestPoint, type SourceSimpleTestPointInput, type SourceSimpleTransistor, type SourceSimpleTransistorInput, type SourceTrace, type SupplierName, type VisibleLayer, type VisibleLayerRef, all_layers, any_circuit_element, any_soup_element, any_source_component, battery_capacity, cad_component, capacitance, current, distance, frequency, getZodPrefixedIdWithDefault, inductance, layer_ref, layer_string, length, ninePointAnchor, pcb_autorouting_error, pcb_board, pcb_breakout_point, pcb_component, pcb_cutout, pcb_cutout_circle, pcb_cutout_polygon, pcb_cutout_rect, pcb_fabrication_note_path, pcb_fabrication_note_text, pcb_ground_plane, pcb_ground_plane_region, pcb_group, pcb_hole, pcb_hole_circle_or_square_shape, pcb_hole_oval_shape, pcb_keepout, pcb_manual_edit_conflict_warning, pcb_missing_footprint_error, pcb_placement_error, pcb_plated_hole, pcb_port, pcb_port_not_matched_error, pcb_route_hint, pcb_route_hints, pcb_silkscreen_circle, pcb_silkscreen_line, pcb_silkscreen_oval, pcb_silkscreen_path, pcb_silkscreen_rect, pcb_silkscreen_text, pcb_smtpad, pcb_smtpad_pill, pcb_solder_paste, pcb_text, pcb_thermal_spoke, pcb_trace, pcb_trace_error, pcb_trace_hint, pcb_trace_route_point, pcb_trace_route_point_via, pcb_trace_route_point_wire, pcb_via, point, point3, port_arrangement, position, position3, resistance, rotation, route_hint_point, schematic_box, schematic_component, schematic_component_port_arrangement_by_sides, schematic_component_port_arrangement_by_size, schematic_debug_line, schematic_debug_object, schematic_debug_object_base, schematic_debug_point, schematic_debug_rect, schematic_error, schematic_group, schematic_layout_error, schematic_line, schematic_manual_edit_conflict_warning, schematic_net_label, schematic_path, schematic_pin_styles, schematic_port, schematic_table, schematic_table_cell, schematic_text, schematic_trace, schematic_voltage_probe, size, source_component_base, source_failed_to_create_component_error, source_group, source_missing_property_error, source_net, source_pcb_ground_plane, source_port, source_project_metadata, source_simple_battery, source_simple_capacitor, source_simple_chip, source_simple_crystal, source_simple_diode, source_simple_ground, source_simple_inductor, source_simple_led, source_simple_mosfet, source_simple_pin_header, source_simple_potentiometer, source_simple_power_source, source_simple_push_button, source_simple_resistor, source_simple_resonator, source_simple_switch, source_simple_test_point, source_simple_transistor, source_trace, supplier_name, time, visible_layer, voltage };
18193
+ export { type AnyCircuitElement, type AnyCircuitElementInput, type AnySoupElement, type AnySoupElementInput, type AnySourceComponent, type AnySourceElement, type CadComponent, type CadComponentInput, type CircuitJson, type CircuitJsonError, type Distance, type InferredProjectMetadata, type InferredSchematicNetLabel, type InputPoint, type InputPosition, type InputRotation, type LayerRef, type LayerRefInput, type Length, type NinePointAnchor, type PCBBoard, type PCBComponent, type PCBFabricationNotePath, type PCBFabricationNoteText, type PCBHole, type PCBHoleInput, type PCBKeepout, type PCBKeepoutCircle, type PCBKeepoutInput, type PCBKeepoutRect, type PCBMissingFootprintError, type PCBPlacementError, type PCBPlatedHole, type PCBPlatedHoleInput, type PCBPort, type PCBPortInput, type PCBPortNotMatchedError, type PCBSMTPad, type PCBSMTPadInput, type PCBSilkscreenLine, type PCBSilkscreenText, type PCBSolderPasteInput, type PCBText, type PCBTrace, type PCBTraceError, type PCBTraceHint, type PCBTraceInput, type PCBVia, type PcbAutoroutingError, type PcbAutoroutingErrorInput, type PcbAutoroutingErrorInterface, type PcbBoard, type PcbBoardInput, type PcbBreakoutPoint, type PcbBreakoutPointInput, type PcbCircuitElement, type PcbComponent, type PcbComponentInput, type PcbCutout, type PcbCutoutCircle, type PcbCutoutCircleInput, type PcbCutoutInput, type PcbCutoutPolygon, type PcbCutoutPolygonInput, type PcbCutoutRect, type PcbCutoutRectInput, type PcbFabricationNotePath, type PcbFabricationNotePathInput, type PcbFabricationNoteText, type PcbFabricationNoteTextInput, type PcbGroundPlane, type PcbGroundPlaneInput, type PcbGroundPlaneRegion, type PcbGroundPlaneRegionInput, type PcbGroup, type PcbGroupInput, type PcbHole, type PcbHoleCircleOrSquare, type PcbHoleCircleOrSquareInput, type PcbHoleCircularWithRectPad, type PcbHoleOval, type PcbHoleOvalInput, type PcbHolePillWithRectPad, type PcbManualEditConflictWarning, type PcbManualEditConflictWarningInput, type PcbMissingFootprintError, type PcbMissingFootprintErrorInput, type PcbPlacementError, type PcbPlacementErrorInput, type PcbPlatedHole, type PcbPlatedHoleCircle, type PcbPlatedHoleInput, type PcbPlatedHoleOval, type PcbPort, type PcbPortInput, type PcbPortNotMatchedError, type PcbPortNotMatchedErrorInput, type PcbRouteHint, type PcbRouteHintInput, type PcbRouteHints, type PcbRouteHintsInput, type PcbSilkscreenCircle, type PcbSilkscreenCircleInput, type PcbSilkscreenLine, type PcbSilkscreenLineInput, type PcbSilkscreenOval, type PcbSilkscreenOvalDeprecated, type PcbSilkscreenOvalInput, type PcbSilkscreenPath, type PcbSilkscreenPathDeprecated, type PcbSilkscreenPathInput, type PcbSilkscreenRect, type PcbSilkscreenRectInput, type PcbSilkscreenRectOld, type PcbSilkscreenText, type PcbSilkscreenTextInput, type PcbSmtPad, type PcbSmtPadCircle, type PcbSmtPadPill, type PcbSmtPadPolygon, type PcbSmtPadRect, type PcbSmtPadRotatedRect, type PcbSolderPaste, type PcbSolderPasteCircle, type PcbSolderPasteOval, type PcbSolderPastePill, type PcbSolderPasteRect, type PcbSolderPasteRotatedRect, type PcbText, type PcbTextInput, type PcbThermalSpoke, type PcbThermalSpokeInput, type PcbTrace, type PcbTraceError, type PcbTraceErrorInput, type PcbTraceHint, type PcbTraceHintInput, type PcbTraceInput, type PcbTraceRoutePoint, type PcbTraceRoutePointVia, type PcbTraceRoutePointWire, type PcbVia, type PcbViaInput, type Point, type Point3, type Position, type Rotation, type RouteHintPoint, type RouteHintPointInput, type SchematicBox, type SchematicBoxInput, type SchematicComponent, type SchematicComponentInput, type SchematicDebugLine, type SchematicDebugObject, type SchematicDebugObjectInput, type SchematicDebugPoint, type SchematicDebugRect, type SchematicError, type SchematicErrorInput, type SchematicGroup, type SchematicGroupInput, type SchematicLayoutError, type SchematicLayoutErrorInput, type SchematicLine, type SchematicLineInput, type SchematicManualEditConflictWarning, type SchematicManualEditConflictWarningInput, type SchematicNetLabel, type SchematicNetLabelInput, type SchematicPath, type SchematicPathInput, type SchematicPort, type SchematicPortArrangement, type SchematicPortArrangementBySides, type SchematicPortArrangementBySize, type SchematicPortInput, type SchematicTable, type SchematicTableCell, type SchematicTableCellInput, type SchematicTableInput, type SchematicText, type SchematicTextInput, type SchematicTrace, type SchematicTraceEdge, type SchematicTraceInput, type SchematicVoltageProbe, type SchematicVoltageProbeInput, type Size, type SizeInput, type SourceComponentBase, type SourceFailedToCreateComponentError, type SourceFailedToCreateComponentErrorInput, type SourceGroup, type SourceGroupInput, type SourceMissingPropertyError, type SourceMissingPropertyErrorInput, type SourceNet, type SourceNetInput, type SourcePcbGroundPlane, type SourcePcbGroundPlaneInput, type SourcePort, type SourcePortInput, type SourceProjectMetadata, type SourceSimpleBattery, type SourceSimpleBatteryInput, type SourceSimpleCapacitor, type SourceSimpleCapacitorInput, type SourceSimpleChip, type SourceSimpleChipInput, type SourceSimpleCrystal, type SourceSimpleCrystalInput, type SourceSimpleDiode, type SourceSimpleDiodeInput, type SourceSimpleGround, type SourceSimpleGroundInput, type SourceSimpleInductor, type SourceSimpleInductorInput, type SourceSimpleLed, type SourceSimpleLedInput, type SourceSimpleMosfet, type SourceSimpleMosfetInput, type SourceSimplePinHeader, type SourceSimplePinHeaderInput, type SourceSimplePotentiometer, type SourceSimplePotentiometerInput, type SourceSimplePowerSource, type SourceSimplePowerSourceInput, type SourceSimplePushButton, type SourceSimplePushButtonInput, type SourceSimpleResistor, type SourceSimpleResistorInput, type SourceSimpleResonator, type SourceSimpleResonatorInput, type SourceSimpleSwitch, type SourceSimpleSwitchInput, type SourceSimpleTestPoint, type SourceSimpleTestPointInput, type SourceSimpleTransistor, type SourceSimpleTransistorInput, type SourceTrace, type SupplierName, type VisibleLayer, type VisibleLayerRef, all_layers, any_circuit_element, any_soup_element, any_source_component, battery_capacity, cad_component, capacitance, current, distance, frequency, getZodPrefixedIdWithDefault, inductance, layer_ref, layer_string, length, ninePointAnchor, pcb_autorouting_error, pcb_board, pcb_breakout_point, pcb_component, pcb_cutout, pcb_cutout_circle, pcb_cutout_polygon, pcb_cutout_rect, pcb_fabrication_note_path, pcb_fabrication_note_text, pcb_ground_plane, pcb_ground_plane_region, pcb_group, pcb_hole, pcb_hole_circle_or_square_shape, pcb_hole_oval_shape, pcb_keepout, pcb_manual_edit_conflict_warning, pcb_missing_footprint_error, pcb_placement_error, pcb_plated_hole, pcb_port, pcb_port_not_matched_error, pcb_route_hint, pcb_route_hints, pcb_silkscreen_circle, pcb_silkscreen_line, pcb_silkscreen_oval, pcb_silkscreen_path, pcb_silkscreen_rect, pcb_silkscreen_text, pcb_smtpad, pcb_smtpad_pill, pcb_solder_paste, pcb_text, pcb_thermal_spoke, pcb_trace, pcb_trace_error, pcb_trace_hint, pcb_trace_route_point, pcb_trace_route_point_via, pcb_trace_route_point_wire, pcb_via, point, point3, port_arrangement, position, position3, resistance, rotation, route_hint_point, schematic_box, schematic_component, schematic_component_port_arrangement_by_sides, schematic_component_port_arrangement_by_size, schematic_debug_line, schematic_debug_object, schematic_debug_object_base, schematic_debug_point, schematic_debug_rect, schematic_error, schematic_group, schematic_layout_error, schematic_line, schematic_manual_edit_conflict_warning, schematic_net_label, schematic_path, schematic_pin_styles, schematic_port, schematic_table, schematic_table_cell, schematic_text, schematic_trace, schematic_voltage_probe, size, source_component_base, source_failed_to_create_component_error, source_group, source_missing_property_error, source_net, source_pcb_ground_plane, source_port, source_project_metadata, source_simple_battery, source_simple_capacitor, source_simple_chip, source_simple_crystal, source_simple_diode, source_simple_ground, source_simple_inductor, source_simple_led, source_simple_mosfet, source_simple_pin_header, source_simple_potentiometer, source_simple_power_source, source_simple_push_button, source_simple_resistor, source_simple_resonator, source_simple_switch, source_simple_test_point, source_simple_transistor, source_trace, supplier_name, time, visible_layer, voltage };