schematic-symbols 0.0.40 → 0.0.42
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 +13 -1
- package/dist/index.js +477 -171
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/symbols/dc_ammeter_horz.ts +32 -0
- package/symbols/dc_ammeter_vert.ts +51 -0
- package/symbols/power_factor_meter_horz.ts +42 -0
- package/symbols/power_factor_meter_vert.ts +16 -0
    
        package/dist/index.js
    CHANGED
    
    | @@ -726,6 +726,167 @@ var capacitor_horz_default = defineSymbol({ | |
| 726 726 | 
             
            // symbols/capacitor_vert.ts
         | 
| 727 727 | 
             
            var capacitor_vert_default = rotateSymbol(capacitor_horz_default);
         | 
| 728 728 |  | 
| 729 | 
            +
            // assets/generated/dc_ammeter.json
         | 
| 730 | 
            +
            var dc_ammeter_default = {
         | 
| 731 | 
            +
              paths: {
         | 
| 732 | 
            +
                path11: {
         | 
| 733 | 
            +
                  type: "path",
         | 
| 734 | 
            +
                  points: [
         | 
| 735 | 
            +
                    {
         | 
| 736 | 
            +
                      x: -0.5307178,
         | 
| 737 | 
            +
                      y: 0
         | 
| 738 | 
            +
                    },
         | 
| 739 | 
            +
                    {
         | 
| 740 | 
            +
                      x: -0.3042887999999997,
         | 
| 741 | 
            +
                      y: 0
         | 
| 742 | 
            +
                    }
         | 
| 743 | 
            +
                  ],
         | 
| 744 | 
            +
                  color: "primary",
         | 
| 745 | 
            +
                  fill: false
         | 
| 746 | 
            +
                },
         | 
| 747 | 
            +
                path12: {
         | 
| 748 | 
            +
                  type: "path",
         | 
| 749 | 
            +
                  points: [
         | 
| 750 | 
            +
                    {
         | 
| 751 | 
            +
                      x: 0.2899773000000003,
         | 
| 752 | 
            +
                      y: 0
         | 
| 753 | 
            +
                    },
         | 
| 754 | 
            +
                    {
         | 
| 755 | 
            +
                      x: 0.5307178000000001,
         | 
| 756 | 
            +
                      y: 0
         | 
| 757 | 
            +
                    }
         | 
| 758 | 
            +
                  ],
         | 
| 759 | 
            +
                  color: "primary",
         | 
| 760 | 
            +
                  fill: false
         | 
| 761 | 
            +
                },
         | 
| 762 | 
            +
                path2: {
         | 
| 763 | 
            +
                  type: "path",
         | 
| 764 | 
            +
                  points: [
         | 
| 765 | 
            +
                    {
         | 
| 766 | 
            +
                      x: -0.12447409999999959,
         | 
| 767 | 
            +
                      y: 0.0852510999999998
         | 
| 768 | 
            +
                    },
         | 
| 769 | 
            +
                    {
         | 
| 770 | 
            +
                      x: 0.11626639999999999,
         | 
| 771 | 
            +
                      y: 0.0852510999999998
         | 
| 772 | 
            +
                    }
         | 
| 773 | 
            +
                  ],
         | 
| 774 | 
            +
                  color: "primary",
         | 
| 775 | 
            +
                  fill: false
         | 
| 776 | 
            +
                }
         | 
| 777 | 
            +
              },
         | 
| 778 | 
            +
              texts: {
         | 
| 779 | 
            +
                top1: {
         | 
| 780 | 
            +
                  type: "text",
         | 
| 781 | 
            +
                  text: "{REF}",
         | 
| 782 | 
            +
                  x: -0.17652089999999898,
         | 
| 783 | 
            +
                  y: -0.4472267999999995
         | 
| 784 | 
            +
                },
         | 
| 785 | 
            +
                bottom1: {
         | 
| 786 | 
            +
                  type: "text",
         | 
| 787 | 
            +
                  text: "{VAL}",
         | 
| 788 | 
            +
                  x: -0.009849199999999891,
         | 
| 789 | 
            +
                  y: 0.3470985000000004
         | 
| 790 | 
            +
                },
         | 
| 791 | 
            +
                left1: {
         | 
| 792 | 
            +
                  type: "text",
         | 
| 793 | 
            +
                  text: "A",
         | 
| 794 | 
            +
                  x: 0,
         | 
| 795 | 
            +
                  y: -0.1
         | 
| 796 | 
            +
                }
         | 
| 797 | 
            +
              },
         | 
| 798 | 
            +
              refblocks: {
         | 
| 799 | 
            +
                left1: {
         | 
| 800 | 
            +
                  x: -0.5446330999999993,
         | 
| 801 | 
            +
                  y: 0
         | 
| 802 | 
            +
                },
         | 
| 803 | 
            +
                right1: {
         | 
| 804 | 
            +
                  x: 0.5381638000000004,
         | 
| 805 | 
            +
                  y: 0
         | 
| 806 | 
            +
                }
         | 
| 807 | 
            +
              },
         | 
| 808 | 
            +
              bounds: {
         | 
| 809 | 
            +
                minX: -0.5307178,
         | 
| 810 | 
            +
                maxX: 0.5307178000000001,
         | 
| 811 | 
            +
                minY: -0.08525110000000002,
         | 
| 812 | 
            +
                maxY: 0.0852510999999998,
         | 
| 813 | 
            +
                width: 1.0614356000000003,
         | 
| 814 | 
            +
                height: 1,
         | 
| 815 | 
            +
                centerX: 5551115123125783e-32,
         | 
| 816 | 
            +
                centerY: -11102230246251565e-32
         | 
| 817 | 
            +
              },
         | 
| 818 | 
            +
              circles: {
         | 
| 819 | 
            +
                path1: {
         | 
| 820 | 
            +
                  type: "circle",
         | 
| 821 | 
            +
                  x: 0,
         | 
| 822 | 
            +
                  y: 0,
         | 
| 823 | 
            +
                  radius: 0.28854213,
         | 
| 824 | 
            +
                  color: "primary",
         | 
| 825 | 
            +
                  fill: false
         | 
| 826 | 
            +
                }
         | 
| 827 | 
            +
              }
         | 
| 828 | 
            +
            };
         | 
| 829 | 
            +
             | 
| 830 | 
            +
            // symbols/dc_ammeter_horz.ts
         | 
| 831 | 
            +
            var { paths: paths5, texts: texts4, bounds: bounds5, refblocks: refblocks5, circles: circles3 } = dc_ammeter_default;
         | 
| 832 | 
            +
            var dc_ammeter_horz_default = defineSymbol({
         | 
| 833 | 
            +
              primitives: [
         | 
| 834 | 
            +
                ...Object.values(paths5),
         | 
| 835 | 
            +
                ...Object.values(circles3),
         | 
| 836 | 
            +
                {
         | 
| 837 | 
            +
                  type: "text",
         | 
| 838 | 
            +
                  text: "{REF}",
         | 
| 839 | 
            +
                  x: 0,
         | 
| 840 | 
            +
                  y: -0.3594553499999995,
         | 
| 841 | 
            +
                  anchor: "middle_bottom"
         | 
| 842 | 
            +
                },
         | 
| 843 | 
            +
                {
         | 
| 844 | 
            +
                  type: "text",
         | 
| 845 | 
            +
                  text: "{VAL}",
         | 
| 846 | 
            +
                  x: 0,
         | 
| 847 | 
            +
                  y: 0.35,
         | 
| 848 | 
            +
                  anchor: "middle_top"
         | 
| 849 | 
            +
                },
         | 
| 850 | 
            +
                { ...texts4.left1, anchor: "center", fontSize: 0.3 }
         | 
| 851 | 
            +
              ],
         | 
| 852 | 
            +
              ports: [
         | 
| 853 | 
            +
                { ...refblocks5.left1, labels: ["1"] },
         | 
| 854 | 
            +
                // TODO add more "standard" labels
         | 
| 855 | 
            +
                { ...refblocks5.right1, labels: ["2"] }
         | 
| 856 | 
            +
                // TODO add more "standard" labels
         | 
| 857 | 
            +
              ],
         | 
| 858 | 
            +
              size: { width: bounds5.width, height: bounds5.height },
         | 
| 859 | 
            +
              center: { x: bounds5.centerX, y: bounds5.centerY }
         | 
| 860 | 
            +
            });
         | 
| 861 | 
            +
             | 
| 862 | 
            +
            // symbols/dc_ammeter_vert.ts
         | 
| 863 | 
            +
            function isPathPrimitive(value) {
         | 
| 864 | 
            +
              return typeof value === "object" && value !== null && value.type === "path" && Array.isArray(value.points) && typeof value.color === "string";
         | 
| 865 | 
            +
            }
         | 
| 866 | 
            +
            function isTextPrimitive(value) {
         | 
| 867 | 
            +
              return typeof value === "object" && value !== null && value.type === "text" && typeof value.text === "string" && typeof value.x === "number" && typeof value.y === "number" && typeof value.anchor === "string";
         | 
| 868 | 
            +
            }
         | 
| 869 | 
            +
            var { 6: letter2, 2: underline, ...rest2 } = dc_ammeter_horz_default.primitives;
         | 
| 870 | 
            +
            if (isPathPrimitive(underline)) {
         | 
| 871 | 
            +
              underline.points.map((p) => {
         | 
| 872 | 
            +
                p.y += 0.05;
         | 
| 873 | 
            +
              });
         | 
| 874 | 
            +
            }
         | 
| 875 | 
            +
            if (isTextPrimitive(letter2)) {
         | 
| 876 | 
            +
              letter2.y += 0.025;
         | 
| 877 | 
            +
            }
         | 
| 878 | 
            +
            function isPrimitive2(value) {
         | 
| 879 | 
            +
              return typeof value === "object";
         | 
| 880 | 
            +
            }
         | 
| 881 | 
            +
            var rotatedSymbol2 = rotateSymbol({
         | 
| 882 | 
            +
              ...dc_ammeter_horz_default,
         | 
| 883 | 
            +
              primitives: Object.values(rest2).filter(isPrimitive2)
         | 
| 884 | 
            +
            });
         | 
| 885 | 
            +
            var dc_ammeter_vert_default = {
         | 
| 886 | 
            +
              ...rotatedSymbol2,
         | 
| 887 | 
            +
              primitives: [...rotatedSymbol2.primitives, letter2, underline]
         | 
| 888 | 
            +
            };
         | 
| 889 | 
            +
             | 
| 729 890 | 
             
            // assets/generated/dc_voltmeter.json
         | 
| 730 891 | 
             
            var dc_voltmeter_default = {
         | 
| 731 892 | 
             
              paths: {
         | 
| @@ -841,11 +1002,11 @@ var dc_voltmeter_default = { | |
| 841 1002 | 
             
            };
         | 
| 842 1003 |  | 
| 843 1004 | 
             
            // symbols/dc_voltmeter_horz.ts
         | 
| 844 | 
            -
            var { paths:  | 
| 1005 | 
            +
            var { paths: paths6, texts: texts5, bounds: bounds6, refblocks: refblocks6, circles: circles4 } = dc_voltmeter_default;
         | 
| 845 1006 | 
             
            var dc_voltmeter_horz_default = defineSymbol({
         | 
| 846 1007 | 
             
              primitives: [
         | 
| 847 | 
            -
                ...Object.values( | 
| 848 | 
            -
                ...Object.values( | 
| 1008 | 
            +
                ...Object.values(paths6),
         | 
| 1009 | 
            +
                ...Object.values(circles4),
         | 
| 849 1010 | 
             
                {
         | 
| 850 1011 | 
             
                  type: "text",
         | 
| 851 1012 | 
             
                  text: "{REF}",
         | 
| @@ -862,27 +1023,27 @@ var dc_voltmeter_horz_default = defineSymbol({ | |
| 862 1023 | 
             
                }
         | 
| 863 1024 | 
             
              ],
         | 
| 864 1025 | 
             
              ports: [
         | 
| 865 | 
            -
                { ... | 
| 1026 | 
            +
                { ...refblocks6.left1, labels: ["1"] },
         | 
| 866 1027 | 
             
                // TODO add more "standard" labels
         | 
| 867 | 
            -
                { ... | 
| 1028 | 
            +
                { ...refblocks6.right1, labels: ["2"] }
         | 
| 868 1029 | 
             
                // TODO add more "standard" labels
         | 
| 869 1030 | 
             
              ],
         | 
| 870 | 
            -
              size: { width:  | 
| 871 | 
            -
              center: { x:  | 
| 1031 | 
            +
              size: { width: bounds6.width, height: bounds6.height },
         | 
| 1032 | 
            +
              center: { x: bounds6.centerX, y: bounds6.centerY }
         | 
| 872 1033 | 
             
            });
         | 
| 873 1034 |  | 
| 874 1035 | 
             
            // symbols/dc_voltmeter_vert.ts
         | 
| 875 | 
            -
            var { 2:  | 
| 876 | 
            -
            function  | 
| 1036 | 
            +
            var { 2: letter3, 3: underline2, ...rest3 } = dc_voltmeter_horz_default.primitives;
         | 
| 1037 | 
            +
            function isPrimitive3(value) {
         | 
| 877 1038 | 
             
              return typeof value === "object";
         | 
| 878 1039 | 
             
            }
         | 
| 879 | 
            -
            var  | 
| 1040 | 
            +
            var rotatedSymbol3 = rotateSymbol({
         | 
| 880 1041 | 
             
              ...dc_voltmeter_horz_default,
         | 
| 881 | 
            -
              primitives: Object.values( | 
| 1042 | 
            +
              primitives: Object.values(rest3).filter(isPrimitive3)
         | 
| 882 1043 | 
             
            });
         | 
| 883 1044 | 
             
            var dc_voltmeter_vert_default = {
         | 
| 884 | 
            -
              ... | 
| 885 | 
            -
              primitives: [... | 
| 1045 | 
            +
              ...rotatedSymbol3,
         | 
| 1046 | 
            +
              primitives: [...rotatedSymbol3.primitives, letter3, underline2]
         | 
| 886 1047 | 
             
            };
         | 
| 887 1048 |  | 
| 888 1049 | 
             
            // assets/generated/diode.json
         | 
| @@ -1016,21 +1177,21 @@ var diode_default = { | |
| 1016 1177 | 
             
            };
         | 
| 1017 1178 |  | 
| 1018 1179 | 
             
            // symbols/diode_horz.ts
         | 
| 1019 | 
            -
            var { paths:  | 
| 1180 | 
            +
            var { paths: paths7, texts: texts6, bounds: bounds7, refblocks: refblocks7 } = diode_default;
         | 
| 1020 1181 | 
             
            var diode_horz_default = defineSymbol({
         | 
| 1021 1182 | 
             
              primitives: [
         | 
| 1022 | 
            -
                ...Object.values( | 
| 1023 | 
            -
                { ... | 
| 1024 | 
            -
                { ... | 
| 1183 | 
            +
                ...Object.values(paths7),
         | 
| 1184 | 
            +
                { ...texts6.top1, anchor: "middle_bottom" },
         | 
| 1185 | 
            +
                { ...texts6.bottom1, anchor: "middle_top" }
         | 
| 1025 1186 | 
             
              ],
         | 
| 1026 1187 | 
             
              ports: [
         | 
| 1027 | 
            -
                { ... | 
| 1188 | 
            +
                { ...refblocks7.left1, labels: ["1"] },
         | 
| 1028 1189 | 
             
                // TODO add more "standard" labels
         | 
| 1029 | 
            -
                { ... | 
| 1190 | 
            +
                { ...refblocks7.right1, labels: ["2"] }
         | 
| 1030 1191 | 
             
                // TODO add more "standard" labels
         | 
| 1031 1192 | 
             
              ],
         | 
| 1032 | 
            -
              size: { width:  | 
| 1033 | 
            -
              center: { x:  | 
| 1193 | 
            +
              size: { width: bounds7.width, height: bounds7.height },
         | 
| 1194 | 
            +
              center: { x: bounds7.centerX, y: bounds7.centerY }
         | 
| 1034 1195 | 
             
            });
         | 
| 1035 1196 |  | 
| 1036 1197 | 
             
            // symbols/diode_vert.ts
         | 
| @@ -1123,11 +1284,11 @@ var fuse_default = { | |
| 1123 1284 | 
             
            };
         | 
| 1124 1285 |  | 
| 1125 1286 | 
             
            // symbols/fuse_horz.ts
         | 
| 1126 | 
            -
            var { paths:  | 
| 1287 | 
            +
            var { paths: paths8, texts: texts7, bounds: bounds8, refblocks: refblocks8 } = fuse_default;
         | 
| 1127 1288 | 
             
            var fuse_horz_default = defineSymbol({
         | 
| 1128 1289 | 
             
              primitives: [
         | 
| 1129 | 
            -
                ...Object.values( | 
| 1130 | 
            -
                { ... | 
| 1290 | 
            +
                ...Object.values(paths8),
         | 
| 1291 | 
            +
                { ...texts7.top1, anchor: "middle_bottom" },
         | 
| 1131 1292 | 
             
                {
         | 
| 1132 1293 | 
             
                  type: "text",
         | 
| 1133 1294 | 
             
                  text: "{VAL}",
         | 
| @@ -1137,13 +1298,13 @@ var fuse_horz_default = defineSymbol({ | |
| 1137 1298 | 
             
                }
         | 
| 1138 1299 | 
             
              ],
         | 
| 1139 1300 | 
             
              ports: [
         | 
| 1140 | 
            -
                { ... | 
| 1301 | 
            +
                { ...refblocks8.left1, labels: ["1"] },
         | 
| 1141 1302 | 
             
                // TODO add more "standard" labels
         | 
| 1142 | 
            -
                { ... | 
| 1303 | 
            +
                { ...refblocks8.right1, labels: ["2"] }
         | 
| 1143 1304 | 
             
                // TODO add more "standard" labels
         | 
| 1144 1305 | 
             
              ],
         | 
| 1145 | 
            -
              size: { width:  | 
| 1146 | 
            -
              center: { x:  | 
| 1306 | 
            +
              size: { width: bounds8.width, height: bounds8.height },
         | 
| 1307 | 
            +
              center: { x: bounds8.centerX, y: bounds8.centerY }
         | 
| 1147 1308 | 
             
            });
         | 
| 1148 1309 |  | 
| 1149 1310 | 
             
            // symbols/fuse_vert.ts
         | 
| @@ -1364,19 +1525,19 @@ var led_default = { | |
| 1364 1525 | 
             
            };
         | 
| 1365 1526 |  | 
| 1366 1527 | 
             
            // symbols/led_horz.ts
         | 
| 1367 | 
            -
            var { paths:  | 
| 1528 | 
            +
            var { paths: paths9, texts: texts8, bounds: bounds9, refblocks: refblocks9 } = led_default;
         | 
| 1368 1529 | 
             
            var led_horz_default = defineSymbol({
         | 
| 1369 1530 | 
             
              primitives: [
         | 
| 1370 | 
            -
                ...Object.values( | 
| 1371 | 
            -
                { ... | 
| 1372 | 
            -
                { ... | 
| 1531 | 
            +
                ...Object.values(paths9),
         | 
| 1532 | 
            +
                { ...texts8.bottom1, anchor: "middle_right" },
         | 
| 1533 | 
            +
                { ...texts8.right1, anchor: "middle_left" }
         | 
| 1373 1534 | 
             
              ],
         | 
| 1374 1535 | 
             
              ports: [
         | 
| 1375 | 
            -
                { ... | 
| 1376 | 
            -
                { ... | 
| 1536 | 
            +
                { ...refblocks9.left1, labels: ["1", "anode", "pos"] },
         | 
| 1537 | 
            +
                { ...refblocks9.right1, labels: ["2", "cathode", "neg"] }
         | 
| 1377 1538 | 
             
              ],
         | 
| 1378 | 
            -
              size: { width:  | 
| 1379 | 
            -
              center: { x:  | 
| 1539 | 
            +
              size: { width: bounds9.width, height: bounds9.height },
         | 
| 1540 | 
            +
              center: { x: bounds9.centerX, y: bounds9.centerY + 0.1 }
         | 
| 1380 1541 | 
             
            });
         | 
| 1381 1542 |  | 
| 1382 1543 | 
             
            // symbols/led_vert.ts
         | 
| @@ -1665,23 +1826,23 @@ var mosfet_depletion_normally_on_default = { | |
| 1665 1826 | 
             
            };
         | 
| 1666 1827 |  | 
| 1667 1828 | 
             
            // symbols/mosfet_depletion_normally_on_horz.ts
         | 
| 1668 | 
            -
            var { paths:  | 
| 1829 | 
            +
            var { paths: paths10, texts: texts9, bounds: bounds10, refblocks: refblocks10 } = mosfet_depletion_normally_on_default;
         | 
| 1669 1830 | 
             
            var mosfet_depletion_normally_on_horz_default = defineSymbol({
         | 
| 1670 1831 | 
             
              primitives: [
         | 
| 1671 | 
            -
                ...Object.values( | 
| 1672 | 
            -
                { ... | 
| 1673 | 
            -
                { ... | 
| 1832 | 
            +
                ...Object.values(paths10),
         | 
| 1833 | 
            +
                { ...texts9.right1, anchor: "middle_left" },
         | 
| 1834 | 
            +
                { ...texts9.right2, anchor: "middle_left" }
         | 
| 1674 1835 | 
             
              ],
         | 
| 1675 1836 | 
             
              ports: [
         | 
| 1676 | 
            -
                { ... | 
| 1837 | 
            +
                { ...refblocks10.top1, labels: ["1"] },
         | 
| 1677 1838 | 
             
                // TODO add more "standard" labels
         | 
| 1678 | 
            -
                { ... | 
| 1839 | 
            +
                { ...refblocks10.bottom1, labels: ["2"] },
         | 
| 1679 1840 | 
             
                // TODO add more "standard" labels
         | 
| 1680 | 
            -
                { ... | 
| 1841 | 
            +
                { ...refblocks10.left1, labels: ["3"] }
         | 
| 1681 1842 | 
             
                // TODO add more "standard" labels
         | 
| 1682 1843 | 
             
              ],
         | 
| 1683 | 
            -
              size: { width:  | 
| 1684 | 
            -
              center: { x:  | 
| 1844 | 
            +
              size: { width: bounds10.width + 0.4, height: bounds10.height },
         | 
| 1845 | 
            +
              center: { x: bounds10.centerX + 0.2, y: bounds10.centerY }
         | 
| 1685 1846 | 
             
            });
         | 
| 1686 1847 |  | 
| 1687 1848 | 
             
            // symbols/mosfet_depletion_normally_on_vert.ts
         | 
| @@ -1923,11 +2084,11 @@ var photodiode_default = { | |
| 1923 2084 | 
             
            };
         | 
| 1924 2085 |  | 
| 1925 2086 | 
             
            // symbols/photodiode_horz.ts
         | 
| 1926 | 
            -
            var { paths:  | 
| 2087 | 
            +
            var { paths: paths11, texts: texts10, bounds: bounds11, refblocks: refblocks11, circles: circles5 } = photodiode_default;
         | 
| 1927 2088 | 
             
            var photodiode_horz_default = defineSymbol({
         | 
| 1928 2089 | 
             
              primitives: [
         | 
| 1929 | 
            -
                ...Object.values( | 
| 1930 | 
            -
                ...Object.values( | 
| 2090 | 
            +
                ...Object.values(paths11),
         | 
| 2091 | 
            +
                ...Object.values(circles5),
         | 
| 1931 2092 | 
             
                {
         | 
| 1932 2093 | 
             
                  type: "text",
         | 
| 1933 2094 | 
             
                  text: "{REF}",
         | 
| @@ -1944,22 +2105,22 @@ var photodiode_horz_default = defineSymbol({ | |
| 1944 2105 | 
             
                }
         | 
| 1945 2106 | 
             
              ],
         | 
| 1946 2107 | 
             
              ports: [
         | 
| 1947 | 
            -
                { ... | 
| 2108 | 
            +
                { ...refblocks11.left1, labels: ["1"] },
         | 
| 1948 2109 | 
             
                // TODO add more "standard" labels
         | 
| 1949 | 
            -
                { ... | 
| 2110 | 
            +
                { ...refblocks11.right1, labels: ["2"] }
         | 
| 1950 2111 | 
             
                // TODO add more "standard" labels
         | 
| 1951 2112 | 
             
              ],
         | 
| 1952 | 
            -
              size: { width:  | 
| 1953 | 
            -
              center: { x:  | 
| 2113 | 
            +
              size: { width: bounds11.width, height: bounds11.height },
         | 
| 2114 | 
            +
              center: { x: bounds11.centerX, y: bounds11.centerY }
         | 
| 1954 2115 | 
             
            });
         | 
| 1955 2116 |  | 
| 1956 2117 | 
             
            // symbols/photodiode_vert.ts
         | 
| 1957 | 
            -
            var  | 
| 1958 | 
            -
            var  | 
| 1959 | 
            -
            var ref4 =  | 
| 2118 | 
            +
            var rotatedSymbol4 = rotateSymbol(photodiode_horz_default);
         | 
| 2119 | 
            +
            var texts11 = rotatedSymbol4.primitives.filter((p) => p.type === "text");
         | 
| 2120 | 
            +
            var ref4 = texts11.find((t) => t.text === "{REF}");
         | 
| 1960 2121 | 
             
            ref4.y = 0;
         | 
| 1961 2122 | 
             
            ref4.anchor = "middle_left";
         | 
| 1962 | 
            -
            var photodiode_vert_default =  | 
| 2123 | 
            +
            var photodiode_vert_default = rotatedSymbol4;
         | 
| 1963 2124 |  | 
| 1964 2125 | 
             
            // assets/generated/potentiometer.json
         | 
| 1965 2126 | 
             
            var potentiometer_default = {
         | 
| @@ -2097,21 +2258,21 @@ var potentiometer_default = { | |
| 2097 2258 | 
             
            };
         | 
| 2098 2259 |  | 
| 2099 2260 | 
             
            // symbols/potentiometer_horz.ts
         | 
| 2100 | 
            -
            var { paths:  | 
| 2261 | 
            +
            var { paths: paths12, texts: texts12, bounds: bounds12, refblocks: refblocks12 } = potentiometer_default;
         | 
| 2101 2262 | 
             
            var potentiometer_horz_default = defineSymbol({
         | 
| 2102 2263 | 
             
              primitives: [
         | 
| 2103 | 
            -
                ...Object.values( | 
| 2104 | 
            -
                { ... | 
| 2105 | 
            -
                { ... | 
| 2264 | 
            +
                ...Object.values(paths12),
         | 
| 2265 | 
            +
                { ...texts12.bottom1, y: 0.35, anchor: "middle_top" },
         | 
| 2266 | 
            +
                { ...texts12.right1, anchor: "middle_left" }
         | 
| 2106 2267 | 
             
              ],
         | 
| 2107 2268 | 
             
              ports: [
         | 
| 2108 | 
            -
                { ... | 
| 2269 | 
            +
                { ...refblocks12.left1, labels: ["1"] },
         | 
| 2109 2270 | 
             
                // TODO add more "standard" labels
         | 
| 2110 | 
            -
                { ... | 
| 2271 | 
            +
                { ...refblocks12.right1, labels: ["2"] }
         | 
| 2111 2272 | 
             
                // TODO add more "standard" labels
         | 
| 2112 2273 | 
             
              ],
         | 
| 2113 | 
            -
              size: { width:  | 
| 2114 | 
            -
              center: { x:  | 
| 2274 | 
            +
              size: { width: bounds12.width + 0.05, height: bounds12.height },
         | 
| 2275 | 
            +
              center: { x: bounds12.centerX, y: bounds12.centerY }
         | 
| 2115 2276 | 
             
            });
         | 
| 2116 2277 |  | 
| 2117 2278 | 
             
            // symbols/potentiometer_vert.ts
         | 
| @@ -2273,26 +2434,167 @@ var potentiometer2_default = { | |
| 2273 2434 | 
             
            };
         | 
| 2274 2435 |  | 
| 2275 2436 | 
             
            // symbols/potentiometer2_horz.ts
         | 
| 2276 | 
            -
            var { paths:  | 
| 2437 | 
            +
            var { paths: paths13, texts: texts13, bounds: bounds13, refblocks: refblocks13 } = potentiometer2_default;
         | 
| 2277 2438 | 
             
            var potentiometer2_horz_default = defineSymbol({
         | 
| 2278 2439 | 
             
              primitives: [
         | 
| 2279 | 
            -
                ...Object.values( | 
| 2280 | 
            -
                { ... | 
| 2281 | 
            -
                { ... | 
| 2440 | 
            +
                ...Object.values(paths13),
         | 
| 2441 | 
            +
                { ...texts13.bottom1, anchor: "middle_right" },
         | 
| 2442 | 
            +
                { ...texts13.top1, anchor: "middle_left" }
         | 
| 2282 2443 | 
             
              ],
         | 
| 2283 2444 | 
             
              ports: [
         | 
| 2284 | 
            -
                { ... | 
| 2445 | 
            +
                { ...refblocks13.left1, labels: ["1"] },
         | 
| 2285 2446 | 
             
                // TODO add more "standard" labels
         | 
| 2286 | 
            -
                { ... | 
| 2447 | 
            +
                { ...refblocks13.right1, labels: ["2"] }
         | 
| 2287 2448 | 
             
                // TODO add more "standard" labels
         | 
| 2288 2449 | 
             
              ],
         | 
| 2289 | 
            -
              size: { width:  | 
| 2290 | 
            -
              center: { x:  | 
| 2450 | 
            +
              size: { width: bounds13.width, height: bounds13.height },
         | 
| 2451 | 
            +
              center: { x: bounds13.centerX, y: bounds13.centerY }
         | 
| 2291 2452 | 
             
            });
         | 
| 2292 2453 |  | 
| 2293 2454 | 
             
            // symbols/potentiometer2_vert.ts
         | 
| 2294 2455 | 
             
            var potentiometer2_vert_default = rotateSymbol(potentiometer2_horz_default);
         | 
| 2295 2456 |  | 
| 2457 | 
            +
            // assets/generated/power_factor_meter.json
         | 
| 2458 | 
            +
            var power_factor_meter_default = {
         | 
| 2459 | 
            +
              paths: {
         | 
| 2460 | 
            +
                path11: {
         | 
| 2461 | 
            +
                  type: "path",
         | 
| 2462 | 
            +
                  points: [
         | 
| 2463 | 
            +
                    {
         | 
| 2464 | 
            +
                      x: -0.5307178,
         | 
| 2465 | 
            +
                      y: 0
         | 
| 2466 | 
            +
                    },
         | 
| 2467 | 
            +
                    {
         | 
| 2468 | 
            +
                      x: -0.3042887999999997,
         | 
| 2469 | 
            +
                      y: 0
         | 
| 2470 | 
            +
                    }
         | 
| 2471 | 
            +
                  ],
         | 
| 2472 | 
            +
                  color: "primary",
         | 
| 2473 | 
            +
                  fill: false
         | 
| 2474 | 
            +
                },
         | 
| 2475 | 
            +
                path12: {
         | 
| 2476 | 
            +
                  type: "path",
         | 
| 2477 | 
            +
                  points: [
         | 
| 2478 | 
            +
                    {
         | 
| 2479 | 
            +
                      x: 0.2899773000000003,
         | 
| 2480 | 
            +
                      y: 0
         | 
| 2481 | 
            +
                    },
         | 
| 2482 | 
            +
                    {
         | 
| 2483 | 
            +
                      x: 0.5307178000000001,
         | 
| 2484 | 
            +
                      y: 0
         | 
| 2485 | 
            +
                    }
         | 
| 2486 | 
            +
                  ],
         | 
| 2487 | 
            +
                  color: "primary",
         | 
| 2488 | 
            +
                  fill: false
         | 
| 2489 | 
            +
                }
         | 
| 2490 | 
            +
              },
         | 
| 2491 | 
            +
              texts: {
         | 
| 2492 | 
            +
                top1: {
         | 
| 2493 | 
            +
                  type: "text",
         | 
| 2494 | 
            +
                  text: "{REF}",
         | 
| 2495 | 
            +
                  x: -0.16538809999999904,
         | 
| 2496 | 
            +
                  y: -0.36705149999999964
         | 
| 2497 | 
            +
                },
         | 
| 2498 | 
            +
                bottom1: {
         | 
| 2499 | 
            +
                  type: "text",
         | 
| 2500 | 
            +
                  text: "{VAL}",
         | 
| 2501 | 
            +
                  x: -0.0066096999999991635,
         | 
| 2502 | 
            +
                  y: 0.42330070000000064
         | 
| 2503 | 
            +
                },
         | 
| 2504 | 
            +
                left1: {
         | 
| 2505 | 
            +
                  type: "text",
         | 
| 2506 | 
            +
                  text: "COS \u03C6",
         | 
| 2507 | 
            +
                  x: -0.14859499999999937,
         | 
| 2508 | 
            +
                  y: 0.014279000000000375
         | 
| 2509 | 
            +
                }
         | 
| 2510 | 
            +
              },
         | 
| 2511 | 
            +
              refblocks: {
         | 
| 2512 | 
            +
                left1: {
         | 
| 2513 | 
            +
                  x: -0.5446330999999993,
         | 
| 2514 | 
            +
                  y: 852800000000542e-18
         | 
| 2515 | 
            +
                },
         | 
| 2516 | 
            +
                right1: {
         | 
| 2517 | 
            +
                  x: 0.5381638000000004,
         | 
| 2518 | 
            +
                  y: -14359999999924433e-20
         | 
| 2519 | 
            +
                }
         | 
| 2520 | 
            +
              },
         | 
| 2521 | 
            +
              bounds: {
         | 
| 2522 | 
            +
                minX: -0.5307178,
         | 
| 2523 | 
            +
                maxX: 0.5307178000000001,
         | 
| 2524 | 
            +
                minY: 0,
         | 
| 2525 | 
            +
                maxY: 0,
         | 
| 2526 | 
            +
                width: 1.0614356000000003,
         | 
| 2527 | 
            +
                height: 1,
         | 
| 2528 | 
            +
                centerX: 5551115123125783e-32,
         | 
| 2529 | 
            +
                centerY: 0
         | 
| 2530 | 
            +
              },
         | 
| 2531 | 
            +
              circles: {
         | 
| 2532 | 
            +
                path1: {
         | 
| 2533 | 
            +
                  type: "circle",
         | 
| 2534 | 
            +
                  x: -0.006997299999999651,
         | 
| 2535 | 
            +
                  y: -0.007128299999999532,
         | 
| 2536 | 
            +
                  radius: 0.28854213,
         | 
| 2537 | 
            +
                  color: "primary",
         | 
| 2538 | 
            +
                  fill: false
         | 
| 2539 | 
            +
                }
         | 
| 2540 | 
            +
              }
         | 
| 2541 | 
            +
            };
         | 
| 2542 | 
            +
             | 
| 2543 | 
            +
            // symbols/power_factor_meter_horz.ts
         | 
| 2544 | 
            +
            var { paths: paths14, texts: texts14, bounds: bounds14, refblocks: refblocks14, circles: circles6 } = power_factor_meter_default;
         | 
| 2545 | 
            +
            var power_factor_meter_horz_default = defineSymbol({
         | 
| 2546 | 
            +
              primitives: [
         | 
| 2547 | 
            +
                ...Object.values(paths14),
         | 
| 2548 | 
            +
                ...Object.values(circles6),
         | 
| 2549 | 
            +
                // { ...texts.top1, anchor: "middle_left" },
         | 
| 2550 | 
            +
                {
         | 
| 2551 | 
            +
                  type: "text",
         | 
| 2552 | 
            +
                  text: "{REF}",
         | 
| 2553 | 
            +
                  x: -0.15,
         | 
| 2554 | 
            +
                  y: -0.42330070000000064,
         | 
| 2555 | 
            +
                  anchor: "middle_left"
         | 
| 2556 | 
            +
                },
         | 
| 2557 | 
            +
                // { ...texts.bottom1, anchor: "middle_left" },
         | 
| 2558 | 
            +
                {
         | 
| 2559 | 
            +
                  type: "text",
         | 
| 2560 | 
            +
                  text: "{VAL}",
         | 
| 2561 | 
            +
                  x: -0.15,
         | 
| 2562 | 
            +
                  y: 0.42330070000000064,
         | 
| 2563 | 
            +
                  anchor: "middle_left"
         | 
| 2564 | 
            +
                },
         | 
| 2565 | 
            +
                // { ...texts.left1, anchor: "middle_left" },
         | 
| 2566 | 
            +
                {
         | 
| 2567 | 
            +
                  type: "text",
         | 
| 2568 | 
            +
                  text: "COS \u03C6",
         | 
| 2569 | 
            +
                  x: -0.14,
         | 
| 2570 | 
            +
                  y: 0.014279000000000375,
         | 
| 2571 | 
            +
                  anchor: "middle-left"
         | 
| 2572 | 
            +
                }
         | 
| 2573 | 
            +
              ],
         | 
| 2574 | 
            +
              ports: [
         | 
| 2575 | 
            +
                { ...refblocks14.left1, labels: ["1"] },
         | 
| 2576 | 
            +
                // TODO add more "standard" labels
         | 
| 2577 | 
            +
                { ...refblocks14.right1, labels: ["2"] }
         | 
| 2578 | 
            +
                // TODO add more "standard" labels
         | 
| 2579 | 
            +
              ],
         | 
| 2580 | 
            +
              size: { width: bounds14.width, height: bounds14.height },
         | 
| 2581 | 
            +
              center: { x: bounds14.centerX, y: bounds14.centerY }
         | 
| 2582 | 
            +
            });
         | 
| 2583 | 
            +
             | 
| 2584 | 
            +
            // symbols/power_factor_meter_vert.ts
         | 
| 2585 | 
            +
            var rotatedSymbol5 = rotateSymbol(power_factor_meter_horz_default);
         | 
| 2586 | 
            +
            var texts15 = rotatedSymbol5.primitives.filter((p) => p.type === "text");
         | 
| 2587 | 
            +
            var ref5 = texts15.find((t) => t.text === "{REF}");
         | 
| 2588 | 
            +
            var val4 = texts15.find((t) => t.text === "{VAL}");
         | 
| 2589 | 
            +
            var text_cos = texts15.find((t) => t.text === "COS \u03C6");
         | 
| 2590 | 
            +
            ref5.x = 0.35;
         | 
| 2591 | 
            +
            ref5.y = 0;
         | 
| 2592 | 
            +
            val4.x = -0.6;
         | 
| 2593 | 
            +
            val4.y = 0;
         | 
| 2594 | 
            +
            text_cos.x = -0.1;
         | 
| 2595 | 
            +
            text_cos.y = 0;
         | 
| 2596 | 
            +
            var power_factor_meter_vert_default = rotatedSymbol5;
         | 
| 2597 | 
            +
             | 
| 2296 2598 | 
             
            // assets/generated/push_button_normally_closed_momentary.json
         | 
| 2297 2599 | 
             
            var push_button_normally_closed_momentary_default = {
         | 
| 2298 2600 | 
             
              paths: {
         | 
| @@ -2394,37 +2696,37 @@ var push_button_normally_closed_momentary_default = { | |
| 2394 2696 | 
             
            };
         | 
| 2395 2697 |  | 
| 2396 2698 | 
             
            // symbols/push_button_normally_closed_momentary_horz.ts
         | 
| 2397 | 
            -
            var { paths:  | 
| 2699 | 
            +
            var { paths: paths15, texts: texts16, bounds: bounds15, refblocks: refblocks15 } = push_button_normally_closed_momentary_default;
         | 
| 2398 2700 | 
             
            var push_button_normally_closed_momentary_horz_default = defineSymbol({
         | 
| 2399 2701 | 
             
              primitives: [
         | 
| 2400 | 
            -
                ...Object.values( | 
| 2401 | 
            -
                { ... | 
| 2402 | 
            -
                { ... | 
| 2702 | 
            +
                ...Object.values(paths15),
         | 
| 2703 | 
            +
                { ...texts16.top1, anchor: "middle_bottom" },
         | 
| 2704 | 
            +
                { ...texts16.bottom1, anchor: "middle_top" }
         | 
| 2403 2705 | 
             
              ],
         | 
| 2404 2706 | 
             
              ports: [
         | 
| 2405 | 
            -
                { ... | 
| 2707 | 
            +
                { ...refblocks15.left1, labels: ["1"] },
         | 
| 2406 2708 | 
             
                // TODO add more "standard" labels
         | 
| 2407 | 
            -
                { ... | 
| 2709 | 
            +
                { ...refblocks15.right1, labels: ["2"] }
         | 
| 2408 2710 | 
             
                // TODO add more "standard" labels
         | 
| 2409 2711 | 
             
              ],
         | 
| 2410 | 
            -
              size: { width:  | 
| 2411 | 
            -
              center: { x:  | 
| 2712 | 
            +
              size: { width: bounds15.width, height: bounds15.height },
         | 
| 2713 | 
            +
              center: { x: bounds15.centerX, y: bounds15.centerY }
         | 
| 2412 2714 | 
             
            });
         | 
| 2413 2715 |  | 
| 2414 2716 | 
             
            // symbols/push_button_normally_closed_momentary_vert.ts
         | 
| 2415 2717 | 
             
            var rotated5 = rotateSymbol(push_button_normally_closed_momentary_horz_default);
         | 
| 2416 | 
            -
            var  | 
| 2718 | 
            +
            var ref6 = rotated5.primitives.find(
         | 
| 2417 2719 | 
             
              (p) => p.type === "text" && p.text === "{REF}"
         | 
| 2418 2720 | 
             
            );
         | 
| 2419 | 
            -
            var  | 
| 2721 | 
            +
            var val5 = rotated5.primitives.find(
         | 
| 2420 2722 | 
             
              (p) => p.type === "text" && p.text === "{VAL}"
         | 
| 2421 2723 | 
             
            );
         | 
| 2422 | 
            -
             | 
| 2423 | 
            -
             | 
| 2424 | 
            -
             | 
| 2425 | 
            -
             | 
| 2426 | 
            -
             | 
| 2427 | 
            -
             | 
| 2724 | 
            +
            ref6.anchor = "middle_left";
         | 
| 2725 | 
            +
            val5.anchor = "middle_right";
         | 
| 2726 | 
            +
            ref6.x = ref6.x - 0.03;
         | 
| 2727 | 
            +
            ref6.y = ref6.y;
         | 
| 2728 | 
            +
            val5.x = val5.x;
         | 
| 2729 | 
            +
            val5.y = 0;
         | 
| 2428 2730 | 
             
            var push_button_normally_closed_momentary_vert_default = rotated5;
         | 
| 2429 2731 |  | 
| 2430 2732 | 
             
            // assets/generated/push_button_normally_open_momentary.json
         | 
| @@ -2528,37 +2830,37 @@ var push_button_normally_open_momentary_default = { | |
| 2528 2830 | 
             
            };
         | 
| 2529 2831 |  | 
| 2530 2832 | 
             
            // symbols/push_button_normally_open_momentary_horz.ts
         | 
| 2531 | 
            -
            var { paths:  | 
| 2833 | 
            +
            var { paths: paths16, texts: texts17, bounds: bounds16, refblocks: refblocks16 } = push_button_normally_open_momentary_default;
         | 
| 2532 2834 | 
             
            var push_button_normally_open_momentary_horz_default = defineSymbol({
         | 
| 2533 2835 | 
             
              primitives: [
         | 
| 2534 | 
            -
                ...Object.values( | 
| 2535 | 
            -
                { ... | 
| 2536 | 
            -
                { ... | 
| 2836 | 
            +
                ...Object.values(paths16),
         | 
| 2837 | 
            +
                { ...texts17.top1, anchor: "middle_bottom" },
         | 
| 2838 | 
            +
                { ...texts17.bottom1, anchor: "middle_top" }
         | 
| 2537 2839 | 
             
              ],
         | 
| 2538 2840 | 
             
              ports: [
         | 
| 2539 | 
            -
                { ... | 
| 2841 | 
            +
                { ...refblocks16.left1, labels: ["1"] },
         | 
| 2540 2842 | 
             
                // TODO add more "standard" labels
         | 
| 2541 | 
            -
                { ... | 
| 2843 | 
            +
                { ...refblocks16.right1, labels: ["2"] }
         | 
| 2542 2844 | 
             
                // TODO add more "standard" labels
         | 
| 2543 2845 | 
             
              ],
         | 
| 2544 | 
            -
              size: { width:  | 
| 2545 | 
            -
              center: { x:  | 
| 2846 | 
            +
              size: { width: bounds16.width, height: bounds16.height },
         | 
| 2847 | 
            +
              center: { x: bounds16.centerX, y: bounds16.centerY }
         | 
| 2546 2848 | 
             
            });
         | 
| 2547 2849 |  | 
| 2548 2850 | 
             
            // symbols/push_button_normally_open_momentary_vert.ts
         | 
| 2549 2851 | 
             
            var rotated6 = rotateSymbol(push_button_normally_open_momentary_horz_default);
         | 
| 2550 | 
            -
            var  | 
| 2852 | 
            +
            var ref7 = rotated6.primitives.find(
         | 
| 2551 2853 | 
             
              (p) => p.type === "text" && p.text === "{REF}"
         | 
| 2552 2854 | 
             
            );
         | 
| 2553 | 
            -
            var  | 
| 2855 | 
            +
            var val6 = rotated6.primitives.find(
         | 
| 2554 2856 | 
             
              (p) => p.type === "text" && p.text === "{VAL}"
         | 
| 2555 2857 | 
             
            );
         | 
| 2556 | 
            -
             | 
| 2557 | 
            -
             | 
| 2558 | 
            -
             | 
| 2559 | 
            -
             | 
| 2560 | 
            -
             | 
| 2561 | 
            -
             | 
| 2858 | 
            +
            ref7.anchor = "middle_left";
         | 
| 2859 | 
            +
            val6.anchor = "middle_right";
         | 
| 2860 | 
            +
            ref7.x = ref7.x + 0.1;
         | 
| 2861 | 
            +
            ref7.y = ref7.y;
         | 
| 2862 | 
            +
            val6.x = val6.x;
         | 
| 2863 | 
            +
            val6.y = 0;
         | 
| 2562 2864 | 
             
            var push_button_normally_open_momentary_vert_default = rotated6;
         | 
| 2563 2865 |  | 
| 2564 2866 | 
             
            // assets/generated/schottky_diode.json
         | 
| @@ -2753,34 +3055,34 @@ var schottky_diode_default = { | |
| 2753 3055 | 
             
            };
         | 
| 2754 3056 |  | 
| 2755 3057 | 
             
            // symbols/schottky_diode_horz.ts
         | 
| 2756 | 
            -
            var { paths:  | 
| 3058 | 
            +
            var { paths: paths17, texts: texts18, bounds: bounds17, refblocks: refblocks17, circles: circles7 } = schottky_diode_default;
         | 
| 2757 3059 | 
             
            var schottky_diode_horz_default = defineSymbol({
         | 
| 2758 3060 | 
             
              primitives: [
         | 
| 2759 | 
            -
                ...Object.values( | 
| 2760 | 
            -
                ...Object.values( | 
| 2761 | 
            -
                { ... | 
| 2762 | 
            -
                { ... | 
| 3061 | 
            +
                ...Object.values(paths17),
         | 
| 3062 | 
            +
                ...Object.values(circles7),
         | 
| 3063 | 
            +
                { ...texts18.top1, anchor: "middle_bottom" },
         | 
| 3064 | 
            +
                { ...texts18.bottom1, anchor: "middle_top" }
         | 
| 2763 3065 | 
             
              ],
         | 
| 2764 3066 | 
             
              ports: [
         | 
| 2765 | 
            -
                { ... | 
| 3067 | 
            +
                { ...refblocks17.left1, labels: ["1"] },
         | 
| 2766 3068 | 
             
                // TODO add more "standard" labels
         | 
| 2767 | 
            -
                { ... | 
| 3069 | 
            +
                { ...refblocks17.right1, labels: ["2"] }
         | 
| 2768 3070 | 
             
                // TODO add more "standard" labels
         | 
| 2769 3071 | 
             
              ],
         | 
| 2770 | 
            -
              size: { width:  | 
| 2771 | 
            -
              center: { x:  | 
| 3072 | 
            +
              size: { width: bounds17.width, height: bounds17.height },
         | 
| 3073 | 
            +
              center: { x: bounds17.centerX, y: bounds17.centerY }
         | 
| 2772 3074 | 
             
            });
         | 
| 2773 3075 |  | 
| 2774 3076 | 
             
            // symbols/schottky_diode_vert.ts
         | 
| 2775 3077 | 
             
            var rotated7 = rotateSymbol(schottky_diode_horz_default);
         | 
| 2776 | 
            -
            var  | 
| 3078 | 
            +
            var ref8 = rotated7.primitives.find(
         | 
| 2777 3079 | 
             
              (p) => p.type === "text" && p.text === "{REF}"
         | 
| 2778 3080 | 
             
            );
         | 
| 2779 | 
            -
            var  | 
| 3081 | 
            +
            var val7 = rotated7.primitives.find(
         | 
| 2780 3082 | 
             
              (p) => p.type === "text" && p.text === "{VAL}"
         | 
| 2781 3083 | 
             
            );
         | 
| 2782 | 
            -
             | 
| 2783 | 
            -
             | 
| 3084 | 
            +
            ref8.anchor = "middle_left";
         | 
| 3085 | 
            +
            val7.anchor = "middle_right";
         | 
| 2784 3086 | 
             
            var schottky_diode_vert_default = rotated7;
         | 
| 2785 3087 |  | 
| 2786 3088 | 
             
            // assets/generated/tunnel_diode.json
         | 
| @@ -2945,34 +3247,34 @@ var tunnel_diode_default = { | |
| 2945 3247 | 
             
            };
         | 
| 2946 3248 |  | 
| 2947 3249 | 
             
            // symbols/tunnel_diode_horz.ts
         | 
| 2948 | 
            -
            var { paths:  | 
| 3250 | 
            +
            var { paths: paths18, texts: texts19, bounds: bounds18, refblocks: refblocks18, circles: circles8 } = tunnel_diode_default;
         | 
| 2949 3251 | 
             
            var tunnel_diode_horz_default = defineSymbol({
         | 
| 2950 3252 | 
             
              primitives: [
         | 
| 2951 | 
            -
                ...Object.values( | 
| 2952 | 
            -
                ...Object.values( | 
| 2953 | 
            -
                { ... | 
| 2954 | 
            -
                { ... | 
| 3253 | 
            +
                ...Object.values(paths18),
         | 
| 3254 | 
            +
                ...Object.values(circles8),
         | 
| 3255 | 
            +
                { ...texts19.top1, anchor: "middle_bottom" },
         | 
| 3256 | 
            +
                { ...texts19.bottom1, anchor: "middle_top" }
         | 
| 2955 3257 | 
             
              ],
         | 
| 2956 3258 | 
             
              ports: [
         | 
| 2957 | 
            -
                { ... | 
| 3259 | 
            +
                { ...refblocks18.left1, labels: ["1"] },
         | 
| 2958 3260 | 
             
                // TODO add more "standard" labels
         | 
| 2959 | 
            -
                { ... | 
| 3261 | 
            +
                { ...refblocks18.right1, labels: ["2"] }
         | 
| 2960 3262 | 
             
                // TODO add more "standard" labels
         | 
| 2961 3263 | 
             
              ],
         | 
| 2962 | 
            -
              size: { width:  | 
| 2963 | 
            -
              center: { x:  | 
| 3264 | 
            +
              size: { width: bounds18.width, height: bounds18.height },
         | 
| 3265 | 
            +
              center: { x: bounds18.centerX, y: bounds18.centerY }
         | 
| 2964 3266 | 
             
            });
         | 
| 2965 3267 |  | 
| 2966 3268 | 
             
            // symbols/tunnel_diode_vert.ts
         | 
| 2967 3269 | 
             
            var rotated8 = rotateSymbol(tunnel_diode_horz_default);
         | 
| 2968 | 
            -
            var  | 
| 3270 | 
            +
            var ref9 = rotated8.primitives.find(
         | 
| 2969 3271 | 
             
              (p) => p.type === "text" && p.text === "{REF}"
         | 
| 2970 3272 | 
             
            );
         | 
| 2971 | 
            -
            var  | 
| 3273 | 
            +
            var val8 = rotated8.primitives.find(
         | 
| 2972 3274 | 
             
              (p) => p.type === "text" && p.text === "{VAL}"
         | 
| 2973 3275 | 
             
            );
         | 
| 2974 | 
            -
             | 
| 2975 | 
            -
             | 
| 3276 | 
            +
            ref9.anchor = "middle_left";
         | 
| 3277 | 
            +
            val8.anchor = "middle_right";
         | 
| 2976 3278 | 
             
            var tunnel_diode_vert_default = rotated8;
         | 
| 2977 3279 |  | 
| 2978 3280 | 
             
            // assets/generated/varactor_diode.json
         | 
| @@ -3122,34 +3424,34 @@ var varactor_diode_default = { | |
| 3122 3424 | 
             
            };
         | 
| 3123 3425 |  | 
| 3124 3426 | 
             
            // symbols/varactor_diode_horz.ts
         | 
| 3125 | 
            -
            var { paths:  | 
| 3427 | 
            +
            var { paths: paths19, texts: texts20, bounds: bounds19, refblocks: refblocks19, circles: circles9 } = varactor_diode_default;
         | 
| 3126 3428 | 
             
            var varactor_diode_horz_default = defineSymbol({
         | 
| 3127 3429 | 
             
              primitives: [
         | 
| 3128 | 
            -
                ...Object.values( | 
| 3129 | 
            -
                ...Object.values( | 
| 3130 | 
            -
                { ... | 
| 3131 | 
            -
                { ... | 
| 3430 | 
            +
                ...Object.values(paths19),
         | 
| 3431 | 
            +
                ...Object.values(circles9),
         | 
| 3432 | 
            +
                { ...texts20.top1, anchor: "middle_bottom" },
         | 
| 3433 | 
            +
                { ...texts20.bottom1, anchor: "middle_top" }
         | 
| 3132 3434 | 
             
              ],
         | 
| 3133 3435 | 
             
              ports: [
         | 
| 3134 | 
            -
                { ... | 
| 3436 | 
            +
                { ...refblocks19.left1, labels: ["1"] },
         | 
| 3135 3437 | 
             
                // TODO add more "standard" labels
         | 
| 3136 | 
            -
                { ... | 
| 3438 | 
            +
                { ...refblocks19.right1, labels: ["2"] }
         | 
| 3137 3439 | 
             
                // TODO add more "standard" labels
         | 
| 3138 3440 | 
             
              ],
         | 
| 3139 | 
            -
              size: { width:  | 
| 3140 | 
            -
              center: { x:  | 
| 3441 | 
            +
              size: { width: bounds19.width, height: bounds19.height },
         | 
| 3442 | 
            +
              center: { x: bounds19.centerX, y: bounds19.centerY }
         | 
| 3141 3443 | 
             
            });
         | 
| 3142 3444 |  | 
| 3143 3445 | 
             
            // symbols/varactor_diode_vert.ts
         | 
| 3144 3446 | 
             
            var rotated9 = rotateSymbol(varactor_diode_horz_default);
         | 
| 3145 | 
            -
            var  | 
| 3447 | 
            +
            var ref10 = rotated9.primitives.find(
         | 
| 3146 3448 | 
             
              (p) => p.type === "text" && p.text === "{REF}"
         | 
| 3147 3449 | 
             
            );
         | 
| 3148 | 
            -
            var  | 
| 3450 | 
            +
            var val9 = rotated9.primitives.find(
         | 
| 3149 3451 | 
             
              (p) => p.type === "text" && p.text === "{VAL}"
         | 
| 3150 3452 | 
             
            );
         | 
| 3151 | 
            -
             | 
| 3152 | 
            -
             | 
| 3453 | 
            +
            ref10.anchor = "middle_left";
         | 
| 3454 | 
            +
            val9.anchor = "middle_right";
         | 
| 3153 3455 | 
             
            var varactor_diode_vert_default = rotated9;
         | 
| 3154 3456 |  | 
| 3155 3457 | 
             
            // assets/generated/varistor.json
         | 
| @@ -3284,26 +3586,26 @@ var varistor_default = { | |
| 3284 3586 | 
             
            };
         | 
| 3285 3587 |  | 
| 3286 3588 | 
             
            // symbols/varistor_horz.ts
         | 
| 3287 | 
            -
            var { paths:  | 
| 3589 | 
            +
            var { paths: paths20, texts: texts21, bounds: bounds20, refblocks: refblocks20 } = varistor_default;
         | 
| 3288 3590 | 
             
            var varistor_horz_default = defineSymbol({
         | 
| 3289 3591 | 
             
              primitives: [
         | 
| 3290 | 
            -
                ...Object.values( | 
| 3291 | 
            -
                { ... | 
| 3292 | 
            -
                { ... | 
| 3592 | 
            +
                ...Object.values(paths20),
         | 
| 3593 | 
            +
                { ...texts21.top1, anchor: "middle_left" },
         | 
| 3594 | 
            +
                { ...texts21.bottom1, anchor: "middle_right" }
         | 
| 3293 3595 | 
             
              ],
         | 
| 3294 3596 | 
             
              ports: [
         | 
| 3295 3597 | 
             
                {
         | 
| 3296 | 
            -
                  ... | 
| 3598 | 
            +
                  ...refblocks20.left1,
         | 
| 3297 3599 | 
             
                  labels: ["1", "-"]
         | 
| 3298 3600 | 
             
                },
         | 
| 3299 3601 | 
             
                {
         | 
| 3300 | 
            -
                  ... | 
| 3602 | 
            +
                  ...refblocks20.right1,
         | 
| 3301 3603 | 
             
                  labels: ["2", "+"]
         | 
| 3302 3604 | 
             
                }
         | 
| 3303 3605 | 
             
              ],
         | 
| 3304 | 
            -
              size: { width:  | 
| 3606 | 
            +
              size: { width: bounds20.width, height: bounds20.height },
         | 
| 3305 3607 | 
             
              //{ width: 1, height: 0.24 },
         | 
| 3306 | 
            -
              center: { x:  | 
| 3608 | 
            +
              center: { x: bounds20.centerX, y: bounds20.centerY }
         | 
| 3307 3609 | 
             
            });
         | 
| 3308 3610 |  | 
| 3309 3611 | 
             
            // symbols/varistor_vert.ts
         | 
| @@ -3409,11 +3711,11 @@ var volt_meter_default = { | |
| 3409 3711 | 
             
            };
         | 
| 3410 3712 |  | 
| 3411 3713 | 
             
            // symbols/volt_meter_horz.ts
         | 
| 3412 | 
            -
            var { paths:  | 
| 3714 | 
            +
            var { paths: paths21, texts: texts22, bounds: bounds21, circles: circles10, refblocks: refblocks21 } = volt_meter_default;
         | 
| 3413 3715 | 
             
            var volt_meter_horz_default = defineSymbol({
         | 
| 3414 3716 | 
             
              primitives: [
         | 
| 3415 | 
            -
                ...Object.values( | 
| 3416 | 
            -
                ...Object.values( | 
| 3717 | 
            +
                ...Object.values(paths21),
         | 
| 3718 | 
            +
                ...Object.values(circles10),
         | 
| 3417 3719 | 
             
                {
         | 
| 3418 3720 | 
             
                  type: "text",
         | 
| 3419 3721 | 
             
                  text: "{REF}",
         | 
| @@ -3430,13 +3732,13 @@ var volt_meter_horz_default = defineSymbol({ | |
| 3430 3732 | 
             
                }
         | 
| 3431 3733 | 
             
              ],
         | 
| 3432 3734 | 
             
              ports: [
         | 
| 3433 | 
            -
                { ... | 
| 3735 | 
            +
                { ...refblocks21.left1, labels: ["1"] },
         | 
| 3434 3736 | 
             
                // TODO add more "standard" labels
         | 
| 3435 | 
            -
                { ... | 
| 3737 | 
            +
                { ...refblocks21.right1, labels: ["2"] }
         | 
| 3436 3738 | 
             
                // TODO add more "standard" labels
         | 
| 3437 3739 | 
             
              ],
         | 
| 3438 | 
            -
              size: { width:  | 
| 3439 | 
            -
              center: { x:  | 
| 3740 | 
            +
              size: { width: bounds21.width, height: bounds21.height },
         | 
| 3741 | 
            +
              center: { x: bounds21.centerX, y: bounds21.centerY }
         | 
| 3440 3742 | 
             
            });
         | 
| 3441 3743 |  | 
| 3442 3744 | 
             
            // symbols/volt_meter_vert.ts
         | 
| @@ -3589,34 +3891,34 @@ var zener_diode_default = { | |
| 3589 3891 | 
             
            };
         | 
| 3590 3892 |  | 
| 3591 3893 | 
             
            // symbols/zener_diode_horz.ts
         | 
| 3592 | 
            -
            var { paths:  | 
| 3894 | 
            +
            var { paths: paths22, texts: texts23, bounds: bounds22, refblocks: refblocks22, circles: circles11 } = zener_diode_default;
         | 
| 3593 3895 | 
             
            var zener_diode_horz_default = defineSymbol({
         | 
| 3594 3896 | 
             
              primitives: [
         | 
| 3595 | 
            -
                ...Object.values( | 
| 3596 | 
            -
                ...Object.values( | 
| 3597 | 
            -
                { ... | 
| 3598 | 
            -
                { ... | 
| 3897 | 
            +
                ...Object.values(paths22),
         | 
| 3898 | 
            +
                ...Object.values(circles11),
         | 
| 3899 | 
            +
                { ...texts23.top1, anchor: "middle_bottom" },
         | 
| 3900 | 
            +
                { ...texts23.bottom1, anchor: "middle_top" }
         | 
| 3599 3901 | 
             
              ],
         | 
| 3600 3902 | 
             
              ports: [
         | 
| 3601 | 
            -
                { ... | 
| 3903 | 
            +
                { ...refblocks22.left1, labels: ["1"] },
         | 
| 3602 3904 | 
             
                // TODO add more "standard" labels
         | 
| 3603 | 
            -
                { ... | 
| 3905 | 
            +
                { ...refblocks22.right1, labels: ["2"] }
         | 
| 3604 3906 | 
             
                // TODO add more "standard" labels
         | 
| 3605 3907 | 
             
              ],
         | 
| 3606 | 
            -
              size: { width:  | 
| 3607 | 
            -
              center: { x:  | 
| 3908 | 
            +
              size: { width: bounds22.width, height: bounds22.height },
         | 
| 3909 | 
            +
              center: { x: bounds22.centerX, y: bounds22.centerY }
         | 
| 3608 3910 | 
             
            });
         | 
| 3609 3911 |  | 
| 3610 3912 | 
             
            // symbols/zener_diode_vert.ts
         | 
| 3611 3913 | 
             
            var rotated10 = rotateSymbol(zener_diode_horz_default);
         | 
| 3612 | 
            -
            var  | 
| 3914 | 
            +
            var ref11 = rotated10.primitives.find(
         | 
| 3613 3915 | 
             
              (p) => p.type === "text" && p.text === "{REF}"
         | 
| 3614 3916 | 
             
            );
         | 
| 3615 | 
            -
            var  | 
| 3917 | 
            +
            var val10 = rotated10.primitives.find(
         | 
| 3616 3918 | 
             
              (p) => p.type === "text" && p.text === "{VAL}"
         | 
| 3617 3919 | 
             
            );
         | 
| 3618 | 
            -
             | 
| 3619 | 
            -
             | 
| 3920 | 
            +
            ref11.anchor = "middle_left";
         | 
| 3921 | 
            +
            val10.anchor = "middle_right";
         | 
| 3620 3922 | 
             
            var zener_diode_vert_default = rotated10;
         | 
| 3621 3923 |  | 
| 3622 3924 | 
             
            // generated/symbols-index.ts
         | 
| @@ -3629,6 +3931,8 @@ var symbols_index_default = { | |
| 3629 3931 | 
             
              "boxresistor_vert": boxresistor_vert_default,
         | 
| 3630 3932 | 
             
              "capacitor_horz": capacitor_horz_default,
         | 
| 3631 3933 | 
             
              "capacitor_vert": capacitor_vert_default,
         | 
| 3934 | 
            +
              "dc_ammeter_horz": dc_ammeter_horz_default,
         | 
| 3935 | 
            +
              "dc_ammeter_vert": dc_ammeter_vert_default,
         | 
| 3632 3936 | 
             
              "dc_voltmeter_horz": dc_voltmeter_horz_default,
         | 
| 3633 3937 | 
             
              "dc_voltmeter_vert": dc_voltmeter_vert_default,
         | 
| 3634 3938 | 
             
              "diode_horz": diode_horz_default,
         | 
| @@ -3645,6 +3949,8 @@ var symbols_index_default = { | |
| 3645 3949 | 
             
              "potentiometer_vert": potentiometer_vert_default,
         | 
| 3646 3950 | 
             
              "potentiometer2_horz": potentiometer2_horz_default,
         | 
| 3647 3951 | 
             
              "potentiometer2_vert": potentiometer2_vert_default,
         | 
| 3952 | 
            +
              "power_factor_meter_horz": power_factor_meter_horz_default,
         | 
| 3953 | 
            +
              "power_factor_meter_vert": power_factor_meter_vert_default,
         | 
| 3648 3954 | 
             
              "push_button_normally_closed_momentary_horz": push_button_normally_closed_momentary_horz_default,
         | 
| 3649 3955 | 
             
              "push_button_normally_closed_momentary_vert": push_button_normally_closed_momentary_vert_default,
         | 
| 3650 3956 | 
             
              "push_button_normally_open_momentary_horz": push_button_normally_open_momentary_horz_default,
         |