schematic-symbols 0.0.147 → 0.0.149

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 bounds68 = getBoundsOfPrimitives(symbol5.primitives);
47
+ const bounds67 = getBoundsOfPrimitives(symbol4.primitives);
48
48
  size = {
49
- width: bounds68.maxX - bounds68.minX,
50
- height: bounds68.maxY - bounds68.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 bounds68 = 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: bounds68.maxX - bounds68.minX,
504
- height: bounds68.maxY - bounds68.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 bounds68 = getBoundsOfPrimitives(this.symbol.primitives);
905
+ const bounds67 = getBoundsOfPrimitives(this.symbol.primitives);
906
906
  return {
907
- width: bounds68.maxX - bounds68.minX,
908
- height: bounds68.maxY - bounds68.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
- primitives: [
14166
- ...Object.values(paths45),
14167
- ...Object.values(circles40),
14134
+ primitives: [
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
14480
  primitives: [
14512
- ...Object.values(paths47),
14513
- ...Object.values(circles42),
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
@@ -19732,6 +19701,50 @@ var tachometer_vert_default = {
19732
19701
  primitives: [...rotatedSymbol20.primitives, letter4]
19733
19702
  };
19734
19703
 
19704
+ // symbols/testpoint_right.ts
19705
+ var testpoint_right_default = defineSymbol({
19706
+ primitives: [
19707
+ {
19708
+ type: "path",
19709
+ points: [
19710
+ { x: -0.4, y: 0 },
19711
+ { x: 0, y: 0 }
19712
+ ],
19713
+ color: "primary",
19714
+ fill: false
19715
+ },
19716
+ {
19717
+ type: "path",
19718
+ points: Array.from({ length: 8 }, (_, i) => {
19719
+ const angle = Math.PI / 2 - i * Math.PI / 7;
19720
+ const r = 0.2;
19721
+ return { x: 0.2 - r * Math.cos(angle), y: r * Math.sin(angle) };
19722
+ }),
19723
+ color: "primary",
19724
+ fill: false
19725
+ },
19726
+ { type: "text", text: "{REF}", x: 0.25, y: 0, anchor: "middle_left" }
19727
+ ],
19728
+ ports: [{ x: -0.4, y: 0, labels: ["1"] }],
19729
+ center: { x: 0, y: 0 }
19730
+ });
19731
+
19732
+ // symbols/testpoint_down.ts
19733
+ var rotated34 = rotateSymbol(testpoint_right_default, "down");
19734
+ var ref50 = rotated34.primitives.find(
19735
+ (p) => p.type === "text" && p.text === "{REF}"
19736
+ );
19737
+ if (ref50) {
19738
+ ref50.anchor = "middle_top";
19739
+ }
19740
+ var testpoint_down_default = rotated34;
19741
+
19742
+ // symbols/testpoint_left.ts
19743
+ var testpoint_left_default = rotateSymbol(testpoint_right_default, "left");
19744
+
19745
+ // symbols/testpoint_up.ts
19746
+ var testpoint_up_default = rotateSymbol(testpoint_right_default, "up");
19747
+
19735
19748
  // assets/generated/tilted_ground.json
19736
19749
  var tilted_ground_default = {
19737
19750
  paths: {
@@ -19848,52 +19861,52 @@ var tilted_ground_default = {
19848
19861
  var tilted_ground_right_default = modifySymbol(tilted_ground_default).labelPort("right1", ["1"]).changeTextAnchor("{REF}", "middle_bottom").changeTextAnchor("{VAL}", "middle_top").build();
19849
19862
 
19850
19863
  // symbols/tilted_ground_up.ts
19851
- var rotated34 = rotateSymbol(tilted_ground_right_default, "up");
19852
- var ref51 = rotated34.primitives.find(
19864
+ var rotated35 = rotateSymbol(tilted_ground_right_default, "up");
19865
+ var ref51 = rotated35.primitives.find(
19853
19866
  (p) => p.type === "text" && p.text === "{REF}"
19854
19867
  );
19855
- var val46 = rotated34.primitives.find(
19868
+ var val45 = rotated35.primitives.find(
19856
19869
  (p) => p.type === "text" && p.text === "{VAL}"
19857
19870
  );
19858
19871
  ref51.anchor = "middle_bottom";
19859
- val46.anchor = "middle_top";
19872
+ val45.anchor = "middle_top";
19860
19873
  ref51.x = 0.4;
19861
19874
  ref51.y += 0.2;
19862
- val46.y -= 0.3;
19863
- val46.x = 0.4;
19864
- var tilted_ground_up_default = rotated34;
19875
+ val45.y -= 0.3;
19876
+ val45.x = 0.4;
19877
+ var tilted_ground_up_default = rotated35;
19865
19878
 
19866
19879
  // symbols/tilted_ground_down.ts
19867
- var rotated35 = flipSymbolOverXAxis(tilted_ground_up_default);
19868
- var ref52 = rotated35.primitives.find(
19880
+ var rotated36 = flipSymbolOverXAxis(tilted_ground_up_default);
19881
+ var ref52 = rotated36.primitives.find(
19869
19882
  (p) => p.type === "text" && p.text === "{REF}"
19870
19883
  );
19871
- var val47 = rotated35.primitives.find(
19884
+ var val46 = rotated36.primitives.find(
19872
19885
  (p) => p.type === "text" && p.text === "{VAL}"
19873
19886
  );
19874
19887
  ref52.anchor = "middle_bottom";
19875
- val47.anchor = "middle_top";
19888
+ val46.anchor = "middle_top";
19876
19889
  ref52.x = 0.35;
19877
19890
  ref52.y += 0.4;
19878
- val47.y -= 0.4;
19879
- val47.x = 0.35;
19880
- var tilted_ground_down_default = rotated35;
19891
+ val46.y -= 0.4;
19892
+ val46.x = 0.35;
19893
+ var tilted_ground_down_default = rotated36;
19881
19894
 
19882
19895
  // symbols/tilted_ground_left.ts
19883
- var rotated36 = rotateSymbol(tilted_ground_right_default, "left");
19884
- var ref53 = rotated36.primitives.find(
19896
+ var rotated37 = rotateSymbol(tilted_ground_right_default, "left");
19897
+ var ref53 = rotated37.primitives.find(
19885
19898
  (p) => p.type === "text" && p.text === "{REF}"
19886
19899
  );
19887
- var val48 = rotated36.primitives.find(
19900
+ var val47 = rotated37.primitives.find(
19888
19901
  (p) => p.type === "text" && p.text === "{VAL}"
19889
19902
  );
19890
19903
  ref53.anchor = "middle_bottom";
19891
- val48.anchor = "middle_top";
19904
+ val47.anchor = "middle_top";
19892
19905
  ref53.x = 0;
19893
19906
  ref53.y += 0.5;
19894
- val48.y -= 0.6;
19895
- val48.x = 0;
19896
- var tilted_ground_left_default = rotated36;
19907
+ val47.y -= 0.6;
19908
+ val47.x = 0;
19909
+ var tilted_ground_left_default = rotated37;
19897
19910
 
19898
19911
  // assets/generated/triac.json
19899
19912
  var triac_default = {
@@ -20086,7 +20099,7 @@ var triac_default = {
20086
20099
  };
20087
20100
 
20088
20101
  // symbols/triac_horz.ts
20089
- var { paths: paths57, texts: texts71, bounds: bounds57, refblocks: refblocks57, circles: circles52 } = triac_default;
20102
+ var { paths: paths56, texts: texts71, bounds: bounds56, refblocks: refblocks56, circles: circles51 } = triac_default;
20090
20103
  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
20104
 
20092
20105
  // symbols/triac_vert.ts
@@ -20095,9 +20108,9 @@ var texts72 = rotatedSymbol21.primitives.filter(
20095
20108
  (primitive) => primitive.type === "text"
20096
20109
  );
20097
20110
  var ref54 = texts72.find((text) => text.text === "{REF}");
20098
- var val49 = texts72.find((text) => text.text === "{VAL}");
20111
+ var val48 = texts72.find((text) => text.text === "{VAL}");
20099
20112
  ref54.y = 0;
20100
- val49.y = 0;
20113
+ val48.y = 0;
20101
20114
  var triac_vert_default = rotatedSymbol21;
20102
20115
 
20103
20116
  // assets/generated/tunnel_diode.json
@@ -20262,35 +20275,35 @@ var tunnel_diode_default = {
20262
20275
  };
20263
20276
 
20264
20277
  // symbols/tunnel_diode_horz.ts
20265
- var { paths: paths58, texts: texts73, bounds: bounds58, refblocks: refblocks58, circles: circles53 } = tunnel_diode_default;
20278
+ var { paths: paths57, texts: texts73, bounds: bounds57, refblocks: refblocks57, circles: circles52 } = tunnel_diode_default;
20266
20279
  var tunnel_diode_horz_default = defineSymbol({
20267
20280
  primitives: [
20268
- ...Object.values(paths58),
20269
- ...Object.values(circles53),
20281
+ ...Object.values(paths57),
20282
+ ...Object.values(circles52),
20270
20283
  { ...texts73.top1, anchor: "middle_bottom" },
20271
20284
  { ...texts73.bottom1, anchor: "middle_top" }
20272
20285
  ],
20273
20286
  ports: [
20274
- { ...refblocks58.left1, labels: ["1"] },
20287
+ { ...refblocks57.left1, labels: ["1"] },
20275
20288
  // TODO add more "standard" labels
20276
- { ...refblocks58.right1, labels: ["2"] }
20289
+ { ...refblocks57.right1, labels: ["2"] }
20277
20290
  // TODO add more "standard" labels
20278
20291
  ],
20279
- size: { width: bounds58.width, height: bounds58.height },
20280
- center: { x: bounds58.centerX, y: bounds58.centerY }
20292
+ size: { width: bounds57.width, height: bounds57.height },
20293
+ center: { x: bounds57.centerX, y: bounds57.centerY }
20281
20294
  });
20282
20295
 
20283
20296
  // symbols/tunnel_diode_vert.ts
20284
- var rotated37 = rotateSymbol(tunnel_diode_horz_default);
20285
- var ref55 = rotated37.primitives.find(
20297
+ var rotated38 = rotateSymbol(tunnel_diode_horz_default);
20298
+ var ref55 = rotated38.primitives.find(
20286
20299
  (p) => p.type === "text" && p.text === "{REF}"
20287
20300
  );
20288
- var val50 = rotated37.primitives.find(
20301
+ var val49 = rotated38.primitives.find(
20289
20302
  (p) => p.type === "text" && p.text === "{VAL}"
20290
20303
  );
20291
20304
  ref55.anchor = "middle_left";
20292
- val50.anchor = "middle_right";
20293
- var tunnel_diode_vert_default = rotated37;
20305
+ val49.anchor = "middle_right";
20306
+ var tunnel_diode_vert_default = rotated38;
20294
20307
 
20295
20308
  // assets/generated/unijunction_transistor.json
20296
20309
  var unijunction_transistor_default = {
@@ -20460,24 +20473,24 @@ var unijunction_transistor_default = {
20460
20473
  };
20461
20474
 
20462
20475
  // symbols/unijunction_transistor_horz.ts
20463
- var { paths: paths59, texts: texts74, bounds: bounds59, refblocks: refblocks59, circles: circles54 } = unijunction_transistor_default;
20476
+ var { paths: paths58, texts: texts74, bounds: bounds58, refblocks: refblocks58, circles: circles53 } = unijunction_transistor_default;
20464
20477
  var unijunction_transistor_horz_default = defineSymbol({
20465
20478
  primitives: [
20466
- ...Object.values(paths59),
20467
- ...Object.values(circles54),
20479
+ ...Object.values(paths58),
20480
+ ...Object.values(circles53),
20468
20481
  { ...texts74.top1, anchor: "middle_left" },
20469
20482
  { ...texts74.bottom1, anchor: "middle_right" }
20470
20483
  ],
20471
20484
  ports: [
20472
- { ...refblocks59.top1, labels: ["1"] },
20485
+ { ...refblocks58.top1, labels: ["1"] },
20473
20486
  // TODO add more "standard" labels
20474
- { ...refblocks59.bottom1, labels: ["2"] },
20487
+ { ...refblocks58.bottom1, labels: ["2"] },
20475
20488
  // TODO add more "standard" labels
20476
- { ...refblocks59.left1, labels: ["3"] }
20489
+ { ...refblocks58.left1, labels: ["3"] }
20477
20490
  // TODO add more "standard" labels
20478
20491
  ],
20479
- size: { width: bounds59.width, height: bounds59.height },
20480
- center: { x: bounds59.centerX, y: bounds59.centerY }
20492
+ size: { width: bounds58.width, height: bounds58.height },
20493
+ center: { x: bounds58.centerX, y: bounds58.centerY }
20481
20494
  });
20482
20495
 
20483
20496
  // symbols/unijunction_transistor_vert.ts
@@ -20487,9 +20500,9 @@ var texts75 = rotatedSymbol22.primitives.filter(
20487
20500
  );
20488
20501
  var ref56 = texts75.find((text) => text.text === "{REF}");
20489
20502
  ref56.y = 0.1;
20490
- var val51 = texts75.find((text) => text.text === "{VAL}");
20491
- val51.y = 0.1;
20492
- val51.x = -0.4;
20503
+ var val50 = texts75.find((text) => text.text === "{VAL}");
20504
+ val50.y = 0.1;
20505
+ val50.x = -0.4;
20493
20506
  var unijunction_transistor_vert_default = rotatedSymbol22;
20494
20507
 
20495
20508
  // assets/generated/var_meter.json
@@ -20579,11 +20592,11 @@ var var_meter_default = {
20579
20592
  };
20580
20593
 
20581
20594
  // symbols/var_meter_horz.ts
20582
- var { paths: paths60, texts: texts76, bounds: bounds60, refblocks: refblocks60, circles: circles55 } = var_meter_default;
20595
+ var { paths: paths59, texts: texts76, bounds: bounds59, refblocks: refblocks59, circles: circles54 } = var_meter_default;
20583
20596
  var var_meter_horz_default = defineSymbol({
20584
20597
  primitives: [
20585
- ...Object.values(paths60),
20586
- ...Object.values(circles55),
20598
+ ...Object.values(paths59),
20599
+ ...Object.values(circles54),
20587
20600
  {
20588
20601
  ...texts76.top1,
20589
20602
  x: 0,
@@ -20599,13 +20612,13 @@ var var_meter_horz_default = defineSymbol({
20599
20612
  { ...texts76.left1, x: -0.02, y: 0.01, fontSize: 0.2, anchor: "center" }
20600
20613
  ],
20601
20614
  ports: [
20602
- { ...refblocks60.left1, labels: ["1"] },
20615
+ { ...refblocks59.left1, labels: ["1"] },
20603
20616
  // TODO add more "standard" labels
20604
- { ...refblocks60.right1, labels: ["2"] }
20617
+ { ...refblocks59.right1, labels: ["2"] }
20605
20618
  // TODO add more "standard" labels
20606
20619
  ],
20607
- size: { width: bounds60.width, height: bounds60.height },
20608
- center: { x: bounds60.centerX, y: bounds60.centerY }
20620
+ size: { width: bounds59.width, height: bounds59.height },
20621
+ center: { x: bounds59.centerX, y: bounds59.centerY }
20609
20622
  });
20610
20623
 
20611
20624
  // symbols/var_meter_vert.ts
@@ -20758,35 +20771,35 @@ var varactor_diode_default = {
20758
20771
  };
20759
20772
 
20760
20773
  // symbols/varactor_diode_horz.ts
20761
- var { paths: paths61, texts: texts77, bounds: bounds61, refblocks: refblocks61, circles: circles56 } = varactor_diode_default;
20774
+ var { paths: paths60, texts: texts77, bounds: bounds60, refblocks: refblocks60, circles: circles55 } = varactor_diode_default;
20762
20775
  var varactor_diode_horz_default = defineSymbol({
20763
20776
  primitives: [
20764
- ...Object.values(paths61),
20765
- ...Object.values(circles56),
20777
+ ...Object.values(paths60),
20778
+ ...Object.values(circles55),
20766
20779
  { ...texts77.top1, anchor: "middle_bottom" },
20767
20780
  { ...texts77.bottom1, anchor: "middle_top" }
20768
20781
  ],
20769
20782
  ports: [
20770
- { ...refblocks61.left1, labels: ["1"] },
20783
+ { ...refblocks60.left1, labels: ["1"] },
20771
20784
  // TODO add more "standard" labels
20772
- { ...refblocks61.right1, labels: ["2"] }
20785
+ { ...refblocks60.right1, labels: ["2"] }
20773
20786
  // TODO add more "standard" labels
20774
20787
  ],
20775
- size: { width: bounds61.width, height: bounds61.height },
20776
- center: { x: bounds61.centerX, y: bounds61.centerY }
20788
+ size: { width: bounds60.width, height: bounds60.height },
20789
+ center: { x: bounds60.centerX, y: bounds60.centerY }
20777
20790
  });
20778
20791
 
20779
20792
  // symbols/varactor_diode_vert.ts
20780
- var rotated38 = rotateSymbol(varactor_diode_horz_default);
20781
- var ref57 = rotated38.primitives.find(
20793
+ var rotated39 = rotateSymbol(varactor_diode_horz_default);
20794
+ var ref57 = rotated39.primitives.find(
20782
20795
  (p) => p.type === "text" && p.text === "{REF}"
20783
20796
  );
20784
- var val52 = rotated38.primitives.find(
20797
+ var val51 = rotated39.primitives.find(
20785
20798
  (p) => p.type === "text" && p.text === "{VAL}"
20786
20799
  );
20787
20800
  ref57.anchor = "middle_left";
20788
- val52.anchor = "middle_right";
20789
- var varactor_diode_vert_default = rotated38;
20801
+ val51.anchor = "middle_right";
20802
+ var varactor_diode_vert_default = rotated39;
20790
20803
 
20791
20804
  // assets/generated/varistor.json
20792
20805
  var varistor_default = {
@@ -20921,26 +20934,26 @@ var varistor_default = {
20921
20934
  };
20922
20935
 
20923
20936
  // symbols/varistor_horz.ts
20924
- var { paths: paths62, texts: texts78, bounds: bounds62, refblocks: refblocks62 } = varistor_default;
20937
+ var { paths: paths61, texts: texts78, bounds: bounds61, refblocks: refblocks61 } = varistor_default;
20925
20938
  var varistor_horz_default = defineSymbol({
20926
20939
  primitives: [
20927
- ...Object.values(paths62),
20940
+ ...Object.values(paths61),
20928
20941
  { ...texts78.top1, anchor: "middle_left" },
20929
20942
  { ...texts78.bottom1, anchor: "middle_right" }
20930
20943
  ],
20931
20944
  ports: [
20932
20945
  {
20933
- ...refblocks62.left1,
20946
+ ...refblocks61.left1,
20934
20947
  labels: ["1", "-"]
20935
20948
  },
20936
20949
  {
20937
- ...refblocks62.right1,
20950
+ ...refblocks61.right1,
20938
20951
  labels: ["2", "+"]
20939
20952
  }
20940
20953
  ],
20941
- size: { width: bounds62.width, height: bounds62.height },
20954
+ size: { width: bounds61.width, height: bounds61.height },
20942
20955
  //{ width: 1, height: 0.24 },
20943
- center: { x: bounds62.centerX, y: bounds62.centerY }
20956
+ center: { x: bounds61.centerX, y: bounds61.centerY }
20944
20957
  });
20945
20958
 
20946
20959
  // symbols/varistor_vert.ts
@@ -21033,11 +21046,11 @@ var varmeter_default = {
21033
21046
  };
21034
21047
 
21035
21048
  // symbols/varmeter_horz.ts
21036
- var { paths: paths63, texts: texts79, bounds: bounds63, refblocks: refblocks63, circles: circles57 } = varmeter_default;
21049
+ var { paths: paths62, texts: texts79, bounds: bounds62, refblocks: refblocks62, circles: circles56 } = varmeter_default;
21037
21050
  var varmeter_horz_default = defineSymbol({
21038
21051
  primitives: [
21039
- ...Object.values(paths63),
21040
- ...Object.values(circles57),
21052
+ ...Object.values(paths62),
21053
+ ...Object.values(circles56),
21041
21054
  {
21042
21055
  type: "text",
21043
21056
  text: "{REF}",
@@ -21055,13 +21068,13 @@ var varmeter_horz_default = defineSymbol({
21055
21068
  { ...texts79.left1, anchor: "center", y: 0.02, fontSize: 0.2 }
21056
21069
  ],
21057
21070
  ports: [
21058
- { ...refblocks63.left1, labels: ["1"] },
21071
+ { ...refblocks62.left1, labels: ["1"] },
21059
21072
  // TODO add more "standard" labels
21060
- { ...refblocks63.right1, labels: ["2"] }
21073
+ { ...refblocks62.right1, labels: ["2"] }
21061
21074
  // TODO add more "standard" labels
21062
21075
  ],
21063
- size: { width: bounds63.width, height: bounds63.height },
21064
- center: { x: bounds63.centerX, y: bounds63.centerY }
21076
+ size: { width: bounds62.width, height: bounds62.height },
21077
+ center: { x: bounds62.centerX, y: bounds62.centerY }
21065
21078
  });
21066
21079
 
21067
21080
  // symbols/varmeter_vert.ts
@@ -21266,7 +21279,7 @@ var volt_meter_default = {
21266
21279
  };
21267
21280
 
21268
21281
  // symbols/volt_meter_horz.ts
21269
- var { paths: paths64, texts: texts80, bounds: bounds64, circles: circles58, refblocks: refblocks64 } = volt_meter_default;
21282
+ var { paths: paths63, texts: texts80, bounds: bounds63, circles: circles57, refblocks: refblocks63 } = volt_meter_default;
21270
21283
  var volt_meter_horz_default = modifySymbol(volt_meter_default).changeTextAnchor("{VAL}", "middle_top").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_bottom").build();
21271
21284
 
21272
21285
  // symbols/volt_meter_vert.ts
@@ -21359,11 +21372,11 @@ var watt_hour_meter_default = {
21359
21372
  };
21360
21373
 
21361
21374
  // symbols/watt_hour_meter_horz.ts
21362
- var { paths: paths65, texts: texts81, bounds: bounds65, refblocks: refblocks65, circles: circles59 } = watt_hour_meter_default;
21375
+ var { paths: paths64, texts: texts81, bounds: bounds64, refblocks: refblocks64, circles: circles58 } = watt_hour_meter_default;
21363
21376
  var watt_hour_meter_horz_default = defineSymbol({
21364
21377
  primitives: [
21365
- ...Object.values(paths65),
21366
- ...Object.values(circles59),
21378
+ ...Object.values(paths64),
21379
+ ...Object.values(circles58),
21367
21380
  {
21368
21381
  type: "text",
21369
21382
  text: "{REF}",
@@ -21381,13 +21394,13 @@ var watt_hour_meter_horz_default = defineSymbol({
21381
21394
  { ...texts81.left1, anchor: "center", y: 0.01, fontSize: 0.2 }
21382
21395
  ],
21383
21396
  ports: [
21384
- { ...refblocks65.left1, labels: ["1"] },
21397
+ { ...refblocks64.left1, labels: ["1"] },
21385
21398
  // TODO add more "standard" labels
21386
- { ...refblocks65.right1, labels: ["2"] }
21399
+ { ...refblocks64.right1, labels: ["2"] }
21387
21400
  // TODO add more "standard" labels
21388
21401
  ],
21389
- size: { width: bounds65.width, height: bounds65.height },
21390
- center: { x: bounds65.centerX, y: bounds65.centerY }
21402
+ size: { width: bounds64.width, height: bounds64.height },
21403
+ center: { x: bounds64.centerX, y: bounds64.centerY }
21391
21404
  });
21392
21405
 
21393
21406
  // symbols/watt_hour_meter_vert.ts
@@ -21491,11 +21504,11 @@ var wattmeter_default = {
21491
21504
  };
21492
21505
 
21493
21506
  // symbols/wattmeter_horz.ts
21494
- var { paths: paths66, texts: texts82, bounds: bounds66, refblocks: refblocks66, circles: circles60 } = wattmeter_default;
21507
+ var { paths: paths65, texts: texts82, bounds: bounds65, refblocks: refblocks65, circles: circles59 } = wattmeter_default;
21495
21508
  var wattmeter_horz_default = defineSymbol({
21496
21509
  primitives: [
21497
- ...Object.values(paths66),
21498
- ...Object.values(circles60),
21510
+ ...Object.values(paths65),
21511
+ ...Object.values(circles59),
21499
21512
  {
21500
21513
  type: "text",
21501
21514
  text: "{REF}",
@@ -21513,13 +21526,13 @@ var wattmeter_horz_default = defineSymbol({
21513
21526
  { ...texts82.left1, anchor: "center", y: 0.01, fontSize: 0.3 }
21514
21527
  ],
21515
21528
  ports: [
21516
- { ...refblocks66.left1, labels: ["1"] },
21529
+ { ...refblocks65.left1, labels: ["1"] },
21517
21530
  // TODO add more "standard" labels
21518
- { ...refblocks66.right1, labels: ["2"] }
21531
+ { ...refblocks65.right1, labels: ["2"] }
21519
21532
  // TODO add more "standard" labels
21520
21533
  ],
21521
- size: { width: bounds66.width, height: bounds66.height },
21522
- center: { x: bounds66.centerX, y: bounds66.centerY }
21534
+ size: { width: bounds65.width, height: bounds65.height },
21535
+ center: { x: bounds65.centerX, y: bounds65.centerY }
21523
21536
  });
21524
21537
 
21525
21538
  // symbols/wattmeter_vert.ts
@@ -21683,35 +21696,35 @@ var zener_diode_default = {
21683
21696
  };
21684
21697
 
21685
21698
  // symbols/zener_diode_horz.ts
21686
- var { paths: paths67, texts: texts83, bounds: bounds67, refblocks: refblocks67, circles: circles61 } = zener_diode_default;
21699
+ var { paths: paths66, texts: texts83, bounds: bounds66, refblocks: refblocks66, circles: circles60 } = zener_diode_default;
21687
21700
  var zener_diode_horz_default = defineSymbol({
21688
21701
  primitives: [
21689
- ...Object.values(paths67),
21690
- ...Object.values(circles61),
21702
+ ...Object.values(paths66),
21703
+ ...Object.values(circles60),
21691
21704
  { ...texts83.top1, anchor: "middle_bottom" },
21692
21705
  { ...texts83.bottom1, anchor: "middle_top" }
21693
21706
  ],
21694
21707
  ports: [
21695
- { ...refblocks67.left1, labels: ["1"] },
21708
+ { ...refblocks66.left1, labels: ["1"] },
21696
21709
  // TODO add more "standard" labels
21697
- { ...refblocks67.right1, labels: ["2"] }
21710
+ { ...refblocks66.right1, labels: ["2"] }
21698
21711
  // TODO add more "standard" labels
21699
21712
  ],
21700
- size: { width: bounds67.width, height: bounds67.height },
21701
- center: { x: bounds67.centerX, y: bounds67.centerY }
21713
+ size: { width: bounds66.width, height: bounds66.height },
21714
+ center: { x: bounds66.centerX, y: bounds66.centerY }
21702
21715
  });
21703
21716
 
21704
21717
  // symbols/zener_diode_vert.ts
21705
- var rotated39 = rotateSymbol(zener_diode_horz_default);
21706
- var ref58 = rotated39.primitives.find(
21718
+ var rotated40 = rotateSymbol(zener_diode_horz_default);
21719
+ var ref58 = rotated40.primitives.find(
21707
21720
  (p) => p.type === "text" && p.text === "{REF}"
21708
21721
  );
21709
- var val53 = rotated39.primitives.find(
21722
+ var val52 = rotated40.primitives.find(
21710
21723
  (p) => p.type === "text" && p.text === "{VAL}"
21711
21724
  );
21712
21725
  ref58.anchor = "middle_left";
21713
- val53.anchor = "middle_right";
21714
- var zener_diode_vert_default = rotated39;
21726
+ val52.anchor = "middle_right";
21727
+ var zener_diode_vert_default = rotated40;
21715
21728
 
21716
21729
  // generated/symbols-index.ts
21717
21730
  var symbols_index_default = {
@@ -21785,8 +21798,10 @@ var symbols_index_default = {
21785
21798
  "frequency_meter_vert": frequency_meter_vert_default,
21786
21799
  "fuse_horz": fuse_horz_default,
21787
21800
  "fuse_vert": fuse_vert_default,
21788
- "ground_horz": ground_horz_default,
21789
- "ground_vert": ground_vert_default,
21801
+ "ground_down": ground_down_default,
21802
+ "ground_left": ground_left_default,
21803
+ "ground_right": ground_right_default,
21804
+ "ground_up": ground_up_default,
21790
21805
  "ground2_down": ground2_down_default,
21791
21806
  "ground2_left": ground2_left_default,
21792
21807
  "ground2_right": ground2_right_default,
@@ -21913,6 +21928,10 @@ var symbols_index_default = {
21913
21928
  "step_recovery_diode_vert": step_recovery_diode_vert_default,
21914
21929
  "tachometer_horz": tachometer_horz_default,
21915
21930
  "tachometer_vert": tachometer_vert_default,
21931
+ "testpoint_down": testpoint_down_default,
21932
+ "testpoint_left": testpoint_left_default,
21933
+ "testpoint_right": testpoint_right_default,
21934
+ "testpoint_up": testpoint_up_default,
21916
21935
  "tilted_ground_down": tilted_ground_down_default,
21917
21936
  "tilted_ground_left": tilted_ground_left_default,
21918
21937
  "tilted_ground_right": tilted_ground_right_default,
@@ -22035,9 +22054,9 @@ function createPortElement(port, { yUpPositive }) {
22035
22054
  <text x="${x - labelFontSize / 2}" y="${makeYUpPositive(y, yUpPositive) + rectSize + labelFontSize / 2}" text-anchor="middle" style="font: ${labelFontSize}px monospace; fill: #833;">${label}</text>
22036
22055
  `;
22037
22056
  }
22038
- function getInnerSvg(symbol5, options = {}) {
22057
+ function getInnerSvg(symbol4, options = {}) {
22039
22058
  const { debug = false } = options;
22040
- const { primitives, size, ports } = symbol5;
22059
+ const { primitives, size, ports } = symbol4;
22041
22060
  const svgElements = primitives.map((primitive) => {
22042
22061
  switch (primitive.type) {
22043
22062
  case "path":
@@ -22059,12 +22078,12 @@ function getInnerSvg(symbol5, options = {}) {
22059
22078
  }
22060
22079
  });
22061
22080
  const portElements = ports.map((p) => createPortElement(p, { yUpPositive: true })).join("\n ");
22062
- const centerDiamond = createDiamondElement(symbol5.center);
22081
+ const centerDiamond = createDiamondElement(symbol4.center);
22063
22082
  const debugElements = [];
22064
22083
  if (debug) {
22065
22084
  const topLeft = {
22066
- x: symbol5.center.x - size.width / 2,
22067
- y: symbol5.center.y - size.height / 2
22085
+ x: symbol4.center.x - size.width / 2,
22086
+ y: symbol4.center.y - size.height / 2
22068
22087
  };
22069
22088
  debugElements.push(
22070
22089
  `<text x="${topLeft.x}" y="${topLeft.y}" style="font: 0.05px monospace; fill: #833;">${size.width.toFixed(2)} x ${size.height.toFixed(2)}</text>`
@@ -22086,15 +22105,15 @@ function getInnerSvg(symbol5, options = {}) {
22086
22105
  ...debugElements
22087
22106
  ].join("\n");
22088
22107
  }
22089
- function getSvg(symbol5, options = {}) {
22090
- const { size } = symbol5;
22091
- const innerSvg = getInnerSvg(symbol5, options);
22108
+ function getSvg(symbol4, options = {}) {
22109
+ const { size } = symbol4;
22110
+ const innerSvg = getInnerSvg(symbol4, options);
22092
22111
  const bufferMultiple = 1.2;
22093
22112
  const w = size.width * bufferMultiple;
22094
22113
  const h = size.height * bufferMultiple;
22095
22114
  const viewBox = {
22096
- x: symbol5.center.x - w / 2,
22097
- y: makeYUpPositive(symbol5.center.y, true) - h / 2,
22115
+ x: symbol4.center.x - w / 2,
22116
+ y: makeYUpPositive(symbol4.center.y, true) - h / 2,
22098
22117
  width: w,
22099
22118
  height: h
22100
22119
  };
@@ -22110,8 +22129,8 @@ function getSvg(symbol5, options = {}) {
22110
22129
  }
22111
22130
 
22112
22131
  // drawing/resizeSymbol.ts
22113
- function resizeSymbol(symbol5, newSize) {
22114
- const { width: oldWidth, height: oldHeight } = symbol5.size;
22132
+ function resizeSymbol(symbol4, newSize) {
22133
+ const { width: oldWidth, height: oldHeight } = symbol4.size;
22115
22134
  let scaleX = 1, scaleY = 1;
22116
22135
  if (newSize.width && newSize.height) {
22117
22136
  scaleX = newSize.width / oldWidth;
@@ -22121,7 +22140,7 @@ function resizeSymbol(symbol5, newSize) {
22121
22140
  } else if (newSize.height) {
22122
22141
  scaleX = scaleY = newSize.height / oldHeight;
22123
22142
  }
22124
- const resizedPrimitives = symbol5.primitives.map((primitive) => {
22143
+ const resizedPrimitives = symbol4.primitives.map((primitive) => {
22125
22144
  switch (primitive.type) {
22126
22145
  case "path":
22127
22146
  return {
@@ -22151,13 +22170,13 @@ function resizeSymbol(symbol5, newSize) {
22151
22170
  }
22152
22171
  });
22153
22172
  return {
22154
- ...symbol5,
22173
+ ...symbol4,
22155
22174
  primitives: resizedPrimitives,
22156
22175
  center: {
22157
- x: symbol5.center.x * scaleX,
22158
- y: symbol5.center.y * scaleY
22176
+ x: symbol4.center.x * scaleX,
22177
+ y: symbol4.center.y * scaleY
22159
22178
  },
22160
- ports: symbol5.ports.map((port) => ({
22179
+ ports: symbol4.ports.map((port) => ({
22161
22180
  ...port,
22162
22181
  x: port.x * scaleX,
22163
22182
  y: port.y * scaleY