schematic-symbols 0.0.28 → 0.0.30

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
@@ -1,49 +1,186 @@
1
- // drawing/path.ts
2
- function path(options) {
3
- return { type: "path", ...options };
4
- }
5
-
6
- // drawing/text.ts
7
- function text(text2, options) {
8
- return { type: "text", text: text2, ...options };
9
- }
10
-
11
1
  // drawing/defineSymbol.ts
12
2
  function defineSymbol(symbol) {
13
3
  return symbol;
14
4
  }
15
5
 
16
- // symbols/boxresistor_horz.ts
17
- var boxresistor_horz_default = defineSymbol({
18
- primitives: [
19
- path({
6
+ // assets/generated/avalanche_diode.json
7
+ var avalanche_diode_default = {
8
+ paths: {
9
+ path40: {
10
+ type: "path",
20
11
  points: [
21
- { x: 0, y: 0 },
22
- { x: 0.2, y: 0 },
23
- { x: 0.2, y: -0.12 },
24
- { x: 0.8, y: -0.12 },
25
- { x: 0.8, y: 0.12 },
26
- { x: 0.2, y: 0.12 },
27
- { x: 0.2, y: 0 }
12
+ {
13
+ x: 0.1413337499999996,
14
+ y: -33784999999975085e-20
15
+ },
16
+ {
17
+ x: -0.12324954999999993,
18
+ y: 0.1319538500000006
19
+ }
28
20
  ],
29
- color: "primary"
30
- }),
31
- path({
21
+ color: "primary",
22
+ fill: false
23
+ },
24
+ path41: {
25
+ type: "path",
32
26
  points: [
33
- { x: 0.8, y: 0 },
34
- { x: 1, y: 0 }
27
+ {
28
+ x: -0.12324954999999993,
29
+ y: -0.1326295500000001
30
+ },
31
+ {
32
+ x: 0.1413337499999996,
33
+ y: -33784999999975085e-20
34
+ }
35
35
  ],
36
- color: "primary"
37
- }),
38
- text("{REF}", { x: 0.5, y: -0.2, anchor: "middle_bottom" }),
39
- text("{VAL}", { x: 0.5, y: 0.2, anchor: "middle_top" })
36
+ color: "primary",
37
+ fill: false
38
+ },
39
+ path42: {
40
+ type: "path",
41
+ points: [
42
+ {
43
+ x: -0.12324954999999993,
44
+ y: 0.13195384999999926
45
+ },
46
+ {
47
+ x: -0.12324954999999993,
48
+ y: -0.1326295500000001
49
+ }
50
+ ],
51
+ color: "primary",
52
+ fill: false
53
+ },
54
+ path43: {
55
+ type: "path",
56
+ points: [
57
+ {
58
+ x: 0.1413337499999996,
59
+ y: -0.1326295500000001
60
+ },
61
+ {
62
+ x: 0.1413337499999996,
63
+ y: 0.13195384999999926
64
+ }
65
+ ],
66
+ color: "primary",
67
+ fill: false
68
+ },
69
+ path44: {
70
+ type: "path",
71
+ points: [
72
+ {
73
+ x: -0.12545425,
74
+ y: -33784999999975085e-20
75
+ },
76
+ {
77
+ x: -0.52012455,
78
+ y: -33784999999975085e-20
79
+ }
80
+ ],
81
+ color: "primary",
82
+ fill: false
83
+ },
84
+ "path44-0": {
85
+ type: "path",
86
+ points: [
87
+ {
88
+ x: 0.5201245499999998,
89
+ y: -25265000000018745e-20
90
+ },
91
+ {
92
+ x: 0.14641644999999937,
93
+ y: -25265000000018745e-20
94
+ }
95
+ ],
96
+ color: "primary",
97
+ fill: false
98
+ },
99
+ "path43-8": {
100
+ type: "path",
101
+ points: [
102
+ {
103
+ x: 0.1401360499999995,
104
+ y: -0.13311245000000027
105
+ },
106
+ {
107
+ x: 0.07443344999999923,
108
+ y: -0.15673055000000047
109
+ }
110
+ ],
111
+ color: "primary",
112
+ fill: false
113
+ },
114
+ "path43-8-3": {
115
+ type: "path",
116
+ points: [
117
+ {
118
+ x: 0.20757744999999939,
119
+ y: 0.15673055000000025
120
+ },
121
+ {
122
+ x: 0.1418748499999991,
123
+ y: 0.13311245000000005
124
+ }
125
+ ],
126
+ color: "primary",
127
+ fill: false
128
+ }
129
+ },
130
+ texts: {
131
+ top1: {
132
+ type: "text",
133
+ text: "{REF}",
134
+ x: -0.0082802500000001,
135
+ y: -0.2301468499999999
136
+ },
137
+ bottom1: {
138
+ type: "text",
139
+ text: "{VAL}",
140
+ x: -0.0033669500000002017,
141
+ y: 0.31754375
142
+ }
143
+ },
144
+ refblocks: {
145
+ left1: {
146
+ x: -0.5224022500000005,
147
+ y: -0.0012222500000007575
148
+ },
149
+ right1: {
150
+ x: 0.5158919499999994,
151
+ y: -19764999999982713e-20
152
+ }
153
+ },
154
+ bounds: {
155
+ minX: -0.52012455,
156
+ maxX: 0.5201245499999998,
157
+ minY: -0.15673055000000047,
158
+ maxY: 0.15673055000000025,
159
+ width: 1.0402490999999998,
160
+ height: 1,
161
+ centerX: -11102230246251565e-32,
162
+ centerY: -11102230246251565e-32
163
+ },
164
+ circles: {}
165
+ };
166
+
167
+ // symbols/avalanche_diode_horz.ts
168
+ var { paths, texts, bounds, refblocks, circles } = avalanche_diode_default;
169
+ var avalanche_diode_horz_default = defineSymbol({
170
+ primitives: [
171
+ ...Object.values(paths),
172
+ ...Object.values(circles),
173
+ { ...texts.top1, anchor: "middle_bottom" },
174
+ { ...texts.bottom1, anchor: "middle_top" }
40
175
  ],
41
176
  ports: [
42
- { x: 0, y: 0, labels: ["1", "-", "left"] },
43
- { x: 1, y: 0, labels: ["2", "+", "right"] }
177
+ { ...refblocks.left1, labels: ["1"] },
178
+ // TODO add more "standard" labels
179
+ { ...refblocks.right1, labels: ["2"] }
180
+ // TODO add more "standard" labels
44
181
  ],
45
- center: { x: 0.5, y: 0 },
46
- size: { width: 1, height: 0.55 }
182
+ size: { width: bounds.width, height: bounds.height },
183
+ center: { x: bounds.centerX, y: bounds.centerY }
47
184
  });
48
185
 
49
186
  // drawing/rotateSymbol.ts
@@ -124,6 +261,61 @@ var rotateSymbol = (symbol, overrides) => {
124
261
  };
125
262
  };
126
263
 
264
+ // symbols/avalanche_diode_vert.ts
265
+ var rotated = rotateSymbol(avalanche_diode_horz_default);
266
+ var ref = rotated.primitives.find(
267
+ (p) => p.type === "text" && p.text === "{REF}"
268
+ );
269
+ var val = rotated.primitives.find(
270
+ (p) => p.type === "text" && p.text === "{VAL}"
271
+ );
272
+ ref.anchor = "middle_left";
273
+ val.anchor = "middle_right";
274
+ var avalanche_diode_vert_default = rotated;
275
+
276
+ // drawing/path.ts
277
+ function path(options) {
278
+ return { type: "path", ...options };
279
+ }
280
+
281
+ // drawing/text.ts
282
+ function text(text2, options) {
283
+ return { type: "text", text: text2, ...options };
284
+ }
285
+
286
+ // symbols/boxresistor_horz.ts
287
+ var boxresistor_horz_default = defineSymbol({
288
+ primitives: [
289
+ path({
290
+ points: [
291
+ { x: 0, y: 0 },
292
+ { x: 0.2, y: 0 },
293
+ { x: 0.2, y: -0.12 },
294
+ { x: 0.8, y: -0.12 },
295
+ { x: 0.8, y: 0.12 },
296
+ { x: 0.2, y: 0.12 },
297
+ { x: 0.2, y: 0 }
298
+ ],
299
+ color: "primary"
300
+ }),
301
+ path({
302
+ points: [
303
+ { x: 0.8, y: 0 },
304
+ { x: 1, y: 0 }
305
+ ],
306
+ color: "primary"
307
+ }),
308
+ text("{REF}", { x: 0.5, y: -0.2, anchor: "middle_bottom" }),
309
+ text("{VAL}", { x: 0.5, y: 0.2, anchor: "middle_top" })
310
+ ],
311
+ ports: [
312
+ { x: 0, y: 0, labels: ["1", "-", "left"] },
313
+ { x: 1, y: 0, labels: ["2", "+", "right"] }
314
+ ],
315
+ center: { x: 0.5, y: 0 },
316
+ size: { width: 1, height: 0.55 }
317
+ });
318
+
127
319
  // symbols/boxresistor_vert.ts
128
320
  var boxresistor_vert_default = rotateSymbol(boxresistor_horz_default);
129
321
 
@@ -228,20 +420,20 @@ var capacitor_default = {
228
420
  };
229
421
 
230
422
  // symbols/capacitor_horz.ts
231
- var { paths, bounds, refblocks, texts } = capacitor_default;
423
+ var { paths: paths2, bounds: bounds2, refblocks: refblocks2, texts: texts2 } = capacitor_default;
232
424
  var capacitor_horz_default = defineSymbol({
233
425
  primitives: [
234
- ...Object.values(paths),
235
- { ...texts.top1, anchor: "middle_bottom" },
236
- { ...texts.bottom1, anchor: "middle_top" }
426
+ ...Object.values(paths2),
427
+ { ...texts2.top1, anchor: "middle_bottom" },
428
+ { ...texts2.bottom1, anchor: "middle_top" }
237
429
  ],
238
430
  ports: [
239
- { ...refblocks.left1, labels: ["1"] },
240
- { ...refblocks.right1, labels: ["2"] }
431
+ { ...refblocks2.left1, labels: ["1"] },
432
+ { ...refblocks2.right1, labels: ["2"] }
241
433
  ],
242
- size: { width: bounds.width, height: bounds.height },
434
+ size: { width: bounds2.width, height: bounds2.height },
243
435
  //{ width: 1, height: 0.24 },
244
- center: { x: bounds.centerX, y: bounds.centerY }
436
+ center: { x: bounds2.centerX, y: bounds2.centerY }
245
437
  });
246
438
 
247
439
  // symbols/capacitor_vert.ts
@@ -378,21 +570,21 @@ var diode_default = {
378
570
  };
379
571
 
380
572
  // symbols/diode_horz.ts
381
- var { paths: paths2, texts: texts2, bounds: bounds2, refblocks: refblocks2 } = diode_default;
573
+ var { paths: paths3, texts: texts3, bounds: bounds3, refblocks: refblocks3 } = diode_default;
382
574
  var diode_horz_default = defineSymbol({
383
575
  primitives: [
384
- ...Object.values(paths2),
385
- { ...texts2.top1, anchor: "middle_bottom" },
386
- { ...texts2.bottom1, anchor: "middle_top" }
576
+ ...Object.values(paths3),
577
+ { ...texts3.top1, anchor: "middle_bottom" },
578
+ { ...texts3.bottom1, anchor: "middle_top" }
387
579
  ],
388
580
  ports: [
389
- { ...refblocks2.left1, labels: ["1"] },
581
+ { ...refblocks3.left1, labels: ["1"] },
390
582
  // TODO add more "standard" labels
391
- { ...refblocks2.right1, labels: ["2"] }
583
+ { ...refblocks3.right1, labels: ["2"] }
392
584
  // TODO add more "standard" labels
393
585
  ],
394
- size: { width: bounds2.width, height: bounds2.height },
395
- center: { x: bounds2.centerX, y: bounds2.centerY }
586
+ size: { width: bounds3.width, height: bounds3.height },
587
+ center: { x: bounds3.centerX, y: bounds3.centerY }
396
588
  });
397
589
 
398
590
  // symbols/diode_vert.ts
@@ -485,11 +677,11 @@ var fuse_default = {
485
677
  };
486
678
 
487
679
  // symbols/fuse_horz.ts
488
- var { paths: paths3, texts: texts3, bounds: bounds3, refblocks: refblocks3 } = fuse_default;
680
+ var { paths: paths4, texts: texts4, bounds: bounds4, refblocks: refblocks4 } = fuse_default;
489
681
  var fuse_horz_default = defineSymbol({
490
682
  primitives: [
491
- ...Object.values(paths3),
492
- { ...texts3.top1, anchor: "middle_bottom" },
683
+ ...Object.values(paths4),
684
+ { ...texts4.top1, anchor: "middle_bottom" },
493
685
  {
494
686
  type: "text",
495
687
  text: "{VAL}",
@@ -499,13 +691,13 @@ var fuse_horz_default = defineSymbol({
499
691
  }
500
692
  ],
501
693
  ports: [
502
- { ...refblocks3.left1, labels: ["1"] },
694
+ { ...refblocks4.left1, labels: ["1"] },
503
695
  // TODO add more "standard" labels
504
- { ...refblocks3.right1, labels: ["2"] }
696
+ { ...refblocks4.right1, labels: ["2"] }
505
697
  // TODO add more "standard" labels
506
698
  ],
507
- size: { width: bounds3.width, height: bounds3.height },
508
- center: { x: bounds3.centerX, y: bounds3.centerY }
699
+ size: { width: bounds4.width, height: bounds4.height },
700
+ center: { x: bounds4.centerX, y: bounds4.centerY }
509
701
  });
510
702
 
511
703
  // symbols/fuse_vert.ts
@@ -726,36 +918,36 @@ var led_default = {
726
918
  };
727
919
 
728
920
  // symbols/led_horz.ts
729
- var { paths: paths4, texts: texts4, bounds: bounds4, refblocks: refblocks4 } = led_default;
921
+ var { paths: paths5, texts: texts5, bounds: bounds5, refblocks: refblocks5 } = led_default;
730
922
  var led_horz_default = defineSymbol({
731
923
  primitives: [
732
- ...Object.values(paths4),
733
- { ...texts4.bottom1, anchor: "middle_right" },
734
- { ...texts4.right1, anchor: "middle_left" }
924
+ ...Object.values(paths5),
925
+ { ...texts5.bottom1, anchor: "middle_right" },
926
+ { ...texts5.right1, anchor: "middle_left" }
735
927
  ],
736
928
  ports: [
737
- { ...refblocks4.left1, labels: ["1", "anode", "pos"] },
738
- { ...refblocks4.right1, labels: ["2", "cathode", "neg"] }
929
+ { ...refblocks5.left1, labels: ["1", "anode", "pos"] },
930
+ { ...refblocks5.right1, labels: ["2", "cathode", "neg"] }
739
931
  ],
740
- size: { width: bounds4.width, height: bounds4.height },
741
- center: { x: bounds4.centerX, y: bounds4.centerY + 0.1 }
932
+ size: { width: bounds5.width, height: bounds5.height },
933
+ center: { x: bounds5.centerX, y: bounds5.centerY + 0.1 }
742
934
  });
743
935
 
744
936
  // symbols/led_vert.ts
745
- var rotated = rotateSymbol(led_horz_default);
746
- var ref = rotated.primitives.find(
937
+ var rotated2 = rotateSymbol(led_horz_default);
938
+ var ref2 = rotated2.primitives.find(
747
939
  (p) => p.type === "text" && p.text === "{REF}"
748
940
  );
749
- var val = rotated.primitives.find(
941
+ var val2 = rotated2.primitives.find(
750
942
  (p) => p.type === "text" && p.text === "{VAL}"
751
943
  );
752
- ref.anchor = "middle_left";
753
- val.anchor = "middle_right";
754
- ref.x += 0.1;
755
- ref.y += 0.017;
756
- val.y = ref.y;
757
- val.x = -0.3;
758
- var led_vert_default = rotated;
944
+ ref2.anchor = "middle_left";
945
+ val2.anchor = "middle_right";
946
+ ref2.x += 0.1;
947
+ ref2.y += 0.017;
948
+ val2.y = ref2.y;
949
+ val2.x = -0.3;
950
+ var led_vert_default = rotated2;
759
951
 
760
952
  // assets/generated/mosfet_depletion_normally_on.json
761
953
  var mosfet_depletion_normally_on_default = {
@@ -1027,38 +1219,38 @@ var mosfet_depletion_normally_on_default = {
1027
1219
  };
1028
1220
 
1029
1221
  // symbols/mosfet_depletion_normally_on_horz.ts
1030
- var { paths: paths5, texts: texts5, bounds: bounds5, refblocks: refblocks5 } = mosfet_depletion_normally_on_default;
1222
+ var { paths: paths6, texts: texts6, bounds: bounds6, refblocks: refblocks6 } = mosfet_depletion_normally_on_default;
1031
1223
  var mosfet_depletion_normally_on_horz_default = defineSymbol({
1032
1224
  primitives: [
1033
- ...Object.values(paths5),
1034
- { ...texts5.right1, anchor: "middle_left" },
1035
- { ...texts5.right2, anchor: "middle_left" }
1225
+ ...Object.values(paths6),
1226
+ { ...texts6.right1, anchor: "middle_left" },
1227
+ { ...texts6.right2, anchor: "middle_left" }
1036
1228
  ],
1037
1229
  ports: [
1038
- { ...refblocks5.top1, labels: ["1"] },
1230
+ { ...refblocks6.top1, labels: ["1"] },
1039
1231
  // TODO add more "standard" labels
1040
- { ...refblocks5.bottom1, labels: ["2"] },
1232
+ { ...refblocks6.bottom1, labels: ["2"] },
1041
1233
  // TODO add more "standard" labels
1042
- { ...refblocks5.left1, labels: ["3"] }
1234
+ { ...refblocks6.left1, labels: ["3"] }
1043
1235
  // TODO add more "standard" labels
1044
1236
  ],
1045
- size: { width: bounds5.width + 0.4, height: bounds5.height },
1046
- center: { x: bounds5.centerX + 0.2, y: bounds5.centerY }
1237
+ size: { width: bounds6.width + 0.4, height: bounds6.height },
1238
+ center: { x: bounds6.centerX + 0.2, y: bounds6.centerY }
1047
1239
  });
1048
1240
 
1049
1241
  // symbols/mosfet_depletion_normally_on_vert.ts
1050
- var rotated2 = rotateSymbol(mosfet_depletion_normally_on_horz_default);
1051
- var ref2 = rotated2.primitives.find(
1242
+ var rotated3 = rotateSymbol(mosfet_depletion_normally_on_horz_default);
1243
+ var ref3 = rotated3.primitives.find(
1052
1244
  (p) => p.type === "text" && p.text === "{REF}"
1053
1245
  );
1054
- var val2 = rotated2.primitives.find(
1246
+ var val3 = rotated3.primitives.find(
1055
1247
  (p) => p.type === "text" && p.text === "{VAL}"
1056
1248
  );
1057
- ref2.anchor = "middle_top";
1058
- val2.anchor = "middle_top";
1059
- ref2.x = val2.x;
1060
- val2.y += 0.15;
1061
- var mosfet_depletion_normally_on_vert_default = rotated2;
1249
+ ref3.anchor = "middle_top";
1250
+ val3.anchor = "middle_top";
1251
+ ref3.x = val3.x;
1252
+ val3.y += 0.15;
1253
+ var mosfet_depletion_normally_on_vert_default = rotated3;
1062
1254
 
1063
1255
  // assets/generated/photodiode.json
1064
1256
  var photodiode_default = {
@@ -1285,11 +1477,11 @@ var photodiode_default = {
1285
1477
  };
1286
1478
 
1287
1479
  // symbols/photodiode_horz.ts
1288
- var { paths: paths6, texts: texts6, bounds: bounds6, refblocks: refblocks6, circles } = photodiode_default;
1480
+ var { paths: paths7, texts: texts7, bounds: bounds7, refblocks: refblocks7, circles: circles2 } = photodiode_default;
1289
1481
  var photodiode_horz_default = defineSymbol({
1290
1482
  primitives: [
1291
- ...Object.values(paths6),
1292
- ...Object.values(circles),
1483
+ ...Object.values(paths7),
1484
+ ...Object.values(circles2),
1293
1485
  {
1294
1486
  type: "text",
1295
1487
  text: "{REF}",
@@ -1306,21 +1498,21 @@ var photodiode_horz_default = defineSymbol({
1306
1498
  }
1307
1499
  ],
1308
1500
  ports: [
1309
- { ...refblocks6.left1, labels: ["1"] },
1501
+ { ...refblocks7.left1, labels: ["1"] },
1310
1502
  // TODO add more "standard" labels
1311
- { ...refblocks6.right1, labels: ["2"] }
1503
+ { ...refblocks7.right1, labels: ["2"] }
1312
1504
  // TODO add more "standard" labels
1313
1505
  ],
1314
- size: { width: bounds6.width, height: bounds6.height },
1315
- center: { x: bounds6.centerX, y: bounds6.centerY }
1506
+ size: { width: bounds7.width, height: bounds7.height },
1507
+ center: { x: bounds7.centerX, y: bounds7.centerY }
1316
1508
  });
1317
1509
 
1318
1510
  // symbols/photodiode_vert.ts
1319
1511
  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";
1512
+ var texts8 = rotatedSymbol.primitives.filter((p) => p.type === "text");
1513
+ var ref4 = texts8.find((t) => t.text === "{REF}");
1514
+ ref4.y = 0;
1515
+ ref4.anchor = "middle_left";
1324
1516
  var photodiode_vert_default = rotatedSymbol;
1325
1517
 
1326
1518
  // assets/generated/potentiometer.json
@@ -1459,26 +1651,26 @@ var potentiometer_default = {
1459
1651
  };
1460
1652
 
1461
1653
  // symbols/potentiometer_horz.ts
1462
- var { paths: paths7, texts: texts8, bounds: bounds7, refblocks: refblocks7 } = potentiometer_default;
1654
+ var { paths: paths8, texts: texts9, bounds: bounds8, refblocks: refblocks8 } = potentiometer_default;
1463
1655
  var potentiometer_horz_default = defineSymbol({
1464
1656
  primitives: [
1465
- ...Object.values(paths7),
1466
- { ...texts8.bottom1, y: 0.35, anchor: "middle_top" },
1467
- { ...texts8.right1, anchor: "middle_left" }
1657
+ ...Object.values(paths8),
1658
+ { ...texts9.bottom1, y: 0.35, anchor: "middle_top" },
1659
+ { ...texts9.right1, anchor: "middle_left" }
1468
1660
  ],
1469
1661
  ports: [
1470
- { ...refblocks7.left1, labels: ["1"] },
1662
+ { ...refblocks8.left1, labels: ["1"] },
1471
1663
  // TODO add more "standard" labels
1472
- { ...refblocks7.right1, labels: ["2"] }
1664
+ { ...refblocks8.right1, labels: ["2"] }
1473
1665
  // TODO add more "standard" labels
1474
1666
  ],
1475
- size: { width: bounds7.width + 0.05, height: bounds7.height },
1476
- center: { x: bounds7.centerX, y: bounds7.centerY }
1667
+ size: { width: bounds8.width + 0.05, height: bounds8.height },
1668
+ center: { x: bounds8.centerX, y: bounds8.centerY }
1477
1669
  });
1478
1670
 
1479
1671
  // symbols/potentiometer_vert.ts
1480
- var rotated3 = rotateSymbol(potentiometer_horz_default);
1481
- var potentiometer_vert_default = rotated3;
1672
+ var rotated4 = rotateSymbol(potentiometer_horz_default);
1673
+ var potentiometer_vert_default = rotated4;
1482
1674
 
1483
1675
  // assets/generated/potentiometer2.json
1484
1676
  var potentiometer2_default = {
@@ -1635,21 +1827,21 @@ var potentiometer2_default = {
1635
1827
  };
1636
1828
 
1637
1829
  // symbols/potentiometer2_horz.ts
1638
- var { paths: paths8, texts: texts9, bounds: bounds8, refblocks: refblocks8 } = potentiometer2_default;
1830
+ var { paths: paths9, texts: texts10, bounds: bounds9, refblocks: refblocks9 } = potentiometer2_default;
1639
1831
  var potentiometer2_horz_default = defineSymbol({
1640
1832
  primitives: [
1641
- ...Object.values(paths8),
1642
- { ...texts9.bottom1, anchor: "middle_right" },
1643
- { ...texts9.top1, anchor: "middle_left" }
1833
+ ...Object.values(paths9),
1834
+ { ...texts10.bottom1, anchor: "middle_right" },
1835
+ { ...texts10.top1, anchor: "middle_left" }
1644
1836
  ],
1645
1837
  ports: [
1646
- { ...refblocks8.left1, labels: ["1"] },
1838
+ { ...refblocks9.left1, labels: ["1"] },
1647
1839
  // TODO add more "standard" labels
1648
- { ...refblocks8.right1, labels: ["2"] }
1840
+ { ...refblocks9.right1, labels: ["2"] }
1649
1841
  // TODO add more "standard" labels
1650
1842
  ],
1651
- size: { width: bounds8.width, height: bounds8.height },
1652
- center: { x: bounds8.centerX, y: bounds8.centerY }
1843
+ size: { width: bounds9.width, height: bounds9.height },
1844
+ center: { x: bounds9.centerX, y: bounds9.centerY }
1653
1845
  });
1654
1846
 
1655
1847
  // symbols/potentiometer2_vert.ts
@@ -1756,38 +1948,38 @@ var push_button_normally_closed_momentary_default = {
1756
1948
  };
1757
1949
 
1758
1950
  // symbols/push_button_normally_closed_momentary_horz.ts
1759
- var { paths: paths9, texts: texts10, bounds: bounds9, refblocks: refblocks9 } = push_button_normally_closed_momentary_default;
1951
+ var { paths: paths10, texts: texts11, bounds: bounds10, refblocks: refblocks10 } = push_button_normally_closed_momentary_default;
1760
1952
  var push_button_normally_closed_momentary_horz_default = defineSymbol({
1761
1953
  primitives: [
1762
- ...Object.values(paths9),
1763
- { ...texts10.top1, anchor: "middle_bottom" },
1764
- { ...texts10.bottom1, anchor: "middle_top" }
1954
+ ...Object.values(paths10),
1955
+ { ...texts11.top1, anchor: "middle_bottom" },
1956
+ { ...texts11.bottom1, anchor: "middle_top" }
1765
1957
  ],
1766
1958
  ports: [
1767
- { ...refblocks9.left1, labels: ["1"] },
1959
+ { ...refblocks10.left1, labels: ["1"] },
1768
1960
  // TODO add more "standard" labels
1769
- { ...refblocks9.right1, labels: ["2"] }
1961
+ { ...refblocks10.right1, labels: ["2"] }
1770
1962
  // TODO add more "standard" labels
1771
1963
  ],
1772
- size: { width: bounds9.width, height: bounds9.height },
1773
- center: { x: bounds9.centerX, y: bounds9.centerY }
1964
+ size: { width: bounds10.width, height: bounds10.height },
1965
+ center: { x: bounds10.centerX, y: bounds10.centerY }
1774
1966
  });
1775
1967
 
1776
1968
  // symbols/push_button_normally_closed_momentary_vert.ts
1777
- var rotated4 = rotateSymbol(push_button_normally_closed_momentary_horz_default);
1778
- var ref4 = rotated4.primitives.find(
1969
+ var rotated5 = rotateSymbol(push_button_normally_closed_momentary_horz_default);
1970
+ var ref5 = rotated5.primitives.find(
1779
1971
  (p) => p.type === "text" && p.text === "{REF}"
1780
1972
  );
1781
- var val3 = rotated4.primitives.find(
1973
+ var val4 = rotated5.primitives.find(
1782
1974
  (p) => p.type === "text" && p.text === "{VAL}"
1783
1975
  );
1784
- ref4.anchor = "middle_left";
1785
- val3.anchor = "middle_right";
1786
- ref4.x = ref4.x - 0.03;
1787
- ref4.y = ref4.y;
1788
- val3.x = val3.x;
1789
- val3.y = 0;
1790
- var push_button_normally_closed_momentary_vert_default = rotated4;
1976
+ ref5.anchor = "middle_left";
1977
+ val4.anchor = "middle_right";
1978
+ ref5.x = ref5.x - 0.03;
1979
+ ref5.y = ref5.y;
1980
+ val4.x = val4.x;
1981
+ val4.y = 0;
1982
+ var push_button_normally_closed_momentary_vert_default = rotated5;
1791
1983
 
1792
1984
  // assets/generated/push_button_normally_open_momentary.json
1793
1985
  var push_button_normally_open_momentary_default = {
@@ -1890,38 +2082,38 @@ var push_button_normally_open_momentary_default = {
1890
2082
  };
1891
2083
 
1892
2084
  // symbols/push_button_normally_open_momentary_horz.ts
1893
- var { paths: paths10, texts: texts11, bounds: bounds10, refblocks: refblocks10 } = push_button_normally_open_momentary_default;
2085
+ var { paths: paths11, texts: texts12, bounds: bounds11, refblocks: refblocks11 } = push_button_normally_open_momentary_default;
1894
2086
  var push_button_normally_open_momentary_horz_default = defineSymbol({
1895
2087
  primitives: [
1896
- ...Object.values(paths10),
1897
- { ...texts11.top1, anchor: "middle_bottom" },
1898
- { ...texts11.bottom1, anchor: "middle_top" }
2088
+ ...Object.values(paths11),
2089
+ { ...texts12.top1, anchor: "middle_bottom" },
2090
+ { ...texts12.bottom1, anchor: "middle_top" }
1899
2091
  ],
1900
2092
  ports: [
1901
- { ...refblocks10.left1, labels: ["1"] },
2093
+ { ...refblocks11.left1, labels: ["1"] },
1902
2094
  // TODO add more "standard" labels
1903
- { ...refblocks10.right1, labels: ["2"] }
2095
+ { ...refblocks11.right1, labels: ["2"] }
1904
2096
  // TODO add more "standard" labels
1905
2097
  ],
1906
- size: { width: bounds10.width, height: bounds10.height },
1907
- center: { x: bounds10.centerX, y: bounds10.centerY }
2098
+ size: { width: bounds11.width, height: bounds11.height },
2099
+ center: { x: bounds11.centerX, y: bounds11.centerY }
1908
2100
  });
1909
2101
 
1910
2102
  // symbols/push_button_normally_open_momentary_vert.ts
1911
- var rotated5 = rotateSymbol(push_button_normally_open_momentary_horz_default);
1912
- var ref5 = rotated5.primitives.find(
2103
+ var rotated6 = rotateSymbol(push_button_normally_open_momentary_horz_default);
2104
+ var ref6 = rotated6.primitives.find(
1913
2105
  (p) => p.type === "text" && p.text === "{REF}"
1914
2106
  );
1915
- var val4 = rotated5.primitives.find(
2107
+ var val5 = rotated6.primitives.find(
1916
2108
  (p) => p.type === "text" && p.text === "{VAL}"
1917
2109
  );
1918
- ref5.anchor = "middle_left";
1919
- val4.anchor = "middle_right";
1920
- ref5.x = ref5.x + 0.1;
1921
- ref5.y = ref5.y;
1922
- val4.x = val4.x;
1923
- val4.y = 0;
1924
- var push_button_normally_open_momentary_vert_default = rotated5;
2110
+ ref6.anchor = "middle_left";
2111
+ val5.anchor = "middle_right";
2112
+ ref6.x = ref6.x + 0.1;
2113
+ ref6.y = ref6.y;
2114
+ val5.x = val5.x;
2115
+ val5.y = 0;
2116
+ var push_button_normally_open_momentary_vert_default = rotated6;
1925
2117
 
1926
2118
  // assets/generated/schottky_diode.json
1927
2119
  var schottky_diode_default = {
@@ -2115,35 +2307,35 @@ var schottky_diode_default = {
2115
2307
  };
2116
2308
 
2117
2309
  // symbols/schottky_diode_horz.ts
2118
- var { paths: paths11, texts: texts12, bounds: bounds11, refblocks: refblocks11, circles: circles2 } = schottky_diode_default;
2310
+ var { paths: paths12, texts: texts13, bounds: bounds12, refblocks: refblocks12, circles: circles3 } = schottky_diode_default;
2119
2311
  var schottky_diode_horz_default = defineSymbol({
2120
2312
  primitives: [
2121
- ...Object.values(paths11),
2122
- ...Object.values(circles2),
2123
- { ...texts12.top1, anchor: "middle_bottom" },
2124
- { ...texts12.bottom1, anchor: "middle_top" }
2313
+ ...Object.values(paths12),
2314
+ ...Object.values(circles3),
2315
+ { ...texts13.top1, anchor: "middle_bottom" },
2316
+ { ...texts13.bottom1, anchor: "middle_top" }
2125
2317
  ],
2126
2318
  ports: [
2127
- { ...refblocks11.left1, labels: ["1"] },
2319
+ { ...refblocks12.left1, labels: ["1"] },
2128
2320
  // TODO add more "standard" labels
2129
- { ...refblocks11.right1, labels: ["2"] }
2321
+ { ...refblocks12.right1, labels: ["2"] }
2130
2322
  // TODO add more "standard" labels
2131
2323
  ],
2132
- size: { width: bounds11.width, height: bounds11.height },
2133
- center: { x: bounds11.centerX, y: bounds11.centerY }
2324
+ size: { width: bounds12.width, height: bounds12.height },
2325
+ center: { x: bounds12.centerX, y: bounds12.centerY }
2134
2326
  });
2135
2327
 
2136
2328
  // symbols/schottky_diode_vert.ts
2137
- var rotated6 = rotateSymbol(schottky_diode_horz_default);
2138
- var ref6 = rotated6.primitives.find(
2329
+ var rotated7 = rotateSymbol(schottky_diode_horz_default);
2330
+ var ref7 = rotated7.primitives.find(
2139
2331
  (p) => p.type === "text" && p.text === "{REF}"
2140
2332
  );
2141
- var val5 = rotated6.primitives.find(
2333
+ var val6 = rotated7.primitives.find(
2142
2334
  (p) => p.type === "text" && p.text === "{VAL}"
2143
2335
  );
2144
- ref6.anchor = "middle_left";
2145
- val5.anchor = "middle_right";
2146
- var schottky_diode_vert_default = rotated6;
2336
+ ref7.anchor = "middle_left";
2337
+ val6.anchor = "middle_right";
2338
+ var schottky_diode_vert_default = rotated7;
2147
2339
 
2148
2340
  // assets/generated/varactor_diode.json
2149
2341
  var varactor_diode_default = {
@@ -2292,35 +2484,35 @@ var varactor_diode_default = {
2292
2484
  };
2293
2485
 
2294
2486
  // symbols/varactor_diode_horz.ts
2295
- var { paths: paths12, texts: texts13, bounds: bounds12, refblocks: refblocks12, circles: circles3 } = varactor_diode_default;
2487
+ var { paths: paths13, texts: texts14, bounds: bounds13, refblocks: refblocks13, circles: circles4 } = varactor_diode_default;
2296
2488
  var varactor_diode_horz_default = defineSymbol({
2297
2489
  primitives: [
2298
- ...Object.values(paths12),
2299
- ...Object.values(circles3),
2300
- { ...texts13.top1, anchor: "middle_bottom" },
2301
- { ...texts13.bottom1, anchor: "middle_top" }
2490
+ ...Object.values(paths13),
2491
+ ...Object.values(circles4),
2492
+ { ...texts14.top1, anchor: "middle_bottom" },
2493
+ { ...texts14.bottom1, anchor: "middle_top" }
2302
2494
  ],
2303
2495
  ports: [
2304
- { ...refblocks12.left1, labels: ["1"] },
2496
+ { ...refblocks13.left1, labels: ["1"] },
2305
2497
  // TODO add more "standard" labels
2306
- { ...refblocks12.right1, labels: ["2"] }
2498
+ { ...refblocks13.right1, labels: ["2"] }
2307
2499
  // TODO add more "standard" labels
2308
2500
  ],
2309
- size: { width: bounds12.width, height: bounds12.height },
2310
- center: { x: bounds12.centerX, y: bounds12.centerY }
2501
+ size: { width: bounds13.width, height: bounds13.height },
2502
+ center: { x: bounds13.centerX, y: bounds13.centerY }
2311
2503
  });
2312
2504
 
2313
2505
  // symbols/varactor_diode_vert.ts
2314
- var rotated7 = rotateSymbol(varactor_diode_horz_default);
2315
- var ref7 = rotated7.primitives.find(
2506
+ var rotated8 = rotateSymbol(varactor_diode_horz_default);
2507
+ var ref8 = rotated8.primitives.find(
2316
2508
  (p) => p.type === "text" && p.text === "{REF}"
2317
2509
  );
2318
- var val6 = rotated7.primitives.find(
2510
+ var val7 = rotated8.primitives.find(
2319
2511
  (p) => p.type === "text" && p.text === "{VAL}"
2320
2512
  );
2321
- ref7.anchor = "middle_left";
2322
- val6.anchor = "middle_right";
2323
- var varactor_diode_vert_default = rotated7;
2513
+ ref8.anchor = "middle_left";
2514
+ val7.anchor = "middle_right";
2515
+ var varactor_diode_vert_default = rotated8;
2324
2516
 
2325
2517
  // assets/generated/varistor.json
2326
2518
  var varistor_default = {
@@ -2454,26 +2646,26 @@ var varistor_default = {
2454
2646
  };
2455
2647
 
2456
2648
  // symbols/varistor_horz.ts
2457
- var { paths: paths13, texts: texts14, bounds: bounds13, refblocks: refblocks13 } = varistor_default;
2649
+ var { paths: paths14, texts: texts15, bounds: bounds14, refblocks: refblocks14 } = varistor_default;
2458
2650
  var varistor_horz_default = defineSymbol({
2459
2651
  primitives: [
2460
- ...Object.values(paths13),
2461
- { ...texts14.top1, anchor: "middle_left" },
2462
- { ...texts14.bottom1, anchor: "middle_right" }
2652
+ ...Object.values(paths14),
2653
+ { ...texts15.top1, anchor: "middle_left" },
2654
+ { ...texts15.bottom1, anchor: "middle_right" }
2463
2655
  ],
2464
2656
  ports: [
2465
2657
  {
2466
- ...refblocks13.left1,
2658
+ ...refblocks14.left1,
2467
2659
  labels: ["1", "-"]
2468
2660
  },
2469
2661
  {
2470
- ...refblocks13.right1,
2662
+ ...refblocks14.right1,
2471
2663
  labels: ["2", "+"]
2472
2664
  }
2473
2665
  ],
2474
- size: { width: bounds13.width, height: bounds13.height },
2666
+ size: { width: bounds14.width, height: bounds14.height },
2475
2667
  //{ width: 1, height: 0.24 },
2476
- center: { x: bounds13.centerX, y: bounds13.centerY }
2668
+ center: { x: bounds14.centerX, y: bounds14.centerY }
2477
2669
  });
2478
2670
 
2479
2671
  // symbols/varistor_vert.ts
@@ -2579,11 +2771,11 @@ var volt_meter_default = {
2579
2771
  };
2580
2772
 
2581
2773
  // symbols/volt_meter_horz.ts
2582
- var { paths: paths14, texts: texts15, bounds: bounds14, circles: circles4, refblocks: refblocks14 } = volt_meter_default;
2774
+ var { paths: paths15, texts: texts16, bounds: bounds15, circles: circles5, refblocks: refblocks15 } = volt_meter_default;
2583
2775
  var volt_meter_horz_default = defineSymbol({
2584
2776
  primitives: [
2585
- ...Object.values(paths14),
2586
- ...Object.values(circles4),
2777
+ ...Object.values(paths15),
2778
+ ...Object.values(circles5),
2587
2779
  {
2588
2780
  type: "text",
2589
2781
  text: "{REF}",
@@ -2600,20 +2792,199 @@ var volt_meter_horz_default = defineSymbol({
2600
2792
  }
2601
2793
  ],
2602
2794
  ports: [
2603
- { ...refblocks14.left1, labels: ["1"] },
2795
+ { ...refblocks15.left1, labels: ["1"] },
2604
2796
  // TODO add more "standard" labels
2605
- { ...refblocks14.right1, labels: ["2"] }
2797
+ { ...refblocks15.right1, labels: ["2"] }
2606
2798
  // TODO add more "standard" labels
2607
2799
  ],
2608
- size: { width: bounds14.width, height: bounds14.height },
2609
- center: { x: bounds14.centerX, y: bounds14.centerY }
2800
+ size: { width: bounds15.width, height: bounds15.height },
2801
+ center: { x: bounds15.centerX, y: bounds15.centerY }
2610
2802
  });
2611
2803
 
2612
2804
  // symbols/volt_meter_vert.ts
2613
2805
  var volt_meter_vert_default = rotateSymbol(volt_meter_horz_default);
2614
2806
 
2807
+ // assets/generated/zener_diode.json
2808
+ var zener_diode_default = {
2809
+ paths: {
2810
+ path40: {
2811
+ type: "path",
2812
+ points: [
2813
+ {
2814
+ x: 0.1413337499999996,
2815
+ y: 24145000000008743e-20
2816
+ },
2817
+ {
2818
+ x: -0.12324954999999993,
2819
+ y: 0.13253315000000043
2820
+ }
2821
+ ],
2822
+ color: "primary",
2823
+ fill: false
2824
+ },
2825
+ path41: {
2826
+ type: "path",
2827
+ points: [
2828
+ {
2829
+ x: -0.12324954999999993,
2830
+ y: -0.13205025000000026
2831
+ },
2832
+ {
2833
+ x: 0.1413337499999996,
2834
+ y: 24145000000008743e-20
2835
+ }
2836
+ ],
2837
+ color: "primary",
2838
+ fill: false
2839
+ },
2840
+ path42: {
2841
+ type: "path",
2842
+ points: [
2843
+ {
2844
+ x: -0.12324954999999993,
2845
+ y: 0.1325331499999991
2846
+ },
2847
+ {
2848
+ x: -0.12324954999999993,
2849
+ y: -0.13205025000000026
2850
+ }
2851
+ ],
2852
+ color: "primary",
2853
+ fill: false
2854
+ },
2855
+ path43: {
2856
+ type: "path",
2857
+ points: [
2858
+ {
2859
+ x: 0.1413337499999996,
2860
+ y: -0.13205025000000026
2861
+ },
2862
+ {
2863
+ x: 0.1413337499999996,
2864
+ y: 0.1325331499999991
2865
+ }
2866
+ ],
2867
+ color: "primary",
2868
+ fill: false
2869
+ },
2870
+ path44: {
2871
+ type: "path",
2872
+ points: [
2873
+ {
2874
+ x: -0.12545425,
2875
+ y: 24145000000008743e-20
2876
+ },
2877
+ {
2878
+ x: -0.52012455,
2879
+ y: 24145000000008743e-20
2880
+ }
2881
+ ],
2882
+ color: "primary",
2883
+ fill: false
2884
+ },
2885
+ "path44-0": {
2886
+ type: "path",
2887
+ points: [
2888
+ {
2889
+ x: 0.5201245499999998,
2890
+ y: 32664999999965083e-20
2891
+ },
2892
+ {
2893
+ x: 0.14641644999999937,
2894
+ y: 32664999999965083e-20
2895
+ }
2896
+ ],
2897
+ color: "primary",
2898
+ fill: false
2899
+ },
2900
+ "path43-8": {
2901
+ type: "path",
2902
+ points: [
2903
+ {
2904
+ x: 0.1401360499999995,
2905
+ y: -0.13253315000000043
2906
+ },
2907
+ {
2908
+ x: 0.07403164999999912,
2909
+ y: -0.13204314999999966
2910
+ }
2911
+ ],
2912
+ color: "primary",
2913
+ fill: false
2914
+ }
2915
+ },
2916
+ texts: {
2917
+ top1: {
2918
+ type: "text",
2919
+ text: "{REF}",
2920
+ x: -0.0082802500000001,
2921
+ y: -0.22956755000000006
2922
+ },
2923
+ bottom1: {
2924
+ type: "text",
2925
+ text: "{VAL}",
2926
+ x: -0.0033669500000002017,
2927
+ y: 0.31812304999999985
2928
+ }
2929
+ },
2930
+ refblocks: {
2931
+ left1: {
2932
+ x: -0.5224022500000005,
2933
+ y: -6429500000009192e-19
2934
+ },
2935
+ right1: {
2936
+ x: 0.5158919499999994,
2937
+ y: 38165000000001115e-20
2938
+ }
2939
+ },
2940
+ bounds: {
2941
+ minX: -0.52012455,
2942
+ maxX: 0.5201245499999998,
2943
+ minY: -0.13253315000000043,
2944
+ maxY: 0.13253315000000043,
2945
+ width: 1.0402490999999998,
2946
+ height: 1,
2947
+ centerX: -11102230246251565e-32,
2948
+ centerY: 0
2949
+ },
2950
+ circles: {}
2951
+ };
2952
+
2953
+ // symbols/zener_diode_horz.ts
2954
+ var { paths: paths16, texts: texts17, bounds: bounds16, refblocks: refblocks16, circles: circles6 } = zener_diode_default;
2955
+ var zener_diode_horz_default = defineSymbol({
2956
+ primitives: [
2957
+ ...Object.values(paths16),
2958
+ ...Object.values(circles6),
2959
+ { ...texts17.top1, anchor: "middle_bottom" },
2960
+ { ...texts17.bottom1, anchor: "middle_top" }
2961
+ ],
2962
+ ports: [
2963
+ { ...refblocks16.left1, labels: ["1"] },
2964
+ // TODO add more "standard" labels
2965
+ { ...refblocks16.right1, labels: ["2"] }
2966
+ // TODO add more "standard" labels
2967
+ ],
2968
+ size: { width: bounds16.width, height: bounds16.height },
2969
+ center: { x: bounds16.centerX, y: bounds16.centerY }
2970
+ });
2971
+
2972
+ // symbols/zener_diode_vert.ts
2973
+ var rotated9 = rotateSymbol(zener_diode_horz_default);
2974
+ var ref9 = rotated9.primitives.find(
2975
+ (p) => p.type === "text" && p.text === "{REF}"
2976
+ );
2977
+ var val8 = rotated9.primitives.find(
2978
+ (p) => p.type === "text" && p.text === "{VAL}"
2979
+ );
2980
+ ref9.anchor = "middle_left";
2981
+ val8.anchor = "middle_right";
2982
+ var zener_diode_vert_default = rotated9;
2983
+
2615
2984
  // generated/symbols-index.ts
2616
2985
  var symbols_index_default = {
2986
+ "avalanche_diode_horz": avalanche_diode_horz_default,
2987
+ "avalanche_diode_vert": avalanche_diode_vert_default,
2617
2988
  "boxresistor_horz": boxresistor_horz_default,
2618
2989
  "boxresistor_vert": boxresistor_vert_default,
2619
2990
  "capacitor_horz": capacitor_horz_default,
@@ -2643,7 +3014,9 @@ var symbols_index_default = {
2643
3014
  "varistor_horz": varistor_horz_default,
2644
3015
  "varistor_vert": varistor_vert_default,
2645
3016
  "volt_meter_horz": volt_meter_horz_default,
2646
- "volt_meter_vert": volt_meter_vert_default
3017
+ "volt_meter_vert": volt_meter_vert_default,
3018
+ "zener_diode_horz": zener_diode_horz_default,
3019
+ "zener_diode_vert": zener_diode_vert_default
2647
3020
  };
2648
3021
 
2649
3022
  // drawing/mapColor.ts