schematic-symbols 0.0.25 → 0.0.26

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.js CHANGED
@@ -1060,6 +1060,269 @@ ref2.x = val2.x;
1060
1060
  val2.y += 0.15;
1061
1061
  var mosfet_depletion_normally_on_vert_default = rotated2;
1062
1062
 
1063
+ // assets/generated/photodiode.json
1064
+ var photodiode_default = {
1065
+ paths: {
1066
+ path11: {
1067
+ type: "path",
1068
+ points: [
1069
+ {
1070
+ x: -0.5307178000000009,
1071
+ y: 0.15879225000000008
1072
+ },
1073
+ {
1074
+ x: -0.15214840000000018,
1075
+ y: 0.1614152499999999
1076
+ }
1077
+ ],
1078
+ color: "primary",
1079
+ fill: false
1080
+ },
1081
+ path40: {
1082
+ type: "path",
1083
+ points: [
1084
+ {
1085
+ x: 0.12898409999999938,
1086
+ y: 0.14773104999999975
1087
+ },
1088
+ {
1089
+ x: -0.13559890000000085,
1090
+ y: 0.28002274999999943
1091
+ }
1092
+ ],
1093
+ color: "primary",
1094
+ fill: false
1095
+ },
1096
+ path41: {
1097
+ type: "path",
1098
+ points: [
1099
+ {
1100
+ x: -0.13559890000000085,
1101
+ y: 0.015439350000000074
1102
+ },
1103
+ {
1104
+ x: 0.12898409999999938,
1105
+ y: 0.14773104999999975
1106
+ }
1107
+ ],
1108
+ color: "primary",
1109
+ fill: false
1110
+ },
1111
+ path42: {
1112
+ type: "path",
1113
+ points: [
1114
+ {
1115
+ x: -0.13559890000000085,
1116
+ y: 0.2800227500000001
1117
+ },
1118
+ {
1119
+ x: -0.13559890000000085,
1120
+ y: 0.015439350000000074
1121
+ }
1122
+ ],
1123
+ color: "primary",
1124
+ fill: false
1125
+ },
1126
+ path43: {
1127
+ type: "path",
1128
+ points: [
1129
+ {
1130
+ x: 0.12898409999999938,
1131
+ y: 0.015439350000000074
1132
+ },
1133
+ {
1134
+ x: 0.12898409999999938,
1135
+ y: 0.2800227500000001
1136
+ }
1137
+ ],
1138
+ color: "primary",
1139
+ fill: false
1140
+ },
1141
+ path12: {
1142
+ type: "path",
1143
+ points: [
1144
+ {
1145
+ x: 0.13259069999999995,
1146
+ y: 0.14829984999999968
1147
+ },
1148
+ {
1149
+ x: 0.5307178000000006,
1150
+ y: 0.1587922499999994
1151
+ }
1152
+ ],
1153
+ color: "primary",
1154
+ fill: false
1155
+ },
1156
+ "path25-0": {
1157
+ type: "path",
1158
+ points: [
1159
+ {
1160
+ x: 0.19516320000000031,
1161
+ y: -0.22938755000000044
1162
+ },
1163
+ {
1164
+ x: 0.15939019999999982,
1165
+ y: -0.13729605000000022
1166
+ },
1167
+ {
1168
+ x: 0.2571001999999991,
1169
+ y: -0.1526013500000003
1170
+ }
1171
+ ],
1172
+ color: "primary",
1173
+ fill: true
1174
+ },
1175
+ "path78-6": {
1176
+ type: "path",
1177
+ points: [
1178
+ {
1179
+ x: 0.32731219999999994,
1180
+ y: -0.2800227500000003
1181
+ },
1182
+ {
1183
+ x: 0.3161811999999997,
1184
+ y: -0.2700010500000003
1185
+ },
1186
+ {
1187
+ x: 0.20345820000000003,
1188
+ y: -0.1685088500000005
1189
+ },
1190
+ {
1191
+ x: 0.2024082000000007,
1192
+ y: -0.16810885000000053
1193
+ }
1194
+ ],
1195
+ color: "primary",
1196
+ fill: false
1197
+ },
1198
+ "path25-0-9": {
1199
+ type: "path",
1200
+ points: [
1201
+ {
1202
+ x: 0.3425051999999993,
1203
+ y: -0.20294964999999987
1204
+ },
1205
+ {
1206
+ x: 0.306732199999999,
1207
+ y: -0.11085814999999966
1208
+ },
1209
+ {
1210
+ x: 0.4044417999999992,
1211
+ y: -0.12616344999999973
1212
+ }
1213
+ ],
1214
+ color: "primary",
1215
+ fill: true
1216
+ },
1217
+ "path78-6-5": {
1218
+ type: "path",
1219
+ points: [
1220
+ {
1221
+ x: 0.4746538,
1222
+ y: -0.25358484999999975
1223
+ },
1224
+ {
1225
+ x: 0.4635227999999998,
1226
+ y: -0.24356314999999973
1227
+ },
1228
+ {
1229
+ x: 0.3507997999999999,
1230
+ y: -0.14207094999999992
1231
+ },
1232
+ {
1233
+ x: 0.34974980000000055,
1234
+ y: -0.14167095000000018
1235
+ }
1236
+ ],
1237
+ color: "primary",
1238
+ fill: false
1239
+ }
1240
+ },
1241
+ texts: {
1242
+ top1: {
1243
+ type: "text",
1244
+ text: "{REF}",
1245
+ x: -0.17652089999999987,
1246
+ y: -0.20318344999999938
1247
+ },
1248
+ bottom1: {
1249
+ type: "text",
1250
+ text: "{VAL}",
1251
+ x: -0.00984920000000078,
1252
+ y: 0.5911418500000005
1253
+ }
1254
+ },
1255
+ refblocks: {
1256
+ left1: {
1257
+ x: -0.5446331000000002,
1258
+ y: 0.15964505000000062
1259
+ },
1260
+ right1: {
1261
+ x: 0.5381637999999995,
1262
+ y: 0.15864865000000083
1263
+ }
1264
+ },
1265
+ bounds: {
1266
+ minX: -0.5307178000000009,
1267
+ maxX: 0.5307178000000006,
1268
+ minY: -0.2800227500000003,
1269
+ maxY: 0.2800227500000001,
1270
+ width: 1.0614356000000016,
1271
+ height: 1,
1272
+ centerX: -16653345369377348e-32,
1273
+ centerY: -11102230246251565e-32
1274
+ },
1275
+ circles: {
1276
+ path1: {
1277
+ type: "circle",
1278
+ x: -0.006997300000000539,
1279
+ y: 0.15166395000000055,
1280
+ radius: 0.28854213,
1281
+ color: "primary",
1282
+ fill: false
1283
+ }
1284
+ }
1285
+ };
1286
+
1287
+ // symbols/photodiode_horz.ts
1288
+ var { paths: paths6, texts: texts6, bounds: bounds6, refblocks: refblocks6, circles } = photodiode_default;
1289
+ var photodiode_horz_default = defineSymbol({
1290
+ primitives: [
1291
+ ...Object.values(paths6),
1292
+ ...Object.values(circles),
1293
+ {
1294
+ type: "text",
1295
+ text: "{REF}",
1296
+ x: -0.15,
1297
+ y: -0.20318344999999938,
1298
+ anchor: "middle_right"
1299
+ },
1300
+ {
1301
+ type: "text",
1302
+ text: "{VAL}",
1303
+ x: -0.00984920000000078,
1304
+ y: 0.5,
1305
+ anchor: "middle_top"
1306
+ }
1307
+ ],
1308
+ ports: [
1309
+ { ...refblocks6.left1, labels: ["1"] },
1310
+ // TODO add more "standard" labels
1311
+ { ...refblocks6.right1, labels: ["2"] }
1312
+ // TODO add more "standard" labels
1313
+ ],
1314
+ size: { width: bounds6.width, height: bounds6.height },
1315
+ center: { x: bounds6.centerX, y: bounds6.centerY }
1316
+ });
1317
+
1318
+ // symbols/photodiode_vert.ts
1319
+ var rotatedSymbol = rotateSymbol(photodiode_horz_default);
1320
+ var texts7 = rotatedSymbol.primitives.filter((p) => p.type === "text");
1321
+ var ref3 = texts7.find((t) => t.text === "{REF}");
1322
+ ref3.y = 0;
1323
+ ref3.anchor = "middle_left";
1324
+ var photodiode_vert_default = rotatedSymbol;
1325
+
1063
1326
  // assets/generated/potentiometer.json
