circuit-json 0.0.315 → 0.0.317
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 +7 -0
- package/dist/index.d.mts +232 -0
- package/dist/index.mjs +38 -19
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1302,7 +1302,8 @@ var pcb_hole_circle = z71.object({
|
|
|
1302
1302
|
hole_shape: z71.literal("circle"),
|
|
1303
1303
|
hole_diameter: z71.number(),
|
|
1304
1304
|
x: distance,
|
|
1305
|
-
y: distance
|
|
1305
|
+
y: distance,
|
|
1306
|
+
soldermask_margin: z71.number().optional()
|
|
1306
1307
|
});
|
|
1307
1308
|
var pcb_hole_circle_shape = pcb_hole_circle.describe(
|
|
1308
1309
|
"Defines a circular hole on the PCB"
|
|
@@ -1317,7 +1318,8 @@ var pcb_hole_rect = z71.object({
|
|
|
1317
1318
|
hole_width: z71.number(),
|
|
1318
1319
|
hole_height: z71.number(),
|
|
1319
1320
|
x: distance,
|
|
1320
|
-
y: distance
|
|
1321
|
+
y: distance,
|
|
1322
|
+
soldermask_margin: z71.number().optional()
|
|
1321
1323
|
});
|
|
1322
1324
|
var pcb_hole_rect_shape = pcb_hole_rect.describe(
|
|
1323
1325
|
"Defines a rectangular (square-capable) hole on the PCB. Use equal width/height for square."
|
|
@@ -1331,7 +1333,8 @@ var pcb_hole_circle_or_square = z71.object({
|
|
|
1331
1333
|
hole_shape: z71.enum(["circle", "square"]),
|
|
1332
1334
|
hole_diameter: z71.number(),
|
|
1333
1335
|
x: distance,
|
|
1334
|
-
y: distance
|
|
1336
|
+
y: distance,
|
|
1337
|
+
soldermask_margin: z71.number().optional()
|
|
1335
1338
|
});
|
|
1336
1339
|
var pcb_hole_circle_or_square_shape = pcb_hole_circle_or_square.describe(
|
|
1337
1340
|
"Defines a circular or square hole on the PCB"
|
|
@@ -1346,7 +1349,8 @@ var pcb_hole_oval = z71.object({
|
|
|
1346
1349
|
hole_width: z71.number(),
|
|
1347
1350
|
hole_height: z71.number(),
|
|
1348
1351
|
x: distance,
|
|
1349
|
-
y: distance
|
|
1352
|
+
y: distance,
|
|
1353
|
+
soldermask_margin: z71.number().optional()
|
|
1350
1354
|
});
|
|
1351
1355
|
var pcb_hole_oval_shape = pcb_hole_oval.describe(
|
|
1352
1356
|
"Defines an oval hole on the PCB"
|
|
@@ -1361,7 +1365,8 @@ var pcb_hole_pill = z71.object({
|
|
|
1361
1365
|
hole_width: z71.number(),
|
|
1362
1366
|
hole_height: z71.number(),
|
|
1363
1367
|
x: distance,
|
|
1364
|
-
y: distance
|
|
1368
|
+
y: distance,
|
|
1369
|
+
soldermask_margin: z71.number().optional()
|
|
1365
1370
|
});
|
|
1366
1371
|
var pcb_hole_pill_shape = pcb_hole_pill.describe(
|
|
1367
1372
|
"Defines a pill-shaped hole on the PCB"
|
|
@@ -1377,7 +1382,8 @@ var pcb_hole_rotated_pill = z71.object({
|
|
|
1377
1382
|
hole_height: z71.number(),
|
|
1378
1383
|
x: distance,
|
|
1379
1384
|
y: distance,
|
|
1380
|
-
ccw_rotation: rotation
|
|
1385
|
+
ccw_rotation: rotation,
|
|
1386
|
+
soldermask_margin: z71.number().optional()
|
|
1381
1387
|
});
|
|
1382
1388
|
var pcb_hole_rotated_pill_shape = pcb_hole_rotated_pill.describe(
|
|
1383
1389
|
"Defines a rotated pill-shaped hole on the PCB"
|
|
@@ -1400,7 +1406,8 @@ var pcb_plated_hole_circle = z72.object({
|
|
|
1400
1406
|
port_hints: z72.array(z72.string()).optional(),
|
|
1401
1407
|
pcb_component_id: z72.string().optional(),
|
|
1402
1408
|
pcb_port_id: z72.string().optional(),
|
|
1403
|
-
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
|
|
1409
|
+
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
|
|
1410
|
+
soldermask_margin: z72.number().optional()
|
|
1404
1411
|
});
|
|
1405
1412
|
var pcb_plated_hole_oval = z72.object({
|
|
1406
1413
|
type: z72.literal("pcb_plated_hole"),
|
|
@@ -1418,7 +1425,8 @@ var pcb_plated_hole_oval = z72.object({
|
|
|
1418
1425
|
port_hints: z72.array(z72.string()).optional(),
|
|
1419
1426
|
pcb_component_id: z72.string().optional(),
|
|
1420
1427
|
pcb_port_id: z72.string().optional(),
|
|
1421
|
-
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
|
|
1428
|
+
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
|
|
1429
|
+
soldermask_margin: z72.number().optional()
|
|
1422
1430
|
});
|
|
1423
1431
|
var pcb_circular_hole_with_rect_pad = z72.object({
|
|
1424
1432
|
type: z72.literal("pcb_plated_hole"),
|
|
@@ -1439,7 +1447,8 @@ var pcb_circular_hole_with_rect_pad = z72.object({
|
|
|
1439
1447
|
port_hints: z72.array(z72.string()).optional(),
|
|
1440
1448
|
pcb_component_id: z72.string().optional(),
|
|
1441
1449
|
pcb_port_id: z72.string().optional(),
|
|
1442
|
-
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
|
|
1450
|
+
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
|
|
1451
|
+
soldermask_margin: z72.number().optional()
|
|
1443
1452
|
});
|
|
1444
1453
|
var pcb_pill_hole_with_rect_pad = z72.object({
|
|
1445
1454
|
type: z72.literal("pcb_plated_hole"),
|
|
@@ -1461,7 +1470,8 @@ var pcb_pill_hole_with_rect_pad = z72.object({
|
|
|
1461
1470
|
port_hints: z72.array(z72.string()).optional(),
|
|
1462
1471
|
pcb_component_id: z72.string().optional(),
|
|
1463
1472
|
pcb_port_id: z72.string().optional(),
|
|
1464
|
-
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
|
|
1473
|
+
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
|
|
1474
|
+
soldermask_margin: z72.number().optional()
|
|
1465
1475
|
});
|
|
1466
1476
|
var pcb_rotated_pill_hole_with_rect_pad = z72.object({
|
|
1467
1477
|
type: z72.literal("pcb_plated_hole"),
|
|
@@ -1485,7 +1495,8 @@ var pcb_rotated_pill_hole_with_rect_pad = z72.object({
|
|
|
1485
1495
|
port_hints: z72.array(z72.string()).optional(),
|
|
1486
1496
|
pcb_component_id: z72.string().optional(),
|
|
1487
1497
|
pcb_port_id: z72.string().optional(),
|
|
1488
|
-
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
|
|
1498
|
+
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
|
|
1499
|
+
soldermask_margin: z72.number().optional()
|
|
1489
1500
|
});
|
|
1490
1501
|
var pcb_hole_with_polygon_pad = z72.object({
|
|
1491
1502
|
type: z72.literal("pcb_plated_hole"),
|
|
@@ -1510,7 +1521,8 @@ var pcb_hole_with_polygon_pad = z72.object({
|
|
|
1510
1521
|
port_hints: z72.array(z72.string()).optional(),
|
|
1511
1522
|
pcb_component_id: z72.string().optional(),
|
|
1512
1523
|
pcb_port_id: z72.string().optional(),
|
|
1513
|
-
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
|
|
1524
|
+
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
|
|
1525
|
+
soldermask_margin: z72.number().optional()
|
|
1514
1526
|
});
|
|
1515
1527
|
var pcb_plated_hole = z72.union([
|
|
1516
1528
|
pcb_plated_hole_circle,
|
|
@@ -1560,7 +1572,8 @@ var pcb_smtpad_circle = z74.object({
|
|
|
1560
1572
|
port_hints: z74.array(z74.string()).optional(),
|
|
1561
1573
|
pcb_component_id: z74.string().optional(),
|
|
1562
1574
|
pcb_port_id: z74.string().optional(),
|
|
1563
|
-
is_covered_with_solder_mask: z74.boolean().optional()
|
|
1575
|
+
is_covered_with_solder_mask: z74.boolean().optional(),
|
|
1576
|
+
soldermask_margin: z74.number().optional()
|
|
1564
1577
|
});
|
|
1565
1578
|
var pcb_smtpad_rect = z74.object({
|
|
1566
1579
|
type: z74.literal("pcb_smtpad"),
|
|
@@ -1578,7 +1591,8 @@ var pcb_smtpad_rect = z74.object({
|
|
|
1578
1591
|
port_hints: z74.array(z74.string()).optional(),
|
|
1579
1592
|
pcb_component_id: z74.string().optional(),
|
|
1580
1593
|
pcb_port_id: z74.string().optional(),
|
|
1581
|
-
is_covered_with_solder_mask: z74.boolean().optional()
|
|
1594
|
+
is_covered_with_solder_mask: z74.boolean().optional(),
|
|
1595
|
+
soldermask_margin: z74.number().optional()
|
|
1582
1596
|
});
|
|
1583
1597
|
var pcb_smtpad_rotated_rect = z74.object({
|
|
1584
1598
|
type: z74.literal("pcb_smtpad"),
|
|
@@ -1597,7 +1611,8 @@ var pcb_smtpad_rotated_rect = z74.object({
|
|
|
1597
1611
|
port_hints: z74.array(z74.string()).optional(),
|
|
1598
1612
|
pcb_component_id: z74.string().optional(),
|
|
1599
1613
|
pcb_port_id: z74.string().optional(),
|
|
1600
|
-
is_covered_with_solder_mask: z74.boolean().optional()
|
|
1614
|
+
is_covered_with_solder_mask: z74.boolean().optional(),
|
|
1615
|
+
soldermask_margin: z74.number().optional()
|
|
1601
1616
|
});
|
|
1602
1617
|
var pcb_smtpad_pill = z74.object({
|
|
1603
1618
|
type: z74.literal("pcb_smtpad"),
|
|
@@ -1614,7 +1629,8 @@ var pcb_smtpad_pill = z74.object({
|
|
|
1614
1629
|
port_hints: z74.array(z74.string()).optional(),
|
|
1615
1630
|
pcb_component_id: z74.string().optional(),
|
|
1616
1631
|
pcb_port_id: z74.string().optional(),
|
|
1617
|
-
is_covered_with_solder_mask: z74.boolean().optional()
|
|
1632
|
+
is_covered_with_solder_mask: z74.boolean().optional(),
|
|
1633
|
+
soldermask_margin: z74.number().optional()
|
|
1618
1634
|
});
|
|
1619
1635
|
var pcb_smtpad_rotated_pill = z74.object({
|
|
1620
1636
|
type: z74.literal("pcb_smtpad"),
|
|
@@ -1632,7 +1648,8 @@ var pcb_smtpad_rotated_pill = z74.object({
|
|
|
1632
1648
|
port_hints: z74.array(z74.string()).optional(),
|
|
1633
1649
|
pcb_component_id: z74.string().optional(),
|
|
1634
1650
|
pcb_port_id: z74.string().optional(),
|
|
1635
|
-
is_covered_with_solder_mask: z74.boolean().optional()
|
|
1651
|
+
is_covered_with_solder_mask: z74.boolean().optional(),
|
|
1652
|
+
soldermask_margin: z74.number().optional()
|
|
1636
1653
|
});
|
|
1637
1654
|
var pcb_smtpad_polygon = z74.object({
|
|
1638
1655
|
type: z74.literal("pcb_smtpad"),
|
|
@@ -1645,7 +1662,8 @@ var pcb_smtpad_polygon = z74.object({
|
|
|
1645
1662
|
port_hints: z74.array(z74.string()).optional(),
|
|
1646
1663
|
pcb_component_id: z74.string().optional(),
|
|
1647
1664
|
pcb_port_id: z74.string().optional(),
|
|
1648
|
-
is_covered_with_solder_mask: z74.boolean().optional()
|
|
1665
|
+
is_covered_with_solder_mask: z74.boolean().optional(),
|
|
1666
|
+
soldermask_margin: z74.number().optional()
|
|
1649
1667
|
});
|
|
1650
1668
|
var pcb_smtpad = z74.discriminatedUnion("shape", [
|
|
1651
1669
|
pcb_smtpad_circle,
|
|
@@ -2360,7 +2378,8 @@ var pcb_cutout_rect = pcb_cutout_base.extend({
|
|
|
2360
2378
|
center: point,
|
|
2361
2379
|
width: length,
|
|
2362
2380
|
height: length,
|
|
2363
|
-
rotation: rotation.optional()
|
|
2381
|
+
rotation: rotation.optional(),
|
|
2382
|
+
corner_radius: length.optional()
|
|
2364
2383
|
});
|
|
2365
2384
|
expectTypesMatch(true);
|
|
2366
2385
|
var pcb_cutout_circle = pcb_cutout_base.extend({
|