schematic-symbols 0.0.25 → 0.0.27

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,39 +1890,261 @@ 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;
1662
1925
 
1926
+ // assets/generated/schottky_diode.json
1927
+ var schottky_diode_default = {
1928
+ paths: {
1929
+ path40: {
1930
+ type: "path",
1931
+ points: [
1932
+ {
1933
+ x: 0.14133375000000115,
1934
+ y: 6371999999998934e-19
1935
+ },
1936
+ {
1937
+ x: -0.12324954999999838,
1938
+ y: 0.13292890000000046
1939
+ }
1940
+ ],
1941
+ color: "primary",
1942
+ fill: false
1943
+ },
1944
+ path41: {
1945
+ type: "path",
1946
+ points: [
1947
+ {
1948
+ x: -0.12324954999999971,
1949
+ y: -0.13165450000000045
1950
+ },
1951
+ {
1952
+ x: 0.1413337499999998,
1953
+ y: 6371999999998934e-19
1954
+ }
1955
+ ],
1956
+ color: "primary",
1957
+ fill: false
1958
+ },
1959
+ path42: {
1960
+ type: "path",
1961
+ points: [
1962
+ {
1963
+ x: -0.12324954999999971,
1964
+ y: 0.13292890000000046
1965
+ },
1966
+ {
1967
+ x: -0.12324954999999971,
1968
+ y: -0.1316544999999989
1969
+ }
1970
+ ],
1971
+ color: "primary",
1972
+ fill: false
1973
+ },
1974
+ path43: {
1975
+ type: "path",
1976
+ points: [
1977
+ {
1978
+ x: 0.14027445000000127,
1979
+ y: -0.13377310000000042
1980
+ },
1981
+ {
1982
+ x: 0.14133345000000053,
1983
+ y: 0.1329288999999989
1984
+ }
1985
+ ],
1986
+ color: "primary",
1987
+ fill: false
1988
+ },
1989
+ path44: {
1990
+ type: "path",
1991
+ points: [
1992
+ {
1993
+ x: -0.12545424999999977,
1994
+ y: 6371999999998934e-19
1995
+ },
1996
+ {
1997
+ x: -0.5201245499999998,
1998
+ y: 6371999999998934e-19
1999
+ }
2000
+ ],
2001
+ color: "primary",
2002
+ fill: false
2003
+ },
2004
+ "path44-0": {
2005
+ type: "path",
2006
+ points: [
2007
+ {
2008
+ x: 0.5201245499999998,
2009
+ y: 7223999999994568e-19
2010
+ },
2011
+ {
2012
+ x: 0.1464164499999996,
2013
+ y: 7223999999994568e-19
2014
+ }
2015
+ ],
2016
+ color: "primary",
2017
+ fill: false
2018
+ },
2019
+ "path43-7": {
2020
+ type: "path",
2021
+ points: [
2022
+ {
2023
+ x: 0.20429785000000056,
2024
+ y: -0.13505779999999978
2025
+ },
2026
+ {
2027
+ x: 0.14015525000000095,
2028
+ y: -0.1339758000000002
2029
+ }
2030
+ ],
2031
+ color: "primary",
2032
+ fill: false
2033
+ },
2034
+ "path43-7-9": {
2035
+ type: "path",
2036
+ points: [
2037
+ {
2038
+ x: 0.20608895000000027,
2039
+ y: -0.08549420000000074
2040
+ },
2041
+ {
2042
+ x: 0.2047149500000005,
2043
+ y: -0.13482980000000122
2044
+ }
2045
+ ],
2046
+ color: "primary",
2047
+ fill: false
2048
+ },
2049
+ "path43-7-2": {
2050
+ type: "path",
2051
+ points: [
2052
+ {
2053
+ x: 0.0765343500000002,
2054
+ y: 0.1349070999999995
2055
+ },
2056
+ {
2057
+ x: 0.13988425000000015,
2058
+ y: 0.1346870999999994
2059
+ }
2060
+ ],
2061
+ color: "primary",
2062
+ fill: false
2063
+ },
2064
+ "path43-7-9-3": {
2065
+ type: "path",
2066
+ points: [
2067
+ {
2068
+ x: 0.0743883500000011,
2069
+ y: 0.0857221999999993
2070
+ },
2071
+ {
2072
+ x: 0.07576235000000087,
2073
+ y: 0.1350578
2074
+ }
2075
+ ],
2076
+ color: "primary",
2077
+ fill: false
2078
+ }
2079
+ },
2080
+ texts: {
2081
+ top1: {
2082
+ type: "text",
2083
+ text: "{REF}",
2084
+ x: -0.00828064999999878,
2085
+ y: -0.2291716000000008
2086
+ },
2087
+ bottom1: {
2088
+ type: "text",
2089
+ text: "{VAL}",
2090
+ x: -0.003367349999999103,
2091
+ y: 0.31851899999999933
2092
+ }
2093
+ },
2094
+ refblocks: {
2095
+ left1: {
2096
+ x: -0.5224026499999993,
2097
+ y: -2470999999999446e-19
2098
+ },
2099
+ right1: {
2100
+ x: 0.5158915500000005,
2101
+ y: 7775999999992678e-19
2102
+ }
2103
+ },
2104
+ bounds: {
2105
+ minX: -0.5201245499999998,
2106
+ maxX: 0.5201245499999998,
2107
+ minY: -0.13505779999999978,
2108
+ maxY: 0.1350578,
2109
+ width: 1.0402490999999996,
2110
+ height: 1,
2111
+ centerX: 0,
2112
+ centerY: 11102230246251565e-32
2113
+ },
2114
+ circles: {}
2115
+ };
2116
+
2117
+ // symbols/schottky_diode_horz.ts
2118
+ var { paths: paths11, texts: texts12, bounds: bounds11, refblocks: refblocks11, circles: circles2 } = schottky_diode_default;
2119
+ var schottky_diode_horz_default = defineSymbol({
2120
+ primitives: [
2121
+ ...Object.values(paths11),
2122
+ ...Object.values(circles2),
2123
+ { ...texts12.top1, anchor: "middle_bottom" },
2124
+ { ...texts12.bottom1, anchor: "middle_top" }
2125
+ ],
2126
+ ports: [
2127
+ { ...refblocks11.left1, labels: ["1"] },
2128
+ // TODO add more "standard" labels
2129
+ { ...refblocks11.right1, labels: ["2"] }
2130
+ // TODO add more "standard" labels
2131
+ ],
2132
+ size: { width: bounds11.width, height: bounds11.height },
2133
+ center: { x: bounds11.centerX, y: bounds11.centerY }
2134
+ });
2135
+
2136
+ // symbols/schottky_diode_vert.ts
2137
+ var rotated6 = rotateSymbol(schottky_diode_horz_default);
2138
+ var ref6 = rotated6.primitives.find(
2139
+ (p) => p.type === "text" && p.text === "{REF}"
2140
+ );
2141
+ var val5 = rotated6.primitives.find(
2142
+ (p) => p.type === "text" && p.text === "{VAL}"
2143
+ );
2144
+ ref6.anchor = "middle_left";
2145
+ val5.anchor = "middle_right";
2146
+ var schottky_diode_vert_default = rotated6;
2147
+
1663
2148
  // assets/generated/varistor.json