1064
1327
  var potentiometer_default = {
1065
1328
  paths: {
@@ -1068,11 +1331,11 @@ var potentiometer_default = {
1068
1331
  points: [
1069
1332
  {
1070
1333
  x: -0.5291669499999998,
1071
- y: 0.1434596500000005
1334
+ y: 0.14345965000000027
1072
1335
  },
1073
1336
  {
1074
- x: -0.26458365000000006,
1075
- y: 0.1434596500000005
1337
+ x: -0.2645836500000003,
1338
+ y: 0.14345965000000027
1076
1339
  }
1077
1340
  ],
1078
1341
  color: "primary",
@@ -1082,12 +1345,12 @@ var potentiometer_default = {
1082
1345
  type: "path",
1083
1346
  points: [
1084
1347
  {
1085
- x: 0.26458334999999966,
1086
- y: 0.1434596500000005
1348
+ x: 0.26458334999999944,
1349
+ y: 0.14345965000000027
1087
1350
  },
1088
1351
  {
1089
- x: 0.52916695,
1090
- y: 0.1434596500000005
1352
+ x: 0.5291669499999998,
1353
+ y: 0.14345965000000027
1091
1354
  }
1092
1355
  ],
1093
1356
  color: "primary",
@@ -1097,28 +1360,28 @@ var potentiometer_default = {
1097
1360
  type: "path",
1098
1361
  points: [
1099
1362
  {
1100
- x: 12499999999526779e-22,
1101
- y: 0.011167849999999646
1363
+ x: 12499999997306332e-22,
1364
+ y: 0.01116785000000009
1102
1365
  },
1103
1366
  {
1104
1367
  x: 0.26458424999999997,
1105
- y: 0.011167849999999646
1368
+ y: 0.01116785000000009
1106
1369
  },
1107
1370
  {
1108
1371
  x: 0.26458424999999997,
1109
- y: 0.2757512500000008
1372
+ y: 0.2757512500000001
1110
1373
  },
1111
1374
  {
1112
- x: -0.26458274999999976,
1113
- y: 0.2757512500000008
1375
+ x: -0.26458274999999953,
1376
+ y: 0.2757512500000001
1114
1377
  },
1115
1378
  {
1116
- x: -0.26458274999999976,
1117
- y: 0.011167849999999646
1379
+ x: -0.26458274999999953,
1380
+ y: 0.01116785000000009
1118
1381
  },
1119
1382
  {
1120
- x: 12500000012849455e-22,
1121
- y: 0.011167849999999646
1383
+ x: 12500000010629009e-22,
1384
+ y: 0.01116785000000009
1122
1385
  }
1123
1386
  ],
1124
1387
  color: "primary",
@@ -1128,7 +1391,7 @@ var potentiometer_default = {
1128
1391
  type: "path",
1129
1392
  points: [
1130
1393
  {
1131
- x: 0.06517084999999989,
1394
+ x: 0.06517084999999967,
1132
1395
  y: -0.10588935
1133
1396
  },
1134
1397
  {
@@ -1136,7 +1399,7 @@ var potentiometer_default = {
1136
1399
  y: -0.10588935
1137
1400
  },
1138
1401
  {
1139
- x: -6345000000029799e-20,
1402
+ x: -6345000000052003e-20,
1140
1403
  y: 0.00700125000000007
1141
1404
  }
1142
1405
  ],
@@ -1148,11 +1411,11 @@ var potentiometer_default = {
1148
1411
  points: [
1149
1412
  {
1150
1413
  x: 25875000000041837e-20,
1151
- y: -0.2757512500000008
1414
+ y: -0.2757512500000001
1152
1415
  },
1153
1416
  {
1154
1417
  x: 25875000000041837e-20,
1155
- y: -0.060545249999998774
1418
+ y: -0.060545250000000106
1156
1419
  }
1157
1420
  ],
1158
1421
  color: "primary",
@@ -1164,53 +1427,53 @@ var potentiometer_default = {
1164
1427
  type: "text",
1165
1428
  text: "{VAL}",
1166
1429
  x: -0.007583050000000924,
1167
- y: 0.4315381500000015
1430
+ y: 0.4315381500000006
1168
1431
  },
1169
1432
  right1: {
1170
1433
  type: "text",
1171
1434
  text: "{REF}",
1172
1435
  x: 0.12478014999999942,
1173
- y: -0.09260654999999929
1436
+ y: -0.09260654999999884
1174
1437
  }
1175
1438
  },
1176
1439
  refblocks: {
1177
1440
  left1: {
1178
1441
  x: -0.5449899500000002,
1179
- y: 0.14431244999999926
1442
+ y: 0.1443124500000008
1180
1443
  },
1181
1444
  right1: {
1182
- x: 0.5378069499999998,
1445
+ x: 0.5378069499999996,
1183
1446
  y: 0.14331605000000103
1184
1447
  }
1185
1448
  },
1186
1449
  bounds: {
1187
1450
  minX: -0.5291669499999998,
1188
- maxX: 0.52916695,
1189
- minY: -0.2757512500000008,
1190
- maxY: 0.2757512500000008,
1191
- width: 1.0583338999999998,
1192
- height: 0.5515025000000016,
1193
- centerX: 11102230246251565e-32,
1451
+ maxX: 0.5291669499999998,
1452
+ minY: -0.2757512500000001,
1453
+ maxY: 0.2757512500000001,
1454
+ width: 1.0583338999999996,
1455
+ height: 0.5515025000000002,
1456
+ centerX: 0,
1194
1457
  centerY: 0
1195
1458
  }
1196
1459
  };
1197
1460
 
1198
1461
  // symbols/potentiometer_horz.ts
1199
- var { paths: paths6, texts: texts6, bounds: bounds6, refblocks: refblocks6 } = potentiometer_default;
1462
+ var { paths: paths7, texts: texts8, bounds: bounds7, refblocks: refblocks7 } = potentiometer_default;
1200
1463
  var potentiometer_horz_default = defineSymbol({
1201
1464
  primitives: [
1202
- ...Object.values(paths6),
1203
- { ...texts6.bottom1, y: 0.35, anchor: "middle_top" },
1204
- { ...texts6.right1, anchor: "middle_left" }
1465
+ ...Object.values(paths7),
1466
+ { ...texts8.bottom1, y: 0.35, anchor: "middle_top" },
1467
+ { ...texts8.right1, anchor: "middle_left" }
1205
1468
  ],
1206
1469
  ports: [
1207
- { ...refblocks6.left1, labels: ["1"] },
1470
+ { ...refblocks7.left1, labels: ["1"] },
1208
1471
  // TODO add more "standard" labels
1209
- { ...refblocks6.right1, labels: ["2"] }
1472
+ { ...refblocks7.right1, labels: ["2"] }
1210
1473
  // TODO add more "standard" labels
1211
1474
  ],
1212
- size: { width: bounds6.width + 0.05, height: bounds6.height },
1213
- center: { x: bounds6.centerX, y: bounds6.centerY }
1475
+ size: { width: bounds7.width + 0.05, height: bounds7.height },
1476
+ center: { x: bounds7.centerX, y: bounds7.centerY }
1214
1477
  });
1215
1478
 
1216
1479
  // symbols/potentiometer_vert.ts
@@ -1372,21 +1635,21 @@ var potentiometer2_default = {
1372
1635
  };
1373
1636
 
1374
1637
  // symbols/potentiometer2_horz.ts
1375
- var { paths: paths7, texts: texts7, bounds: bounds7, refblocks: refblocks7 } = potentiometer2_default;
1638
+ var { paths: paths8, texts: texts9, bounds: bounds8, refblocks: refblocks8 } = potentiometer2_default;
1376
1639
  var potentiometer2_horz_default = defineSymbol({
1377
1640
  primitives: [
1378
- ...Object.values(paths7),
1379
- { ...texts7.bottom1, anchor: "middle_right" },
1380
- { ...texts7.top1, anchor: "middle_left" }
1641
+ ...Object.values(paths8),
1642
+ { ...texts9.bottom1, anchor: "middle_right" },
1643
+ { ...texts9.top1, anchor: "middle_left" }
1381
1644
  ],
1382
1645
  ports: [
1383
- { ...refblocks7.left1, labels: ["1"] },
1646
+ { ...refblocks8.left1, labels: ["1"] },
1384
1647
  // TODO add more "standard" labels
1385
- { ...refblocks7.right1, labels: ["2"] }
1648
+ { ...refblocks8.right1, labels: ["2"] }
1386
1649
  // TODO add more "standard" labels
1387
1650
  ],
1388
- size: { width: bounds7.width, height: bounds7.height },
1389
- center: { x: bounds7.centerX, y: bounds7.centerY }
1651
+ size: { width: bounds8.width, height: bounds8.height },
1652
+ center: { x: bounds8.centerX, y: bounds8.centerY }
1390
1653
  });
1391
1654
 
1392
1655
  // symbols/potentiometer2_vert.ts
@@ -1493,35 +1756,35 @@ var push_button_normally_closed_momentary_default = {
1493
1756
  };
1494
1757
 
1495
1758
  // symbols/push_button_normally_closed_momentary_horz.ts
1496
- var { paths: paths8, texts: texts8, bounds: bounds8, refblocks: refblocks8 } = push_button_normally_closed_momentary_default;
1759
+ var { paths: paths9, texts: texts10, bounds: bounds9, refblocks: refblocks9 } = push_button_normally_closed_momentary_default;
1497
1760
  var push_button_normally_closed_momentary_horz_default = defineSymbol({
1498
1761
  primitives: [
1499
- ...Object.values(paths8),
1500
- { ...texts8.top1, anchor: "middle_bottom" },
1501
- { ...texts8.bottom1, anchor: "middle_top" }
1762
+ ...Object.values(paths9),
1763
+ { ...texts10.top1, anchor: "middle_bottom" },
1764
+ { ...texts10.bottom1, anchor: "middle_top" }
1502
1765
  ],
1503
1766
  ports: [
1504
- { ...refblocks8.left1, labels: ["1"] },
1767
+ { ...refblocks9.left1, labels: ["1"] },
1505
1768
  // TODO add more "standard" labels
1506
- { ...refblocks8.right1, labels: ["2"] }
1769
+ { ...refblocks9.right1, labels: ["2"] }
1507
1770
  // TODO add more "standard" labels
1508
1771
  ],
1509
- size: { width: bounds8.width, height: bounds8.height },
1510
- center: { x: bounds8.centerX, y: bounds8.centerY }
1772
+ size: { width: bounds9.width, height: bounds9.height },
1773
+ center: { x: bounds9.centerX, y: bounds9.centerY }
1511
1774
  });
1512
1775
 
1513
1776
  // symbols/push_button_normally_closed_momentary_vert.ts
1514
1777
  var rotated4 = rotateSymbol(push_button_normally_closed_momentary_horz_default);
1515
- var ref3 = rotated4.primitives.find(
1778
+ var ref4 = rotated4.primitives.find(
1516
1779
  (p) => p.type === "text" && p.text === "{REF}"
1517
1780
  );
1518
1781
  var val3 = rotated4.primitives.find(
1519
1782
  (p) => p.type === "text" && p.text === "{VAL}"
1520
1783
  );
1521
- ref3.anchor = "middle_left";
1784
+ ref4.anchor = "middle_left";
1522
1785
  val3.anchor = "middle_right";
1523
- ref3.x = ref3.x - 0.03;
1524
- ref3.y = ref3.y;
1786
+ ref4.x = ref4.x - 0.03;
1787
+ ref4.y = ref4.y;
1525
1788
  val3.x = val3.x;
1526
1789
  val3.y = 0;
1527
1790
  var push_button_normally_closed_momentary_vert_default = rotated4;
@@ -1627,35 +1890,35 @@ var push_button_normally_open_momentary_default = {
1627
1890
  };
1628
1891
 
1629
1892
  // symbols/push_button_normally_open_momentary_horz.ts
1630
- var { paths: paths9, texts: texts9, bounds: bounds9, refblocks: refblocks9 } = push_button_normally_open_momentary_default;
1893
+ var { paths: paths10, texts: texts11, bounds: bounds10, refblocks: refblocks10 } = push_button_normally_open_momentary_default;
1631
1894
  var push_button_normally_open_momentary_horz_default = defineSymbol({
1632
1895
  primitives: [
1633
- ...Object.values(paths9),
1634
- { ...texts9.top1, anchor: "middle_bottom" },
1635
- { ...texts9.bottom1, anchor: "middle_top" }
1896
+ ...Object.values(paths10),
1897
+ { ...texts11.top1, anchor: "middle_bottom" },
1898
+ { ...texts11.bottom1, anchor: "middle_top" }
1636
1899
  ],
1637
1900
  ports: [
1638
- { ...refblocks9.left1, labels: ["1"] },
1901
+ { ...refblocks10.left1, labels: ["1"] },
1639
1902
  // TODO add more "standard" labels
1640
- { ...refblocks9.right1, labels: ["2"] }
1903
+ { ...refblocks10.right1, labels: ["2"] }
1641
1904
  // TODO add more "standard" labels
1642
1905
  ],
1643
- size: { width: bounds9.width, height: bounds9.height },
1644
- center: { x: bounds9.centerX, y: bounds9.centerY }
1906
+ size: { width: bounds10.width, height: bounds10.height },
1907
+ center: { x: bounds10.centerX, y: bounds10.centerY }
1645
1908
  });
1646
1909
 
1647
1910
  // symbols/push_button_normally_open_momentary_vert.ts
1648
1911
  var rotated5 = rotateSymbol(push_button_normally_open_momentary_horz_default);
1649
- var ref4 = rotated5.primitives.find(
1912
+ var ref5 = rotated5.primitives.find(
1650
1913
  (p) => p.type === "text" && p.text === "{REF}"
1651
1914
  );
1652
1915
  var val4 = rotated5.primitives.find(
1653
1916
  (p) => p.type === "text" && p.text === "{VAL}"
1654
1917
  );
1655
- ref4.anchor = "middle_left";
1918
+ ref5.anchor = "middle_left";
1656
1919
  val4.anchor = "middle_right";
1657
- ref4.x = ref4.x + 0.1;
1658
- ref4.y = ref4.y;
1920
+ ref5.x = ref5.x + 0.1;
1921
+ ref5.y = ref5.y;
1659
1922
  val4.x = val4.x;
1660
1923
  val4.y = 0;
1661
1924
  var push_button_normally_open_momentary_vert_default = rotated5;
@@ -1792,31 +2055,164 @@ var varistor_default = {
1792
2055
  };
1793
2056
 
1794
2057
  // symbols/varistor_horz.ts
1795
- var { paths: paths10, texts: texts10, bounds: bounds10, refblocks: refblocks10 } = varistor_default;
2058
+ var { paths: paths11, texts: texts12, bounds: bounds11, refblocks: refblocks11 } = varistor_default;
1796
2059
  var varistor_horz_default = defineSymbol({
1797
2060
  primitives: [
1798
- ...Object.values(paths10),
1799
- { ...texts10.top1, anchor: "middle_left" },
1800
- { ...texts10.bottom1, anchor: "middle_right" }
2061
+ ...Object.values(paths11),
2062
+ { ...texts12.top1, anchor: "middle_left" },
2063
+ { ...texts12.bottom1, anchor: "middle_right" }
1801
2064
  ],
1802
2065
  ports: [
1803
2066
  {
1804
- ...refblocks10.left1,
2067
+ ...refblocks11.left1,
1805
2068
  labels: ["1", "-"]
1806
2069
  },
1807
2070
  {
1808
- ...refblocks10.right1,
2071
+ ...refblocks11.right1,
1809
2072
  labels: ["2", "+"]
1810
2073
  }
1811
2074
  ],
1812
- size: { width: bounds10.width, height: bounds10.height },
2075
+ size: { width: bounds11.width, height: bounds11.height },
1813
2076
  //{ width: 1, height: 0.24 },
1814
- center: { x: bounds10.centerX, y: bounds10.centerY }
2077
+ center: { x: bounds11.centerX, y: bounds11.centerY }
1815
2078
  });
1816
2079
 
1817
2080
  // symbols/varistor_vert.ts
1818
2081
  var varistor_vert_default = rotateSymbol(varistor_horz_default, {});
1819
2082
 
2083
+ // assets/generated/volt_meter.json
2084
+ var volt_meter_default = {
2085
+ paths: {
2086
+ path11: {
2087
+ type: "path",
2088
+ points: [
2089
+ {
2090
+ x: -0.5307178,
2091
+ y: 0.002520349999999949
2092
+ },
2093
+ {
2094
+ x: -0.3042887999999997,
2095
+ y: 0.002520349999999949
2096
+ }
2097
+ ],
2098
+ color: "primary",
2099
+ fill: false
2100
+ },
2101
+ "path11-5-5": {
2102
+ type: "path",
2103
+ points: [
2104
+ {
2105
+ x: 0.09442299999999992,
2106
+ y: -0.0957435499999999
2107
+ },
2108
+ {
2109
+ x: -0.004364400000000712,
2110
+ y: 0.0957435499999999
2111
+ },
2112
+ {
2113
+ x: -0.1110211000000012,
2114
+ y: -0.0957435499999999
2115
+ }
2116
+ ],
2117
+ color: "primary",
2118
+ fill: false
2119
+ },
2120
+ path12: {
2121
+ type: "path",
2122
+ points: [
2123
+ {
2124
+ x: 0.2899773000000003,
2125
+ y: 0.002520349999999949
2126
+ },
2127
+ {
2128
+ x: 0.5307178000000001,
2129
+ y: 0.002520349999999949
2130
+ }
2131
+ ],
2132
+ color: "primary",
2133
+ fill: false
2134
+ }
2135
+ },
2136
+ texts: {
2137
+ top1: {
2138
+ type: "text",
2139
+ text: "{REF}",
2140
+ x: -0.17652089999999898,
2141
+ y: -0.3594553499999995
2142
+ },
2143
+ bottom1: {
2144
+ type: "text",
2145
+ text: "{VAL}",
2146
+ x: -0.009849199999999891,
2147
+ y: 0.4348699500000004
2148
+ }
2149
+ },
2150
+ refblocks: {
2151
+ left1: {
2152
+ x: -0.5446330999999993,
2153
+ y: 0.003373150000000491
2154
+ },
2155
+ right1: {
2156
+ x: 0.5381638000000004,
2157
+ y: 0.0023767500000007047
2158
+ }
2159
+ },
2160
+ bounds: {
2161
+ minX: -0.5307178,
2162
+ maxX: 0.5307178000000001,
2163
+ minY: -0.0957435499999999,
2164
+ maxY: 0.0957435499999999,
2165
+ width: 1.0614356000000003,
2166
+ height: 1,
2167
+ centerX: 5551115123125783e-32,
2168
+ centerY: 0
2169
+ },
2170
+ circles: {
2171
+ path1: {
2172
+ type: "circle",
2173
+ x: -0.006997299999999651,
2174
+ y: -0.004607949999999583,
2175
+ radius: 0.28854213,
2176
+ color: "primary",
2177
+ fill: false
2178
+ }
2179
+ }
2180
+ };
2181
+
2182
+ // symbols/volt_meter_horz.ts
2183
+ var { paths: paths12, texts: texts13, bounds: bounds12, circles: circles2, refblocks: refblocks12 } = volt_meter_default;
2184
+ var volt_meter_horz_default = defineSymbol({
2185
+ primitives: [
2186
+ ...Object.values(paths12),
2187
+ ...Object.values(circles2),
2188
+ {
2189
+ type: "text",
2190
+ text: "{REF}",
2191
+ x: 0,
2192
+ y: -0.3594553499999995,
2193
+ anchor: "middle_bottom"
2194
+ },
2195
+ {
2196
+ type: "text",
2197
+ text: "{VAL}",
2198
+ x: 0,
2199
+ y: 0.35,
2200
+ anchor: "middle_top"
2201
+ }
2202
+ ],
2203
+ ports: [
2204
+ { ...refblocks12.left1, labels: ["1"] },
2205
+ // TODO add more "standard" labels
2206
+ { ...refblocks12.right1, labels: ["2"] }
2207
+ // TODO add more "standard" labels
2208
+ ],
2209
+ size: { width: bounds12.width, height: bounds12.height },
2210
+ center: { x: bounds12.centerX, y: bounds12.centerY }
2211
+ });
2212
+
2213
+ // symbols/volt_meter_vert.ts
2214
+ var volt_meter_vert_default = rotateSymbol(volt_meter_horz_default);
2215
+
1820
2216
  // generated/symbols-index.ts
1821
2217
  var symbols_index_default = {
1822
2218
  "boxresistor_horz": boxresistor_horz_default,
@@ -1831,6 +2227,8 @@ var symbols_index_default = {
1831
2227
  "led_vert": led_vert_default,
1832
2228
  "mosfet_depletion_normally_on_horz": mosfet_depletion_normally_on_horz_default,
1833
2229
  "mosfet_depletion_normally_on_vert": mosfet_depletion_normally_on_vert_default,
2230
+ "photodiode_horz": photodiode_horz_default,
2231
+ "photodiode_vert": photodiode_vert_default,
1834
2232
  "potentiometer_horz": potentiometer_horz_default,
1835
2233
  "potentiometer_vert": potentiometer_vert_default,
1836
2234
  "potentiometer2_horz": potentiometer2_horz_default,
@@ -1840,7 +2238,9 @@ var symbols_index_default = {
1840
2238
  "push_button_normally_open_momentary_horz": push_button_normally_open_momentary_horz_default,
1841
2239
  "push_button_normally_open_momentary_vert": push_button_normally_open_momentary_vert_default,
1842
2240
  "varistor_horz": varistor_horz_default,
1843
- "varistor_vert": varistor_vert_default
2241
+ "varistor_vert": varistor_vert_default,
2242
+ "volt_meter_horz": volt_meter_horz_default,
2243
+ "volt_meter_vert": volt_meter_vert_default
1844
2244
  };
1845
2245
 
1846
2246
  // drawing/mapColor.ts
@@ -1939,7 +2339,7 @@ function getInnerSvg(symbol, options = {}) {
1939
2339
  const textElements = createTextElement(primitive);
1940
2340
  return textElements.text + (debug ? textElements.anchor : "");
1941
2341
  case "circle":
1942
- return `<circle cx="${primitive.x}" cy="${primitive.y}" r="${primitive.radius}" fill="${mapColor("primary")}" />`;
2342
+ return `<circle cx="${primitive.x}" cy="${primitive.y}" r="${primitive.radius}" fill="${primitive.fill ? mapColor(primitive.color) : "none"}" ${!primitive.fill ? `stroke="${mapColor(primitive.color)}" stroke-width="0.02"` : ""} />`;
1943
2343
  case "box":
1944
2344
  return `<rect x="${primitive.x}" y="${primitive.y}" width="${primitive.width}" height="${primitive.height}" fill="${mapColor("primary")}" />`;
1945
2345
  default: