schematic-symbols 0.0.86 → 0.0.88
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +21 -1
- package/dist/index.js +298 -30
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/symbols/varmeter_horz.ts +32 -0
- package/symbols/varmeter_vert.ts +19 -0
- package/symbols/wattmeter_horz.ts +32 -0
- package/symbols/wattmeter_vert.ts +19 -0
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;
|
@@ -221,11 +231,21 @@ declare const _default: {
|
|
221
231
|
height: number;
|
222
232
|
};
|
223
233
|
};
|
234
|
+
wattmeter_horz: undefined;
|
235
|
+
wattmeter_vert: {
|
236
|
+
primitives: Primitive[];
|
237
|
+
center: Point;
|
238
|
+
ports: Port[];
|
239
|
+
size: {
|
240
|
+
width: number;
|
241
|
+
height: number;
|
242
|
+
};
|
243
|
+
};
|
224
244
|
zener_diode_horz: undefined;
|
225
245
|
zener_diode_vert: undefined;
|
226
246
|
};
|
227
247
|
|
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";
|
248
|
+
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" | "wattmeter" | "zener_diode";
|
229
249
|
|
230
250
|
/**
|
231
251
|
* 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:
|
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(
|
10588
|
-
...Object.values(
|
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
|
-
{ ...
|
10737
|
+
{ ...refblocks53.left1, labels: ["1"] },
|
10606
10738
|
// TODO add more "standard" labels
|
10607
|
-
{ ...
|
10739
|
+
{ ...refblocks53.right1, labels: ["2"] }
|
10608
10740
|
// TODO add more "standard" labels
|
10609
10741
|
],
|
10610
|
-
size: { width:
|
10611
|
-
center: { x:
|
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:
|
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(
|
10708
|
-
...Object.values(
|
10839
|
+
...Object.values(paths54),
|
10840
|
+
...Object.values(circles43),
|
10709
10841
|
{
|
10710
10842
|
type: "text",
|
10711
10843
|
text: "{REF}",
|
@@ -10720,30 +10852,162 @@ var watt_hour_meter_horz_default = defineSymbol({
|
|
10720
10852
|
y: 0.35,
|
10721
10853
|
anchor: "middle_top"
|
10722
10854
|
},
|
10723
|
-
{ ...
|
10855
|
+
{ ...texts75.left1, anchor: "center", fontSize: 0.2 }
|
10724
10856
|
],
|
10725
10857
|
ports: [
|
10726
|
-
{ ...
|
10858
|
+
{ ...refblocks54.left1, labels: ["1"] },
|
10727
10859
|
// TODO add more "standard" labels
|
10728
|
-
{ ...
|
10860
|
+
{ ...refblocks54.right1, labels: ["2"] }
|
10729
10861
|
// TODO add more "standard" labels
|
10730
10862
|
],
|
10731
|
-
size: { width:
|
10732
|
-
center: { x:
|
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:
|
10737
|
-
function
|
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
|
10872
|
+
var rotatedSymbol29 = rotateSymbol({
|
10741
10873
|
...watt_hour_meter_horz_default,
|
10742
|
-
primitives: Object.values(
|
10874
|
+
primitives: Object.values(rest7).filter(isPrimitive7)
|
10743
10875
|
});
|
10744
10876
|
var watt_hour_meter_vert_default = {
|
10745
|
-
...
|
10746
|
-
primitives: [...
|
10877
|
+
...rotatedSymbol29,
|
10878
|
+
primitives: [...rotatedSymbol29.primitives, letter7]
|
10879
|
+
};
|
10880
|
+
|
10881
|
+
// assets/generated/wattmeter.json
|
10882
|
+
var wattmeter_default = {
|
10883
|
+
paths: {
|
10884
|
+
path11: {
|
10885
|
+
type: "path",
|
10886
|
+
points: [
|
10887
|
+
{
|
10888
|
+
x: -0.5307178,
|
10889
|
+
y: 0
|
10890
|
+
},
|
10891
|
+
{
|
10892
|
+
x: -0.3042887999999997,
|
10893
|
+
y: 0
|
10894
|
+
}
|
10895
|
+
],
|
10896
|
+
color: "primary",
|
10897
|
+
fill: false
|
10898
|
+
},
|
10899
|
+
path12: {
|
10900
|
+
type: "path",
|
10901
|
+
points: [
|
10902
|
+
{
|
10903
|
+
x: 0.2899773000000003,
|
10904
|
+
y: 0
|
10905
|
+
},
|
10906
|
+
{
|
10907
|
+
x: 0.5307178000000001,
|
10908
|
+
y: 0
|
10909
|
+
}
|
10910
|
+
],
|
10911
|
+
color: "primary",
|
10912
|
+
fill: false
|
10913
|
+
}
|
10914
|
+
},
|
10915
|
+
texts: {
|
10916
|
+
top1: {
|
10917
|
+
type: "text",
|
10918
|
+
text: "{REF}",
|
10919
|
+
x: -0.17652089999999898,
|
10920
|
+
y: -0.36197569999999946
|
10921
|
+
},
|
10922
|
+
bottom1: {
|
10923
|
+
type: "text",
|
10924
|
+
text: "{VAL}",
|
10925
|
+
x: -0.009849199999999891,
|
10926
|
+
y: 0.43234960000000044
|
10927
|
+
},
|
10928
|
+
left1: {
|
10929
|
+
type: "text",
|
10930
|
+
text: "W",
|
10931
|
+
x: 0,
|
10932
|
+
y: -0.025
|
10933
|
+
}
|
10934
|
+
},
|
10935
|
+
refblocks: {
|
10936
|
+
left1: {
|
10937
|
+
x: -0.5446330999999993,
|
10938
|
+
y: 852800000000542e-18
|
10939
|
+
},
|
10940
|
+
right1: {
|
10941
|
+
x: 0.5381638000000004,
|
10942
|
+
y: -14359999999924433e-20
|
10943
|
+
}
|
10944
|
+
},
|
10945
|
+
bounds: {
|
10946
|
+
minX: -0.5307178,
|
10947
|
+
maxX: 0.5307178000000001,
|
10948
|
+
minY: 0,
|
10949
|
+
maxY: 0,
|
10950
|
+
width: 1.0614356000000003,
|
10951
|
+
height: 1,
|
10952
|
+
centerX: 5551115123125783e-32,
|
10953
|
+
centerY: 0
|
10954
|
+
},
|
10955
|
+
circles: {
|
10956
|
+
path1: {
|
10957
|
+
type: "circle",
|
10958
|
+
x: -0.006997299999999651,
|
10959
|
+
y: -0.007128299999999532,
|
10960
|
+
radius: 0.28854213,
|
10961
|
+
color: "primary",
|
10962
|
+
fill: false
|
10963
|
+
}
|
10964
|
+
}
|
10965
|
+
};
|
10966
|
+
|
10967
|
+
// symbols/wattmeter_horz.ts
|
10968
|
+
var { paths: paths55, texts: texts76, bounds: bounds55, refblocks: refblocks55, circles: circles44 } = wattmeter_default;
|
10969
|
+
var wattmeter_horz_default = defineSymbol({
|
10970
|
+
primitives: [
|
10971
|
+
...Object.values(paths55),
|
10972
|
+
...Object.values(circles44),
|
10973
|
+
{
|
10974
|
+
type: "text",
|
10975
|
+
text: "{REF}",
|
10976
|
+
x: 0,
|
10977
|
+
y: -0.3594553499999995,
|
10978
|
+
anchor: "middle_bottom"
|
10979
|
+
},
|
10980
|
+
{
|
10981
|
+
type: "text",
|
10982
|
+
text: "{VAL}",
|
10983
|
+
x: 0,
|
10984
|
+
y: 0.35,
|
10985
|
+
anchor: "middle_top"
|
10986
|
+
},
|
10987
|
+
{ ...texts76.left1, anchor: "center", fontSize: 0.3 }
|
10988
|
+
],
|
10989
|
+
ports: [
|
10990
|
+
{ ...refblocks55.left1, labels: ["1"] },
|
10991
|
+
// TODO add more "standard" labels
|
10992
|
+
{ ...refblocks55.right1, labels: ["2"] }
|
10993
|
+
// TODO add more "standard" labels
|
10994
|
+
],
|
10995
|
+
size: { width: bounds55.width, height: bounds55.height },
|
10996
|
+
center: { x: bounds55.centerX, y: bounds55.centerY }
|
10997
|
+
});
|
10998
|
+
|
10999
|
+
// symbols/wattmeter_vert.ts
|
11000
|
+
var { 5: letter8, ...rest8 } = wattmeter_horz_default.primitives;
|
11001
|
+
function isPrimitive8(value) {
|
11002
|
+
return typeof value === "object";
|
11003
|
+
}
|
11004
|
+
var rotatedSymbol30 = rotateSymbol({
|
11005
|
+
...wattmeter_horz_default,
|
11006
|
+
primitives: Object.values(rest8).filter(isPrimitive8)
|
11007
|
+
});
|
11008
|
+
var wattmeter_vert_default = {
|
11009
|
+
...rotatedSymbol30,
|
11010
|
+
primitives: [...rotatedSymbol30.primitives, letter8]
|
10747
11011
|
};
|
10748
11012
|
|
10749
11013
|
// assets/generated/zener_diode.json
|
@@ -10893,22 +11157,22 @@ var zener_diode_default = {
|
|
10893
11157
|
};
|
10894
11158
|
|
10895
11159
|
// symbols/zener_diode_horz.ts
|
10896
|
-
var { paths:
|
11160
|
+
var { paths: paths56, texts: texts77, bounds: bounds56, refblocks: refblocks56, circles: circles45 } = zener_diode_default;
|
10897
11161
|
var zener_diode_horz_default = defineSymbol({
|
10898
11162
|
primitives: [
|
10899
|
-
...Object.values(
|
10900
|
-
...Object.values(
|
10901
|
-
{ ...
|
10902
|
-
{ ...
|
11163
|
+
...Object.values(paths56),
|
11164
|
+
...Object.values(circles45),
|
11165
|
+
{ ...texts77.top1, anchor: "middle_bottom" },
|
11166
|
+
{ ...texts77.bottom1, anchor: "middle_top" }
|
10903
11167
|
],
|
10904
11168
|
ports: [
|
10905
|
-
{ ...
|
11169
|
+
{ ...refblocks56.left1, labels: ["1"] },
|
10906
11170
|
// TODO add more "standard" labels
|
10907
|
-
{ ...
|
11171
|
+
{ ...refblocks56.right1, labels: ["2"] }
|
10908
11172
|
// TODO add more "standard" labels
|
10909
11173
|
],
|
10910
|
-
size: { width:
|
10911
|
-
center: { x:
|
11174
|
+
size: { width: bounds56.width, height: bounds56.height },
|
11175
|
+
center: { x: bounds56.centerX, y: bounds56.centerY }
|
10912
11176
|
});
|
10913
11177
|
|
10914
11178
|
// symbols/zener_diode_vert.ts
|
@@ -11027,10 +11291,14 @@ var symbols_index_default = {
|
|
11027
11291
|
"varactor_diode_vert": varactor_diode_vert_default,
|
11028
11292
|
"varistor_horz": varistor_horz_default,
|
11029
11293
|
"varistor_vert": varistor_vert_default,
|
11294
|
+
"varmeter_horz": varmeter_horz_default,
|
11295
|
+
"varmeter_vert": varmeter_vert_default,
|
11030
11296
|
"volt_meter_horz": volt_meter_horz_default,
|
11031
11297
|
"volt_meter_vert": volt_meter_vert_default,
|
11032
11298
|
"watt_hour_meter_horz": watt_hour_meter_horz_default,
|
11033
11299
|
"watt_hour_meter_vert": watt_hour_meter_vert_default,
|
11300
|
+
"wattmeter_horz": wattmeter_horz_default,
|
11301
|
+
"wattmeter_vert": wattmeter_vert_default,
|
11034
11302
|
"zener_diode_horz": zener_diode_horz_default,
|
11035
11303
|
"zener_diode_vert": zener_diode_vert_default
|
11036
11304
|
};
|