schematic-symbols 0.0.163 → 0.0.164
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 +5 -1
- package/dist/index.js +631 -447
- 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(symbol8) {
|
45
45
|
let size = symbol8.size;
|
46
46
|
if (!size) {
|
47
|
-
const
|
47
|
+
const bounds73 = getBoundsOfPrimitives(symbol8.primitives);
|
48
48
|
size = {
|
49
|
-
width:
|
50
|
-
height:
|
49
|
+
width: bounds73.maxX - bounds73.minX,
|
50
|
+
height: bounds73.maxY - bounds73.minY
|
51
51
|
};
|
52
52
|
}
|
53
53
|
return { ...symbol8, size };
|
@@ -494,14 +494,14 @@ var rotateRightFacingSymbol = (symbol8, opts) => {
|
|
494
494
|
...applyToPoint(transform2, port)
|
495
495
|
})
|
496
496
|
);
|
497
|
-
const
|
497
|
+
const bounds73 = 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: bounds73.maxX - bounds73.minX,
|
504
|
+
height: bounds73.maxY - bounds73.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 bounds73 = getBoundsOfPrimitives(this.symbol.primitives);
|
906
906
|
return {
|
907
|
-
width:
|
908
|
-
height:
|
907
|
+
width: bounds73.maxX - bounds73.minX,
|
908
|
+
height: bounds73.maxY - bounds73.minY
|
909
909
|
};
|
910
910
|
}
|
911
911
|
build() {
|
@@ -1630,6 +1630,186 @@ var boxresistor_up_default = modifySymbol({
|
|
1630
1630
|
center: { x: bounds15.centerX, y: bounds15.centerY }
|
1631
1631
|
}).changeTextAnchor("{VAL}", "middle_top").rotateRightFacingSymbol("up").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_left").build();
|
1632
1632
|
|
1633
|
+
// assets/generated/bridged_ground.json
|
1634
|
+
var bridged_ground_default = {
|
1635
|
+
paths: {
|
1636
|
+
"horizontal-bar": {
|
1637
|
+
type: "path",
|
1638
|
+
points: [
|
1639
|
+
{ x: -0.4, y: 0 },
|
1640
|
+
{ x: 0.4, y: 0 }
|
1641
|
+
],
|
1642
|
+
color: "primary",
|
1643
|
+
fill: false
|
1644
|
+
},
|
1645
|
+
"middle-dash-1": {
|
1646
|
+
type: "path",
|
1647
|
+
points: [
|
1648
|
+
{ x: 0, y: 0.2 },
|
1649
|
+
{ x: 0, y: 0.07 }
|
1650
|
+
],
|
1651
|
+
color: "primary",
|
1652
|
+
fill: false
|
1653
|
+
},
|
1654
|
+
"middle-dash-2": {
|
1655
|
+
type: "path",
|
1656
|
+
points: [
|
1657
|
+
{ x: 0, y: 0.01 },
|
1658
|
+
{ x: 0, y: -0.12 }
|
1659
|
+
],
|
1660
|
+
color: "primary",
|
1661
|
+
fill: false
|
1662
|
+
},
|
1663
|
+
"middle-dash-3": {
|
1664
|
+
type: "path",
|
1665
|
+
points: [
|
1666
|
+
{ x: 0, y: -0.18 },
|
1667
|
+
{ x: 0, y: -0.31 }
|
1668
|
+
],
|
1669
|
+
color: "primary",
|
1670
|
+
fill: false
|
1671
|
+
},
|
1672
|
+
"left-vertical": {
|
1673
|
+
type: "path",
|
1674
|
+
points: [
|
1675
|
+
{ x: -0.25, y: 0 },
|
1676
|
+
{ x: -0.25, y: -0.2 }
|
1677
|
+
],
|
1678
|
+
color: "primary",
|
1679
|
+
fill: false
|
1680
|
+
},
|
1681
|
+
"right-vertical": {
|
1682
|
+
type: "path",
|
1683
|
+
points: [
|
1684
|
+
{ x: 0.25, y: 0 },
|
1685
|
+
{ x: 0.25, y: -0.2 }
|
1686
|
+
],
|
1687
|
+
color: "primary",
|
1688
|
+
fill: false
|
1689
|
+
},
|
1690
|
+
"left-ground": {
|
1691
|
+
type: "path",
|
1692
|
+
points: [
|
1693
|
+
{ x: -0.3, y: -0.2 },
|
1694
|
+
{ x: -0.25, y: -0.3 },
|
1695
|
+
{ x: -0.2, y: -0.2 },
|
1696
|
+
{ x: -0.3, y: -0.2 }
|
1697
|
+
],
|
1698
|
+
color: "primary",
|
1699
|
+
fill: false
|
1700
|
+
},
|
1701
|
+
"right-ground": {
|
1702
|
+
type: "path",
|
1703
|
+
points: [
|
1704
|
+
{ x: 0.2, y: -0.2 },
|
1705
|
+
{ x: 0.25, y: -0.3 },
|
1706
|
+
{ x: 0.3, y: -0.2 },
|
1707
|
+
{ x: 0.2, y: -0.2 }
|
1708
|
+
],
|
1709
|
+
color: "primary",
|
1710
|
+
fill: false
|
1711
|
+
}
|
1712
|
+
},
|
1713
|
+
refblocks: {
|
1714
|
+
left1: {
|
1715
|
+
x: -0.4,
|
1716
|
+
y: 0
|
1717
|
+
},
|
1718
|
+
right1: {
|
1719
|
+
x: 0.4,
|
1720
|
+
y: 0
|
1721
|
+
}
|
1722
|
+
},
|
1723
|
+
texts: {
|
1724
|
+
ref: {
|
1725
|
+
type: "text",
|
1726
|
+
text: "{REF}",
|
1727
|
+
x: 0,
|
1728
|
+
y: 0.35
|
1729
|
+
}
|
1730
|
+
},
|
1731
|
+
bounds: {
|
1732
|
+
minX: -0.4,
|
1733
|
+
maxX: 0.4,
|
1734
|
+
minY: -0.4,
|
1735
|
+
maxY: 0.35,
|
1736
|
+
width: 0.8,
|
1737
|
+
height: 0.75,
|
1738
|
+
centerX: 0,
|
1739
|
+
centerY: -0.025
|
1740
|
+
},
|
1741
|
+
circles: {}
|
1742
|
+
};
|
1743
|
+
|
1744
|
+
// symbols/bridged_ground_down.ts
|
1745
|
+
var { paths: paths16, texts: texts15, bounds: bounds16, refblocks: refblocks16, circles: circles16 } = bridged_ground_default;
|
1746
|
+
var bridged_ground_down_default = modifySymbol({
|
1747
|
+
primitives: [
|
1748
|
+
...Object.values(paths16),
|
1749
|
+
...Object.values(circles16),
|
1750
|
+
{
|
1751
|
+
type: "text",
|
1752
|
+
text: "{REF}",
|
1753
|
+
x: 0,
|
1754
|
+
y: 0.2594553499999995
|
1755
|
+
}
|
1756
|
+
],
|
1757
|
+
ports: [
|
1758
|
+
{ ...refblocks16.left1, labels: ["1"] },
|
1759
|
+
// TODO add more "standard" labels
|
1760
|
+
{ ...refblocks16.right1, labels: ["2"] }
|
1761
|
+
// TODO add more "standard" labels
|
1762
|
+
],
|
1763
|
+
center: { x: bounds16.centerX, y: bounds16.centerY }
|
1764
|
+
}).changeTextAnchor("{VAL}", "middle_bottom").rotateRightFacingSymbol("down").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_left").build();
|
1765
|
+
|
1766
|
+
// symbols/bridged_ground_right.ts
|
1767
|
+
var { paths: paths17, texts: texts16, bounds: bounds17, refblocks: refblocks17, circles: circles17 } = bridged_ground_default;
|
1768
|
+
var bridged_ground_right_default = modifySymbol({
|
1769
|
+
primitives: [
|
1770
|
+
...Object.values(paths17),
|
1771
|
+
...Object.values(circles17),
|
1772
|
+
{
|
1773
|
+
type: "text",
|
1774
|
+
text: "{REF}",
|
1775
|
+
x: 0,
|
1776
|
+
y: 0.2594553499999995
|
1777
|
+
}
|
1778
|
+
],
|
1779
|
+
ports: [
|
1780
|
+
{ ...refblocks17.left1, labels: ["1"] },
|
1781
|
+
// TODO add more "standard" labels
|
1782
|
+
{ ...refblocks17.right1, labels: ["2"] }
|
1783
|
+
// TODO add more "standard" labels
|
1784
|
+
],
|
1785
|
+
center: { x: bounds17.centerX, y: bounds17.centerY }
|
1786
|
+
}).rotateRightFacingSymbol("right").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_bottom").build();
|
1787
|
+
|
1788
|
+
// symbols/bridged_ground_left.ts
|
1789
|
+
var bridged_ground_left_default = flipSymbolOverYAxis(bridged_ground_right_default);
|
1790
|
+
|
1791
|
+
// symbols/bridged_ground_up.ts
|
1792
|
+
var { paths: paths18, texts: texts17, bounds: bounds18, refblocks: refblocks18, circles: circles18 } = bridged_ground_default;
|
1793
|
+
var bridged_ground_up_default = modifySymbol({
|
1794
|
+
primitives: [
|
1795
|
+
...Object.values(paths18),
|
1796
|
+
...Object.values(circles18),
|
1797
|
+
{
|
1798
|
+
type: "text",
|
1799
|
+
text: "{REF}",
|
1800
|
+
x: 0,
|
1801
|
+
y: 0.2594553499999995
|
1802
|
+
}
|
1803
|
+
],
|
1804
|
+
ports: [
|
1805
|
+
{ ...refblocks18.left1, labels: ["1"] },
|
1806
|
+
// TODO add more "standard" labels
|
1807
|
+
{ ...refblocks18.right1, labels: ["2"] }
|
1808
|
+
// TODO add more "standard" labels
|
1809
|
+
],
|
1810
|
+
center: { x: bounds18.centerX, y: bounds18.centerY }
|
1811
|
+
}).rotateRightFacingSymbol("up").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_right").build();
|
1812
|
+
|
1633
1813
|
// assets/generated/capacitor.json
|
1634
1814
|
var capacitor_default = {
|
1635
1815
|
paths: {
|
@@ -1732,11 +1912,11 @@ var capacitor_default = {
|
|
1732
1912
|
};
|
1733
1913
|
|
1734
1914
|
// symbols/capacitor_down.ts
|
1735
|
-
var { paths:
|
1915
|
+
var { paths: paths19, texts: texts18, bounds: bounds19, refblocks: refblocks19, circles: circles19 } = capacitor_default;
|
1736
1916
|
var capacitor_down_default = modifySymbol({
|
1737
1917
|
primitives: [
|
1738
|
-
...Object.values(
|
1739
|
-
...Object.values(
|
1918
|
+
...Object.values(paths19),
|
1919
|
+
...Object.values(circles19),
|
1740
1920
|
{
|
1741
1921
|
type: "text",
|
1742
1922
|
text: "{REF}",
|
@@ -1751,13 +1931,13 @@ var capacitor_down_default = modifySymbol({
|
|
1751
1931
|
}
|
1752
1932
|
],
|
1753
1933
|
ports: [
|
1754
|
-
{ ...
|
1934
|
+
{ ...refblocks19.left1, labels: ["1"] },
|
1755
1935
|
// TODO add more "standard" labels
|
1756
|
-
{ ...
|
1936
|
+
{ ...refblocks19.right1, labels: ["2"] }
|
1757
1937
|
// TODO add more "standard" labels
|
1758
1938
|
],
|
1759
|
-
size: { width:
|
1760
|
-
center: { x:
|
1939
|
+
size: { width: bounds19.width, height: bounds19.height },
|
1940
|
+
center: { x: bounds19.centerX, y: bounds19.centerY }
|
1761
1941
|
}).changeTextAnchor("{VAL}", "top_left").rotateRightFacingSymbol("down").labelPort("left1", ["1", "pos"]).labelPort("right1", ["2", "neg"]).changeTextAnchor("{REF}", "bottom_left").build();
|
1762
1942
|
|
1763
1943
|
// symbols/capacitor_left.ts
|
@@ -3523,11 +3703,11 @@ var capacitor_polarized_default = {
|
|
3523
3703
|
};
|
3524
3704
|
|
3525
3705
|
// symbols/capacitor_polarized_down.ts
|
3526
|
-
var { paths:
|
3706
|
+
var { paths: paths20, texts: texts19, bounds: bounds20, refblocks: refblocks20, circles: circles20 } = capacitor_polarized_default;
|
3527
3707
|
var capacitor_polarized_down_default = modifySymbol({
|
3528
3708
|
primitives: [
|
3529
|
-
...Object.values(
|
3530
|
-
...Object.values(
|
3709
|
+
...Object.values(paths20),
|
3710
|
+
...Object.values(circles20),
|
3531
3711
|
{
|
3532
3712
|
type: "text",
|
3533
3713
|
text: "{REF}",
|
@@ -3542,24 +3722,24 @@ var capacitor_polarized_down_default = modifySymbol({
|
|
3542
3722
|
}
|
3543
3723
|
],
|
3544
3724
|
ports: [
|
3545
|
-
{ ...
|
3725
|
+
{ ...refblocks20.left1, labels: ["2", "neg"] },
|
3546
3726
|
// TODO add more "standard" labels
|
3547
|
-
{ ...
|
3727
|
+
{ ...refblocks20.right1, labels: ["1", "pos"] }
|
3548
3728
|
// TODO add more "standard" labels
|
3549
3729
|
],
|
3550
|
-
size: { width:
|
3551
|
-
center: { x:
|
3730
|
+
size: { width: bounds20.width, height: bounds20.height },
|
3731
|
+
center: { x: bounds20.centerX, y: bounds20.centerY }
|
3552
3732
|
}).changeTextAnchor("{VAL}", "top_left").rotateRightFacingSymbol("up").changeTextAnchor("{REF}", "bottom_left").build();
|
3553
3733
|
|
3554
3734
|
// symbols/capacitor_polarized_left.ts
|
3555
3735
|
var capacitor_polarized_left_default = modifySymbol(capacitor_polarized_default).changeTextAnchor("{VAL}", "middle_top").labelPort("left1", ["2", "neg"]).labelPort("right1", ["1", "pos"]).changeTextAnchor("{REF}", "middle_bottom").build();
|
3556
3736
|
|
3557
3737
|
// symbols/capacitor_polarized_right.ts
|
3558
|
-
var { paths:
|
3738
|
+
var { paths: paths21, texts: texts20, bounds: bounds21, refblocks: refblocks21, circles: circles21 } = capacitor_polarized_default;
|
3559
3739
|
var capacitor_polarized_right_default = modifySymbol({
|
3560
3740
|
primitives: [
|
3561
|
-
...Object.values(
|
3562
|
-
...Object.values(
|
3741
|
+
...Object.values(paths21),
|
3742
|
+
...Object.values(circles21),
|
3563
3743
|
{
|
3564
3744
|
type: "text",
|
3565
3745
|
text: "{REF}",
|
@@ -3574,21 +3754,21 @@ var capacitor_polarized_right_default = modifySymbol({
|
|
3574
3754
|
}
|
3575
3755
|
],
|
3576
3756
|
ports: [
|
3577
|
-
{ ...
|
3757
|
+
{ ...refblocks21.left1, labels: ["2", "neg"] },
|
3578
3758
|
// TODO add more "standard" labels
|
3579
|
-
{ ...
|
3759
|
+
{ ...refblocks21.right1, labels: ["1", "pos"] }
|
3580
3760
|
// TODO add more "standard" labels
|
3581
3761
|
],
|
3582
|
-
size: { width:
|
3583
|
-
center: { x:
|
3762
|
+
size: { width: bounds21.width, height: bounds21.height },
|
3763
|
+
center: { x: bounds21.centerX, y: bounds21.centerY }
|
3584
3764
|
}).changeTextAnchor("{VAL}", "middle_bottom").rotateRightFacingSymbol("left").changeTextAnchor("{REF}", "middle_bottom").build();
|
3585
3765
|
|
3586
3766
|
// symbols/capacitor_polarized_up.ts
|
3587
|
-
var { paths:
|
3767
|
+
var { paths: paths22, texts: texts21, bounds: bounds22, refblocks: refblocks22, circles: circles22 } = capacitor_polarized_default;
|
3588
3768
|
var capacitor_polarized_up_default = modifySymbol({
|
3589
3769
|
primitives: [
|
3590
|
-
...Object.values(
|
3591
|
-
...Object.values(
|
3770
|
+
...Object.values(paths22),
|
3771
|
+
...Object.values(circles22),
|
3592
3772
|
{
|
3593
3773
|
type: "text",
|
3594
3774
|
text: "{REF}",
|
@@ -3603,24 +3783,24 @@ var capacitor_polarized_up_default = modifySymbol({
|
|
3603
3783
|
}
|
3604
3784
|
],
|
3605
3785
|
ports: [
|
3606
|
-
{ ...
|
3786
|
+
{ ...refblocks22.left1, labels: ["2", "neg"] },
|
3607
3787
|
// TODO add more "standard" labels
|
3608
|
-
{ ...
|
3788
|
+
{ ...refblocks22.right1, labels: ["1", "pos"] }
|
3609
3789
|
// TODO add more "standard" labels
|
3610
3790
|
],
|
3611
|
-
size: { width:
|
3612
|
-
center: { x:
|
3791
|
+
size: { width: bounds22.width, height: bounds22.height },
|
3792
|
+
center: { x: bounds22.centerX, y: bounds22.centerY }
|
3613
3793
|
}).changeTextAnchor("{VAL}", "top_left").rotateRightFacingSymbol("down").changeTextAnchor("{REF}", "bottom_left").build();
|
3614
3794
|
|
3615
3795
|
// symbols/capacitor_right.ts
|
3616
3796
|
var capacitor_right_default = modifySymbol(capacitor_default).rotateRightFacingSymbol("right").changeTextAnchor("{VAL}", "middle_top").labelPort("left1", ["1", "pos"]).labelPort("right1", ["2", "neg"]).changeTextAnchor("{REF}", "middle_bottom").build();
|
3617
3797
|
|
3618
3798
|
// symbols/capacitor_up.ts
|
3619
|
-
var { paths:
|
3799
|
+
var { paths: paths23, texts: texts22, bounds: bounds23, refblocks: refblocks23, circles: circles23 } = capacitor_default;
|
3620
3800
|
var capacitor_up_default = modifySymbol({
|
3621
3801
|
primitives: [
|
3622
|
-
...Object.values(
|
3623
|
-
...Object.values(
|
3802
|
+
...Object.values(paths23),
|
3803
|
+
...Object.values(circles23),
|
3624
3804
|
{
|
3625
3805
|
type: "text",
|
3626
3806
|
text: "{REF}",
|
@@ -3635,13 +3815,13 @@ var capacitor_up_default = modifySymbol({
|
|
3635
3815
|
}
|
3636
3816
|
],
|
3637
3817
|
ports: [
|
3638
|
-
{ ...
|
3818
|
+
{ ...refblocks23.left1, labels: ["1"] },
|
3639
3819
|
// TODO add more "standard" labels
|
3640
|
-
{ ...
|
3820
|
+
{ ...refblocks23.right1, labels: ["2"] }
|
3641
3821
|
// TODO add more "standard" labels
|
3642
3822
|
],
|
3643
|
-
size: { width:
|
3644
|
-
center: { x:
|
3823
|
+
size: { width: bounds23.width, height: bounds23.height },
|
3824
|
+
center: { x: bounds23.centerX, y: bounds23.centerY }
|
3645
3825
|
}).changeTextAnchor("{VAL}", "top_left").rotateRightFacingSymbol("up").labelPort("left1", ["1", "pos"]).labelPort("right1", ["2", "neg"]).changeTextAnchor("{REF}", "bottom_left").build();
|
3646
3826
|
|
3647
3827
|
// assets/generated/constant_current_diode.json
|
@@ -4210,11 +4390,11 @@ var crystal_default = {
|
|
4210
4390
|
};
|
4211
4391
|
|
4212
4392
|
// symbols/crystal_down.ts
|
4213
|
-
var { paths:
|
4393
|
+
var { paths: paths24, texts: texts23, bounds: bounds24, refblocks: refblocks24, circles: circles24 } = crystal_default;
|
4214
4394
|
var crystal_down_default = modifySymbol({
|
4215
4395
|
primitives: [
|
4216
|
-
...Object.values(
|
4217
|
-
...Object.values(
|
4396
|
+
...Object.values(paths24),
|
4397
|
+
...Object.values(circles24),
|
4218
4398
|
{
|
4219
4399
|
type: "text",
|
4220
4400
|
text: "{REF}",
|
@@ -4229,13 +4409,13 @@ var crystal_down_default = modifySymbol({
|
|
4229
4409
|
}
|
4230
4410
|
],
|
4231
4411
|
ports: [
|
4232
|
-
{ ...
|
4412
|
+
{ ...refblocks24.left1, labels: ["1"] },
|
4233
4413
|
// TODO add more "standard" labels
|
4234
|
-
{ ...
|
4414
|
+
{ ...refblocks24.right1, labels: ["2"] }
|
4235
4415
|
// TODO add more "standard" labels
|
4236
4416
|
],
|
4237
|
-
size: { width:
|
4238
|
-
center: { x:
|
4417
|
+
size: { width: bounds24.width, height: bounds24.height },
|
4418
|
+
center: { x: bounds24.centerX, y: bounds24.centerY }
|
4239
4419
|
}).changeTextAnchor("{VAL}", "top_left").rotateRightFacingSymbol("down").labelPort("left1", ["1", "pos"]).labelPort("right1", ["2", "neg"]).changeTextAnchor("{REF}", "bottom_left").build();
|
4240
4420
|
|
4241
4421
|
// symbols/crystal_left.ts
|
@@ -4245,11 +4425,11 @@ var crystal_left_default = modifySymbol(crystal_default).changeTextAnchor("{VAL}
|
|
4245
4425
|
var crystal_right_default = modifySymbol(crystal_default).changeTextAnchor("{VAL}", "middle_top").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_bottom").build();
|
4246
4426
|
|
4247
4427
|
// symbols/crystal_up.ts
|
4248
|
-
var { paths:
|
4428
|
+
var { paths: paths25, texts: texts24, bounds: bounds25, refblocks: refblocks25, circles: circles25 } = crystal_default;
|
4249
4429
|
var crystal_up_default = modifySymbol({
|
4250
4430
|
primitives: [
|
4251
|
-
...Object.values(
|
4252
|
-
...Object.values(
|
4431
|
+
...Object.values(paths25),
|
4432
|
+
...Object.values(circles25),
|
4253
4433
|
{
|
4254
4434
|
type: "text",
|
4255
4435
|
text: "{REF}",
|
@@ -4264,13 +4444,13 @@ var crystal_up_default = modifySymbol({
|
|
4264
4444
|
}
|
4265
4445
|
],
|
4266
4446
|
ports: [
|
4267
|
-
{ ...
|
4447
|
+
{ ...refblocks25.left1, labels: ["1"] },
|
4268
4448
|
// TODO add more "standard" labels
|
4269
|
-
{ ...
|
4449
|
+
{ ...refblocks25.right1, labels: ["2"] }
|
4270
4450
|
// TODO add more "standard" labels
|
4271
4451
|
],
|
4272
|
-
size: { width:
|
4273
|
-
center: { x:
|
4452
|
+
size: { width: bounds25.width, height: bounds25.height },
|
4453
|
+
center: { x: bounds25.centerX, y: bounds25.centerY }
|
4274
4454
|
}).changeTextAnchor("{VAL}", "middle_top").rotateRightFacingSymbol("up").labelPort("left1", ["1", "pos"]).labelPort("right1", ["2", "neg"]).changeTextAnchor("{REF}", "bottom_left").build();
|
4275
4455
|
|
4276
4456
|
// assets/generated/darlington_pair_transistor.json
|
@@ -4647,11 +4827,11 @@ var dc_ammeter_default = {
|
|
4647
4827
|
};
|
4648
4828
|
|
4649
4829
|
// symbols/dc_ammeter_horz.ts
|
4650
|
-
var { paths:
|
4830
|
+
var { paths: paths26, texts: texts25, bounds: bounds26, refblocks: refblocks26, circles: circles26 } = dc_ammeter_default;
|
4651
4831
|
var dc_ammeter_horz_default = defineSymbol({
|
4652
4832
|
primitives: [
|
4653
|
-
...Object.values(
|
4654
|
-
...Object.values(
|
4833
|
+
...Object.values(paths26),
|
4834
|
+
...Object.values(circles26),
|
4655
4835
|
{
|
4656
4836
|
type: "text",
|
4657
4837
|
text: "{REF}",
|
@@ -4666,16 +4846,16 @@ var dc_ammeter_horz_default = defineSymbol({
|
|
4666
4846
|
y: 0.35,
|
4667
4847
|
anchor: "middle_bottom"
|
4668
4848
|
},
|
4669
|
-
{ ...
|
4849
|
+
{ ...texts25.left1, x: 0, y: 0.01, anchor: "center", fontSize: 0.3 }
|
4670
4850
|
],
|
4671
4851
|
ports: [
|
4672
|
-
{ ...
|
4852
|
+
{ ...refblocks26.left1, labels: ["1"] },
|
4673
4853
|
// TODO add more "standard" labels
|
4674
|
-
{ ...
|
4854
|
+
{ ...refblocks26.right1, labels: ["2"] }
|
4675
4855
|
// TODO add more "standard" labels
|
4676
4856
|
],
|
4677
|
-
size: { width:
|
4678
|
-
center: { x:
|
4857
|
+
size: { width: bounds26.width, height: bounds26.height },
|
4858
|
+
center: { x: bounds26.centerX, y: bounds26.centerY }
|
4679
4859
|
});
|
4680
4860
|
|
4681
4861
|
// symbols/dc_ammeter_vert.ts
|
@@ -4821,11 +5001,11 @@ var dc_voltmeter_default = {
|
|
4821
5001
|
};
|
4822
5002
|
|
4823
5003
|
// symbols/dc_voltmeter_horz.ts
|
4824
|
-
var { paths:
|
5004
|
+
var { paths: paths27, texts: texts26, bounds: bounds27, refblocks: refblocks27, circles: circles27 } = dc_voltmeter_default;
|
4825
5005
|
var dc_voltmeter_horz_default = defineSymbol({
|
4826
5006
|
primitives: [
|
4827
|
-
...Object.values(
|
4828
|
-
...Object.values(
|
5007
|
+
...Object.values(paths27),
|
5008
|
+
...Object.values(circles27),
|
4829
5009
|
{
|
4830
5010
|
type: "text",
|
4831
5011
|
text: "{REF}",
|
@@ -4842,13 +5022,13 @@ var dc_voltmeter_horz_default = defineSymbol({
|
|
4842
5022
|
}
|
4843
5023
|
],
|
4844
5024
|
ports: [
|
4845
|
-
{ ...
|
5025
|
+
{ ...refblocks27.left1, labels: ["1"] },
|
4846
5026
|
// TODO add more "standard" labels
|
4847
|
-
{ ...
|
5027
|
+
{ ...refblocks27.right1, labels: ["2"] }
|
4848
5028
|
// TODO add more "standard" labels
|
4849
5029
|
],
|
4850
|
-
size: { width:
|
4851
|
-
center: { x:
|
5030
|
+
size: { width: bounds27.width, height: bounds27.height },
|
5031
|
+
center: { x: bounds27.centerX, y: bounds27.centerY }
|
4852
5032
|
});
|
4853
5033
|
|
4854
5034
|
// symbols/dc_voltmeter_vert.ts
|
@@ -5026,11 +5206,11 @@ var diac_horz_default = modifySymbol(diac_default).changeTextAnchor("{VAL}", "mi
|
|
5026
5206
|
|
5027
5207
|
// symbols/diac_vert.ts
|
5028
5208
|
var rotatedSymbol4 = rotateSymbol(diac_horz_default);
|
5029
|
-
var
|
5209
|
+
var texts27 = rotatedSymbol4.primitives.filter(
|
5030
5210
|
(primitive) => primitive.type === "text"
|
5031
5211
|
);
|
5032
|
-
var ref2 =
|
5033
|
-
var val2 =
|
5212
|
+
var ref2 = texts27.find((text) => text.text === "{REF}");
|
5213
|
+
var val2 = texts27.find((text) => text.text === "{VAL}");
|
5034
5214
|
ref2.y = 0;
|
5035
5215
|
val2.y = 0;
|
5036
5216
|
var diac_vert_default = rotatedSymbol4;
|
@@ -6307,11 +6487,11 @@ var ferrite_bead_default = {
|
|
6307
6487
|
};
|
6308
6488
|
|
6309
6489
|
// symbols/ferrite_bead_up.ts
|
6310
|
-
var { paths:
|
6490
|
+
var { paths: paths28, texts: texts28, bounds: bounds28, refblocks: refblocks28, circles: circles28 } = ferrite_bead_default;
|
6311
6491
|
var ferrite_bead_up_default = modifySymbol({
|
6312
6492
|
primitives: [
|
6313
|
-
...Object.values(
|
6314
|
-
...Object.values(
|
6493
|
+
...Object.values(paths28),
|
6494
|
+
...Object.values(circles28),
|
6315
6495
|
{
|
6316
6496
|
type: "text",
|
6317
6497
|
text: "{REF}",
|
@@ -6326,13 +6506,13 @@ var ferrite_bead_up_default = modifySymbol({
|
|
6326
6506
|
}
|
6327
6507
|
],
|
6328
6508
|
ports: [
|
6329
|
-
{ ...
|
6509
|
+
{ ...refblocks28.left1, labels: ["1"] },
|
6330
6510
|
// TODO add more "standard" labels
|
6331
|
-
{ ...
|
6511
|
+
{ ...refblocks28.right1, labels: ["2"] }
|
6332
6512
|
// TODO add more "standard" labels
|
6333
6513
|
],
|
6334
|
-
size: { width:
|
6335
|
-
center: { x:
|
6514
|
+
size: { width: bounds28.width, height: bounds28.height },
|
6515
|
+
center: { x: bounds28.centerX, y: bounds28.centerY }
|
6336
6516
|
}).rotateRightFacingSymbol("up").labelPort("left", ["1"]).labelPort("right", ["2"]).changeTextAnchor("{REF}", "middle_left").changeTextAnchor("{VAL}", "middle_left").build();
|
6337
6517
|
|
6338
6518
|
// symbols/ferrite_bead_down.ts
|
@@ -6565,11 +6745,11 @@ var frequency_meter_default = {
|
|
6565
6745
|
};
|
6566
6746
|
|
6567
6747
|
// symbols/frequency_meter_horz.ts
|
6568
|
-
var { paths:
|
6748
|
+
var { paths: paths29, texts: texts29, bounds: bounds29, refblocks: refblocks29, circles: circles29 } = frequency_meter_default;
|
6569
6749
|
var frequency_meter_horz_default = defineSymbol({
|
6570
6750
|
primitives: [
|
6571
|
-
...Object.values(
|
6572
|
-
...Object.values(
|
6751
|
+
...Object.values(paths29),
|
6752
|
+
...Object.values(circles29),
|
6573
6753
|
{
|
6574
6754
|
type: "text",
|
6575
6755
|
text: "{REF}",
|
@@ -6584,16 +6764,16 @@ var frequency_meter_horz_default = defineSymbol({
|
|
6584
6764
|
y: 0.35,
|
6585
6765
|
anchor: "middle_bottom"
|
6586
6766
|
},
|
6587
|
-
{ ...
|
6767
|
+
{ ...texts29.left1, x: 0, y: 0.01, anchor: "center", fontSize: 0.2 }
|
6588
6768
|
],
|
6589
6769
|
ports: [
|
6590
|
-
{ ...
|
6770
|
+
{ ...refblocks29.left1, labels: ["1"] },
|
6591
6771
|
// TODO add more "standard" labels
|
6592
|
-
{ ...
|
6772
|
+
{ ...refblocks29.right1, labels: ["2"] }
|
6593
6773
|
// TODO add more "standard" labels
|
6594
6774
|
],
|
6595
|
-
size: { width:
|
6596
|
-
center: { x:
|
6775
|
+
size: { width: bounds29.width, height: bounds29.height },
|
6776
|
+
center: { x: bounds29.centerX, y: bounds29.centerY }
|
6597
6777
|
});
|
6598
6778
|
|
6599
6779
|
// symbols/frequency_meter_vert.ts
|
@@ -6698,11 +6878,11 @@ var fuse_default = {
|
|
6698
6878
|
};
|
6699
6879
|
|
6700
6880
|
// symbols/fuse_horz.ts
|
6701
|
-
var { paths:
|
6881
|
+
var { paths: paths30, texts: texts30, bounds: bounds30, refblocks: refblocks30 } = fuse_default;
|
6702
6882
|
var fuse_horz_default = defineSymbol({
|
6703
6883
|
primitives: [
|
6704
|
-
...Object.values(
|
6705
|
-
{ ...
|
6884
|
+
...Object.values(paths30),
|
6885
|
+
{ ...texts30.top1, anchor: "middle_bottom" },
|
6706
6886
|
{
|
6707
6887
|
type: "text",
|
6708
6888
|
text: "{VAL}",
|
@@ -6712,13 +6892,13 @@ var fuse_horz_default = defineSymbol({
|
|
6712
6892
|
}
|
6713
6893
|
],
|
6714
6894
|
ports: [
|
6715
|
-
{ ...
|
6895
|
+
{ ...refblocks30.left1, labels: ["1"] },
|
6716
6896
|
// TODO add more "standard" labels
|
6717
|
-
{ ...
|
6897
|
+
{ ...refblocks30.right1, labels: ["2"] }
|
6718
6898
|
// TODO add more "standard" labels
|
6719
6899
|
],
|
6720
|
-
size: { width:
|
6721
|
-
center: { x:
|
6900
|
+
size: { width: bounds30.width, height: bounds30.height },
|
6901
|
+
center: { x: bounds30.centerX, y: bounds30.centerY }
|
6722
6902
|
});
|
6723
6903
|
|
6724
6904
|
// symbols/fuse_vert.ts
|
@@ -6895,10 +7075,10 @@ var ground2_default = {
|
|
6895
7075
|
};
|
6896
7076
|
|
6897
7077
|
// symbols/ground2_down.ts
|
6898
|
-
var { paths:
|
7078
|
+
var { paths: paths31, texts: texts31, bounds: bounds31, refblocks: refblocks31 } = ground2_default;
|
6899
7079
|
var ground2_down_default = modifySymbol({
|
6900
7080
|
primitives: [
|
6901
|
-
...Object.values(
|
7081
|
+
...Object.values(paths31),
|
6902
7082
|
{
|
6903
7083
|
type: "text",
|
6904
7084
|
text: "{REF}",
|
@@ -6907,18 +7087,18 @@ var ground2_down_default = modifySymbol({
|
|
6907
7087
|
}
|
6908
7088
|
],
|
6909
7089
|
ports: [
|
6910
|
-
{ ...
|
7090
|
+
{ ...refblocks31.left1, labels: ["1"] }
|
6911
7091
|
// TODO add more "standard" labels
|
6912
7092
|
],
|
6913
|
-
center: { x:
|
7093
|
+
center: { x: bounds31.centerX, y: bounds31.centerY }
|
6914
7094
|
}).rotateRightFacingSymbol("down").labelPort("left1", ["1"]).changeTextAnchor("{REF}", "middle_bottom").build();
|
6915
7095
|
|
6916
7096
|
// symbols/ground2_left.ts
|
6917
|
-
var { paths:
|
7097
|
+
var { paths: paths32, texts: texts32, bounds: bounds32, refblocks: refblocks32, circles: circles30 } = ground2_default;
|
6918
7098
|
var ground2_left_default = modifySymbol({
|
6919
7099
|
primitives: [
|
6920
|
-
...Object.values(
|
6921
|
-
...Object.values(
|
7100
|
+
...Object.values(paths32),
|
7101
|
+
...Object.values(circles30),
|
6922
7102
|
{
|
6923
7103
|
type: "text",
|
6924
7104
|
text: "{REF}",
|
@@ -6927,18 +7107,18 @@ var ground2_left_default = modifySymbol({
|
|
6927
7107
|
}
|
6928
7108
|
],
|
6929
7109
|
ports: [
|
6930
|
-
{ ...
|
7110
|
+
{ ...refblocks32.left1, labels: ["1"] }
|
6931
7111
|
// TODO add more "standard" labels
|
6932
7112
|
],
|
6933
|
-
center: { x:
|
7113
|
+
center: { x: bounds32.centerX, y: bounds32.centerY }
|
6934
7114
|
}).rotateRightFacingSymbol("left").labelPort("left1", ["1"]).changeTextAnchor("{REF}", "middle_left").build();
|
6935
7115
|
|
6936
7116
|
// symbols/ground2_right.ts
|
6937
|
-
var { paths:
|
7117
|
+
var { paths: paths33, texts: texts33, bounds: bounds33, refblocks: refblocks33, circles: circles31 } = ground2_default;
|
6938
7118
|
var ground2_right_default = modifySymbol({
|
6939
7119
|
primitives: [
|
6940
|
-
...Object.values(
|
6941
|
-
...Object.values(
|
7120
|
+
...Object.values(paths33),
|
7121
|
+
...Object.values(circles31),
|
6942
7122
|
{
|
6943
7123
|
type: "text",
|
6944
7124
|
text: "{REF}",
|
@@ -6947,18 +7127,18 @@ var ground2_right_default = modifySymbol({
|
|
6947
7127
|
}
|
6948
7128
|
],
|
6949
7129
|
ports: [
|
6950
|
-
{ ...
|
7130
|
+
{ ...refblocks33.left1, labels: ["1"] }
|
6951
7131
|
// TODO add more "standard" labels
|
6952
7132
|
],
|
6953
|
-
center: { x:
|
7133
|
+
center: { x: bounds33.centerX, y: bounds33.centerY }
|
6954
7134
|
}).changeTextAnchor("{VAL}", "middle_top").rotateRightFacingSymbol("right").labelPort("left1", ["1"]).changeTextAnchor("{REF}", "middle_right").build();
|
6955
7135
|
|
6956
7136
|
// symbols/ground2_up.ts
|
6957
|
-
var { paths:
|
7137
|
+
var { paths: paths34, texts: texts34, bounds: bounds34, refblocks: refblocks34, circles: circles32 } = ground2_default;
|
6958
7138
|
var ground2_up_default = modifySymbol({
|
6959
7139
|
primitives: [
|
6960
|
-
...Object.values(
|
6961
|
-
...Object.values(
|
7140
|
+
...Object.values(paths34),
|
7141
|
+
...Object.values(circles32),
|
6962
7142
|
{
|
6963
7143
|
type: "text",
|
6964
7144
|
text: "{REF}",
|
@@ -6967,10 +7147,10 @@ var ground2_up_default = modifySymbol({
|
|
6967
7147
|
}
|
6968
7148
|
],
|
6969
7149
|
ports: [
|
6970
|
-
{ ...
|
7150
|
+
{ ...refblocks34.left1, labels: ["1"] }
|
6971
7151
|
// TODO add more "standard" labels
|
6972
7152
|
],
|
6973
|
-
center: { x:
|
7153
|
+
center: { x: bounds34.centerX, y: bounds34.centerY }
|
6974
7154
|
}).rotateRightFacingSymbol("up").labelPort("left1", ["1"]).changeTextAnchor("{REF}", "middle_top").build();
|
6975
7155
|
|
6976
7156
|
// assets/generated/gunn_diode.json
|
@@ -7091,7 +7271,7 @@ var gunn_diode_default = {
|
|
7091
7271
|
};
|
7092
7272
|
|
7093
7273
|
// symbols/gunn_diode_horz.ts
|
7094
|
-
var { paths:
|
7274
|
+
var { paths: paths35, texts: texts35, bounds: bounds35, refblocks: refblocks35, circles: circles33 } = gunn_diode_default;
|
7095
7275
|
var gunn_diode_horz_default = modifySymbol(gunn_diode_default).changeTextAnchor("{VAL}", "middle_top").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_bottom").build();
|
7096
7276
|
|
7097
7277
|
// symbols/gunn_diode_vert.ts
|
@@ -7856,12 +8036,12 @@ var illuminated_push_button_normally_open_horz_default = modifySymbol(illuminate
|
|
7856
8036
|
|
7857
8037
|
// symbols/illuminated_push_button_normally_open_vert.ts
|
7858
8038
|
var rotatedSymbol6 = rotateSymbol(illuminated_push_button_normally_open_horz_default);
|
7859
|
-
var
|
7860
|
-
var val18 =
|
8039
|
+
var texts36 = rotatedSymbol6.primitives.filter((p) => p.type === "text");
|
8040
|
+
var val18 = texts36.find((t) => t.text === "{VAL}");
|
7861
8041
|
val18.x = -0.35;
|
7862
8042
|
val18.y = 0;
|
7863
8043
|
val18.anchor = "middle_right";
|
7864
|
-
var ref18 =
|
8044
|
+
var ref18 = texts36.find((t) => t.text === "{REF}");
|
7865
8045
|
ref18.y = 0;
|
7866
8046
|
ref18.x = 0.35;
|
7867
8047
|
ref18.anchor = "middle_left";
|
@@ -9263,22 +9443,22 @@ var inductor_default = {
|
|
9263
9443
|
};
|
9264
9444
|
|
9265
9445
|
// symbols/inductor_right.ts
|
9266
|
-
var { paths:
|
9446
|
+
var { paths: paths36, texts: texts37, bounds: bounds36, refblocks: refblocks36, circles: circles34 } = inductor_default;
|
9267
9447
|
var inductor_right_default = defineSymbol({
|
9268
9448
|
primitives: [
|
9269
|
-
...Object.values(
|
9270
|
-
...Object.values(
|
9271
|
-
{ ...
|
9272
|
-
{ ...
|
9449
|
+
...Object.values(paths36),
|
9450
|
+
...Object.values(circles34),
|
9451
|
+
{ ...texts37.top1, anchor: "middle_bottom" },
|
9452
|
+
{ ...texts37.bottom1, anchor: "middle_top" }
|
9273
9453
|
],
|
9274
9454
|
ports: [
|
9275
|
-
{ ...
|
9455
|
+
{ ...refblocks36.left1, labels: ["1"] },
|
9276
9456
|
// TODO add more "standard" labels
|
9277
|
-
{ ...
|
9457
|
+
{ ...refblocks36.right1, labels: ["2"] }
|
9278
9458
|
// TODO add more "standard" labels
|
9279
9459
|
],
|
9280
|
-
size: { width:
|
9281
|
-
center: { x:
|
9460
|
+
size: { width: bounds36.width, height: bounds36.height },
|
9461
|
+
center: { x: bounds36.centerX, y: bounds36.centerY }
|
9282
9462
|
});
|
9283
9463
|
|
9284
9464
|
// symbols/inductor_up.ts
|
@@ -9535,8 +9715,8 @@ var laser_diode_horz_default = modifySymbol(laser_diode_default).changeTextAncho
|
|
9535
9715
|
|
9536
9716
|
// symbols/laser_diode_vert.ts
|
9537
9717
|
var rotatedSymbol7 = rotateSymbol(laser_diode_horz_default);
|
9538
|
-
var
|
9539
|
-
var ref19 =
|
9718
|
+
var texts38 = rotatedSymbol7.primitives.filter((p) => p.type === "text");
|
9719
|
+
var ref19 = texts38.find((t) => t.text === "{VAL}");
|
9540
9720
|
ref19.x = -0.52;
|
9541
9721
|
ref19.anchor = "middle_right";
|
9542
9722
|
var laser_diode_vert_default = rotatedSymbol7;
|
@@ -9757,22 +9937,22 @@ var led_default = {
|
|
9757
9937
|
};
|
9758
9938
|
|
9759
9939
|
// symbols/led_right.ts
|
9760
|
-
var { paths:
|
9940
|
+
var { paths: paths37, texts: texts39, bounds: bounds37, refblocks: refblocks37, circles: circles35 } = led_default;
|
9761
9941
|
var led_right_default = defineSymbol({
|
9762
9942
|
primitives: [
|
9763
|
-
...Object.values(
|
9764
|
-
...Object.values(
|
9765
|
-
{ ...
|
9766
|
-
{ ...
|
9943
|
+
...Object.values(paths37),
|
9944
|
+
...Object.values(circles35),
|
9945
|
+
{ ...texts39.bottom1, anchor: "middle_top" },
|
9946
|
+
{ ...texts39.right1, anchor: "middle_bottom" }
|
9767
9947
|
],
|
9768
9948
|
ports: [
|
9769
|
-
{ ...
|
9949
|
+
{ ...refblocks37.left1, labels: ["1"] },
|
9770
9950
|
// TODO add more "standard" labels
|
9771
|
-
{ ...
|
9951
|
+
{ ...refblocks37.right1, labels: ["2"] }
|
9772
9952
|
// TODO add more "standard" labels
|
9773
9953
|
],
|
9774
|
-
size: { width:
|
9775
|
-
center: { x:
|
9954
|
+
size: { width: bounds37.width, height: bounds37.height },
|
9955
|
+
center: { x: bounds37.centerX, y: bounds37.centerY }
|
9776
9956
|
});
|
9777
9957
|
|
9778
9958
|
// symbols/led_up.ts
|
@@ -10035,32 +10215,32 @@ var light_dependent_resistor_default = {
|
|
10035
10215
|
};
|
10036
10216
|
|
10037
10217
|
// symbols/light_dependent_resistor_horz.ts
|
10038
|
-
var { paths:
|
10218
|
+
var { paths: paths38, texts: texts40, bounds: bounds38, refblocks: refblocks38, circles: circles36 } = light_dependent_resistor_default;
|
10039
10219
|
var light_dependent_resistor_horz_default = defineSymbol({
|
10040
10220
|
primitives: [
|
10041
|
-
...Object.values(
|
10042
|
-
...Object.values(
|
10043
|
-
{ ...
|
10044
|
-
{ ...
|
10221
|
+
...Object.values(paths38),
|
10222
|
+
...Object.values(circles36),
|
10223
|
+
{ ...texts40.top1, anchor: "middle_left", x: 0 },
|
10224
|
+
{ ...texts40.bottom1, anchor: "middle_left", x: 0 }
|
10045
10225
|
],
|
10046
10226
|
ports: [
|
10047
|
-
{ ...
|
10227
|
+
{ ...refblocks38.left1, labels: ["1"] },
|
10048
10228
|
// TODO add more "standard" labels
|
10049
|
-
{ ...
|
10229
|
+
{ ...refblocks38.right1, labels: ["2"] }
|
10050
10230
|
// TODO add more "standard" labels
|
10051
10231
|
],
|
10052
|
-
size: { width:
|
10053
|
-
center: { x:
|
10232
|
+
size: { width: bounds38.width, height: bounds38.height },
|
10233
|
+
center: { x: bounds38.centerX, y: bounds38.centerY }
|
10054
10234
|
});
|
10055
10235
|
|
10056
10236
|
// symbols/light_dependent_resistor_vert.ts
|
10057
10237
|
var rotatedSymbol8 = rotateSymbol(light_dependent_resistor_horz_default);
|
10058
|
-
var
|
10059
|
-
var val21 =
|
10238
|
+
var texts41 = rotatedSymbol8.primitives.filter((p) => p.type === "text");
|
10239
|
+
var val21 = texts41.find((t) => t.text === "{VAL}");
|
10060
10240
|
val21.x = -0.35;
|
10061
10241
|
val21.y = 0;
|
10062
10242
|
val21.anchor = "middle_right";
|
10063
|
-
var ref22 =
|
10243
|
+
var ref22 = texts41.find((t) => t.text === "{REF}");
|
10064
10244
|
ref22.y = 0;
|
10065
10245
|
ref22.x = 0.35;
|
10066
10246
|
ref22.anchor = "middle_left";
|
@@ -10337,23 +10517,23 @@ var mosfet_depletion_normally_on_default = {
|
|
10337
10517
|
};
|
10338
10518
|
|
10339
10519
|
// symbols/mosfet_depletion_normally_on_horz.ts
|
10340
|
-
var { paths:
|
10520
|
+
var { paths: paths39, texts: texts42, bounds: bounds39, refblocks: refblocks39 } = mosfet_depletion_normally_on_default;
|
10341
10521
|
var mosfet_depletion_normally_on_horz_default = defineSymbol({
|
10342
10522
|
primitives: [
|
10343
|
-
...Object.values(
|
10344
|
-
{ ...
|
10345
|
-
{ ...
|
10523
|
+
...Object.values(paths39),
|
10524
|
+
{ ...texts42.right1, anchor: "middle_left" },
|
10525
|
+
{ ...texts42.right2, anchor: "middle_left" }
|
10346
10526
|
],
|
10347
10527
|
ports: [
|
10348
|
-
{ ...
|
10528
|
+
{ ...refblocks39.top1, labels: ["1"] },
|
10349
10529
|
// TODO add more "standard" labels
|
10350
|
-
{ ...
|
10530
|
+
{ ...refblocks39.bottom1, labels: ["2"] },
|
10351
10531
|
// TODO add more "standard" labels
|
10352
|
-
{ ...
|
10532
|
+
{ ...refblocks39.left1, labels: ["3"] }
|
10353
10533
|
// TODO add more "standard" labels
|
10354
10534
|
],
|
10355
|
-
size: { width:
|
10356
|
-
center: { x:
|
10535
|
+
size: { width: bounds39.width + 0.4, height: bounds39.height },
|
10536
|
+
center: { x: bounds39.centerX + 0.2, y: bounds39.centerY }
|
10357
10537
|
});
|
10358
10538
|
|
10359
10539
|
// symbols/mosfet_depletion_normally_on_vert.ts
|
@@ -10979,20 +11159,20 @@ var mushroom_head_normally_open_momentary_default = {
|
|
10979
11159
|
};
|
10980
11160
|
|
10981
11161
|
// symbols/mushroom_head_normally_open_momentary_horz.ts
|
10982
|
-
var { paths:
|
11162
|
+
var { paths: paths40, texts: texts43, bounds: bounds40, refblocks: refblocks40, circles: circles37 } = mushroom_head_normally_open_momentary_default;
|
10983
11163
|
var mushroom_head_normally_open_momentary_horz_default = defineSymbol({
|
10984
11164
|
primitives: [
|
10985
|
-
...Object.values(
|
10986
|
-
...Object.values(
|
10987
|
-
{ ...
|
10988
|
-
{ ...
|
11165
|
+
...Object.values(paths40),
|
11166
|
+
...Object.values(circles37),
|
11167
|
+
{ ...texts43.top1, anchor: "middle_bottom", x: 0 },
|
11168
|
+
{ ...texts43.bottom1, anchor: "middle_top", x: 0 }
|
10989
11169
|
],
|
10990
11170
|
ports: [
|
10991
|
-
{ ...
|
10992
|
-
{ ...
|
11171
|
+
{ ...refblocks40.left1, labels: ["1"] },
|
11172
|
+
{ ...refblocks40.right1, labels: ["2"] }
|
10993
11173
|
],
|
10994
|
-
size: { width:
|
10995
|
-
center: { x:
|
11174
|
+
size: { width: bounds40.width, height: bounds40.height },
|
11175
|
+
center: { x: bounds40.centerX + 6e-3, y: bounds40.centerY + 0.06 }
|
10996
11176
|
});
|
10997
11177
|
|
10998
11178
|
// symbols/mushroom_head_normally_open_momentary_vert.ts
|
@@ -11209,34 +11389,34 @@ var n_channel_d_mosfet_transistor_default = {
|
|
11209
11389
|
};
|
11210
11390
|
|
11211
11391
|
// symbols/n_channel_d_mosfet_transistor_horz.ts
|
11212
|
-
var { paths:
|
11392
|
+
var { paths: paths41, texts: texts44, bounds: bounds41, refblocks: refblocks41, circles: circles38 } = n_channel_d_mosfet_transistor_default;
|
11213
11393
|
var n_channel_d_mosfet_transistor_horz_default = defineSymbol({
|
11214
11394
|
primitives: [
|
11215
|
-
...Object.values(
|
11216
|
-
...Object.values(
|
11217
|
-
{ ...
|
11218
|
-
{ ...
|
11395
|
+
...Object.values(paths41),
|
11396
|
+
...Object.values(circles38),
|
11397
|
+
{ ...texts44.top1, anchor: "middle_right", x: 0 },
|
11398
|
+
{ ...texts44.bottom1, anchor: "middle_right", x: 0 }
|
11219
11399
|
],
|
11220
11400
|
ports: [
|
11221
|
-
{ ...
|
11401
|
+
{ ...refblocks41.top1, labels: ["1", "drain"] },
|
11222
11402
|
// TODO add more "standard" labels
|
11223
|
-
{ ...
|
11403
|
+
{ ...refblocks41.bottom1, labels: ["2", "source"] },
|
11224
11404
|
// TODO add more "standard" labels
|
11225
|
-
{ ...
|
11405
|
+
{ ...refblocks41.left1, labels: ["3", "gate"] }
|
11226
11406
|
// TODO add more "standard" labels
|
11227
11407
|
],
|
11228
|
-
size: { width:
|
11229
|
-
center: { x:
|
11408
|
+
size: { width: bounds41.width, height: bounds41.height },
|
11409
|
+
center: { x: bounds41.centerX, y: bounds41.centerY }
|
11230
11410
|
});
|
11231
11411
|
|
11232
11412
|
// symbols/n_channel_d_mosfet_transistor_vert.ts
|
11233
11413
|
var rotatedSymbol9 = rotateSymbol(n_channel_d_mosfet_transistor_horz_default);
|
11234
|
-
var
|
11235
|
-
var val24 =
|
11414
|
+
var texts45 = rotatedSymbol9.primitives.filter((p) => p.type === "text");
|
11415
|
+
var val24 = texts45.find((t) => t.text === "{VAL}");
|
11236
11416
|
val24.x = -0.35;
|
11237
11417
|
val24.y = 0;
|
11238
11418
|
val24.anchor = "middle_right";
|
11239
|
-
var ref25 =
|
11419
|
+
var ref25 = texts45.find((t) => t.text === "{REF}");
|
11240
11420
|
ref25.y = 0;
|
11241
11421
|
ref25.x = 0.35;
|
11242
11422
|
ref25.anchor = "middle_left";
|
@@ -11470,34 +11650,34 @@ var n_channel_e_mosfet_transistor_default = {
|
|
11470
11650
|
};
|
11471
11651
|
|
11472
11652
|
// symbols/n_channel_e_mosfet_transistor_horz.ts
|
11473
|
-
var { paths:
|
11653
|
+
var { paths: paths42, texts: texts46, bounds: bounds42, refblocks: refblocks42, circles: circles39 } = n_channel_e_mosfet_transistor_default;
|
11474
11654
|
var n_channel_e_mosfet_transistor_horz_default = defineSymbol({
|
11475
11655
|
primitives: [
|
11476
|
-
...Object.values(
|
11477
|
-
...Object.values(
|
11478
|
-
{ ...
|
11479
|
-
{ ...
|
11656
|
+
...Object.values(paths42),
|
11657
|
+
...Object.values(circles39),
|
11658
|
+
{ ...texts46.top1, anchor: "middle_right", x: 0 },
|
11659
|
+
{ ...texts46.bottom1, anchor: "middle_right", x: 0 }
|
11480
11660
|
],
|
11481
11661
|
ports: [
|
11482
|
-
{ ...
|
11662
|
+
{ ...refblocks42.top1, labels: ["1", "drain"] },
|
11483
11663
|
// TODO add more "standard" labels
|
11484
|
-
{ ...
|
11664
|
+
{ ...refblocks42.bottom1, labels: ["2", "source"] },
|
11485
11665
|
// TODO add more "standard" labels
|
11486
|
-
{ ...
|
11666
|
+
{ ...refblocks42.left1, labels: ["3", "gate"] }
|
11487
11667
|
// TODO add more "standard" labels
|
11488
11668
|
],
|
11489
|
-
size: { width:
|
11490
|
-
center: { x:
|
11669
|
+
size: { width: bounds42.width, height: bounds42.height },
|
11670
|
+
center: { x: bounds42.centerX, y: bounds42.centerY }
|
11491
11671
|
});
|
11492
11672
|
|
11493
11673
|
// symbols/n_channel_e_mosfet_transistor_vert.ts
|
11494
11674
|
var rotatedSymbol10 = rotateSymbol(n_channel_e_mosfet_transistor_horz_default);
|
11495
|
-
var
|
11496
|
-
var val25 =
|
11675
|
+
var texts47 = rotatedSymbol10.primitives.filter((p) => p.type === "text");
|
11676
|
+
var val25 = texts47.find((t) => t.text === "{VAL}");
|
11497
11677
|
val25.x = -0.35;
|
11498
11678
|
val25.y = 0;
|
11499
11679
|
val25.anchor = "middle_right";
|
11500
|
-
var ref26 =
|
11680
|
+
var ref26 = texts47.find((t) => t.text === "{REF}");
|
11501
11681
|
ref26.y = 0;
|
11502
11682
|
ref26.x = 0.35;
|
11503
11683
|
ref26.anchor = "middle_left";
|
@@ -11671,34 +11851,34 @@ var njfet_transistor_default = {
|
|
11671
11851
|
};
|
11672
11852
|
|
11673
11853
|
// symbols/njfet_transistor_horz.ts
|
11674
|
-
var { paths:
|
11854
|
+
var { paths: paths43, texts: texts48, bounds: bounds43, refblocks: refblocks43, circles: circles40 } = njfet_transistor_default;
|
11675
11855
|
var njfet_transistor_horz_default = defineSymbol({
|
11676
11856
|
primitives: [
|
11677
|
-
...Object.values(
|
11678
|
-
...Object.values(
|
11679
|
-
{ ...
|
11680
|
-
{ ...
|
11857
|
+
...Object.values(paths43),
|
11858
|
+
...Object.values(circles40),
|
11859
|
+
{ ...texts48.top1, anchor: "middle_right", x: 0 },
|
11860
|
+
{ ...texts48.bottom1, anchor: "middle_right", x: 0 }
|
11681
11861
|
],
|
11682
11862
|
ports: [
|
11683
|
-
{ ...
|
11863
|
+
{ ...refblocks43.top1, labels: ["1", "drain"] },
|
11684
11864
|
// TODO add more "standard" labels
|
11685
|
-
{ ...
|
11865
|
+
{ ...refblocks43.bottom1, labels: ["2", "source"] },
|
11686
11866
|
// TODO add more "standard" labels
|
11687
|
-
{ ...
|
11867
|
+
{ ...refblocks43.left1, labels: ["3", "gate"] }
|
11688
11868
|
// TODO add more "standard" labels
|
11689
11869
|
],
|
11690
|
-
size: { width:
|
11691
|
-
center: { x:
|
11870
|
+
size: { width: bounds43.width, height: bounds43.height },
|
11871
|
+
center: { x: bounds43.centerX, y: bounds43.centerY }
|
11692
11872
|
});
|
11693
11873
|
|
11694
11874
|
// symbols/njfet_transistor_vert.ts
|
11695
11875
|
var rotatedSymbol11 = rotateSymbol(njfet_transistor_horz_default);
|
11696
|
-
var
|
11697
|
-
var val26 =
|
11876
|
+
var texts49 = rotatedSymbol11.primitives.filter((p) => p.type === "text");
|
11877
|
+
var val26 = texts49.find((t) => t.text === "{VAL}");
|
11698
11878
|
val26.x = -0.35;
|
11699
11879
|
val26.y = 0;
|
11700
11880
|
val26.anchor = "middle_right";
|
11701
|
-
var ref27 =
|
11881
|
+
var ref27 = texts49.find((t) => t.text === "{REF}");
|
11702
11882
|
ref27.y = 0;
|
11703
11883
|
ref27.x = 0.35;
|
11704
11884
|
ref27.anchor = "middle_left";
|
@@ -11872,13 +12052,13 @@ var npn_bipolar_transistor_default = {
|
|
11872
12052
|
};
|
11873
12053
|
|
11874
12054
|
// symbols/npn_bipolar_transistor_horz.ts
|
11875
|
-
var { paths:
|
12055
|
+
var { paths: paths44, texts: texts50, bounds: bounds44, refblocks: refblocks44, circles: circles41 } = npn_bipolar_transistor_default;
|
11876
12056
|
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();
|
11877
12057
|
|
11878
12058
|
// symbols/npn_bipolar_transistor_vert.ts
|
11879
12059
|
var rotatedSymbol12 = rotateSymbol(npn_bipolar_transistor_horz_default);
|
11880
|
-
var
|
11881
|
-
var ref28 =
|
12060
|
+
var texts51 = rotatedSymbol12.primitives.filter((p) => p.type === "text");
|
12061
|
+
var ref28 = texts51.find((t) => t.text === "{REF}");
|
11882
12062
|
ref28.anchor = "middle_left";
|
11883
12063
|
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();
|
11884
12064
|
|
@@ -12502,34 +12682,34 @@ var p_channel_d_mosfet_transistor_default = {
|
|
12502
12682
|
};
|
12503
12683
|
|
12504
12684
|
// symbols/p_channel_d_mosfet_transistor_horz.ts
|
12505
|
-
var { paths:
|
12685
|
+
var { paths: paths45, texts: texts52, bounds: bounds45, refblocks: refblocks45, circles: circles42 } = p_channel_d_mosfet_transistor_default;
|
12506
12686
|
var p_channel_d_mosfet_transistor_horz_default = defineSymbol({
|
12507
12687
|
primitives: [
|
12508
|
-
...Object.values(
|
12509
|
-
...Object.values(
|
12510
|
-
{ ...
|
12511
|
-
{ ...
|
12688
|
+
...Object.values(paths45),
|
12689
|
+
...Object.values(circles42),
|
12690
|
+
{ ...texts52.top1, anchor: "middle_right", x: 0 },
|
12691
|
+
{ ...texts52.bottom1, anchor: "middle_right", x: 0 }
|
12512
12692
|
],
|
12513
12693
|
ports: [
|
12514
|
-
{ ...
|
12694
|
+
{ ...refblocks45.top1, labels: ["1", "drain"] },
|
12515
12695
|
// TODO add more "standard" labels
|
12516
|
-
{ ...
|
12696
|
+
{ ...refblocks45.bottom1, labels: ["2", "source"] },
|
12517
12697
|
// TODO add more "standard" labels
|
12518
|
-
{ ...
|
12698
|
+
{ ...refblocks45.left1, labels: ["3", "gate"] }
|
12519
12699
|
// TODO add more "standard" labels
|
12520
12700
|
],
|
12521
|
-
size: { width:
|
12522
|
-
center: { x:
|
12701
|
+
size: { width: bounds45.width, height: bounds45.height },
|
12702
|
+
center: { x: bounds45.centerX, y: bounds45.centerY }
|
12523
12703
|
});
|
12524
12704
|
|
12525
12705
|
// symbols/p_channel_d_mosfet_transistor_vert.ts
|
12526
12706
|
var rotatedSymbol13 = rotateSymbol(p_channel_d_mosfet_transistor_horz_default);
|
12527
|
-
var
|
12528
|
-
var val27 =
|
12707
|
+
var texts53 = rotatedSymbol13.primitives.filter((p) => p.type === "text");
|
12708
|
+
var val27 = texts53.find((t) => t.text === "{VAL}");
|
12529
12709
|
val27.x = -0.35;
|
12530
12710
|
val27.y = 0;
|
12531
12711
|
val27.anchor = "middle_right";
|
12532
|
-
var ref29 =
|
12712
|
+
var ref29 = texts53.find((t) => t.text === "{REF}");
|
12533
12713
|
ref29.y = 0;
|
12534
12714
|
ref29.x = 0.35;
|
12535
12715
|
ref29.anchor = "middle_left";
|
@@ -12763,34 +12943,34 @@ var p_channel_e_mosfet_transistor_default = {
|
|
12763
12943
|
};
|
12764
12944
|
|
12765
12945
|
// symbols/p_channel_e_mosfet_transistor_horz.ts
|
12766
|
-
var { paths:
|
12946
|
+
var { paths: paths46, texts: texts54, bounds: bounds46, refblocks: refblocks46, circles: circles43 } = p_channel_e_mosfet_transistor_default;
|
12767
12947
|
var p_channel_e_mosfet_transistor_horz_default = defineSymbol({
|
12768
12948
|
primitives: [
|
12769
|
-
...Object.values(
|
12770
|
-
...Object.values(
|
12771
|
-
{ ...
|
12772
|
-
{ ...
|
12949
|
+
...Object.values(paths46),
|
12950
|
+
...Object.values(circles43),
|
12951
|
+
{ ...texts54.top1, anchor: "middle_right", x: 0 },
|
12952
|
+
{ ...texts54.bottom1, anchor: "middle_right", x: 0 }
|
12773
12953
|
],
|
12774
12954
|
ports: [
|
12775
|
-
{ ...
|
12955
|
+
{ ...refblocks46.top1, labels: ["1", "drain"] },
|
12776
12956
|
// TODO add more "standard" labels
|
12777
|
-
{ ...
|
12957
|
+
{ ...refblocks46.bottom1, labels: ["2", "source"] },
|
12778
12958
|
// TODO add more "standard" labels
|
12779
|
-
{ ...
|
12959
|
+
{ ...refblocks46.left1, labels: ["3", "gate"] }
|
12780
12960
|
// TODO add more "standard" labels
|
12781
12961
|
],
|
12782
|
-
size: { width:
|
12783
|
-
center: { x:
|
12962
|
+
size: { width: bounds46.width, height: bounds46.height },
|
12963
|
+
center: { x: bounds46.centerX, y: bounds46.centerY }
|
12784
12964
|
});
|
12785
12965
|
|
12786
12966
|
// symbols/p_channel_e_mosfet_transistor_vert.ts
|
12787
12967
|
var rotatedSymbol14 = rotateSymbol(p_channel_e_mosfet_transistor_horz_default);
|
12788
|
-
var
|
12789
|
-
var val28 =
|
12968
|
+
var texts55 = rotatedSymbol14.primitives.filter((p) => p.type === "text");
|
12969
|
+
var val28 = texts55.find((t) => t.text === "{VAL}");
|
12790
12970
|
val28.x = -0.35;
|
12791
12971
|
val28.y = 0;
|
12792
12972
|
val28.anchor = "middle_right";
|
12793
|
-
var ref30 =
|
12973
|
+
var ref30 = texts55.find((t) => t.text === "{REF}");
|
12794
12974
|
ref30.y = 0;
|
12795
12975
|
ref30.x = 0.35;
|
12796
12976
|
ref30.anchor = "middle_left";
|
@@ -13025,8 +13205,8 @@ var photodiode_horz_default = modifySymbol(photodiode_default).changeTextAnchor(
|
|
13025
13205
|
|
13026
13206
|
// symbols/photodiode_vert.ts
|
13027
13207
|
var rotatedSymbol15 = rotateSymbol(photodiode_horz_default);
|
13028
|
-
var
|
13029
|
-
var ref31 =
|
13208
|
+
var texts56 = rotatedSymbol15.primitives.filter((p) => p.type === "text");
|
13209
|
+
var ref31 = texts56.find((t) => t.text === "{REF}");
|
13030
13210
|
ref31.y = 0;
|
13031
13211
|
ref31.anchor = "middle_left";
|
13032
13212
|
var photodiode_vert_default = rotatedSymbol15;
|
@@ -13199,34 +13379,34 @@ var pjfet_transistor_default = {
|
|
13199
13379
|
};
|
13200
13380
|
|
13201
13381
|
// symbols/pjfet_transistor_horz.ts
|
13202
|
-
var { paths:
|
13382
|
+
var { paths: paths47, texts: texts57, bounds: bounds47, refblocks: refblocks47, circles: circles44 } = pjfet_transistor_default;
|
13203
13383
|
var pjfet_transistor_horz_default = defineSymbol({
|
13204
13384
|
primitives: [
|
13205
|
-
...Object.values(
|
13206
|
-
...Object.values(
|
13207
|
-
{ ...
|
13208
|
-
{ ...
|
13385
|
+
...Object.values(paths47),
|
13386
|
+
...Object.values(circles44),
|
13387
|
+
{ ...texts57.top1, anchor: "middle_right", x: 0 },
|
13388
|
+
{ ...texts57.bottom1, anchor: "middle_right" }
|
13209
13389
|
],
|
13210
13390
|
ports: [
|
13211
|
-
{ ...
|
13391
|
+
{ ...refblocks47.top1, labels: ["1", "drain"] },
|
13212
13392
|
// TODO add more "standard" labels
|
13213
|
-
{ ...
|
13393
|
+
{ ...refblocks47.bottom1, labels: ["2", "source"] },
|
13214
13394
|
// TODO add more "standard" labels
|
13215
|
-
{ ...
|
13395
|
+
{ ...refblocks47.left1, labels: ["3", "gate"] }
|
13216
13396
|
// TODO add more "standard" labels
|
13217
13397
|
],
|
13218
|
-
size: { width:
|
13219
|
-
center: { x:
|
13398
|
+
size: { width: bounds47.width, height: bounds47.height },
|
13399
|
+
center: { x: bounds47.centerX, y: bounds47.centerY }
|
13220
13400
|
});
|
13221
13401
|
|
13222
13402
|
// symbols/pjfet_transistor_vert.ts
|
13223
13403
|
var rotatedSymbol16 = rotateSymbol(pjfet_transistor_horz_default);
|
13224
|
-
var
|
13225
|
-
var val29 =
|
13404
|
+
var texts58 = rotatedSymbol16.primitives.filter((p) => p.type === "text");
|
13405
|
+
var val29 = texts58.find((t) => t.text === "{VAL}");
|
13226
13406
|
val29.x = -0.35;
|
13227
13407
|
val29.y = 0;
|
13228
13408
|
val29.anchor = "middle_right";
|
13229
|
-
var ref32 =
|
13409
|
+
var ref32 = texts58.find((t) => t.text === "{REF}");
|
13230
13410
|
ref32.y = 0;
|
13231
13411
|
ref32.x = 0.35;
|
13232
13412
|
ref32.anchor = "middle_left";
|
@@ -13404,8 +13584,8 @@ var pnp_bipolar_transistor_horz_default = modifySymbol(pnp_bipolar_transistor_de
|
|
13404
13584
|
|
13405
13585
|
// symbols/pnp_bipolar_transistor_vert.ts
|
13406
13586
|
var rotatedSymbol17 = rotateSymbol(pnp_bipolar_transistor_horz_default);
|
13407
|
-
var
|
13408
|
-
var ref33 =
|
13587
|
+
var texts59 = rotatedSymbol17.primitives.filter((p) => p.type === "text");
|
13588
|
+
var ref33 = texts59.find((t) => t.text === "{REF}");
|
13409
13589
|
ref33.anchor = "middle_left";
|
13410
13590
|
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();
|
13411
13591
|
|
@@ -13819,21 +13999,21 @@ var potentiometer_default = {
|
|
13819
13999
|
};
|
13820
14000
|
|
13821
14001
|
// symbols/potentiometer_horz.ts
|
13822
|
-
var { paths:
|
14002
|
+
var { paths: paths48, texts: texts60, bounds: bounds48, refblocks: refblocks48 } = potentiometer_default;
|
13823
14003
|
var potentiometer_horz_default = defineSymbol({
|
13824
14004
|
primitives: [
|
13825
|
-
...Object.values(
|
13826
|
-
{ ...
|
13827
|
-
{ ...
|
14005
|
+
...Object.values(paths48),
|
14006
|
+
{ ...texts60.bottom1, y: 0.35, anchor: "middle_top" },
|
14007
|
+
{ ...texts60.top1, anchor: "middle_left" }
|
13828
14008
|
],
|
13829
14009
|
ports: [
|
13830
|
-
{ ...
|
14010
|
+
{ ...refblocks48.left1, labels: ["1"] },
|
13831
14011
|
// TODO add more "standard" labels
|
13832
|
-
{ ...
|
14012
|
+
{ ...refblocks48.right1, labels: ["2"] }
|
13833
14013
|
// TODO add more "standard" labels
|
13834
14014
|
],
|
13835
|
-
size: { width:
|
13836
|
-
center: { x:
|
14015
|
+
size: { width: bounds48.width + 0.05, height: bounds48.height },
|
14016
|
+
center: { x: bounds48.centerX, y: bounds48.centerY }
|
13837
14017
|
});
|
13838
14018
|
|
13839
14019
|
// symbols/potentiometer_vert.ts
|
@@ -13996,21 +14176,21 @@ var potentiometer2_default = {
|
|
13996
14176
|
};
|
13997
14177
|
|
13998
14178
|
// symbols/potentiometer2_right.ts
|
13999
|
-
var { paths:
|
14179
|
+
var { paths: paths49, texts: texts61, bounds: bounds49, refblocks: refblocks49 } = potentiometer2_default;
|
14000
14180
|
var potentiometer2_right_default = defineSymbol({
|
14001
14181
|
primitives: [
|
14002
|
-
...Object.values(
|
14003
|
-
{ ...
|
14004
|
-
{ ...
|
14182
|
+
...Object.values(paths49),
|
14183
|
+
{ ...texts61.bottom1, x: 0, y: -0.35, anchor: "middle_top" },
|
14184
|
+
{ ...texts61.top1, x: 0, y: 0.35, anchor: "middle_bottom" }
|
14005
14185
|
],
|
14006
14186
|
ports: [
|
14007
|
-
{ ...
|
14187
|
+
{ ...refblocks49.left1, labels: ["1"] },
|
14008
14188
|
// TODO add more "standard" labels
|
14009
|
-
{ ...
|
14189
|
+
{ ...refblocks49.right1, labels: ["2"] }
|
14010
14190
|
// TODO add more "standard" labels
|
14011
14191
|
],
|
14012
|
-
size: { width:
|
14013
|
-
center: { x:
|
14192
|
+
size: { width: bounds49.width + 0.05, height: bounds49.height },
|
14193
|
+
center: { x: bounds49.centerX, y: bounds49.centerY }
|
14014
14194
|
});
|
14015
14195
|
|
14016
14196
|
// symbols/potentiometer2_down.ts
|
@@ -14255,11 +14435,11 @@ var power_factor_meter_default = {
|
|
14255
14435
|
};
|
14256
14436
|
|
14257
14437
|
// symbols/power_factor_meter_horz.ts
|
14258
|
-
var { paths:
|
14438
|
+
var { paths: paths50, texts: texts62, bounds: bounds50, refblocks: refblocks50, circles: circles45 } = power_factor_meter_default;
|
14259
14439
|
var power_factor_meter_horz_default = defineSymbol({
|
14260
14440
|
primitives: [
|
14261
|
-
...Object.values(
|
14262
|
-
...Object.values(
|
14441
|
+
...Object.values(paths50),
|
14442
|
+
...Object.values(circles45),
|
14263
14443
|
// { ...texts.top1, anchor: "middle_left" },
|
14264
14444
|
{
|
14265
14445
|
type: "text",
|
@@ -14286,21 +14466,21 @@ var power_factor_meter_horz_default = defineSymbol({
|
|
14286
14466
|
}
|
14287
14467
|
],
|
14288
14468
|
ports: [
|
14289
|
-
{ ...
|
14469
|
+
{ ...refblocks50.left1, labels: ["1"] },
|
14290
14470
|
// TODO add more "standard" labels
|
14291
|
-
{ ...
|
14471
|
+
{ ...refblocks50.right1, labels: ["2"] }
|
14292
14472
|
// TODO add more "standard" labels
|
14293
14473
|
],
|
14294
|
-
size: { width:
|
14295
|
-
center: { x:
|
14474
|
+
size: { width: bounds50.width, height: bounds50.height },
|
14475
|
+
center: { x: bounds50.centerX, y: bounds50.centerY }
|
14296
14476
|
});
|
14297
14477
|
|
14298
14478
|
// symbols/power_factor_meter_vert.ts
|
14299
14479
|
var rotatedSymbol18 = rotateSymbol(power_factor_meter_horz_default);
|
14300
|
-
var
|
14301
|
-
var ref37 =
|
14302
|
-
var val33 =
|
14303
|
-
var text_cos =
|
14480
|
+
var texts63 = rotatedSymbol18.primitives.filter((p) => p.type === "text");
|
14481
|
+
var ref37 = texts63.find((t) => t.text === "{REF}");
|
14482
|
+
var val33 = texts63.find((t) => t.text === "{VAL}");
|
14483
|
+
var text_cos = texts63.find((t) => t.text === "COS \u03C6");
|
14304
14484
|
ref37.x = 0.35;
|
14305
14485
|
ref37.y = 0;
|
14306
14486
|
ref37.anchor = "middle_left";
|
@@ -14431,22 +14611,22 @@ var push_button_normally_closed_momentary_default = {
|
|
14431
14611
|
};
|
14432
14612
|
|
14433
14613
|
// symbols/push_button_normally_closed_momentary_horz.ts
|
14434
|
-
var { paths:
|
14614
|
+
var { paths: paths51, texts: texts64, bounds: bounds51, refblocks: refblocks51, circles: circles46 } = push_button_normally_closed_momentary_default;
|
14435
14615
|
var push_button_normally_closed_momentary_horz_default = defineSymbol({
|
14436
14616
|
primitives: [
|
14437
|
-
...Object.values(
|
14438
|
-
...Object.values(
|
14439
|
-
{ ...
|
14440
|
-
{ ...
|
14617
|
+
...Object.values(paths51),
|
14618
|
+
...Object.values(circles46),
|
14619
|
+
{ ...texts64.top1, anchor: "middle_left" },
|
14620
|
+
{ ...texts64.bottom1, anchor: "middle_left" }
|
14441
14621
|
],
|
14442
14622
|
ports: [
|
14443
|
-
{ ...
|
14623
|
+
{ ...refblocks51.left1, labels: ["1"] },
|
14444
14624
|
// TODO add more "standard" labels
|
14445
|
-
{ ...
|
14625
|
+
{ ...refblocks51.right1, labels: ["2"] }
|
14446
14626
|
// TODO add more "standard" labels
|
14447
14627
|
],
|
14448
|
-
size: { width:
|
14449
|
-
center: { x:
|
14628
|
+
size: { width: bounds51.width, height: bounds51.height },
|
14629
|
+
center: { x: bounds51.centerX, y: bounds51.centerY }
|
14450
14630
|
});
|
14451
14631
|
|
14452
14632
|
// symbols/push_button_normally_closed_momentary_vert.ts
|
@@ -14601,22 +14781,22 @@ var push_button_normally_open_momentary_default = {
|
|
14601
14781
|
};
|
14602
14782
|
|
14603
14783
|
// symbols/push_button_normally_open_momentary_horz.ts
|
14604
|
-
var { paths:
|
14784
|
+
var { paths: paths52, texts: texts65, bounds: bounds52, refblocks: refblocks52, circles: circles47 } = push_button_normally_open_momentary_default;
|
14605
14785
|
var push_button_normally_open_momentary_horz_default = defineSymbol({
|
14606
14786
|
primitives: [
|
14607
|
-
...Object.values(
|
14608
|
-
...Object.values(
|
14609
|
-
{ ...
|
14610
|
-
{ ...
|
14787
|
+
...Object.values(paths52),
|
14788
|
+
...Object.values(circles47),
|
14789
|
+
{ ...texts65.top1, anchor: "middle_left" },
|
14790
|
+
{ ...texts65.bottom1, anchor: "middle_left" }
|
14611
14791
|
],
|
14612
14792
|
ports: [
|
14613
|
-
{ ...
|
14793
|
+
{ ...refblocks52.left1, labels: ["1"] },
|
14614
14794
|
// TODO add more "standard" labels
|
14615
|
-
{ ...
|
14795
|
+
{ ...refblocks52.right1, labels: ["2"] }
|
14616
14796
|
// TODO add more "standard" labels
|
14617
14797
|
],
|
14618
|
-
size: { width:
|
14619
|
-
center: { x:
|
14798
|
+
size: { width: bounds52.width, height: bounds52.height },
|
14799
|
+
center: { x: bounds52.centerX, y: bounds52.centerY }
|
14620
14800
|
});
|
14621
14801
|
|
14622
14802
|
// symbols/push_button_normally_open_momentary_vert.ts
|
@@ -15032,26 +15212,26 @@ var rectifier_diode_default = {
|
|
15032
15212
|
};
|
15033
15213
|
|
15034
15214
|
// symbols/rectifier_diode_horz.ts
|
15035
|
-
var { paths:
|
15215
|
+
var { paths: paths53, texts: texts66, bounds: bounds53, refblocks: refblocks53, circles: circles48 } = rectifier_diode_default;
|
15036
15216
|
var rectifier_diode_horz_default = defineSymbol({
|
15037
15217
|
primitives: [
|
15038
|
-
...Object.values(
|
15039
|
-
...Object.values(
|
15040
|
-
{ ...
|
15041
|
-
{ ...
|
15218
|
+
...Object.values(paths53),
|
15219
|
+
...Object.values(circles48),
|
15220
|
+
{ ...texts66.top1, anchor: "middle_right" },
|
15221
|
+
{ ...texts66.bottom1, anchor: "middle_right" }
|
15042
15222
|
],
|
15043
15223
|
ports: [
|
15044
|
-
{ ...
|
15224
|
+
{ ...refblocks53.top1, labels: ["1"] },
|
15045
15225
|
// TODO add more "standard" labels
|
15046
|
-
{ ...
|
15226
|
+
{ ...refblocks53.bottom1, labels: ["2"] },
|
15047
15227
|
// TODO add more "standard" labels
|
15048
|
-
{ ...
|
15228
|
+
{ ...refblocks53.left1, labels: ["3"] },
|
15049
15229
|
// TODO add more "standard" labels
|
15050
|
-
{ ...
|
15230
|
+
{ ...refblocks53.right1, labels: ["4"] }
|
15051
15231
|
// TODO add more "standard" labels
|
15052
15232
|
],
|
15053
|
-
size: { width:
|
15054
|
-
center: { x:
|
15233
|
+
size: { width: bounds53.width, height: bounds53.height },
|
15234
|
+
center: { x: bounds53.centerX, y: bounds53.centerY }
|
15055
15235
|
});
|
15056
15236
|
|
15057
15237
|
// symbols/rectifier_diode_vert.ts
|
@@ -15273,11 +15453,11 @@ var resistor_default = {
|
|
15273
15453
|
};
|
15274
15454
|
|
15275
15455
|
// symbols/resistor_down.ts
|
15276
|
-
var { paths:
|
15456
|
+
var { paths: paths54, texts: texts67, bounds: bounds54, refblocks: refblocks54, circles: circles49 } = resistor_default;
|
15277
15457
|
var resistor_down_default = modifySymbol({
|
15278
15458
|
primitives: [
|
15279
|
-
...Object.values(
|
15280
|
-
...Object.values(
|
15459
|
+
...Object.values(paths54),
|
15460
|
+
...Object.values(circles49),
|
15281
15461
|
{
|
15282
15462
|
type: "text",
|
15283
15463
|
text: "{REF}",
|
@@ -15292,21 +15472,21 @@ var resistor_down_default = modifySymbol({
|
|
15292
15472
|
}
|
15293
15473
|
],
|
15294
15474
|
ports: [
|
15295
|
-
{ ...
|
15475
|
+
{ ...refblocks54.left1, labels: ["1"] },
|
15296
15476
|
// TODO add more "standard" labels
|
15297
|
-
{ ...
|
15477
|
+
{ ...refblocks54.right1, labels: ["2"] }
|
15298
15478
|
// TODO add more "standard" labels
|
15299
15479
|
],
|
15300
|
-
size: { width:
|
15301
|
-
center: { x:
|
15480
|
+
size: { width: bounds54.width, height: bounds54.height },
|
15481
|
+
center: { x: bounds54.centerX, y: bounds54.centerY }
|
15302
15482
|
}).rotateRightFacingSymbol("down").labelPort("left", ["1"]).labelPort("right", ["2"]).changeTextAnchor("{REF}", "middle_left").changeTextAnchor("{VAL}", "middle_left").build();
|
15303
15483
|
|
15304
15484
|
// symbols/resistor_left.ts
|
15305
|
-
var { paths:
|
15485
|
+
var { paths: paths55, texts: texts68, bounds: bounds55, refblocks: refblocks55, circles: circles50 } = resistor_default;
|
15306
15486
|
var resistor_left_default = modifySymbol({
|
15307
15487
|
primitives: [
|
15308
|
-
...Object.values(
|
15309
|
-
...Object.values(
|
15488
|
+
...Object.values(paths55),
|
15489
|
+
...Object.values(circles50),
|
15310
15490
|
{
|
15311
15491
|
type: "text",
|
15312
15492
|
text: "{REF}",
|
@@ -15321,21 +15501,21 @@ var resistor_left_default = modifySymbol({
|
|
15321
15501
|
}
|
15322
15502
|
],
|
15323
15503
|
ports: [
|
15324
|
-
{ ...
|
15504
|
+
{ ...refblocks55.left1, labels: ["1"] },
|
15325
15505
|
// TODO add more "standard" labels
|
15326
|
-
{ ...
|
15506
|
+
{ ...refblocks55.right1, labels: ["2"] }
|
15327
15507
|
// TODO add more "standard" labels
|
15328
15508
|
],
|
15329
|
-
size: { width:
|
15330
|
-
center: { x:
|
15509
|
+
size: { width: bounds55.width, height: bounds55.height },
|
15510
|
+
center: { x: bounds55.centerX, y: bounds55.centerY }
|
15331
15511
|
}).rotateRightFacingSymbol("left").labelPort("left", ["1"]).labelPort("right", ["2"]).changeTextAnchor("{REF}", "middle_bottom").changeTextAnchor("{VAL}", "middle_top").build();
|
15332
15512
|
|
15333
15513
|
// symbols/resistor_right.ts
|
15334
|
-
var { paths:
|
15514
|
+
var { paths: paths56, texts: texts69, bounds: bounds56, refblocks: refblocks56, circles: circles51 } = resistor_default;
|
15335
15515
|
var resistor_right_default = modifySymbol({
|
15336
15516
|
primitives: [
|
15337
|
-
...Object.values(
|
15338
|
-
...Object.values(
|
15517
|
+
...Object.values(paths56),
|
15518
|
+
...Object.values(circles51),
|
15339
15519
|
{
|
15340
15520
|
type: "text",
|
15341
15521
|
text: "{REF}",
|
@@ -15350,21 +15530,21 @@ var resistor_right_default = modifySymbol({
|
|
15350
15530
|
}
|
15351
15531
|
],
|
15352
15532
|
ports: [
|
15353
|
-
{ ...
|
15533
|
+
{ ...refblocks56.left1, labels: ["1"] },
|
15354
15534
|
// TODO add more "standard" labels
|
15355
|
-
{ ...
|
15535
|
+
{ ...refblocks56.right1, labels: ["2"] }
|
15356
15536
|
// TODO add more "standard" labels
|
15357
15537
|
],
|
15358
|
-
size: { width:
|
15359
|
-
center: { x:
|
15538
|
+
size: { width: bounds56.width, height: bounds56.height },
|
15539
|
+
center: { x: bounds56.centerX, y: bounds56.centerY }
|
15360
15540
|
}).rotateRightFacingSymbol("right").labelPort("left", ["1"]).labelPort("right", ["2"]).changeTextAnchor("{REF}", "middle_bottom").changeTextAnchor("{VAL}", "middle_top").build();
|
15361
15541
|
|
15362
15542
|
// symbols/resistor_up.ts
|
15363
|
-
var { paths:
|
15543
|
+
var { paths: paths57, texts: texts70, bounds: bounds57, refblocks: refblocks57, circles: circles52 } = resistor_default;
|
15364
15544
|
var resistor_up_default = modifySymbol({
|
15365
15545
|
primitives: [
|
15366
|
-
...Object.values(
|
15367
|
-
...Object.values(
|
15546
|
+
...Object.values(paths57),
|
15547
|
+
...Object.values(circles52),
|
15368
15548
|
{
|
15369
15549
|
type: "text",
|
15370
15550
|
text: "{REF}",
|
@@ -15379,13 +15559,13 @@ var resistor_up_default = modifySymbol({
|
|
15379
15559
|
}
|
15380
15560
|
],
|
15381
15561
|
ports: [
|
15382
|
-
{ ...
|
15562
|
+
{ ...refblocks57.left1, labels: ["1"] },
|
15383
15563
|
// TODO add more "standard" labels
|
15384
|
-
{ ...
|
15564
|
+
{ ...refblocks57.right1, labels: ["2"] }
|
15385
15565
|
// TODO add more "standard" labels
|
15386
15566
|
],
|
15387
|
-
size: { width:
|
15388
|
-
center: { x:
|
15567
|
+
size: { width: bounds57.width, height: bounds57.height },
|
15568
|
+
center: { x: bounds57.centerX, y: bounds57.centerY }
|
15389
15569
|
}).rotateRightFacingSymbol("up").labelPort("left", ["1"]).labelPort("right", ["2"]).changeTextAnchor("{REF}", "middle_left").changeTextAnchor("{VAL}", "middle_left").build();
|
15390
15570
|
|
15391
15571
|
// assets/generated/resonator.json
|
@@ -15734,11 +15914,11 @@ var resonator_default = {
|
|
15734
15914
|
};
|
15735
15915
|
|
15736
15916
|
// symbols/resonator_horz.ts
|
15737
|
-
var { paths:
|
15917
|
+
var { paths: paths58, texts: texts71, bounds: bounds58, refblocks: refblocks58, circles: circles53 } = resonator_default;
|
15738
15918
|
var resonator_horz_default = defineSymbol({
|
15739
15919
|
primitives: [
|
15740
|
-
...Object.values(
|
15741
|
-
...Object.values(
|
15920
|
+
...Object.values(paths58),
|
15921
|
+
...Object.values(circles53),
|
15742
15922
|
// { ...texts.top1, anchor: "middle_left" },
|
15743
15923
|
// { ...texts.bottom1, anchor: "middle_left" },
|
15744
15924
|
{
|
@@ -15757,15 +15937,15 @@ var resonator_horz_default = defineSymbol({
|
|
15757
15937
|
}
|
15758
15938
|
],
|
15759
15939
|
ports: [
|
15760
|
-
{ ...
|
15940
|
+
{ ...refblocks58.left1, labels: ["1"] },
|
15761
15941
|
// TODO add more "standard" labels
|
15762
|
-
{ ...
|
15942
|
+
{ ...refblocks58.right1, labels: ["2"] },
|
15763
15943
|
// TODO add more "standard" labels
|
15764
|
-
{ ...
|
15944
|
+
{ ...refblocks58.right2, labels: ["3"] }
|
15765
15945
|
// TODO add more "standard" labels
|
15766
15946
|
],
|
15767
|
-
size: { width:
|
15768
|
-
center: { x:
|
15947
|
+
size: { width: bounds58.width, height: bounds58.height },
|
15948
|
+
center: { x: bounds58.centerX, y: bounds58.centerY }
|
15769
15949
|
});
|
15770
15950
|
|
15771
15951
|
// symbols/resonator_vert.ts
|
@@ -16157,15 +16337,15 @@ var silicon_controlled_rectifier_default = {
|
|
16157
16337
|
};
|
16158
16338
|
|
16159
16339
|
// symbols/silicon_controlled_rectifier_horz.ts
|
16160
|
-
var { paths:
|
16340
|
+
var { paths: paths59, texts: texts72, bounds: bounds59, refblocks: refblocks59, circles: circles54 } = silicon_controlled_rectifier_default;
|
16161
16341
|
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();
|
16162
16342
|
|
16163
16343
|
// symbols/silicon_controlled_rectifier_vert.ts
|
16164
16344
|
var rotatedSymbol19 = rotateSymbol(silicon_controlled_rectifier_horz_default);
|
16165
|
-
var
|
16345
|
+
var texts73 = rotatedSymbol19.primitives.filter(
|
16166
16346
|
(primitive) => primitive.type === "text"
|
16167
16347
|
);
|
16168
|
-
var ref42 =
|
16348
|
+
var ref42 = texts73.find((text) => text.text === "{REF}");
|
16169
16349
|
ref42.y = 0;
|
16170
16350
|
ref42.anchor = "middle_left";
|
16171
16351
|
var silicon_controlled_rectifier_vert_default = rotatedSymbol19;
|
@@ -19725,7 +19905,7 @@ var step_recovery_diode_default = {
|
|
19725
19905
|
};
|
19726
19906
|
|
19727
19907
|
// symbols/step_recovery_diode_horz.ts
|
19728
|
-
var { paths:
|
19908
|
+
var { paths: paths60, texts: texts74, bounds: bounds60, refblocks: refblocks60, circles: circles55 } = step_recovery_diode_default;
|
19729
19909
|
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();
|
19730
19910
|
|
19731
19911
|
// symbols/step_recovery_diode_vert.ts
|
@@ -19818,11 +19998,11 @@ var tachometer_default = {
|
|
19818
19998
|
};
|
19819
19999
|
|
19820
20000
|
// symbols/tachometer_horz.ts
|
19821
|
-
var { paths:
|
20001
|
+
var { paths: paths61, texts: texts75, bounds: bounds61, refblocks: refblocks61, circles: circles56 } = tachometer_default;
|
19822
20002
|
var tachometer_horz_default = defineSymbol({
|
19823
20003
|
primitives: [
|
19824
|
-
...Object.values(
|
19825
|
-
...Object.values(
|
20004
|
+
...Object.values(paths61),
|
20005
|
+
...Object.values(circles56),
|
19826
20006
|
{
|
19827
20007
|
type: "text",
|
19828
20008
|
text: "{REF}",
|
@@ -19837,16 +20017,16 @@ var tachometer_horz_default = defineSymbol({
|
|
19837
20017
|
y: 0.35,
|
19838
20018
|
anchor: "middle_bottom"
|
19839
20019
|
},
|
19840
|
-
{ ...
|
20020
|
+
{ ...texts75.left1, y: 0.01, anchor: "center", fontSize: 0.2 }
|
19841
20021
|
],
|
19842
20022
|
ports: [
|
19843
|
-
{ ...
|
20023
|
+
{ ...refblocks61.left1, labels: ["1"] },
|
19844
20024
|
// TODO add more "standard" labels
|
19845
|
-
{ ...
|
20025
|
+
{ ...refblocks61.right1, labels: ["2"] }
|
19846
20026
|
// TODO add more "standard" labels
|
19847
20027
|
],
|
19848
|
-
size: { width:
|
19849
|
-
center: { x:
|
20028
|
+
size: { width: bounds61.width, height: bounds61.height },
|
20029
|
+
center: { x: bounds61.centerX, y: bounds61.centerY }
|
19850
20030
|
});
|
19851
20031
|
|
19852
20032
|
// symbols/tachometer_vert.ts
|
@@ -20268,16 +20448,16 @@ var triac_default = {
|
|
20268
20448
|
};
|
20269
20449
|
|
20270
20450
|
// symbols/triac_horz.ts
|
20271
|
-
var { paths:
|
20451
|
+
var { paths: paths62, texts: texts76, bounds: bounds62, refblocks: refblocks62, circles: circles57 } = triac_default;
|
20272
20452
|
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();
|
20273
20453
|
|
20274
20454
|
// symbols/triac_vert.ts
|
20275
20455
|
var rotatedSymbol21 = rotateSymbol(triac_horz_default);
|
20276
|
-
var
|
20456
|
+
var texts77 = rotatedSymbol21.primitives.filter(
|
20277
20457
|
(primitive) => primitive.type === "text"
|
20278
20458
|
);
|
20279
|
-
var ref60 =
|
20280
|
-
var val53 =
|
20459
|
+
var ref60 = texts77.find((text) => text.text === "{REF}");
|
20460
|
+
var val53 = texts77.find((text) => text.text === "{VAL}");
|
20281
20461
|
ref60.y = 0;
|
20282
20462
|
val53.y = 0;
|
20283
20463
|
var triac_vert_default = rotatedSymbol21;
|
@@ -20444,22 +20624,22 @@ var tunnel_diode_default = {
|
|
20444
20624
|
};
|
20445
20625
|
|
20446
20626
|
// symbols/tunnel_diode_horz.ts
|
20447
|
-
var { paths:
|
20627
|
+
var { paths: paths63, texts: texts78, bounds: bounds63, refblocks: refblocks63, circles: circles58 } = tunnel_diode_default;
|
20448
20628
|
var tunnel_diode_horz_default = defineSymbol({
|
20449
20629
|
primitives: [
|
20450
|
-
...Object.values(
|
20451
|
-
...Object.values(
|
20452
|
-
{ ...
|
20453
|
-
{ ...
|
20630
|
+
...Object.values(paths63),
|
20631
|
+
...Object.values(circles58),
|
20632
|
+
{ ...texts78.top1, anchor: "middle_bottom" },
|
20633
|
+
{ ...texts78.bottom1, anchor: "middle_top" }
|
20454
20634
|
],
|
20455
20635
|
ports: [
|
20456
|
-
{ ...
|
20636
|
+
{ ...refblocks63.left1, labels: ["1"] },
|
20457
20637
|
// TODO add more "standard" labels
|
20458
|
-
{ ...
|
20638
|
+
{ ...refblocks63.right1, labels: ["2"] }
|
20459
20639
|
// TODO add more "standard" labels
|
20460
20640
|
],
|
20461
|
-
size: { width:
|
20462
|
-
center: { x:
|
20641
|
+
size: { width: bounds63.width, height: bounds63.height },
|
20642
|
+
center: { x: bounds63.centerX, y: bounds63.centerY }
|
20463
20643
|
});
|
20464
20644
|
|
20465
20645
|
// symbols/tunnel_diode_vert.ts
|
@@ -20642,34 +20822,34 @@ var unijunction_transistor_default = {
|
|
20642
20822
|
};
|
20643
20823
|
|
20644
20824
|
// symbols/unijunction_transistor_horz.ts
|
20645
|
-
var { paths:
|
20825
|
+
var { paths: paths64, texts: texts79, bounds: bounds64, refblocks: refblocks64, circles: circles59 } = unijunction_transistor_default;
|
20646
20826
|
var unijunction_transistor_horz_default = defineSymbol({
|
20647
20827
|
primitives: [
|
20648
|
-
...Object.values(
|
20649
|
-
...Object.values(
|
20650
|
-
{ ...
|
20651
|
-
{ ...
|
20828
|
+
...Object.values(paths64),
|
20829
|
+
...Object.values(circles59),
|
20830
|
+
{ ...texts79.top1, anchor: "middle_left" },
|
20831
|
+
{ ...texts79.bottom1, anchor: "middle_right" }
|
20652
20832
|
],
|
20653
20833
|
ports: [
|
20654
|
-
{ ...
|
20834
|
+
{ ...refblocks64.top1, labels: ["1"] },
|
20655
20835
|
// TODO add more "standard" labels
|
20656
|
-
{ ...
|
20836
|
+
{ ...refblocks64.bottom1, labels: ["2"] },
|
20657
20837
|
// TODO add more "standard" labels
|
20658
|
-
{ ...
|
20838
|
+
{ ...refblocks64.left1, labels: ["3"] }
|
20659
20839
|
// TODO add more "standard" labels
|
20660
20840
|
],
|
20661
|
-
size: { width:
|
20662
|
-
center: { x:
|
20841
|
+
size: { width: bounds64.width, height: bounds64.height },
|
20842
|
+
center: { x: bounds64.centerX, y: bounds64.centerY }
|
20663
20843
|
});
|
20664
20844
|
|
20665
20845
|
// symbols/unijunction_transistor_vert.ts
|
20666
20846
|
var rotatedSymbol22 = rotateSymbol(unijunction_transistor_horz_default);
|
20667
|
-
var
|
20847
|
+
var texts80 = rotatedSymbol22.primitives.filter(
|
20668
20848
|
(primitive) => primitive.type === "text"
|
20669
20849
|
);
|
20670
|
-
var ref62 =
|
20850
|
+
var ref62 = texts80.find((text) => text.text === "{REF}");
|
20671
20851
|
ref62.y = 0.1;
|
20672
|
-
var val55 =
|
20852
|
+
var val55 = texts80.find((text) => text.text === "{VAL}");
|
20673
20853
|
val55.y = 0.1;
|
20674
20854
|
val55.x = -0.4;
|
20675
20855
|
var unijunction_transistor_vert_default = rotatedSymbol22;
|
@@ -20761,33 +20941,33 @@ var var_meter_default = {
|
|
20761
20941
|
};
|
20762
20942
|
|
20763
20943
|
// symbols/var_meter_horz.ts
|
20764
|
-
var { paths:
|
20944
|
+
var { paths: paths65, texts: texts81, bounds: bounds65, refblocks: refblocks65, circles: circles60 } = var_meter_default;
|
20765
20945
|
var var_meter_horz_default = defineSymbol({
|
20766
20946
|
primitives: [
|
20767
|
-
...Object.values(
|
20768
|
-
...Object.values(
|
20947
|
+
...Object.values(paths65),
|
20948
|
+
...Object.values(circles60),
|
20769
20949
|
{
|
20770
|
-
...
|
20950
|
+
...texts81.top1,
|
20771
20951
|
x: 0,
|
20772
20952
|
y: -0.3594553499999995,
|
20773
20953
|
anchor: "middle_top"
|
20774
20954
|
},
|
20775
20955
|
{
|
20776
|
-
...
|
20956
|
+
...texts81.bottom1,
|
20777
20957
|
x: 0,
|
20778
20958
|
y: 0.35,
|
20779
20959
|
anchor: "middle_bottom"
|
20780
20960
|
},
|
20781
|
-
{ ...
|
20961
|
+
{ ...texts81.left1, x: -0.02, y: 0.01, fontSize: 0.2, anchor: "center" }
|
20782
20962
|
],
|
20783
20963
|
ports: [
|
20784
|
-
{ ...
|
20964
|
+
{ ...refblocks65.left1, labels: ["1"] },
|
20785
20965
|
// TODO add more "standard" labels
|
20786
|
-
{ ...
|
20966
|
+
{ ...refblocks65.right1, labels: ["2"] }
|
20787
20967
|
// TODO add more "standard" labels
|
20788
20968
|
],
|
20789
|
-
size: { width:
|
20790
|
-
center: { x:
|
20969
|
+
size: { width: bounds65.width, height: bounds65.height },
|
20970
|
+
center: { x: bounds65.centerX, y: bounds65.centerY }
|
20791
20971
|
});
|
20792
20972
|
|
20793
20973
|
// symbols/var_meter_vert.ts
|
@@ -20940,22 +21120,22 @@ var varactor_diode_default = {
|
|
20940
21120
|
};
|
20941
21121
|
|
20942
21122
|
// symbols/varactor_diode_horz.ts
|
20943
|
-
var { paths:
|
21123
|
+
var { paths: paths66, texts: texts82, bounds: bounds66, refblocks: refblocks66, circles: circles61 } = varactor_diode_default;
|
20944
21124
|
var varactor_diode_horz_default = defineSymbol({
|
20945
21125
|
primitives: [
|
20946
|
-
...Object.values(
|
20947
|
-
...Object.values(
|
20948
|
-
{ ...
|
20949
|
-
{ ...
|
21126
|
+
...Object.values(paths66),
|
21127
|
+
...Object.values(circles61),
|
21128
|
+
{ ...texts82.top1, anchor: "middle_bottom" },
|
21129
|
+
{ ...texts82.bottom1, anchor: "middle_top" }
|
20950
21130
|
],
|
20951
21131
|
ports: [
|
20952
|
-
{ ...
|
21132
|
+
{ ...refblocks66.left1, labels: ["1"] },
|
20953
21133
|
// TODO add more "standard" labels
|
20954
|
-
{ ...
|
21134
|
+
{ ...refblocks66.right1, labels: ["2"] }
|
20955
21135
|
// TODO add more "standard" labels
|
20956
21136
|
],
|
20957
|
-
size: { width:
|
20958
|
-
center: { x:
|
21137
|
+
size: { width: bounds66.width, height: bounds66.height },
|
21138
|
+
center: { x: bounds66.centerX, y: bounds66.centerY }
|
20959
21139
|
});
|
20960
21140
|
|
20961
21141
|
// symbols/varactor_diode_vert.ts
|
@@ -21103,26 +21283,26 @@ var varistor_default = {
|
|
21103
21283
|
};
|
21104
21284
|
|
21105
21285
|
// symbols/varistor_horz.ts
|
21106
|
-
var { paths:
|
21286
|
+
var { paths: paths67, texts: texts83, bounds: bounds67, refblocks: refblocks67 } = varistor_default;
|
21107
21287
|
var varistor_horz_default = defineSymbol({
|
21108
21288
|
primitives: [
|
21109
|
-
...Object.values(
|
21110
|
-
{ ...
|
21111
|
-
{ ...
|
21289
|
+
...Object.values(paths67),
|
21290
|
+
{ ...texts83.top1, anchor: "middle_left" },
|
21291
|
+
{ ...texts83.bottom1, anchor: "middle_right" }
|
21112
21292
|
],
|
21113
21293
|
ports: [
|
21114
21294
|
{
|
21115
|
-
...
|
21295
|
+
...refblocks67.left1,
|
21116
21296
|
labels: ["1", "-"]
|
21117
21297
|
},
|
21118
21298
|
{
|
21119
|
-
...
|
21299
|
+
...refblocks67.right1,
|
21120
21300
|
labels: ["2", "+"]
|
21121
21301
|
}
|
21122
21302
|
],
|
21123
|
-
size: { width:
|
21303
|
+
size: { width: bounds67.width, height: bounds67.height },
|
21124
21304
|
//{ width: 1, height: 0.24 },
|
21125
|
-
center: { x:
|
21305
|
+
center: { x: bounds67.centerX, y: bounds67.centerY }
|
21126
21306
|
});
|
21127
21307
|
|
21128
21308
|
// symbols/varistor_vert.ts
|
@@ -21215,11 +21395,11 @@ var varmeter_default = {
|
|
21215
21395
|
};
|
21216
21396
|
|
21217
21397
|
// symbols/varmeter_horz.ts
|
21218
|
-
var { paths:
|
21398
|
+
var { paths: paths68, texts: texts84, bounds: bounds68, refblocks: refblocks68, circles: circles62 } = varmeter_default;
|
21219
21399
|
var varmeter_horz_default = defineSymbol({
|
21220
21400
|
primitives: [
|
21221
|
-
...Object.values(
|
21222
|
-
...Object.values(
|
21401
|
+
...Object.values(paths68),
|
21402
|
+
...Object.values(circles62),
|
21223
21403
|
{
|
21224
21404
|
type: "text",
|
21225
21405
|
text: "{REF}",
|
@@ -21234,16 +21414,16 @@ var varmeter_horz_default = defineSymbol({
|
|
21234
21414
|
y: 0.35,
|
21235
21415
|
anchor: "middle_bottom"
|
21236
21416
|
},
|
21237
|
-
{ ...
|
21417
|
+
{ ...texts84.left1, anchor: "center", y: 0.02, fontSize: 0.2 }
|
21238
21418
|
],
|
21239
21419
|
ports: [
|
21240
|
-
{ ...
|
21420
|
+
{ ...refblocks68.left1, labels: ["1"] },
|
21241
21421
|
// TODO add more "standard" labels
|
21242
|
-
{ ...
|
21422
|
+
{ ...refblocks68.right1, labels: ["2"] }
|
21243
21423
|
// TODO add more "standard" labels
|
21244
21424
|
],
|
21245
|
-
size: { width:
|
21246
|
-
center: { x:
|
21425
|
+
size: { width: bounds68.width, height: bounds68.height },
|
21426
|
+
center: { x: bounds68.centerX, y: bounds68.centerY }
|
21247
21427
|
});
|
21248
21428
|
|
21249
21429
|
// symbols/varmeter_vert.ts
|
@@ -21448,7 +21628,7 @@ var volt_meter_default = {
|
|
21448
21628
|
};
|
21449
21629
|
|
21450
21630
|
// symbols/volt_meter_horz.ts
|
21451
|
-
var { paths:
|
21631
|
+
var { paths: paths69, texts: texts85, bounds: bounds69, circles: circles63, refblocks: refblocks69 } = volt_meter_default;
|
21452
21632
|
var volt_meter_horz_default = modifySymbol(volt_meter_default).changeTextAnchor("{VAL}", "middle_top").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_bottom").build();
|
21453
21633
|
|
21454
21634
|
// symbols/volt_meter_vert.ts
|
@@ -21541,11 +21721,11 @@ var watt_hour_meter_default = {
|
|
21541
21721
|
};
|
21542
21722
|
|
21543
21723
|
// symbols/watt_hour_meter_horz.ts
|
21544
|
-
var { paths:
|
21724
|
+
var { paths: paths70, texts: texts86, bounds: bounds70, refblocks: refblocks70, circles: circles64 } = watt_hour_meter_default;
|
21545
21725
|
var watt_hour_meter_horz_default = defineSymbol({
|
21546
21726
|
primitives: [
|
21547
|
-
...Object.values(
|
21548
|
-
...Object.values(
|
21727
|
+
...Object.values(paths70),
|
21728
|
+
...Object.values(circles64),
|
21549
21729
|
{
|
21550
21730
|
type: "text",
|
21551
21731
|
text: "{REF}",
|
@@ -21560,16 +21740,16 @@ var watt_hour_meter_horz_default = defineSymbol({
|
|
21560
21740
|
y: 0.35,
|
21561
21741
|
anchor: "middle_bottom"
|
21562
21742
|
},
|
21563
|
-
{ ...
|
21743
|
+
{ ...texts86.left1, anchor: "center", y: 0.01, fontSize: 0.2 }
|
21564
21744
|
],
|
21565
21745
|
ports: [
|
21566
|
-
{ ...
|
21746
|
+
{ ...refblocks70.left1, labels: ["1"] },
|
21567
21747
|
// TODO add more "standard" labels
|
21568
|
-
{ ...
|
21748
|
+
{ ...refblocks70.right1, labels: ["2"] }
|
21569
21749
|
// TODO add more "standard" labels
|
21570
21750
|
],
|
21571
|
-
size: { width:
|
21572
|
-
center: { x:
|
21751
|
+
size: { width: bounds70.width, height: bounds70.height },
|
21752
|
+
center: { x: bounds70.centerX, y: bounds70.centerY }
|
21573
21753
|
});
|
21574
21754
|
|
21575
21755
|
// symbols/watt_hour_meter_vert.ts
|
@@ -21673,11 +21853,11 @@ var wattmeter_default = {
|
|
21673
21853
|
};
|
21674
21854
|
|
21675
21855
|
// symbols/wattmeter_horz.ts
|
21676
|
-
var { paths:
|
21856
|
+
var { paths: paths71, texts: texts87, bounds: bounds71, refblocks: refblocks71, circles: circles65 } = wattmeter_default;
|
21677
21857
|
var wattmeter_horz_default = defineSymbol({
|
21678
21858
|
primitives: [
|
21679
|
-
...Object.values(
|
21680
|
-
...Object.values(
|
21859
|
+
...Object.values(paths71),
|
21860
|
+
...Object.values(circles65),
|
21681
21861
|
{
|
21682
21862
|
type: "text",
|
21683
21863
|
text: "{REF}",
|
@@ -21692,16 +21872,16 @@ var wattmeter_horz_default = defineSymbol({
|
|
21692
21872
|
y: 0.35,
|
21693
21873
|
anchor: "middle_bottom"
|
21694
21874
|
},
|
21695
|
-
{ ...
|
21875
|
+
{ ...texts87.left1, anchor: "center", y: 0.01, fontSize: 0.3 }
|
21696
21876
|
],
|
21697
21877
|
ports: [
|
21698
|
-
{ ...
|
21878
|
+
{ ...refblocks71.left1, labels: ["1"] },
|
21699
21879
|
// TODO add more "standard" labels
|
21700
|
-
{ ...
|
21880
|
+
{ ...refblocks71.right1, labels: ["2"] }
|
21701
21881
|
// TODO add more "standard" labels
|
21702
21882
|
],
|
21703
|
-
size: { width:
|
21704
|
-
center: { x:
|
21883
|
+
size: { width: bounds71.width, height: bounds71.height },
|
21884
|
+
center: { x: bounds71.centerX, y: bounds71.centerY }
|
21705
21885
|
});
|
21706
21886
|
|
21707
21887
|
// symbols/wattmeter_vert.ts
|
@@ -21865,22 +22045,22 @@ var zener_diode_default = {
|
|
21865
22045
|
};
|
21866
22046
|
|
21867
22047
|
// symbols/zener_diode_horz.ts
|
21868
|
-
var { paths:
|
22048
|
+
var { paths: paths72, texts: texts88, bounds: bounds72, refblocks: refblocks72, circles: circles66 } = zener_diode_default;
|
21869
22049
|
var zener_diode_horz_default = defineSymbol({
|
21870
22050
|
primitives: [
|
21871
|
-
...Object.values(
|
21872
|
-
...Object.values(
|
21873
|
-
{ ...
|
21874
|
-
{ ...
|
22051
|
+
...Object.values(paths72),
|
22052
|
+
...Object.values(circles66),
|
22053
|
+
{ ...texts88.top1, anchor: "middle_bottom" },
|
22054
|
+
{ ...texts88.bottom1, anchor: "middle_top" }
|
21875
22055
|
],
|
21876
22056
|
ports: [
|
21877
|
-
{ ...
|
22057
|
+
{ ...refblocks72.left1, labels: ["1"] },
|
21878
22058
|
// TODO add more "standard" labels
|
21879
|
-
{ ...
|
22059
|
+
{ ...refblocks72.right1, labels: ["2"] }
|
21880
22060
|
// TODO add more "standard" labels
|
21881
22061
|
],
|
21882
|
-
size: { width:
|
21883
|
-
center: { x:
|
22062
|
+
size: { width: bounds72.width, height: bounds72.height },
|
22063
|
+
center: { x: bounds72.centerX, y: bounds72.centerY }
|
21884
22064
|
});
|
21885
22065
|
|
21886
22066
|
// symbols/zener_diode_vert.ts
|
@@ -21915,6 +22095,10 @@ var symbols_index_default = {
|
|
21915
22095
|
"boxresistor_small_right": boxresistor_small_right_default,
|
21916
22096
|
"boxresistor_small_up": boxresistor_small_up_default,
|
21917
22097
|
"boxresistor_up": boxresistor_up_default,
|
22098
|
+
"bridged_ground_down": bridged_ground_down_default,
|
22099
|
+
"bridged_ground_left": bridged_ground_left_default,
|
22100
|
+
"bridged_ground_right": bridged_ground_right_default,
|
22101
|
+
"bridged_ground_up": bridged_ground_up_default,
|
21918
22102
|
"capacitor_down": capacitor_down_default,
|
21919
22103
|
"capacitor_left": capacitor_left_default,
|
21920
22104
|
"capacitor_polarized_down": capacitor_polarized_down_default,
|