schematic-symbols 0.0.92 → 0.0.94

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
@@ -195,17 +195,61 @@ var ac_voltmeter_horz_default = defineSymbol({
195
195
 
196
196
  // drawing/rotateSymbol.ts
197
197
  import { rotate, applyToPoint } from "transformation-matrix";
198
- var rotateAnchor = (anchor) => {
199
- switch (anchor) {
200
- case "middle_top":
201
- return "middle_right";
202
- case "middle_bottom":
203
- return "middle_left";
198
+ var rotateAnchor = (anchor, orientation = "right") => {
199
+ switch (orientation) {
200
+ case "up":
201
+ switch (anchor) {
202
+ case "middle_top":
203
+ return "middle_left";
204
+ case "middle_bottom":
205
+ return "middle_right";
206
+ case "middle_left":
207
+ return "middle_bottom";
208
+ case "middle_right":
209
+ return "middle_top";
210
+ }
211
+ break;
212
+ case "down":
213
+ switch (anchor) {
214
+ case "middle_top":
215
+ return "middle_right";
216
+ case "middle_bottom":
217
+ return "middle_left";
218
+ case "middle_left":
219
+ return "middle_top";
220
+ case "middle_right":
221
+ return "middle_bottom";
222
+ }
223
+ break;
224
+ case "left":
225
+ switch (anchor) {
226
+ case "middle_top":
227
+ return "middle_left";
228
+ case "middle_bottom":
229
+ return "middle_right";
230
+ case "middle_left":
231
+ return "middle_bottom";
232
+ case "middle_right":
233
+ return "middle_top";
234
+ }
235
+ break;
236
+ case "right":
237
+ return anchor;
204
238
  }
205
239
  return anchor;
206
240
  };
207
- var rotateSymbol = (symbol, overrides) => {
208
- const transform = rotate(Math.PI / 2, symbol.center.x, symbol.center.y);
241
+ var rotateSymbol = (symbol, orientation, overrides) => {
242
+ const angleMap = {
243
+ up: -Math.PI / 2,
244
+ right: 0,
245
+ down: Math.PI / 2,
246
+ left: -Math.PI
247
+ };
248
+ const transform = rotate(
249
+ orientation ? angleMap[orientation] : Math.PI / 2,
250
+ symbol.center.x,
251
+ symbol.center.y
252
+ );
209
253
  const { primitives, center, size, ports } = symbol;
210
254
  const rotatedPrimitives = primitives.map((primitive) => {
211
255
  primitive = { ...primitive };
@@ -222,7 +266,10 @@ var rotateSymbol = (symbol, overrides) => {
222
266
  x: primitive.x,
223
267
  y: primitive.y
224
268
  });
225
- primitive.anchor = rotateAnchor(primitive.anchor);
269
+ primitive.anchor = rotateAnchor(
270
+ primitive.anchor,
271
+ orientation ?? "right"
272
+ );
226
273
  return {
227
274
  ...primitive,
228
275
  x: rotatedPoint.x,
@@ -262,10 +309,9 @@ var rotateSymbol = (symbol, overrides) => {
262
309
  primitives: rotatedPrimitives,
263
310
  center,
264
311
  ports: rotatedPorts,
265
- // TODO recompute size using overrides
266
312
  size: {
267
- width: size.height,
268
- height: size.width
313
+ width: orientation === "up" || orientation === "down" ? size.width : size.height,
314
+ height: orientation === "up" || orientation === "down" ? size.height : size.width
269
315
  },
270
316
  ...overrides
271
317
  };
@@ -2067,36 +2113,6 @@ var diode_default = {
2067
2113
  ],
2068
2114
  color: "primary",
2069
2115
  fill: false
2070
- },
2071
- "path43-5": {
2072
- type: "path",
2073
- points: [
2074
- {
2075
- x: 0.19156529999999972,
2076
- y: 0.09340209999999871
2077
- },
2078
- {
2079
- x: 0.14591529999999908,
2080
- y: 0.0937620999999993
2081
- }
2082
- ],
2083
- color: "primary",
2084
- fill: false
2085
- },
2086
- "path43-5-2": {
2087
- type: "path",
2088
- points: [
2089
- {
2090
- x: 0.19233440000000046,
2091
- y: 0.1405493999999976
2092
- },
2093
- {
2094
- x: 0.19197439999999988,
2095
- y: 0.09489939999999919
2096
- }
2097
- ],
2098
- color: "primary",
2099
- fill: false
2100
2116
  }
2101
2117
  },
2102
2118
  texts: {
@@ -2136,11 +2152,12 @@ var diode_default = {
2136
2152
  circles: {}
2137
2153
  };
2138
2154
 
2139
- // symbols/diode_horz.ts
2140
- var { paths: paths12, texts: texts14, bounds: bounds12, refblocks: refblocks12 } = diode_default;
2141
- var diode_horz_default = defineSymbol({
2155
+ // symbols/diode_right.ts
2156
+ var { paths: paths12, texts: texts14, bounds: bounds12, refblocks: refblocks12, circles: circles10 } = diode_default;
2157
+ var diode_right_default = defineSymbol({
2142
2158
  primitives: [
2143
2159
  ...Object.values(paths12),
2160
+ ...Object.values(circles10),
2144
2161
  { ...texts14.top1, anchor: "middle_bottom" },
2145
2162
  { ...texts14.bottom1, anchor: "middle_top" }
2146
2163
  ],
@@ -2154,8 +2171,14 @@ var diode_horz_default = defineSymbol({
2154
2171
  center: { x: bounds12.centerX, y: bounds12.centerY }
2155
2172
  });
2156
2173
 
2157
- // symbols/diode_vert.ts
2158
- var diode_vert_default = rotateSymbol(diode_horz_default);
2174
+ // symbols/diode_down.ts
2175
+ var diode_down_default = rotateSymbol(diode_right_default, "down");
2176
+
2177
+ // symbols/diode_left.ts
2178
+ var diode_left_default = rotateSymbol(diode_right_default, "left");
2179
+
2180
+ // symbols/diode_up.ts
2181
+ var diode_up_default = rotateSymbol(diode_right_default, "up");
2159
2182
 
2160
2183
  // assets/generated/dpst_switch.json
2161
2184
  var dpst_switch_default = {
@@ -2313,11 +2336,11 @@ var dpst_switch_default = {
2313
2336
  };
2314
2337
 
2315
2338
  // symbols/dpst_switch_horz.ts
2316
- var { paths: paths13, texts: texts15, bounds: bounds13, refblocks: refblocks13, circles: circles10 } = dpst_switch_default;
2339
+ var { paths: paths13, texts: texts15, bounds: bounds13, refblocks: refblocks13, circles: circles11 } = dpst_switch_default;
2317
2340
  var dpst_switch_horz_default = defineSymbol({
2318
2341
  primitives: [
2319
2342
  ...Object.values(paths13),
2320
- ...Object.values(circles10),
2343
+ ...Object.values(circles11),
2321
2344
  { ...texts15.top1, anchor: "middle_bottom", x: 0 },
2322
2345
  { ...texts15.bottom1, anchor: "middle_top", x: 0 }
2323
2346
  ],
@@ -2464,11 +2487,11 @@ var filled_diode_default = {
2464
2487
  };
2465
2488
 
2466
2489
  // symbols/filled_diode_horz.ts
2467
- var { paths: paths14, texts: texts17, bounds: bounds14, refblocks: refblocks14, circles: circles11 } = filled_diode_default;
2490
+ var { paths: paths14, texts: texts17, bounds: bounds14, refblocks: refblocks14, circles: circles12 } = filled_diode_default;
2468
2491
  var filled_diode_horz_default = defineSymbol({
2469
2492
  primitives: [
2470
2493
  ...Object.values(paths14),
2471
- ...Object.values(circles11),
2494
+ ...Object.values(circles12),
2472
2495
  {
2473
2496
  type: "text",
2474
2497
  text: "{REF}",
@@ -2584,11 +2607,11 @@ var frequency_meter_default = {
2584
2607
  };
2585
2608
 
2586
2609
  // symbols/frequency_meter_horz.ts
2587
- var { paths: paths15, texts: texts18, bounds: bounds15, refblocks: refblocks15, circles: circles12 } = frequency_meter_default;
2610
+ var { paths: paths15, texts: texts18, bounds: bounds15, refblocks: refblocks15, circles: circles13 } = frequency_meter_default;
2588
2611
  var frequency_meter_horz_default = defineSymbol({
2589
2612
  primitives: [
2590
2613
  ...Object.values(paths15),
2591
- ...Object.values(circles12),
2614
+ ...Object.values(circles13),
2592
2615
  {
2593
2616
  type: "text",
2594
2617
  text: "{REF}",
@@ -2845,11 +2868,11 @@ var ground_default = {
2845
2868
  };
2846
2869
 
2847
2870
  // symbols/ground_horz.ts
2848
- var { paths: paths17, circles: circles13, bounds: bounds17, refblocks: refblocks17 } = ground_default;
2871
+ var { paths: paths17, circles: circles14, bounds: bounds17, refblocks: refblocks17 } = ground_default;
2849
2872
  var horizontalSymbol = defineSymbol({
2850
2873
  primitives: [
2851
2874
  ...Object.values(paths17),
2852
- ...Object.values(circles13),
2875
+ ...Object.values(circles14),
2853
2876
  {
2854
2877
  type: "text",
2855
2878
  text: "{REF}",
@@ -2880,11 +2903,11 @@ var horizontalSymbol = defineSymbol({
2880
2903
  var ground_horz_default = horizontalSymbol;
2881
2904
 
2882
2905
  // symbols/ground_vert.ts
2883
- var { paths: paths18, circles: circles14, bounds: bounds18, refblocks: refblocks18 } = ground_default;
2906
+ var { paths: paths18, circles: circles15, bounds: bounds18, refblocks: refblocks18 } = ground_default;
2884
2907
  var verticalSymbol = defineSymbol({
2885
2908
  primitives: [
2886
2909
  ...Object.values(paths18),
2887
- ...Object.values(circles14),
2910
+ ...Object.values(circles15),
2888
2911
  {
2889
2912
  type: "text",
2890
2913
  text: "{REF}",
@@ -3032,11 +3055,11 @@ var gunn_diode_default = {
3032
3055
  };
3033
3056
 
3034
3057
  // symbols/gunn_diode_horz.ts
3035
- var { paths: paths19, texts: texts20, bounds: bounds19, refblocks: refblocks19, circles: circles15 } = gunn_diode_default;
3058
+ var { paths: paths19, texts: texts20, bounds: bounds19, refblocks: refblocks19, circles: circles16 } = gunn_diode_default;
3036
3059
  var gunn_diode_horz_default = defineSymbol({
3037
3060
  primitives: [
3038
3061
  ...Object.values(paths19),
3039
- ...Object.values(circles15),
3062
+ ...Object.values(circles16),
3040
3063
  { ...texts20.top1, anchor: "middle_left" },
3041
3064
  {
3042
3065
  type: "text",
@@ -3246,11 +3269,11 @@ var igbt_transistor_default = {
3246
3269
  };
3247
3270
 
3248
3271
  // symbols/igbt_transistor_horz.ts
3249
- var { paths: paths20, texts: texts22, bounds: bounds20, refblocks: refblocks20, circles: circles16 } = igbt_transistor_default;
3272
+ var { paths: paths20, texts: texts22, bounds: bounds20, refblocks: refblocks20, circles: circles17 } = igbt_transistor_default;
3250
3273
  var igbt_transistor_horz_default = defineSymbol({
3251
3274
  primitives: [
3252
3275
  ...Object.values(paths20),
3253
- ...Object.values(circles16),
3276
+ ...Object.values(circles17),
3254
3277
  {
3255
3278
  type: "text",
3256
3279
  text: "{REF}",
@@ -3525,11 +3548,11 @@ var illuminated_push_button_normally_open_default = {
3525
3548
  };
3526
3549
 
3527
3550
  // symbols/illuminated_push_button_normally_open_horz.ts
3528
- var { paths: paths21, texts: texts23, bounds: bounds21, refblocks: refblocks21, circles: circles17 } = illuminated_push_button_normally_open_default;
3551
+ var { paths: paths21, texts: texts23, bounds: bounds21, refblocks: refblocks21, circles: circles18 } = illuminated_push_button_normally_open_default;
3529
3552
  var illuminated_push_button_normally_open_horz_default = defineSymbol({
3530
3553
  primitives: [
3531
3554
  ...Object.values(paths21),
3532
- ...Object.values(circles17),
3555
+ ...Object.values(circles18),
3533
3556
  { ...texts23.top1, anchor: "middle_right", x: 0, y: -0.4 },
3534
3557
  { ...texts23.bottom1, anchor: "middle_right", x: 0 }
3535
3558
  ],
@@ -4632,11 +4655,11 @@ var inductor_default = {
4632
4655
  };
4633
4656
 
4634
4657
  // symbols/inductor_horz.ts
4635
- var { paths: paths22, texts: texts25, bounds: bounds22, refblocks: refblocks22, circles: circles18 } = inductor_default;
4658
+ var { paths: paths22, texts: texts25, bounds: bounds22, refblocks: refblocks22, circles: circles19 } = inductor_default;
4636
4659
  var inductor_horz_default = defineSymbol({
4637
4660
  primitives: [
4638
4661
  ...Object.values(paths22),
4639
- ...Object.values(circles18),
4662
+ ...Object.values(circles19),
4640
4663
  { ...texts25.top1, anchor: "middle_bottom" },
4641
4664
  { ...texts25.bottom1, anchor: "middle_top" }
4642
4665
  ],
@@ -4893,11 +4916,11 @@ var laser_diode_default = {
4893
4916
  };
4894
4917
 
4895
4918
  // symbols/laser_diode_horz.ts
4896
- var { paths: paths23, texts: texts26, bounds: bounds23, refblocks: refblocks23, circles: circles19 } = laser_diode_default;
4919
+ var { paths: paths23, texts: texts26, bounds: bounds23, refblocks: refblocks23, circles: circles20 } = laser_diode_default;
4897
4920
  var laser_diode_horz_default = defineSymbol({
4898
4921
  primitives: [
4899
4922
  ...Object.values(paths23),
4900
- ...Object.values(circles19),
4923
+ ...Object.values(circles20),
4901
4924
  { ...texts26.top1, anchor: "middle_left" },
4902
4925
  { ...texts26.bottom1, anchor: "middle_bottom" }
4903
4926
  ],
@@ -5391,11 +5414,11 @@ var light_dependent_resistor_default = {
5391
5414
  };
5392
5415
 
5393
5416
  // symbols/light_dependent_resistor_horz.ts
5394
- var { paths: paths25, texts: texts29, bounds: bounds25, refblocks: refblocks25, circles: circles20 } = light_dependent_resistor_default;
5417
+ var { paths: paths25, texts: texts29, bounds: bounds25, refblocks: refblocks25, circles: circles21 } = light_dependent_resistor_default;
5395
5418
  var light_dependent_resistor_horz_default = defineSymbol({
5396
5419
  primitives: [
5397
5420
  ...Object.values(paths25),
5398
- ...Object.values(circles20),
5421
+ ...Object.values(circles21),
5399
5422
  { ...texts29.top1, anchor: "middle_left", x: 0 },
5400
5423
  { ...texts29.bottom1, anchor: "middle_left", x: 0 }
5401
5424
  ],
@@ -6335,11 +6358,11 @@ var mushroom_head_normally_open_momentary_default = {
6335
6358
  };
6336
6359
 
6337
6360
  // symbols/mushroom_head_normally_open_momentary_horz.ts
6338
- var { paths: paths27, texts: texts32, bounds: bounds27, refblocks: refblocks27, circles: circles21 } = mushroom_head_normally_open_momentary_default;
6361
+ var { paths: paths27, texts: texts32, bounds: bounds27, refblocks: refblocks27, circles: circles22 } = mushroom_head_normally_open_momentary_default;
6339
6362
  var mushroom_head_normally_open_momentary_horz_default = defineSymbol({
6340
6363
  primitives: [
6341
6364
  ...Object.values(paths27),
6342
- ...Object.values(circles21),
6365
+ ...Object.values(circles22),
6343
6366
  { ...texts32.top1, anchor: "middle_bottom", x: 0 },
6344
6367
  { ...texts32.bottom1, anchor: "middle_top", x: 0 }
6345
6368
  ],
@@ -6561,11 +6584,11 @@ var n_channel_d_mosfet_transistor_default = {
6561
6584
  };
6562
6585
 
6563
6586
  // symbols/n_channel_d_mosfet_transistor_horz.ts
6564
- var { paths: paths28, texts: texts33, bounds: bounds28, refblocks: refblocks28, circles: circles22 } = n_channel_d_mosfet_transistor_default;
6587
+ var { paths: paths28, texts: texts33, bounds: bounds28, refblocks: refblocks28, circles: circles23 } = n_channel_d_mosfet_transistor_default;
6565
6588
  var n_channel_d_mosfet_transistor_horz_default = defineSymbol({
6566
6589
  primitives: [
6567
6590
  ...Object.values(paths28),
6568
- ...Object.values(circles22),
6591
+ ...Object.values(circles23),
6569
6592
  { ...texts33.top1, anchor: "middle_right", x: 0 },
6570
6593
  { ...texts33.bottom1, anchor: "middle_right", x: 0 }
6571
6594
  ],
@@ -6818,11 +6841,11 @@ var n_channel_e_mosfet_transistor_default = {
6818
6841
  };
6819
6842
 
6820
6843
  // symbols/n_channel_e_mosfet_transistor_horz.ts
6821
- var { paths: paths29, texts: texts35, bounds: bounds29, refblocks: refblocks29, circles: circles23 } = n_channel_e_mosfet_transistor_default;
6844
+ var { paths: paths29, texts: texts35, bounds: bounds29, refblocks: refblocks29, circles: circles24 } = n_channel_e_mosfet_transistor_default;
6822
6845
  var n_channel_e_mosfet_transistor_horz_default = defineSymbol({
6823
6846
  primitives: [
6824
6847
  ...Object.values(paths29),
6825
- ...Object.values(circles23),
6848
+ ...Object.values(circles24),
6826
6849
  { ...texts35.top1, anchor: "middle_right", x: 0 },
6827
6850
  { ...texts35.bottom1, anchor: "middle_right", x: 0 }
6828
6851
  ],
@@ -7015,11 +7038,11 @@ var njfet_transistor_default = {
7015
7038
  };
7016
7039
 
7017
7040
  // symbols/njfet_transistor_horz.ts
7018
- var { paths: paths30, texts: texts37, bounds: bounds30, refblocks: refblocks30, circles: circles24 } = njfet_transistor_default;
7041
+ var { paths: paths30, texts: texts37, bounds: bounds30, refblocks: refblocks30, circles: circles25 } = njfet_transistor_default;
7019
7042
  var njfet_transistor_horz_default = defineSymbol({
7020
7043
  primitives: [
7021
7044
  ...Object.values(paths30),
7022
- ...Object.values(circles24),
7045
+ ...Object.values(circles25),
7023
7046
  { ...texts37.top1, anchor: "middle_right", x: 0 },
7024
7047
  { ...texts37.bottom1, anchor: "middle_right", x: 0 }
7025
7048
  ],
@@ -7212,11 +7235,11 @@ var npn_bipolar_transistor_default = {
7212
7235
  };
7213
7236
 
7214
7237
  // symbols/npn_bipolar_transistor_horz.ts
7215
- var { paths: paths31, texts: texts39, bounds: bounds31, refblocks: refblocks31, circles: circles25 } = npn_bipolar_transistor_default;
7238
+ var { paths: paths31, texts: texts39, bounds: bounds31, refblocks: refblocks31, circles: circles26 } = npn_bipolar_transistor_default;
7216
7239
  var npn_bipolar_transistor_horz_default = defineSymbol({
7217
7240
  primitives: [
7218
7241
  ...Object.values(paths31),
7219
- ...Object.values(circles25),
7242
+ ...Object.values(circles26),
7220
7243
  {
7221
7244
  type: "text",
7222
7245
  text: "{REF}",
@@ -7442,11 +7465,11 @@ var p_channel_d_mosfet_transistor_default = {
7442
7465
  };
7443
7466
 
7444
7467
  // symbols/p_channel_d_mosfet_transistor_horz.ts
7445
- var { paths: paths32, texts: texts41, bounds: bounds32, refblocks: refblocks32, circles: circles26 } = p_channel_d_mosfet_transistor_default;
7468
+ var { paths: paths32, texts: texts41, bounds: bounds32, refblocks: refblocks32, circles: circles27 } = p_channel_d_mosfet_transistor_default;
7446
7469
  var p_channel_d_mosfet_transistor_horz_default = defineSymbol({
7447
7470
  primitives: [
7448
7471
  ...Object.values(paths32),
7449
- ...Object.values(circles26),
7472
+ ...Object.values(circles27),
7450
7473
  { ...texts41.top1, anchor: "middle_right", x: 0 },
7451
7474
  { ...texts41.bottom1, anchor: "middle_right", x: 0 }
7452
7475
  ],
@@ -7699,11 +7722,11 @@ var p_channel_e_mosfet_transistor_default = {
7699
7722
  };
7700
7723
 
7701
7724
  // symbols/p_channel_e_mosfet_transistor_horz.ts
7702
- var { paths: paths33, texts: texts43, bounds: bounds33, refblocks: refblocks33, circles: circles27 } = p_channel_e_mosfet_transistor_default;
7725
+ var { paths: paths33, texts: texts43, bounds: bounds33, refblocks: refblocks33, circles: circles28 } = p_channel_e_mosfet_transistor_default;
7703
7726
  var p_channel_e_mosfet_transistor_horz_default = defineSymbol({
7704
7727
  primitives: [
7705
7728
  ...Object.values(paths33),
7706
- ...Object.values(circles27),
7729
+ ...Object.values(circles28),
7707
7730
  { ...texts43.top1, anchor: "middle_right", x: 0 },
7708
7731
  { ...texts43.bottom1, anchor: "middle_right", x: 0 }
7709
7732
  ],
@@ -7957,11 +7980,11 @@ var photodiode_default = {
7957
7980
  };
7958
7981
 
7959
7982
  // symbols/photodiode_horz.ts
7960
- var { paths: paths34, texts: texts45, bounds: bounds34, refblocks: refblocks34, circles: circles28 } = photodiode_default;
7983
+ var { paths: paths34, texts: texts45, bounds: bounds34, refblocks: refblocks34, circles: circles29 } = photodiode_default;
7961
7984
  var photodiode_horz_default = defineSymbol({
7962
7985
  primitives: [
7963
7986
  ...Object.values(paths34),
7964
- ...Object.values(circles28),
7987
+ ...Object.values(circles29),
7965
7988
  {
7966
7989
  type: "text",
7967
7990
  text: "{REF}",
@@ -8159,11 +8182,11 @@ var pjfet_transistor_default = {
8159
8182
  };
8160
8183
 
8161
8184
  // symbols/pjfet_transistor_horz.ts
8162
- var { paths: paths35, texts: texts47, bounds: bounds35, refblocks: refblocks35, circles: circles29 } = pjfet_transistor_default;
8185
+ var { paths: paths35, texts: texts47, bounds: bounds35, refblocks: refblocks35, circles: circles30 } = pjfet_transistor_default;
8163
8186
  var pjfet_transistor_horz_default = defineSymbol({
8164
8187
  primitives: [
8165
8188
  ...Object.values(paths35),
8166
- ...Object.values(circles29),
8189
+ ...Object.values(circles30),
8167
8190
  { ...texts47.top1, anchor: "middle_right", x: 0 },
8168
8191
  { ...texts47.bottom1, anchor: "middle_right" }
8169
8192
  ],
@@ -8356,11 +8379,11 @@ var pnp_bipolar_transistor_default = {
8356
8379
  };
8357
8380
 
8358
8381
  // symbols/pnp_bipolar_transistor_horz.ts
8359
- var { paths: paths36, texts: texts49, bounds: bounds36, refblocks: refblocks36, circles: circles30 } = pnp_bipolar_transistor_default;
8382
+ var { paths: paths36, texts: texts49, bounds: bounds36, refblocks: refblocks36, circles: circles31 } = pnp_bipolar_transistor_default;
8360
8383
  var pnp_bipolar_transistor_horz_default = defineSymbol({
8361
8384
  primitives: [
8362
8385
  ...Object.values(paths36),
8363
- ...Object.values(circles30),
8386
+ ...Object.values(circles31),
8364
8387
  {
8365
8388
  type: "text",
8366
8389
  text: "{REF}",
@@ -8791,11 +8814,11 @@ var power_factor_meter_default = {
8791
8814
  };
8792
8815
 
8793
8816
  // symbols/power_factor_meter_horz.ts
8794
- var { paths: paths39, texts: texts53, bounds: bounds39, refblocks: refblocks39, circles: circles31 } = power_factor_meter_default;
8817
+ var { paths: paths39, texts: texts53, bounds: bounds39, refblocks: refblocks39, circles: circles32 } = power_factor_meter_default;
8795
8818
  var power_factor_meter_horz_default = defineSymbol({
8796
8819
  primitives: [
8797
8820
  ...Object.values(paths39),
8798
- ...Object.values(circles31),
8821
+ ...Object.values(circles32),
8799
8822
  // { ...texts.top1, anchor: "middle_left" },
8800
8823
  {
8801
8824
  type: "text",
@@ -9525,11 +9548,11 @@ var rectifier_diode_default = {
9525
9548
  };
9526
9549
 
9527
9550
  // symbols/rectifier_diode_horz.ts
9528
- var { paths: paths42, texts: texts57, bounds: bounds42, refblocks: refblocks42, circles: circles32 } = rectifier_diode_default;
9551
+ var { paths: paths42, texts: texts57, bounds: bounds42, refblocks: refblocks42, circles: circles33 } = rectifier_diode_default;
9529
9552
  var rectifier_diode_horz_default = defineSymbol({
9530
9553
  primitives: [
9531
9554
  ...Object.values(paths42),
9532
- ...Object.values(circles32),
9555
+ ...Object.values(circles33),
9533
9556
  { ...texts57.top1, anchor: "middle_right" },
9534
9557
  { ...texts57.bottom1, anchor: "middle_right" }
9535
9558
  ],
@@ -9905,11 +9928,11 @@ var resonator_default = {
9905
9928
  };
9906
9929
 
9907
9930
  // symbols/resonator_horz.ts
9908
- var { paths: paths43, texts: texts58, bounds: bounds43, refblocks: refblocks43, circles: circles33 } = resonator_default;
9931
+ var { paths: paths43, texts: texts58, bounds: bounds43, refblocks: refblocks43, circles: circles34 } = resonator_default;
9909
9932
  var resonator_horz_default = defineSymbol({
9910
9933
  primitives: [
9911
9934
  ...Object.values(paths43),
9912
- ...Object.values(circles33),
9935
+ ...Object.values(circles34),
9913
9936
  // { ...texts.top1, anchor: "middle_left" },
9914
9937
  // { ...texts.bottom1, anchor: "middle_left" },
9915
9938
  {
@@ -10134,11 +10157,11 @@ var schottky_diode_default = {
10134
10157
  };
10135
10158
 
10136
10159
  // symbols/schottky_diode_horz.ts
10137
- var { paths: paths44, texts: texts59, bounds: bounds44, refblocks: refblocks44, circles: circles34 } = schottky_diode_default;
10160
+ var { paths: paths44, texts: texts59, bounds: bounds44, refblocks: refblocks44, circles: circles35 } = schottky_diode_default;
10138
10161
  var schottky_diode_horz_default = defineSymbol({
10139
10162
  primitives: [
10140
10163
  ...Object.values(paths44),
10141
- ...Object.values(circles34),
10164
+ ...Object.values(circles35),
10142
10165
  { ...texts59.top1, anchor: "middle_bottom" },
10143
10166
  { ...texts59.bottom1, anchor: "middle_top" }
10144
10167
  ],
@@ -10308,11 +10331,11 @@ var silicon_controlled_rectifier_default = {
10308
10331
  };
10309
10332
 
10310
10333
  // symbols/silicon_controlled_rectifier_horz.ts
10311
- var { paths: paths45, texts: texts60, bounds: bounds45, refblocks: refblocks45, circles: circles35 } = silicon_controlled_rectifier_default;
10334
+ var { paths: paths45, texts: texts60, bounds: bounds45, refblocks: refblocks45, circles: circles36 } = silicon_controlled_rectifier_default;
10312
10335
  var silicon_controlled_rectifier_horz_default = defineSymbol({
10313
10336
  primitives: [
10314
10337
  ...Object.values(paths45),
10315
- ...Object.values(circles35),
10338
+ ...Object.values(circles36),
10316
10339
  { ...texts60.top1, anchor: "middle_left" },
10317
10340
  { ...texts60.bottom1, anchor: "middle_top" }
10318
10341
  ],
@@ -10456,11 +10479,11 @@ var SPDT_switch_default = {
10456
10479
  };
10457
10480
 
10458
10481
  // symbols/SPDT_switch_horz.ts
10459
- var { paths: paths46, texts: texts62, bounds: bounds46, refblocks: refblocks46, circles: circles36 } = SPDT_switch_default;
10482
+ var { paths: paths46, texts: texts62, bounds: bounds46, refblocks: refblocks46, circles: circles37 } = SPDT_switch_default;
10460
10483
  var SPDT_switch_horz_default = defineSymbol({
10461
10484
  primitives: [
10462
10485
  ...Object.values(paths46),
10463
- ...Object.values(circles36),
10486
+ ...Object.values(circles37),
10464
10487
  { ...texts62.top1, anchor: "middle_bottom", x: -0.01 },
10465
10488
  { ...texts62.bottom1, anchor: "middle_top", x: -0.01 }
10466
10489
  ],
@@ -10584,11 +10607,11 @@ var SPST_switch_default = {
10584
10607
  };
10585
10608
 
10586
10609
  // symbols/SPST_switch_horz.ts
10587
- var { paths: paths47, texts: texts64, bounds: bounds47, refblocks: refblocks47, circles: circles37 } = SPST_switch_default;
10610
+ var { paths: paths47, texts: texts64, bounds: bounds47, refblocks: refblocks47, circles: circles38 } = SPST_switch_default;
10588
10611
  var SPST_switch_horz_default = defineSymbol({
10589
10612
  primitives: [
10590
10613
  ...Object.values(paths47),
10591
- ...Object.values(circles37),
10614
+ ...Object.values(circles38),
10592
10615
  { ...texts64.top1, anchor: "middle_bottom", x: 0 },
10593
10616
  { ...texts64.bottom1, anchor: "middle_top", x: 0 }
10594
10617
  ],
@@ -10777,11 +10800,11 @@ var step_recovery_diode_default = {
10777
10800
  };
10778
10801
 
10779
10802
  // symbols/step_recovery_diode_horz.ts
10780
- var { paths: paths48, texts: texts66, bounds: bounds48, refblocks: refblocks48, circles: circles38 } = step_recovery_diode_default;
10803
+ var { paths: paths48, texts: texts66, bounds: bounds48, refblocks: refblocks48, circles: circles39 } = step_recovery_diode_default;
10781
10804
  var step_recovery_diode_horz_default = defineSymbol({
10782
10805
  primitives: [
10783
10806
  ...Object.values(paths48),
10784
- ...Object.values(circles38),
10807
+ ...Object.values(circles39),
10785
10808
  // { ...texts.top1, anchor: "middle_left" },
10786
10809
  // { ...texts.bottom1, anchor: "middle_left" },
10787
10810
  {
@@ -10899,11 +10922,11 @@ var tachometer_default = {
10899
10922
  };
10900
10923
 
10901
10924
  // symbols/tachometer_horz.ts
10902
- var { paths: paths49, texts: texts67, bounds: bounds49, refblocks: refblocks49, circles: circles39 } = tachometer_default;
10925
+ var { paths: paths49, texts: texts67, bounds: bounds49, refblocks: refblocks49, circles: circles40 } = tachometer_default;
10903
10926
  var tachometer_horz_default = defineSymbol({
10904
10927
  primitives: [
10905
10928
  ...Object.values(paths49),
10906
- ...Object.values(circles39),
10929
+ ...Object.values(circles40),
10907
10930
  {
10908
10931
  type: "text",
10909
10932
  text: "{REF}",
@@ -11135,11 +11158,11 @@ var triac_default = {
11135
11158
  };
11136
11159
 
11137
11160
  // symbols/triac_horz.ts
11138
- var { paths: paths50, texts: texts68, bounds: bounds50, refblocks: refblocks50, circles: circles40 } = triac_default;
11161
+ var { paths: paths50, texts: texts68, bounds: bounds50, refblocks: refblocks50, circles: circles41 } = triac_default;
11139
11162
  var triac_horz_default = defineSymbol({
11140
11163
  primitives: [
11141
11164
  ...Object.values(paths50),
11142
- ...Object.values(circles40),
11165
+ ...Object.values(circles41),
11143
11166
  { ...texts68.top1, anchor: "middle_left" },
11144
11167
  { ...texts68.bottom1, anchor: "middle_top" }
11145
11168
  ],
@@ -11328,11 +11351,11 @@ var tunnel_diode_default = {
11328
11351
  };
11329
11352
 
11330
11353
  // symbols/tunnel_diode_horz.ts
11331
- var { paths: paths51, texts: texts70, bounds: bounds51, refblocks: refblocks51, circles: circles41 } = tunnel_diode_default;
11354
+ var { paths: paths51, texts: texts70, bounds: bounds51, refblocks: refblocks51, circles: circles42 } = tunnel_diode_default;
11332
11355
  var tunnel_diode_horz_default = defineSymbol({
11333
11356
  primitives: [
11334
11357
  ...Object.values(paths51),
11335
- ...Object.values(circles41),
11358
+ ...Object.values(circles42),
11336
11359
  { ...texts70.top1, anchor: "middle_bottom" },
11337
11360
  { ...texts70.bottom1, anchor: "middle_top" }
11338
11361
  ],
@@ -11526,11 +11549,11 @@ var unijunction_transistor_default = {
11526
11549
  };
11527
11550
 
11528
11551
  // symbols/unijunction_transistor_horz.ts
11529
- var { paths: paths52, texts: texts71, bounds: bounds52, refblocks: refblocks52, circles: circles42 } = unijunction_transistor_default;
11552
+ var { paths: paths52, texts: texts71, bounds: bounds52, refblocks: refblocks52, circles: circles43 } = unijunction_transistor_default;
11530
11553
  var unijunction_transistor_horz_default = defineSymbol({
11531
11554
  primitives: [
11532
11555
  ...Object.values(paths52),
11533
- ...Object.values(circles42),
11556
+ ...Object.values(circles43),
11534
11557
  { ...texts71.top1, anchor: "middle_left" },
11535
11558
  { ...texts71.bottom1, anchor: "middle_right" }
11536
11559
  ],
@@ -11645,11 +11668,11 @@ var var_meter_default = {
11645
11668
  };
11646
11669
 
11647
11670
  // symbols/var_meter_horz.ts
11648
- var { paths: paths53, texts: texts73, bounds: bounds53, refblocks: refblocks53, circles: circles43 } = var_meter_default;
11671
+ var { paths: paths53, texts: texts73, bounds: bounds53, refblocks: refblocks53, circles: circles44 } = var_meter_default;
11649
11672
  var var_meter_horz_default = defineSymbol({
11650
11673
  primitives: [
11651
11674
  ...Object.values(paths53),
11652
- ...Object.values(circles43),
11675
+ ...Object.values(circles44),
11653
11676
  {
11654
11677
  ...texts73.top1,
11655
11678
  x: 0,
@@ -11824,11 +11847,11 @@ var varactor_diode_default = {
11824
11847
  };
11825
11848
 
11826
11849
  // symbols/varactor_diode_horz.ts
11827
- var { paths: paths54, texts: texts74, bounds: bounds54, refblocks: refblocks54, circles: circles44 } = varactor_diode_default;
11850
+ var { paths: paths54, texts: texts74, bounds: bounds54, refblocks: refblocks54, circles: circles45 } = varactor_diode_default;
11828
11851
  var varactor_diode_horz_default = defineSymbol({
11829
11852
  primitives: [
11830
11853
  ...Object.values(paths54),
11831
- ...Object.values(circles44),
11854
+ ...Object.values(circles45),
11832
11855
  { ...texts74.top1, anchor: "middle_bottom" },
11833
11856
  { ...texts74.bottom1, anchor: "middle_top" }
11834
11857
  ],
@@ -12010,7 +12033,7 @@ var varistor_horz_default = defineSymbol({
12010
12033
  });
12011
12034
 
12012
12035
  // symbols/varistor_vert.ts
12013
- var varistor_vert_default = rotateSymbol(varistor_horz_default, {});
12036
+ var varistor_vert_default = rotateSymbol(varistor_horz_default);
12014
12037
 
12015
12038
  // assets/generated/varmeter.json
12016
12039
  var varmeter_default = {
@@ -12099,11 +12122,11 @@ var varmeter_default = {
12099
12122
  };
12100
12123
 
12101
12124
  // symbols/varmeter_horz.ts
12102
- var { paths: paths56, texts: texts76, bounds: bounds56, refblocks: refblocks56, circles: circles45 } = varmeter_default;
12125
+ var { paths: paths56, texts: texts76, bounds: bounds56, refblocks: refblocks56, circles: circles46 } = varmeter_default;
12103
12126
  var varmeter_horz_default = defineSymbol({
12104
12127
  primitives: [
12105
12128
  ...Object.values(paths56),
12106
- ...Object.values(circles45),
12129
+ ...Object.values(circles46),
12107
12130
  {
12108
12131
  type: "text",
12109
12132
  text: "{REF}",
@@ -12244,11 +12267,11 @@ var volt_meter_default = {
12244
12267
  };
12245
12268
 
12246
12269
  // symbols/volt_meter_horz.ts
12247
- var { paths: paths57, texts: texts77, bounds: bounds57, circles: circles46, refblocks: refblocks57 } = volt_meter_default;
12270
+ var { paths: paths57, texts: texts77, bounds: bounds57, circles: circles47, refblocks: refblocks57 } = volt_meter_default;
12248
12271
  var volt_meter_horz_default = defineSymbol({
12249
12272
  primitives: [
12250
12273
  ...Object.values(paths57),
12251
- ...Object.values(circles46),
12274
+ ...Object.values(circles47),
12252
12275
  {
12253
12276
  type: "text",
12254
12277
  text: "{REF}",
@@ -12364,11 +12387,11 @@ var watt_hour_meter_default = {
12364
12387
  };
12365
12388
 
12366
12389
  // symbols/watt_hour_meter_horz.ts
12367
- var { paths: paths58, texts: texts78, bounds: bounds58, refblocks: refblocks58, circles: circles47 } = watt_hour_meter_default;
12390
+ var { paths: paths58, texts: texts78, bounds: bounds58, refblocks: refblocks58, circles: circles48 } = watt_hour_meter_default;
12368
12391
  var watt_hour_meter_horz_default = defineSymbol({
12369
12392
  primitives: [
12370
12393
  ...Object.values(paths58),
12371
- ...Object.values(circles47),
12394
+ ...Object.values(circles48),
12372
12395
  {
12373
12396
  type: "text",
12374
12397
  text: "{REF}",
@@ -12496,11 +12519,11 @@ var wattmeter_default = {
12496
12519
  };
12497
12520
 
12498
12521
  // symbols/wattmeter_horz.ts
12499
- var { paths: paths59, texts: texts79, bounds: bounds59, refblocks: refblocks59, circles: circles48 } = wattmeter_default;
12522
+ var { paths: paths59, texts: texts79, bounds: bounds59, refblocks: refblocks59, circles: circles49 } = wattmeter_default;
12500
12523
  var wattmeter_horz_default = defineSymbol({
12501
12524
  primitives: [
12502
12525
  ...Object.values(paths59),
12503
- ...Object.values(circles48),
12526
+ ...Object.values(circles49),
12504
12527
  {
12505
12528
  type: "text",
12506
12529
  text: "{REF}",
@@ -12688,11 +12711,11 @@ var zener_diode_default = {
12688
12711
  };
12689
12712
 
12690
12713
  // symbols/zener_diode_horz.ts
12691
- var { paths: paths60, texts: texts80, bounds: bounds60, refblocks: refblocks60, circles: circles49 } = zener_diode_default;
12714
+ var { paths: paths60, texts: texts80, bounds: bounds60, refblocks: refblocks60, circles: circles50 } = zener_diode_default;
12692
12715
  var zener_diode_horz_default = defineSymbol({
12693
12716
  primitives: [
12694
12717
  ...Object.values(paths60),
12695
- ...Object.values(circles49),
12718
+ ...Object.values(circles50),
12696
12719
  { ...texts80.top1, anchor: "middle_bottom" },
12697
12720
  { ...texts80.bottom1, anchor: "middle_top" }
12698
12721
  ],
@@ -12742,8 +12765,10 @@ var symbols_index_default = {
12742
12765
  "dc_voltmeter_vert": dc_voltmeter_vert_default,
12743
12766
  "diac_horz": diac_horz_default,
12744
12767
  "diac_vert": diac_vert_default,
12745
- "diode_horz": diode_horz_default,
12746
- "diode_vert": diode_vert_default,
12768
+ "diode_down": diode_down_default,
12769
+ "diode_left": diode_left_default,
12770
+ "diode_right": diode_right_default,
12771
+ "diode_up": diode_up_default,
12747
12772
  "dpst_switch_horz": dpst_switch_horz_default,
12748
12773
  "dpst_switch_vert": dpst_switch_vert_default,
12749
12774
  "filled_diode_horz": filled_diode_horz_default,