schematic-symbols 0.0.95 → 0.0.97

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -194,7 +194,7 @@ var ac_voltmeter_horz_default = defineSymbol({
194
194
  });
195
195
 
196
196
  // drawing/rotateSymbol.ts
197
- import { rotate, applyToPoint } from "transformation-matrix";
197
+ import { rotate, applyToPoint, transform } from "transformation-matrix";
198
198
  var rotateAnchor = (anchor, orientation = "right") => {
199
199
  switch (orientation) {
200
200
  case "up":
@@ -238,6 +238,75 @@ var rotateAnchor = (anchor, orientation = "right") => {
238
238
  }
239
239
  return anchor;
240
240
  };
241
+ var flipSymbolOverYAxis = (symbol, overrides) => {
242
+ const { primitives, center, ports, size } = symbol;
243
+ const transformMatrix = transform({
244
+ a: -1,
245
+ b: 0,
246
+ c: 0,
247
+ d: 1,
248
+ e: 0,
249
+ f: 2 * center.x
250
+ });
251
+ const flippedPrimitives = primitives.map((primitive) => {
252
+ primitive = { ...primitive };
253
+ switch (primitive.type) {
254
+ case "path":
255
+ return {
256
+ ...primitive,
257
+ points: primitive.points.map(
258
+ (point) => applyToPoint(transformMatrix, point)
259
+ )
260
+ };
261
+ case "text":
262
+ const flippedPoint = applyToPoint(transformMatrix, {
263
+ x: primitive.x,
264
+ y: primitive.y
265
+ });
266
+ const anchorMap = {
267
+ top_left: "top_right",
268
+ top_right: "top_left",
269
+ bottom_left: "bottom_right",
270
+ bottom_right: "bottom_left",
271
+ center: "center",
272
+ middle_top: "middle_top",
273
+ middle_bottom: "middle_bottom",
274
+ middle_left: "middle_right",
275
+ middle_right: "middle_left"
276
+ };
277
+ return {
278
+ ...primitive,
279
+ x: flippedPoint.x,
280
+ y: flippedPoint.y,
281
+ anchor: anchorMap[primitive.anchor]
282
+ };
283
+ case "circle":
284
+ case "box":
285
+ const flippedCenter = applyToPoint(transformMatrix, {
286
+ x: primitive.x,
287
+ y: primitive.y
288
+ });
289
+ return {
290
+ ...primitive,
291
+ x: flippedCenter.x,
292
+ y: flippedCenter.y
293
+ };
294
+ }
295
+ });
296
+ const flippedPorts = ports.map(
297
+ (port) => ({
298
+ ...port,
299
+ ...applyToPoint(transformMatrix, port)
300
+ })
301
+ );
302
+ return {
303
+ primitives: flippedPrimitives,
304
+ center,
305
+ ports: flippedPorts,
306
+ size,
307
+ ...overrides
308
+ };
309
+ };
241
310
  var rotateSymbol = (symbol, orientation, overrides) => {
242
311
  const angleMap = {
243
312
  up: -Math.PI / 2,
@@ -245,7 +314,7 @@ var rotateSymbol = (symbol, orientation, overrides) => {
245
314
  down: Math.PI / 2,
246
315
  left: -Math.PI
247
316
  };
248
- const transform = rotate(
317
+ const transform2 = rotate(
249
318
  orientation ? angleMap[orientation] : Math.PI / 2,
250
319
  symbol.center.x,
251
320
  symbol.center.y
@@ -258,11 +327,11 @@ var rotateSymbol = (symbol, orientation, overrides) => {
258
327
  return {
259
328
  ...primitive,
260
329
  points: primitive.points.map(
261
- (point) => applyToPoint(transform, point)
330
+ (point) => applyToPoint(transform2, point)
262
331
  )
263
332
  };
264
333
  case "text":
265
- const rotatedPoint = applyToPoint(transform, {
334
+ const rotatedPoint = applyToPoint(transform2, {
266
335
  x: primitive.x,
267
336
  y: primitive.y
268
337
  });
@@ -276,7 +345,7 @@ var rotateSymbol = (symbol, orientation, overrides) => {
276
345
  y: rotatedPoint.y
277
346
  };
278
347
  case "circle":
279
- const rotatedCenter = applyToPoint(transform, {
348
+ const rotatedCenter = applyToPoint(transform2, {
280
349
  x: primitive.x,
281
350
  y: primitive.y
282
351
  });
@@ -286,7 +355,7 @@ var rotateSymbol = (symbol, orientation, overrides) => {
286
355
  y: rotatedCenter.y
287
356
  };
288
357
  case "box":
289
- const rotatedCorner = applyToPoint(transform, {
358
+ const rotatedCorner = applyToPoint(transform2, {
290
359
  x: primitive.x,
291
360
  y: primitive.y
292
361
  });
@@ -302,7 +371,7 @@ var rotateSymbol = (symbol, orientation, overrides) => {
302
371
  const rotatedPorts = ports.map(
303
372
  (port) => ({
304
373
  ...port,
305
- ...applyToPoint(transform, port)
374
+ ...applyToPoint(transform2, port)
306
375
  })
307
376
  );
308
377
  return {
@@ -5180,10 +5249,26 @@ var led_right_default = defineSymbol({
5180
5249
  var led_down_default = rotateSymbol(led_right_default, "down");
5181
5250
 
5182
5251
  // symbols/led_left.ts
5183
- var led_left_default = rotateSymbol(led_right_default, "left");
5252
+ var led_left_default = flipSymbolOverYAxis(led_right_default);
5184
5253
 
5185
5254
  // symbols/led_up.ts
5186
- var led_up_default = rotateSymbol(led_right_default, "up");
5255
+ var baseSymbol = rotateSymbol(led_right_default, "up");
5256
+ var modifiedSymbol = {
5257
+ ...baseSymbol,
5258
+ primitives: baseSymbol.primitives.map((primitive) => {
5259
+ if (primitive.type === "path" && (primitive.points.length === 3 || primitive.points.length === 4)) {
5260
+ return {
5261
+ ...primitive,
5262
+ points: primitive.points.map((point) => ({
5263
+ x: point.x,
5264
+ y: -point.y + 2 * baseSymbol.center.y
5265
+ }))
5266
+ };
5267
+ }
5268
+ return primitive;
5269
+ })
5270
+ };
5271
+ var led_up_default = modifiedSymbol;
5187
5272
 
5188
5273
  // assets/generated/light_dependent_resistor.json
5189
5274
  var light_dependent_resistor_default = {
@@ -8707,8 +8792,8 @@ var { paths: paths38, texts: texts52, bounds: bounds38, refblocks: refblocks38 }
8707
8792
  var potentiometer2_horz_default = defineSymbol({
8708
8793
  primitives: [
8709
8794
  ...Object.values(paths38),
8710
- { ...texts52.bottom1, anchor: "middle_right" },
8711
- { ...texts52.top1, anchor: "middle_left" }
8795
+ { ...texts52.bottom1, anchor: "middle_top" },
8796
+ { ...texts52.top1, anchor: "middle_bottom" }
8712
8797
  ],
8713
8798
  ports: [
8714
8799
  { ...refblocks38.left1, labels: ["1"] },
@@ -8721,7 +8806,13 @@ var potentiometer2_horz_default = defineSymbol({
8721
8806
  });
8722
8807
 
8723
8808
  // symbols/potentiometer2_vert.ts
8724
- var potentiometer2_vert_default = rotateSymbol(potentiometer2_horz_default);
8809
+ var rotated6 = rotateSymbol(potentiometer2_horz_default);
8810
+ var texts53 = rotated6.primitives.filter((p) => p.type === "text");
8811
+ var val18 = texts53.find((t) => t.text === "{VAL}");
8812
+ val18.anchor = "middle_right";
8813
+ var ref22 = texts53.find((t) => t.text === "{REF}");
8814
+ ref22.anchor = "middle_left";
8815
+ var potentiometer2_vert_default = rotated6;
8725
8816
 
8726
8817
  // assets/generated/power_factor_meter.json
8727
8818
  var power_factor_meter_default = {
@@ -8810,7 +8901,7 @@ var power_factor_meter_default = {
8810
8901
  };
8811
8902
 
8812
8903
  // symbols/power_factor_meter_horz.ts
8813
- var { paths: paths39, texts: texts53, bounds: bounds39, refblocks: refblocks39, circles: circles33 } = power_factor_meter_default;
8904
+ var { paths: paths39, texts: texts54, bounds: bounds39, refblocks: refblocks39, circles: circles33 } = power_factor_meter_default;
8814
8905
  var power_factor_meter_horz_default = defineSymbol({
8815
8906
  primitives: [
8816
8907
  ...Object.values(paths39),
@@ -8852,14 +8943,14 @@ var power_factor_meter_horz_default = defineSymbol({
8852
8943
 
8853
8944
  // symbols/power_factor_meter_vert.ts
8854
8945
  var rotatedSymbol22 = rotateSymbol(power_factor_meter_horz_default);
8855
- var texts54 = rotatedSymbol22.primitives.filter((p) => p.type === "text");
8856
- var ref22 = texts54.find((t) => t.text === "{REF}");
8857
- var val18 = texts54.find((t) => t.text === "{VAL}");
8858
- var text_cos = texts54.find((t) => t.text === "COS \u03C6");
8859
- ref22.x = 0.35;
8860
- ref22.y = 0;
8861
- val18.x = -0.6;
8862
- val18.y = 0;
8946
+ var texts55 = rotatedSymbol22.primitives.filter((p) => p.type === "text");
8947
+ var ref23 = texts55.find((t) => t.text === "{REF}");
8948
+ var val19 = texts55.find((t) => t.text === "{VAL}");
8949
+ var text_cos = texts55.find((t) => t.text === "COS \u03C6");
8950
+ ref23.x = 0.35;
8951
+ ref23.y = 0;
8952
+ val19.x = -0.6;
8953
+ val19.y = 0;
8863
8954
  text_cos.x = -0.1;
8864
8955
  text_cos.y = 0;
8865
8956
  var power_factor_meter_vert_default = rotatedSymbol22;
@@ -8966,12 +9057,12 @@ var push_button_normally_closed_momentary_default = {
8966
9057
  };
8967
9058
 
8968
9059
  // symbols/push_button_normally_closed_momentary_horz.ts
8969
- var { paths: paths40, texts: texts55, bounds: bounds40, refblocks: refblocks40 } = push_button_normally_closed_momentary_default;
9060
+ var { paths: paths40, texts: texts56, bounds: bounds40, refblocks: refblocks40 } = push_button_normally_closed_momentary_default;
8970
9061
  var push_button_normally_closed_momentary_horz_default = defineSymbol({
8971
9062
  primitives: [
8972
9063
  ...Object.values(paths40),
8973
- { ...texts55.top1, anchor: "middle_bottom" },
8974
- { ...texts55.bottom1, anchor: "middle_top" }
9064
+ { ...texts56.top1, anchor: "middle_bottom" },
9065
+ { ...texts56.bottom1, anchor: "middle_top" }
8975
9066
  ],
8976
9067
  ports: [
8977
9068
  { ...refblocks40.left1, labels: ["1"] },
@@ -8984,20 +9075,20 @@ var push_button_normally_closed_momentary_horz_default = defineSymbol({
8984
9075
  });
8985
9076
 
8986
9077
  // symbols/push_button_normally_closed_momentary_vert.ts
8987
- var rotated6 = rotateSymbol(push_button_normally_closed_momentary_horz_default);
8988
- var ref23 = rotated6.primitives.find(
9078
+ var rotated7 = rotateSymbol(push_button_normally_closed_momentary_horz_default);
9079
+ var ref24 = rotated7.primitives.find(
8989
9080
  (p) => p.type === "text" && p.text === "{REF}"
8990
9081
  );
8991
- var val19 = rotated6.primitives.find(
9082
+ var val20 = rotated7.primitives.find(
8992
9083
  (p) => p.type === "text" && p.text === "{VAL}"
8993
9084
  );
8994
- ref23.anchor = "middle_left";
8995
- val19.anchor = "middle_right";
8996
- ref23.x = ref23.x - 0.03;
8997
- ref23.y = ref23.y;
8998
- val19.x = val19.x;
8999
- val19.y = 0;
9000
- var push_button_normally_closed_momentary_vert_default = rotated6;
9085
+ ref24.anchor = "middle_left";
9086
+ val20.anchor = "middle_right";
9087
+ ref24.x = ref24.x - 0.03;
9088
+ ref24.y = ref24.y;
9089
+ val20.x = val20.x;
9090
+ val20.y = 0;
9091
+ var push_button_normally_closed_momentary_vert_default = rotated7;
9001
9092
 
9002
9093
  // assets/generated/push_button_normally_open_momentary.json
9003
9094
  var push_button_normally_open_momentary_default = {
@@ -9101,12 +9192,12 @@ var push_button_normally_open_momentary_default = {
9101
9192
  };
9102
9193
 
9103
9194
  // symbols/push_button_normally_open_momentary_horz.ts
9104
- var { paths: paths41, texts: texts56, bounds: bounds41, refblocks: refblocks41 } = push_button_normally_open_momentary_default;
9195
+ var { paths: paths41, texts: texts57, bounds: bounds41, refblocks: refblocks41 } = push_button_normally_open_momentary_default;
9105
9196
  var push_button_normally_open_momentary_horz_default = defineSymbol({
9106
9197
  primitives: [
9107
9198
  ...Object.values(paths41),
9108
- { ...texts56.top1, anchor: "middle_bottom" },
9109
- { ...texts56.bottom1, anchor: "middle_top" }
9199
+ { ...texts57.top1, anchor: "middle_bottom" },
9200
+ { ...texts57.bottom1, anchor: "middle_top" }
9110
9201
  ],
9111
9202
  ports: [
9112
9203
  { ...refblocks41.left1, labels: ["1"] },
@@ -9119,20 +9210,20 @@ var push_button_normally_open_momentary_horz_default = defineSymbol({
9119
9210
  });
9120
9211
 
9121
9212
  // symbols/push_button_normally_open_momentary_vert.ts
9122
- var rotated7 = rotateSymbol(push_button_normally_open_momentary_horz_default);
9123
- var ref24 = rotated7.primitives.find(
9213
+ var rotated8 = rotateSymbol(push_button_normally_open_momentary_horz_default);
9214
+ var ref25 = rotated8.primitives.find(
9124
9215
  (p) => p.type === "text" && p.text === "{REF}"
9125
9216
  );
9126
- var val20 = rotated7.primitives.find(
9217
+ var val21 = rotated8.primitives.find(
9127
9218
  (p) => p.type === "text" && p.text === "{VAL}"
9128
9219
  );
9129
- ref24.anchor = "middle_left";
9130
- val20.anchor = "middle_right";
9131
- ref24.x = ref24.x + 0.1;
9132
- ref24.y = ref24.y;
9133
- val20.x = val20.x;
9134
- val20.y = 0;
9135
- var push_button_normally_open_momentary_vert_default = rotated7;
9220
+ ref25.anchor = "middle_left";
9221
+ val21.anchor = "middle_right";
9222
+ ref25.x = ref25.x + 0.1;
9223
+ ref25.y = ref25.y;
9224
+ val21.x = val21.x;
9225
+ val21.y = 0;
9226
+ var push_button_normally_open_momentary_vert_default = rotated8;
9136
9227
 
9137
9228
  // assets/generated/rectifier_diode.json
9138
9229
  var rectifier_diode_default = {
@@ -9544,13 +9635,13 @@ var rectifier_diode_default = {
9544
9635
  };
9545
9636
 
9546
9637
  // symbols/rectifier_diode_horz.ts
9547
- var { paths: paths42, texts: texts57, bounds: bounds42, refblocks: refblocks42, circles: circles34 } = rectifier_diode_default;
9638
+ var { paths: paths42, texts: texts58, bounds: bounds42, refblocks: refblocks42, circles: circles34 } = rectifier_diode_default;
9548
9639
  var rectifier_diode_horz_default = defineSymbol({
9549
9640
  primitives: [
9550
9641
  ...Object.values(paths42),
9551
9642
  ...Object.values(circles34),
9552
- { ...texts57.top1, anchor: "middle_right" },
9553
- { ...texts57.bottom1, anchor: "middle_right" }
9643
+ { ...texts58.top1, anchor: "middle_right" },
9644
+ { ...texts58.bottom1, anchor: "middle_right" }
9554
9645
  ],
9555
9646
  ports: [
9556
9647
  { ...refblocks42.top1, labels: ["1"] },
@@ -9567,16 +9658,16 @@ var rectifier_diode_horz_default = defineSymbol({
9567
9658
  });
9568
9659
 
9569
9660
  // symbols/rectifier_diode_vert.ts
9570
- var rotated8 = rotateSymbol(rectifier_diode_horz_default);
9571
- var ref25 = rotated8.primitives.find(
9661
+ var rotated9 = rotateSymbol(rectifier_diode_horz_default);
9662
+ var ref26 = rotated9.primitives.find(
9572
9663
  (p) => p.type === "text" && p.text === "{REF}"
9573
9664
  );
9574
- var val21 = rotated8.primitives.find(
9665
+ var val22 = rotated9.primitives.find(
9575
9666
  (p) => p.type === "text" && p.text === "{VAL}"
9576
9667
  );
9577
- ref25.anchor = "middle_left";
9578
- val21.anchor = "middle_right";
9579
- var rectifier_diode_vert_default = rotated8;
9668
+ ref26.anchor = "middle_left";
9669
+ val22.anchor = "middle_right";
9670
+ var rectifier_diode_vert_default = rotated9;
9580
9671
 
9581
9672
  // assets/generated/resonator.json
9582
9673
  var resonator_default = {
@@ -9924,7 +10015,7 @@ var resonator_default = {
9924
10015
  };
9925
10016
 
9926
10017
  // symbols/resonator_horz.ts
9927
- var { paths: paths43, texts: texts58, bounds: bounds43, refblocks: refblocks43, circles: circles35 } = resonator_default;
10018
+ var { paths: paths43, texts: texts59, bounds: bounds43, refblocks: refblocks43, circles: circles35 } = resonator_default;
9928
10019
  var resonator_horz_default = defineSymbol({
9929
10020
  primitives: [
9930
10021
  ...Object.values(paths43),
@@ -10153,13 +10244,13 @@ var schottky_diode_default = {
10153
10244
  };
10154
10245
 
10155
10246
  // symbols/schottky_diode_horz.ts
10156
- var { paths: paths44, texts: texts59, bounds: bounds44, refblocks: refblocks44, circles: circles36 } = schottky_diode_default;
10247
+ var { paths: paths44, texts: texts60, bounds: bounds44, refblocks: refblocks44, circles: circles36 } = schottky_diode_default;
10157
10248
  var schottky_diode_horz_default = defineSymbol({
10158
10249
  primitives: [
10159
10250
  ...Object.values(paths44),
10160
10251
  ...Object.values(circles36),
10161
- { ...texts59.top1, anchor: "middle_bottom" },
10162
- { ...texts59.bottom1, anchor: "middle_top" }
10252
+ { ...texts60.top1, anchor: "middle_bottom" },
10253
+ { ...texts60.bottom1, anchor: "middle_top" }
10163
10254
  ],
10164
10255
  ports: [
10165
10256
  { ...refblocks44.left1, labels: ["1"] },
@@ -10172,16 +10263,16 @@ var schottky_diode_horz_default = defineSymbol({
10172
10263
  });
10173
10264
 
10174
10265
  // symbols/schottky_diode_vert.ts
10175
- var rotated9 = rotateSymbol(schottky_diode_horz_default);
10176
- var ref26 = rotated9.primitives.find(
10266
+ var rotated10 = rotateSymbol(schottky_diode_horz_default);
10267
+ var ref27 = rotated10.primitives.find(
10177
10268
  (p) => p.type === "text" && p.text === "{REF}"
10178
10269
  );
10179
- var val22 = rotated9.primitives.find(
10270
+ var val23 = rotated10.primitives.find(
10180
10271
  (p) => p.type === "text" && p.text === "{VAL}"
10181
10272
  );
10182
- ref26.anchor = "middle_left";
10183
- val22.anchor = "middle_right";
10184
- var schottky_diode_vert_default = rotated9;
10273
+ ref27.anchor = "middle_left";
10274
+ val23.anchor = "middle_right";
10275
+ var schottky_diode_vert_default = rotated10;
10185
10276
 
10186
10277
  // assets/generated/silicon_controlled_rectifier.json
10187
10278
  var silicon_controlled_rectifier_default = {
@@ -10327,13 +10418,13 @@ var silicon_controlled_rectifier_default = {
10327
10418
  };
10328
10419
 
10329
10420
  // symbols/silicon_controlled_rectifier_horz.ts
10330
- var { paths: paths45, texts: texts60, bounds: bounds45, refblocks: refblocks45, circles: circles37 } = silicon_controlled_rectifier_default;
10421
+ var { paths: paths45, texts: texts61, bounds: bounds45, refblocks: refblocks45, circles: circles37 } = silicon_controlled_rectifier_default;
10331
10422
  var silicon_controlled_rectifier_horz_default = defineSymbol({
10332
10423
  primitives: [
10333
10424
  ...Object.values(paths45),
10334
10425
  ...Object.values(circles37),
10335
- { ...texts60.top1, anchor: "middle_left" },
10336
- { ...texts60.bottom1, anchor: "middle_top" }
10426
+ { ...texts61.top1, anchor: "middle_left" },
10427
+ { ...texts61.bottom1, anchor: "middle_top" }
10337
10428
  ],
10338
10429
  ports: [
10339
10430
  { ...refblocks45.left1, labels: ["1"] },
@@ -10349,12 +10440,12 @@ var silicon_controlled_rectifier_horz_default = defineSymbol({
10349
10440
 
10350
10441
  // symbols/silicon_controlled_rectifier_vert.ts
10351
10442
  var rotatedSymbol23 = rotateSymbol(silicon_controlled_rectifier_horz_default);
10352
- var texts61 = rotatedSymbol23.primitives.filter(
10443
+ var texts62 = rotatedSymbol23.primitives.filter(
10353
10444
  (primitive) => primitive.type === "text"
10354
10445
  );
10355
- var ref27 = texts61.find((text) => text.text === "{REF}");
10356
- ref27.y = 0;
10357
- ref27.anchor = "middle_left";
10446
+ var ref28 = texts62.find((text) => text.text === "{REF}");
10447
+ ref28.y = 0;
10448
+ ref28.anchor = "middle_left";
10358
10449
  var silicon_controlled_rectifier_vert_default = rotatedSymbol23;
10359
10450
 
10360
10451
  // assets/generated/SPDT_switch.json
@@ -10475,13 +10566,13 @@ var SPDT_switch_default = {
10475
10566
  };
10476
10567
 
10477
10568
  // symbols/SPDT_switch_horz.ts
10478
- var { paths: paths46, texts: texts62, bounds: bounds46, refblocks: refblocks46, circles: circles38 } = SPDT_switch_default;
10569
+ var { paths: paths46, texts: texts63, bounds: bounds46, refblocks: refblocks46, circles: circles38 } = SPDT_switch_default;
10479
10570
  var SPDT_switch_horz_default = defineSymbol({
10480
10571
  primitives: [
10481
10572
  ...Object.values(paths46),
10482
10573
  ...Object.values(circles38),
10483
- { ...texts62.top1, anchor: "middle_bottom", x: -0.01 },
10484
- { ...texts62.bottom1, anchor: "middle_top", x: -0.01 }
10574
+ { ...texts63.top1, anchor: "middle_bottom", x: -0.01 },
10575
+ { ...texts63.bottom1, anchor: "middle_top", x: -0.01 }
10485
10576
  ],
10486
10577
  ports: [
10487
10578
  { ...refblocks46.left1, labels: ["1"] },
@@ -10497,15 +10588,15 @@ var SPDT_switch_horz_default = defineSymbol({
10497
10588
 
10498
10589
  // symbols/SPDT_switch_vert.ts
10499
10590
  var rotatedSymbol24 = rotateSymbol(SPDT_switch_horz_default);
10500
- var texts63 = rotatedSymbol24.primitives.filter((p) => p.type === "text");
10501
- var val23 = texts63.find((t) => t.text === "{VAL}");
10502
- val23.anchor = "middle_right";
10503
- val23.x = -0.3;
10504
- val23.y = 0;
10505
- var ref28 = texts63.find((t) => t.text === "{REF}");
10506
- ref28.anchor = "middle_left";
10507
- ref28.x = 0.3;
10508
- ref28.y = 0;
10591
+ var texts64 = rotatedSymbol24.primitives.filter((p) => p.type === "text");
10592
+ var val24 = texts64.find((t) => t.text === "{VAL}");
10593
+ val24.anchor = "middle_right";
10594
+ val24.x = -0.3;
10595
+ val24.y = 0;
10596
+ var ref29 = texts64.find((t) => t.text === "{REF}");
10597
+ ref29.anchor = "middle_left";
10598
+ ref29.x = 0.3;
10599
+ ref29.y = 0;
10509
10600
  var SPDT_switch_vert_default = rotatedSymbol24;
10510
10601
 
10511
10602
  // assets/generated/SPST_switch.json
@@ -10603,13 +10694,13 @@ var SPST_switch_default = {
10603
10694
  };
10604
10695
 
10605
10696
  // symbols/SPST_switch_horz.ts
10606
- var { paths: paths47, texts: texts64, bounds: bounds47, refblocks: refblocks47, circles: circles39 } = SPST_switch_default;
10697
+ var { paths: paths47, texts: texts65, bounds: bounds47, refblocks: refblocks47, circles: circles39 } = SPST_switch_default;
10607
10698
  var SPST_switch_horz_default = defineSymbol({
10608
10699
  primitives: [
10609
10700
  ...Object.values(paths47),
10610
10701
  ...Object.values(circles39),
10611
- { ...texts64.top1, anchor: "middle_bottom", x: 0 },
10612
- { ...texts64.bottom1, anchor: "middle_top", x: 0 }
10702
+ { ...texts65.top1, anchor: "middle_bottom", x: 0 },
10703
+ { ...texts65.bottom1, anchor: "middle_top", x: 0 }
10613
10704
  ],
10614
10705
  ports: [
10615
10706
  { ...refblocks47.left1, labels: ["1"] },
@@ -10623,15 +10714,15 @@ var SPST_switch_horz_default = defineSymbol({
10623
10714
 
10624
10715
  // symbols/SPST_switch_vert.ts
10625
10716
  var rotatedSymbol25 = rotateSymbol(SPST_switch_horz_default);
10626
- var texts65 = rotatedSymbol25.primitives.filter((p) => p.type === "text");
10627
- var val24 = texts65.find((t) => t.text === "{VAL}");
10628
- val24.anchor = "middle_right";
10629
- val24.x = -0.3;
10630
- val24.y = 0;
10631
- var ref29 = texts65.find((t) => t.text === "{REF}");
10632
- ref29.anchor = "middle_left";
10633
- ref29.x = 0.3;
10634
- ref29.y = 0;
10717
+ var texts66 = rotatedSymbol25.primitives.filter((p) => p.type === "text");
10718
+ var val25 = texts66.find((t) => t.text === "{VAL}");
10719
+ val25.anchor = "middle_right";
10720
+ val25.x = -0.3;
10721
+ val25.y = 0;
10722
+ var ref30 = texts66.find((t) => t.text === "{REF}");
10723
+ ref30.anchor = "middle_left";
10724
+ ref30.x = 0.3;
10725
+ ref30.y = 0;
10635
10726
  var SPST_switch_vert_default = rotatedSymbol25;
10636
10727
 
10637
10728
  // assets/generated/step_recovery_diode.json
@@ -10796,7 +10887,7 @@ var step_recovery_diode_default = {
10796
10887
  };
10797
10888
 
10798
10889
  // symbols/step_recovery_diode_horz.ts
10799
- var { paths: paths48, texts: texts66, bounds: bounds48, refblocks: refblocks48, circles: circles40 } = step_recovery_diode_default;
10890
+ var { paths: paths48, texts: texts67, bounds: bounds48, refblocks: refblocks48, circles: circles40 } = step_recovery_diode_default;
10800
10891
  var step_recovery_diode_horz_default = defineSymbol({
10801
10892
  primitives: [
10802
10893
  ...Object.values(paths48),
@@ -10918,7 +11009,7 @@ var tachometer_default = {
10918
11009
  };
10919
11010
 
10920
11011
  // symbols/tachometer_horz.ts
10921
- var { paths: paths49, texts: texts67, bounds: bounds49, refblocks: refblocks49, circles: circles41 } = tachometer_default;
11012
+ var { paths: paths49, texts: texts68, bounds: bounds49, refblocks: refblocks49, circles: circles41 } = tachometer_default;
10922
11013
  var tachometer_horz_default = defineSymbol({
10923
11014
  primitives: [
10924
11015
  ...Object.values(paths49),
@@ -10937,7 +11028,7 @@ var tachometer_horz_default = defineSymbol({
10937
11028
  y: 0.35,
10938
11029
  anchor: "middle_top"
10939
11030
  },
10940
- { ...texts67.left1, anchor: "center", fontSize: 0.2 }
11031
+ { ...texts68.left1, anchor: "center", fontSize: 0.2 }
10941
11032
  ],
10942
11033
  ports: [
10943
11034
  { ...refblocks49.left1, labels: ["1"] },
@@ -11154,13 +11245,13 @@ var triac_default = {
11154
11245
  };
11155
11246
 
11156
11247
  // symbols/triac_horz.ts
11157
- var { paths: paths50, texts: texts68, bounds: bounds50, refblocks: refblocks50, circles: circles42 } = triac_default;
11248
+ var { paths: paths50, texts: texts69, bounds: bounds50, refblocks: refblocks50, circles: circles42 } = triac_default;
11158
11249
  var triac_horz_default = defineSymbol({
11159
11250
  primitives: [
11160
11251
  ...Object.values(paths50),
11161
11252
  ...Object.values(circles42),
11162
- { ...texts68.top1, anchor: "middle_left" },
11163
- { ...texts68.bottom1, anchor: "middle_top" }
11253
+ { ...texts69.top1, anchor: "middle_left" },
11254
+ { ...texts69.bottom1, anchor: "middle_top" }
11164
11255
  ],
11165
11256
  ports: [
11166
11257
  { ...refblocks50.left1, labels: ["1"] },
@@ -11176,13 +11267,13 @@ var triac_horz_default = defineSymbol({
11176
11267
 
11177
11268
  // symbols/triac_vert.ts
11178
11269
  var rotatedSymbol27 = rotateSymbol(triac_horz_default);
11179
- var texts69 = rotatedSymbol27.primitives.filter(
11270
+ var texts70 = rotatedSymbol27.primitives.filter(
11180
11271
  (primitive) => primitive.type === "text"
11181
11272
  );
11182
- var ref30 = texts69.find((text) => text.text === "{REF}");
11183
- var val25 = texts69.find((text) => text.text === "{VAL}");
11184
- ref30.y = 0;
11185
- val25.y = 0;
11273
+ var ref31 = texts70.find((text) => text.text === "{REF}");
11274
+ var val26 = texts70.find((text) => text.text === "{VAL}");
11275
+ ref31.y = 0;
11276
+ val26.y = 0;
11186
11277
  var triac_vert_default = rotatedSymbol27;
11187
11278
 
11188
11279
  // assets/generated/tunnel_diode.json
@@ -11347,13 +11438,13 @@ var tunnel_diode_default = {
11347
11438
  };
11348
11439
 
11349
11440
  // symbols/tunnel_diode_horz.ts
11350
- var { paths: paths51, texts: texts70, bounds: bounds51, refblocks: refblocks51, circles: circles43 } = tunnel_diode_default;
11441
+ var { paths: paths51, texts: texts71, bounds: bounds51, refblocks: refblocks51, circles: circles43 } = tunnel_diode_default;
11351
11442
  var tunnel_diode_horz_default = defineSymbol({
11352
11443
  primitives: [
11353
11444
  ...Object.values(paths51),
11354
11445
  ...Object.values(circles43),
11355
- { ...texts70.top1, anchor: "middle_bottom" },
11356
- { ...texts70.bottom1, anchor: "middle_top" }
11446
+ { ...texts71.top1, anchor: "middle_bottom" },
11447
+ { ...texts71.bottom1, anchor: "middle_top" }
11357
11448
  ],
11358
11449
  ports: [
11359
11450
  { ...refblocks51.left1, labels: ["1"] },
@@ -11366,16 +11457,16 @@ var tunnel_diode_horz_default = defineSymbol({
11366
11457
  });
11367
11458
 
11368
11459
  // symbols/tunnel_diode_vert.ts
11369
- var rotated10 = rotateSymbol(tunnel_diode_horz_default);
11370
- var ref31 = rotated10.primitives.find(
11460
+ var rotated11 = rotateSymbol(tunnel_diode_horz_default);
11461
+ var ref32 = rotated11.primitives.find(
11371
11462
  (p) => p.type === "text" && p.text === "{REF}"
11372
11463
  );
11373
- var val26 = rotated10.primitives.find(
11464
+ var val27 = rotated11.primitives.find(
11374
11465
  (p) => p.type === "text" && p.text === "{VAL}"
11375
11466
  );
11376
- ref31.anchor = "middle_left";
11377
- val26.anchor = "middle_right";
11378
- var tunnel_diode_vert_default = rotated10;
11467
+ ref32.anchor = "middle_left";
11468
+ val27.anchor = "middle_right";
11469
+ var tunnel_diode_vert_default = rotated11;
11379
11470
 
11380
11471
  // assets/generated/unijunction_transistor.json
11381
11472
  var unijunction_transistor_default = {
@@ -11545,13 +11636,13 @@ var unijunction_transistor_default = {
11545
11636
  };
11546
11637
 
11547
11638
  // symbols/unijunction_transistor_horz.ts
11548
- var { paths: paths52, texts: texts71, bounds: bounds52, refblocks: refblocks52, circles: circles44 } = unijunction_transistor_default;
11639
+ var { paths: paths52, texts: texts72, bounds: bounds52, refblocks: refblocks52, circles: circles44 } = unijunction_transistor_default;
11549
11640
  var unijunction_transistor_horz_default = defineSymbol({
11550
11641
  primitives: [
11551
11642
  ...Object.values(paths52),
11552
11643
  ...Object.values(circles44),
11553
- { ...texts71.top1, anchor: "middle_left" },
11554
- { ...texts71.bottom1, anchor: "middle_right" }
11644
+ { ...texts72.top1, anchor: "middle_left" },
11645
+ { ...texts72.bottom1, anchor: "middle_right" }
11555
11646
  ],
11556
11647
  ports: [
11557
11648
  { ...refblocks52.top1, labels: ["1"] },
@@ -11567,14 +11658,14 @@ var unijunction_transistor_horz_default = defineSymbol({
11567
11658
 
11568
11659
  // symbols/unijunction_transistor_vert.ts
11569
11660
  var rotatedSymbol28 = rotateSymbol(unijunction_transistor_horz_default);
11570
- var texts72 = rotatedSymbol28.primitives.filter(
11661
+ var texts73 = rotatedSymbol28.primitives.filter(
11571
11662
  (primitive) => primitive.type === "text"
11572
11663
  );
11573
- var ref32 = texts72.find((text) => text.text === "{REF}");
11574
- ref32.y = 0.1;
11575
- var val27 = texts72.find((text) => text.text === "{VAL}");
11576
- val27.y = 0.1;
11577
- val27.x = -0.4;
11664
+ var ref33 = texts73.find((text) => text.text === "{REF}");
11665
+ ref33.y = 0.1;
11666
+ var val28 = texts73.find((text) => text.text === "{VAL}");
11667
+ val28.y = 0.1;
11668
+ val28.x = -0.4;
11578
11669
  var unijunction_transistor_vert_default = rotatedSymbol28;
11579
11670
 
11580
11671
  // assets/generated/var_meter.json
@@ -11664,24 +11755,24 @@ var var_meter_default = {
11664
11755
  };
11665
11756
 
11666
11757
  // symbols/var_meter_horz.ts
11667
- var { paths: paths53, texts: texts73, bounds: bounds53, refblocks: refblocks53, circles: circles45 } = var_meter_default;
11758
+ var { paths: paths53, texts: texts74, bounds: bounds53, refblocks: refblocks53, circles: circles45 } = var_meter_default;
11668
11759
  var var_meter_horz_default = defineSymbol({
11669
11760
  primitives: [
11670
11761
  ...Object.values(paths53),
11671
11762
  ...Object.values(circles45),
11672
11763
  {
11673
- ...texts73.top1,
11764
+ ...texts74.top1,
11674
11765
  x: 0,
11675
11766
  y: -0.3594553499999995,
11676
11767
  anchor: "middle_bottom"
11677
11768
  },
11678
11769
  {
11679
- ...texts73.bottom1,
11770
+ ...texts74.bottom1,
11680
11771
  x: 0,
11681
11772
  y: 0.35,
11682
11773
  anchor: "middle_top"
11683
11774
  },
11684
- { ...texts73.left1, x: -0.02, y: -0.02, fontSize: 0.2, anchor: "center" }
11775
+ { ...texts74.left1, x: -0.02, y: -0.02, fontSize: 0.2, anchor: "center" }
11685
11776
  ],
11686
11777
  ports: [
11687
11778
  { ...refblocks53.left1, labels: ["1"] },
@@ -11843,13 +11934,13 @@ var varactor_diode_default = {
11843
11934
  };
11844
11935
 
11845
11936
  // symbols/varactor_diode_horz.ts
11846
- var { paths: paths54, texts: texts74, bounds: bounds54, refblocks: refblocks54, circles: circles46 } = varactor_diode_default;
11937
+ var { paths: paths54, texts: texts75, bounds: bounds54, refblocks: refblocks54, circles: circles46 } = varactor_diode_default;
11847
11938
  var varactor_diode_horz_default = defineSymbol({
11848
11939
  primitives: [
11849
11940
  ...Object.values(paths54),
11850
11941
  ...Object.values(circles46),
11851
- { ...texts74.top1, anchor: "middle_bottom" },
11852
- { ...texts74.bottom1, anchor: "middle_top" }
11942
+ { ...texts75.top1, anchor: "middle_bottom" },
11943
+ { ...texts75.bottom1, anchor: "middle_top" }
11853
11944
  ],
11854
11945
  ports: [
11855
11946
  { ...refblocks54.left1, labels: ["1"] },
@@ -11862,16 +11953,16 @@ var varactor_diode_horz_default = defineSymbol({
11862
11953
  });
11863
11954
 
11864
11955
  // symbols/varactor_diode_vert.ts
11865
- var rotated11 = rotateSymbol(varactor_diode_horz_default);
11866
- var ref33 = rotated11.primitives.find(
11956
+ var rotated12 = rotateSymbol(varactor_diode_horz_default);
11957
+ var ref34 = rotated12.primitives.find(
11867
11958
  (p) => p.type === "text" && p.text === "{REF}"
11868
11959
  );
11869
- var val28 = rotated11.primitives.find(
11960
+ var val29 = rotated12.primitives.find(
11870
11961
  (p) => p.type === "text" && p.text === "{VAL}"
11871
11962
  );
11872
- ref33.anchor = "middle_left";
11873
- val28.anchor = "middle_right";
11874
- var varactor_diode_vert_default = rotated11;
11963
+ ref34.anchor = "middle_left";
11964
+ val29.anchor = "middle_right";
11965
+ var varactor_diode_vert_default = rotated12;
11875
11966
 
11876
11967
  // assets/generated/varistor.json
11877
11968
  var varistor_default = {
@@ -12006,12 +12097,12 @@ var varistor_default = {
12006
12097
  };
12007
12098
 
12008
12099
  // symbols/varistor_horz.ts
12009
- var { paths: paths55, texts: texts75, bounds: bounds55, refblocks: refblocks55 } = varistor_default;
12100
+ var { paths: paths55, texts: texts76, bounds: bounds55, refblocks: refblocks55 } = varistor_default;
12010
12101
  var varistor_horz_default = defineSymbol({
12011
12102
  primitives: [
12012
12103
  ...Object.values(paths55),
12013
- { ...texts75.top1, anchor: "middle_left" },
12014
- { ...texts75.bottom1, anchor: "middle_right" }
12104
+ { ...texts76.top1, anchor: "middle_left" },
12105
+ { ...texts76.bottom1, anchor: "middle_right" }
12015
12106
  ],
12016
12107
  ports: [
12017
12108
  {
@@ -12118,7 +12209,7 @@ var varmeter_default = {
12118
12209
  };
12119
12210
 
12120
12211
  // symbols/varmeter_horz.ts
12121
- var { paths: paths56, texts: texts76, bounds: bounds56, refblocks: refblocks56, circles: circles47 } = varmeter_default;
12212
+ var { paths: paths56, texts: texts77, bounds: bounds56, refblocks: refblocks56, circles: circles47 } = varmeter_default;
12122
12213
  var varmeter_horz_default = defineSymbol({
12123
12214
  primitives: [
12124
12215
  ...Object.values(paths56),
@@ -12137,7 +12228,7 @@ var varmeter_horz_default = defineSymbol({
12137
12228
  y: 0.35,
12138
12229
  anchor: "middle_top"
12139
12230
  },
12140
- { ...texts76.left1, anchor: "center", fontSize: 0.2 }
12231
+ { ...texts77.left1, anchor: "center", fontSize: 0.2 }
12141
12232
  ],
12142
12233
  ports: [
12143
12234
  { ...refblocks56.left1, labels: ["1"] },
@@ -12263,7 +12354,7 @@ var volt_meter_default = {
12263
12354
  };
12264
12355
 
12265
12356
  // symbols/volt_meter_horz.ts
12266
- var { paths: paths57, texts: texts77, bounds: bounds57, circles: circles48, refblocks: refblocks57 } = volt_meter_default;
12357
+ var { paths: paths57, texts: texts78, bounds: bounds57, circles: circles48, refblocks: refblocks57 } = volt_meter_default;
12267
12358
  var volt_meter_horz_default = defineSymbol({
12268
12359
  primitives: [
12269
12360
  ...Object.values(paths57),
@@ -12383,7 +12474,7 @@ var watt_hour_meter_default = {
12383
12474
  };
12384
12475
 
12385
12476
  // symbols/watt_hour_meter_horz.ts
12386
- var { paths: paths58, texts: texts78, bounds: bounds58, refblocks: refblocks58, circles: circles49 } = watt_hour_meter_default;
12477
+ var { paths: paths58, texts: texts79, bounds: bounds58, refblocks: refblocks58, circles: circles49 } = watt_hour_meter_default;
12387
12478
  var watt_hour_meter_horz_default = defineSymbol({
12388
12479
  primitives: [
12389
12480
  ...Object.values(paths58),
@@ -12402,7 +12493,7 @@ var watt_hour_meter_horz_default = defineSymbol({
12402
12493
  y: 0.35,
12403
12494
  anchor: "middle_top"
12404
12495
  },
12405
- { ...texts78.left1, anchor: "center", fontSize: 0.2 }
12496
+ { ...texts79.left1, anchor: "center", fontSize: 0.2 }
12406
12497
  ],
12407
12498
  ports: [
12408
12499
  { ...refblocks58.left1, labels: ["1"] },
@@ -12515,7 +12606,7 @@ var wattmeter_default = {
12515
12606
  };
12516
12607
 
12517
12608
  // symbols/wattmeter_horz.ts
12518
- var { paths: paths59, texts: texts79, bounds: bounds59, refblocks: refblocks59, circles: circles50 } = wattmeter_default;
12609
+ var { paths: paths59, texts: texts80, bounds: bounds59, refblocks: refblocks59, circles: circles50 } = wattmeter_default;
12519
12610
  var wattmeter_horz_default = defineSymbol({
12520
12611
  primitives: [
12521
12612
  ...Object.values(paths59),
@@ -12534,7 +12625,7 @@ var wattmeter_horz_default = defineSymbol({
12534
12625
  y: 0.35,
12535
12626
  anchor: "middle_top"
12536
12627
  },
12537
- { ...texts79.left1, anchor: "center", fontSize: 0.3 }
12628
+ { ...texts80.left1, anchor: "center", fontSize: 0.3 }
12538
12629
  ],
12539
12630
  ports: [
12540
12631
  { ...refblocks59.left1, labels: ["1"] },
@@ -12707,13 +12798,13 @@ var zener_diode_default = {
12707
12798
  };
12708
12799
 
12709
12800
  // symbols/zener_diode_horz.ts
12710
- var { paths: paths60, texts: texts80, bounds: bounds60, refblocks: refblocks60, circles: circles51 } = zener_diode_default;
12801
+ var { paths: paths60, texts: texts81, bounds: bounds60, refblocks: refblocks60, circles: circles51 } = zener_diode_default;
12711
12802
  var zener_diode_horz_default = defineSymbol({
12712
12803
  primitives: [
12713
12804
  ...Object.values(paths60),
12714
12805
  ...Object.values(circles51),
12715
- { ...texts80.top1, anchor: "middle_bottom" },
12716
- { ...texts80.bottom1, anchor: "middle_top" }
12806
+ { ...texts81.top1, anchor: "middle_bottom" },
12807
+ { ...texts81.bottom1, anchor: "middle_top" }
12717
12808
  ],
12718
12809
  ports: [
12719
12810
  { ...refblocks60.left1, labels: ["1"] },
@@ -12726,16 +12817,16 @@ var zener_diode_horz_default = defineSymbol({
12726
12817
  });
12727
12818
 
12728
12819
  // symbols/zener_diode_vert.ts
12729
- var rotated12 = rotateSymbol(zener_diode_horz_default);
12730
- var ref34 = rotated12.primitives.find(
12820
+ var rotated13 = rotateSymbol(zener_diode_horz_default);
12821
+ var ref35 = rotated13.primitives.find(
12731
12822
  (p) => p.type === "text" && p.text === "{REF}"
12732
12823
  );
12733
- var val29 = rotated12.primitives.find(
12824
+ var val30 = rotated13.primitives.find(
12734
12825
  (p) => p.type === "text" && p.text === "{VAL}"
12735
12826
  );
12736
- ref34.anchor = "middle_left";
12737
- val29.anchor = "middle_right";
12738
- var zener_diode_vert_default = rotated12;
12827
+ ref35.anchor = "middle_left";
12828
+ val30.anchor = "middle_right";
12829
+ var zener_diode_vert_default = rotated13;
12739
12830
 
12740
12831
  // generated/symbols-index.ts
12741
12832
  var symbols_index_default = {