schematic-symbols 0.0.86 → 0.0.87

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.ts CHANGED
@@ -209,6 +209,16 @@ declare const _default: {
209
209
  varactor_diode_vert: undefined;
210
210
  varistor_horz: undefined;
211
211
  varistor_vert: undefined;
212
+ varmeter_horz: undefined;
213
+ varmeter_vert: {
214
+ primitives: Primitive[];
215
+ center: Point;
216
+ ports: Port[];
217
+ size: {
218
+ width: number;
219
+ height: number;
220
+ };
221
+ };
212
222
  volt_meter_horz: undefined;
213
223
  volt_meter_vert: undefined;
214
224
  watt_hour_meter_horz: undefined;
@@ -225,7 +235,7 @@ declare const _default: {
225
235
  zener_diode_vert: undefined;
226
236
  };
227
237
 
228
- type BaseSymbolName = "ac_voltmeter" | "avalanche_diode" | "battery" | "boxresistor" | "capacitor" | "constant_current_diode" | "crystal" | "darlington_pair_transistor" | "dc_ammeter" | "dc_voltmeter" | "diac" | "diode" | "dpst_switch" | "filled_diode" | "frequency_meter" | "fuse" | "gunn_diode" | "igbt_transistor" | "laser_diode" | "led" | "light_dependent_resistor" | "mosfet_depletion_normally_on" | "mushroom_head_normally_open_momentary" | "n_channel_d_mosfet_transistor" | "n_channel_e_mosfet_transistor" | "njfet_transistor" | "npn_bipolar_transistor" | "p_channel_d_mosfet_transistor" | "p_channel_e_mosfet_transistor" | "photodiode" | "pjfet_transistor" | "pnp_bipolar_transistor" | "potentiometer" | "potentiometer2" | "power_factor_meter" | "push_button_normally_closed_momentary" | "push_button_normally_open_momentary" | "rectifier_diode" | "resonator" | "schottky_diode" | "silicon_controlled_rectifier" | "SPDT_switch" | "SPST_switch" | "step_recovery_diode" | "tachometer" | "triac" | "tunnel_diode" | "unijunction_transistor" | "var_meter" | "varactor_diode" | "varistor" | "volt_meter" | "watt_hour_meter" | "zener_diode";
238
+ type BaseSymbolName = "ac_voltmeter" | "avalanche_diode" | "battery" | "boxresistor" | "capacitor" | "constant_current_diode" | "crystal" | "darlington_pair_transistor" | "dc_ammeter" | "dc_voltmeter" | "diac" | "diode" | "dpst_switch" | "filled_diode" | "frequency_meter" | "fuse" | "gunn_diode" | "igbt_transistor" | "laser_diode" | "led" | "light_dependent_resistor" | "mosfet_depletion_normally_on" | "mushroom_head_normally_open_momentary" | "n_channel_d_mosfet_transistor" | "n_channel_e_mosfet_transistor" | "njfet_transistor" | "npn_bipolar_transistor" | "p_channel_d_mosfet_transistor" | "p_channel_e_mosfet_transistor" | "photodiode" | "pjfet_transistor" | "pnp_bipolar_transistor" | "potentiometer" | "potentiometer2" | "power_factor_meter" | "push_button_normally_closed_momentary" | "push_button_normally_open_momentary" | "rectifier_diode" | "resonator" | "schottky_diode" | "silicon_controlled_rectifier" | "SPDT_switch" | "SPST_switch" | "step_recovery_diode" | "tachometer" | "triac" | "tunnel_diode" | "unijunction_transistor" | "var_meter" | "varactor_diode" | "varistor" | "varmeter" | "volt_meter" | "watt_hour_meter" | "zener_diode";
229
239
 
230
240
  /**
231
241
  * Utility for easier autocomplete:
package/dist/index.js CHANGED
@@ -10481,6 +10481,138 @@ var varistor_horz_default = defineSymbol({
10481
10481
  // symbols/varistor_vert.ts
10482
10482
  var varistor_vert_default = rotateSymbol(varistor_horz_default, {});
10483
10483
 
10484
+ // assets/generated/varmeter.json
10485
+ var varmeter_default = {
10486
+ paths: {
10487
+ path11: {
10488
+ type: "path",
10489
+ points: [
10490
+ {
10491
+ x: -0.5307178,
10492
+ y: 0
10493
+ },
10494
+ {
10495
+ x: -0.3042887999999997,
10496
+ y: 0
10497
+ }
10498
+ ],
10499
+ color: "primary",
10500
+ fill: false
10501
+ },
10502
+ path12: {
10503
+ type: "path",
10504
+ points: [
10505
+ {
10506
+ x: 0.2899773000000003,
10507
+ y: 0
10508
+ },
10509
+ {
10510
+ x: 0.5307178000000001,
10511
+ y: 0
10512
+ }
10513
+ ],
10514
+ color: "primary",
10515
+ fill: false
10516
+ }
10517
+ },
10518
+ texts: {
10519
+ top1: {
10520
+ type: "text",
10521
+ text: "{REF}",
10522
+ x: -0.17652089999999898,
10523
+ y: -0.36197569999999946
10524
+ },
10525
+ bottom1: {
10526
+ type: "text",
10527
+ text: "{VAL}",
10528
+ x: -0.009849199999999891,
10529
+ y: 0.43234960000000044
10530
+ },
10531
+ left1: {
10532
+ type: "text",
10533
+ text: "Var",
10534
+ x: 0,
10535
+ y: -0.025
10536
+ }
10537
+ },
10538
+ refblocks: {
10539
+ left1: {
10540
+ x: -0.5446330999999993,
10541
+ y: 852800000000542e-18
10542
+ },
10543
+ right1: {
10544
+ x: 0.5381638000000004,
10545
+ y: -14359999999924433e-20
10546
+ }
10547
+ },
10548
+ bounds: {
10549
+ minX: -0.5307178,
10550
+ maxX: 0.5307178000000001,
10551
+ minY: 0,
10552
+ maxY: 0,
10553
+ width: 1.0614356000000003,
10554
+ height: 1,
10555
+ centerX: 5551115123125783e-32,
10556
+ centerY: 0
10557
+ },
10558
+ circles: {
10559
+ path1: {
10560
+ type: "circle",
10561
+ x: -0.006997299999999651,
10562
+ y: -0.007128299999999532,
10563
+ radius: 0.28854213,
10564
+ color: "primary",
10565
+ fill: false
10566
+ }
10567
+ }
10568
+ };
10569
+
10570
+ // symbols/varmeter_horz.ts
10571
+ var { paths: paths52, texts: texts73, bounds: bounds52, refblocks: refblocks52, circles: circles41 } = varmeter_default;
10572
+ var varmeter_horz_default = defineSymbol({
10573
+ primitives: [
10574
+ ...Object.values(paths52),
10575
+ ...Object.values(circles41),
10576
+ {
10577
+ type: "text",
10578
+ text: "{REF}",
10579
+ x: 0,
10580
+ y: -0.3594553499999995,
10581
+ anchor: "middle_bottom"
10582
+ },
10583
+ {
10584
+ type: "text",
10585
+ text: "{VAL}",
10586
+ x: 0,
10587
+ y: 0.35,
10588
+ anchor: "middle_top"
10589
+ },
10590
+ { ...texts73.left1, anchor: "center", fontSize: 0.2 }
10591
+ ],
10592
+ ports: [
10593
+ { ...refblocks52.left1, labels: ["1"] },
10594
+ // TODO add more "standard" labels
10595
+ { ...refblocks52.right1, labels: ["2"] }
10596
+ // TODO add more "standard" labels
10597
+ ],
10598
+ size: { width: bounds52.width, height: bounds52.height },
10599
+ center: { x: bounds52.centerX, y: bounds52.centerY }
10600
+ });
10601
+
10602
+ // symbols/varmeter_vert.ts
10603
+ var { 5: letter6, ...rest6 } = varmeter_horz_default.primitives;
10604
+ function isPrimitive6(value) {
10605
+ return typeof value === "object";
10606
+ }
10607
+ var rotatedSymbol28 = rotateSymbol({
10608
+ ...varmeter_horz_default,
10609
+ primitives: Object.values(rest6).filter(isPrimitive6)
10610
+ });
10611
+ var varmeter_vert_default = {
10612
+ ...rotatedSymbol28,
10613
+ primitives: [...rotatedSymbol28.primitives, letter6]
10614
+ };
10615
+
10484
10616
  // assets/generated/volt_meter.json
10485
10617
  var volt_meter_default = {
10486
10618
  paths: {
@@ -10581,11 +10713,11 @@ var volt_meter_default = {
10581
10713
  };
10582
10714
 
10583
10715
  // symbols/volt_meter_horz.ts
10584
- var { paths: paths52, texts: texts73, bounds: bounds52, circles: circles41, refblocks: refblocks52 } = volt_meter_default;
10716
+ var { paths: paths53, texts: texts74, bounds: bounds53, circles: circles42, refblocks: refblocks53 } = volt_meter_default;
10585
10717
  var volt_meter_horz_default = defineSymbol({
10586
10718
  primitives: [
10587
- ...Object.values(paths52),
10588
- ...Object.values(circles41),
10719
+ ...Object.values(paths53),
10720
+ ...Object.values(circles42),
10589
10721
  {
10590
10722
  type: "text",
10591
10723
  text: "{REF}",
@@ -10602,13 +10734,13 @@ var volt_meter_horz_default = defineSymbol({
10602
10734
  }
10603
10735
  ],
10604
10736
  ports: [
10605
- { ...refblocks52.left1, labels: ["1"] },
10737
+ { ...refblocks53.left1, labels: ["1"] },
10606
10738
  // TODO add more "standard" labels
10607
- { ...refblocks52.right1, labels: ["2"] }
10739
+ { ...refblocks53.right1, labels: ["2"] }
10608
10740
  // TODO add more "standard" labels
10609
10741
  ],
10610
- size: { width: bounds52.width, height: bounds52.height },
10611
- center: { x: bounds52.centerX, y: bounds52.centerY }
10742
+ size: { width: bounds53.width, height: bounds53.height },
10743
+ center: { x: bounds53.centerX, y: bounds53.centerY }
10612
10744
  });
10613
10745
 
10614
10746
  // symbols/volt_meter_vert.ts
@@ -10701,11 +10833,11 @@ var watt_hour_meter_default = {
10701
10833
  };
10702
10834
 
10703
10835
  // symbols/watt_hour_meter_horz.ts
10704
- var { paths: paths53, texts: texts74, bounds: bounds53, refblocks: refblocks53, circles: circles42 } = watt_hour_meter_default;
10836
+ var { paths: paths54, texts: texts75, bounds: bounds54, refblocks: refblocks54, circles: circles43 } = watt_hour_meter_default;
10705
10837
  var watt_hour_meter_horz_default = defineSymbol({
10706
10838
  primitives: [
10707
- ...Object.values(paths53),
10708
- ...Object.values(circles42),
10839
+ ...Object.values(paths54),
10840
+ ...Object.values(circles43),
10709
10841
  {
10710
10842
  type: "text",
10711
10843
  text: "{REF}",
@@ -10720,30 +10852,30 @@ var watt_hour_meter_horz_default = defineSymbol({
10720
10852
  y: 0.35,
10721
10853
  anchor: "middle_top"
10722
10854
  },
10723
- { ...texts74.left1, anchor: "center", fontSize: 0.2 }
10855
+ { ...texts75.left1, anchor: "center", fontSize: 0.2 }
10724
10856
  ],
10725
10857
  ports: [
10726
- { ...refblocks53.left1, labels: ["1"] },
10858
+ { ...refblocks54.left1, labels: ["1"] },
10727
10859
  // TODO add more "standard" labels
10728
- { ...refblocks53.right1, labels: ["2"] }
10860
+ { ...refblocks54.right1, labels: ["2"] }
10729
10861
  // TODO add more "standard" labels
10730
10862
  ],
10731
- size: { width: bounds53.width, height: bounds53.height },
10732
- center: { x: bounds53.centerX, y: bounds53.centerY }
10863
+ size: { width: bounds54.width, height: bounds54.height },
10864
+ center: { x: bounds54.centerX, y: bounds54.centerY }
10733
10865
  });
10734
10866
 
10735
10867
  // symbols/watt_hour_meter_vert.ts
10736
- var { 5: letter6, ...rest6 } = watt_hour_meter_horz_default.primitives;
10737
- function isPrimitive6(value) {
10868
+ var { 5: letter7, ...rest7 } = watt_hour_meter_horz_default.primitives;
10869
+ function isPrimitive7(value) {
10738
10870
  return typeof value === "object";
10739
10871
  }
10740
- var rotatedSymbol28 = rotateSymbol({
10872
+ var rotatedSymbol29 = rotateSymbol({
10741
10873
  ...watt_hour_meter_horz_default,
10742
- primitives: Object.values(rest6).filter(isPrimitive6)
10874
+ primitives: Object.values(rest7).filter(isPrimitive7)
10743
10875
  });
10744
10876
  var watt_hour_meter_vert_default = {
10745
- ...rotatedSymbol28,
10746
- primitives: [...rotatedSymbol28.primitives, letter6]
10877
+ ...rotatedSymbol29,
10878
+ primitives: [...rotatedSymbol29.primitives, letter7]
10747
10879
  };
10748
10880
 
10749
10881
  // assets/generated/zener_diode.json
@@ -10893,22 +11025,22 @@ var zener_diode_default = {
10893
11025
  };
10894
11026
 
10895
11027
  // symbols/zener_diode_horz.ts
10896
- var { paths: paths54, texts: texts75, bounds: bounds54, refblocks: refblocks54, circles: circles43 } = zener_diode_default;
11028
+ var { paths: paths55, texts: texts76, bounds: bounds55, refblocks: refblocks55, circles: circles44 } = zener_diode_default;
10897
11029
  var zener_diode_horz_default = defineSymbol({
10898
11030
  primitives: [
10899
- ...Object.values(paths54),
10900
- ...Object.values(circles43),
10901
- { ...texts75.top1, anchor: "middle_bottom" },
10902
- { ...texts75.bottom1, anchor: "middle_top" }
11031
+ ...Object.values(paths55),
11032
+ ...Object.values(circles44),
11033
+ { ...texts76.top1, anchor: "middle_bottom" },
11034
+ { ...texts76.bottom1, anchor: "middle_top" }
10903
11035
  ],
10904
11036
  ports: [
10905
- { ...refblocks54.left1, labels: ["1"] },
11037
+ { ...refblocks55.left1, labels: ["1"] },
10906
11038
  // TODO add more "standard" labels
10907
- { ...refblocks54.right1, labels: ["2"] }
11039
+ { ...refblocks55.right1, labels: ["2"] }
10908
11040
  // TODO add more "standard" labels
10909
11041
  ],
10910
- size: { width: bounds54.width, height: bounds54.height },
10911
- center: { x: bounds54.centerX, y: bounds54.centerY }
11042
+ size: { width: bounds55.width, height: bounds55.height },
11043
+ center: { x: bounds55.centerX, y: bounds55.centerY }
10912
11044
  });
10913
11045
 
10914
11046
  // symbols/zener_diode_vert.ts
@@ -11027,6 +11159,8 @@ var symbols_index_default = {
11027
11159
  "varactor_diode_vert": varactor_diode_vert_default,
11028
11160
  "varistor_horz": varistor_horz_default,
11029
11161
  "varistor_vert": varistor_vert_default,
11162
+ "varmeter_horz": varmeter_horz_default,
11163
+ "varmeter_vert": varmeter_vert_default,
11030
11164
  "volt_meter_horz": volt_meter_horz_default,
11031
11165
  "volt_meter_vert": volt_meter_vert_default,
11032
11166
  "watt_hour_meter_horz": watt_hour_meter_horz_default,