schematic-symbols 0.0.85 → 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,13 +209,33 @@ 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;
224
+ watt_hour_meter_horz: undefined;
225
+ watt_hour_meter_vert: {
226
+ primitives: Primitive[];
227
+ center: Point;
228
+ ports: Port[];
229
+ size: {
230
+ width: number;
231
+ height: number;
232
+ };
233
+ };
214
234
  zener_diode_horz: undefined;
215
235
  zener_diode_vert: undefined;
216
236
  };
217
237
 
218
- 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" | "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";
219
239
 
220
240
  /**
221
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,18 +10734,150 @@ 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
10615
10747
  var volt_meter_vert_default = rotateSymbol(volt_meter_horz_default);
10616
10748
 
10749
+ // assets/generated/watt_hour_meter.json
10750
+ var watt_hour_meter_default = {
10751
+ paths: {
10752
+ path11: {
10753
+ type: "path",
10754
+ points: [
10755
+ {
10756
+ x: -0.5307178,
10757
+ y: 0
10758
+ },
10759
+ {
10760
+ x: -0.3042887999999997,
10761
+ y: 0
10762
+ }
10763
+ ],
10764
+ color: "primary",
10765
+ fill: false
10766
+ },
10767
+ path12: {
10768
+ type: "path",
10769
+ points: [
10770
+ {
10771
+ x: 0.2899773000000003,
10772
+ y: 0
10773
+ },
10774
+ {
10775
+ x: 0.5307178000000001,
10776
+ y: 0
10777
+ }
10778
+ ],
10779
+ color: "primary",
10780
+ fill: false
10781
+ }
10782
+ },
10783
+ texts: {
10784
+ top1: {
10785
+ type: "text",
10786
+ text: "{REF}",
10787
+ x: -0.17652089999999898,
10788
+ y: -0.36197569999999946
10789
+ },
10790
+ bottom1: {
10791
+ type: "text",
10792
+ text: "{VAL}",
10793
+ x: -0.009849199999999891,
10794
+ y: 0.43234960000000044
10795
+ },
10796
+ left1: {
10797
+ type: "text",
10798
+ text: "Wh",
10799
+ x: 0,
10800
+ y: -0.025
10801
+ }
10802
+ },
10803
+ refblocks: {
10804
+ left1: {
10805
+ x: -0.5446330999999993,
10806
+ y: 852800000000542e-18
10807
+ },
10808
+ right1: {
10809
+ x: 0.5381638000000004,
10810
+ y: -14359999999924433e-20
10811
+ }
10812
+ },
10813
+ bounds: {
10814
+ minX: -0.5307178,
10815
+ maxX: 0.5307178000000001,
10816
+ minY: 0,
10817
+ maxY: 0,
10818
+ width: 1.0614356000000003,
10819
+ height: 1,
10820
+ centerX: 5551115123125783e-32,
10821
+ centerY: 0
10822
+ },
10823
+ circles: {
10824
+ path1: {
10825
+ type: "circle",
10826
+ x: -0.006997299999999651,
10827
+ y: -0.007128299999999532,
10828
+ radius: 0.28854213,
10829
+ color: "primary",
10830
+ fill: false
10831
+ }
10832
+ }
10833
+ };
10834
+
10835
+ // symbols/watt_hour_meter_horz.ts
10836
+ var { paths: paths54, texts: texts75, bounds: bounds54, refblocks: refblocks54, circles: circles43 } = watt_hour_meter_default;
10837
+ var watt_hour_meter_horz_default = defineSymbol({
10838
+ primitives: [
10839
+ ...Object.values(paths54),
10840
+ ...Object.values(circles43),
10841
+ {
10842
+ type: "text",
10843
+ text: "{REF}",
10844
+ x: 0,
10845
+ y: -0.3594553499999995,
10846
+ anchor: "middle_bottom"
10847
+ },
10848
+ {
10849
+ type: "text",
10850
+ text: "{VAL}",
10851
+ x: 0,
10852
+ y: 0.35,
10853
+ anchor: "middle_top"
10854
+ },
10855
+ { ...texts75.left1, anchor: "center", fontSize: 0.2 }
10856
+ ],
10857
+ ports: [
10858
+ { ...refblocks54.left1, labels: ["1"] },
10859
+ // TODO add more "standard" labels
10860
+ { ...refblocks54.right1, labels: ["2"] }
10861
+ // TODO add more "standard" labels
10862
+ ],
10863
+ size: { width: bounds54.width, height: bounds54.height },
10864
+ center: { x: bounds54.centerX, y: bounds54.centerY }
10865
+ });
10866
+
10867
+ // symbols/watt_hour_meter_vert.ts
10868
+ var { 5: letter7, ...rest7 } = watt_hour_meter_horz_default.primitives;
10869
+ function isPrimitive7(value) {
10870
+ return typeof value === "object";
10871
+ }
10872
+ var rotatedSymbol29 = rotateSymbol({
10873
+ ...watt_hour_meter_horz_default,
10874
+ primitives: Object.values(rest7).filter(isPrimitive7)
10875
+ });
10876
+ var watt_hour_meter_vert_default = {
10877
+ ...rotatedSymbol29,
10878
+ primitives: [...rotatedSymbol29.primitives, letter7]
10879
+ };
10880
+
10617
10881
  // assets/generated/zener_diode.json
10618
10882
  var zener_diode_default = {
10619
10883
  paths: {
@@ -10761,22 +11025,22 @@ var zener_diode_default = {
10761
11025
  };
10762
11026
 
10763
11027
  // symbols/zener_diode_horz.ts
10764
- var { paths: paths53, texts: texts74, bounds: bounds53, refblocks: refblocks53, circles: circles42 } = zener_diode_default;
11028
+ var { paths: paths55, texts: texts76, bounds: bounds55, refblocks: refblocks55, circles: circles44 } = zener_diode_default;
10765
11029
  var zener_diode_horz_default = defineSymbol({
10766
11030
  primitives: [
10767
- ...Object.values(paths53),
10768
- ...Object.values(circles42),
10769
- { ...texts74.top1, anchor: "middle_bottom" },
10770
- { ...texts74.bottom1, anchor: "middle_top" }
11031
+ ...Object.values(paths55),
11032
+ ...Object.values(circles44),
11033
+ { ...texts76.top1, anchor: "middle_bottom" },
11034
+ { ...texts76.bottom1, anchor: "middle_top" }
10771
11035
  ],
10772
11036
  ports: [
10773
- { ...refblocks53.left1, labels: ["1"] },
11037
+ { ...refblocks55.left1, labels: ["1"] },
10774
11038
  // TODO add more "standard" labels
10775
- { ...refblocks53.right1, labels: ["2"] }
11039
+ { ...refblocks55.right1, labels: ["2"] }
10776
11040
  // TODO add more "standard" labels
10777
11041
  ],
10778
- size: { width: bounds53.width, height: bounds53.height },
10779
- center: { x: bounds53.centerX, y: bounds53.centerY }
11042
+ size: { width: bounds55.width, height: bounds55.height },
11043
+ center: { x: bounds55.centerX, y: bounds55.centerY }
10780
11044
  });
10781
11045
 
10782
11046
  // symbols/zener_diode_vert.ts
@@ -10895,8 +11159,12 @@ var symbols_index_default = {
10895
11159
  "varactor_diode_vert": varactor_diode_vert_default,
10896
11160
  "varistor_horz": varistor_horz_default,
10897
11161
  "varistor_vert": varistor_vert_default,
11162
+ "varmeter_horz": varmeter_horz_default,
11163
+ "varmeter_vert": varmeter_vert_default,
10898
11164
  "volt_meter_horz": volt_meter_horz_default,
10899
11165
  "volt_meter_vert": volt_meter_vert_default,
11166
+ "watt_hour_meter_horz": watt_hour_meter_horz_default,
11167
+ "watt_hour_meter_vert": watt_hour_meter_vert_default,
10900
11168
  "zener_diode_horz": zener_diode_horz_default,
10901
11169
  "zener_diode_vert": zener_diode_vert_default
10902
11170
  };