schematic-symbols 0.0.132 → 0.0.134
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/dist/index.d.ts +9 -1
- package/dist/index.js +1054 -477
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -44,10 +44,10 @@ function getBoundsOfPrimitives(primitives) {
|
|
44
44
|
function defineSymbol(symbol) {
|
45
45
|
let size = symbol.size;
|
46
46
|
if (!size) {
|
47
|
-
const
|
47
|
+
const bounds63 = getBoundsOfPrimitives(symbol.primitives);
|
48
48
|
size = {
|
49
|
-
width:
|
50
|
-
height:
|
49
|
+
width: bounds63.maxX - bounds63.minX,
|
50
|
+
height: bounds63.maxY - bounds63.minY
|
51
51
|
};
|
52
52
|
}
|
53
53
|
return { ...symbol, size };
|
@@ -494,14 +494,14 @@ var rotateRightFacingSymbol = (symbol, opts) => {
|
|
494
494
|
...applyToPoint(transform2, port)
|
495
495
|
})
|
496
496
|
);
|
497
|
-
const
|
497
|
+
const bounds63 = getBoundsOfPrimitives(rotatedPrimitives);
|
498
498
|
return {
|
499
499
|
primitives: rotatedPrimitives,
|
500
500
|
center,
|
501
501
|
ports: rotatedPorts,
|
502
502
|
size: {
|
503
|
-
width:
|
504
|
-
height:
|
503
|
+
width: bounds63.maxX - bounds63.minX,
|
504
|
+
height: bounds63.maxY - bounds63.minY
|
505
505
|
},
|
506
506
|
...overrides
|
507
507
|
};
|
@@ -902,10 +902,10 @@ var SymbolModifier = class {
|
|
902
902
|
return this;
|
903
903
|
}
|
904
904
|
computeSize() {
|
905
|
-
const
|
905
|
+
const bounds63 = getBoundsOfPrimitives(this.symbol.primitives);
|
906
906
|
return {
|
907
|
-
width:
|
908
|
-
height:
|
907
|
+
width: bounds63.maxX - bounds63.minX,
|
908
|
+
height: bounds63.maxY - bounds63.minY
|
909
909
|
};
|
910
910
|
}
|
911
911
|
build() {
|
@@ -1346,12 +1346,259 @@ var boxresistor_right_default = modifySymbol({
|
|
1346
1346
|
center: { x: bounds10.centerX, y: bounds10.centerY }
|
1347
1347
|
}).changeTextAnchor("{VAL}", "middle_top").rotateRightFacingSymbol("right").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_bottom").build();
|
1348
1348
|
|
1349
|
-
//
|
1350
|
-
var
|
1351
|
-
|
1349
|
+
// assets/generated/boxresistor_small.json
|
1350
|
+
var boxresistor_small_default = {
|
1351
|
+
paths: {
|
1352
|
+
path2: {
|
1353
|
+
type: "path",
|
1354
|
+
points: [
|
1355
|
+
{
|
1356
|
+
x: 0.15388670000000015,
|
1357
|
+
y: -0.011659850000000915
|
1358
|
+
},
|
1359
|
+
{
|
1360
|
+
x: 0.5624630000000006,
|
1361
|
+
y: -0.011659850000000915
|
1362
|
+
}
|
1363
|
+
],
|
1364
|
+
color: "primary",
|
1365
|
+
fill: true
|
1366
|
+
},
|
1367
|
+
"path2-5": {
|
1368
|
+
type: "path",
|
1369
|
+
points: [
|
1370
|
+
{
|
1371
|
+
x: -0.15278139999999985,
|
1372
|
+
y: 0.0631857500000006
|
1373
|
+
},
|
1374
|
+
{
|
1375
|
+
x: 0.14088970000000023,
|
1376
|
+
y: 0.0631857500000006
|
1377
|
+
}
|
1378
|
+
],
|
1379
|
+
color: "primary",
|
1380
|
+
fill: true
|
1381
|
+
},
|
1382
|
+
"path2-5-1": {
|
1383
|
+
type: "path",
|
1384
|
+
points: [
|
1385
|
+
{
|
1386
|
+
x: 0.1440984000000003,
|
1387
|
+
y: 0.062027949999999166
|
1388
|
+
},
|
1389
|
+
{
|
1390
|
+
x: 0.1440984000000003,
|
1391
|
+
y: -0.07771874999999895
|
1392
|
+
}
|
1393
|
+
],
|
1394
|
+
color: "primary",
|
1395
|
+
fill: true
|
1396
|
+
},
|
1397
|
+
"path2-5-1-6": {
|
1398
|
+
type: "path",
|
1399
|
+
points: [
|
1400
|
+
{
|
1401
|
+
x: -0.1560009,
|
1402
|
+
y: 0.061948649999999716
|
1403
|
+
},
|
1404
|
+
{
|
1405
|
+
x: -0.1560009,
|
1406
|
+
y: -0.0777064499999991
|
1407
|
+
}
|
1408
|
+
],
|
1409
|
+
color: "primary",
|
1410
|
+
fill: true
|
1411
|
+
},
|
1412
|
+
"path2-5-4": {
|
1413
|
+
type: "path",
|
1414
|
+
points: [
|
1415
|
+
{
|
1416
|
+
x: -0.15274009999999993,
|
1417
|
+
y: -0.07931364999999957
|
1418
|
+
},
|
1419
|
+
{
|
1420
|
+
x: 0.14080039999999983,
|
1421
|
+
y: -0.07931364999999957
|
1422
|
+
}
|
1423
|
+
],
|
1424
|
+
color: "primary",
|
1425
|
+
fill: true
|
1426
|
+
},
|
1427
|
+
"path2-9": {
|
1428
|
+
type: "path",
|
1429
|
+
points: [
|
1430
|
+
{
|
1431
|
+
x: -0.5604024999999999,
|
1432
|
+
y: -0.011417950000000232
|
1433
|
+
},
|
1434
|
+
{
|
1435
|
+
x: -0.16549179999999986,
|
1436
|
+
y: -0.011417950000000232
|
1437
|
+
}
|
1438
|
+
],
|
1439
|
+
color: "primary",
|
1440
|
+
fill: true
|
1441
|
+
}
|
1442
|
+
},
|
1443
|
+
texts: {
|
1444
|
+
top1: {
|
1445
|
+
type: "text",
|
1446
|
+
text: "{REF}",
|
1447
|
+
x: -0.007722799999999808,
|
1448
|
+
y: 0.17344284999999893
|
1449
|
+
},
|
1450
|
+
bottom1: {
|
1451
|
+
type: "text",
|
1452
|
+
text: "{VAL}",
|
1453
|
+
x: -0.003756900000000396,
|
1454
|
+
y: -0.1734428500000007
|
1455
|
+
}
|
1456
|
+
},
|
1457
|
+
refblocks: {
|
1458
|
+
left1: {
|
1459
|
+
x: -0.5512093000000005,
|
1460
|
+
y: -0.009974149999999682
|
1461
|
+
},
|
1462
|
+
right1: {
|
1463
|
+
x: 0.5512093,
|
1464
|
+
y: -0.009427450000000448
|
1465
|
+
}
|
1466
|
+
},
|
1467
|
+
bounds: {
|
1468
|
+
minX: -0.5793677410000004,
|
1469
|
+
maxX: 0.579367741,
|
1470
|
+
minY: -0.1734428500000007,
|
1471
|
+
maxY: 0.17344284999999893,
|
1472
|
+
width: 1.1587354820000004,
|
1473
|
+
height: 0.34688569999999963,
|
1474
|
+
centerX: -2220446049250313e-31,
|
1475
|
+
centerY: -8881784197001252e-31
|
1476
|
+
},
|
1477
|
+
circles: {}
|
1478
|
+
};
|
1479
|
+
|
1480
|
+
// symbols/boxresistor_small_down.ts
|
1481
|
+
var { paths: paths11, texts: texts10, bounds: bounds11, refblocks: refblocks11, circles: circles11 } = boxresistor_small_default;
|
1482
|
+
var boxresistor_small_down_default = modifySymbol({
|
1352
1483
|
primitives: [
|
1353
1484
|
...Object.values(paths11),
|
1354
1485
|
...Object.values(circles11),
|
1486
|
+
{
|
1487
|
+
type: "text",
|
1488
|
+
text: "{REF}",
|
1489
|
+
x: -0.2,
|
1490
|
+
y: 0.1404553499999995
|
1491
|
+
},
|
1492
|
+
{
|
1493
|
+
type: "text",
|
1494
|
+
text: "{VAL}",
|
1495
|
+
x: 0.2,
|
1496
|
+
y: 0.1494553499999995
|
1497
|
+
}
|
1498
|
+
],
|
1499
|
+
ports: [
|
1500
|
+
{ ...refblocks11.left1, labels: ["1"] },
|
1501
|
+
// TODO add more "standard" labels
|
1502
|
+
{ ...refblocks11.right1, labels: ["2"] }
|
1503
|
+
// TODO add more "standard" labels
|
1504
|
+
],
|
1505
|
+
size: { width: bounds11.width, height: bounds11.height },
|
1506
|
+
center: { x: bounds11.centerX, y: bounds11.centerY }
|
1507
|
+
}).rotateRightFacingSymbol("down").labelPort("left", ["1"]).labelPort("right", ["2"]).changeTextAnchor("{REF}", "middle_left").changeTextAnchor("{VAL}", "middle_left").build();
|
1508
|
+
|
1509
|
+
// symbols/boxresistor_small_left.ts
|
1510
|
+
var { paths: paths12, texts: texts11, bounds: bounds12, refblocks: refblocks12, circles: circles12 } = boxresistor_small_default;
|
1511
|
+
var boxresistor_small_left_default = modifySymbol({
|
1512
|
+
primitives: [
|
1513
|
+
...Object.values(paths12),
|
1514
|
+
...Object.values(circles12),
|
1515
|
+
{
|
1516
|
+
type: "text",
|
1517
|
+
text: "{REF}",
|
1518
|
+
x: 0,
|
1519
|
+
y: -0.2294553499999995
|
1520
|
+
},
|
1521
|
+
{
|
1522
|
+
type: "text",
|
1523
|
+
text: "{VAL}",
|
1524
|
+
x: 0,
|
1525
|
+
y: 0.1704553499999995
|
1526
|
+
}
|
1527
|
+
],
|
1528
|
+
ports: [
|
1529
|
+
{ ...refblocks12.left1, labels: ["1"] },
|
1530
|
+
// TODO add more "standard" labels
|
1531
|
+
{ ...refblocks12.right1, labels: ["2"] }
|
1532
|
+
// TODO add more "standard" labels
|
1533
|
+
],
|
1534
|
+
size: { width: bounds12.width, height: bounds12.height },
|
1535
|
+
center: { x: bounds12.centerX, y: bounds12.centerY }
|
1536
|
+
}).rotateRightFacingSymbol("left").labelPort("left", ["1"]).labelPort("right", ["2"]).changeTextAnchor("{REF}", "middle_bottom").changeTextAnchor("{VAL}", "middle_top").build();
|
1537
|
+
|
1538
|
+
// symbols/boxresistor_small_right.ts
|
1539
|
+
var { paths: paths13, texts: texts12, bounds: bounds13, refblocks: refblocks13, circles: circles13 } = boxresistor_small_default;
|
1540
|
+
var boxresistor_small_right_default = modifySymbol({
|
1541
|
+
primitives: [
|
1542
|
+
...Object.values(paths13),
|
1543
|
+
...Object.values(circles13),
|
1544
|
+
{
|
1545
|
+
type: "text",
|
1546
|
+
text: "{REF}",
|
1547
|
+
x: 0,
|
1548
|
+
y: 0.2294553499999995
|
1549
|
+
},
|
1550
|
+
{
|
1551
|
+
type: "text",
|
1552
|
+
text: "{VAL}",
|
1553
|
+
x: 0,
|
1554
|
+
y: -0.1704553499999995
|
1555
|
+
}
|
1556
|
+
],
|
1557
|
+
ports: [
|
1558
|
+
{ ...refblocks13.left1, labels: ["1"] },
|
1559
|
+
// TODO add more "standard" labels
|
1560
|
+
{ ...refblocks13.right1, labels: ["2"] }
|
1561
|
+
// TODO add more "standard" labels
|
1562
|
+
],
|
1563
|
+
size: { width: bounds13.width, height: bounds13.height },
|
1564
|
+
center: { x: bounds13.centerX, y: bounds13.centerY }
|
1565
|
+
}).rotateRightFacingSymbol("right").labelPort("left", ["1"]).labelPort("right", ["2"]).changeTextAnchor("{REF}", "middle_bottom").changeTextAnchor("{VAL}", "middle_top").build();
|
1566
|
+
|
1567
|
+
// symbols/boxresistor_small_up.ts
|
1568
|
+
var { paths: paths14, texts: texts13, bounds: bounds14, refblocks: refblocks14, circles: circles14 } = boxresistor_small_default;
|
1569
|
+
var boxresistor_small_up_default = modifySymbol({
|
1570
|
+
primitives: [
|
1571
|
+
...Object.values(paths14),
|
1572
|
+
...Object.values(circles14),
|
1573
|
+
{
|
1574
|
+
type: "text",
|
1575
|
+
text: "{REF}",
|
1576
|
+
x: 0.2,
|
1577
|
+
y: -0.1404553499999995
|
1578
|
+
},
|
1579
|
+
{
|
1580
|
+
type: "text",
|
1581
|
+
text: "{VAL}",
|
1582
|
+
x: -0.2,
|
1583
|
+
y: -0.1494553499999995
|
1584
|
+
}
|
1585
|
+
],
|
1586
|
+
ports: [
|
1587
|
+
{ ...refblocks14.left1, labels: ["1"] },
|
1588
|
+
// TODO add more "standard" labels
|
1589
|
+
{ ...refblocks14.right1, labels: ["2"] }
|
1590
|
+
// TODO add more "standard" labels
|
1591
|
+
],
|
1592
|
+
size: { width: bounds14.width, height: bounds14.height },
|
1593
|
+
center: { x: bounds14.centerX, y: bounds14.centerY }
|
1594
|
+
}).rotateRightFacingSymbol("up").labelPort("left", ["1"]).labelPort("right", ["2"]).changeTextAnchor("{REF}", "middle_left").changeTextAnchor("{VAL}", "middle_left").build();
|
1595
|
+
|
1596
|
+
// symbols/boxresistor_up.ts
|
1597
|
+
var { paths: paths15, texts: texts14, bounds: bounds15, refblocks: refblocks15, circles: circles15 } = boxresistor_default;
|
1598
|
+
var boxresistor_up_default = modifySymbol({
|
1599
|
+
primitives: [
|
1600
|
+
...Object.values(paths15),
|
1601
|
+
...Object.values(circles15),
|
1355
1602
|
{
|
1356
1603
|
type: "text",
|
1357
1604
|
text: "{REF}",
|
@@ -1366,12 +1613,12 @@ var boxresistor_up_default = modifySymbol({
|
|
1366
1613
|
}
|
1367
1614
|
],
|
1368
1615
|
ports: [
|
1369
|
-
{ ...
|
1616
|
+
{ ...refblocks15.left1, labels: ["1"] },
|
1370
1617
|
// TODO add more "standard" labels
|
1371
|
-
{ ...
|
1618
|
+
{ ...refblocks15.right1, labels: ["2"] }
|
1372
1619
|
// TODO add more "standard" labels
|
1373
1620
|
],
|
1374
|
-
center: { x:
|
1621
|
+
center: { x: bounds15.centerX, y: bounds15.centerY }
|
1375
1622
|
}).changeTextAnchor("{VAL}", "middle_bottom").rotateRightFacingSymbol("down").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_left").build();
|
1376
1623
|
|
1377
1624
|
// assets/generated/capacitor.json
|
@@ -1476,11 +1723,11 @@ var capacitor_default = {
|
|
1476
1723
|
};
|
1477
1724
|
|
1478
1725
|
// symbols/capacitor_down.ts
|
1479
|
-
var { paths:
|
1726
|
+
var { paths: paths16, texts: texts15, bounds: bounds16, refblocks: refblocks16, circles: circles16 } = capacitor_default;
|
1480
1727
|
var capacitor_down_default = modifySymbol({
|
1481
1728
|
primitives: [
|
1482
|
-
...Object.values(
|
1483
|
-
...Object.values(
|
1729
|
+
...Object.values(paths16),
|
1730
|
+
...Object.values(circles16),
|
1484
1731
|
{
|
1485
1732
|
type: "text",
|
1486
1733
|
text: "{REF}",
|
@@ -1495,13 +1742,13 @@ var capacitor_down_default = modifySymbol({
|
|
1495
1742
|
}
|
1496
1743
|
],
|
1497
1744
|
ports: [
|
1498
|
-
{ ...
|
1745
|
+
{ ...refblocks16.left1, labels: ["1"] },
|
1499
1746
|
// TODO add more "standard" labels
|
1500
|
-
{ ...
|
1747
|
+
{ ...refblocks16.right1, labels: ["2"] }
|
1501
1748
|
// TODO add more "standard" labels
|
1502
1749
|
],
|
1503
|
-
size: { width:
|
1504
|
-
center: { x:
|
1750
|
+
size: { width: bounds16.width, height: bounds16.height },
|
1751
|
+
center: { x: bounds16.centerX, y: bounds16.centerY }
|
1505
1752
|
}).changeTextAnchor("{VAL}", "top_left").rotateRightFacingSymbol("down").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "bottom_left").build();
|
1506
1753
|
|
1507
1754
|
// symbols/capacitor_left.ts
|
@@ -3267,11 +3514,11 @@ var capacitor_polarized_default = {
|
|
3267
3514
|
};
|
3268
3515
|
|
3269
3516
|
// symbols/capacitor_polarized_down.ts
|
3270
|
-
var { paths:
|
3517
|
+
var { paths: paths17, texts: texts16, bounds: bounds17, refblocks: refblocks17, circles: circles17 } = capacitor_polarized_default;
|
3271
3518
|
var capacitor_polarized_down_default = modifySymbol({
|
3272
3519
|
primitives: [
|
3273
|
-
...Object.values(
|
3274
|
-
...Object.values(
|
3520
|
+
...Object.values(paths17),
|
3521
|
+
...Object.values(circles17),
|
3275
3522
|
{
|
3276
3523
|
type: "text",
|
3277
3524
|
text: "{REF}",
|
@@ -3286,13 +3533,13 @@ var capacitor_polarized_down_default = modifySymbol({
|
|
3286
3533
|
}
|
3287
3534
|
],
|
3288
3535
|
ports: [
|
3289
|
-
{ ...
|
3536
|
+
{ ...refblocks17.left1, labels: ["1"] },
|
3290
3537
|
// TODO add more "standard" labels
|
3291
|
-
{ ...
|
3538
|
+
{ ...refblocks17.right1, labels: ["2"] }
|
3292
3539
|
// TODO add more "standard" labels
|
3293
3540
|
],
|
3294
|
-
size: { width:
|
3295
|
-
center: { x:
|
3541
|
+
size: { width: bounds17.width, height: bounds17.height },
|
3542
|
+
center: { x: bounds17.centerX, y: bounds17.centerY }
|
3296
3543
|
}).changeTextAnchor("{VAL}", "top_left").rotateRightFacingSymbol("down").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "bottom_left").build();
|
3297
3544
|
|
3298
3545
|
// symbols/capacitor_polarized_right.ts
|
@@ -3302,11 +3549,11 @@ var capacitor_polarized_right_default = modifySymbol(capacitor_polarized_default
|
|
3302
3549
|
var capacitor_polarized_left_default = modifySymbol(capacitor_polarized_right_default).changeTextAnchor("{VAL}", "middle_top").rotateRightFacingSymbol("left").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_top").build();
|
3303
3550
|
|
3304
3551
|
// symbols/capacitor_polarized_up.ts
|
3305
|
-
var { paths:
|
3552
|
+
var { paths: paths18, texts: texts17, bounds: bounds18, refblocks: refblocks18, circles: circles18 } = capacitor_polarized_default;
|
3306
3553
|
var capacitor_polarized_up_default = modifySymbol({
|
3307
3554
|
primitives: [
|
3308
|
-
...Object.values(
|
3309
|
-
...Object.values(
|
3555
|
+
...Object.values(paths18),
|
3556
|
+
...Object.values(circles18),
|
3310
3557
|
{
|
3311
3558
|
type: "text",
|
3312
3559
|
text: "{REF}",
|
@@ -3321,24 +3568,24 @@ var capacitor_polarized_up_default = modifySymbol({
|
|
3321
3568
|
}
|
3322
3569
|
],
|
3323
3570
|
ports: [
|
3324
|
-
{ ...
|
3571
|
+
{ ...refblocks18.left1, labels: ["1"] },
|
3325
3572
|
// TODO add more "standard" labels
|
3326
|
-
{ ...
|
3573
|
+
{ ...refblocks18.right1, labels: ["2"] }
|
3327
3574
|
// TODO add more "standard" labels
|
3328
3575
|
],
|
3329
|
-
size: { width:
|
3330
|
-
center: { x:
|
3576
|
+
size: { width: bounds18.width, height: bounds18.height },
|
3577
|
+
center: { x: bounds18.centerX, y: bounds18.centerY }
|
3331
3578
|
}).changeTextAnchor("{VAL}", "top_left").rotateRightFacingSymbol("up").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "bottom_left").build();
|
3332
3579
|
|
3333
3580
|
// symbols/capacitor_right.ts
|
3334
3581
|
var capacitor_right_default = modifySymbol(capacitor_default).rotateRightFacingSymbol("right").changeTextAnchor("{VAL}", "middle_top").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_bottom").build();
|
3335
3582
|
|
3336
3583
|
// symbols/capacitor_up.ts
|
3337
|
-
var { paths:
|
3584
|
+
var { paths: paths19, texts: texts18, bounds: bounds19, refblocks: refblocks19, circles: circles19 } = capacitor_default;
|
3338
3585
|
var capacitor_up_default = modifySymbol({
|
3339
3586
|
primitives: [
|
3340
|
-
...Object.values(
|
3341
|
-
...Object.values(
|
3587
|
+
...Object.values(paths19),
|
3588
|
+
...Object.values(circles19),
|
3342
3589
|
{
|
3343
3590
|
type: "text",
|
3344
3591
|
text: "{REF}",
|
@@ -3353,13 +3600,13 @@ var capacitor_up_default = modifySymbol({
|
|
3353
3600
|
}
|
3354
3601
|
],
|
3355
3602
|
ports: [
|
3356
|
-
{ ...
|
3603
|
+
{ ...refblocks19.left1, labels: ["1"] },
|
3357
3604
|
// TODO add more "standard" labels
|
3358
|
-
{ ...
|
3605
|
+
{ ...refblocks19.right1, labels: ["2"] }
|
3359
3606
|
// TODO add more "standard" labels
|
3360
3607
|
],
|
3361
|
-
size: { width:
|
3362
|
-
center: { x:
|
3608
|
+
size: { width: bounds19.width, height: bounds19.height },
|
3609
|
+
center: { x: bounds19.centerX, y: bounds19.centerY }
|
3363
3610
|
}).changeTextAnchor("{VAL}", "top_left").rotateRightFacingSymbol("up").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "bottom_left").build();
|
3364
3611
|
|
3365
3612
|
// assets/generated/constant_current_diode.json
|
@@ -4307,11 +4554,11 @@ var dc_ammeter_default = {
|
|
4307
4554
|
};
|
4308
4555
|
|
4309
4556
|
// symbols/dc_ammeter_horz.ts
|
4310
|
-
var { paths:
|
4557
|
+
var { paths: paths20, texts: texts19, bounds: bounds20, refblocks: refblocks20, circles: circles20 } = dc_ammeter_default;
|
4311
4558
|
var dc_ammeter_horz_default = defineSymbol({
|
4312
4559
|
primitives: [
|
4313
|
-
...Object.values(
|
4314
|
-
...Object.values(
|
4560
|
+
...Object.values(paths20),
|
4561
|
+
...Object.values(circles20),
|
4315
4562
|
{
|
4316
4563
|
type: "text",
|
4317
4564
|
text: "{REF}",
|
@@ -4326,16 +4573,16 @@ var dc_ammeter_horz_default = defineSymbol({
|
|
4326
4573
|
y: 0.35,
|
4327
4574
|
anchor: "middle_bottom"
|
4328
4575
|
},
|
4329
|
-
{ ...
|
4576
|
+
{ ...texts19.left1, x: 0, y: 0.01, anchor: "center", fontSize: 0.3 }
|
4330
4577
|
],
|
4331
4578
|
ports: [
|
4332
|
-
{ ...
|
4579
|
+
{ ...refblocks20.left1, labels: ["1"] },
|
4333
4580
|
// TODO add more "standard" labels
|
4334
|
-
{ ...
|
4581
|
+
{ ...refblocks20.right1, labels: ["2"] }
|
4335
4582
|
// TODO add more "standard" labels
|
4336
4583
|
],
|
4337
|
-
size: { width:
|
4338
|
-
center: { x:
|
4584
|
+
size: { width: bounds20.width, height: bounds20.height },
|
4585
|
+
center: { x: bounds20.centerX, y: bounds20.centerY }
|
4339
4586
|
});
|
4340
4587
|
|
4341
4588
|
// symbols/dc_ammeter_vert.ts
|
@@ -4481,11 +4728,11 @@ var dc_voltmeter_default = {
|
|
4481
4728
|
};
|
4482
4729
|
|
4483
4730
|
// symbols/dc_voltmeter_horz.ts
|
4484
|
-
var { paths:
|
4731
|
+
var { paths: paths21, texts: texts20, bounds: bounds21, refblocks: refblocks21, circles: circles21 } = dc_voltmeter_default;
|
4485
4732
|
var dc_voltmeter_horz_default = defineSymbol({
|
4486
4733
|
primitives: [
|
4487
|
-
...Object.values(
|
4488
|
-
...Object.values(
|
4734
|
+
...Object.values(paths21),
|
4735
|
+
...Object.values(circles21),
|
4489
4736
|
{
|
4490
4737
|
type: "text",
|
4491
4738
|
text: "{REF}",
|
@@ -4502,13 +4749,13 @@ var dc_voltmeter_horz_default = defineSymbol({
|
|
4502
4749
|
}
|
4503
4750
|
],
|
4504
4751
|
ports: [
|
4505
|
-
{ ...
|
4752
|
+
{ ...refblocks21.left1, labels: ["1"] },
|
4506
4753
|
// TODO add more "standard" labels
|
4507
|
-
{ ...
|
4754
|
+
{ ...refblocks21.right1, labels: ["2"] }
|
4508
4755
|
// TODO add more "standard" labels
|
4509
4756
|
],
|
4510
|
-
size: { width:
|
4511
|
-
center: { x:
|
4757
|
+
size: { width: bounds21.width, height: bounds21.height },
|
4758
|
+
center: { x: bounds21.centerX, y: bounds21.centerY }
|
4512
4759
|
});
|
4513
4760
|
|
4514
4761
|
// symbols/dc_voltmeter_vert.ts
|
@@ -4686,11 +4933,11 @@ var diac_horz_default = modifySymbol(diac_default).changeTextAnchor("{VAL}", "mi
|
|
4686
4933
|
|
4687
4934
|
// symbols/diac_vert.ts
|
4688
4935
|
var rotatedSymbol4 = rotateSymbol(diac_horz_default);
|
4689
|
-
var
|
4936
|
+
var texts21 = rotatedSymbol4.primitives.filter(
|
4690
4937
|
(primitive) => primitive.type === "text"
|
4691
4938
|
);
|
4692
|
-
var ref2 =
|
4693
|
-
var val2 =
|
4939
|
+
var ref2 = texts21.find((text) => text.text === "{REF}");
|
4940
|
+
var val2 = texts21.find((text) => text.text === "{VAL}");
|
4694
4941
|
ref2.y = 0;
|
4695
4942
|
val2.y = 0;
|
4696
4943
|
var diac_vert_default = rotatedSymbol4;
|
@@ -6076,11 +6323,11 @@ var frequency_meter_default = {
|
|
6076
6323
|
};
|
6077
6324
|
|
6078
6325
|
// symbols/frequency_meter_horz.ts
|
6079
|
-
var { paths:
|
6326
|
+
var { paths: paths22, texts: texts22, bounds: bounds22, refblocks: refblocks22, circles: circles22 } = frequency_meter_default;
|
6080
6327
|
var frequency_meter_horz_default = defineSymbol({
|
6081
6328
|
primitives: [
|
6082
|
-
...Object.values(
|
6083
|
-
...Object.values(
|
6329
|
+
...Object.values(paths22),
|
6330
|
+
...Object.values(circles22),
|
6084
6331
|
{
|
6085
6332
|
type: "text",
|
6086
6333
|
text: "{REF}",
|
@@ -6095,16 +6342,16 @@ var frequency_meter_horz_default = defineSymbol({
|
|
6095
6342
|
y: 0.35,
|
6096
6343
|
anchor: "middle_bottom"
|
6097
6344
|
},
|
6098
|
-
{ ...
|
6345
|
+
{ ...texts22.left1, x: 0, y: 0.01, anchor: "center", fontSize: 0.2 }
|
6099
6346
|
],
|
6100
6347
|
ports: [
|
6101
|
-
{ ...
|
6348
|
+
{ ...refblocks22.left1, labels: ["1"] },
|
6102
6349
|
// TODO add more "standard" labels
|
6103
|
-
{ ...
|
6350
|
+
{ ...refblocks22.right1, labels: ["2"] }
|
6104
6351
|
// TODO add more "standard" labels
|
6105
6352
|
],
|
6106
|
-
size: { width:
|
6107
|
-
center: { x:
|
6353
|
+
size: { width: bounds22.width, height: bounds22.height },
|
6354
|
+
center: { x: bounds22.centerX, y: bounds22.centerY }
|
6108
6355
|
});
|
6109
6356
|
|
6110
6357
|
// symbols/frequency_meter_vert.ts
|
@@ -6209,11 +6456,11 @@ var fuse_default = {
|
|
6209
6456
|
};
|
6210
6457
|
|
6211
6458
|
// symbols/fuse_horz.ts
|
6212
|
-
var { paths:
|
6459
|
+
var { paths: paths23, texts: texts23, bounds: bounds23, refblocks: refblocks23 } = fuse_default;
|
6213
6460
|
var fuse_horz_default = defineSymbol({
|
6214
6461
|
primitives: [
|
6215
|
-
...Object.values(
|
6216
|
-
{ ...
|
6462
|
+
...Object.values(paths23),
|
6463
|
+
{ ...texts23.top1, anchor: "middle_bottom" },
|
6217
6464
|
{
|
6218
6465
|
type: "text",
|
6219
6466
|
text: "{VAL}",
|
@@ -6223,13 +6470,13 @@ var fuse_horz_default = defineSymbol({
|
|
6223
6470
|
}
|
6224
6471
|
],
|
6225
6472
|
ports: [
|
6226
|
-
{ ...
|
6473
|
+
{ ...refblocks23.left1, labels: ["1"] },
|
6227
6474
|
// TODO add more "standard" labels
|
6228
|
-
{ ...
|
6475
|
+
{ ...refblocks23.right1, labels: ["2"] }
|
6229
6476
|
// TODO add more "standard" labels
|
6230
6477
|
],
|
6231
|
-
size: { width:
|
6232
|
-
center: { x:
|
6478
|
+
size: { width: bounds23.width, height: bounds23.height },
|
6479
|
+
center: { x: bounds23.centerX, y: bounds23.centerY }
|
6233
6480
|
});
|
6234
6481
|
|
6235
6482
|
// symbols/fuse_vert.ts
|
@@ -6337,11 +6584,11 @@ var ground_default = {
|
|
6337
6584
|
};
|
6338
6585
|
|
6339
6586
|
// symbols/ground_horz.ts
|
6340
|
-
var { paths:
|
6587
|
+
var { paths: paths24, circles: circles23, bounds: bounds24, refblocks: refblocks24 } = ground_default;
|
6341
6588
|
var horizontalSymbol = defineSymbol({
|
6342
6589
|
primitives: [
|
6343
|
-
...Object.values(
|
6344
|
-
...Object.values(
|
6590
|
+
...Object.values(paths24),
|
6591
|
+
...Object.values(circles23),
|
6345
6592
|
{
|
6346
6593
|
type: "text",
|
6347
6594
|
text: "{REF}",
|
@@ -6365,7 +6612,7 @@ var horizontalSymbol = defineSymbol({
|
|
6365
6612
|
// Horizontal anchor for VAL
|
6366
6613
|
}
|
6367
6614
|
],
|
6368
|
-
ports: [{ ...
|
6615
|
+
ports: [{ ...refblocks24.top1, labels: ["1"] }],
|
6369
6616
|
size: { width: 1, height: 1 },
|
6370
6617
|
center: { x: 0, y: 0.4 }
|
6371
6618
|
});
|
@@ -6492,7 +6739,7 @@ var gunn_diode_default = {
|
|
6492
6739
|
};
|
6493
6740
|
|
6494
6741
|
// symbols/gunn_diode_horz.ts
|
6495
|
-
var { paths:
|
6742
|
+
var { paths: paths25, texts: texts24, bounds: bounds25, refblocks: refblocks25, circles: circles24 } = gunn_diode_default;
|
6496
6743
|
var gunn_diode_horz_default = modifySymbol(gunn_diode_default).changeTextAnchor("{VAL}", "middle_top").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_bottom").build();
|
6497
6744
|
|
6498
6745
|
// symbols/gunn_diode_vert.ts
|
@@ -7260,12 +7507,12 @@ var illuminated_push_button_normally_open_horz_default = modifySymbol(illuminate
|
|
7260
7507
|
|
7261
7508
|
// symbols/illuminated_push_button_normally_open_vert.ts
|
7262
7509
|
var rotatedSymbol6 = rotateSymbol(illuminated_push_button_normally_open_horz_default);
|
7263
|
-
var
|
7264
|
-
var val16 =
|
7510
|
+
var texts25 = rotatedSymbol6.primitives.filter((p) => p.type === "text");
|
7511
|
+
var val16 = texts25.find((t) => t.text === "{VAL}");
|
7265
7512
|
val16.x = -0.35;
|
7266
7513
|
val16.y = 0;
|
7267
7514
|
val16.anchor = "middle_right";
|
7268
|
-
var ref16 =
|
7515
|
+
var ref16 = texts25.find((t) => t.text === "{REF}");
|
7269
7516
|
ref16.y = 0;
|
7270
7517
|
ref16.x = 0.35;
|
7271
7518
|
ref16.anchor = "middle_left";
|
@@ -8667,22 +8914,22 @@ var inductor_default = {
|
|
8667
8914
|
};
|
8668
8915
|
|
8669
8916
|
// symbols/inductor_right.ts
|
8670
|
-
var { paths:
|
8917
|
+
var { paths: paths26, texts: texts26, bounds: bounds26, refblocks: refblocks26, circles: circles25 } = inductor_default;
|
8671
8918
|
var inductor_right_default = defineSymbol({
|
8672
8919
|
primitives: [
|
8673
|
-
...Object.values(
|
8674
|
-
...Object.values(
|
8675
|
-
{ ...
|
8676
|
-
{ ...
|
8920
|
+
...Object.values(paths26),
|
8921
|
+
...Object.values(circles25),
|
8922
|
+
{ ...texts26.top1, anchor: "middle_bottom" },
|
8923
|
+
{ ...texts26.bottom1, anchor: "middle_top" }
|
8677
8924
|
],
|
8678
8925
|
ports: [
|
8679
|
-
{ ...
|
8926
|
+
{ ...refblocks26.left1, labels: ["1"] },
|
8680
8927
|
// TODO add more "standard" labels
|
8681
|
-
{ ...
|
8928
|
+
{ ...refblocks26.right1, labels: ["2"] }
|
8682
8929
|
// TODO add more "standard" labels
|
8683
8930
|
],
|
8684
|
-
size: { width:
|
8685
|
-
center: { x:
|
8931
|
+
size: { width: bounds26.width, height: bounds26.height },
|
8932
|
+
center: { x: bounds26.centerX, y: bounds26.centerY }
|
8686
8933
|
});
|
8687
8934
|
|
8688
8935
|
// symbols/inductor_up.ts
|
@@ -8939,8 +9186,8 @@ var laser_diode_horz_default = modifySymbol(laser_diode_default).changeTextAncho
|
|
8939
9186
|
|
8940
9187
|
// symbols/laser_diode_vert.ts
|
8941
9188
|
var rotatedSymbol7 = rotateSymbol(laser_diode_horz_default);
|
8942
|
-
var
|
8943
|
-
var ref17 =
|
9189
|
+
var texts27 = rotatedSymbol7.primitives.filter((p) => p.type === "text");
|
9190
|
+
var ref17 = texts27.find((t) => t.text === "{VAL}");
|
8944
9191
|
ref17.x = -0.52;
|
8945
9192
|
ref17.anchor = "middle_right";
|
8946
9193
|
var laser_diode_vert_default = rotatedSymbol7;
|
@@ -9161,22 +9408,22 @@ var led_default = {
|
|
9161
9408
|
};
|
9162
9409
|
|
9163
9410
|
// symbols/led_right.ts
|
9164
|
-
var { paths:
|
9411
|
+
var { paths: paths27, texts: texts28, bounds: bounds27, refblocks: refblocks27, circles: circles26 } = led_default;
|
9165
9412
|
var led_right_default = defineSymbol({
|
9166
9413
|
primitives: [
|
9167
|
-
...Object.values(
|
9168
|
-
...Object.values(
|
9169
|
-
{ ...
|
9170
|
-
{ ...
|
9414
|
+
...Object.values(paths27),
|
9415
|
+
...Object.values(circles26),
|
9416
|
+
{ ...texts28.bottom1, anchor: "middle_top" },
|
9417
|
+
{ ...texts28.right1, anchor: "middle_bottom" }
|
9171
9418
|
],
|
9172
9419
|
ports: [
|
9173
|
-
{ ...
|
9420
|
+
{ ...refblocks27.left1, labels: ["1"] },
|
9174
9421
|
// TODO add more "standard" labels
|
9175
|
-
{ ...
|
9422
|
+
{ ...refblocks27.right1, labels: ["2"] }
|
9176
9423
|
// TODO add more "standard" labels
|
9177
9424
|
],
|
9178
|
-
size: { width:
|
9179
|
-
center: { x:
|
9425
|
+
size: { width: bounds27.width, height: bounds27.height },
|
9426
|
+
center: { x: bounds27.centerX, y: bounds27.centerY }
|
9180
9427
|
});
|
9181
9428
|
|
9182
9429
|
// symbols/led_down.ts
|
@@ -9429,32 +9676,32 @@ var light_dependent_resistor_default = {
|
|
9429
9676
|
};
|
9430
9677
|
|
9431
9678
|
// symbols/light_dependent_resistor_horz.ts
|
9432
|
-
var { paths:
|
9679
|
+
var { paths: paths28, texts: texts29, bounds: bounds28, refblocks: refblocks28, circles: circles27 } = light_dependent_resistor_default;
|
9433
9680
|
var light_dependent_resistor_horz_default = defineSymbol({
|
9434
9681
|
primitives: [
|
9435
|
-
...Object.values(
|
9436
|
-
...Object.values(
|
9437
|
-
{ ...
|
9438
|
-
{ ...
|
9682
|
+
...Object.values(paths28),
|
9683
|
+
...Object.values(circles27),
|
9684
|
+
{ ...texts29.top1, anchor: "middle_left", x: 0 },
|
9685
|
+
{ ...texts29.bottom1, anchor: "middle_left", x: 0 }
|
9439
9686
|
],
|
9440
9687
|
ports: [
|
9441
|
-
{ ...
|
9688
|
+
{ ...refblocks28.left1, labels: ["1"] },
|
9442
9689
|
// TODO add more "standard" labels
|
9443
|
-
{ ...
|
9690
|
+
{ ...refblocks28.right1, labels: ["2"] }
|
9444
9691
|
// TODO add more "standard" labels
|
9445
9692
|
],
|
9446
|
-
size: { width:
|
9447
|
-
center: { x:
|
9693
|
+
size: { width: bounds28.width, height: bounds28.height },
|
9694
|
+
center: { x: bounds28.centerX, y: bounds28.centerY }
|
9448
9695
|
});
|
9449
9696
|
|
9450
9697
|
// symbols/light_dependent_resistor_vert.ts
|
9451
9698
|
var rotatedSymbol8 = rotateSymbol(light_dependent_resistor_horz_default);
|
9452
|
-
var
|
9453
|
-
var val17 =
|
9699
|
+
var texts30 = rotatedSymbol8.primitives.filter((p) => p.type === "text");
|
9700
|
+
var val17 = texts30.find((t) => t.text === "{VAL}");
|
9454
9701
|
val17.x = -0.35;
|
9455
9702
|
val17.y = 0;
|
9456
9703
|
val17.anchor = "middle_right";
|
9457
|
-
var ref18 =
|
9704
|
+
var ref18 = texts30.find((t) => t.text === "{REF}");
|
9458
9705
|
ref18.y = 0;
|
9459
9706
|
ref18.x = 0.35;
|
9460
9707
|
ref18.anchor = "middle_left";
|
@@ -9731,23 +9978,23 @@ var mosfet_depletion_normally_on_default = {
|
|
9731
9978
|
};
|
9732
9979
|
|
9733
9980
|
// symbols/mosfet_depletion_normally_on_horz.ts
|
9734
|
-
var { paths:
|
9981
|
+
var { paths: paths29, texts: texts31, bounds: bounds29, refblocks: refblocks29 } = mosfet_depletion_normally_on_default;
|
9735
9982
|
var mosfet_depletion_normally_on_horz_default = defineSymbol({
|
9736
9983
|
primitives: [
|
9737
|
-
...Object.values(
|
9738
|
-
{ ...
|
9739
|
-
{ ...
|
9984
|
+
...Object.values(paths29),
|
9985
|
+
{ ...texts31.right1, anchor: "middle_left" },
|
9986
|
+
{ ...texts31.right2, anchor: "middle_left" }
|
9740
9987
|
],
|
9741
9988
|
ports: [
|
9742
|
-
{ ...
|
9989
|
+
{ ...refblocks29.top1, labels: ["1"] },
|
9743
9990
|
// TODO add more "standard" labels
|
9744
|
-
{ ...
|
9991
|
+
{ ...refblocks29.bottom1, labels: ["2"] },
|
9745
9992
|
// TODO add more "standard" labels
|
9746
|
-
{ ...
|
9993
|
+
{ ...refblocks29.left1, labels: ["3"] }
|
9747
9994
|
// TODO add more "standard" labels
|
9748
9995
|
],
|
9749
|
-
size: { width:
|
9750
|
-
center: { x:
|
9996
|
+
size: { width: bounds29.width + 0.4, height: bounds29.height },
|
9997
|
+
center: { x: bounds29.centerX + 0.2, y: bounds29.centerY }
|
9751
9998
|
});
|
9752
9999
|
|
9753
10000
|
// symbols/mosfet_depletion_normally_on_vert.ts
|
@@ -10373,20 +10620,20 @@ var mushroom_head_normally_open_momentary_default = {
|
|
10373
10620
|
};
|
10374
10621
|
|
10375
10622
|
// symbols/mushroom_head_normally_open_momentary_horz.ts
|
10376
|
-
var { paths:
|
10623
|
+
var { paths: paths30, texts: texts32, bounds: bounds30, refblocks: refblocks30, circles: circles28 } = mushroom_head_normally_open_momentary_default;
|
10377
10624
|
var mushroom_head_normally_open_momentary_horz_default = defineSymbol({
|
10378
10625
|
primitives: [
|
10379
|
-
...Object.values(
|
10380
|
-
...Object.values(
|
10381
|
-
{ ...
|
10382
|
-
{ ...
|
10626
|
+
...Object.values(paths30),
|
10627
|
+
...Object.values(circles28),
|
10628
|
+
{ ...texts32.top1, anchor: "middle_bottom", x: 0 },
|
10629
|
+
{ ...texts32.bottom1, anchor: "middle_top", x: 0 }
|
10383
10630
|
],
|
10384
10631
|
ports: [
|
10385
|
-
{ ...
|
10386
|
-
{ ...
|
10632
|
+
{ ...refblocks30.left1, labels: ["1"] },
|
10633
|
+
{ ...refblocks30.right1, labels: ["2"] }
|
10387
10634
|
],
|
10388
|
-
size: { width:
|
10389
|
-
center: { x:
|
10635
|
+
size: { width: bounds30.width, height: bounds30.height },
|
10636
|
+
center: { x: bounds30.centerX + 6e-3, y: bounds30.centerY + 0.06 }
|
10390
10637
|
});
|
10391
10638
|
|
10392
10639
|
// symbols/mushroom_head_normally_open_momentary_vert.ts
|
@@ -10603,34 +10850,34 @@ var n_channel_d_mosfet_transistor_default = {
|
|
10603
10850
|
};
|
10604
10851
|
|
10605
10852
|
// symbols/n_channel_d_mosfet_transistor_horz.ts
|
10606
|
-
var { paths:
|
10853
|
+
var { paths: paths31, texts: texts33, bounds: bounds31, refblocks: refblocks31, circles: circles29 } = n_channel_d_mosfet_transistor_default;
|
10607
10854
|
var n_channel_d_mosfet_transistor_horz_default = defineSymbol({
|
10608
10855
|
primitives: [
|
10609
|
-
...Object.values(
|
10610
|
-
...Object.values(
|
10611
|
-
{ ...
|
10612
|
-
{ ...
|
10856
|
+
...Object.values(paths31),
|
10857
|
+
...Object.values(circles29),
|
10858
|
+
{ ...texts33.top1, anchor: "middle_right", x: 0 },
|
10859
|
+
{ ...texts33.bottom1, anchor: "middle_right", x: 0 }
|
10613
10860
|
],
|
10614
10861
|
ports: [
|
10615
|
-
{ ...
|
10862
|
+
{ ...refblocks31.top1, labels: ["1", "drain"] },
|
10616
10863
|
// TODO add more "standard" labels
|
10617
|
-
{ ...
|
10864
|
+
{ ...refblocks31.bottom1, labels: ["2", "source"] },
|
10618
10865
|
// TODO add more "standard" labels
|
10619
|
-
{ ...
|
10866
|
+
{ ...refblocks31.left1, labels: ["3", "gate"] }
|
10620
10867
|
// TODO add more "standard" labels
|
10621
10868
|
],
|
10622
|
-
size: { width:
|
10623
|
-
center: { x:
|
10869
|
+
size: { width: bounds31.width, height: bounds31.height },
|
10870
|
+
center: { x: bounds31.centerX, y: bounds31.centerY }
|
10624
10871
|
});
|
10625
10872
|
|
10626
10873
|
// symbols/n_channel_d_mosfet_transistor_vert.ts
|
10627
10874
|
var rotatedSymbol9 = rotateSymbol(n_channel_d_mosfet_transistor_horz_default);
|
10628
|
-
var
|
10629
|
-
var val20 =
|
10875
|
+
var texts34 = rotatedSymbol9.primitives.filter((p) => p.type === "text");
|
10876
|
+
var val20 = texts34.find((t) => t.text === "{VAL}");
|
10630
10877
|
val20.x = -0.35;
|
10631
10878
|
val20.y = 0;
|
10632
10879
|
val20.anchor = "middle_right";
|
10633
|
-
var ref21 =
|
10880
|
+
var ref21 = texts34.find((t) => t.text === "{REF}");
|
10634
10881
|
ref21.y = 0;
|
10635
10882
|
ref21.x = 0.35;
|
10636
10883
|
ref21.anchor = "middle_left";
|
@@ -10864,34 +11111,34 @@ var n_channel_e_mosfet_transistor_default = {
|
|
10864
11111
|
};
|
10865
11112
|
|
10866
11113
|
// symbols/n_channel_e_mosfet_transistor_horz.ts
|
10867
|
-
var { paths:
|
11114
|
+
var { paths: paths32, texts: texts35, bounds: bounds32, refblocks: refblocks32, circles: circles30 } = n_channel_e_mosfet_transistor_default;
|
10868
11115
|
var n_channel_e_mosfet_transistor_horz_default = defineSymbol({
|
10869
11116
|
primitives: [
|
10870
|
-
...Object.values(
|
10871
|
-
...Object.values(
|
10872
|
-
{ ...
|
10873
|
-
{ ...
|
11117
|
+
...Object.values(paths32),
|
11118
|
+
...Object.values(circles30),
|
11119
|
+
{ ...texts35.top1, anchor: "middle_right", x: 0 },
|
11120
|
+
{ ...texts35.bottom1, anchor: "middle_right", x: 0 }
|
10874
11121
|
],
|
10875
11122
|
ports: [
|
10876
|
-
{ ...
|
11123
|
+
{ ...refblocks32.top1, labels: ["1", "drain"] },
|
10877
11124
|
// TODO add more "standard" labels
|
10878
|
-
{ ...
|
11125
|
+
{ ...refblocks32.bottom1, labels: ["2", "source"] },
|
10879
11126
|
// TODO add more "standard" labels
|
10880
|
-
{ ...
|
11127
|
+
{ ...refblocks32.left1, labels: ["3", "gate"] }
|
10881
11128
|
// TODO add more "standard" labels
|
10882
11129
|
],
|
10883
|
-
size: { width:
|
10884
|
-
center: { x:
|
11130
|
+
size: { width: bounds32.width, height: bounds32.height },
|
11131
|
+
center: { x: bounds32.centerX, y: bounds32.centerY }
|
10885
11132
|
});
|
10886
11133
|
|
10887
11134
|
// symbols/n_channel_e_mosfet_transistor_vert.ts
|
10888
11135
|
var rotatedSymbol10 = rotateSymbol(n_channel_e_mosfet_transistor_horz_default);
|
10889
|
-
var
|
10890
|
-
var val21 =
|
11136
|
+
var texts36 = rotatedSymbol10.primitives.filter((p) => p.type === "text");
|
11137
|
+
var val21 = texts36.find((t) => t.text === "{VAL}");
|
10891
11138
|
val21.x = -0.35;
|
10892
11139
|
val21.y = 0;
|
10893
11140
|
val21.anchor = "middle_right";
|
10894
|
-
var ref22 =
|
11141
|
+
var ref22 = texts36.find((t) => t.text === "{REF}");
|
10895
11142
|
ref22.y = 0;
|
10896
11143
|
ref22.x = 0.35;
|
10897
11144
|
ref22.anchor = "middle_left";
|
@@ -11065,34 +11312,34 @@ var njfet_transistor_default = {
|
|
11065
11312
|
};
|
11066
11313
|
|
11067
11314
|
// symbols/njfet_transistor_horz.ts
|
11068
|
-
var { paths:
|
11315
|
+
var { paths: paths33, texts: texts37, bounds: bounds33, refblocks: refblocks33, circles: circles31 } = njfet_transistor_default;
|
11069
11316
|
var njfet_transistor_horz_default = defineSymbol({
|
11070
11317
|
primitives: [
|
11071
|
-
...Object.values(
|
11072
|
-
...Object.values(
|
11073
|
-
{ ...
|
11074
|
-
{ ...
|
11318
|
+
...Object.values(paths33),
|
11319
|
+
...Object.values(circles31),
|
11320
|
+
{ ...texts37.top1, anchor: "middle_right", x: 0 },
|
11321
|
+
{ ...texts37.bottom1, anchor: "middle_right", x: 0 }
|
11075
11322
|
],
|
11076
11323
|
ports: [
|
11077
|
-
{ ...
|
11324
|
+
{ ...refblocks33.top1, labels: ["1", "drain"] },
|
11078
11325
|
// TODO add more "standard" labels
|
11079
|
-
{ ...
|
11326
|
+
{ ...refblocks33.bottom1, labels: ["2", "source"] },
|
11080
11327
|
// TODO add more "standard" labels
|
11081
|
-
{ ...
|
11328
|
+
{ ...refblocks33.left1, labels: ["3", "gate"] }
|
11082
11329
|
// TODO add more "standard" labels
|
11083
11330
|
],
|
11084
|
-
size: { width:
|
11085
|
-
center: { x:
|
11331
|
+
size: { width: bounds33.width, height: bounds33.height },
|
11332
|
+
center: { x: bounds33.centerX, y: bounds33.centerY }
|
11086
11333
|
});
|
11087
11334
|
|
11088
11335
|
// symbols/njfet_transistor_vert.ts
|
11089
11336
|
var rotatedSymbol11 = rotateSymbol(njfet_transistor_horz_default);
|
11090
|
-
var
|
11091
|
-
var val22 =
|
11337
|
+
var texts38 = rotatedSymbol11.primitives.filter((p) => p.type === "text");
|
11338
|
+
var val22 = texts38.find((t) => t.text === "{VAL}");
|
11092
11339
|
val22.x = -0.35;
|
11093
11340
|
val22.y = 0;
|
11094
11341
|
val22.anchor = "middle_right";
|
11095
|
-
var ref23 =
|
11342
|
+
var ref23 = texts38.find((t) => t.text === "{REF}");
|
11096
11343
|
ref23.y = 0;
|
11097
11344
|
ref23.x = 0.35;
|
11098
11345
|
ref23.anchor = "middle_left";
|
@@ -11266,13 +11513,13 @@ var npn_bipolar_transistor_default = {
|
|
11266
11513
|
};
|
11267
11514
|
|
11268
11515
|
// symbols/npn_bipolar_transistor_horz.ts
|
11269
|
-
var { paths:
|
11516
|
+
var { paths: paths34, texts: texts39, bounds: bounds34, refblocks: refblocks34, circles: circles32 } = npn_bipolar_transistor_default;
|
11270
11517
|
var npn_bipolar_transistor_horz_default = modifySymbol(npn_bipolar_transistor_default).changeTextAnchor("{VAL}", "middle_right").labelPort("left1", ["3"]).labelPort("top1", ["1"]).labelPort("bottom1", ["2"]).changeTextAnchor("{REF}", "middle_right").build();
|
11271
11518
|
|
11272
11519
|
// symbols/npn_bipolar_transistor_vert.ts
|
11273
11520
|
var rotatedSymbol12 = rotateSymbol(npn_bipolar_transistor_horz_default);
|
11274
|
-
var
|
11275
|
-
var ref24 =
|
11521
|
+
var texts40 = rotatedSymbol12.primitives.filter((p) => p.type === "text");
|
11522
|
+
var ref24 = texts40.find((t) => t.text === "{REF}");
|
11276
11523
|
ref24.anchor = "middle_left";
|
11277
11524
|
var npn_bipolar_transistor_vert_default = modifySymbol(npn_bipolar_transistor_default).rotateRightFacingSymbol("down").changeTextAnchor("{VAL}", "middle_right").labelPort("left1", ["3"]).labelPort("top1", ["1"]).labelPort("bottom1", ["2"]).changeTextAnchor("{REF}", "middle_left").build();
|
11278
11525
|
|
@@ -11896,34 +12143,34 @@ var p_channel_d_mosfet_transistor_default = {
|
|
11896
12143
|
};
|
11897
12144
|
|
11898
12145
|
// symbols/p_channel_d_mosfet_transistor_horz.ts
|
11899
|
-
var { paths:
|
12146
|
+
var { paths: paths35, texts: texts41, bounds: bounds35, refblocks: refblocks35, circles: circles33 } = p_channel_d_mosfet_transistor_default;
|
11900
12147
|
var p_channel_d_mosfet_transistor_horz_default = defineSymbol({
|
11901
12148
|
primitives: [
|
11902
|
-
...Object.values(
|
11903
|
-
...Object.values(
|
11904
|
-
{ ...
|
11905
|
-
{ ...
|
12149
|
+
...Object.values(paths35),
|
12150
|
+
...Object.values(circles33),
|
12151
|
+
{ ...texts41.top1, anchor: "middle_right", x: 0 },
|
12152
|
+
{ ...texts41.bottom1, anchor: "middle_right", x: 0 }
|
11906
12153
|
],
|
11907
12154
|
ports: [
|
11908
|
-
{ ...
|
12155
|
+
{ ...refblocks35.top1, labels: ["1", "drain"] },
|
11909
12156
|
// TODO add more "standard" labels
|
11910
|
-
{ ...
|
12157
|
+
{ ...refblocks35.bottom1, labels: ["2", "source"] },
|
11911
12158
|
// TODO add more "standard" labels
|
11912
|
-
{ ...
|
12159
|
+
{ ...refblocks35.left1, labels: ["3", "gate"] }
|
11913
12160
|
// TODO add more "standard" labels
|
11914
12161
|
],
|
11915
|
-
size: { width:
|
11916
|
-
center: { x:
|
12162
|
+
size: { width: bounds35.width, height: bounds35.height },
|
12163
|
+
center: { x: bounds35.centerX, y: bounds35.centerY }
|
11917
12164
|
});
|
11918
12165
|
|
11919
12166
|
// symbols/p_channel_d_mosfet_transistor_vert.ts
|
11920
12167
|
var rotatedSymbol13 = rotateSymbol(p_channel_d_mosfet_transistor_horz_default);
|
11921
|
-
var
|
11922
|
-
var val23 =
|
12168
|
+
var texts42 = rotatedSymbol13.primitives.filter((p) => p.type === "text");
|
12169
|
+
var val23 = texts42.find((t) => t.text === "{VAL}");
|
11923
12170
|
val23.x = -0.35;
|
11924
12171
|
val23.y = 0;
|
11925
12172
|
val23.anchor = "middle_right";
|
11926
|
-
var ref25 =
|
12173
|
+
var ref25 = texts42.find((t) => t.text === "{REF}");
|
11927
12174
|
ref25.y = 0;
|
11928
12175
|
ref25.x = 0.35;
|
11929
12176
|
ref25.anchor = "middle_left";
|
@@ -12157,34 +12404,34 @@ var p_channel_e_mosfet_transistor_default = {
|
|
12157
12404
|
};
|
12158
12405
|
|
12159
12406
|
// symbols/p_channel_e_mosfet_transistor_horz.ts
|
12160
|
-
var { paths:
|
12407
|
+
var { paths: paths36, texts: texts43, bounds: bounds36, refblocks: refblocks36, circles: circles34 } = p_channel_e_mosfet_transistor_default;
|
12161
12408
|
var p_channel_e_mosfet_transistor_horz_default = defineSymbol({
|
12162
12409
|
primitives: [
|
12163
|
-
...Object.values(
|
12164
|
-
...Object.values(
|
12165
|
-
{ ...
|
12166
|
-
{ ...
|
12410
|
+
...Object.values(paths36),
|
12411
|
+
...Object.values(circles34),
|
12412
|
+
{ ...texts43.top1, anchor: "middle_right", x: 0 },
|
12413
|
+
{ ...texts43.bottom1, anchor: "middle_right", x: 0 }
|
12167
12414
|
],
|
12168
12415
|
ports: [
|
12169
|
-
{ ...
|
12416
|
+
{ ...refblocks36.top1, labels: ["1", "drain"] },
|
12170
12417
|
// TODO add more "standard" labels
|
12171
|
-
{ ...
|
12418
|
+
{ ...refblocks36.bottom1, labels: ["2", "source"] },
|
12172
12419
|
// TODO add more "standard" labels
|
12173
|
-
{ ...
|
12420
|
+
{ ...refblocks36.left1, labels: ["3", "gate"] }
|
12174
12421
|
// TODO add more "standard" labels
|
12175
12422
|
],
|
12176
|
-
size: { width:
|
12177
|
-
center: { x:
|
12423
|
+
size: { width: bounds36.width, height: bounds36.height },
|
12424
|
+
center: { x: bounds36.centerX, y: bounds36.centerY }
|
12178
12425
|
});
|
12179
12426
|
|
12180
12427
|
// symbols/p_channel_e_mosfet_transistor_vert.ts
|
12181
12428
|
var rotatedSymbol14 = rotateSymbol(p_channel_e_mosfet_transistor_horz_default);
|
12182
|
-
var
|
12183
|
-
var val24 =
|
12429
|
+
var texts44 = rotatedSymbol14.primitives.filter((p) => p.type === "text");
|
12430
|
+
var val24 = texts44.find((t) => t.text === "{VAL}");
|
12184
12431
|
val24.x = -0.35;
|
12185
12432
|
val24.y = 0;
|
12186
12433
|
val24.anchor = "middle_right";
|
12187
|
-
var ref26 =
|
12434
|
+
var ref26 = texts44.find((t) => t.text === "{REF}");
|
12188
12435
|
ref26.y = 0;
|
12189
12436
|
ref26.x = 0.35;
|
12190
12437
|
ref26.anchor = "middle_left";
|
@@ -12419,8 +12666,8 @@ var photodiode_horz_default = modifySymbol(photodiode_default).changeTextAnchor(
|
|
12419
12666
|
|
12420
12667
|
// symbols/photodiode_vert.ts
|
12421
12668
|
var rotatedSymbol15 = rotateSymbol(photodiode_horz_default);
|
12422
|
-
var
|
12423
|
-
var ref27 =
|
12669
|
+
var texts45 = rotatedSymbol15.primitives.filter((p) => p.type === "text");
|
12670
|
+
var ref27 = texts45.find((t) => t.text === "{REF}");
|
12424
12671
|
ref27.y = 0;
|
12425
12672
|
ref27.anchor = "middle_left";
|
12426
12673
|
var photodiode_vert_default = rotatedSymbol15;
|
@@ -12593,34 +12840,34 @@ var pjfet_transistor_default = {
|
|
12593
12840
|
};
|
12594
12841
|
|
12595
12842
|
// symbols/pjfet_transistor_horz.ts
|
12596
|
-
var { paths:
|
12843
|
+
var { paths: paths37, texts: texts46, bounds: bounds37, refblocks: refblocks37, circles: circles35 } = pjfet_transistor_default;
|
12597
12844
|
var pjfet_transistor_horz_default = defineSymbol({
|
12598
12845
|
primitives: [
|
12599
|
-
...Object.values(
|
12600
|
-
...Object.values(
|
12601
|
-
{ ...
|
12602
|
-
{ ...
|
12846
|
+
...Object.values(paths37),
|
12847
|
+
...Object.values(circles35),
|
12848
|
+
{ ...texts46.top1, anchor: "middle_right", x: 0 },
|
12849
|
+
{ ...texts46.bottom1, anchor: "middle_right" }
|
12603
12850
|
],
|
12604
12851
|
ports: [
|
12605
|
-
{ ...
|
12852
|
+
{ ...refblocks37.top1, labels: ["1", "drain"] },
|
12606
12853
|
// TODO add more "standard" labels
|
12607
|
-
{ ...
|
12854
|
+
{ ...refblocks37.bottom1, labels: ["2", "source"] },
|
12608
12855
|
// TODO add more "standard" labels
|
12609
|
-
{ ...
|
12856
|
+
{ ...refblocks37.left1, labels: ["3", "gate"] }
|
12610
12857
|
// TODO add more "standard" labels
|
12611
12858
|
],
|
12612
|
-
size: { width:
|
12613
|
-
center: { x:
|
12859
|
+
size: { width: bounds37.width, height: bounds37.height },
|
12860
|
+
center: { x: bounds37.centerX, y: bounds37.centerY }
|
12614
12861
|
});
|
12615
12862
|
|
12616
12863
|
// symbols/pjfet_transistor_vert.ts
|
12617
12864
|
var rotatedSymbol16 = rotateSymbol(pjfet_transistor_horz_default);
|
12618
|
-
var
|
12619
|
-
var val25 =
|
12865
|
+
var texts47 = rotatedSymbol16.primitives.filter((p) => p.type === "text");
|
12866
|
+
var val25 = texts47.find((t) => t.text === "{VAL}");
|
12620
12867
|
val25.x = -0.35;
|
12621
12868
|
val25.y = 0;
|
12622
12869
|
val25.anchor = "middle_right";
|
12623
|
-
var ref28 =
|
12870
|
+
var ref28 = texts47.find((t) => t.text === "{REF}");
|
12624
12871
|
ref28.y = 0;
|
12625
12872
|
ref28.x = 0.35;
|
12626
12873
|
ref28.anchor = "middle_left";
|
@@ -12798,8 +13045,8 @@ var pnp_bipolar_transistor_horz_default = modifySymbol(pnp_bipolar_transistor_de
|
|
12798
13045
|
|
12799
13046
|
// symbols/pnp_bipolar_transistor_vert.ts
|
12800
13047
|
var rotatedSymbol17 = rotateSymbol(pnp_bipolar_transistor_horz_default);
|
12801
|
-
var
|
12802
|
-
var ref29 =
|
13048
|
+
var texts48 = rotatedSymbol17.primitives.filter((p) => p.type === "text");
|
13049
|
+
var ref29 = texts48.find((t) => t.text === "{REF}");
|
12803
13050
|
ref29.anchor = "middle_left";
|
12804
13051
|
var pnp_bipolar_transistor_vert_default = modifySymbol(pnp_bipolar_transistor_default).rotateRightFacingSymbol("down").changeTextAnchor("{VAL}", "middle_right").labelPort("left1", ["3"]).labelPort("bottom1", ["2"]).labelPort("top1", ["1"]).changeTextAnchor("{REF}", "middle_left").build();
|
12805
13052
|
|
@@ -13213,21 +13460,21 @@ var potentiometer_default = {
|
|
13213
13460
|
};
|
13214
13461
|
|
13215
13462
|
// symbols/potentiometer_horz.ts
|
13216
|
-
var { paths:
|
13463
|
+
var { paths: paths38, texts: texts49, bounds: bounds38, refblocks: refblocks38 } = potentiometer_default;
|
13217
13464
|
var potentiometer_horz_default = defineSymbol({
|
13218
13465
|
primitives: [
|
13219
|
-
...Object.values(
|
13220
|
-
{ ...
|
13221
|
-
{ ...
|
13466
|
+
...Object.values(paths38),
|
13467
|
+
{ ...texts49.bottom1, y: 0.35, anchor: "middle_top" },
|
13468
|
+
{ ...texts49.top1, anchor: "middle_left" }
|
13222
13469
|
],
|
13223
13470
|
ports: [
|
13224
|
-
{ ...
|
13471
|
+
{ ...refblocks38.left1, labels: ["1"] },
|
13225
13472
|
// TODO add more "standard" labels
|
13226
|
-
{ ...
|
13473
|
+
{ ...refblocks38.right1, labels: ["2"] }
|
13227
13474
|
// TODO add more "standard" labels
|
13228
13475
|
],
|
13229
|
-
size: { width:
|
13230
|
-
center: { x:
|
13476
|
+
size: { width: bounds38.width + 0.05, height: bounds38.height },
|
13477
|
+
center: { x: bounds38.centerX, y: bounds38.centerY }
|
13231
13478
|
});
|
13232
13479
|
|
13233
13480
|
// symbols/potentiometer_vert.ts
|
@@ -13390,29 +13637,29 @@ var potentiometer2_default = {
|
|
13390
13637
|
};
|
13391
13638
|
|
13392
13639
|
// symbols/potentiometer2_horz.ts
|
13393
|
-
var { paths:
|
13640
|
+
var { paths: paths39, texts: texts50, bounds: bounds39, refblocks: refblocks39 } = potentiometer2_default;
|
13394
13641
|
var potentiometer2_horz_default = defineSymbol({
|
13395
13642
|
primitives: [
|
13396
|
-
...Object.values(
|
13397
|
-
{ ...
|
13398
|
-
{ ...
|
13643
|
+
...Object.values(paths39),
|
13644
|
+
{ ...texts50.bottom1, anchor: "middle_top" },
|
13645
|
+
{ ...texts50.top1, anchor: "middle_bottom" }
|
13399
13646
|
],
|
13400
13647
|
ports: [
|
13401
|
-
{ ...
|
13648
|
+
{ ...refblocks39.left1, labels: ["1"] },
|
13402
13649
|
// TODO add more "standard" labels
|
13403
|
-
{ ...
|
13650
|
+
{ ...refblocks39.right1, labels: ["2"] }
|
13404
13651
|
// TODO add more "standard" labels
|
13405
13652
|
],
|
13406
|
-
size: { width:
|
13407
|
-
center: { x:
|
13653
|
+
size: { width: bounds39.width, height: bounds39.height },
|
13654
|
+
center: { x: bounds39.centerX, y: bounds39.centerY }
|
13408
13655
|
});
|
13409
13656
|
|
13410
13657
|
// symbols/potentiometer2_vert.ts
|
13411
13658
|
var rotated19 = rotateSymbol(potentiometer2_horz_default);
|
13412
|
-
var
|
13413
|
-
var val26 =
|
13659
|
+
var texts51 = rotated19.primitives.filter((p) => p.type === "text");
|
13660
|
+
var val26 = texts51.find((t) => t.text === "{VAL}");
|
13414
13661
|
val26.anchor = "middle_right";
|
13415
|
-
var ref30 =
|
13662
|
+
var ref30 = texts51.find((t) => t.text === "{REF}");
|
13416
13663
|
ref30.anchor = "middle_left";
|
13417
13664
|
var potentiometer2_vert_default = rotated19;
|
13418
13665
|
|
@@ -13610,11 +13857,11 @@ var power_factor_meter_default = {
|
|
13610
13857
|
};
|
13611
13858
|
|
13612
13859
|
// symbols/power_factor_meter_horz.ts
|
13613
|
-
var { paths:
|
13860
|
+
var { paths: paths40, texts: texts52, bounds: bounds40, refblocks: refblocks40, circles: circles36 } = power_factor_meter_default;
|
13614
13861
|
var power_factor_meter_horz_default = defineSymbol({
|
13615
13862
|
primitives: [
|
13616
|
-
...Object.values(
|
13617
|
-
...Object.values(
|
13863
|
+
...Object.values(paths40),
|
13864
|
+
...Object.values(circles36),
|
13618
13865
|
// { ...texts.top1, anchor: "middle_left" },
|
13619
13866
|
{
|
13620
13867
|
type: "text",
|
@@ -13641,21 +13888,21 @@ var power_factor_meter_horz_default = defineSymbol({
|
|
13641
13888
|
}
|
13642
13889
|
],
|
13643
13890
|
ports: [
|
13644
|
-
{ ...
|
13891
|
+
{ ...refblocks40.left1, labels: ["1"] },
|
13645
13892
|
// TODO add more "standard" labels
|
13646
|
-
{ ...
|
13893
|
+
{ ...refblocks40.right1, labels: ["2"] }
|
13647
13894
|
// TODO add more "standard" labels
|
13648
13895
|
],
|
13649
|
-
size: { width:
|
13650
|
-
center: { x:
|
13896
|
+
size: { width: bounds40.width, height: bounds40.height },
|
13897
|
+
center: { x: bounds40.centerX, y: bounds40.centerY }
|
13651
13898
|
});
|
13652
13899
|
|
13653
13900
|
// symbols/power_factor_meter_vert.ts
|
13654
13901
|
var rotatedSymbol18 = rotateSymbol(power_factor_meter_horz_default);
|
13655
|
-
var
|
13656
|
-
var ref31 =
|
13657
|
-
var val27 =
|
13658
|
-
var text_cos =
|
13902
|
+
var texts53 = rotatedSymbol18.primitives.filter((p) => p.type === "text");
|
13903
|
+
var ref31 = texts53.find((t) => t.text === "{REF}");
|
13904
|
+
var val27 = texts53.find((t) => t.text === "{VAL}");
|
13905
|
+
var text_cos = texts53.find((t) => t.text === "COS \u03C6");
|
13659
13906
|
ref31.x = 0.35;
|
13660
13907
|
ref31.y = 0;
|
13661
13908
|
ref31.anchor = "middle_left";
|
@@ -13786,22 +14033,22 @@ var push_button_normally_closed_momentary_default = {
|
|
13786
14033
|
};
|
13787
14034
|
|
13788
14035
|
// symbols/push_button_normally_closed_momentary_horz.ts
|
13789
|
-
var { paths:
|
14036
|
+
var { paths: paths41, texts: texts54, bounds: bounds41, refblocks: refblocks41, circles: circles37 } = push_button_normally_closed_momentary_default;
|
13790
14037
|
var push_button_normally_closed_momentary_horz_default = defineSymbol({
|
13791
14038
|
primitives: [
|
13792
|
-
...Object.values(
|
13793
|
-
...Object.values(
|
13794
|
-
{ ...
|
13795
|
-
{ ...
|
14039
|
+
...Object.values(paths41),
|
14040
|
+
...Object.values(circles37),
|
14041
|
+
{ ...texts54.top1, anchor: "middle_left" },
|
14042
|
+
{ ...texts54.bottom1, anchor: "middle_left" }
|
13796
14043
|
],
|
13797
14044
|
ports: [
|
13798
|
-
{ ...
|
14045
|
+
{ ...refblocks41.left1, labels: ["1"] },
|
13799
14046
|
// TODO add more "standard" labels
|
13800
|
-
{ ...
|
14047
|
+
{ ...refblocks41.right1, labels: ["2"] }
|
13801
14048
|
// TODO add more "standard" labels
|
13802
14049
|
],
|
13803
|
-
size: { width:
|
13804
|
-
center: { x:
|
14050
|
+
size: { width: bounds41.width, height: bounds41.height },
|
14051
|
+
center: { x: bounds41.centerX, y: bounds41.centerY }
|
13805
14052
|
});
|
13806
14053
|
|
13807
14054
|
// symbols/push_button_normally_closed_momentary_vert.ts
|
@@ -13956,22 +14203,22 @@ var push_button_normally_open_momentary_default = {
|
|
13956
14203
|
};
|
13957
14204
|
|
13958
14205
|
// symbols/push_button_normally_open_momentary_horz.ts
|
13959
|
-
var { paths:
|
14206
|
+
var { paths: paths42, texts: texts55, bounds: bounds42, refblocks: refblocks42, circles: circles38 } = push_button_normally_open_momentary_default;
|
13960
14207
|
var push_button_normally_open_momentary_horz_default = defineSymbol({
|
13961
14208
|
primitives: [
|
13962
|
-
...Object.values(
|
13963
|
-
...Object.values(
|
13964
|
-
{ ...
|
13965
|
-
{ ...
|
14209
|
+
...Object.values(paths42),
|
14210
|
+
...Object.values(circles38),
|
14211
|
+
{ ...texts55.top1, anchor: "middle_left" },
|
14212
|
+
{ ...texts55.bottom1, anchor: "middle_left" }
|
13966
14213
|
],
|
13967
14214
|
ports: [
|
13968
|
-
{ ...
|
14215
|
+
{ ...refblocks42.left1, labels: ["1"] },
|
13969
14216
|
// TODO add more "standard" labels
|
13970
|
-
{ ...
|
14217
|
+
{ ...refblocks42.right1, labels: ["2"] }
|
13971
14218
|
// TODO add more "standard" labels
|
13972
14219
|
],
|
13973
|
-
size: { width:
|
13974
|
-
center: { x:
|
14220
|
+
size: { width: bounds42.width, height: bounds42.height },
|
14221
|
+
center: { x: bounds42.centerX, y: bounds42.centerY }
|
13975
14222
|
});
|
13976
14223
|
|
13977
14224
|
// symbols/push_button_normally_open_momentary_vert.ts
|
@@ -14179,162 +14426,411 @@ var rectifier_diode_default = {
|
|
14179
14426
|
type: "path",
|
14180
14427
|
points: [
|
14181
14428
|
{
|
14182
|
-
x: 0.2593976689867663,
|
14183
|
-
y: -0.3826973927813131
|
14429
|
+
x: 0.2593976689867663,
|
14430
|
+
y: -0.3826973927813131
|
14431
|
+
},
|
14432
|
+
{
|
14433
|
+
x: 0.322578868470321,
|
14434
|
+
y: -0.19315369881256328
|
14435
|
+
}
|
14436
|
+
],
|
14437
|
+
color: "primary",
|
14438
|
+
fill: false
|
14439
|
+
},
|
14440
|
+
"path42-7-1": {
|
14441
|
+
type: "path",
|
14442
|
+
points: [
|
14443
|
+
{
|
14444
|
+
x: 0.13303517450157232,
|
14445
|
+
y: -0.2563348982961198
|
14446
|
+
},
|
14447
|
+
{
|
14448
|
+
x: 0.2593976689867663,
|
14449
|
+
y: -0.3826973927813131
|
14450
|
+
}
|
14451
|
+
],
|
14452
|
+
color: "primary",
|
14453
|
+
fill: false
|
14454
|
+
},
|
14455
|
+
"path43-1-8": {
|
14456
|
+
type: "path",
|
14457
|
+
points: [
|
14458
|
+
{
|
14459
|
+
x: 0.38576011571292,
|
14460
|
+
y: -0.2563349460551603
|
14461
|
+
},
|
14462
|
+
{
|
14463
|
+
x: 0.2593976212277247,
|
14464
|
+
y: -0.12997245156996673
|
14465
|
+
}
|
14466
|
+
],
|
14467
|
+
color: "primary",
|
14468
|
+
fill: false
|
14469
|
+
},
|
14470
|
+
"path44-8-7": {
|
14471
|
+
type: "path",
|
14472
|
+
points: [
|
14473
|
+
{
|
14474
|
+
x: 0.19516347816724133,
|
14475
|
+
y: -0.3205690891156432
|
14476
|
+
},
|
14477
|
+
{
|
14478
|
+
x: 0.006672727775418608,
|
14479
|
+
y: -0.509059839507466
|
14480
|
+
}
|
14481
|
+
],
|
14482
|
+
color: "primary",
|
14483
|
+
fill: false
|
14484
|
+
},
|
14485
|
+
"path44-0-7-1": {
|
14486
|
+
type: "path",
|
14487
|
+
points: [
|
14488
|
+
{
|
14489
|
+
x: 0.5034450312436185,
|
14490
|
+
y: -0.012206154633403798
|
14491
|
+
},
|
14492
|
+
{
|
14493
|
+
x: 0.32496562654429706,
|
14494
|
+
y: -0.19068555933272457
|
14495
|
+
}
|
14496
|
+
],
|
14497
|
+
color: "primary",
|
14498
|
+
fill: false
|
14499
|
+
},
|
14500
|
+
"path40-4-8": {
|
14501
|
+
type: "path",
|
14502
|
+
points: [
|
14503
|
+
{
|
14504
|
+
x: 0.3220220261874358,
|
14505
|
+
y: 0.19326390652967795
|
14506
|
+
},
|
14507
|
+
{
|
14508
|
+
x: 0.25884082670387976,
|
14509
|
+
y: 0.382807600498428
|
14510
|
+
}
|
14511
|
+
],
|
14512
|
+
color: "primary",
|
14513
|
+
fill: false
|
14514
|
+
},
|
14515
|
+
"path41-1-4": {
|
14516
|
+
type: "path",
|
14517
|
+
points: [
|
14518
|
+
{
|
14519
|
+
x: 0.13247833221868577,
|
14520
|
+
y: 0.25644510601323245
|
14521
|
+
},
|
14522
|
+
{
|
14523
|
+
x: 0.3220220261874358,
|
14524
|
+
y: 0.19326390652967795
|
14525
|
+
}
|
14526
|
+
],
|
14527
|
+
color: "primary",
|
14528
|
+
fill: false
|
14529
|
+
},
|
14530
|
+
"path42-7-0": {
|
14531
|
+
type: "path",
|
14532
|
+
points: [
|
14533
|
+
{
|
14534
|
+
x: 0.2588408267038793,
|
14535
|
+
y: 0.38280760049842666
|
14536
|
+
},
|
14537
|
+
{
|
14538
|
+
x: 0.13247833221868577,
|
14539
|
+
y: 0.25644510601323245
|
14540
|
+
}
|
14541
|
+
],
|
14542
|
+
color: "primary",
|
14543
|
+
fill: false
|
14544
|
+
},
|
14545
|
+
"path43-1-0": {
|
14546
|
+
type: "path",
|
14547
|
+
points: [
|
14548
|
+
{
|
14549
|
+
x: 0.2588407789448386,
|
14550
|
+
y: 0.13008265928707896
|
14551
|
+
},
|
14552
|
+
{
|
14553
|
+
x: 0.38520327343003213,
|
14554
|
+
y: 0.2564451537722743
|
14555
|
+
}
|
14556
|
+
],
|
14557
|
+
color: "primary",
|
14558
|
+
fill: false
|
14559
|
+
},
|
14560
|
+
"path44-8-9": {
|
14561
|
+
type: "path",
|
14562
|
+
points: [
|
14563
|
+
{
|
14564
|
+
x: 0.19460663588435567,
|
14565
|
+
y: 0.3206792968327574
|
14566
|
+
},
|
14567
|
+
{
|
14568
|
+
x: 0.0061158854925329464,
|
14569
|
+
y: 0.5091700472245801
|
14570
|
+
}
|
14571
|
+
],
|
14572
|
+
color: "primary",
|
14573
|
+
fill: false
|
14574
|
+
},
|
14575
|
+
"path44-0-7-3": {
|
14576
|
+
type: "path",
|
14577
|
+
points: [
|
14578
|
+
{
|
14579
|
+
x: 0.5029695703665951,
|
14580
|
+
y: 0.012397743756380697
|
14581
|
+
},
|
14582
|
+
{
|
14583
|
+
x: 0.3244901656672745,
|
14584
|
+
y: 0.19087714845570192
|
14585
|
+
}
|
14586
|
+
],
|
14587
|
+
color: "primary",
|
14588
|
+
fill: false
|
14589
|
+
}
|
14590
|
+
},
|
14591
|
+
texts: {
|
14592
|
+
top1: {
|
14593
|
+
type: "text",
|
14594
|
+
text: "{REF}",
|
14595
|
+
x: -0.2872803000000015,
|
14596
|
+
y: -0.4564494249999992
|
14597
|
+
},
|
14598
|
+
bottom1: {
|
14599
|
+
type: "text",
|
14600
|
+
text: "{VAL}",
|
14601
|
+
x: -0.2872803000000015,
|
14602
|
+
y: 0.4960514750000007
|
14603
|
+
}
|
14604
|
+
},
|
14605
|
+
refblocks: {
|
14606
|
+
top1: {
|
14607
|
+
x: 5126999999993664e-19,
|
14608
|
+
y: -0.5191475
|
14609
|
+
},
|
14610
|
+
bottom1: {
|
14611
|
+
x: -5123000000009093e-19,
|
14612
|
+
y: 0.5191475000000001
|
14613
|
+
},
|
14614
|
+
left1: {
|
14615
|
+
x: -0.5191472999999998,
|
14616
|
+
y: -5123250000014234e-19
|
14617
|
+
},
|
14618
|
+
right1: {
|
14619
|
+
x: 0.5191473000000002,
|
14620
|
+
y: 5123749999977889e-19
|
14621
|
+
}
|
14622
|
+
},
|
14623
|
+
bounds: {
|
14624
|
+
minX: -0.5473057409999997,
|
14625
|
+
maxX: 0.5473057410000002,
|
14626
|
+
minY: -0.5564494249999992,
|
14627
|
+
maxY: 0.5473059410000001,
|
14628
|
+
width: 1.094611482,
|
14629
|
+
height: 1.1037553659999992,
|
14630
|
+
centerX: 2220446049250313e-31,
|
14631
|
+
centerY: -0.004571741999999546
|
14632
|
+
},
|
14633
|
+
circles: {}
|
14634
|
+
};
|
14635
|
+
|
14636
|
+
// symbols/rectifier_diode_horz.ts
|
14637
|
+
var { paths: paths43, texts: texts56, bounds: bounds43, refblocks: refblocks43, circles: circles39 } = rectifier_diode_default;
|
14638
|
+
var rectifier_diode_horz_default = defineSymbol({
|
14639
|
+
primitives: [
|
14640
|
+
...Object.values(paths43),
|
14641
|
+
...Object.values(circles39),
|
14642
|
+
{ ...texts56.top1, anchor: "middle_right" },
|
14643
|
+
{ ...texts56.bottom1, anchor: "middle_right" }
|
14644
|
+
],
|
14645
|
+
ports: [
|
14646
|
+
{ ...refblocks43.top1, labels: ["1"] },
|
14647
|
+
// TODO add more "standard" labels
|
14648
|
+
{ ...refblocks43.bottom1, labels: ["2"] },
|
14649
|
+
// TODO add more "standard" labels
|
14650
|
+
{ ...refblocks43.left1, labels: ["3"] },
|
14651
|
+
// TODO add more "standard" labels
|
14652
|
+
{ ...refblocks43.right1, labels: ["4"] }
|
14653
|
+
// TODO add more "standard" labels
|
14654
|
+
],
|
14655
|
+
size: { width: bounds43.width, height: bounds43.height },
|
14656
|
+
center: { x: bounds43.centerX, y: bounds43.centerY }
|
14657
|
+
});
|
14658
|
+
|
14659
|
+
// symbols/rectifier_diode_vert.ts
|
14660
|
+
var rotated20 = rotateSymbol(rectifier_diode_horz_default);
|
14661
|
+
var ref32 = rotated20.primitives.find(
|
14662
|
+
(p) => p.type === "text" && p.text === "{REF}"
|
14663
|
+
);
|
14664
|
+
var val28 = rotated20.primitives.find(
|
14665
|
+
(p) => p.type === "text" && p.text === "{VAL}"
|
14666
|
+
);
|
14667
|
+
ref32.anchor = "middle_left";
|
14668
|
+
val28.anchor = "middle_right";
|
14669
|
+
var rectifier_diode_vert_default = rotated20;
|
14670
|
+
|
14671
|
+
// assets/generated/resistor.json
|
14672
|
+
var resistor_default = {
|
14673
|
+
paths: {
|
14674
|
+
path27: {
|
14675
|
+
type: "path",
|
14676
|
+
points: [
|
14677
|
+
{
|
14678
|
+
x: 0.4569043500000003,
|
14679
|
+
y: 0.039157350000001756
|
14184
14680
|
},
|
14185
14681
|
{
|
14186
|
-
x: 0.
|
14187
|
-
y:
|
14682
|
+
x: 0.20771145000000057,
|
14683
|
+
y: 0.039157350000001756
|
14188
14684
|
}
|
14189
14685
|
],
|
14190
14686
|
color: "primary",
|
14191
14687
|
fill: false
|
14192
14688
|
},
|
14193
|
-
"
|
14689
|
+
"path27-0": {
|
14194
14690
|
type: "path",
|
14195
14691
|
points: [
|
14196
14692
|
{
|
14197
|
-
x: 0.
|
14198
|
-
y:
|
14693
|
+
x: -0.20769534999999983,
|
14694
|
+
y: 0.039438150000000505
|
14199
14695
|
},
|
14200
14696
|
{
|
14201
|
-
x: 0.
|
14202
|
-
y:
|
14697
|
+
x: -0.45688825,
|
14698
|
+
y: 0.039438150000000505
|
14203
14699
|
}
|
14204
14700
|
],
|
14205
14701
|
color: "primary",
|
14206
14702
|
fill: false
|
14207
14703
|
},
|
14208
|
-
"
|
14704
|
+
"path27-8-2-4": {
|
14209
14705
|
type: "path",
|
14210
14706
|
points: [
|
14211
14707
|
{
|
14212
|
-
x: 0.
|
14213
|
-
y:
|
14708
|
+
x: 0.20630645000000047,
|
14709
|
+
y: 0.039758450000002554
|
14214
14710
|
},
|
14215
14711
|
{
|
14216
|
-
x: 0.
|
14217
|
-
y: -0.
|
14712
|
+
x: 0.1862114500000005,
|
14713
|
+
y: -0.048316949999996694
|
14218
14714
|
}
|
14219
14715
|
],
|
14220
14716
|
color: "primary",
|
14221
14717
|
fill: false
|
14222
14718
|
},
|
14223
|
-
"
|
14719
|
+
"path27-8-2-4-29": {
|
14224
14720
|
type: "path",
|
14225
14721
|
points: [
|
14226
14722
|
{
|
14227
|
-
x: 0.
|
14228
|
-
y:
|
14723
|
+
x: -0.18642914999999993,
|
14724
|
+
y: 0.13528805000000332
|
14229
14725
|
},
|
14230
14726
|
{
|
14231
|
-
x: 0.
|
14232
|
-
y:
|
14727
|
+
x: -0.20595035000000017,
|
14728
|
+
y: 0.038328650000002185
|
14233
14729
|
}
|
14234
14730
|
],
|
14235
14731
|
color: "primary",
|
14236
14732
|
fill: false
|
14237
14733
|
},
|
14238
|
-
"
|
14734
|
+
"path27-8-2-4-5": {
|
14239
14735
|
type: "path",
|
14240
14736
|
points: [
|
14241
14737
|
{
|
14242
|
-
x: 0.
|
14243
|
-
y: -0.
|
14738
|
+
x: 0.18570235000000013,
|
14739
|
+
y: -0.04760624999999763
|
14244
14740
|
},
|
14245
14741
|
{
|
14246
|
-
x: 0.
|
14247
|
-
y:
|
14742
|
+
x: 0.13272245000000016,
|
14743
|
+
y: 0.13556055000000278
|
14248
14744
|
}
|
14249
14745
|
],
|
14250
14746
|
color: "primary",
|
14251
14747
|
fill: false
|
14252
14748
|
},
|
14253
|
-
"
|
14749
|
+
"path27-8-2-4-5-1": {
|
14254
14750
|
type: "path",
|
14255
14751
|
points: [
|
14256
14752
|
{
|
14257
|
-
x: 0.
|
14258
|
-
y: 0.
|
14753
|
+
x: 0.0797579500000003,
|
14754
|
+
y: -0.04767594999999858
|
14259
14755
|
},
|
14260
14756
|
{
|
14261
|
-
x: 0.
|
14262
|
-
y: 0.
|
14757
|
+
x: 0.13273785000000027,
|
14758
|
+
y: 0.13549085000000183
|
14263
14759
|
}
|
14264
14760
|
],
|
14265
14761
|
color: "primary",
|
14266
14762
|
fill: false
|
14267
14763
|
},
|
14268
|
-
"
|
14764
|
+
"path27-8-2-4-5-1-9": {
|
14269
14765
|
type: "path",
|
14270
14766
|
points: [
|
14271
14767
|
{
|
14272
|
-
x: 0.
|
14273
|
-
y: 0.
|
14768
|
+
x: 0.07970425000000025,
|
14769
|
+
y: -0.04777924999999961
|
14274
14770
|
},
|
14275
14771
|
{
|
14276
|
-
x: 0.
|
14277
|
-
y: 0.
|
14772
|
+
x: 0.026724350000000285,
|
14773
|
+
y: 0.1353875500000008
|
14278
14774
|
}
|
14279
14775
|
],
|
14280
14776
|
color: "primary",
|
14281
14777
|
fill: false
|
14282
14778
|
},
|
14283
|
-
"
|
14779
|
+
"path27-8-2-4-5-1-9-2": {
|
14284
14780
|
type: "path",
|
14285
14781
|
points: [
|
14286
14782
|
{
|
14287
|
-
x: 0.
|
14288
|
-
y: 0.
|
14783
|
+
x: -0.026406449999999637,
|
14784
|
+
y: -0.04765794999999784
|
14289
14785
|
},
|
14290
14786
|
{
|
14291
|
-
x: 0.
|
14292
|
-
y: 0.
|
14787
|
+
x: 0.02657345000000033,
|
14788
|
+
y: 0.13550885000000257
|
14293
14789
|
}
|
14294
14790
|
],
|
14295
14791
|
color: "primary",
|
14296
14792
|
fill: false
|
14297
14793
|
},
|
14298
|
-
"
|
14794
|
+
"path27-8-2-4-5-1-9-2-1": {
|
14299
14795
|
type: "path",
|
14300
14796
|
points: [
|
14301
14797
|
{
|
14302
|
-
x: 0.
|
14303
|
-
y: 0.
|
14798
|
+
x: -0.026501049999999804,
|
14799
|
+
y: -0.047703750000000156
|
14304
14800
|
},
|
14305
14801
|
{
|
14306
|
-
x: 0.
|
14307
|
-
y: 0.
|
14802
|
+
x: -0.07948094999999977,
|
14803
|
+
y: 0.13546305000000203
|
14308
14804
|
}
|
14309
14805
|
],
|
14310
14806
|
color: "primary",
|
14311
14807
|
fill: false
|
14312
14808
|
},
|
14313
|
-
"
|
14809
|
+
"path27-8-2-4-5-1-9-2-1-2": {
|
14314
14810
|
type: "path",
|
14315
14811
|
points: [
|
14316
14812
|
{
|
14317
|
-
x: 0.
|
14318
|
-
y: 0.
|
14813
|
+
x: -0.13244634999999993,
|
14814
|
+
y: -0.04776144999999943
|
14319
14815
|
},
|
14320
14816
|
{
|
14321
|
-
x: 0.
|
14322
|
-
y: 0.
|
14817
|
+
x: -0.07946644999999997,
|
14818
|
+
y: 0.13540535000000276
|
14323
14819
|
}
|
14324
14820
|
],
|
14325
14821
|
color: "primary",
|
14326
14822
|
fill: false
|
14327
14823
|
},
|
14328
|
-
"
|
14824
|
+
"path27-8-2-4-5-1-9-2-1-2-2": {
|
14329
14825
|
type: "path",
|
14330
14826
|
points: [
|
14331
14827
|
{
|
14332
|
-
x: 0.
|
14333
|
-
y: 0.
|
14828
|
+
x: -0.13283204999999976,
|
14829
|
+
y: -0.047856349999998216
|
14334
14830
|
},
|
14335
14831
|
{
|
14336
|
-
x: 0.
|
14337
|
-
y: 0.
|
14832
|
+
x: -0.18581194999999973,
|
14833
|
+
y: 0.1353104500000022
|
14338
14834
|
}
|
14339
14835
|
],
|
14340
14836
|
color: "primary",
|
@@ -14345,81 +14841,154 @@ var rectifier_diode_default = {
|
|
14345
14841
|
top1: {
|
14346
14842
|
type: "text",
|
14347
14843
|
text: "{REF}",
|
14348
|
-
x: -0.
|
14349
|
-
y:
|
14844
|
+
x: -0.05143284999999986,
|
14845
|
+
y: 0.4200086500000033
|
14350
14846
|
},
|
14351
14847
|
bottom1: {
|
14352
14848
|
type: "text",
|
14353
14849
|
text: "{VAL}",
|
14354
|
-
x: -0.
|
14355
|
-
y: 0.
|
14850
|
+
x: -0.04241885000000023,
|
14851
|
+
y: -0.42000864999999976
|
14356
14852
|
}
|
14357
14853
|
},
|
14358
14854
|
refblocks: {
|
14359
|
-
top1: {
|
14360
|
-
x: 5126999999993664e-19,
|
14361
|
-
y: -0.5191475
|
14362
|
-
},
|
14363
|
-
bottom1: {
|
14364
|
-
x: -5123000000009093e-19,
|
14365
|
-
y: 0.5191475000000001
|
14366
|
-
},
|
14367
14855
|
left1: {
|
14368
|
-
x: -0.
|
14369
|
-
y:
|
14856
|
+
x: -0.46575425000000026,
|
14857
|
+
y: 0.037257550000001416
|
14370
14858
|
},
|
14371
14859
|
right1: {
|
14372
|
-
x: 0.
|
14373
|
-
y:
|
14860
|
+
x: 0.4657542499999998,
|
14861
|
+
y: 0.03817785000000207
|
14374
14862
|
}
|
14375
14863
|
},
|
14376
14864
|
bounds: {
|
14377
|
-
minX: -0.
|
14378
|
-
maxX: 0.
|
14379
|
-
minY: -0.
|
14380
|
-
maxY: 0.
|
14381
|
-
width:
|
14382
|
-
height:
|
14383
|
-
centerX: 2220446049250313e-31,
|
14384
|
-
centerY: -
|
14865
|
+
minX: -0.49391269100000024,
|
14866
|
+
maxX: 0.4939126909999998,
|
14867
|
+
minY: -0.42000864999999976,
|
14868
|
+
maxY: 0.4200086500000033,
|
14869
|
+
width: 0.987825382,
|
14870
|
+
height: 0.8400173000000031,
|
14871
|
+
centerX: -2220446049250313e-31,
|
14872
|
+
centerY: 17763568394002505e-31
|
14385
14873
|
},
|
14386
14874
|
circles: {}
|
14387
14875
|
};
|
14388
14876
|
|
14389
|
-
// symbols/
|
14390
|
-
var { paths:
|
14391
|
-
var
|
14877
|
+
// symbols/resistor_down.ts
|
14878
|
+
var { paths: paths44, texts: texts57, bounds: bounds44, refblocks: refblocks44, circles: circles40 } = resistor_default;
|
14879
|
+
var resistor_down_default = modifySymbol({
|
14392
14880
|
primitives: [
|
14393
|
-
...Object.values(
|
14394
|
-
...Object.values(
|
14395
|
-
{
|
14396
|
-
|
14881
|
+
...Object.values(paths44),
|
14882
|
+
...Object.values(circles40),
|
14883
|
+
{
|
14884
|
+
type: "text",
|
14885
|
+
text: "{REF}",
|
14886
|
+
x: -0.2,
|
14887
|
+
y: 0.2194553499999995
|
14888
|
+
},
|
14889
|
+
{
|
14890
|
+
type: "text",
|
14891
|
+
text: "{VAL}",
|
14892
|
+
x: 0.2,
|
14893
|
+
y: 0.2194553499999995
|
14894
|
+
}
|
14895
|
+
],
|
14896
|
+
ports: [
|
14897
|
+
{ ...refblocks44.left1, labels: ["1"] },
|
14898
|
+
// TODO add more "standard" labels
|
14899
|
+
{ ...refblocks44.right1, labels: ["2"] }
|
14900
|
+
// TODO add more "standard" labels
|
14901
|
+
],
|
14902
|
+
size: { width: bounds44.width, height: bounds44.height },
|
14903
|
+
center: { x: bounds44.centerX, y: bounds44.centerY }
|
14904
|
+
}).rotateRightFacingSymbol("down").labelPort("left", ["1"]).labelPort("right", ["2"]).changeTextAnchor("{REF}", "middle_left").changeTextAnchor("{VAL}", "middle_left").build();
|
14905
|
+
|
14906
|
+
// symbols/resistor_left.ts
|
14907
|
+
var { paths: paths45, texts: texts58, bounds: bounds45, refblocks: refblocks45, circles: circles41 } = resistor_default;
|
14908
|
+
var resistor_left_default = modifySymbol({
|
14909
|
+
primitives: [
|
14910
|
+
...Object.values(paths45),
|
14911
|
+
...Object.values(circles41),
|
14912
|
+
{
|
14913
|
+
type: "text",
|
14914
|
+
text: "{REF}",
|
14915
|
+
x: 0,
|
14916
|
+
y: -0.1704553499999995
|
14917
|
+
},
|
14918
|
+
{
|
14919
|
+
type: "text",
|
14920
|
+
text: "{VAL}",
|
14921
|
+
x: 0,
|
14922
|
+
y: 0.2294553499999995
|
14923
|
+
}
|
14397
14924
|
],
|
14398
14925
|
ports: [
|
14399
|
-
{ ...
|
14926
|
+
{ ...refblocks45.left1, labels: ["1"] },
|
14400
14927
|
// TODO add more "standard" labels
|
14401
|
-
{ ...
|
14928
|
+
{ ...refblocks45.right1, labels: ["2"] }
|
14402
14929
|
// TODO add more "standard" labels
|
14403
|
-
|
14930
|
+
],
|
14931
|
+
size: { width: bounds45.width, height: bounds45.height },
|
14932
|
+
center: { x: bounds45.centerX, y: bounds45.centerY }
|
14933
|
+
}).rotateRightFacingSymbol("left").labelPort("left", ["1"]).labelPort("right", ["2"]).changeTextAnchor("{REF}", "middle_bottom").changeTextAnchor("{VAL}", "middle_top").build();
|
14934
|
+
|
14935
|
+
// symbols/resistor_right.ts
|
14936
|
+
var { paths: paths46, texts: texts59, bounds: bounds46, refblocks: refblocks46, circles: circles42 } = resistor_default;
|
14937
|
+
var resistor_right_default = modifySymbol({
|
14938
|
+
primitives: [
|
14939
|
+
...Object.values(paths46),
|
14940
|
+
...Object.values(circles42),
|
14941
|
+
{
|
14942
|
+
type: "text",
|
14943
|
+
text: "{REF}",
|
14944
|
+
x: 0,
|
14945
|
+
y: 0.2294553499999995
|
14946
|
+
},
|
14947
|
+
{
|
14948
|
+
type: "text",
|
14949
|
+
text: "{VAL}",
|
14950
|
+
x: 0,
|
14951
|
+
y: -0.1704553499999995
|
14952
|
+
}
|
14953
|
+
],
|
14954
|
+
ports: [
|
14955
|
+
{ ...refblocks46.left1, labels: ["1"] },
|
14404
14956
|
// TODO add more "standard" labels
|
14405
|
-
{ ...
|
14957
|
+
{ ...refblocks46.right1, labels: ["2"] }
|
14406
14958
|
// TODO add more "standard" labels
|
14407
14959
|
],
|
14408
|
-
size: { width:
|
14409
|
-
center: { x:
|
14410
|
-
});
|
14960
|
+
size: { width: bounds46.width, height: bounds46.height },
|
14961
|
+
center: { x: bounds46.centerX, y: bounds46.centerY }
|
14962
|
+
}).rotateRightFacingSymbol("right").labelPort("left", ["1"]).labelPort("right", ["2"]).changeTextAnchor("{REF}", "middle_bottom").changeTextAnchor("{VAL}", "middle_top").build();
|
14411
14963
|
|
14412
|
-
// symbols/
|
14413
|
-
var
|
14414
|
-
var
|
14415
|
-
|
14416
|
-
)
|
14417
|
-
|
14418
|
-
|
14419
|
-
|
14420
|
-
|
14421
|
-
|
14422
|
-
|
14964
|
+
// symbols/resistor_up.ts
|
14965
|
+
var { paths: paths47, texts: texts60, bounds: bounds47, refblocks: refblocks47, circles: circles43 } = resistor_default;
|
14966
|
+
var resistor_up_default = modifySymbol({
|
14967
|
+
primitives: [
|
14968
|
+
...Object.values(paths47),
|
14969
|
+
...Object.values(circles43),
|
14970
|
+
{
|
14971
|
+
type: "text",
|
14972
|
+
text: "{REF}",
|
14973
|
+
x: 0.2,
|
14974
|
+
y: -0.1404553499999995
|
14975
|
+
},
|
14976
|
+
{
|
14977
|
+
type: "text",
|
14978
|
+
text: "{VAL}",
|
14979
|
+
x: -0.2,
|
14980
|
+
y: -0.1494553499999995
|
14981
|
+
}
|
14982
|
+
],
|
14983
|
+
ports: [
|
14984
|
+
{ ...refblocks47.left1, labels: ["1"] },
|
14985
|
+
// TODO add more "standard" labels
|
14986
|
+
{ ...refblocks47.right1, labels: ["2"] }
|
14987
|
+
// TODO add more "standard" labels
|
14988
|
+
],
|
14989
|
+
size: { width: bounds47.width, height: bounds47.height },
|
14990
|
+
center: { x: bounds47.centerX, y: bounds47.centerY }
|
14991
|
+
}).rotateRightFacingSymbol("up").labelPort("left", ["1"]).labelPort("right", ["2"]).changeTextAnchor("{REF}", "middle_left").changeTextAnchor("{VAL}", "middle_left").build();
|
14423
14992
|
|
14424
14993
|
// assets/generated/resonator.json
|
14425
14994
|
var resonator_default = {
|
@@ -14767,11 +15336,11 @@ var resonator_default = {
|
|
14767
15336
|
};
|
14768
15337
|
|
14769
15338
|
// symbols/resonator_horz.ts
|
14770
|
-
var { paths:
|
15339
|
+
var { paths: paths48, texts: texts61, bounds: bounds48, refblocks: refblocks48, circles: circles44 } = resonator_default;
|
14771
15340
|
var resonator_horz_default = defineSymbol({
|
14772
15341
|
primitives: [
|
14773
|
-
...Object.values(
|
14774
|
-
...Object.values(
|
15342
|
+
...Object.values(paths48),
|
15343
|
+
...Object.values(circles44),
|
14775
15344
|
// { ...texts.top1, anchor: "middle_left" },
|
14776
15345
|
// { ...texts.bottom1, anchor: "middle_left" },
|
14777
15346
|
{
|
@@ -14790,15 +15359,15 @@ var resonator_horz_default = defineSymbol({
|
|
14790
15359
|
}
|
14791
15360
|
],
|
14792
15361
|
ports: [
|
14793
|
-
{ ...
|
15362
|
+
{ ...refblocks48.left1, labels: ["1"] },
|
14794
15363
|
// TODO add more "standard" labels
|
14795
|
-
{ ...
|
15364
|
+
{ ...refblocks48.right1, labels: ["2"] },
|
14796
15365
|
// TODO add more "standard" labels
|
14797
|
-
{ ...
|
15366
|
+
{ ...refblocks48.right2, labels: ["3"] }
|
14798
15367
|
// TODO add more "standard" labels
|
14799
15368
|
],
|
14800
|
-
size: { width:
|
14801
|
-
center: { x:
|
15369
|
+
size: { width: bounds48.width, height: bounds48.height },
|
15370
|
+
center: { x: bounds48.centerX, y: bounds48.centerY }
|
14802
15371
|
});
|
14803
15372
|
|
14804
15373
|
// symbols/resonator_vert.ts
|
@@ -15154,15 +15723,15 @@ var silicon_controlled_rectifier_default = {
|
|
15154
15723
|
};
|
15155
15724
|
|
15156
15725
|
// symbols/silicon_controlled_rectifier_horz.ts
|
15157
|
-
var { paths:
|
15726
|
+
var { paths: paths49, texts: texts62, bounds: bounds49, refblocks: refblocks49, circles: circles45 } = silicon_controlled_rectifier_default;
|
15158
15727
|
var silicon_controlled_rectifier_horz_default = modifySymbol(silicon_controlled_rectifier_default).changeTextAnchor("{VAL}", "middle_top").labelPort("left1", ["1"]).labelPort("right1", ["2"]).labelPort("bottom1", ["3"]).changeTextAnchor("{REF}", "middle_bottom").build();
|
15159
15728
|
|
15160
15729
|
// symbols/silicon_controlled_rectifier_vert.ts
|
15161
15730
|
var rotatedSymbol19 = rotateSymbol(silicon_controlled_rectifier_horz_default);
|
15162
|
-
var
|
15731
|
+
var texts63 = rotatedSymbol19.primitives.filter(
|
15163
15732
|
(primitive) => primitive.type === "text"
|
15164
15733
|
);
|
15165
|
-
var ref34 =
|
15734
|
+
var ref34 = texts63.find((text) => text.text === "{REF}");
|
15166
15735
|
ref34.y = 0;
|
15167
15736
|
ref34.anchor = "middle_left";
|
15168
15737
|
var silicon_controlled_rectifier_vert_default = rotatedSymbol19;
|
@@ -18722,7 +19291,7 @@ var step_recovery_diode_default = {
|
|
18722
19291
|
};
|
18723
19292
|
|
18724
19293
|
// symbols/step_recovery_diode_horz.ts
|
18725
|
-
var { paths:
|
19294
|
+
var { paths: paths50, texts: texts64, bounds: bounds50, refblocks: refblocks50, circles: circles46 } = step_recovery_diode_default;
|
18726
19295
|
var step_recovery_diode_horz_default = modifySymbol(step_recovery_diode_default).changeTextAnchor("{VAL}", "middle_top").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_bottom").build();
|
18727
19296
|
|
18728
19297
|
// symbols/step_recovery_diode_vert.ts
|
@@ -18815,11 +19384,11 @@ var tachometer_default = {
|
|
18815
19384
|
};
|
18816
19385
|
|
18817
19386
|
// symbols/tachometer_horz.ts
|
18818
|
-
var { paths:
|
19387
|
+
var { paths: paths51, texts: texts65, bounds: bounds51, refblocks: refblocks51, circles: circles47 } = tachometer_default;
|
18819
19388
|
var tachometer_horz_default = defineSymbol({
|
18820
19389
|
primitives: [
|
18821
|
-
...Object.values(
|
18822
|
-
...Object.values(
|
19390
|
+
...Object.values(paths51),
|
19391
|
+
...Object.values(circles47),
|
18823
19392
|
{
|
18824
19393
|
type: "text",
|
18825
19394
|
text: "{REF}",
|
@@ -18834,16 +19403,16 @@ var tachometer_horz_default = defineSymbol({
|
|
18834
19403
|
y: 0.35,
|
18835
19404
|
anchor: "middle_bottom"
|
18836
19405
|
},
|
18837
|
-
{ ...
|
19406
|
+
{ ...texts65.left1, y: 0.01, anchor: "center", fontSize: 0.2 }
|
18838
19407
|
],
|
18839
19408
|
ports: [
|
18840
|
-
{ ...
|
19409
|
+
{ ...refblocks51.left1, labels: ["1"] },
|
18841
19410
|
// TODO add more "standard" labels
|
18842
|
-
{ ...
|
19411
|
+
{ ...refblocks51.right1, labels: ["2"] }
|
18843
19412
|
// TODO add more "standard" labels
|
18844
19413
|
],
|
18845
|
-
size: { width:
|
18846
|
-
center: { x:
|
19414
|
+
size: { width: bounds51.width, height: bounds51.height },
|
19415
|
+
center: { x: bounds51.centerX, y: bounds51.centerY }
|
18847
19416
|
});
|
18848
19417
|
|
18849
19418
|
// symbols/tachometer_vert.ts
|
@@ -19214,16 +19783,16 @@ var triac_default = {
|
|
19214
19783
|
};
|
19215
19784
|
|
19216
19785
|
// symbols/triac_horz.ts
|
19217
|
-
var { paths:
|
19786
|
+
var { paths: paths52, texts: texts66, bounds: bounds52, refblocks: refblocks52, circles: circles48 } = triac_default;
|
19218
19787
|
var triac_horz_default = modifySymbol(triac_default).changeTextAnchor("{VAL}", "middle_top").labelPort("left1", ["1"]).labelPort("right1", ["2"]).labelPort("bottom1", ["3"]).changeTextAnchor("{REF}", "middle_bottom").build();
|
19219
19788
|
|
19220
19789
|
// symbols/triac_vert.ts
|
19221
19790
|
var rotatedSymbol21 = rotateSymbol(triac_horz_default);
|
19222
|
-
var
|
19791
|
+
var texts67 = rotatedSymbol21.primitives.filter(
|
19223
19792
|
(primitive) => primitive.type === "text"
|
19224
19793
|
);
|
19225
|
-
var ref50 =
|
19226
|
-
var val45 =
|
19794
|
+
var ref50 = texts67.find((text) => text.text === "{REF}");
|
19795
|
+
var val45 = texts67.find((text) => text.text === "{VAL}");
|
19227
19796
|
ref50.y = 0;
|
19228
19797
|
val45.y = 0;
|
19229
19798
|
var triac_vert_default = rotatedSymbol21;
|
@@ -19390,22 +19959,22 @@ var tunnel_diode_default = {
|
|
19390
19959
|
};
|
19391
19960
|
|
19392
19961
|
// symbols/tunnel_diode_horz.ts
|
19393
|
-
var { paths:
|
19962
|
+
var { paths: paths53, texts: texts68, bounds: bounds53, refblocks: refblocks53, circles: circles49 } = tunnel_diode_default;
|
19394
19963
|
var tunnel_diode_horz_default = defineSymbol({
|
19395
19964
|
primitives: [
|
19396
|
-
...Object.values(
|
19397
|
-
...Object.values(
|
19398
|
-
{ ...
|
19399
|
-
{ ...
|
19965
|
+
...Object.values(paths53),
|
19966
|
+
...Object.values(circles49),
|
19967
|
+
{ ...texts68.top1, anchor: "middle_bottom" },
|
19968
|
+
{ ...texts68.bottom1, anchor: "middle_top" }
|
19400
19969
|
],
|
19401
19970
|
ports: [
|
19402
|
-
{ ...
|
19971
|
+
{ ...refblocks53.left1, labels: ["1"] },
|
19403
19972
|
// TODO add more "standard" labels
|
19404
|
-
{ ...
|
19973
|
+
{ ...refblocks53.right1, labels: ["2"] }
|
19405
19974
|
// TODO add more "standard" labels
|
19406
19975
|
],
|
19407
|
-
size: { width:
|
19408
|
-
center: { x:
|
19976
|
+
size: { width: bounds53.width, height: bounds53.height },
|
19977
|
+
center: { x: bounds53.centerX, y: bounds53.centerY }
|
19409
19978
|
});
|
19410
19979
|
|
19411
19980
|
// symbols/tunnel_diode_vert.ts
|
@@ -19588,34 +20157,34 @@ var unijunction_transistor_default = {
|
|
19588
20157
|
};
|
19589
20158
|
|
19590
20159
|
// symbols/unijunction_transistor_horz.ts
|
19591
|
-
var { paths:
|
20160
|
+
var { paths: paths54, texts: texts69, bounds: bounds54, refblocks: refblocks54, circles: circles50 } = unijunction_transistor_default;
|
19592
20161
|
var unijunction_transistor_horz_default = defineSymbol({
|
19593
20162
|
primitives: [
|
19594
|
-
...Object.values(
|
19595
|
-
...Object.values(
|
19596
|
-
{ ...
|
19597
|
-
{ ...
|
20163
|
+
...Object.values(paths54),
|
20164
|
+
...Object.values(circles50),
|
20165
|
+
{ ...texts69.top1, anchor: "middle_left" },
|
20166
|
+
{ ...texts69.bottom1, anchor: "middle_right" }
|
19598
20167
|
],
|
19599
20168
|
ports: [
|
19600
|
-
{ ...
|
20169
|
+
{ ...refblocks54.top1, labels: ["1"] },
|
19601
20170
|
// TODO add more "standard" labels
|
19602
|
-
{ ...
|
20171
|
+
{ ...refblocks54.bottom1, labels: ["2"] },
|
19603
20172
|
// TODO add more "standard" labels
|
19604
|
-
{ ...
|
20173
|
+
{ ...refblocks54.left1, labels: ["3"] }
|
19605
20174
|
// TODO add more "standard" labels
|
19606
20175
|
],
|
19607
|
-
size: { width:
|
19608
|
-
center: { x:
|
20176
|
+
size: { width: bounds54.width, height: bounds54.height },
|
20177
|
+
center: { x: bounds54.centerX, y: bounds54.centerY }
|
19609
20178
|
});
|
19610
20179
|
|
19611
20180
|
// symbols/unijunction_transistor_vert.ts
|
19612
20181
|
var rotatedSymbol22 = rotateSymbol(unijunction_transistor_horz_default);
|
19613
|
-
var
|
20182
|
+
var texts70 = rotatedSymbol22.primitives.filter(
|
19614
20183
|
(primitive) => primitive.type === "text"
|
19615
20184
|
);
|
19616
|
-
var ref52 =
|
20185
|
+
var ref52 = texts70.find((text) => text.text === "{REF}");
|
19617
20186
|
ref52.y = 0.1;
|
19618
|
-
var val47 =
|
20187
|
+
var val47 = texts70.find((text) => text.text === "{VAL}");
|
19619
20188
|
val47.y = 0.1;
|
19620
20189
|
val47.x = -0.4;
|
19621
20190
|
var unijunction_transistor_vert_default = rotatedSymbol22;
|
@@ -19707,33 +20276,33 @@ var var_meter_default = {
|
|
19707
20276
|
};
|
19708
20277
|
|
19709
20278
|
// symbols/var_meter_horz.ts
|
19710
|
-
var { paths:
|
20279
|
+
var { paths: paths55, texts: texts71, bounds: bounds55, refblocks: refblocks55, circles: circles51 } = var_meter_default;
|
19711
20280
|
var var_meter_horz_default = defineSymbol({
|
19712
20281
|
primitives: [
|
19713
|
-
...Object.values(
|
19714
|
-
...Object.values(
|
20282
|
+
...Object.values(paths55),
|
20283
|
+
...Object.values(circles51),
|
19715
20284
|
{
|
19716
|
-
...
|
20285
|
+
...texts71.top1,
|
19717
20286
|
x: 0,
|
19718
20287
|
y: -0.3594553499999995,
|
19719
20288
|
anchor: "middle_top"
|
19720
20289
|
},
|
19721
20290
|
{
|
19722
|
-
...
|
20291
|
+
...texts71.bottom1,
|
19723
20292
|
x: 0,
|
19724
20293
|
y: 0.35,
|
19725
20294
|
anchor: "middle_bottom"
|
19726
20295
|
},
|
19727
|
-
{ ...
|
20296
|
+
{ ...texts71.left1, x: -0.02, y: 0.01, fontSize: 0.2, anchor: "center" }
|
19728
20297
|
],
|
19729
20298
|
ports: [
|
19730
|
-
{ ...
|
20299
|
+
{ ...refblocks55.left1, labels: ["1"] },
|
19731
20300
|
// TODO add more "standard" labels
|
19732
|
-
{ ...
|
20301
|
+
{ ...refblocks55.right1, labels: ["2"] }
|
19733
20302
|
// TODO add more "standard" labels
|
19734
20303
|
],
|
19735
|
-
size: { width:
|
19736
|
-
center: { x:
|
20304
|
+
size: { width: bounds55.width, height: bounds55.height },
|
20305
|
+
center: { x: bounds55.centerX, y: bounds55.centerY }
|
19737
20306
|
});
|
19738
20307
|
|
19739
20308
|
// symbols/var_meter_vert.ts
|
@@ -19886,22 +20455,22 @@ var varactor_diode_default = {
|
|
19886
20455
|
};
|
19887
20456
|
|
19888
20457
|
// symbols/varactor_diode_horz.ts
|
19889
|
-
var { paths:
|
20458
|
+
var { paths: paths56, texts: texts72, bounds: bounds56, refblocks: refblocks56, circles: circles52 } = varactor_diode_default;
|
19890
20459
|
var varactor_diode_horz_default = defineSymbol({
|
19891
20460
|
primitives: [
|
19892
|
-
...Object.values(
|
19893
|
-
...Object.values(
|
19894
|
-
{ ...
|
19895
|
-
{ ...
|
20461
|
+
...Object.values(paths56),
|
20462
|
+
...Object.values(circles52),
|
20463
|
+
{ ...texts72.top1, anchor: "middle_bottom" },
|
20464
|
+
{ ...texts72.bottom1, anchor: "middle_top" }
|
19896
20465
|
],
|
19897
20466
|
ports: [
|
19898
|
-
{ ...
|
20467
|
+
{ ...refblocks56.left1, labels: ["1"] },
|
19899
20468
|
// TODO add more "standard" labels
|
19900
|
-
{ ...
|
20469
|
+
{ ...refblocks56.right1, labels: ["2"] }
|
19901
20470
|
// TODO add more "standard" labels
|
19902
20471
|
],
|
19903
|
-
size: { width:
|
19904
|
-
center: { x:
|
20472
|
+
size: { width: bounds56.width, height: bounds56.height },
|
20473
|
+
center: { x: bounds56.centerX, y: bounds56.centerY }
|
19905
20474
|
});
|
19906
20475
|
|
19907
20476
|
// symbols/varactor_diode_vert.ts
|
@@ -20049,26 +20618,26 @@ var varistor_default = {
|
|
20049
20618
|
};
|
20050
20619
|
|
20051
20620
|
// symbols/varistor_horz.ts
|
20052
|
-
var { paths:
|
20621
|
+
var { paths: paths57, texts: texts73, bounds: bounds57, refblocks: refblocks57 } = varistor_default;
|
20053
20622
|
var varistor_horz_default = defineSymbol({
|
20054
20623
|
primitives: [
|
20055
|
-
...Object.values(
|
20056
|
-
{ ...
|
20057
|
-
{ ...
|
20624
|
+
...Object.values(paths57),
|
20625
|
+
{ ...texts73.top1, anchor: "middle_left" },
|
20626
|
+
{ ...texts73.bottom1, anchor: "middle_right" }
|
20058
20627
|
],
|
20059
20628
|
ports: [
|
20060
20629
|
{
|
20061
|
-
...
|
20630
|
+
...refblocks57.left1,
|
20062
20631
|
labels: ["1", "-"]
|
20063
20632
|
},
|
20064
20633
|
{
|
20065
|
-
...
|
20634
|
+
...refblocks57.right1,
|
20066
20635
|
labels: ["2", "+"]
|
20067
20636
|
}
|
20068
20637
|
],
|
20069
|
-
size: { width:
|
20638
|
+
size: { width: bounds57.width, height: bounds57.height },
|
20070
20639
|
//{ width: 1, height: 0.24 },
|
20071
|
-
center: { x:
|
20640
|
+
center: { x: bounds57.centerX, y: bounds57.centerY }
|
20072
20641
|
});
|
20073
20642
|
|
20074
20643
|
// symbols/varistor_vert.ts
|
@@ -20161,11 +20730,11 @@ var varmeter_default = {
|
|
20161
20730
|
};
|
20162
20731
|
|
20163
20732
|
// symbols/varmeter_horz.ts
|
20164
|
-
var { paths:
|
20733
|
+
var { paths: paths58, texts: texts74, bounds: bounds58, refblocks: refblocks58, circles: circles53 } = varmeter_default;
|
20165
20734
|
var varmeter_horz_default = defineSymbol({
|
20166
20735
|
primitives: [
|
20167
|
-
...Object.values(
|
20168
|
-
...Object.values(
|
20736
|
+
...Object.values(paths58),
|
20737
|
+
...Object.values(circles53),
|
20169
20738
|
{
|
20170
20739
|
type: "text",
|
20171
20740
|
text: "{REF}",
|
@@ -20180,16 +20749,16 @@ var varmeter_horz_default = defineSymbol({
|
|
20180
20749
|
y: 0.35,
|
20181
20750
|
anchor: "middle_bottom"
|
20182
20751
|
},
|
20183
|
-
{ ...
|
20752
|
+
{ ...texts74.left1, anchor: "center", y: 0.02, fontSize: 0.2 }
|
20184
20753
|
],
|
20185
20754
|
ports: [
|
20186
|
-
{ ...
|
20755
|
+
{ ...refblocks58.left1, labels: ["1"] },
|
20187
20756
|
// TODO add more "standard" labels
|
20188
|
-
{ ...
|
20757
|
+
{ ...refblocks58.right1, labels: ["2"] }
|
20189
20758
|
// TODO add more "standard" labels
|
20190
20759
|
],
|
20191
|
-
size: { width:
|
20192
|
-
center: { x:
|
20760
|
+
size: { width: bounds58.width, height: bounds58.height },
|
20761
|
+
center: { x: bounds58.centerX, y: bounds58.centerY }
|
20193
20762
|
});
|
20194
20763
|
|
20195
20764
|
// symbols/varmeter_vert.ts
|
@@ -20306,7 +20875,7 @@ var volt_meter_default = {
|
|
20306
20875
|
};
|
20307
20876
|
|
20308
20877
|
// symbols/volt_meter_horz.ts
|
20309
|
-
var { paths:
|
20878
|
+
var { paths: paths59, texts: texts75, bounds: bounds59, circles: circles54, refblocks: refblocks59 } = volt_meter_default;
|
20310
20879
|
var volt_meter_horz_default = modifySymbol(volt_meter_default).changeTextAnchor("{VAL}", "middle_top").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_bottom").build();
|
20311
20880
|
|
20312
20881
|
// symbols/volt_meter_vert.ts
|
@@ -20399,11 +20968,11 @@ var watt_hour_meter_default = {
|
|
20399
20968
|
};
|
20400
20969
|
|
20401
20970
|
// symbols/watt_hour_meter_horz.ts
|
20402
|
-
var { paths:
|
20971
|
+
var { paths: paths60, texts: texts76, bounds: bounds60, refblocks: refblocks60, circles: circles55 } = watt_hour_meter_default;
|
20403
20972
|
var watt_hour_meter_horz_default = defineSymbol({
|
20404
20973
|
primitives: [
|
20405
|
-
...Object.values(
|
20406
|
-
...Object.values(
|
20974
|
+
...Object.values(paths60),
|
20975
|
+
...Object.values(circles55),
|
20407
20976
|
{
|
20408
20977
|
type: "text",
|
20409
20978
|
text: "{REF}",
|
@@ -20418,16 +20987,16 @@ var watt_hour_meter_horz_default = defineSymbol({
|
|
20418
20987
|
y: 0.35,
|
20419
20988
|
anchor: "middle_bottom"
|
20420
20989
|
},
|
20421
|
-
{ ...
|
20990
|
+
{ ...texts76.left1, anchor: "center", y: 0.01, fontSize: 0.2 }
|
20422
20991
|
],
|
20423
20992
|
ports: [
|
20424
|
-
{ ...
|
20993
|
+
{ ...refblocks60.left1, labels: ["1"] },
|
20425
20994
|
// TODO add more "standard" labels
|
20426
|
-
{ ...
|
20995
|
+
{ ...refblocks60.right1, labels: ["2"] }
|
20427
20996
|
// TODO add more "standard" labels
|
20428
20997
|
],
|
20429
|
-
size: { width:
|
20430
|
-
center: { x:
|
20998
|
+
size: { width: bounds60.width, height: bounds60.height },
|
20999
|
+
center: { x: bounds60.centerX, y: bounds60.centerY }
|
20431
21000
|
});
|
20432
21001
|
|
20433
21002
|
// symbols/watt_hour_meter_vert.ts
|
@@ -20531,11 +21100,11 @@ var wattmeter_default = {
|
|
20531
21100
|
};
|
20532
21101
|
|
20533
21102
|
// symbols/wattmeter_horz.ts
|
20534
|
-
var { paths:
|
21103
|
+
var { paths: paths61, texts: texts77, bounds: bounds61, refblocks: refblocks61, circles: circles56 } = wattmeter_default;
|
20535
21104
|
var wattmeter_horz_default = defineSymbol({
|
20536
21105
|
primitives: [
|
20537
|
-
...Object.values(
|
20538
|
-
...Object.values(
|
21106
|
+
...Object.values(paths61),
|
21107
|
+
...Object.values(circles56),
|
20539
21108
|
{
|
20540
21109
|
type: "text",
|
20541
21110
|
text: "{REF}",
|
@@ -20550,16 +21119,16 @@ var wattmeter_horz_default = defineSymbol({
|
|
20550
21119
|
y: 0.35,
|
20551
21120
|
anchor: "middle_bottom"
|
20552
21121
|
},
|
20553
|
-
{ ...
|
21122
|
+
{ ...texts77.left1, anchor: "center", y: 0.01, fontSize: 0.3 }
|
20554
21123
|
],
|
20555
21124
|
ports: [
|
20556
|
-
{ ...
|
21125
|
+
{ ...refblocks61.left1, labels: ["1"] },
|
20557
21126
|
// TODO add more "standard" labels
|
20558
|
-
{ ...
|
21127
|
+
{ ...refblocks61.right1, labels: ["2"] }
|
20559
21128
|
// TODO add more "standard" labels
|
20560
21129
|
],
|
20561
|
-
size: { width:
|
20562
|
-
center: { x:
|
21130
|
+
size: { width: bounds61.width, height: bounds61.height },
|
21131
|
+
center: { x: bounds61.centerX, y: bounds61.centerY }
|
20563
21132
|
});
|
20564
21133
|
|
20565
21134
|
// symbols/wattmeter_vert.ts
|
@@ -20723,22 +21292,22 @@ var zener_diode_default = {
|
|
20723
21292
|
};
|
20724
21293
|
|
20725
21294
|
// symbols/zener_diode_horz.ts
|
20726
|
-
var { paths:
|
21295
|
+
var { paths: paths62, texts: texts78, bounds: bounds62, refblocks: refblocks62, circles: circles57 } = zener_diode_default;
|
20727
21296
|
var zener_diode_horz_default = defineSymbol({
|
20728
21297
|
primitives: [
|
20729
|
-
...Object.values(
|
20730
|
-
...Object.values(
|
20731
|
-
{ ...
|
20732
|
-
{ ...
|
21298
|
+
...Object.values(paths62),
|
21299
|
+
...Object.values(circles57),
|
21300
|
+
{ ...texts78.top1, anchor: "middle_bottom" },
|
21301
|
+
{ ...texts78.bottom1, anchor: "middle_top" }
|
20733
21302
|
],
|
20734
21303
|
ports: [
|
20735
|
-
{ ...
|
21304
|
+
{ ...refblocks62.left1, labels: ["1"] },
|
20736
21305
|
// TODO add more "standard" labels
|
20737
|
-
{ ...
|
21306
|
+
{ ...refblocks62.right1, labels: ["2"] }
|
20738
21307
|
// TODO add more "standard" labels
|
20739
21308
|
],
|
20740
|
-
size: { width:
|
20741
|
-
center: { x:
|
21309
|
+
size: { width: bounds62.width, height: bounds62.height },
|
21310
|
+
center: { x: bounds62.centerX, y: bounds62.centerY }
|
20742
21311
|
});
|
20743
21312
|
|
20744
21313
|
// symbols/zener_diode_vert.ts
|
@@ -20768,6 +21337,10 @@ var symbols_index_default = {
|
|
20768
21337
|
"boxresistor_down": boxresistor_down_default,
|
20769
21338
|
"boxresistor_left": boxresistor_left_default,
|
20770
21339
|
"boxresistor_right": boxresistor_right_default,
|
21340
|
+
"boxresistor_small_down": boxresistor_small_down_default,
|
21341
|
+
"boxresistor_small_left": boxresistor_small_left_default,
|
21342
|
+
"boxresistor_small_right": boxresistor_small_right_default,
|
21343
|
+
"boxresistor_small_up": boxresistor_small_up_default,
|
20771
21344
|
"boxresistor_up": boxresistor_up_default,
|
20772
21345
|
"capacitor_down": capacitor_down_default,
|
20773
21346
|
"capacitor_left": capacitor_left_default,
|
@@ -20887,6 +21460,10 @@ var symbols_index_default = {
|
|
20887
21460
|
"push_button_normally_open_momentary_vert": push_button_normally_open_momentary_vert_default,
|
20888
21461
|
"rectifier_diode_horz": rectifier_diode_horz_default,
|
20889
21462
|
"rectifier_diode_vert": rectifier_diode_vert_default,
|
21463
|
+
"resistor_down": resistor_down_default,
|
21464
|
+
"resistor_left": resistor_left_default,
|
21465
|
+
"resistor_right": resistor_right_default,
|
21466
|
+
"resistor_up": resistor_up_default,
|
20890
21467
|
"resonator_horz": resonator_horz_default,
|
20891
21468
|
"resonator_vert": resonator_vert_default,
|
20892
21469
|
"schottky_diode_horz": schottky_diode_horz_default,
|