schematic-symbols 0.0.85 → 0.0.86
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +11 -1
- package/dist/index.js +143 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/symbols/watt_hour_meter_horz.ts +32 -0
- package/symbols/watt_hour_meter_vert.ts +19 -0
package/dist/index.d.ts
CHANGED
@@ -211,11 +211,21 @@ declare const _default: {
|
|
211
211
|
varistor_vert: undefined;
|
212
212
|
volt_meter_horz: undefined;
|
213
213
|
volt_meter_vert: undefined;
|
214
|
+
watt_hour_meter_horz: undefined;
|
215
|
+
watt_hour_meter_vert: {
|
216
|
+
primitives: Primitive[];
|
217
|
+
center: Point;
|
218
|
+
ports: Port[];
|
219
|
+
size: {
|
220
|
+
width: number;
|
221
|
+
height: number;
|
222
|
+
};
|
223
|
+
};
|
214
224
|
zener_diode_horz: undefined;
|
215
225
|
zener_diode_vert: undefined;
|
216
226
|
};
|
217
227
|
|
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";
|
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";
|
219
229
|
|
220
230
|
/**
|
221
231
|
* Utility for easier autocomplete:
|
package/dist/index.js
CHANGED
@@ -10614,6 +10614,138 @@ var volt_meter_horz_default = defineSymbol({
|
|
10614
10614
|
// symbols/volt_meter_vert.ts
|
10615
10615
|
var volt_meter_vert_default = rotateSymbol(volt_meter_horz_default);
|
10616
10616
|
|
10617
|
+
// assets/generated/watt_hour_meter.json
|
10618
|
+
var watt_hour_meter_default = {
|
10619
|
+
paths: {
|
10620
|
+
path11: {
|
10621
|
+
type: "path",
|
10622
|
+
points: [
|
10623
|
+
{
|
10624
|
+
x: -0.5307178,
|
10625
|
+
y: 0
|
10626
|
+
},
|
10627
|
+
{
|
10628
|
+
x: -0.3042887999999997,
|
10629
|
+
y: 0
|
10630
|
+
}
|
10631
|
+
],
|
10632
|
+
color: "primary",
|
10633
|
+
fill: false
|
10634
|
+
},
|
10635
|
+
path12: {
|
10636
|
+
type: "path",
|
10637
|
+
points: [
|
10638
|
+
{
|
10639
|
+
x: 0.2899773000000003,
|
10640
|
+
y: 0
|
10641
|
+
},
|
10642
|
+
{
|
10643
|
+
x: 0.5307178000000001,
|
10644
|
+
y: 0
|
10645
|
+
}
|
10646
|
+
],
|
10647
|
+
color: "primary",
|
10648
|
+
fill: false
|
10649
|
+
}
|
10650
|
+
},
|
10651
|
+
texts: {
|
10652
|
+
top1: {
|
10653
|
+
type: "text",
|
10654
|
+
text: "{REF}",
|
10655
|
+
x: -0.17652089999999898,
|
10656
|
+
y: -0.36197569999999946
|
10657
|
+
},
|
10658
|
+
bottom1: {
|
10659
|
+
type: "text",
|
10660
|
+
text: "{VAL}",
|
10661
|
+
x: -0.009849199999999891,
|
10662
|
+
y: 0.43234960000000044
|
10663
|
+
},
|
10664
|
+
left1: {
|
10665
|
+
type: "text",
|
10666
|
+
text: "Wh",
|
10667
|
+
x: 0,
|
10668
|
+
y: -0.025
|
10669
|
+
}
|
10670
|
+
},
|
10671
|
+
refblocks: {
|
10672
|
+
left1: {
|
10673
|
+
x: -0.5446330999999993,
|
10674
|
+
y: 852800000000542e-18
|
10675
|
+
},
|
10676
|
+
right1: {
|
10677
|
+
x: 0.5381638000000004,
|
10678
|
+
y: -14359999999924433e-20
|
10679
|
+
}
|
10680
|
+
},
|
10681
|
+
bounds: {
|
10682
|
+
minX: -0.5307178,
|
10683
|
+
maxX: 0.5307178000000001,
|
10684
|
+
minY: 0,
|
10685
|
+
maxY: 0,
|
10686
|
+
width: 1.0614356000000003,
|
10687
|
+
height: 1,
|
10688
|
+
centerX: 5551115123125783e-32,
|
10689
|
+
centerY: 0
|
10690
|
+
},
|
10691
|
+
circles: {
|
10692
|
+
path1: {
|
10693
|
+
type: "circle",
|
10694
|
+
x: -0.006997299999999651,
|
10695
|
+
y: -0.007128299999999532,
|
10696
|
+
radius: 0.28854213,
|
10697
|
+
color: "primary",
|
10698
|
+
fill: false
|
10699
|
+
}
|
10700
|
+
}
|
10701
|
+
};
|
10702
|
+
|
10703
|
+
// symbols/watt_hour_meter_horz.ts
|
10704
|
+
var { paths: paths53, texts: texts74, bounds: bounds53, refblocks: refblocks53, circles: circles42 } = watt_hour_meter_default;
|
10705
|
+
var watt_hour_meter_horz_default = defineSymbol({
|
10706
|
+
primitives: [
|
10707
|
+
...Object.values(paths53),
|
10708
|
+
...Object.values(circles42),
|
10709
|
+
{
|
10710
|
+
type: "text",
|
10711
|
+
text: "{REF}",
|
10712
|
+
x: 0,
|
10713
|
+
y: -0.3594553499999995,
|
10714
|
+
anchor: "middle_bottom"
|
10715
|
+
},
|
10716
|
+
{
|
10717
|
+
type: "text",
|
10718
|
+
text: "{VAL}",
|
10719
|
+
x: 0,
|
10720
|
+
y: 0.35,
|
10721
|
+
anchor: "middle_top"
|
10722
|
+
},
|
10723
|
+
{ ...texts74.left1, anchor: "center", fontSize: 0.2 }
|
10724
|
+
],
|
10725
|
+
ports: [
|
10726
|
+
{ ...refblocks53.left1, labels: ["1"] },
|
10727
|
+
// TODO add more "standard" labels
|
10728
|
+
{ ...refblocks53.right1, labels: ["2"] }
|
10729
|
+
// TODO add more "standard" labels
|
10730
|
+
],
|
10731
|
+
size: { width: bounds53.width, height: bounds53.height },
|
10732
|
+
center: { x: bounds53.centerX, y: bounds53.centerY }
|
10733
|
+
});
|
10734
|
+
|
10735
|
+
// symbols/watt_hour_meter_vert.ts
|
10736
|
+
var { 5: letter6, ...rest6 } = watt_hour_meter_horz_default.primitives;
|
10737
|
+
function isPrimitive6(value) {
|
10738
|
+
return typeof value === "object";
|
10739
|
+
}
|
10740
|
+
var rotatedSymbol28 = rotateSymbol({
|
10741
|
+
...watt_hour_meter_horz_default,
|
10742
|
+
primitives: Object.values(rest6).filter(isPrimitive6)
|
10743
|
+
});
|
10744
|
+
var watt_hour_meter_vert_default = {
|
10745
|
+
...rotatedSymbol28,
|
10746
|
+
primitives: [...rotatedSymbol28.primitives, letter6]
|
10747
|
+
};
|
10748
|
+
|
10617
10749
|
// assets/generated/zener_diode.json
|
10618
10750
|
var zener_diode_default = {
|
10619
10751
|
paths: {
|
@@ -10761,22 +10893,22 @@ var zener_diode_default = {
|
|
10761
10893
|
};
|
10762
10894
|
|
10763
10895
|
// symbols/zener_diode_horz.ts
|
10764
|
-
var { paths:
|
10896
|
+
var { paths: paths54, texts: texts75, bounds: bounds54, refblocks: refblocks54, circles: circles43 } = zener_diode_default;
|
10765
10897
|
var zener_diode_horz_default = defineSymbol({
|
10766
10898
|
primitives: [
|
10767
|
-
...Object.values(
|
10768
|
-
...Object.values(
|
10769
|
-
{ ...
|
10770
|
-
{ ...
|
10899
|
+
...Object.values(paths54),
|
10900
|
+
...Object.values(circles43),
|
10901
|
+
{ ...texts75.top1, anchor: "middle_bottom" },
|
10902
|
+
{ ...texts75.bottom1, anchor: "middle_top" }
|
10771
10903
|
],
|
10772
10904
|
ports: [
|
10773
|
-
{ ...
|
10905
|
+
{ ...refblocks54.left1, labels: ["1"] },
|
10774
10906
|
// TODO add more "standard" labels
|
10775
|
-
{ ...
|
10907
|
+
{ ...refblocks54.right1, labels: ["2"] }
|
10776
10908
|
// TODO add more "standard" labels
|
10777
10909
|
],
|
10778
|
-
size: { width:
|
10779
|
-
center: { x:
|
10910
|
+
size: { width: bounds54.width, height: bounds54.height },
|
10911
|
+
center: { x: bounds54.centerX, y: bounds54.centerY }
|
10780
10912
|
});
|
10781
10913
|
|
10782
10914
|
// symbols/zener_diode_vert.ts
|
@@ -10897,6 +11029,8 @@ var symbols_index_default = {
|
|
10897
11029
|
"varistor_vert": varistor_vert_default,
|
10898
11030
|
"volt_meter_horz": volt_meter_horz_default,
|
10899
11031
|
"volt_meter_vert": volt_meter_vert_default,
|
11032
|
+
"watt_hour_meter_horz": watt_hour_meter_horz_default,
|
11033
|
+
"watt_hour_meter_vert": watt_hour_meter_vert_default,
|
10900
11034
|
"zener_diode_horz": zener_diode_horz_default,
|
10901
11035
|
"zener_diode_vert": zener_diode_vert_default
|
10902
11036
|
};
|