schematic-symbols 0.0.146 → 0.0.148

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
@@ -41,16 +41,16 @@ function getBoundsOfPrimitives(primitives) {
41
41
  }
42
42
 
43
43
  // drawing/defineSymbol.ts
44
- function defineSymbol(symbol5) {
45
- let size = symbol5.size;
44
+ function defineSymbol(symbol4) {
45
+ let size = symbol4.size;
46
46
  if (!size) {
47
- const bounds72 = getBoundsOfPrimitives(symbol5.primitives);
47
+ const bounds67 = getBoundsOfPrimitives(symbol4.primitives);
48
48
  size = {
49
- width: bounds72.maxX - bounds72.minX,
50
- height: bounds72.maxY - bounds72.minY
49
+ width: bounds67.maxX - bounds67.minX,
50
+ height: bounds67.maxY - bounds67.minY
51
51
  };
52
52
  }
53
- return { ...symbol5, size };
53
+ return { ...symbol4, size };
54
54
  }
55
55
 
56
56
  // assets/generated/ac_voltmeter.json
@@ -288,8 +288,8 @@ var rotateRightFacingAnchor = (anchor, newOrientation = "right") => {
288
288
  }
289
289
  return anchor;
290
290
  };
291
- var flipSymbolOverXAxis = (symbol5, overrides) => {
292
- const { primitives, center, ports, size } = symbol5;
291
+ var flipSymbolOverXAxis = (symbol4, overrides) => {
292
+ const { primitives, center, ports, size } = symbol4;
293
293
  const transformMatrix = transform({
294
294
  a: 1,
295
295
  b: 0,
@@ -357,8 +357,8 @@ var flipSymbolOverXAxis = (symbol5, overrides) => {
357
357
  ...overrides
358
358
  };
359
359
  };
360
- var flipSymbolOverYAxis = (symbol5, overrides) => {
361
- const { primitives, center, ports, size } = symbol5;
360
+ var flipSymbolOverYAxis = (symbol4, overrides) => {
361
+ const { primitives, center, ports, size } = symbol4;
362
362
  const transformMatrix = transform({
363
363
  a: -1,
364
364
  b: 0,
@@ -426,7 +426,7 @@ var flipSymbolOverYAxis = (symbol5, overrides) => {
426
426
  ...overrides
427
427
  };
428
428
  };
429
- var rotateRightFacingSymbol = (symbol5, opts) => {
429
+ var rotateRightFacingSymbol = (symbol4, opts) => {
430
430
  const { newOrientation, overrides } = opts;
431
431
  const angleMap = {
432
432
  up: Math.PI / 2,
@@ -436,10 +436,10 @@ var rotateRightFacingSymbol = (symbol5, opts) => {
436
436
  };
437
437
  const transform2 = rotate(
438
438
  newOrientation ? angleMap[newOrientation] : Math.PI / 2,
439
- symbol5.center.x,
440
- symbol5.center.y
439
+ symbol4.center.x,
440
+ symbol4.center.y
441
441
  );
442
- const { primitives, center, size, ports } = symbol5;
442
+ const { primitives, center, size, ports } = symbol4;
443
443
  const rotatedPrimitives = primitives.map((primitive) => {
444
444
  primitive = { ...primitive };
445
445
  switch (primitive.type) {
@@ -494,19 +494,19 @@ var rotateRightFacingSymbol = (symbol5, opts) => {
494
494
  ...applyToPoint(transform2, port)
495
495
  })
496
496
  );
497
- const bounds72 = getBoundsOfPrimitives(rotatedPrimitives);
497
+ const bounds67 = getBoundsOfPrimitives(rotatedPrimitives);
498
498
  return {
499
499
  primitives: rotatedPrimitives,
500
500
  center,
501
501
  ports: rotatedPorts,
502
502
  size: {
503
- width: bounds72.maxX - bounds72.minX,
504
- height: bounds72.maxY - bounds72.minY
503
+ width: bounds67.maxX - bounds67.minX,
504
+ height: bounds67.maxY - bounds67.minY
505
505
  },
506
506
  ...overrides
507
507
  };
508
508
  };
509
- var rotateSymbol = (symbol5, orientation = "down", overrides = {}) => rotateRightFacingSymbol(symbol5, {
509
+ var rotateSymbol = (symbol4, orientation = "down", overrides = {}) => rotateRightFacingSymbol(symbol4, {
510
510
  newOrientation: orientation,
511
511
  overrides
512
512
  });
@@ -867,8 +867,8 @@ var backward_diode_default = {
867
867
  // drawing/modify-symbol/modify-symbol.ts
868
868
  var SymbolModifier = class {
869
869
  symbol;
870
- constructor(symbol5) {
871
- this.symbol = JSON.parse(JSON.stringify(symbol5));
870
+ constructor(symbol4) {
871
+ this.symbol = JSON.parse(JSON.stringify(symbol4));
872
872
  this.symbol.size = this.computeSize();
873
873
  }
874
874
  changeTextAnchor(text, newAnchor) {
@@ -902,29 +902,29 @@ var SymbolModifier = class {
902
902
  return this;
903
903
  }
904
904
  computeSize() {
905
- const bounds72 = getBoundsOfPrimitives(this.symbol.primitives);
905
+ const bounds67 = getBoundsOfPrimitives(this.symbol.primitives);
906
906
  return {
907
- width: bounds72.maxX - bounds72.minX,
908
- height: bounds72.maxY - bounds72.minY
907
+ width: bounds67.maxX - bounds67.minX,
908
+ height: bounds67.maxY - bounds67.minY
909
909
  };
910
910
  }
911
911
  build() {
912
912
  return { ...this.symbol, size: this.computeSize() };
913
913
  }
914
914
  };
915
- var modifySymbol = (symbol5) => {
916
- const primitives = symbol5.primitives ?? [
917
- ...Object.values(symbol5.paths ?? {}),
918
- ...Object.values(symbol5.texts ?? {}),
919
- ...Object.values(symbol5.circles ?? {}),
920
- ...Object.values(symbol5.rects ?? {})
915
+ var modifySymbol = (symbol4) => {
916
+ const primitives = symbol4.primitives ?? [
917
+ ...Object.values(symbol4.paths ?? {}),
918
+ ...Object.values(symbol4.texts ?? {}),
919
+ ...Object.values(symbol4.circles ?? {}),
920
+ ...Object.values(symbol4.rects ?? {})
921
921
  ];
922
- const ports = symbol5.ports ?? Object.entries(symbol5.refblocks).flatMap(([key, refblock]) => {
922
+ const ports = symbol4.ports ?? Object.entries(symbol4.refblocks).flatMap(([key, refblock]) => {
923
923
  return [{ ...refblock, labels: [key] }];
924
924
  });
925
- let center = symbol5.center ?? {
926
- x: symbol5.bounds.centerX,
927
- y: symbol5.bounds.centerY
925
+ let center = symbol4.center ?? {
926
+ x: symbol4.bounds.centerX,
927
+ y: symbol4.bounds.centerY
928
928
  };
929
929
  if (ports.length === 2) {
930
930
  center = {
@@ -933,7 +933,7 @@ var modifySymbol = (symbol5) => {
933
933
  };
934
934
  }
935
935
  return new SymbolModifier({
936
- ...symbol5,
936
+ ...symbol4,
937
937
  primitives,
938
938
  ports,
939
939
  center
@@ -6647,132 +6647,101 @@ var ground_default = {
6647
6647
  type: "path",
6648
6648
  points: [
6649
6649
  {
6650
- x: -0.33997010000000016,
6651
- y: 0.4545300000000001
6650
+ x: -0.2912618269999996,
6651
+ y: 0.004493150000000057
6652
6652
  },
6653
6653
  {
6654
- x: -0.03997010000000012,
6655
- y: 0.4545300000000001
6654
+ x: 0.03837157300000005,
6655
+ y: 0.004493150000000057
6656
6656
  }
6657
6657
  ],
6658
6658
  color: "primary",
6659
- fill: false
6659
+ fill: true
6660
6660
  },
6661
6661
  path2: {
6662
6662
  type: "path",
6663
6663
  points: [
6664
- { x: -0.04, y: 0.25053000000000014 },
6665
- { x: -0.04, y: 0.65053 }
6664
+ {
6665
+ x: 0.03833877300000044,
6666
+ y: -0.22466065000000057
6667
+ },
6668
+ {
6669
+ x: 0.03833877300000044,
6670
+ y: 0.2246606499999988
6671
+ }
6666
6672
  ],
6667
6673
  color: "primary",
6668
- fill: false
6674
+ fill: true
6669
6675
  },
6670
6676
  path3: {
6671
6677
  type: "path",
6672
6678
  points: [
6673
- { x: 0.03, y: 0.3005300000000002 },
6674
- { x: 0.03, y: 0.60053 }
6679
+ {
6680
+ x: 0.11525317300000104,
6681
+ y: -0.16849545
6682
+ },
6683
+ {
6684
+ x: 0.11525317300000104,
6685
+ y: 0.16849544999999821
6686
+ }
6675
6687
  ],
6676
6688
  color: "primary",
6677
- fill: false
6689
+ fill: true
6678
6690
  },
6679
6691
  path4: {
6680
6692
  type: "path",
6681
6693
  points: [
6682
- { x: 0.1, y: 0.40053000000000005 },
6683
- { x: 0.1, y: 0.5005300000000001 }
6694
+ {
6695
+ x: 0.19216757300000076,
6696
+ y: -0.05616515
6697
+ },
6698
+ {
6699
+ x: 0.19216757300000076,
6700
+ y: 0.05616515
6701
+ }
6684
6702
  ],
6685
6703
  color: "primary",
6686
- fill: false
6704
+ fill: true
6687
6705
  }
6688
6706
  },
6689
6707
  texts: {
6690
- bottom1: {
6691
- type: "text",
6692
- text: "{REF}",
6693
- x: -0.44999999999999996,
6694
- y: -0.6505299999999998
6695
- },
6696
6708
  right1: {
6697
6709
  type: "text",
6698
- text: "{VAL}",
6699
- x: 0.44999999999999973,
6700
- y: 0.35053
6710
+ text: "{REF}",
6711
+ x: 0.30929847300000013,
6712
+ y: -0.017042050000000586
6701
6713
  }
6702
6714
  },
6703
6715
  refblocks: {
6704
- top1: {
6705
- x: -0.33997010000000016,
6706
- y: 0.4545300000000001
6707
- },
6708
- top2: {
6709
- x: 0.17000000000000015,
6710
- y: 0.4535300000000002
6716
+ left1: {
6717
+ x: -0.29017832699999957,
6718
+ y: 0.00557934999999965
6711
6719
  }
6712
6720
  },
6713
6721
  bounds: {
6714
- minX: -0.44999999999999996,
6715
- maxX: 0.44999999999999973,
6716
- minY: -0.6505299999999998,
6717
- maxY: 0.65053,
6718
- width: 0.8999999999999997,
6719
- height: 1.3010599999999999,
6720
- centerX: -11102230246251565e-32,
6721
- centerY: 11102230246251565e-32
6722
+ minX: -0.3092984729999996,
6723
+ maxX: 0.30929847300000013,
6724
+ minY: -0.22466065000000057,
6725
+ maxY: 0.2246606499999988,
6726
+ width: 0.6185969459999997,
6727
+ height: 0.44932129999999937,
6728
+ centerX: 27755575615628914e-32,
6729
+ centerY: -8881784197001252e-31
6722
6730
  },
6723
6731
  circles: {}
6724
6732
  };
6725
6733
 
6726
- // symbols/ground_horz.ts
6727
- var { paths: paths25, circles: circles24, bounds: bounds25, refblocks: refblocks25 } = ground_default;
6728
- var horizontalSymbol = defineSymbol({
6729
- primitives: [
6730
- ...Object.values(paths25),
6731
- ...Object.values(circles24),
6732
- {
6733
- type: "text",
6734
- text: "{REF}",
6735
- // REF label for horizontal
6736
- x: -0.1,
6737
- // Adjust this for the horizontal positioning of REF
6738
- y: 0.8,
6739
- // Adjust this for the vertical positioning of REF
6740
- anchor: "middle_bottom"
6741
- // Horizontal anchor for REF
6742
- },
6743
- {
6744
- type: "text",
6745
- text: "{VAL}",
6746
- // VAL label for horizontal
6747
- x: -0.1,
6748
- // Adjust for horizontal positioning of VAL
6749
- y: 0.1,
6750
- // Adjust for vertical positioning of VAL
6751
- anchor: "middle_top"
6752
- // Horizontal anchor for VAL
6753
- }
6754
- ],
6755
- ports: [{ ...refblocks25.top1, labels: ["1"] }],
6756
- size: { width: 1, height: 1 },
6757
- center: { x: 0, y: 0.4 }
6758
- });
6759
- var ground_horz_default = horizontalSymbol;
6734
+ // symbols/ground_down.ts
6735
+ var ground_down_default = modifySymbol(ground_default).rotateRightFacingSymbol("down").labelPort("left1", ["1"]).changeTextAnchor("{REF}", "middle_top").build();
6760
6736
 
6761
- // symbols/ground_vert.ts
6762
- var symbol2 = rotateSymbol(ground_horz_default, "down");
6763
- var ref16 = symbol2.primitives.find(
6764
- (p) => p.type === "text" && p.text === "{REF}"
6765
- );
6766
- var val16 = symbol2.primitives.find(
6767
- (p) => p.type === "text" && p.text === "{VAL}"
6768
- );
6769
- ref16.anchor = "middle_left";
6770
- val16.anchor = "middle_left";
6771
- ref16.y += 0.16;
6772
- ref16.x = 0.31;
6773
- val16.y -= 0.25;
6774
- val16.x = 0.31;
6775
- var ground_vert_default = symbol2;
6737
+ // symbols/ground_left.ts
6738
+ var ground_left_default = modifySymbol(ground_default).rotateRightFacingSymbol("left").labelPort("left1", ["1"]).changeTextAnchor("{REF}", "middle_right").build();
6739
+
6740
+ // symbols/ground_right.ts
6741
+ var ground_right_default = modifySymbol(ground_default).rotateRightFacingSymbol("right").labelPort("left1", ["1"]).changeTextAnchor("{REF}", "middle_left").build();
6742
+
6743
+ // symbols/ground_up.ts
6744
+ var ground_up_default = modifySymbol(ground_default).rotateRightFacingSymbol("up").labelPort("left1", ["1"]).changeTextAnchor("{REF}", "middle_bottom").build();
6776
6745
 
6777
6746
  // assets/generated/ground2.json
6778
6747
  var ground2_default = {
@@ -6836,10 +6805,10 @@ var ground2_default = {
6836
6805
  };
6837
6806
 
6838
6807
  // symbols/ground2_down.ts
6839
- var { paths: paths26, texts: texts25, bounds: bounds26, refblocks: refblocks26 } = ground2_default;
6808
+ var { paths: paths25, texts: texts25, bounds: bounds25, refblocks: refblocks25 } = ground2_default;
6840
6809
  var ground2_down_default = modifySymbol({
6841
6810
  primitives: [
6842
- ...Object.values(paths26),
6811
+ ...Object.values(paths25),
6843
6812
  {
6844
6813
  type: "text",
6845
6814
  text: "{REF}",
@@ -6848,18 +6817,18 @@ var ground2_down_default = modifySymbol({
6848
6817
  }
6849
6818
  ],
6850
6819
  ports: [
6851
- { ...refblocks26.left1, labels: ["1"] }
6820
+ { ...refblocks25.left1, labels: ["1"] }
6852
6821
  // TODO add more "standard" labels
6853
6822
  ],
6854
- center: { x: bounds26.centerX, y: bounds26.centerY }
6823
+ center: { x: bounds25.centerX, y: bounds25.centerY }
6855
6824
  }).rotateRightFacingSymbol("down").labelPort("left1", ["1"]).changeTextAnchor("{REF}", "middle_bottom").build();
6856
6825
 
6857
6826
  // symbols/ground2_left.ts
6858
- var { paths: paths27, texts: texts26, bounds: bounds27, refblocks: refblocks27, circles: circles25 } = ground2_default;
6827
+ var { paths: paths26, texts: texts26, bounds: bounds26, refblocks: refblocks26, circles: circles24 } = ground2_default;
6859
6828
  var ground2_left_default = modifySymbol({
6860
6829
  primitives: [
6861
- ...Object.values(paths27),
6862
- ...Object.values(circles25),
6830
+ ...Object.values(paths26),
6831
+ ...Object.values(circles24),
6863
6832
  {
6864
6833
  type: "text",
6865
6834
  text: "{REF}",
@@ -6868,18 +6837,18 @@ var ground2_left_default = modifySymbol({
6868
6837
  }
6869
6838
  ],
6870
6839
  ports: [
6871
- { ...refblocks27.left1, labels: ["1"] }
6840
+ { ...refblocks26.left1, labels: ["1"] }
6872
6841
  // TODO add more "standard" labels
6873
6842
  ],
6874
- center: { x: bounds27.centerX, y: bounds27.centerY }
6843
+ center: { x: bounds26.centerX, y: bounds26.centerY }
6875
6844
  }).rotateRightFacingSymbol("left").labelPort("left1", ["1"]).changeTextAnchor("{REF}", "middle_left").build();
6876
6845
 
6877
6846
  // symbols/ground2_right.ts
6878
- var { paths: paths28, texts: texts27, bounds: bounds28, refblocks: refblocks28, circles: circles26 } = ground2_default;
6847
+ var { paths: paths27, texts: texts27, bounds: bounds27, refblocks: refblocks27, circles: circles25 } = ground2_default;
6879
6848
  var ground2_right_default = modifySymbol({
6880
6849
  primitives: [
6881
- ...Object.values(paths28),
6882
- ...Object.values(circles26),
6850
+ ...Object.values(paths27),
6851
+ ...Object.values(circles25),
6883
6852
  {
6884
6853
  type: "text",
6885
6854
  text: "{REF}",
@@ -6888,18 +6857,18 @@ var ground2_right_default = modifySymbol({
6888
6857
  }
6889
6858
  ],
6890
6859
  ports: [
6891
- { ...refblocks28.left1, labels: ["1"] }
6860
+ { ...refblocks27.left1, labels: ["1"] }
6892
6861
  // TODO add more "standard" labels
6893
6862
  ],
6894
- center: { x: bounds28.centerX, y: bounds28.centerY }
6863
+ center: { x: bounds27.centerX, y: bounds27.centerY }
6895
6864
  }).changeTextAnchor("{VAL}", "middle_top").rotateRightFacingSymbol("right").labelPort("left1", ["1"]).changeTextAnchor("{REF}", "middle_right").build();
6896
6865
 
6897
6866
  // symbols/ground2_up.ts
6898
- var { paths: paths29, texts: texts28, bounds: bounds29, refblocks: refblocks29, circles: circles27 } = ground2_default;
6867
+ var { paths: paths28, texts: texts28, bounds: bounds28, refblocks: refblocks28, circles: circles26 } = ground2_default;
6899
6868
  var ground2_up_default = modifySymbol({
6900
6869
  primitives: [
6901
- ...Object.values(paths29),
6902
- ...Object.values(circles27),
6870
+ ...Object.values(paths28),
6871
+ ...Object.values(circles26),
6903
6872
  {
6904
6873
  type: "text",
6905
6874
  text: "{REF}",
@@ -6908,10 +6877,10 @@ var ground2_up_default = modifySymbol({
6908
6877
  }
6909
6878
  ],
6910
6879
  ports: [
6911
- { ...refblocks29.left1, labels: ["1"] }
6880
+ { ...refblocks28.left1, labels: ["1"] }
6912
6881
  // TODO add more "standard" labels
6913
6882
  ],
6914
- center: { x: bounds29.centerX, y: bounds29.centerY }
6883
+ center: { x: bounds28.centerX, y: bounds28.centerY }
6915
6884
  }).rotateRightFacingSymbol("up").labelPort("left1", ["1"]).changeTextAnchor("{REF}", "middle_top").build();
6916
6885
 
6917
6886
  // assets/generated/gunn_diode.json
@@ -7032,7 +7001,7 @@ var gunn_diode_default = {
7032
7001
  };
7033
7002
 
7034
7003
  // symbols/gunn_diode_horz.ts
7035
- var { paths: paths30, texts: texts29, bounds: bounds30, refblocks: refblocks30, circles: circles28 } = gunn_diode_default;
7004
+ var { paths: paths29, texts: texts29, bounds: bounds29, refblocks: refblocks29, circles: circles27 } = gunn_diode_default;
7036
7005
  var gunn_diode_horz_default = modifySymbol(gunn_diode_default).changeTextAnchor("{VAL}", "middle_top").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_bottom").build();
7037
7006
 
7038
7007
  // symbols/gunn_diode_vert.ts
@@ -7551,17 +7520,17 @@ var igbt_transistor_horz_default = modifySymbol(igbt_transistor_default).changeT
7551
7520
 
7552
7521
  // symbols/igbt_transistor_vert.ts
7553
7522
  var rotated15 = rotateSymbol(igbt_transistor_horz_default);
7554
- var ref17 = rotated15.primitives.find(
7523
+ var ref16 = rotated15.primitives.find(
7555
7524
  (p) => p.type === "text" && p.text === "{REF}"
7556
7525
  );
7557
- var val17 = rotated15.primitives.find(
7526
+ var val16 = rotated15.primitives.find(
7558
7527
  (p) => p.type === "text" && p.text === "{VAL}"
7559
7528
  );
7560
- ref17.anchor = "middle_left";
7561
- val17.anchor = "middle_right";
7562
- ref17.x = 0.45;
7563
- ref17.y += 0.065;
7564
- val17.y += 0.065;
7529
+ ref16.anchor = "middle_left";
7530
+ val16.anchor = "middle_right";
7531
+ ref16.x = 0.45;
7532
+ ref16.y += 0.065;
7533
+ val16.y += 0.065;
7565
7534
  var igbt_transistor_vert_default = rotated15;
7566
7535
 
7567
7536
  // assets/generated/illuminated_push_button_normally_open.json
@@ -7801,14 +7770,14 @@ var illuminated_push_button_normally_open_horz_default = modifySymbol(illuminate
7801
7770
  // symbols/illuminated_push_button_normally_open_vert.ts
7802
7771
  var rotatedSymbol6 = rotateSymbol(illuminated_push_button_normally_open_horz_default);
7803
7772
  var texts30 = rotatedSymbol6.primitives.filter((p) => p.type === "text");
7804
- var val18 = texts30.find((t) => t.text === "{VAL}");
7805
- val18.x = -0.35;
7806
- val18.y = 0;
7807
- val18.anchor = "middle_right";
7808
- var ref18 = texts30.find((t) => t.text === "{REF}");
7809
- ref18.y = 0;
7810
- ref18.x = 0.35;
7811
- ref18.anchor = "middle_left";
7773
+ var val17 = texts30.find((t) => t.text === "{VAL}");
7774
+ val17.x = -0.35;
7775
+ val17.y = 0;
7776
+ val17.anchor = "middle_right";
7777
+ var ref17 = texts30.find((t) => t.text === "{REF}");
7778
+ ref17.y = 0;
7779
+ ref17.x = 0.35;
7780
+ ref17.anchor = "middle_left";
7812
7781
  var illuminated_push_button_normally_open_vert_default = rotatedSymbol6;
7813
7782
 
7814
7783
  // assets/generated/inductor.json
@@ -9207,22 +9176,22 @@ var inductor_default = {
9207
9176
  };
9208
9177
 
9209
9178
  // symbols/inductor_right.ts
9210
- var { paths: paths31, texts: texts31, bounds: bounds31, refblocks: refblocks31, circles: circles29 } = inductor_default;
9179
+ var { paths: paths30, texts: texts31, bounds: bounds30, refblocks: refblocks30, circles: circles28 } = inductor_default;
9211
9180
  var inductor_right_default = defineSymbol({
9212
9181
  primitives: [
9213
- ...Object.values(paths31),
9214
- ...Object.values(circles29),
9182
+ ...Object.values(paths30),
9183
+ ...Object.values(circles28),
9215
9184
  { ...texts31.top1, anchor: "middle_bottom" },
9216
9185
  { ...texts31.bottom1, anchor: "middle_top" }
9217
9186
  ],
9218
9187
  ports: [
9219
- { ...refblocks31.left1, labels: ["1"] },
9188
+ { ...refblocks30.left1, labels: ["1"] },
9220
9189
  // TODO add more "standard" labels
9221
- { ...refblocks31.right1, labels: ["2"] }
9190
+ { ...refblocks30.right1, labels: ["2"] }
9222
9191
  // TODO add more "standard" labels
9223
9192
  ],
9224
- size: { width: bounds31.width, height: bounds31.height },
9225
- center: { x: bounds31.centerX, y: bounds31.centerY }
9193
+ size: { width: bounds30.width, height: bounds30.height },
9194
+ center: { x: bounds30.centerX, y: bounds30.centerY }
9226
9195
  });
9227
9196
 
9228
9197
  // symbols/inductor_up.ts
@@ -9480,9 +9449,9 @@ var laser_diode_horz_default = modifySymbol(laser_diode_default).changeTextAncho
9480
9449
  // symbols/laser_diode_vert.ts
9481
9450
  var rotatedSymbol7 = rotateSymbol(laser_diode_horz_default);
9482
9451
  var texts32 = rotatedSymbol7.primitives.filter((p) => p.type === "text");
9483
- var ref19 = texts32.find((t) => t.text === "{VAL}");
9484
- ref19.x = -0.52;
9485
- ref19.anchor = "middle_right";
9452
+ var ref18 = texts32.find((t) => t.text === "{VAL}");
9453
+ ref18.x = -0.52;
9454
+ ref18.anchor = "middle_right";
9486
9455
  var laser_diode_vert_default = rotatedSymbol7;
9487
9456
 
9488
9457
  // assets/generated/led.json
@@ -9701,55 +9670,55 @@ var led_default = {
9701
9670
  };
9702
9671
 
9703
9672
  // symbols/led_right.ts
9704
- var { paths: paths32, texts: texts33, bounds: bounds32, refblocks: refblocks32, circles: circles30 } = led_default;
9673
+ var { paths: paths31, texts: texts33, bounds: bounds31, refblocks: refblocks31, circles: circles29 } = led_default;
9705
9674
  var led_right_default = defineSymbol({
9706
9675
  primitives: [
9707
- ...Object.values(paths32),
9708
- ...Object.values(circles30),
9676
+ ...Object.values(paths31),
9677
+ ...Object.values(circles29),
9709
9678
  { ...texts33.bottom1, anchor: "middle_top" },
9710
9679
  { ...texts33.right1, anchor: "middle_bottom" }
9711
9680
  ],
9712
9681
  ports: [
9713
- { ...refblocks32.left1, labels: ["1"] },
9682
+ { ...refblocks31.left1, labels: ["1"] },
9714
9683
  // TODO add more "standard" labels
9715
- { ...refblocks32.right1, labels: ["2"] }
9684
+ { ...refblocks31.right1, labels: ["2"] }
9716
9685
  // TODO add more "standard" labels
9717
9686
  ],
9718
- size: { width: bounds32.width, height: bounds32.height },
9719
- center: { x: bounds32.centerX, y: bounds32.centerY }
9687
+ size: { width: bounds31.width, height: bounds31.height },
9688
+ center: { x: bounds31.centerX, y: bounds31.centerY }
9720
9689
  });
9721
9690
 
9722
9691
  // symbols/led_up.ts
9723
- var symbol3 = rotateSymbol(led_right_default, "up");
9724
- var ref20 = symbol3.primitives.find(
9692
+ var symbol2 = rotateSymbol(led_right_default, "up");
9693
+ var ref19 = symbol2.primitives.find(
9725
9694
  (p) => p.type === "text" && p.text === "{REF}"
9726
9695
  );
9727
- var val19 = symbol3.primitives.find(
9696
+ var val18 = symbol2.primitives.find(
9728
9697
  (p) => p.type === "text" && p.text === "{VAL}"
9729
9698
  );
9730
- ref20.anchor = "middle_left";
9731
- val19.anchor = "middle_left";
9732
- ref20.y += 0.21;
9733
- ref20.x = 0.21;
9734
- val19.y -= 0.21;
9735
- val19.x = 0.21;
9736
- var led_up_default = symbol3;
9699
+ ref19.anchor = "middle_left";
9700
+ val18.anchor = "middle_left";
9701
+ ref19.y += 0.21;
9702
+ ref19.x = 0.21;
9703
+ val18.y -= 0.21;
9704
+ val18.x = 0.21;
9705
+ var led_up_default = symbol2;
9737
9706
 
9738
9707
  // symbols/led_down.ts
9739
- var symbol4 = flipSymbolOverXAxis(led_up_default);
9740
- var ref21 = symbol4.primitives.find(
9708
+ var symbol3 = flipSymbolOverXAxis(led_up_default);
9709
+ var ref20 = symbol3.primitives.find(
9741
9710
  (p) => p.type === "text" && p.text === "{REF}"
9742
9711
  );
9743
- var val20 = symbol4.primitives.find(
9712
+ var val19 = symbol3.primitives.find(
9744
9713
  (p) => p.type === "text" && p.text === "{VAL}"
9745
9714
  );
9746
- ref21.anchor = "middle_left";
9747
- val20.anchor = "middle_left";
9748
- ref21.y += 0.4;
9749
- ref21.x = 0.2;
9750
- val20.y -= 0.41;
9751
- val20.x = 0.2;
9752
- var led_down_default = symbol4;
9715
+ ref20.anchor = "middle_left";
9716
+ val19.anchor = "middle_left";
9717
+ ref20.y += 0.4;
9718
+ ref20.x = 0.2;
9719
+ val19.y -= 0.41;
9720
+ val19.x = 0.2;
9721
+ var led_down_default = symbol3;
9753
9722
 
9754
9723
  // symbols/led_left.ts
9755
9724
  var led_left_default = flipSymbolOverYAxis(led_right_default);
@@ -9979,35 +9948,35 @@ var light_dependent_resistor_default = {
9979
9948
  };
9980
9949
 
9981
9950
  // symbols/light_dependent_resistor_horz.ts
9982
- var { paths: paths33, texts: texts34, bounds: bounds33, refblocks: refblocks33, circles: circles31 } = light_dependent_resistor_default;
9951
+ var { paths: paths32, texts: texts34, bounds: bounds32, refblocks: refblocks32, circles: circles30 } = light_dependent_resistor_default;
9983
9952
  var light_dependent_resistor_horz_default = defineSymbol({
9984
9953
  primitives: [
9985
- ...Object.values(paths33),
9986
- ...Object.values(circles31),
9954
+ ...Object.values(paths32),
9955
+ ...Object.values(circles30),
9987
9956
  { ...texts34.top1, anchor: "middle_left", x: 0 },
9988
9957
  { ...texts34.bottom1, anchor: "middle_left", x: 0 }
9989
9958
  ],
9990
9959
  ports: [
9991
- { ...refblocks33.left1, labels: ["1"] },
9960
+ { ...refblocks32.left1, labels: ["1"] },
9992
9961
  // TODO add more "standard" labels
9993
- { ...refblocks33.right1, labels: ["2"] }
9962
+ { ...refblocks32.right1, labels: ["2"] }
9994
9963
  // TODO add more "standard" labels
9995
9964
  ],
9996
- size: { width: bounds33.width, height: bounds33.height },
9997
- center: { x: bounds33.centerX, y: bounds33.centerY }
9965
+ size: { width: bounds32.width, height: bounds32.height },
9966
+ center: { x: bounds32.centerX, y: bounds32.centerY }
9998
9967
  });
9999
9968
 
10000
9969
  // symbols/light_dependent_resistor_vert.ts
10001
9970
  var rotatedSymbol8 = rotateSymbol(light_dependent_resistor_horz_default);
10002
9971
  var texts35 = rotatedSymbol8.primitives.filter((p) => p.type === "text");
10003
- var val21 = texts35.find((t) => t.text === "{VAL}");
10004
- val21.x = -0.35;
10005
- val21.y = 0;
10006
- val21.anchor = "middle_right";
10007
- var ref22 = texts35.find((t) => t.text === "{REF}");
10008
- ref22.y = 0;
10009
- ref22.x = 0.35;
10010
- ref22.anchor = "middle_left";
9972
+ var val20 = texts35.find((t) => t.text === "{VAL}");
9973
+ val20.x = -0.35;
9974
+ val20.y = 0;
9975
+ val20.anchor = "middle_right";
9976
+ var ref21 = texts35.find((t) => t.text === "{REF}");
9977
+ ref21.y = 0;
9978
+ ref21.x = 0.35;
9979
+ ref21.anchor = "middle_left";
10011
9980
  var light_dependent_resistor_vert_default = rotatedSymbol8;
10012
9981
 
10013
9982
  // assets/generated/mosfet_depletion_normally_on.json
@@ -10281,37 +10250,37 @@ var mosfet_depletion_normally_on_default = {
10281
10250
  };
10282
10251
 
10283
10252
  // symbols/mosfet_depletion_normally_on_horz.ts
10284
- var { paths: paths34, texts: texts36, bounds: bounds34, refblocks: refblocks34 } = mosfet_depletion_normally_on_default;
10253
+ var { paths: paths33, texts: texts36, bounds: bounds33, refblocks: refblocks33 } = mosfet_depletion_normally_on_default;
10285
10254
  var mosfet_depletion_normally_on_horz_default = defineSymbol({
10286
10255
  primitives: [
10287
- ...Object.values(paths34),
10256
+ ...Object.values(paths33),
10288
10257
  { ...texts36.right1, anchor: "middle_left" },
10289
10258
  { ...texts36.right2, anchor: "middle_left" }
10290
10259
  ],
10291
10260
  ports: [
10292
- { ...refblocks34.top1, labels: ["1"] },
10261
+ { ...refblocks33.top1, labels: ["1"] },
10293
10262
  // TODO add more "standard" labels
10294
- { ...refblocks34.bottom1, labels: ["2"] },
10263
+ { ...refblocks33.bottom1, labels: ["2"] },
10295
10264
  // TODO add more "standard" labels
10296
- { ...refblocks34.left1, labels: ["3"] }
10265
+ { ...refblocks33.left1, labels: ["3"] }
10297
10266
  // TODO add more "standard" labels
10298
10267
  ],
10299
- size: { width: bounds34.width + 0.4, height: bounds34.height },
10300
- center: { x: bounds34.centerX + 0.2, y: bounds34.centerY }
10268
+ size: { width: bounds33.width + 0.4, height: bounds33.height },
10269
+ center: { x: bounds33.centerX + 0.2, y: bounds33.centerY }
10301
10270
  });
10302
10271
 
10303
10272
  // symbols/mosfet_depletion_normally_on_vert.ts
10304
10273
  var rotated16 = rotateSymbol(mosfet_depletion_normally_on_horz_default);
10305
- var ref23 = rotated16.primitives.find(
10274
+ var ref22 = rotated16.primitives.find(
10306
10275
  (p) => p.type === "text" && p.text === "{REF}"
10307
10276
  );
10308
- var val22 = rotated16.primitives.find(
10277
+ var val21 = rotated16.primitives.find(
10309
10278
  (p) => p.type === "text" && p.text === "{VAL}"
10310
10279
  );
10311
- ref23.anchor = "middle_top";
10312
- val22.anchor = "middle_top";
10313
- ref23.x = val22.x;
10314
- val22.y += 0.15;
10280
+ ref22.anchor = "middle_top";
10281
+ val21.anchor = "middle_top";
10282
+ ref22.x = val21.x;
10283
+ val21.y += 0.15;
10315
10284
  var mosfet_depletion_normally_on_vert_default = rotated16;
10316
10285
 
10317
10286
  // assets/generated/mushroom_head_normally_open_momentary.json
@@ -10923,36 +10892,36 @@ var mushroom_head_normally_open_momentary_default = {
10923
10892
  };
10924
10893
 
10925
10894
  // symbols/mushroom_head_normally_open_momentary_horz.ts
10926
- var { paths: paths35, texts: texts37, bounds: bounds35, refblocks: refblocks35, circles: circles32 } = mushroom_head_normally_open_momentary_default;
10895
+ var { paths: paths34, texts: texts37, bounds: bounds34, refblocks: refblocks34, circles: circles31 } = mushroom_head_normally_open_momentary_default;
10927
10896
  var mushroom_head_normally_open_momentary_horz_default = defineSymbol({
10928
10897
  primitives: [
10929
- ...Object.values(paths35),
10930
- ...Object.values(circles32),
10898
+ ...Object.values(paths34),
10899
+ ...Object.values(circles31),
10931
10900
  { ...texts37.top1, anchor: "middle_bottom", x: 0 },
10932
10901
  { ...texts37.bottom1, anchor: "middle_top", x: 0 }
10933
10902
  ],
10934
10903
  ports: [
10935
- { ...refblocks35.left1, labels: ["1"] },
10936
- { ...refblocks35.right1, labels: ["2"] }
10904
+ { ...refblocks34.left1, labels: ["1"] },
10905
+ { ...refblocks34.right1, labels: ["2"] }
10937
10906
  ],
10938
- size: { width: bounds35.width, height: bounds35.height },
10939
- center: { x: bounds35.centerX + 6e-3, y: bounds35.centerY + 0.06 }
10907
+ size: { width: bounds34.width, height: bounds34.height },
10908
+ center: { x: bounds34.centerX + 6e-3, y: bounds34.centerY + 0.06 }
10940
10909
  });
10941
10910
 
10942
10911
  // symbols/mushroom_head_normally_open_momentary_vert.ts
10943
10912
  var rotated17 = rotateSymbol(mushroom_head_normally_open_momentary_horz_default);
10944
- var ref24 = rotated17.primitives.find(
10913
+ var ref23 = rotated17.primitives.find(
10945
10914
  (p) => p.type === "text" && p.text === "{REF}"
10946
10915
  );
10947
- var val23 = rotated17.primitives.find(
10916
+ var val22 = rotated17.primitives.find(
10948
10917
  (p) => p.type === "text" && p.text === "{VAL}"
10949
10918
  );
10950
- ref24.anchor = "middle_left";
10951
- val23.anchor = "middle_right";
10952
- ref24.x = ref24.x - 0.03;
10953
- ref24.y = ref24.y;
10954
- val23.x = val23.x;
10955
- val23.y = 0;
10919
+ ref23.anchor = "middle_left";
10920
+ val22.anchor = "middle_right";
10921
+ ref23.x = ref23.x - 0.03;
10922
+ ref23.y = ref23.y;
10923
+ val22.x = val22.x;
10924
+ val22.y = 0;
10956
10925
  var mushroom_head_normally_open_momentary_vert_default = rotated17;
10957
10926
 
10958
10927
  // assets/generated/n_channel_d_mosfet_transistor.json
@@ -11153,37 +11122,37 @@ var n_channel_d_mosfet_transistor_default = {
11153
11122
  };
11154
11123
 
11155
11124
  // symbols/n_channel_d_mosfet_transistor_horz.ts
11156
- var { paths: paths36, texts: texts38, bounds: bounds36, refblocks: refblocks36, circles: circles33 } = n_channel_d_mosfet_transistor_default;
11125
+ var { paths: paths35, texts: texts38, bounds: bounds35, refblocks: refblocks35, circles: circles32 } = n_channel_d_mosfet_transistor_default;
11157
11126
  var n_channel_d_mosfet_transistor_horz_default = defineSymbol({
11158
11127
  primitives: [
11159
- ...Object.values(paths36),
11160
- ...Object.values(circles33),
11128
+ ...Object.values(paths35),
11129
+ ...Object.values(circles32),
11161
11130
  { ...texts38.top1, anchor: "middle_right", x: 0 },
11162
11131
  { ...texts38.bottom1, anchor: "middle_right", x: 0 }
11163
11132
  ],
11164
11133
  ports: [
11165
- { ...refblocks36.top1, labels: ["1", "drain"] },
11134
+ { ...refblocks35.top1, labels: ["1", "drain"] },
11166
11135
  // TODO add more "standard" labels
11167
- { ...refblocks36.bottom1, labels: ["2", "source"] },
11136
+ { ...refblocks35.bottom1, labels: ["2", "source"] },
11168
11137
  // TODO add more "standard" labels
11169
- { ...refblocks36.left1, labels: ["3", "gate"] }
11138
+ { ...refblocks35.left1, labels: ["3", "gate"] }
11170
11139
  // TODO add more "standard" labels
11171
11140
  ],
11172
- size: { width: bounds36.width, height: bounds36.height },
11173
- center: { x: bounds36.centerX, y: bounds36.centerY }
11141
+ size: { width: bounds35.width, height: bounds35.height },
11142
+ center: { x: bounds35.centerX, y: bounds35.centerY }
11174
11143
  });
11175
11144
 
11176
11145
  // symbols/n_channel_d_mosfet_transistor_vert.ts
11177
11146
  var rotatedSymbol9 = rotateSymbol(n_channel_d_mosfet_transistor_horz_default);
11178
11147
  var texts39 = rotatedSymbol9.primitives.filter((p) => p.type === "text");
11179
- var val24 = texts39.find((t) => t.text === "{VAL}");
11180
- val24.x = -0.35;
11181
- val24.y = 0;
11182
- val24.anchor = "middle_right";
11183
- var ref25 = texts39.find((t) => t.text === "{REF}");
11184
- ref25.y = 0;
11185
- ref25.x = 0.35;
11186
- ref25.anchor = "middle_left";
11148
+ var val23 = texts39.find((t) => t.text === "{VAL}");
11149
+ val23.x = -0.35;
11150
+ val23.y = 0;
11151
+ val23.anchor = "middle_right";
11152
+ var ref24 = texts39.find((t) => t.text === "{REF}");
11153
+ ref24.y = 0;
11154
+ ref24.x = 0.35;
11155
+ ref24.anchor = "middle_left";
11187
11156
  var n_channel_d_mosfet_transistor_vert_default = rotatedSymbol9;
11188
11157
 
11189
11158
  // assets/generated/n_channel_e_mosfet_transistor.json
@@ -11414,37 +11383,37 @@ var n_channel_e_mosfet_transistor_default = {
11414
11383
  };
11415
11384
 
11416
11385
  // symbols/n_channel_e_mosfet_transistor_horz.ts
11417
- var { paths: paths37, texts: texts40, bounds: bounds37, refblocks: refblocks37, circles: circles34 } = n_channel_e_mosfet_transistor_default;
11386
+ var { paths: paths36, texts: texts40, bounds: bounds36, refblocks: refblocks36, circles: circles33 } = n_channel_e_mosfet_transistor_default;
11418
11387
  var n_channel_e_mosfet_transistor_horz_default = defineSymbol({
11419
11388
  primitives: [
11420
- ...Object.values(paths37),
11421
- ...Object.values(circles34),
11389
+ ...Object.values(paths36),
11390
+ ...Object.values(circles33),
11422
11391
  { ...texts40.top1, anchor: "middle_right", x: 0 },
11423
11392
  { ...texts40.bottom1, anchor: "middle_right", x: 0 }
11424
11393
  ],
11425
11394
  ports: [
11426
- { ...refblocks37.top1, labels: ["1", "drain"] },
11395
+ { ...refblocks36.top1, labels: ["1", "drain"] },
11427
11396
  // TODO add more "standard" labels
11428
- { ...refblocks37.bottom1, labels: ["2", "source"] },
11397
+ { ...refblocks36.bottom1, labels: ["2", "source"] },
11429
11398
  // TODO add more "standard" labels
11430
- { ...refblocks37.left1, labels: ["3", "gate"] }
11399
+ { ...refblocks36.left1, labels: ["3", "gate"] }
11431
11400
  // TODO add more "standard" labels
11432
11401
  ],
11433
- size: { width: bounds37.width, height: bounds37.height },
11434
- center: { x: bounds37.centerX, y: bounds37.centerY }
11402
+ size: { width: bounds36.width, height: bounds36.height },
11403
+ center: { x: bounds36.centerX, y: bounds36.centerY }
11435
11404
  });
11436
11405
 
11437
11406
  // symbols/n_channel_e_mosfet_transistor_vert.ts
11438
11407
  var rotatedSymbol10 = rotateSymbol(n_channel_e_mosfet_transistor_horz_default);
11439
11408
  var texts41 = rotatedSymbol10.primitives.filter((p) => p.type === "text");
11440
- var val25 = texts41.find((t) => t.text === "{VAL}");
11441
- val25.x = -0.35;
11442
- val25.y = 0;
11443
- val25.anchor = "middle_right";
11444
- var ref26 = texts41.find((t) => t.text === "{REF}");
11445
- ref26.y = 0;
11446
- ref26.x = 0.35;
11447
- ref26.anchor = "middle_left";
11409
+ var val24 = texts41.find((t) => t.text === "{VAL}");
11410
+ val24.x = -0.35;
11411
+ val24.y = 0;
11412
+ val24.anchor = "middle_right";
11413
+ var ref25 = texts41.find((t) => t.text === "{REF}");
11414
+ ref25.y = 0;
11415
+ ref25.x = 0.35;
11416
+ ref25.anchor = "middle_left";
11448
11417
  var n_channel_e_mosfet_transistor_vert_default = rotatedSymbol10;
11449
11418
 
11450
11419
  // assets/generated/njfet_transistor.json
@@ -11615,37 +11584,37 @@ var njfet_transistor_default = {
11615
11584
  };
11616
11585
 
11617
11586
  // symbols/njfet_transistor_horz.ts
11618
- var { paths: paths38, texts: texts42, bounds: bounds38, refblocks: refblocks38, circles: circles35 } = njfet_transistor_default;
11587
+ var { paths: paths37, texts: texts42, bounds: bounds37, refblocks: refblocks37, circles: circles34 } = njfet_transistor_default;
11619
11588
  var njfet_transistor_horz_default = defineSymbol({
11620
11589
  primitives: [
11621
- ...Object.values(paths38),
11622
- ...Object.values(circles35),
11590
+ ...Object.values(paths37),
11591
+ ...Object.values(circles34),
11623
11592
  { ...texts42.top1, anchor: "middle_right", x: 0 },
11624
11593
  { ...texts42.bottom1, anchor: "middle_right", x: 0 }
11625
11594
  ],
11626
11595
  ports: [
11627
- { ...refblocks38.top1, labels: ["1", "drain"] },
11596
+ { ...refblocks37.top1, labels: ["1", "drain"] },
11628
11597
  // TODO add more "standard" labels
11629
- { ...refblocks38.bottom1, labels: ["2", "source"] },
11598
+ { ...refblocks37.bottom1, labels: ["2", "source"] },
11630
11599
  // TODO add more "standard" labels
11631
- { ...refblocks38.left1, labels: ["3", "gate"] }
11600
+ { ...refblocks37.left1, labels: ["3", "gate"] }
11632
11601
  // TODO add more "standard" labels
11633
11602
  ],
11634
- size: { width: bounds38.width, height: bounds38.height },
11635
- center: { x: bounds38.centerX, y: bounds38.centerY }
11603
+ size: { width: bounds37.width, height: bounds37.height },
11604
+ center: { x: bounds37.centerX, y: bounds37.centerY }
11636
11605
  });
11637
11606
 
11638
11607
  // symbols/njfet_transistor_vert.ts
11639
11608
  var rotatedSymbol11 = rotateSymbol(njfet_transistor_horz_default);
11640
11609
  var texts43 = rotatedSymbol11.primitives.filter((p) => p.type === "text");
11641
- var val26 = texts43.find((t) => t.text === "{VAL}");
11642
- val26.x = -0.35;
11643
- val26.y = 0;
11644
- val26.anchor = "middle_right";
11645
- var ref27 = texts43.find((t) => t.text === "{REF}");
11646
- ref27.y = 0;
11647
- ref27.x = 0.35;
11648
- ref27.anchor = "middle_left";
11610
+ var val25 = texts43.find((t) => t.text === "{VAL}");
11611
+ val25.x = -0.35;
11612
+ val25.y = 0;
11613
+ val25.anchor = "middle_right";
11614
+ var ref26 = texts43.find((t) => t.text === "{REF}");
11615
+ ref26.y = 0;
11616
+ ref26.x = 0.35;
11617
+ ref26.anchor = "middle_left";
11649
11618
  var njfet_transistor_vert_default = rotatedSymbol11;
11650
11619
 
11651
11620
  // assets/generated/npn_bipolar_transistor.json
@@ -11816,14 +11785,14 @@ var npn_bipolar_transistor_default = {
11816
11785
  };
11817
11786
 
11818
11787
  // symbols/npn_bipolar_transistor_horz.ts
11819
- var { paths: paths39, texts: texts44, bounds: bounds39, refblocks: refblocks39, circles: circles36 } = npn_bipolar_transistor_default;
11788
+ var { paths: paths38, texts: texts44, bounds: bounds38, refblocks: refblocks38, circles: circles35 } = npn_bipolar_transistor_default;
11820
11789
  var npn_bipolar_transistor_horz_default = modifySymbol(npn_bipolar_transistor_default).changeTextAnchor("{VAL}", "middle_right").labelPort("left1", ["3"]).labelPort("top1", ["1"]).labelPort("bottom1", ["2"]).changeTextAnchor("{REF}", "middle_right").build();
11821
11790
 
11822
11791
  // symbols/npn_bipolar_transistor_vert.ts
11823
11792
  var rotatedSymbol12 = rotateSymbol(npn_bipolar_transistor_horz_default);
11824
11793
  var texts45 = rotatedSymbol12.primitives.filter((p) => p.type === "text");
11825
- var ref28 = texts45.find((t) => t.text === "{REF}");
11826
- ref28.anchor = "middle_left";
11794
+ var ref27 = texts45.find((t) => t.text === "{REF}");
11795
+ ref27.anchor = "middle_left";
11827
11796
  var npn_bipolar_transistor_vert_default = modifySymbol(npn_bipolar_transistor_default).rotateRightFacingSymbol("down").changeTextAnchor("{VAL}", "middle_right").labelPort("left1", ["3"]).labelPort("top1", ["1"]).labelPort("bottom1", ["2"]).changeTextAnchor("{REF}", "middle_left").build();
11828
11797
 
11829
11798
  // assets/generated/opamp_no_power.json
@@ -12446,37 +12415,37 @@ var p_channel_d_mosfet_transistor_default = {
12446
12415
  };
12447
12416
 
12448
12417
  // symbols/p_channel_d_mosfet_transistor_horz.ts
12449
- var { paths: paths40, texts: texts46, bounds: bounds40, refblocks: refblocks40, circles: circles37 } = p_channel_d_mosfet_transistor_default;
12418
+ var { paths: paths39, texts: texts46, bounds: bounds39, refblocks: refblocks39, circles: circles36 } = p_channel_d_mosfet_transistor_default;
12450
12419
  var p_channel_d_mosfet_transistor_horz_default = defineSymbol({
12451
12420
  primitives: [
12452
- ...Object.values(paths40),
12453
- ...Object.values(circles37),
12421
+ ...Object.values(paths39),
12422
+ ...Object.values(circles36),
12454
12423
  { ...texts46.top1, anchor: "middle_right", x: 0 },
12455
12424
  { ...texts46.bottom1, anchor: "middle_right", x: 0 }
12456
12425
  ],
12457
12426
  ports: [
12458
- { ...refblocks40.top1, labels: ["1", "drain"] },
12427
+ { ...refblocks39.top1, labels: ["1", "drain"] },
12459
12428
  // TODO add more "standard" labels
12460
- { ...refblocks40.bottom1, labels: ["2", "source"] },
12429
+ { ...refblocks39.bottom1, labels: ["2", "source"] },
12461
12430
  // TODO add more "standard" labels
12462
- { ...refblocks40.left1, labels: ["3", "gate"] }
12431
+ { ...refblocks39.left1, labels: ["3", "gate"] }
12463
12432
  // TODO add more "standard" labels
12464
12433
  ],
12465
- size: { width: bounds40.width, height: bounds40.height },
12466
- center: { x: bounds40.centerX, y: bounds40.centerY }
12434
+ size: { width: bounds39.width, height: bounds39.height },
12435
+ center: { x: bounds39.centerX, y: bounds39.centerY }
12467
12436
  });
12468
12437
 
12469
12438
  // symbols/p_channel_d_mosfet_transistor_vert.ts
12470
12439
  var rotatedSymbol13 = rotateSymbol(p_channel_d_mosfet_transistor_horz_default);
12471
12440
  var texts47 = rotatedSymbol13.primitives.filter((p) => p.type === "text");
12472
- var val27 = texts47.find((t) => t.text === "{VAL}");
12473
- val27.x = -0.35;
12474
- val27.y = 0;
12475
- val27.anchor = "middle_right";
12476
- var ref29 = texts47.find((t) => t.text === "{REF}");
12477
- ref29.y = 0;
12478
- ref29.x = 0.35;
12479
- ref29.anchor = "middle_left";
12441
+ var val26 = texts47.find((t) => t.text === "{VAL}");
12442
+ val26.x = -0.35;
12443
+ val26.y = 0;
12444
+ val26.anchor = "middle_right";
12445
+ var ref28 = texts47.find((t) => t.text === "{REF}");
12446
+ ref28.y = 0;
12447
+ ref28.x = 0.35;
12448
+ ref28.anchor = "middle_left";
12480
12449
  var p_channel_d_mosfet_transistor_vert_default = rotatedSymbol13;
12481
12450
 
12482
12451
  // assets/generated/p_channel_e_mosfet_transistor.json
@@ -12707,37 +12676,37 @@ var p_channel_e_mosfet_transistor_default = {
12707
12676
  };
12708
12677
 
12709
12678
  // symbols/p_channel_e_mosfet_transistor_horz.ts
12710
- var { paths: paths41, texts: texts48, bounds: bounds41, refblocks: refblocks41, circles: circles38 } = p_channel_e_mosfet_transistor_default;
12679
+ var { paths: paths40, texts: texts48, bounds: bounds40, refblocks: refblocks40, circles: circles37 } = p_channel_e_mosfet_transistor_default;
12711
12680
  var p_channel_e_mosfet_transistor_horz_default = defineSymbol({
12712
12681
  primitives: [
12713
- ...Object.values(paths41),
12714
- ...Object.values(circles38),
12682
+ ...Object.values(paths40),
12683
+ ...Object.values(circles37),
12715
12684
  { ...texts48.top1, anchor: "middle_right", x: 0 },
12716
12685
  { ...texts48.bottom1, anchor: "middle_right", x: 0 }
12717
12686
  ],
12718
12687
  ports: [
12719
- { ...refblocks41.top1, labels: ["1", "drain"] },
12688
+ { ...refblocks40.top1, labels: ["1", "drain"] },
12720
12689
  // TODO add more "standard" labels
12721
- { ...refblocks41.bottom1, labels: ["2", "source"] },
12690
+ { ...refblocks40.bottom1, labels: ["2", "source"] },
12722
12691
  // TODO add more "standard" labels
12723
- { ...refblocks41.left1, labels: ["3", "gate"] }
12692
+ { ...refblocks40.left1, labels: ["3", "gate"] }
12724
12693
  // TODO add more "standard" labels
12725
12694
  ],
12726
- size: { width: bounds41.width, height: bounds41.height },
12727
- center: { x: bounds41.centerX, y: bounds41.centerY }
12695
+ size: { width: bounds40.width, height: bounds40.height },
12696
+ center: { x: bounds40.centerX, y: bounds40.centerY }
12728
12697
  });
12729
12698
 
12730
12699
  // symbols/p_channel_e_mosfet_transistor_vert.ts
12731
12700
  var rotatedSymbol14 = rotateSymbol(p_channel_e_mosfet_transistor_horz_default);
12732
12701
  var texts49 = rotatedSymbol14.primitives.filter((p) => p.type === "text");
12733
- var val28 = texts49.find((t) => t.text === "{VAL}");
12734
- val28.x = -0.35;
12735
- val28.y = 0;
12736
- val28.anchor = "middle_right";
12737
- var ref30 = texts49.find((t) => t.text === "{REF}");
12738
- ref30.y = 0;
12739
- ref30.x = 0.35;
12740
- ref30.anchor = "middle_left";
12702
+ var val27 = texts49.find((t) => t.text === "{VAL}");
12703
+ val27.x = -0.35;
12704
+ val27.y = 0;
12705
+ val27.anchor = "middle_right";
12706
+ var ref29 = texts49.find((t) => t.text === "{REF}");
12707
+ ref29.y = 0;
12708
+ ref29.x = 0.35;
12709
+ ref29.anchor = "middle_left";
12741
12710
  var p_channel_e_mosfet_transistor_vert_default = rotatedSymbol14;
12742
12711
 
12743
12712
  // assets/generated/photodiode.json
@@ -12970,9 +12939,9 @@ var photodiode_horz_default = modifySymbol(photodiode_default).changeTextAnchor(
12970
12939
  // symbols/photodiode_vert.ts
12971
12940
  var rotatedSymbol15 = rotateSymbol(photodiode_horz_default);
12972
12941
  var texts50 = rotatedSymbol15.primitives.filter((p) => p.type === "text");
12973
- var ref31 = texts50.find((t) => t.text === "{REF}");
12974
- ref31.y = 0;
12975
- ref31.anchor = "middle_left";
12942
+ var ref30 = texts50.find((t) => t.text === "{REF}");
12943
+ ref30.y = 0;
12944
+ ref30.anchor = "middle_left";
12976
12945
  var photodiode_vert_default = rotatedSymbol15;
12977
12946
 
12978
12947
  // assets/generated/pjfet_transistor.json
@@ -13143,37 +13112,37 @@ var pjfet_transistor_default = {
13143
13112
  };
13144
13113
 
13145
13114
  // symbols/pjfet_transistor_horz.ts
13146
- var { paths: paths42, texts: texts51, bounds: bounds42, refblocks: refblocks42, circles: circles39 } = pjfet_transistor_default;
13115
+ var { paths: paths41, texts: texts51, bounds: bounds41, refblocks: refblocks41, circles: circles38 } = pjfet_transistor_default;
13147
13116
  var pjfet_transistor_horz_default = defineSymbol({
13148
13117
  primitives: [
13149
- ...Object.values(paths42),
13150
- ...Object.values(circles39),
13118
+ ...Object.values(paths41),
13119
+ ...Object.values(circles38),
13151
13120
  { ...texts51.top1, anchor: "middle_right", x: 0 },
13152
13121
  { ...texts51.bottom1, anchor: "middle_right" }
13153
13122
  ],
13154
13123
  ports: [
13155
- { ...refblocks42.top1, labels: ["1", "drain"] },
13124
+ { ...refblocks41.top1, labels: ["1", "drain"] },
13156
13125
  // TODO add more "standard" labels
13157
- { ...refblocks42.bottom1, labels: ["2", "source"] },
13126
+ { ...refblocks41.bottom1, labels: ["2", "source"] },
13158
13127
  // TODO add more "standard" labels
13159
- { ...refblocks42.left1, labels: ["3", "gate"] }
13128
+ { ...refblocks41.left1, labels: ["3", "gate"] }
13160
13129
  // TODO add more "standard" labels
13161
13130
  ],
13162
- size: { width: bounds42.width, height: bounds42.height },
13163
- center: { x: bounds42.centerX, y: bounds42.centerY }
13131
+ size: { width: bounds41.width, height: bounds41.height },
13132
+ center: { x: bounds41.centerX, y: bounds41.centerY }
13164
13133
  });
13165
13134
 
13166
13135
  // symbols/pjfet_transistor_vert.ts
13167
13136
  var rotatedSymbol16 = rotateSymbol(pjfet_transistor_horz_default);
13168
13137
  var texts52 = rotatedSymbol16.primitives.filter((p) => p.type === "text");
13169
- var val29 = texts52.find((t) => t.text === "{VAL}");
13170
- val29.x = -0.35;
13171
- val29.y = 0;
13172
- val29.anchor = "middle_right";
13173
- var ref32 = texts52.find((t) => t.text === "{REF}");
13174
- ref32.y = 0;
13175
- ref32.x = 0.35;
13176
- ref32.anchor = "middle_left";
13138
+ var val28 = texts52.find((t) => t.text === "{VAL}");
13139
+ val28.x = -0.35;
13140
+ val28.y = 0;
13141
+ val28.anchor = "middle_right";
13142
+ var ref31 = texts52.find((t) => t.text === "{REF}");
13143
+ ref31.y = 0;
13144
+ ref31.x = 0.35;
13145
+ ref31.anchor = "middle_left";
13177
13146
  var pjfet_transistor_vert_default = rotatedSymbol16;
13178
13147
 
13179
13148
  // assets/generated/pnp_bipolar_transistor.json
@@ -13349,8 +13318,8 @@ var pnp_bipolar_transistor_horz_default = modifySymbol(pnp_bipolar_transistor_de
13349
13318
  // symbols/pnp_bipolar_transistor_vert.ts
13350
13319
  var rotatedSymbol17 = rotateSymbol(pnp_bipolar_transistor_horz_default);
13351
13320
  var texts53 = rotatedSymbol17.primitives.filter((p) => p.type === "text");
13352
- var ref33 = texts53.find((t) => t.text === "{REF}");
13353
- ref33.anchor = "middle_left";
13321
+ var ref32 = texts53.find((t) => t.text === "{REF}");
13322
+ ref32.anchor = "middle_left";
13354
13323
  var pnp_bipolar_transistor_vert_default = modifySymbol(pnp_bipolar_transistor_default).rotateRightFacingSymbol("down").changeTextAnchor("{VAL}", "middle_right").labelPort("left1", ["3"]).labelPort("bottom1", ["2"]).labelPort("top1", ["1"]).changeTextAnchor("{REF}", "middle_left").build();
13355
13324
 
13356
13325
  // assets/generated/potentiometer.json
@@ -13763,21 +13732,21 @@ var potentiometer_default = {
13763
13732
  };
13764
13733
 
13765
13734
  // symbols/potentiometer_horz.ts
13766
- var { paths: paths43, texts: texts54, bounds: bounds43, refblocks: refblocks43 } = potentiometer_default;
13735
+ var { paths: paths42, texts: texts54, bounds: bounds42, refblocks: refblocks42 } = potentiometer_default;
13767
13736
  var potentiometer_horz_default = defineSymbol({
13768
13737
  primitives: [
13769
- ...Object.values(paths43),
13738
+ ...Object.values(paths42),
13770
13739
  { ...texts54.bottom1, y: 0.35, anchor: "middle_top" },
13771
13740
  { ...texts54.top1, anchor: "middle_left" }
13772
13741
  ],
13773
13742
  ports: [
13774
- { ...refblocks43.left1, labels: ["1"] },
13743
+ { ...refblocks42.left1, labels: ["1"] },
13775
13744
  // TODO add more "standard" labels
13776
- { ...refblocks43.right1, labels: ["2"] }
13745
+ { ...refblocks42.right1, labels: ["2"] }
13777
13746
  // TODO add more "standard" labels
13778
13747
  ],
13779
- size: { width: bounds43.width + 0.05, height: bounds43.height },
13780
- center: { x: bounds43.centerX, y: bounds43.centerY }
13748
+ size: { width: bounds42.width + 0.05, height: bounds42.height },
13749
+ center: { x: bounds42.centerX, y: bounds42.centerY }
13781
13750
  });
13782
13751
 
13783
13752
  // symbols/potentiometer_vert.ts
@@ -13940,30 +13909,30 @@ var potentiometer2_default = {
13940
13909
  };
13941
13910
 
13942
13911
  // symbols/potentiometer2_horz.ts
13943
- var { paths: paths44, texts: texts55, bounds: bounds44, refblocks: refblocks44 } = potentiometer2_default;
13912
+ var { paths: paths43, texts: texts55, bounds: bounds43, refblocks: refblocks43 } = potentiometer2_default;
13944
13913
  var potentiometer2_horz_default = defineSymbol({
13945
13914
  primitives: [
13946
- ...Object.values(paths44),
13915
+ ...Object.values(paths43),
13947
13916
  { ...texts55.bottom1, anchor: "middle_top" },
13948
13917
  { ...texts55.top1, anchor: "middle_bottom" }
13949
13918
  ],
13950
13919
  ports: [
13951
- { ...refblocks44.left1, labels: ["1"] },
13920
+ { ...refblocks43.left1, labels: ["1"] },
13952
13921
  // TODO add more "standard" labels
13953
- { ...refblocks44.right1, labels: ["2"] }
13922
+ { ...refblocks43.right1, labels: ["2"] }
13954
13923
  // TODO add more "standard" labels
13955
13924
  ],
13956
- size: { width: bounds44.width, height: bounds44.height },
13957
- center: { x: bounds44.centerX, y: bounds44.centerY }
13925
+ size: { width: bounds43.width, height: bounds43.height },
13926
+ center: { x: bounds43.centerX, y: bounds43.centerY }
13958
13927
  });
13959
13928
 
13960
13929
  // symbols/potentiometer2_vert.ts
13961
13930
  var rotated19 = rotateSymbol(potentiometer2_horz_default);
13962
13931
  var texts56 = rotated19.primitives.filter((p) => p.type === "text");
13963
- var val30 = texts56.find((t) => t.text === "{VAL}");
13964
- val30.anchor = "middle_right";
13965
- var ref34 = texts56.find((t) => t.text === "{REF}");
13966
- ref34.anchor = "middle_left";
13932
+ var val29 = texts56.find((t) => t.text === "{VAL}");
13933
+ val29.anchor = "middle_right";
13934
+ var ref33 = texts56.find((t) => t.text === "{REF}");
13935
+ ref33.anchor = "middle_left";
13967
13936
  var potentiometer2_vert_default = rotated19;
13968
13937
 
13969
13938
  // assets/generated/potentiometer3.json
@@ -14160,11 +14129,11 @@ var power_factor_meter_default = {
14160
14129
  };
14161
14130
 
14162
14131
  // symbols/power_factor_meter_horz.ts
14163
- var { paths: paths45, texts: texts57, bounds: bounds45, refblocks: refblocks45, circles: circles40 } = power_factor_meter_default;
14132
+ var { paths: paths44, texts: texts57, bounds: bounds44, refblocks: refblocks44, circles: circles39 } = power_factor_meter_default;
14164
14133
  var power_factor_meter_horz_default = defineSymbol({
14165
14134
  primitives: [
14166
- ...Object.values(paths45),
14167
- ...Object.values(circles40),
14135
+ ...Object.values(paths44),
14136
+ ...Object.values(circles39),
14168
14137
  // { ...texts.top1, anchor: "middle_left" },
14169
14138
  {
14170
14139
  type: "text",
@@ -14191,27 +14160,27 @@ var power_factor_meter_horz_default = defineSymbol({
14191
14160
  }
14192
14161
  ],
14193
14162
  ports: [
14194
- { ...refblocks45.left1, labels: ["1"] },
14163
+ { ...refblocks44.left1, labels: ["1"] },
14195
14164
  // TODO add more "standard" labels
14196
- { ...refblocks45.right1, labels: ["2"] }
14165
+ { ...refblocks44.right1, labels: ["2"] }
14197
14166
  // TODO add more "standard" labels
14198
14167
  ],
14199
- size: { width: bounds45.width, height: bounds45.height },
14200
- center: { x: bounds45.centerX, y: bounds45.centerY }
14168
+ size: { width: bounds44.width, height: bounds44.height },
14169
+ center: { x: bounds44.centerX, y: bounds44.centerY }
14201
14170
  });
14202
14171
 
14203
14172
  // symbols/power_factor_meter_vert.ts
14204
14173
  var rotatedSymbol18 = rotateSymbol(power_factor_meter_horz_default);
14205
14174
  var texts58 = rotatedSymbol18.primitives.filter((p) => p.type === "text");
14206
- var ref35 = texts58.find((t) => t.text === "{REF}");
14207
- var val31 = texts58.find((t) => t.text === "{VAL}");
14175
+ var ref34 = texts58.find((t) => t.text === "{REF}");
14176
+ var val30 = texts58.find((t) => t.text === "{VAL}");
14208
14177
  var text_cos = texts58.find((t) => t.text === "COS \u03C6");
14209
- ref35.x = 0.35;
14210
- ref35.y = 0;
14211
- ref35.anchor = "middle_left";
14212
- val31.anchor = "middle_right";
14213
- val31.x = -0.35;
14214
- val31.y = 0;
14178
+ ref34.x = 0.35;
14179
+ ref34.y = 0;
14180
+ ref34.anchor = "middle_left";
14181
+ val30.anchor = "middle_right";
14182
+ val30.x = -0.35;
14183
+ val30.y = 0;
14215
14184
  text_cos.x = 0;
14216
14185
  text_cos.y = 0;
14217
14186
  text_cos.anchor = "center";
@@ -14336,22 +14305,22 @@ var push_button_normally_closed_momentary_default = {
14336
14305
  };
14337
14306
 
14338
14307
  // symbols/push_button_normally_closed_momentary_horz.ts
14339
- var { paths: paths46, texts: texts59, bounds: bounds46, refblocks: refblocks46, circles: circles41 } = push_button_normally_closed_momentary_default;
14308
+ var { paths: paths45, texts: texts59, bounds: bounds45, refblocks: refblocks45, circles: circles40 } = push_button_normally_closed_momentary_default;
14340
14309
  var push_button_normally_closed_momentary_horz_default = defineSymbol({
14341
14310
  primitives: [
14342
- ...Object.values(paths46),
14343
- ...Object.values(circles41),
14311
+ ...Object.values(paths45),
14312
+ ...Object.values(circles40),
14344
14313
  { ...texts59.top1, anchor: "middle_left" },
14345
14314
  { ...texts59.bottom1, anchor: "middle_left" }
14346
14315
  ],
14347
14316
  ports: [
14348
- { ...refblocks46.left1, labels: ["1"] },
14317
+ { ...refblocks45.left1, labels: ["1"] },
14349
14318
  // TODO add more "standard" labels
14350
- { ...refblocks46.right1, labels: ["2"] }
14319
+ { ...refblocks45.right1, labels: ["2"] }
14351
14320
  // TODO add more "standard" labels
14352
14321
  ],
14353
- size: { width: bounds46.width, height: bounds46.height },
14354
- center: { x: bounds46.centerX, y: bounds46.centerY }
14322
+ size: { width: bounds45.width, height: bounds45.height },
14323
+ center: { x: bounds45.centerX, y: bounds45.centerY }
14355
14324
  });
14356
14325
 
14357
14326
  // symbols/push_button_normally_closed_momentary_vert.ts
@@ -14506,22 +14475,22 @@ var push_button_normally_open_momentary_default = {
14506
14475
  };
14507
14476
 
14508
14477
  // symbols/push_button_normally_open_momentary_horz.ts
14509
- var { paths: paths47, texts: texts60, bounds: bounds47, refblocks: refblocks47, circles: circles42 } = push_button_normally_open_momentary_default;
14478
+ var { paths: paths46, texts: texts60, bounds: bounds46, refblocks: refblocks46, circles: circles41 } = push_button_normally_open_momentary_default;
14510
14479
  var push_button_normally_open_momentary_horz_default = defineSymbol({
14511
- primitives: [
14512
- ...Object.values(paths47),
14513
- ...Object.values(circles42),
14480
+ primitives: [
14481
+ ...Object.values(paths46),
14482
+ ...Object.values(circles41),
14514
14483
  { ...texts60.top1, anchor: "middle_left" },
14515
14484
  { ...texts60.bottom1, anchor: "middle_left" }
14516
14485
  ],
14517
14486
  ports: [
14518
- { ...refblocks47.left1, labels: ["1"] },
14487
+ { ...refblocks46.left1, labels: ["1"] },
14519
14488
  // TODO add more "standard" labels
14520
- { ...refblocks47.right1, labels: ["2"] }
14489
+ { ...refblocks46.right1, labels: ["2"] }
14521
14490
  // TODO add more "standard" labels
14522
14491
  ],
14523
- size: { width: bounds47.width, height: bounds47.height },
14524
- center: { x: bounds47.centerX, y: bounds47.centerY }
14492
+ size: { width: bounds46.width, height: bounds46.height },
14493
+ center: { x: bounds46.centerX, y: bounds46.centerY }
14525
14494
  });
14526
14495
 
14527
14496
  // symbols/push_button_normally_open_momentary_vert.ts
@@ -14937,38 +14906,38 @@ var rectifier_diode_default = {
14937
14906
  };
14938
14907
 
14939
14908
  // symbols/rectifier_diode_horz.ts
14940
- var { paths: paths48, texts: texts61, bounds: bounds48, refblocks: refblocks48, circles: circles43 } = rectifier_diode_default;
14909
+ var { paths: paths47, texts: texts61, bounds: bounds47, refblocks: refblocks47, circles: circles42 } = rectifier_diode_default;
14941
14910
  var rectifier_diode_horz_default = defineSymbol({
14942
14911
  primitives: [
14943
- ...Object.values(paths48),
14944
- ...Object.values(circles43),
14912
+ ...Object.values(paths47),
14913
+ ...Object.values(circles42),
14945
14914
  { ...texts61.top1, anchor: "middle_right" },
14946
14915
  { ...texts61.bottom1, anchor: "middle_right" }
14947
14916
  ],
14948
14917
  ports: [
14949
- { ...refblocks48.top1, labels: ["1"] },
14918
+ { ...refblocks47.top1, labels: ["1"] },
14950
14919
  // TODO add more "standard" labels
14951
- { ...refblocks48.bottom1, labels: ["2"] },
14920
+ { ...refblocks47.bottom1, labels: ["2"] },
14952
14921
  // TODO add more "standard" labels
14953
- { ...refblocks48.left1, labels: ["3"] },
14922
+ { ...refblocks47.left1, labels: ["3"] },
14954
14923
  // TODO add more "standard" labels
14955
- { ...refblocks48.right1, labels: ["4"] }
14924
+ { ...refblocks47.right1, labels: ["4"] }
14956
14925
  // TODO add more "standard" labels
14957
14926
  ],
14958
- size: { width: bounds48.width, height: bounds48.height },
14959
- center: { x: bounds48.centerX, y: bounds48.centerY }
14927
+ size: { width: bounds47.width, height: bounds47.height },
14928
+ center: { x: bounds47.centerX, y: bounds47.centerY }
14960
14929
  });
14961
14930
 
14962
14931
  // symbols/rectifier_diode_vert.ts
14963
14932
  var rotated20 = rotateSymbol(rectifier_diode_horz_default);
14964
- var ref36 = rotated20.primitives.find(
14933
+ var ref35 = rotated20.primitives.find(
14965
14934
  (p) => p.type === "text" && p.text === "{REF}"
14966
14935
  );
14967
- var val32 = rotated20.primitives.find(
14936
+ var val31 = rotated20.primitives.find(
14968
14937
  (p) => p.type === "text" && p.text === "{VAL}"
14969
14938
  );
14970
- ref36.anchor = "middle_left";
14971
- val32.anchor = "middle_right";
14939
+ ref35.anchor = "middle_left";
14940
+ val31.anchor = "middle_right";
14972
14941
  var rectifier_diode_vert_default = rotated20;
14973
14942
 
14974
14943
  // assets/generated/resistor.json
@@ -15178,11 +15147,11 @@ var resistor_default = {
15178
15147
  };
15179
15148
 
15180
15149
  // symbols/resistor_down.ts
15181
- var { paths: paths49, texts: texts62, bounds: bounds49, refblocks: refblocks49, circles: circles44 } = resistor_default;
15150
+ var { paths: paths48, texts: texts62, bounds: bounds48, refblocks: refblocks48, circles: circles43 } = resistor_default;
15182
15151
  var resistor_down_default = modifySymbol({
15183
15152
  primitives: [
15184
- ...Object.values(paths49),
15185
- ...Object.values(circles44),
15153
+ ...Object.values(paths48),
15154
+ ...Object.values(circles43),
15186
15155
  {
15187
15156
  type: "text",
15188
15157
  text: "{REF}",
@@ -15197,21 +15166,21 @@ var resistor_down_default = modifySymbol({
15197
15166
  }
15198
15167
  ],
15199
15168
  ports: [
15200
- { ...refblocks49.left1, labels: ["1"] },
15169
+ { ...refblocks48.left1, labels: ["1"] },
15201
15170
  // TODO add more "standard" labels
15202
- { ...refblocks49.right1, labels: ["2"] }
15171
+ { ...refblocks48.right1, labels: ["2"] }
15203
15172
  // TODO add more "standard" labels
15204
15173
  ],
15205
- size: { width: bounds49.width, height: bounds49.height },
15206
- center: { x: bounds49.centerX, y: bounds49.centerY }
15174
+ size: { width: bounds48.width, height: bounds48.height },
15175
+ center: { x: bounds48.centerX, y: bounds48.centerY }
15207
15176
  }).rotateRightFacingSymbol("down").labelPort("left", ["1"]).labelPort("right", ["2"]).changeTextAnchor("{REF}", "middle_left").changeTextAnchor("{VAL}", "middle_left").build();
15208
15177
 
15209
15178
  // symbols/resistor_left.ts
15210
- var { paths: paths50, texts: texts63, bounds: bounds50, refblocks: refblocks50, circles: circles45 } = resistor_default;
15179
+ var { paths: paths49, texts: texts63, bounds: bounds49, refblocks: refblocks49, circles: circles44 } = resistor_default;
15211
15180
  var resistor_left_default = modifySymbol({
15212
15181
  primitives: [
15213
- ...Object.values(paths50),
15214
- ...Object.values(circles45),
15182
+ ...Object.values(paths49),
15183
+ ...Object.values(circles44),
15215
15184
  {
15216
15185
  type: "text",
15217
15186
  text: "{REF}",
@@ -15226,21 +15195,21 @@ var resistor_left_default = modifySymbol({
15226
15195
  }
15227
15196
  ],
15228
15197
  ports: [
15229
- { ...refblocks50.left1, labels: ["1"] },
15198
+ { ...refblocks49.left1, labels: ["1"] },
15230
15199
  // TODO add more "standard" labels
15231
- { ...refblocks50.right1, labels: ["2"] }
15200
+ { ...refblocks49.right1, labels: ["2"] }
15232
15201
  // TODO add more "standard" labels
15233
15202
  ],
15234
- size: { width: bounds50.width, height: bounds50.height },
15235
- center: { x: bounds50.centerX, y: bounds50.centerY }
15203
+ size: { width: bounds49.width, height: bounds49.height },
15204
+ center: { x: bounds49.centerX, y: bounds49.centerY }
15236
15205
  }).rotateRightFacingSymbol("left").labelPort("left", ["1"]).labelPort("right", ["2"]).changeTextAnchor("{REF}", "middle_bottom").changeTextAnchor("{VAL}", "middle_top").build();
15237
15206
 
15238
15207
  // symbols/resistor_right.ts
15239
- var { paths: paths51, texts: texts64, bounds: bounds51, refblocks: refblocks51, circles: circles46 } = resistor_default;
15208
+ var { paths: paths50, texts: texts64, bounds: bounds50, refblocks: refblocks50, circles: circles45 } = resistor_default;
15240
15209
  var resistor_right_default = modifySymbol({
15241
15210
  primitives: [
15242
- ...Object.values(paths51),
15243
- ...Object.values(circles46),
15211
+ ...Object.values(paths50),
15212
+ ...Object.values(circles45),
15244
15213
  {
15245
15214
  type: "text",
15246
15215
  text: "{REF}",
@@ -15255,21 +15224,21 @@ var resistor_right_default = modifySymbol({
15255
15224
  }
15256
15225
  ],
15257
15226
  ports: [
15258
- { ...refblocks51.left1, labels: ["1"] },
15227
+ { ...refblocks50.left1, labels: ["1"] },
15259
15228
  // TODO add more "standard" labels
15260
- { ...refblocks51.right1, labels: ["2"] }
15229
+ { ...refblocks50.right1, labels: ["2"] }
15261
15230
  // TODO add more "standard" labels
15262
15231
  ],
15263
- size: { width: bounds51.width, height: bounds51.height },
15264
- center: { x: bounds51.centerX, y: bounds51.centerY }
15232
+ size: { width: bounds50.width, height: bounds50.height },
15233
+ center: { x: bounds50.centerX, y: bounds50.centerY }
15265
15234
  }).rotateRightFacingSymbol("right").labelPort("left", ["1"]).labelPort("right", ["2"]).changeTextAnchor("{REF}", "middle_bottom").changeTextAnchor("{VAL}", "middle_top").build();
15266
15235
 
15267
15236
  // symbols/resistor_up.ts
15268
- var { paths: paths52, texts: texts65, bounds: bounds52, refblocks: refblocks52, circles: circles47 } = resistor_default;
15237
+ var { paths: paths51, texts: texts65, bounds: bounds51, refblocks: refblocks51, circles: circles46 } = resistor_default;
15269
15238
  var resistor_up_default = modifySymbol({
15270
15239
  primitives: [
15271
- ...Object.values(paths52),
15272
- ...Object.values(circles47),
15240
+ ...Object.values(paths51),
15241
+ ...Object.values(circles46),
15273
15242
  {
15274
15243
  type: "text",
15275
15244
  text: "{REF}",
@@ -15284,13 +15253,13 @@ var resistor_up_default = modifySymbol({
15284
15253
  }
15285
15254
  ],
15286
15255
  ports: [
15287
- { ...refblocks52.left1, labels: ["1"] },
15256
+ { ...refblocks51.left1, labels: ["1"] },
15288
15257
  // TODO add more "standard" labels
15289
- { ...refblocks52.right1, labels: ["2"] }
15258
+ { ...refblocks51.right1, labels: ["2"] }
15290
15259
  // TODO add more "standard" labels
15291
15260
  ],
15292
- size: { width: bounds52.width, height: bounds52.height },
15293
- center: { x: bounds52.centerX, y: bounds52.centerY }
15261
+ size: { width: bounds51.width, height: bounds51.height },
15262
+ center: { x: bounds51.centerX, y: bounds51.centerY }
15294
15263
  }).rotateRightFacingSymbol("up").labelPort("left", ["1"]).labelPort("right", ["2"]).changeTextAnchor("{REF}", "middle_left").changeTextAnchor("{VAL}", "middle_left").build();
15295
15264
 
15296
15265
  // assets/generated/resonator.json
@@ -15639,11 +15608,11 @@ var resonator_default = {
15639
15608
  };
15640
15609
 
15641
15610
  // symbols/resonator_horz.ts
15642
- var { paths: paths53, texts: texts66, bounds: bounds53, refblocks: refblocks53, circles: circles48 } = resonator_default;
15611
+ var { paths: paths52, texts: texts66, bounds: bounds52, refblocks: refblocks52, circles: circles47 } = resonator_default;
15643
15612
  var resonator_horz_default = defineSymbol({
15644
15613
  primitives: [
15645
- ...Object.values(paths53),
15646
- ...Object.values(circles48),
15614
+ ...Object.values(paths52),
15615
+ ...Object.values(circles47),
15647
15616
  // { ...texts.top1, anchor: "middle_left" },
15648
15617
  // { ...texts.bottom1, anchor: "middle_left" },
15649
15618
  {
@@ -15662,15 +15631,15 @@ var resonator_horz_default = defineSymbol({
15662
15631
  }
15663
15632
  ],
15664
15633
  ports: [
15665
- { ...refblocks53.left1, labels: ["1"] },
15634
+ { ...refblocks52.left1, labels: ["1"] },
15666
15635
  // TODO add more "standard" labels
15667
- { ...refblocks53.right1, labels: ["2"] },
15636
+ { ...refblocks52.right1, labels: ["2"] },
15668
15637
  // TODO add more "standard" labels
15669
- { ...refblocks53.right2, labels: ["3"] }
15638
+ { ...refblocks52.right2, labels: ["3"] }
15670
15639
  // TODO add more "standard" labels
15671
15640
  ],
15672
- size: { width: bounds53.width, height: bounds53.height },
15673
- center: { x: bounds53.centerX, y: bounds53.centerY }
15641
+ size: { width: bounds52.width, height: bounds52.height },
15642
+ center: { x: bounds52.centerX, y: bounds52.centerY }
15674
15643
  });
15675
15644
 
15676
15645
  // symbols/resonator_vert.ts
@@ -15872,14 +15841,14 @@ var schottky_diode_horz_default = modifySymbol(schottky_diode_default).labelPort
15872
15841
 
15873
15842
  // symbols/schottky_diode_vert.ts
15874
15843
  var rotated21 = rotateSymbol(schottky_diode_horz_default);
15875
- var ref37 = rotated21.primitives.find(
15844
+ var ref36 = rotated21.primitives.find(
15876
15845
  (p) => p.type === "text" && p.text === "{REF}"
15877
15846
  );
15878
- var val33 = rotated21.primitives.find(
15847
+ var val32 = rotated21.primitives.find(
15879
15848
  (p) => p.type === "text" && p.text === "{VAL}"
15880
15849
  );
15881
- ref37.anchor = "middle_left";
15882
- val33.anchor = "middle_right";
15850
+ ref36.anchor = "middle_left";
15851
+ val32.anchor = "middle_right";
15883
15852
  var schottky_diode_vert_default = rotated21;
15884
15853
 
15885
15854
  // assets/generated/silicon_controlled_rectifier.json
@@ -16026,7 +15995,7 @@ var silicon_controlled_rectifier_default = {
16026
15995
  };
16027
15996
 
16028
15997
  // symbols/silicon_controlled_rectifier_horz.ts
16029
- var { paths: paths54, texts: texts67, bounds: bounds54, refblocks: refblocks54, circles: circles49 } = silicon_controlled_rectifier_default;
15998
+ var { paths: paths53, texts: texts67, bounds: bounds53, refblocks: refblocks53, circles: circles48 } = silicon_controlled_rectifier_default;
16030
15999
  var silicon_controlled_rectifier_horz_default = modifySymbol(silicon_controlled_rectifier_default).changeTextAnchor("{VAL}", "middle_top").labelPort("left1", ["1"]).labelPort("right1", ["2"]).labelPort("bottom1", ["3"]).changeTextAnchor("{REF}", "middle_bottom").build();
16031
16000
 
16032
16001
  // symbols/silicon_controlled_rectifier_vert.ts
@@ -16034,9 +16003,9 @@ var rotatedSymbol19 = rotateSymbol(silicon_controlled_rectifier_horz_default);
16034
16003
  var texts68 = rotatedSymbol19.primitives.filter(
16035
16004
  (primitive) => primitive.type === "text"
16036
16005
  );
16037
- var ref38 = texts68.find((text) => text.text === "{REF}");
16038
- ref38.y = 0;
16039
- ref38.anchor = "middle_left";
16006
+ var ref37 = texts68.find((text) => text.text === "{REF}");
16007
+ ref37.y = 0;
16008
+ ref37.anchor = "middle_left";
16040
16009
  var silicon_controlled_rectifier_vert_default = rotatedSymbol19;
16041
16010
 
16042
16011
  // assets/generated/solderjumper2_bridged12.json
@@ -18875,50 +18844,50 @@ var spdt_normally_closed_switch_right_default = modifySymbol(spdt_normally_close
18875
18844
 
18876
18845
  // symbols/spdt_normally_closed_switch_down.ts
18877
18846
  var rotated22 = rotateSymbol(spdt_normally_closed_switch_right_default, "down");
18878
- var ref39 = rotated22.primitives.find(
18847
+ var ref38 = rotated22.primitives.find(
18879
18848
  (p) => p.type === "text" && p.text === "{REF}"
18880
18849
  );
18881
- var val34 = rotated22.primitives.find(
18850
+ var val33 = rotated22.primitives.find(
18882
18851
  (p) => p.type === "text" && p.text === "{VAL}"
18883
18852
  );
18884
- ref39.anchor = "middle_bottom";
18885
- val34.anchor = "middle_top";
18886
- ref39.x = 0.44;
18887
- ref39.y += 0.28;
18888
- val34.y -= 0.28;
18889
- val34.x = 0.44;
18853
+ ref38.anchor = "middle_bottom";
18854
+ val33.anchor = "middle_top";
18855
+ ref38.x = 0.44;
18856
+ ref38.y += 0.28;
18857
+ val33.y -= 0.28;
18858
+ val33.x = 0.44;
18890
18859
  var spdt_normally_closed_switch_down_default = rotated22;
18891
18860
 
18892
18861
  // symbols/spdt_normally_closed_switch_left.ts
18893
18862
  var rotated23 = rotateSymbol(spdt_normally_closed_switch_right_default, "left");
18894
- var ref40 = rotated23.primitives.find(
18863
+ var ref39 = rotated23.primitives.find(
18895
18864
  (p) => p.type === "text" && p.text === "{REF}"
18896
18865
  );
18897
- var val35 = rotated23.primitives.find(
18866
+ var val34 = rotated23.primitives.find(
18898
18867
  (p) => p.type === "text" && p.text === "{VAL}"
18899
18868
  );
18900
- ref40.anchor = "middle_bottom";
18901
- val35.anchor = "middle_top";
18902
- ref40.x = 0;
18903
- ref40.y += 0.625;
18904
- val35.y -= 0.695;
18905
- val35.x = 0;
18869
+ ref39.anchor = "middle_bottom";
18870
+ val34.anchor = "middle_top";
18871
+ ref39.x = 0;
18872
+ ref39.y += 0.625;
18873
+ val34.y -= 0.695;
18874
+ val34.x = 0;
18906
18875
  var spdt_normally_closed_switch_left_default = rotated23;
18907
18876
 
18908
18877
  // symbols/spdt_normally_closed_switch_up.ts
18909
18878
  var rotated24 = rotateSymbol(spdt_normally_closed_switch_right_default, "up");
18910
- var ref41 = rotated24.primitives.find(
18879
+ var ref40 = rotated24.primitives.find(
18911
18880
  (p) => p.type === "text" && p.text === "{REF}"
18912
18881
  );
18913
- var val36 = rotated24.primitives.find(
18882
+ var val35 = rotated24.primitives.find(
18914
18883
  (p) => p.type === "text" && p.text === "{VAL}"
18915
18884
  );
18916
- ref41.anchor = "middle_bottom";
18917
- val36.anchor = "middle_top";
18918
- ref41.x = 0.4;
18919
- ref41.y += 0.28;
18920
- val36.y -= 0.28;
18921
- val36.x = 0.4;
18885
+ ref40.anchor = "middle_bottom";
18886
+ val35.anchor = "middle_top";
18887
+ ref40.x = 0.4;
18888
+ ref40.y += 0.28;
18889
+ val35.y -= 0.28;
18890
+ val35.x = 0.4;
18922
18891
  var spdt_normally_closed_switch_up_default = rotated24;
18923
18892
 
18924
18893
  // assets/generated/spdt_switch.json
@@ -19056,50 +19025,50 @@ var spdt_switch_right_default = modifySymbol(spdt_switch_default).changeTextAnch
19056
19025
 
19057
19026
  // symbols/spdt_switch_down.ts
19058
19027
  var rotated25 = rotateSymbol(spdt_switch_right_default, "down");
19059
- var ref42 = rotated25.primitives.find(
19028
+ var ref41 = rotated25.primitives.find(
19060
19029
  (p) => p.type === "text" && p.text === "{REF}"
19061
19030
  );
19062
- var val37 = rotated25.primitives.find(
19031
+ var val36 = rotated25.primitives.find(
19063
19032
  (p) => p.type === "text" && p.text === "{VAL}"
19064
19033
  );
19065
- ref42.anchor = "middle_bottom";
19066
- val37.anchor = "middle_top";
19067
- ref42.x = 0.44;
19068
- ref42.y += 0.28;
19069
- val37.y -= 0.28;
19070
- val37.x = 0.44;
19034
+ ref41.anchor = "middle_bottom";
19035
+ val36.anchor = "middle_top";
19036
+ ref41.x = 0.44;
19037
+ ref41.y += 0.28;
19038
+ val36.y -= 0.28;
19039
+ val36.x = 0.44;
19071
19040
  var spdt_switch_down_default = rotated25;
19072
19041
 
19073
19042
  // symbols/spdt_switch_left.ts
19074
19043
  var rotated26 = rotateSymbol(spdt_switch_right_default, "left");
19075
- var ref43 = rotated26.primitives.find(
19044
+ var ref42 = rotated26.primitives.find(
19076
19045
  (p) => p.type === "text" && p.text === "{REF}"
19077
19046
  );
19078
- var val38 = rotated26.primitives.find(
19047
+ var val37 = rotated26.primitives.find(
19079
19048
  (p) => p.type === "text" && p.text === "{VAL}"
19080
19049
  );
19081
- ref43.anchor = "middle_bottom";
19082
- val38.anchor = "middle_top";
19083
- ref43.x = 0;
19084
- ref43.y += 0.625;
19085
- val38.y -= 0.695;
19086
- val38.x = 0;
19050
+ ref42.anchor = "middle_bottom";
19051
+ val37.anchor = "middle_top";
19052
+ ref42.x = 0;
19053
+ ref42.y += 0.625;
19054
+ val37.y -= 0.695;
19055
+ val37.x = 0;
19087
19056
  var spdt_switch_left_default = rotated26;
19088
19057
 
19089
19058
  // symbols/spdt_switch_up.ts
19090
19059
  var rotated27 = rotateSymbol(spdt_switch_right_default, "up");
19091
- var ref44 = rotated27.primitives.find(
19060
+ var ref43 = rotated27.primitives.find(
19092
19061
  (p) => p.type === "text" && p.text === "{REF}"
19093
19062
  );
19094
- var val39 = rotated27.primitives.find(
19063
+ var val38 = rotated27.primitives.find(
19095
19064
  (p) => p.type === "text" && p.text === "{VAL}"
19096
19065
  );
19097
- ref44.anchor = "middle_bottom";
19098
- val39.anchor = "middle_top";
19099
- ref44.x = 0.4;
19100
- ref44.y += 0.28;
19101
- val39.y -= 0.28;
19102
- val39.x = 0.4;
19066
+ ref43.anchor = "middle_bottom";
19067
+ val38.anchor = "middle_top";
19068
+ ref43.x = 0.4;
19069
+ ref43.y += 0.28;
19070
+ val38.y -= 0.28;
19071
+ val38.x = 0.4;
19103
19072
  var spdt_switch_up_default = rotated27;
19104
19073
 
19105
19074
  // assets/generated/spst_normally_closed_switch.json
@@ -19221,50 +19190,50 @@ var spst_normally_closed_switch_right_default = modifySymbol(spst_normally_close
19221
19190
 
19222
19191
  // symbols/spst_normally_closed_switch_down.ts
19223
19192
  var rotated28 = rotateSymbol(spst_normally_closed_switch_right_default, "down");
19224
- var ref45 = rotated28.primitives.find(
19193
+ var ref44 = rotated28.primitives.find(
19225
19194
  (p) => p.type === "text" && p.text === "{REF}"
19226
19195
  );
19227
- var val40 = rotated28.primitives.find(
19196
+ var val39 = rotated28.primitives.find(
19228
19197
  (p) => p.type === "text" && p.text === "{VAL}"
19229
19198
  );
19230
- ref45.anchor = "middle_bottom";
19231
- val40.anchor = "middle_top";
19232
- ref45.x = 0.3;
19233
- ref45.y += 0.265;
19234
- val40.y -= 0.265;
19235
- val40.x = 0.3;
19199
+ ref44.anchor = "middle_bottom";
19200
+ val39.anchor = "middle_top";
19201
+ ref44.x = 0.3;
19202
+ ref44.y += 0.265;
19203
+ val39.y -= 0.265;
19204
+ val39.x = 0.3;
19236
19205
  var spst_normally_closed_switch_down_default = rotated28;
19237
19206
 
19238
19207
  // symbols/spst_normally_closed_switch_left.ts
19239
19208
  var rotated29 = rotateSymbol(spst_normally_closed_switch_right_default, "left");
19240
- var ref46 = rotated29.primitives.find(
19209
+ var ref45 = rotated29.primitives.find(
19241
19210
  (p) => p.type === "text" && p.text === "{REF}"
19242
19211
  );
19243
- var val41 = rotated29.primitives.find(
19212
+ var val40 = rotated29.primitives.find(
19244
19213
  (p) => p.type === "text" && p.text === "{VAL}"
19245
19214
  );
19246
- ref46.anchor = "middle_bottom";
19247
- val41.anchor = "middle_top";
19248
- ref46.x = 0;
19249
- ref46.y += 0.57;
19250
- val41.y -= 0.57;
19251
- val41.x = 0;
19215
+ ref45.anchor = "middle_bottom";
19216
+ val40.anchor = "middle_top";
19217
+ ref45.x = 0;
19218
+ ref45.y += 0.57;
19219
+ val40.y -= 0.57;
19220
+ val40.x = 0;
19252
19221
  var spst_normally_closed_switch_left_default = rotated29;
19253
19222
 
19254
19223
  // symbols/spst_normally_closed_switch_up.ts
19255
19224
  var rotated30 = rotateSymbol(spst_normally_closed_switch_right_default, "up");
19256
- var ref47 = rotated30.primitives.find(
19225
+ var ref46 = rotated30.primitives.find(
19257
19226
  (p) => p.type === "text" && p.text === "{REF}"
19258
19227
  );
19259
- var val42 = rotated30.primitives.find(
19228
+ var val41 = rotated30.primitives.find(
19260
19229
  (p) => p.type === "text" && p.text === "{VAL}"
19261
19230
  );
19262
- ref47.anchor = "middle_bottom";
19263
- val42.anchor = "middle_top";
19264
- ref47.x = 0.3;
19265
- ref47.y += 0.265;
19266
- val42.y -= 0.265;
19267
- val42.x = 0.3;
19231
+ ref46.anchor = "middle_bottom";
19232
+ val41.anchor = "middle_top";
19233
+ ref46.x = 0.3;
19234
+ ref46.y += 0.265;
19235
+ val41.y -= 0.265;
19236
+ val41.x = 0.3;
19268
19237
  var spst_normally_closed_switch_up_default = rotated30;
19269
19238
 
19270
19239
  // assets/generated/spst_switch.json
@@ -19386,50 +19355,50 @@ var spst_switch_right_default = modifySymbol(spst_switch_default).changeTextAnch
19386
19355
 
19387
19356
  // symbols/spst_switch_down.ts
19388
19357
  var rotated31 = rotateSymbol(spst_switch_right_default, "down");
19389
- var ref48 = rotated31.primitives.find(
19358
+ var ref47 = rotated31.primitives.find(
19390
19359
  (p) => p.type === "text" && p.text === "{REF}"
19391
19360
  );
19392
- var val43 = rotated31.primitives.find(
19361
+ var val42 = rotated31.primitives.find(
19393
19362
  (p) => p.type === "text" && p.text === "{VAL}"
19394
19363
  );
19395
- ref48.anchor = "middle_bottom";
19396
- val43.anchor = "middle_top";
19397
- ref48.x = 0.3;
19398
- ref48.y += 0.265;
19399
- val43.y -= 0.265;
19400
- val43.x = 0.3;
19364
+ ref47.anchor = "middle_bottom";
19365
+ val42.anchor = "middle_top";
19366
+ ref47.x = 0.3;
19367
+ ref47.y += 0.265;
19368
+ val42.y -= 0.265;
19369
+ val42.x = 0.3;
19401
19370
  var spst_switch_down_default = rotated31;
19402
19371
 
19403
19372
  // symbols/spst_switch_left.ts
19404
19373
  var rotated32 = rotateSymbol(spst_switch_right_default, "left");
19405
- var ref49 = rotated32.primitives.find(
19374
+ var ref48 = rotated32.primitives.find(
19406
19375
  (p) => p.type === "text" && p.text === "{REF}"
19407
19376
  );
19408
- var val44 = rotated32.primitives.find(
19377
+ var val43 = rotated32.primitives.find(
19409
19378
  (p) => p.type === "text" && p.text === "{VAL}"
19410
19379
  );
19411
- ref49.anchor = "middle_bottom";
19412
- val44.anchor = "middle_top";
19413
- ref49.x = 0;
19414
- ref49.y += 0.57;
19415
- val44.y -= 0.57;
19416
- val44.x = 0;
19380
+ ref48.anchor = "middle_bottom";
19381
+ val43.anchor = "middle_top";
19382
+ ref48.x = 0;
19383
+ ref48.y += 0.57;
19384
+ val43.y -= 0.57;
19385
+ val43.x = 0;
19417
19386
  var spst_switch_left_default = rotated32;
19418
19387
 
19419
19388
  // symbols/spst_switch_up.ts
19420
19389
  var rotated33 = rotateSymbol(spst_switch_right_default, "up");
19421
- var ref50 = rotated33.primitives.find(
19390
+ var ref49 = rotated33.primitives.find(
19422
19391
  (p) => p.type === "text" && p.text === "{REF}"
19423
19392
  );
19424
- var val45 = rotated33.primitives.find(
19393
+ var val44 = rotated33.primitives.find(
19425
19394
  (p) => p.type === "text" && p.text === "{VAL}"
19426
19395
  );
19427
- ref50.anchor = "middle_bottom";
19428
- val45.anchor = "middle_top";
19429
- ref50.x = 0.3;
19430
- ref50.y += 0.265;
19431
- val45.y -= 0.265;
19432
- val45.x = 0.3;
19396
+ ref49.anchor = "middle_bottom";
19397
+ val44.anchor = "middle_top";
19398
+ ref49.x = 0.3;
19399
+ ref49.y += 0.265;
19400
+ val44.y -= 0.265;
19401
+ val44.x = 0.3;
19433
19402
  var spst_switch_up_default = rotated33;
19434
19403
 
19435
19404
  // assets/generated/step_recovery_diode.json
@@ -19594,7 +19563,7 @@ var step_recovery_diode_default = {
19594
19563
  };
19595
19564
 
19596
19565
  // symbols/step_recovery_diode_horz.ts
19597
- var { paths: paths55, texts: texts69, bounds: bounds55, refblocks: refblocks55, circles: circles50 } = step_recovery_diode_default;
19566
+ var { paths: paths54, texts: texts69, bounds: bounds54, refblocks: refblocks54, circles: circles49 } = step_recovery_diode_default;
19598
19567
  var step_recovery_diode_horz_default = modifySymbol(step_recovery_diode_default).changeTextAnchor("{VAL}", "middle_top").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_bottom").build();
19599
19568
 
19600
19569
  // symbols/step_recovery_diode_vert.ts
@@ -19687,11 +19656,11 @@ var tachometer_default = {
19687
19656
  };
19688
19657
 
19689
19658
  // symbols/tachometer_horz.ts
19690
- var { paths: paths56, texts: texts70, bounds: bounds56, refblocks: refblocks56, circles: circles51 } = tachometer_default;
19659
+ var { paths: paths55, texts: texts70, bounds: bounds55, refblocks: refblocks55, circles: circles50 } = tachometer_default;
19691
19660
  var tachometer_horz_default = defineSymbol({
19692
19661
  primitives: [
19693
- ...Object.values(paths56),
19694
- ...Object.values(circles51),
19662
+ ...Object.values(paths55),
19663
+ ...Object.values(circles50),
19695
19664
  {
19696
19665
  type: "text",
19697
19666
  text: "{REF}",
@@ -19709,13 +19678,13 @@ var tachometer_horz_default = defineSymbol({
19709
19678
  { ...texts70.left1, y: 0.01, anchor: "center", fontSize: 0.2 }
19710
19679
  ],
19711
19680
  ports: [
19712
- { ...refblocks56.left1, labels: ["1"] },
19681
+ { ...refblocks55.left1, labels: ["1"] },
19713
19682
  // TODO add more "standard" labels
19714
- { ...refblocks56.right1, labels: ["2"] }
19683
+ { ...refblocks55.right1, labels: ["2"] }
19715
19684
  // TODO add more "standard" labels
19716
19685
  ],
19717
- size: { width: bounds56.width, height: bounds56.height },
19718
- center: { x: bounds56.centerX, y: bounds56.centerY }
19686
+ size: { width: bounds55.width, height: bounds55.height },
19687
+ center: { x: bounds55.centerX, y: bounds55.centerY }
19719
19688
  });
19720
19689
 
19721
19690
  // symbols/tachometer_vert.ts
@@ -19849,50 +19818,50 @@ var tilted_ground_right_default = modifySymbol(tilted_ground_default).labelPort(
19849
19818
 
19850
19819
  // symbols/tilted_ground_up.ts
19851
19820
  var rotated34 = rotateSymbol(tilted_ground_right_default, "up");
19852
- var ref51 = rotated34.primitives.find(
19821
+ var ref50 = rotated34.primitives.find(
19853
19822
  (p) => p.type === "text" && p.text === "{REF}"
19854
19823
  );
19855
- var val46 = rotated34.primitives.find(
19824
+ var val45 = rotated34.primitives.find(
19856
19825
  (p) => p.type === "text" && p.text === "{VAL}"
19857
19826
  );
19858
- ref51.anchor = "middle_bottom";
19859
- val46.anchor = "middle_top";
19860
- ref51.x = 0.4;
19861
- ref51.y += 0.2;
19862
- val46.y -= 0.3;
19863
- val46.x = 0.4;
19827
+ ref50.anchor = "middle_bottom";
19828
+ val45.anchor = "middle_top";
19829
+ ref50.x = 0.4;
19830
+ ref50.y += 0.2;
19831
+ val45.y -= 0.3;
19832
+ val45.x = 0.4;
19864
19833
  var tilted_ground_up_default = rotated34;
19865
19834
 
19866
19835
  // symbols/tilted_ground_down.ts
19867
19836
  var rotated35 = flipSymbolOverXAxis(tilted_ground_up_default);
19868
- var ref52 = rotated35.primitives.find(
19837
+ var ref51 = rotated35.primitives.find(
19869
19838
  (p) => p.type === "text" && p.text === "{REF}"
19870
19839
  );
19871
- var val47 = rotated35.primitives.find(
19840
+ var val46 = rotated35.primitives.find(
19872
19841
  (p) => p.type === "text" && p.text === "{VAL}"
19873
19842
  );
19874
- ref52.anchor = "middle_bottom";
19875
- val47.anchor = "middle_top";
19876
- ref52.x = 0.35;
19877
- ref52.y += 0.4;
19878
- val47.y -= 0.4;
19879
- val47.x = 0.35;
19843
+ ref51.anchor = "middle_bottom";
19844
+ val46.anchor = "middle_top";
19845
+ ref51.x = 0.35;
19846
+ ref51.y += 0.4;
19847
+ val46.y -= 0.4;
19848
+ val46.x = 0.35;
19880
19849
  var tilted_ground_down_default = rotated35;
19881
19850
 
19882
19851
  // symbols/tilted_ground_left.ts
19883
19852
  var rotated36 = rotateSymbol(tilted_ground_right_default, "left");
19884
- var ref53 = rotated36.primitives.find(
19853
+ var ref52 = rotated36.primitives.find(
19885
19854
  (p) => p.type === "text" && p.text === "{REF}"
19886
19855
  );
19887
- var val48 = rotated36.primitives.find(
19856
+ var val47 = rotated36.primitives.find(
19888
19857
  (p) => p.type === "text" && p.text === "{VAL}"
19889
19858
  );
19890
- ref53.anchor = "middle_bottom";
19891
- val48.anchor = "middle_top";
19892
- ref53.x = 0;
19893
- ref53.y += 0.5;
19894
- val48.y -= 0.6;
19895
- val48.x = 0;
19859
+ ref52.anchor = "middle_bottom";
19860
+ val47.anchor = "middle_top";
19861
+ ref52.x = 0;
19862
+ ref52.y += 0.5;
19863
+ val47.y -= 0.6;
19864
+ val47.x = 0;
19896
19865
  var tilted_ground_left_default = rotated36;
19897
19866
 
19898
19867
  // assets/generated/triac.json
@@ -20086,7 +20055,7 @@ var triac_default = {
20086
20055
  };
20087
20056
 
20088
20057
  // symbols/triac_horz.ts
20089
- var { paths: paths57, texts: texts71, bounds: bounds57, refblocks: refblocks57, circles: circles52 } = triac_default;
20058
+ var { paths: paths56, texts: texts71, bounds: bounds56, refblocks: refblocks56, circles: circles51 } = triac_default;
20090
20059
  var triac_horz_default = modifySymbol(triac_default).changeTextAnchor("{VAL}", "middle_top").labelPort("left1", ["1"]).labelPort("right1", ["2"]).labelPort("bottom1", ["3"]).changeTextAnchor("{REF}", "middle_bottom").build();
20091
20060
 
20092
20061
  // symbols/triac_vert.ts
@@ -20094,10 +20063,10 @@ var rotatedSymbol21 = rotateSymbol(triac_horz_default);
20094
20063
  var texts72 = rotatedSymbol21.primitives.filter(
20095
20064
  (primitive) => primitive.type === "text"
20096
20065
  );
20097
- var ref54 = texts72.find((text) => text.text === "{REF}");
20098
- var val49 = texts72.find((text) => text.text === "{VAL}");
20099
- ref54.y = 0;
20100
- val49.y = 0;
20066
+ var ref53 = texts72.find((text) => text.text === "{REF}");
20067
+ var val48 = texts72.find((text) => text.text === "{VAL}");
20068
+ ref53.y = 0;
20069
+ val48.y = 0;
20101
20070
  var triac_vert_default = rotatedSymbol21;
20102
20071
 
20103
20072
  // assets/generated/tunnel_diode.json
@@ -20262,34 +20231,34 @@ var tunnel_diode_default = {
20262
20231
  };
20263
20232
 
20264
20233
  // symbols/tunnel_diode_horz.ts
20265
- var { paths: paths58, texts: texts73, bounds: bounds58, refblocks: refblocks58, circles: circles53 } = tunnel_diode_default;
20234
+ var { paths: paths57, texts: texts73, bounds: bounds57, refblocks: refblocks57, circles: circles52 } = tunnel_diode_default;
20266
20235
  var tunnel_diode_horz_default = defineSymbol({
20267
20236
  primitives: [
20268
- ...Object.values(paths58),
20269
- ...Object.values(circles53),
20237
+ ...Object.values(paths57),
20238
+ ...Object.values(circles52),
20270
20239
  { ...texts73.top1, anchor: "middle_bottom" },
20271
20240
  { ...texts73.bottom1, anchor: "middle_top" }
20272
20241
  ],
20273
20242
  ports: [
20274
- { ...refblocks58.left1, labels: ["1"] },
20243
+ { ...refblocks57.left1, labels: ["1"] },
20275
20244
  // TODO add more "standard" labels
20276
- { ...refblocks58.right1, labels: ["2"] }
20245
+ { ...refblocks57.right1, labels: ["2"] }
20277
20246
  // TODO add more "standard" labels
20278
20247
  ],
20279
- size: { width: bounds58.width, height: bounds58.height },
20280
- center: { x: bounds58.centerX, y: bounds58.centerY }
20248
+ size: { width: bounds57.width, height: bounds57.height },
20249
+ center: { x: bounds57.centerX, y: bounds57.centerY }
20281
20250
  });
20282
20251
 
20283
20252
  // symbols/tunnel_diode_vert.ts
20284
20253
  var rotated37 = rotateSymbol(tunnel_diode_horz_default);
20285
- var ref55 = rotated37.primitives.find(
20254
+ var ref54 = rotated37.primitives.find(
20286
20255
  (p) => p.type === "text" && p.text === "{REF}"
20287
20256
  );
20288
- var val50 = rotated37.primitives.find(
20257
+ var val49 = rotated37.primitives.find(
20289
20258
  (p) => p.type === "text" && p.text === "{VAL}"
20290
20259
  );
20291
- ref55.anchor = "middle_left";
20292
- val50.anchor = "middle_right";
20260
+ ref54.anchor = "middle_left";
20261
+ val49.anchor = "middle_right";
20293
20262
  var tunnel_diode_vert_default = rotated37;
20294
20263
 
20295
20264
  // assets/generated/unijunction_transistor.json
@@ -20460,24 +20429,24 @@ var unijunction_transistor_default = {
20460
20429
  };
20461
20430
 
20462
20431
  // symbols/unijunction_transistor_horz.ts
20463
- var { paths: paths59, texts: texts74, bounds: bounds59, refblocks: refblocks59, circles: circles54 } = unijunction_transistor_default;
20432
+ var { paths: paths58, texts: texts74, bounds: bounds58, refblocks: refblocks58, circles: circles53 } = unijunction_transistor_default;
20464
20433
  var unijunction_transistor_horz_default = defineSymbol({
20465
20434
  primitives: [
20466
- ...Object.values(paths59),
20467
- ...Object.values(circles54),
20435
+ ...Object.values(paths58),
20436
+ ...Object.values(circles53),
20468
20437
  { ...texts74.top1, anchor: "middle_left" },
20469
20438
  { ...texts74.bottom1, anchor: "middle_right" }
20470
20439
  ],
20471
20440
  ports: [
20472
- { ...refblocks59.top1, labels: ["1"] },
20441
+ { ...refblocks58.top1, labels: ["1"] },
20473
20442
  // TODO add more "standard" labels
20474
- { ...refblocks59.bottom1, labels: ["2"] },
20443
+ { ...refblocks58.bottom1, labels: ["2"] },
20475
20444
  // TODO add more "standard" labels
20476
- { ...refblocks59.left1, labels: ["3"] }
20445
+ { ...refblocks58.left1, labels: ["3"] }
20477
20446
  // TODO add more "standard" labels
20478
20447
  ],
20479
- size: { width: bounds59.width, height: bounds59.height },
20480
- center: { x: bounds59.centerX, y: bounds59.centerY }
20448
+ size: { width: bounds58.width, height: bounds58.height },
20449
+ center: { x: bounds58.centerX, y: bounds58.centerY }
20481
20450
  });
20482
20451
 
20483
20452
  // symbols/unijunction_transistor_vert.ts
@@ -20485,11 +20454,11 @@ var rotatedSymbol22 = rotateSymbol(unijunction_transistor_horz_default);
20485
20454
  var texts75 = rotatedSymbol22.primitives.filter(
20486
20455
  (primitive) => primitive.type === "text"
20487
20456
  );
20488
- var ref56 = texts75.find((text) => text.text === "{REF}");
20489
- ref56.y = 0.1;
20490
- var val51 = texts75.find((text) => text.text === "{VAL}");
20491
- val51.y = 0.1;
20492
- val51.x = -0.4;
20457
+ var ref55 = texts75.find((text) => text.text === "{REF}");
20458
+ ref55.y = 0.1;
20459
+ var val50 = texts75.find((text) => text.text === "{VAL}");
20460
+ val50.y = 0.1;
20461
+ val50.x = -0.4;
20493
20462
  var unijunction_transistor_vert_default = rotatedSymbol22;
20494
20463
 
20495
20464
  // assets/generated/var_meter.json
@@ -20579,11 +20548,11 @@ var var_meter_default = {
20579
20548
  };
20580
20549
 
20581
20550
  // symbols/var_meter_horz.ts
20582
- var { paths: paths60, texts: texts76, bounds: bounds60, refblocks: refblocks60, circles: circles55 } = var_meter_default;
20551
+ var { paths: paths59, texts: texts76, bounds: bounds59, refblocks: refblocks59, circles: circles54 } = var_meter_default;
20583
20552
  var var_meter_horz_default = defineSymbol({
20584
20553
  primitives: [
20585
- ...Object.values(paths60),
20586
- ...Object.values(circles55),
20554
+ ...Object.values(paths59),
20555
+ ...Object.values(circles54),
20587
20556
  {
20588
20557
  ...texts76.top1,
20589
20558
  x: 0,
@@ -20599,13 +20568,13 @@ var var_meter_horz_default = defineSymbol({
20599
20568
  { ...texts76.left1, x: -0.02, y: 0.01, fontSize: 0.2, anchor: "center" }
20600
20569
  ],
20601
20570
  ports: [
20602
- { ...refblocks60.left1, labels: ["1"] },
20571
+ { ...refblocks59.left1, labels: ["1"] },
20603
20572
  // TODO add more "standard" labels
20604
- { ...refblocks60.right1, labels: ["2"] }
20573
+ { ...refblocks59.right1, labels: ["2"] }
20605
20574
  // TODO add more "standard" labels
20606
20575
  ],
20607
- size: { width: bounds60.width, height: bounds60.height },
20608
- center: { x: bounds60.centerX, y: bounds60.centerY }
20576
+ size: { width: bounds59.width, height: bounds59.height },
20577
+ center: { x: bounds59.centerX, y: bounds59.centerY }
20609
20578
  });
20610
20579
 
20611
20580
  // symbols/var_meter_vert.ts
@@ -20758,34 +20727,34 @@ var varactor_diode_default = {
20758
20727
  };
20759
20728
 
20760
20729
  // symbols/varactor_diode_horz.ts
20761
- var { paths: paths61, texts: texts77, bounds: bounds61, refblocks: refblocks61, circles: circles56 } = varactor_diode_default;
20730
+ var { paths: paths60, texts: texts77, bounds: bounds60, refblocks: refblocks60, circles: circles55 } = varactor_diode_default;
20762
20731
  var varactor_diode_horz_default = defineSymbol({
20763
20732
  primitives: [
20764
- ...Object.values(paths61),
20765
- ...Object.values(circles56),
20733
+ ...Object.values(paths60),
20734
+ ...Object.values(circles55),
20766
20735
  { ...texts77.top1, anchor: "middle_bottom" },
20767
20736
  { ...texts77.bottom1, anchor: "middle_top" }
20768
20737
  ],
20769
20738
  ports: [
20770
- { ...refblocks61.left1, labels: ["1"] },
20739
+ { ...refblocks60.left1, labels: ["1"] },
20771
20740
  // TODO add more "standard" labels
20772
- { ...refblocks61.right1, labels: ["2"] }
20741
+ { ...refblocks60.right1, labels: ["2"] }
20773
20742
  // TODO add more "standard" labels
20774
20743
  ],
20775
- size: { width: bounds61.width, height: bounds61.height },
20776
- center: { x: bounds61.centerX, y: bounds61.centerY }
20744
+ size: { width: bounds60.width, height: bounds60.height },
20745
+ center: { x: bounds60.centerX, y: bounds60.centerY }
20777
20746
  });
20778
20747
 
20779
20748
  // symbols/varactor_diode_vert.ts
20780
20749
  var rotated38 = rotateSymbol(varactor_diode_horz_default);
20781
- var ref57 = rotated38.primitives.find(
20750
+ var ref56 = rotated38.primitives.find(
20782
20751
  (p) => p.type === "text" && p.text === "{REF}"
20783
20752
  );
20784
- var val52 = rotated38.primitives.find(
20753
+ var val51 = rotated38.primitives.find(
20785
20754
  (p) => p.type === "text" && p.text === "{VAL}"
20786
20755
  );
20787
- ref57.anchor = "middle_left";
20788
- val52.anchor = "middle_right";
20756
+ ref56.anchor = "middle_left";
20757
+ val51.anchor = "middle_right";
20789
20758
  var varactor_diode_vert_default = rotated38;
20790
20759
 
20791
20760
  // assets/generated/varistor.json
@@ -20921,26 +20890,26 @@ var varistor_default = {
20921
20890
  };
20922
20891
 
20923
20892
  // symbols/varistor_horz.ts
20924
- var { paths: paths62, texts: texts78, bounds: bounds62, refblocks: refblocks62 } = varistor_default;
20893
+ var { paths: paths61, texts: texts78, bounds: bounds61, refblocks: refblocks61 } = varistor_default;
20925
20894
  var varistor_horz_default = defineSymbol({
20926
20895
  primitives: [
20927
- ...Object.values(paths62),
20896
+ ...Object.values(paths61),
20928
20897
  { ...texts78.top1, anchor: "middle_left" },
20929
20898
  { ...texts78.bottom1, anchor: "middle_right" }
20930
20899
  ],
20931
20900
  ports: [
20932
20901
  {
20933
- ...refblocks62.left1,
20902
+ ...refblocks61.left1,
20934
20903
  labels: ["1", "-"]
20935
20904
  },
20936
20905
  {
20937
- ...refblocks62.right1,
20906
+ ...refblocks61.right1,
20938
20907
  labels: ["2", "+"]
20939
20908
  }
20940
20909
  ],
20941
- size: { width: bounds62.width, height: bounds62.height },
20910
+ size: { width: bounds61.width, height: bounds61.height },
20942
20911
  //{ width: 1, height: 0.24 },
20943
- center: { x: bounds62.centerX, y: bounds62.centerY }
20912
+ center: { x: bounds61.centerX, y: bounds61.centerY }
20944
20913
  });
20945
20914
 
20946
20915
  // symbols/varistor_vert.ts
@@ -21033,11 +21002,11 @@ var varmeter_default = {
21033
21002
  };
21034
21003
 
21035
21004
  // symbols/varmeter_horz.ts
21036
- var { paths: paths63, texts: texts79, bounds: bounds63, refblocks: refblocks63, circles: circles57 } = varmeter_default;
21005
+ var { paths: paths62, texts: texts79, bounds: bounds62, refblocks: refblocks62, circles: circles56 } = varmeter_default;
21037
21006
  var varmeter_horz_default = defineSymbol({
21038
21007
  primitives: [
21039
- ...Object.values(paths63),
21040
- ...Object.values(circles57),
21008
+ ...Object.values(paths62),
21009
+ ...Object.values(circles56),
21041
21010
  {
21042
21011
  type: "text",
21043
21012
  text: "{REF}",
@@ -21055,13 +21024,13 @@ var varmeter_horz_default = defineSymbol({
21055
21024
  { ...texts79.left1, anchor: "center", y: 0.02, fontSize: 0.2 }
21056
21025
  ],
21057
21026
  ports: [
21058
- { ...refblocks63.left1, labels: ["1"] },
21027
+ { ...refblocks62.left1, labels: ["1"] },
21059
21028
  // TODO add more "standard" labels
21060
- { ...refblocks63.right1, labels: ["2"] }
21029
+ { ...refblocks62.right1, labels: ["2"] }
21061
21030
  // TODO add more "standard" labels
21062
21031
  ],
21063
- size: { width: bounds63.width, height: bounds63.height },
21064
- center: { x: bounds63.centerX, y: bounds63.centerY }
21032
+ size: { width: bounds62.width, height: bounds62.height },
21033
+ center: { x: bounds62.centerX, y: bounds62.centerY }
21065
21034
  });
21066
21035
 
21067
21036
  // symbols/varmeter_vert.ts
@@ -21078,19 +21047,19 @@ var varmeter_vert_default = {
21078
21047
  primitives: [...rotatedSymbol23.primitives, letter5]
21079
21048
  };
21080
21049
 
21081
- // assets/generated/VCC.json
21082
- var VCC_default = {
21050
+ // assets/generated/vcc.json
21051
+ var vcc_default = {
21083
21052
  paths: {
21084
21053
  "path28-2": {
21085
21054
  type: "path",
21086
21055
  points: [
21087
21056
  {
21088
- x: 0.2804083705,
21089
- y: 0.0013661499999990667
21057
+ x: 0.1934064300000009,
21058
+ y: 0.0014636499999962638
21090
21059
  },
21091
21060
  {
21092
- x: 0.012067670500000016,
21093
- y: 0.15638615000000122
21061
+ x: 0.0023357300000004244,
21062
+ y: 0.09263974999999824
21094
21063
  }
21095
21064
  ],
21096
21065
  color: "primary",
@@ -21100,12 +21069,12 @@ var VCC_default = {
21100
21069
  type: "path",
21101
21070
  points: [
21102
21071
  {
21103
- x: 0.2805724705000001,
21104
- y: -0.001366150000000843
21072
+ x: 0.19330683000000093,
21073
+ y: -0.0014636500000015928
21105
21074
  },
21106
21075
  {
21107
- x: 0.012231770500000572,
21108
- y: -0.15638614999999945
21076
+ x: 0.002235630000000377,
21077
+ y: -0.09263975000000002
21109
21078
  }
21110
21079
  ],
21111
21080
  color: "primary",
@@ -21115,12 +21084,12 @@ var VCC_default = {
21115
21084
  type: "path",
21116
21085
  points: [
21117
21086
  {
21118
- x: 0.27894777049999986,
21119
- y: -11550000001747662e-21
21087
+ x: 0.18836473000000042,
21088
+ y: 40854999999773156e-20
21120
21089
  },
21121
21090
  {
21122
- x: -0.2891629295000002,
21123
- y: -11550000001747662e-21
21091
+ x: -0.2161554699999999,
21092
+ y: 40854999999773156e-20
21124
21093
  }
21125
21094
  ],
21126
21095
  color: "primary",
@@ -21131,112 +21100,40 @@ var VCC_default = {
21131
21100
  right1: {
21132
21101
  type: "text",
21133
21102
  text: "{REF}",
21134
- x: 0.3322337704999998,
21135
- y: 0.004280050000000202
21103
+ x: 0.25200763000000004,
21104
+ y: 0.004881449999999177
21136
21105
  }
21137
21106
  },
21138
21107
  refblocks: {
21139
21108
  left1: {
21140
- x: -0.30407532950000027,
21141
- y: 4801499999995684e-19
21109
+ x: -0.23110196999999966,
21110
+ y: -7457500000018769e-19
21142
21111
  }
21143
21112
  },
21144
21113
  bounds: {
21145
- minX: -0.33223377050000025,
21146
- maxX: 0.3322337704999998,
21147
- minY: -0.15638614999999945,
21148
- maxY: 0.15638615000000122,
21149
- width: 0.664467541,
21150
- height: 0.31277230000000067,
21151
- centerX: -2220446049250313e-31,
21152
- centerY: 8881784197001252e-31
21114
+ minX: -0.25200762999999965,
21115
+ maxX: 0.25200763000000004,
21116
+ minY: -0.09263975000000002,
21117
+ maxY: 0.09263974999999824,
21118
+ width: 0.5040152599999996,
21119
+ height: 0.18527949999999827,
21120
+ centerX: 1942890293094024e-31,
21121
+ centerY: -8881784197001252e-31
21153
21122
  },
21154
21123
  circles: {}
21155
21124
  };
21156
21125
 
21157
- // symbols/VCC_down.ts
21158
- var { paths: paths64, texts: texts80, bounds: bounds64, refblocks: refblocks64, circles: circles58 } = VCC_default;
21159
- var VCC_down_default = modifySymbol({
21160
- primitives: [
21161
- ...Object.values(paths64),
21162
- ...Object.values(circles58),
21163
- {
21164
- type: "text",
21165
- text: "{REF}",
21166
- x: 0.33,
21167
- y: 0
21168
- }
21169
- ],
21170
- ports: [
21171
- { ...refblocks64.left1, labels: ["1"] }
21172
- // TODO add more "standard" labels
21173
- ],
21174
- size: { width: bounds64.width, height: bounds64.height },
21175
- center: { x: bounds64.centerX, y: bounds64.centerY }
21176
- }).rotateRightFacingSymbol("down").labelPort("left", ["1"]).changeTextAnchor("{REF}", "middle_top").build();
21126
+ // symbols/vcc_down.ts
21127
+ var vcc_down_default = modifySymbol(vcc_default).rotateRightFacingSymbol("down").labelPort("left1", ["1"]).changeTextAnchor("{REF}", "middle_top").build();
21177
21128
 
21178
- // symbols/VCC_left.ts
21179
- var { paths: paths65, texts: texts81, bounds: bounds65, refblocks: refblocks65, circles: circles59 } = VCC_default;
21180
- var VCC_left_default = modifySymbol({
21181
- primitives: [
21182
- ...Object.values(paths65),
21183
- ...Object.values(circles59),
21184
- {
21185
- type: "text",
21186
- text: "{REF}",
21187
- x: 0.35,
21188
- y: 0
21189
- }
21190
- ],
21191
- ports: [
21192
- { ...refblocks65.left1, labels: ["1"] }
21193
- // TODO add more "standard" labels
21194
- ],
21195
- size: { width: bounds65.width, height: bounds65.height },
21196
- center: { x: bounds65.centerX, y: bounds65.centerY }
21197
- }).rotateRightFacingSymbol("left").labelPort("left", ["1"]).changeTextAnchor("{REF}", "middle_right").build();
21129
+ // symbols/vcc_left.ts
21130
+ var vcc_left_default = modifySymbol(vcc_default).rotateRightFacingSymbol("left").labelPort("left1", ["1"]).changeTextAnchor("{REF}", "middle_right").build();
21198
21131
 
21199
- // symbols/VCC_right.ts
21200
- var { paths: paths66, texts: texts82, bounds: bounds66, refblocks: refblocks66, circles: circles60 } = VCC_default;
21201
- var VCC_right_default = modifySymbol({
21202
- primitives: [
21203
- ...Object.values(paths66),
21204
- ...Object.values(circles60),
21205
- {
21206
- type: "text",
21207
- text: "{REF}",
21208
- x: 0.35,
21209
- y: 0
21210
- }
21211
- ],
21212
- ports: [
21213
- { ...refblocks66.left1, labels: ["1"] }
21214
- // TODO add more "standard" labels
21215
- ],
21216
- size: { width: bounds66.width, height: bounds66.height },
21217
- center: { x: bounds66.centerX, y: bounds66.centerY }
21218
- }).rotateRightFacingSymbol("right").labelPort("left", ["1"]).changeTextAnchor("{REF}", "middle_left").build();
21132
+ // symbols/vcc_right.ts
21133
+ var vcc_right_default = modifySymbol(vcc_default).rotateRightFacingSymbol("right").labelPort("left1", ["1"]).changeTextAnchor("{REF}", "middle_left").build();
21219
21134
 
21220
- // symbols/VCC_up.ts
21221
- var { paths: paths67, texts: texts83, bounds: bounds67, refblocks: refblocks67, circles: circles61 } = VCC_default;
21222
- var VCC_up_default = modifySymbol({
21223
- primitives: [
21224
- ...Object.values(paths67),
21225
- ...Object.values(circles61),
21226
- {
21227
- type: "text",
21228
- text: "{REF}",
21229
- x: 0.33,
21230
- y: 0
21231
- }
21232
- ],
21233
- ports: [
21234
- { ...refblocks67.left1, labels: ["1"] }
21235
- // TODO add more "standard" labels
21236
- ],
21237
- size: { width: bounds67.width, height: bounds67.height },
21238
- center: { x: bounds67.centerX, y: bounds67.centerY }
21239
- }).rotateRightFacingSymbol("up").labelPort("left", ["1"]).changeTextAnchor("{REF}", "middle_bottom").build();
21135
+ // symbols/vcc_up.ts
21136
+ var vcc_up_default = modifySymbol(vcc_default).rotateRightFacingSymbol("up").labelPort("left1", ["1"]).changeTextAnchor("{REF}", "middle_bottom").build();
21240
21137
 
21241
21138
  // assets/generated/volt_meter.json
21242
21139
  var volt_meter_default = {
@@ -21338,7 +21235,7 @@ var volt_meter_default = {
21338
21235
  };
21339
21236
 
21340
21237
  // symbols/volt_meter_horz.ts
21341
- var { paths: paths68, texts: texts84, bounds: bounds68, circles: circles62, refblocks: refblocks68 } = volt_meter_default;
21238
+ var { paths: paths63, texts: texts80, bounds: bounds63, circles: circles57, refblocks: refblocks63 } = volt_meter_default;
21342
21239
  var volt_meter_horz_default = modifySymbol(volt_meter_default).changeTextAnchor("{VAL}", "middle_top").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_bottom").build();
21343
21240
 
21344
21241
  // symbols/volt_meter_vert.ts
@@ -21431,11 +21328,11 @@ var watt_hour_meter_default = {
21431
21328
  };
21432
21329
 
21433
21330
  // symbols/watt_hour_meter_horz.ts
21434
- var { paths: paths69, texts: texts85, bounds: bounds69, refblocks: refblocks69, circles: circles63 } = watt_hour_meter_default;
21331
+ var { paths: paths64, texts: texts81, bounds: bounds64, refblocks: refblocks64, circles: circles58 } = watt_hour_meter_default;
21435
21332
  var watt_hour_meter_horz_default = defineSymbol({
21436
21333
  primitives: [
21437
- ...Object.values(paths69),
21438
- ...Object.values(circles63),
21334
+ ...Object.values(paths64),
21335
+ ...Object.values(circles58),
21439
21336
  {
21440
21337
  type: "text",
21441
21338
  text: "{REF}",
@@ -21450,16 +21347,16 @@ var watt_hour_meter_horz_default = defineSymbol({
21450
21347
  y: 0.35,
21451
21348
  anchor: "middle_bottom"
21452
21349
  },
21453
- { ...texts85.left1, anchor: "center", y: 0.01, fontSize: 0.2 }
21350
+ { ...texts81.left1, anchor: "center", y: 0.01, fontSize: 0.2 }
21454
21351
  ],
21455
21352
  ports: [
21456
- { ...refblocks69.left1, labels: ["1"] },
21353
+ { ...refblocks64.left1, labels: ["1"] },
21457
21354
  // TODO add more "standard" labels
21458
- { ...refblocks69.right1, labels: ["2"] }
21355
+ { ...refblocks64.right1, labels: ["2"] }
21459
21356
  // TODO add more "standard" labels
21460
21357
  ],
21461
- size: { width: bounds69.width, height: bounds69.height },
21462
- center: { x: bounds69.centerX, y: bounds69.centerY }
21358
+ size: { width: bounds64.width, height: bounds64.height },
21359
+ center: { x: bounds64.centerX, y: bounds64.centerY }
21463
21360
  });
21464
21361
 
21465
21362
  // symbols/watt_hour_meter_vert.ts
@@ -21563,11 +21460,11 @@ var wattmeter_default = {
21563
21460
  };
21564
21461
 
21565
21462
  // symbols/wattmeter_horz.ts
21566
- var { paths: paths70, texts: texts86, bounds: bounds70, refblocks: refblocks70, circles: circles64 } = wattmeter_default;
21463
+ var { paths: paths65, texts: texts82, bounds: bounds65, refblocks: refblocks65, circles: circles59 } = wattmeter_default;
21567
21464
  var wattmeter_horz_default = defineSymbol({
21568
21465
  primitives: [
21569
- ...Object.values(paths70),
21570
- ...Object.values(circles64),
21466
+ ...Object.values(paths65),
21467
+ ...Object.values(circles59),
21571
21468
  {
21572
21469
  type: "text",
21573
21470
  text: "{REF}",
@@ -21582,16 +21479,16 @@ var wattmeter_horz_default = defineSymbol({
21582
21479
  y: 0.35,
21583
21480
  anchor: "middle_bottom"
21584
21481
  },
21585
- { ...texts86.left1, anchor: "center", y: 0.01, fontSize: 0.3 }
21482
+ { ...texts82.left1, anchor: "center", y: 0.01, fontSize: 0.3 }
21586
21483
  ],
21587
21484
  ports: [
21588
- { ...refblocks70.left1, labels: ["1"] },
21485
+ { ...refblocks65.left1, labels: ["1"] },
21589
21486
  // TODO add more "standard" labels
21590
- { ...refblocks70.right1, labels: ["2"] }
21487
+ { ...refblocks65.right1, labels: ["2"] }
21591
21488
  // TODO add more "standard" labels
21592
21489
  ],
21593
- size: { width: bounds70.width, height: bounds70.height },
21594
- center: { x: bounds70.centerX, y: bounds70.centerY }
21490
+ size: { width: bounds65.width, height: bounds65.height },
21491
+ center: { x: bounds65.centerX, y: bounds65.centerY }
21595
21492
  });
21596
21493
 
21597
21494
  // symbols/wattmeter_vert.ts
@@ -21755,34 +21652,34 @@ var zener_diode_default = {
21755
21652
  };
21756
21653
 
21757
21654
  // symbols/zener_diode_horz.ts
21758
- var { paths: paths71, texts: texts87, bounds: bounds71, refblocks: refblocks71, circles: circles65 } = zener_diode_default;
21655
+ var { paths: paths66, texts: texts83, bounds: bounds66, refblocks: refblocks66, circles: circles60 } = zener_diode_default;
21759
21656
  var zener_diode_horz_default = defineSymbol({
21760
21657
  primitives: [
21761
- ...Object.values(paths71),
21762
- ...Object.values(circles65),
21763
- { ...texts87.top1, anchor: "middle_bottom" },
21764
- { ...texts87.bottom1, anchor: "middle_top" }
21658
+ ...Object.values(paths66),
21659
+ ...Object.values(circles60),
21660
+ { ...texts83.top1, anchor: "middle_bottom" },
21661
+ { ...texts83.bottom1, anchor: "middle_top" }
21765
21662
  ],
21766
21663
  ports: [
21767
- { ...refblocks71.left1, labels: ["1"] },
21664
+ { ...refblocks66.left1, labels: ["1"] },
21768
21665
  // TODO add more "standard" labels
21769
- { ...refblocks71.right1, labels: ["2"] }
21666
+ { ...refblocks66.right1, labels: ["2"] }
21770
21667
  // TODO add more "standard" labels
21771
21668
  ],
21772
- size: { width: bounds71.width, height: bounds71.height },
21773
- center: { x: bounds71.centerX, y: bounds71.centerY }
21669
+ size: { width: bounds66.width, height: bounds66.height },
21670
+ center: { x: bounds66.centerX, y: bounds66.centerY }
21774
21671
  });
21775
21672
 
21776
21673
  // symbols/zener_diode_vert.ts
21777
21674
  var rotated39 = rotateSymbol(zener_diode_horz_default);
21778
- var ref58 = rotated39.primitives.find(
21675
+ var ref57 = rotated39.primitives.find(
21779
21676
  (p) => p.type === "text" && p.text === "{REF}"
21780
21677
  );
21781
- var val53 = rotated39.primitives.find(
21678
+ var val52 = rotated39.primitives.find(
21782
21679
  (p) => p.type === "text" && p.text === "{VAL}"
21783
21680
  );
21784
- ref58.anchor = "middle_left";
21785
- val53.anchor = "middle_right";
21681
+ ref57.anchor = "middle_left";
21682
+ val52.anchor = "middle_right";
21786
21683
  var zener_diode_vert_default = rotated39;
21787
21684
 
21788
21685
  // generated/symbols-index.ts
@@ -21857,8 +21754,10 @@ var symbols_index_default = {
21857
21754
  "frequency_meter_vert": frequency_meter_vert_default,
21858
21755
  "fuse_horz": fuse_horz_default,
21859
21756
  "fuse_vert": fuse_vert_default,
21860
- "ground_horz": ground_horz_default,
21861
- "ground_vert": ground_vert_default,
21757
+ "ground_down": ground_down_default,
21758
+ "ground_left": ground_left_default,
21759
+ "ground_right": ground_right_default,
21760
+ "ground_up": ground_up_default,
21862
21761
  "ground2_down": ground2_down_default,
21863
21762
  "ground2_left": ground2_left_default,
21864
21763
  "ground2_right": ground2_right_default,
@@ -22003,10 +21902,10 @@ var symbols_index_default = {
22003
21902
  "varistor_vert": varistor_vert_default,
22004
21903
  "varmeter_horz": varmeter_horz_default,
22005
21904
  "varmeter_vert": varmeter_vert_default,
22006
- "VCC_down": VCC_down_default,
22007
- "VCC_left": VCC_left_default,
22008
- "VCC_right": VCC_right_default,
22009
- "VCC_up": VCC_up_default,
21905
+ "vcc_down": vcc_down_default,
21906
+ "vcc_left": vcc_left_default,
21907
+ "vcc_right": vcc_right_default,
21908
+ "vcc_up": vcc_up_default,
22010
21909
  "volt_meter_horz": volt_meter_horz_default,
22011
21910
  "volt_meter_vert": volt_meter_vert_default,
22012
21911
  "watt_hour_meter_horz": watt_hour_meter_horz_default,
@@ -22107,9 +22006,9 @@ function createPortElement(port, { yUpPositive }) {
22107
22006
  <text x="${x - labelFontSize / 2}" y="${makeYUpPositive(y, yUpPositive) + rectSize + labelFontSize / 2}" text-anchor="middle" style="font: ${labelFontSize}px monospace; fill: #833;">${label}</text>
22108
22007
  `;
22109
22008
  }
22110
- function getInnerSvg(symbol5, options = {}) {
22009
+ function getInnerSvg(symbol4, options = {}) {
22111
22010
  const { debug = false } = options;
22112
- const { primitives, size, ports } = symbol5;
22011
+ const { primitives, size, ports } = symbol4;
22113
22012
  const svgElements = primitives.map((primitive) => {
22114
22013
  switch (primitive.type) {
22115
22014
  case "path":
@@ -22131,12 +22030,12 @@ function getInnerSvg(symbol5, options = {}) {
22131
22030
  }
22132
22031
  });
22133
22032
  const portElements = ports.map((p) => createPortElement(p, { yUpPositive: true })).join("\n ");
22134
- const centerDiamond = createDiamondElement(symbol5.center);
22033
+ const centerDiamond = createDiamondElement(symbol4.center);
22135
22034
  const debugElements = [];
22136
22035
  if (debug) {
22137
22036
  const topLeft = {
22138
- x: symbol5.center.x - size.width / 2,
22139
- y: symbol5.center.y - size.height / 2
22037
+ x: symbol4.center.x - size.width / 2,
22038
+ y: symbol4.center.y - size.height / 2
22140
22039
  };
22141
22040
  debugElements.push(
22142
22041
  `<text x="${topLeft.x}" y="${topLeft.y}" style="font: 0.05px monospace; fill: #833;">${size.width.toFixed(2)} x ${size.height.toFixed(2)}</text>`
@@ -22158,15 +22057,15 @@ function getInnerSvg(symbol5, options = {}) {
22158
22057
  ...debugElements
22159
22058
  ].join("\n");
22160
22059
  }
22161
- function getSvg(symbol5, options = {}) {
22162
- const { size } = symbol5;
22163
- const innerSvg = getInnerSvg(symbol5, options);
22060
+ function getSvg(symbol4, options = {}) {
22061
+ const { size } = symbol4;
22062
+ const innerSvg = getInnerSvg(symbol4, options);
22164
22063
  const bufferMultiple = 1.2;
22165
22064
  const w = size.width * bufferMultiple;
22166
22065
  const h = size.height * bufferMultiple;
22167
22066
  const viewBox = {
22168
- x: symbol5.center.x - w / 2,
22169
- y: makeYUpPositive(symbol5.center.y, true) - h / 2,
22067
+ x: symbol4.center.x - w / 2,
22068
+ y: makeYUpPositive(symbol4.center.y, true) - h / 2,
22170
22069
  width: w,
22171
22070
  height: h
22172
22071
  };
@@ -22182,8 +22081,8 @@ function getSvg(symbol5, options = {}) {
22182
22081
  }
22183
22082
 
22184
22083
  // drawing/resizeSymbol.ts
22185
- function resizeSymbol(symbol5, newSize) {
22186
- const { width: oldWidth, height: oldHeight } = symbol5.size;
22084
+ function resizeSymbol(symbol4, newSize) {
22085
+ const { width: oldWidth, height: oldHeight } = symbol4.size;
22187
22086
  let scaleX = 1, scaleY = 1;
22188
22087
  if (newSize.width && newSize.height) {
22189
22088
  scaleX = newSize.width / oldWidth;
@@ -22193,7 +22092,7 @@ function resizeSymbol(symbol5, newSize) {
22193
22092
  } else if (newSize.height) {
22194
22093
  scaleX = scaleY = newSize.height / oldHeight;
22195
22094
  }
22196
- const resizedPrimitives = symbol5.primitives.map((primitive) => {
22095
+ const resizedPrimitives = symbol4.primitives.map((primitive) => {
22197
22096
  switch (primitive.type) {
22198
22097
  case "path":
22199
22098
  return {
@@ -22223,13 +22122,13 @@ function resizeSymbol(symbol5, newSize) {
22223
22122
  }
22224
22123
  });
22225
22124
  return {
22226
- ...symbol5,
22125
+ ...symbol4,
22227
22126
  primitives: resizedPrimitives,
22228
22127
  center: {
22229
- x: symbol5.center.x * scaleX,
22230
- y: symbol5.center.y * scaleY
22128
+ x: symbol4.center.x * scaleX,
22129
+ y: symbol4.center.y * scaleY
22231
22130
  },
22232
- ports: symbol5.ports.map((port) => ({
22131
+ ports: symbol4.ports.map((port) => ({
22233
22132
  ...port,
22234
22133
  x: port.x * scaleX,
22235
22134
  y: port.y * scaleY