circuit-json 0.0.314 → 0.0.316
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 +8 -0
- package/dist/index.d.mts +245 -0
- package/dist/index.mjs +38 -18
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1133,6 +1133,7 @@ var schematic_voltage_probe = z61.object({
|
|
|
1133
1133
|
type: z61.literal("schematic_voltage_probe"),
|
|
1134
1134
|
schematic_voltage_probe_id: z61.string(),
|
|
1135
1135
|
source_component_id: z61.string().optional(),
|
|
1136
|
+
name: z61.string().optional(),
|
|
1136
1137
|
position: point,
|
|
1137
1138
|
schematic_trace_id: z61.string(),
|
|
1138
1139
|
voltage: voltage.optional(),
|
|
@@ -1301,7 +1302,8 @@ var pcb_hole_circle = z71.object({
|
|
|
1301
1302
|
hole_shape: z71.literal("circle"),
|
|
1302
1303
|
hole_diameter: z71.number(),
|
|
1303
1304
|
x: distance,
|
|
1304
|
-
y: distance
|
|
1305
|
+
y: distance,
|
|
1306
|
+
soldermask_margin: z71.number().optional()
|
|
1305
1307
|
});
|
|
1306
1308
|
var pcb_hole_circle_shape = pcb_hole_circle.describe(
|
|
1307
1309
|
"Defines a circular hole on the PCB"
|
|
@@ -1316,7 +1318,8 @@ var pcb_hole_rect = z71.object({
|
|
|
1316
1318
|
hole_width: z71.number(),
|
|
1317
1319
|
hole_height: z71.number(),
|
|
1318
1320
|
x: distance,
|
|
1319
|
-
y: distance
|
|
1321
|
+
y: distance,
|
|
1322
|
+
soldermask_margin: z71.number().optional()
|
|
1320
1323
|
});
|
|
1321
1324
|
var pcb_hole_rect_shape = pcb_hole_rect.describe(
|
|
1322
1325
|
"Defines a rectangular (square-capable) hole on the PCB. Use equal width/height for square."
|
|
@@ -1330,7 +1333,8 @@ var pcb_hole_circle_or_square = z71.object({
|
|
|
1330
1333
|
hole_shape: z71.enum(["circle", "square"]),
|
|
1331
1334
|
hole_diameter: z71.number(),
|
|
1332
1335
|
x: distance,
|
|
1333
|
-
y: distance
|
|
1336
|
+
y: distance,
|
|
1337
|
+
soldermask_margin: z71.number().optional()
|
|
1334
1338
|
});
|
|
1335
1339
|
var pcb_hole_circle_or_square_shape = pcb_hole_circle_or_square.describe(
|
|
1336
1340
|
"Defines a circular or square hole on the PCB"
|
|
@@ -1345,7 +1349,8 @@ var pcb_hole_oval = z71.object({
|
|
|
1345
1349
|
hole_width: z71.number(),
|
|
1346
1350
|
hole_height: z71.number(),
|
|
1347
1351
|
x: distance,
|
|
1348
|
-
y: distance
|
|
1352
|
+
y: distance,
|
|
1353
|
+
soldermask_margin: z71.number().optional()
|
|
1349
1354
|
});
|
|
1350
1355
|
var pcb_hole_oval_shape = pcb_hole_oval.describe(
|
|
1351
1356
|
"Defines an oval hole on the PCB"
|
|
@@ -1360,7 +1365,8 @@ var pcb_hole_pill = z71.object({
|
|
|
1360
1365
|
hole_width: z71.number(),
|
|
1361
1366
|
hole_height: z71.number(),
|
|
1362
1367
|
x: distance,
|
|
1363
|
-
y: distance
|
|
1368
|
+
y: distance,
|
|
1369
|
+
soldermask_margin: z71.number().optional()
|
|
1364
1370
|
});
|
|
1365
1371
|
var pcb_hole_pill_shape = pcb_hole_pill.describe(
|
|
1366
1372
|
"Defines a pill-shaped hole on the PCB"
|
|
@@ -1376,7 +1382,8 @@ var pcb_hole_rotated_pill = z71.object({
|
|
|
1376
1382
|
hole_height: z71.number(),
|
|
1377
1383
|
x: distance,
|
|
1378
1384
|
y: distance,
|
|
1379
|
-
ccw_rotation: rotation
|
|
1385
|
+
ccw_rotation: rotation,
|
|
1386
|
+
soldermask_margin: z71.number().optional()
|
|
1380
1387
|
});
|
|
1381
1388
|
var pcb_hole_rotated_pill_shape = pcb_hole_rotated_pill.describe(
|
|
1382
1389
|
"Defines a rotated pill-shaped hole on the PCB"
|
|
@@ -1399,7 +1406,8 @@ var pcb_plated_hole_circle = z72.object({
|
|
|
1399
1406
|
port_hints: z72.array(z72.string()).optional(),
|
|
1400
1407
|
pcb_component_id: z72.string().optional(),
|
|
1401
1408
|
pcb_port_id: z72.string().optional(),
|
|
1402
|
-
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
|
|
1409
|
+
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
|
|
1410
|
+
soldermask_margin: z72.number().optional()
|
|
1403
1411
|
});
|
|
1404
1412
|
var pcb_plated_hole_oval = z72.object({
|
|
1405
1413
|
type: z72.literal("pcb_plated_hole"),
|
|
@@ -1417,7 +1425,8 @@ var pcb_plated_hole_oval = z72.object({
|
|
|
1417
1425
|
port_hints: z72.array(z72.string()).optional(),
|
|
1418
1426
|
pcb_component_id: z72.string().optional(),
|
|
1419
1427
|
pcb_port_id: z72.string().optional(),
|
|
1420
|
-
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
|
|
1428
|
+
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
|
|
1429
|
+
soldermask_margin: z72.number().optional()
|
|
1421
1430
|
});
|
|
1422
1431
|
var pcb_circular_hole_with_rect_pad = z72.object({
|
|
1423
1432
|
type: z72.literal("pcb_plated_hole"),
|
|
@@ -1438,7 +1447,8 @@ var pcb_circular_hole_with_rect_pad = z72.object({
|
|
|
1438
1447
|
port_hints: z72.array(z72.string()).optional(),
|
|
1439
1448
|
pcb_component_id: z72.string().optional(),
|
|
1440
1449
|
pcb_port_id: z72.string().optional(),
|
|
1441
|
-
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
|
|
1450
|
+
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
|
|
1451
|
+
soldermask_margin: z72.number().optional()
|
|
1442
1452
|
});
|
|
1443
1453
|
var pcb_pill_hole_with_rect_pad = z72.object({
|
|
1444
1454
|
type: z72.literal("pcb_plated_hole"),
|
|
@@ -1460,7 +1470,8 @@ var pcb_pill_hole_with_rect_pad = z72.object({
|
|
|
1460
1470
|
port_hints: z72.array(z72.string()).optional(),
|
|
1461
1471
|
pcb_component_id: z72.string().optional(),
|
|
1462
1472
|
pcb_port_id: z72.string().optional(),
|
|
1463
|
-
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
|
|
1473
|
+
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
|
|
1474
|
+
soldermask_margin: z72.number().optional()
|
|
1464
1475
|
});
|
|
1465
1476
|
var pcb_rotated_pill_hole_with_rect_pad = z72.object({
|
|
1466
1477
|
type: z72.literal("pcb_plated_hole"),
|
|
@@ -1484,7 +1495,8 @@ var pcb_rotated_pill_hole_with_rect_pad = z72.object({
|
|
|
1484
1495
|
port_hints: z72.array(z72.string()).optional(),
|
|
1485
1496
|
pcb_component_id: z72.string().optional(),
|
|
1486
1497
|
pcb_port_id: z72.string().optional(),
|
|
1487
|
-
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
|
|
1498
|
+
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
|
|
1499
|
+
soldermask_margin: z72.number().optional()
|
|
1488
1500
|
});
|
|
1489
1501
|
var pcb_hole_with_polygon_pad = z72.object({
|
|
1490
1502
|
type: z72.literal("pcb_plated_hole"),
|
|
@@ -1509,7 +1521,8 @@ var pcb_hole_with_polygon_pad = z72.object({
|
|
|
1509
1521
|
port_hints: z72.array(z72.string()).optional(),
|
|
1510
1522
|
pcb_component_id: z72.string().optional(),
|
|
1511
1523
|
pcb_port_id: z72.string().optional(),
|
|
1512
|
-
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
|
|
1524
|
+
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
|
|
1525
|
+
soldermask_margin: z72.number().optional()
|
|
1513
1526
|
});
|
|
1514
1527
|
var pcb_plated_hole = z72.union([
|
|
1515
1528
|
pcb_plated_hole_circle,
|
|
@@ -1559,7 +1572,8 @@ var pcb_smtpad_circle = z74.object({
|
|
|
1559
1572
|
port_hints: z74.array(z74.string()).optional(),
|
|
1560
1573
|
pcb_component_id: z74.string().optional(),
|
|
1561
1574
|
pcb_port_id: z74.string().optional(),
|
|
1562
|
-
is_covered_with_solder_mask: z74.boolean().optional()
|
|
1575
|
+
is_covered_with_solder_mask: z74.boolean().optional(),
|
|
1576
|
+
soldermask_margin: z74.number().optional()
|
|
1563
1577
|
});
|
|
1564
1578
|
var pcb_smtpad_rect = z74.object({
|
|
1565
1579
|
type: z74.literal("pcb_smtpad"),
|
|
@@ -1577,7 +1591,8 @@ var pcb_smtpad_rect = z74.object({
|
|
|
1577
1591
|
port_hints: z74.array(z74.string()).optional(),
|
|
1578
1592
|
pcb_component_id: z74.string().optional(),
|
|
1579
1593
|
pcb_port_id: z74.string().optional(),
|
|
1580
|
-
is_covered_with_solder_mask: z74.boolean().optional()
|
|
1594
|
+
is_covered_with_solder_mask: z74.boolean().optional(),
|
|
1595
|
+
soldermask_margin: z74.number().optional()
|
|
1581
1596
|
});
|
|
1582
1597
|
var pcb_smtpad_rotated_rect = z74.object({
|
|
1583
1598
|
type: z74.literal("pcb_smtpad"),
|
|
@@ -1596,7 +1611,8 @@ var pcb_smtpad_rotated_rect = z74.object({
|
|
|
1596
1611
|
port_hints: z74.array(z74.string()).optional(),
|
|
1597
1612
|
pcb_component_id: z74.string().optional(),
|
|
1598
1613
|
pcb_port_id: z74.string().optional(),
|
|
1599
|
-
is_covered_with_solder_mask: z74.boolean().optional()
|
|
1614
|
+
is_covered_with_solder_mask: z74.boolean().optional(),
|
|
1615
|
+
soldermask_margin: z74.number().optional()
|
|
1600
1616
|
});
|
|
1601
1617
|
var pcb_smtpad_pill = z74.object({
|
|
1602
1618
|
type: z74.literal("pcb_smtpad"),
|
|
@@ -1613,7 +1629,8 @@ var pcb_smtpad_pill = z74.object({
|
|
|
1613
1629
|
port_hints: z74.array(z74.string()).optional(),
|
|
1614
1630
|
pcb_component_id: z74.string().optional(),
|
|
1615
1631
|
pcb_port_id: z74.string().optional(),
|
|
1616
|
-
is_covered_with_solder_mask: z74.boolean().optional()
|
|
1632
|
+
is_covered_with_solder_mask: z74.boolean().optional(),
|
|
1633
|
+
soldermask_margin: z74.number().optional()
|
|
1617
1634
|
});
|
|
1618
1635
|
var pcb_smtpad_rotated_pill = z74.object({
|
|
1619
1636
|
type: z74.literal("pcb_smtpad"),
|
|
@@ -1631,7 +1648,8 @@ var pcb_smtpad_rotated_pill = z74.object({
|
|
|
1631
1648
|
port_hints: z74.array(z74.string()).optional(),
|
|
1632
1649
|
pcb_component_id: z74.string().optional(),
|
|
1633
1650
|
pcb_port_id: z74.string().optional(),
|
|
1634
|
-
is_covered_with_solder_mask: z74.boolean().optional()
|
|
1651
|
+
is_covered_with_solder_mask: z74.boolean().optional(),
|
|
1652
|
+
soldermask_margin: z74.number().optional()
|
|
1635
1653
|
});
|
|
1636
1654
|
var pcb_smtpad_polygon = z74.object({
|
|
1637
1655
|
type: z74.literal("pcb_smtpad"),
|
|
@@ -1644,7 +1662,8 @@ var pcb_smtpad_polygon = z74.object({
|
|
|
1644
1662
|
port_hints: z74.array(z74.string()).optional(),
|
|
1645
1663
|
pcb_component_id: z74.string().optional(),
|
|
1646
1664
|
pcb_port_id: z74.string().optional(),
|
|
1647
|
-
is_covered_with_solder_mask: z74.boolean().optional()
|
|
1665
|
+
is_covered_with_solder_mask: z74.boolean().optional(),
|
|
1666
|
+
soldermask_margin: z74.number().optional()
|
|
1648
1667
|
});
|
|
1649
1668
|
var pcb_smtpad = z74.discriminatedUnion("shape", [
|
|
1650
1669
|
pcb_smtpad_circle,
|
|
@@ -2840,6 +2859,7 @@ var simulation_voltage_probe = z129.object({
|
|
|
2840
2859
|
"simulation_voltage_probe"
|
|
2841
2860
|
),
|
|
2842
2861
|
source_component_id: z129.string().optional(),
|
|
2862
|
+
name: z129.string().optional(),
|
|
2843
2863
|
source_port_id: z129.string().optional(),
|
|
2844
2864
|
source_net_id: z129.string().optional(),
|
|
2845
2865
|
subcircuit_id: z129.string().optional(),
|