1664
2149
  var varistor_default = {
1665
2150
  paths: {
@@ -1792,31 +2277,164 @@ var varistor_default = {
1792
2277
  };
1793
2278
 
1794
2279
  // symbols/varistor_horz.ts
1795
- var { paths: paths10, texts: texts10, bounds: bounds10, refblocks: refblocks10 } = varistor_default;
2280
+ var { paths: paths12, texts: texts13, bounds: bounds12, refblocks: refblocks12 } = varistor_default;
1796
2281
  var varistor_horz_default = defineSymbol({
1797
2282
  primitives: [
1798
- ...Object.values(paths10),
1799
- { ...texts10.top1, anchor: "middle_left" },
1800
- { ...texts10.bottom1, anchor: "middle_right" }
2283
+ ...Object.values(paths12),
2284
+ { ...texts13.top1, anchor: "middle_left" },
2285
+ { ...texts13.bottom1, anchor: "middle_right" }
1801
2286
  ],
1802
2287
  ports: [
1803
2288
  {
1804
- ...refblocks10.left1,
2289
+ ...refblocks12.left1,
1805
2290
  labels: ["1", "-"]
1806
2291
  },
1807
2292
  {
1808
- ...refblocks10.right1,
2293
+ ...refblocks12.right1,
1809
2294
  labels: ["2", "+"]
1810
2295
  }
1811
2296
  ],
1812
- size: { width: bounds10.width, height: bounds10.height },
2297
+ size: { width: bounds12.width, height: bounds12.height },
1813
2298
  //{ width: 1, height: 0.24 },
1814
- center: { x: bounds10.centerX, y: bounds10.centerY }
2299
+ center: { x: bounds12.centerX, y: bounds12.centerY }
1815
2300
  });
1816
2301
 
1817
2302
  // symbols/varistor_vert.ts
1818
2303
  var varistor_vert_default = rotateSymbol(varistor_horz_default, {});
1819
2304
 
2305
+ // assets/generated/volt_meter.json
2306
+ var volt_meter_default = {
2307
+ paths: {
2308
+ path11: {
2309
+ type: "path",
2310
+ points: [
2311
+ {
2312
+ x: -0.5307178,
2313
+ y: 0.002520349999999949
2314
+ },
2315
+ {
2316
+ x: -0.3042887999999997,
2317
+ y: 0.002520349999999949
2318
+ }
2319
+ ],
2320
+ color: "primary",
2321
+ fill: false
2322
+ },
2323
+ "path11-5-5": {
2324
+ type: "path",
2325
+ points: [
2326
+ {
2327
+ x: 0.09442299999999992,
2328
+ y: -0.0957435499999999
2329
+ },
2330
+ {
2331
+ x: -0.004364400000000712,
2332
+ y: 0.0957435499999999
2333
+ },
2334
+ {
2335
+ x: -0.1110211000000012,
2336
+ y: -0.0957435499999999
2337
+ }
2338
+ ],
2339
+ color: "primary",
2340
+ fill: false
2341
+ },
2342
+ path12: {
2343
+ type: "path",
2344
+ points: [
2345
+ {
2346
+ x: 0.2899773000000003,
2347
+ y: 0.002520349999999949
2348
+ },
2349
+ {
2350
+ x: 0.5307178000000001,
2351
+ y: 0.002520349999999949
2352
+ }
2353
+ ],
2354
+ color: "primary",
2355
+ fill: false
2356
+ }
2357
+ },
2358
+ texts: {
2359
+ top1: {
2360
+ type: "text",
2361
+ text: "{REF}",
2362
+ x: -0.17652089999999898,
2363
+ y: -0.3594553499999995
2364
+ },
2365
+ bottom1: {
2366
+ type: "text",
2367
+ text: "{VAL}",
2368
+ x: -0.009849199999999891,
2369
+ y: 0.4348699500000004
2370
+ }
2371
+ },
2372
+ refblocks: {
2373
+ left1: {
2374
+ x: -0.5446330999999993,
2375
+ y: 0.003373150000000491
2376
+ },
2377
+ right1: {
2378
+ x: 0.5381638000000004,
2379
+ y: 0.0023767500000007047
2380
+ }
2381
+ },
2382
+ bounds: {
2383
+ minX: -0.5307178,
2384
+ maxX: 0.5307178000000001,
2385
+ minY: -0.0957435499999999,
2386
+ maxY: 0.0957435499999999,
2387
+ width: 1.0614356000000003,
2388
+ height: 1,
2389
+ centerX: 5551115123125783e-32,
2390
+ centerY: 0
2391
+ },
2392
+ circles: {
2393
+ path1: {
2394
+ type: "circle",
2395
+ x: -0.006997299999999651,
2396
+ y: -0.004607949999999583,
2397
+ radius: 0.28854213,
2398
+ color: "primary",
2399
+ fill: false
2400
+ }
2401
+ }
2402
+ };
2403
+
2404
+ // symbols/volt_meter_horz.ts
2405
+ var { paths: paths13, texts: texts14, bounds: bounds13, circles: circles3, refblocks: refblocks13 } = volt_meter_default;
2406
+ var volt_meter_horz_default = defineSymbol({
2407
+ primitives: [
2408
+ ...Object.values(paths13),
2409
+ ...Object.values(circles3),
2410
+ {
2411
+ type: "text",
2412
+ text: "{REF}",
2413
+ x: 0,
2414
+ y: -0.3594553499999995,
2415
+ anchor: "middle_bottom"
2416
+ },
2417
+ {
2418
+ type: "text",
2419
+ text: "{VAL}",
2420
+ x: 0,
2421
+ y: 0.35,
2422
+ anchor: "middle_top"
2423
+ }
2424
+ ],
2425
+ ports: [
2426
+ { ...refblocks13.left1, labels: ["1"] },
2427
+ // TODO add more "standard" labels
2428
+ { ...refblocks13.right1, labels: ["2"] }
2429
+ // TODO add more "standard" labels
2430
+ ],
2431
+ size: { width: bounds13.width, height: bounds13.height },
2432
+ center: { x: bounds13.centerX, y: bounds13.centerY }
2433
+ });
2434
+
2435
+ // symbols/volt_meter_vert.ts
2436
+ var volt_meter_vert_default = rotateSymbol(volt_meter_horz_default);
2437
+
1820
2438
  // generated/symbols-index.ts
1821
2439
  var symbols_index_default = {
1822
2440
  "boxresistor_horz": boxresistor_horz_default,
@@ -1831,6 +2449,8 @@ var symbols_index_default = {
1831
2449
  "led_vert": led_vert_default,
1832
2450
  "mosfet_depletion_normally_on_horz": mosfet_depletion_normally_on_horz_default,
1833
2451
  "mosfet_depletion_normally_on_vert": mosfet_depletion_normally_on_vert_default,
2452
+ "photodiode_horz": photodiode_horz_default,
2453
+ "photodiode_vert": photodiode_vert_default,
1834
2454
  "potentiometer_horz": potentiometer_horz_default,
1835
2455
  "potentiometer_vert": potentiometer_vert_default,
1836
2456
  "potentiometer2_horz": potentiometer2_horz_default,
@@ -1839,8 +2459,12 @@ var symbols_index_default = {
1839
2459
  "push_button_normally_closed_momentary_vert": push_button_normally_closed_momentary_vert_default,
1840
2460
  "push_button_normally_open_momentary_horz": push_button_normally_open_momentary_horz_default,
1841
2461
  "push_button_normally_open_momentary_vert": push_button_normally_open_momentary_vert_default,
2462
+ "schottky_diode_horz": schottky_diode_horz_default,
2463
+ "schottky_diode_vert": schottky_diode_vert_default,
1842
2464
  "varistor_horz": varistor_horz_default,
1843
- "varistor_vert": varistor_vert_default
2465
+ "varistor_vert": varistor_vert_default,
2466
+ "volt_meter_horz": volt_meter_horz_default,
2467
+ "volt_meter_vert": volt_meter_vert_default
1844
2468
  };
1845
2469
 
1846
2470
  // drawing/mapColor.ts
@@ -1939,7 +2563,7 @@ function getInnerSvg(symbol, options = {}) {
1939
2563
  const textElements = createTextElement(primitive);
1940
2564
  return textElements.text + (debug ? textElements.anchor : "");
1941
2565
  case "circle":
1942
- return `<circle cx="${primitive.x}" cy="${primitive.y}" r="${primitive.radius}" fill="${mapColor("primary")}" />`;
2566
+ 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
2567
  case "box":
1944
2568
  return `<rect x="${primitive.x}" y="${primitive.y}" width="${primitive.width}" height="${primitive.height}" fill="${mapColor("primary")}" />`;
1945
2569
  default: