schematic-symbols 0.0.118 → 0.0.120
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +13 -1
- package/dist/index.js +342 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/symbols/icled_down.ts +4 -0
- package/symbols/icled_left.ts +4 -0
- package/symbols/icled_right.ts +11 -0
- package/symbols/icled_up.ts +27 -0
package/dist/index.d.ts
CHANGED
@@ -141,6 +141,18 @@ declare const _default: {
|
|
141
141
|
ground_vert: undefined;
|
142
142
|
gunn_diode_horz: undefined;
|
143
143
|
gunn_diode_vert: undefined;
|
144
|
+
icled_down: undefined;
|
145
|
+
icled_left: undefined;
|
146
|
+
icled_right: undefined;
|
147
|
+
icled_up: {
|
148
|
+
primitives: Primitive[];
|
149
|
+
center: Point;
|
150
|
+
ports: Port[];
|
151
|
+
size: {
|
152
|
+
width: number;
|
153
|
+
height: number;
|
154
|
+
};
|
155
|
+
};
|
144
156
|
igbt_transistor_horz: undefined;
|
145
157
|
igbt_transistor_vert: undefined;
|
146
158
|
illuminated_push_button_normally_open_horz: undefined;
|
@@ -281,7 +293,7 @@ declare const _default: {
|
|
281
293
|
zener_diode_vert: undefined;
|
282
294
|
};
|
283
295
|
|
284
|
-
type BaseSymbolName = "ac_voltmeter" | "avalanche_diode" | "battery" | "boxresistor" | "capacitor" | "capacitor_polarized" | "constant_current_diode" | "crystal_4pin" | "crystal" | "darlington_pair_transistor" | "dc_ammeter" | "dc_voltmeter" | "diac" | "diode" | "dpdt_switch" | "dpst_switch" | "filled_diode" | "frequency_meter" | "fuse" | "ground" | "gunn_diode" | "igbt_transistor" | "illuminated_push_button_normally_open" | "inductor" | "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" | "opamp_no_power" | "opamp_with_power" | "p_channel_d_mosfet_transistor" | "p_channel_e_mosfet_transistor" | "photodiode" | "pjfet_transistor" | "pnp_bipolar_transistor" | "potentiometer" | "potentiometer2" | "potentiometer3" | "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";
|
296
|
+
type BaseSymbolName = "ac_voltmeter" | "avalanche_diode" | "battery" | "boxresistor" | "capacitor" | "capacitor_polarized" | "constant_current_diode" | "crystal_4pin" | "crystal" | "darlington_pair_transistor" | "dc_ammeter" | "dc_voltmeter" | "diac" | "diode" | "dpdt_switch" | "dpst_switch" | "filled_diode" | "frequency_meter" | "fuse" | "ground" | "gunn_diode" | "icled" | "igbt_transistor" | "illuminated_push_button_normally_open" | "inductor" | "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" | "opamp_no_power" | "opamp_with_power" | "p_channel_d_mosfet_transistor" | "p_channel_e_mosfet_transistor" | "photodiode" | "pjfet_transistor" | "pnp_bipolar_transistor" | "potentiometer" | "potentiometer2" | "potentiometer3" | "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";
|
285
297
|
|
286
298
|
/**
|
287
299
|
* Utility for easier autocomplete:
|
package/dist/index.js
CHANGED
@@ -5645,6 +5645,336 @@ var gunn_diode_horz_default = modifySymbol(gunn_diode_default).changeTextAnchor(
|
|
5645
5645
|
// symbols/gunn_diode_vert.ts
|
5646
5646
|
var gunn_diode_vert_default = modifySymbol(gunn_diode_default).rotateRightFacingSymbol("down").changeTextAnchor("{VAL}", "middle_right").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_left").build();
|
5647
5647
|
|
5648
|
+
// assets/generated/icled.json
|
5649
|
+
var icled_default = {
|
5650
|
+
paths: {
|
5651
|
+
path45: {
|
5652
|
+
type: "path",
|
5653
|
+
points: [
|
5654
|
+
{
|
5655
|
+
x: 0.13585750000000063,
|
5656
|
+
y: -0.003696399999999045
|
5657
|
+
},
|
5658
|
+
{
|
5659
|
+
x: -0.12872579999999934,
|
5660
|
+
y: -0.13598810000000228
|
5661
|
+
}
|
5662
|
+
],
|
5663
|
+
color: "primary",
|
5664
|
+
fill: false
|
5665
|
+
},
|
5666
|
+
"path1-8": {
|
5667
|
+
type: "path",
|
5668
|
+
points: [
|
5669
|
+
{
|
5670
|
+
x: 0.12763670000000094,
|
5671
|
+
y: -0.003920199999999596
|
5672
|
+
},
|
5673
|
+
{
|
5674
|
+
x: 0.3,
|
5675
|
+
y: -0.003920199999999596
|
5676
|
+
}
|
5677
|
+
],
|
5678
|
+
color: "primary",
|
5679
|
+
fill: false
|
5680
|
+
},
|
5681
|
+
path46: {
|
5682
|
+
type: "path",
|
5683
|
+
points: [
|
5684
|
+
{
|
5685
|
+
x: -0.12872579999999934,
|
5686
|
+
y: 0.12859530000000063
|
5687
|
+
},
|
5688
|
+
{
|
5689
|
+
x: 0.13585750000000063,
|
5690
|
+
y: -0.003696399999999045
|
5691
|
+
}
|
5692
|
+
],
|
5693
|
+
color: "primary",
|
5694
|
+
fill: false
|
5695
|
+
},
|
5696
|
+
path47: {
|
5697
|
+
type: "path",
|
5698
|
+
points: [
|
5699
|
+
{
|
5700
|
+
x: -0.12872579999999934,
|
5701
|
+
y: -0.13598810000000228
|
5702
|
+
},
|
5703
|
+
{
|
5704
|
+
x: -0.12872579999999934,
|
5705
|
+
y: 0.12859530000000063
|
5706
|
+
}
|
5707
|
+
],
|
5708
|
+
color: "primary",
|
5709
|
+
fill: false
|
5710
|
+
},
|
5711
|
+
path48: {
|
5712
|
+
type: "path",
|
5713
|
+
points: [
|
5714
|
+
{
|
5715
|
+
x: 0.13585750000000063,
|
5716
|
+
y: 0.12859530000000063
|
5717
|
+
},
|
5718
|
+
{
|
5719
|
+
x: 0.13585750000000063,
|
5720
|
+
y: -0.13598810000000228
|
5721
|
+
}
|
5722
|
+
],
|
5723
|
+
color: "primary",
|
5724
|
+
fill: false
|
5725
|
+
},
|
5726
|
+
path49: {
|
5727
|
+
type: "path",
|
5728
|
+
points: [
|
5729
|
+
{
|
5730
|
+
x: -0.13076959999999938,
|
5731
|
+
y: -0.003696399999999045
|
5732
|
+
},
|
5733
|
+
{
|
5734
|
+
x: -0.3,
|
5735
|
+
y: -0.003696399999999045
|
5736
|
+
}
|
5737
|
+
],
|
5738
|
+
color: "primary",
|
5739
|
+
fill: false
|
5740
|
+
},
|
5741
|
+
path25: {
|
5742
|
+
type: "path",
|
5743
|
+
points: [
|
5744
|
+
{
|
5745
|
+
x: -0.1557438999999996,
|
5746
|
+
y: 0.28545279999999806
|
5747
|
+
},
|
5748
|
+
{
|
5749
|
+
x: -0.2530861999999994,
|
5750
|
+
y: 0.3023319999999998
|
5751
|
+
},
|
5752
|
+
{
|
5753
|
+
x: -0.21878339999999952,
|
5754
|
+
y: 0.20956920000000068
|
5755
|
+
}
|
5756
|
+
],
|
5757
|
+
color: "primary",
|
5758
|
+
fill: true
|
5759
|
+
},
|
5760
|
+
path78: {
|
5761
|
+
type: "path",
|
5762
|
+
points: [
|
5763
|
+
{
|
5764
|
+
x: -0.08000449999999937,
|
5765
|
+
y: 0.16590799999999817
|
5766
|
+
},
|
5767
|
+
{
|
5768
|
+
x: -0.09202799999999911,
|
5769
|
+
y: 0.1748410000000007
|
5770
|
+
},
|
5771
|
+
{
|
5772
|
+
x: -0.2137844999999996,
|
5773
|
+
y: 0.26529680000000155
|
5774
|
+
},
|
5775
|
+
{
|
5776
|
+
x: -0.2144144999999993,
|
5777
|
+
y: 0.2662468000000011
|
5778
|
+
}
|
5779
|
+
],
|
5780
|
+
color: "primary",
|
5781
|
+
fill: false
|
5782
|
+
},
|
5783
|
+
"path25-0": {
|
5784
|
+
type: "path",
|
5785
|
+
points: [
|
5786
|
+
{
|
5787
|
+
x: 0.021722400000000697,
|
5788
|
+
y: 0.30658939999999646
|
5789
|
+
},
|
5790
|
+
{
|
5791
|
+
x: -0.07561989999999952,
|
5792
|
+
y: 0.3234685999999982
|
5793
|
+
},
|
5794
|
+
{
|
5795
|
+
x: -0.04131709999999922,
|
5796
|
+
y: 0.23070579999999907
|
5797
|
+
}
|
5798
|
+
],
|
5799
|
+
color: "primary",
|
5800
|
+
fill: true
|
5801
|
+
},
|
5802
|
+
"path78-6": {
|
5803
|
+
type: "path",
|
5804
|
+
points: [
|
5805
|
+
{
|
5806
|
+
x: 0.09746180000000093,
|
5807
|
+
y: 0.18704459999999656
|
5808
|
+
},
|
5809
|
+
{
|
5810
|
+
x: 0.08543830000000074,
|
5811
|
+
y: 0.19597759999999909
|
5812
|
+
},
|
5813
|
+
{
|
5814
|
+
x: -0.0363181999999993,
|
5815
|
+
y: 0.28643339999999995
|
5816
|
+
},
|
5817
|
+
{
|
5818
|
+
x: -0.03694819999999943,
|
5819
|
+
y: 0.2873833999999995
|
5820
|
+
}
|
5821
|
+
],
|
5822
|
+
color: "primary",
|
5823
|
+
fill: false
|
5824
|
+
},
|
5825
|
+
box: {
|
5826
|
+
type: "path",
|
5827
|
+
points: [
|
5828
|
+
{
|
5829
|
+
x: -0.3,
|
5830
|
+
y: -0.4
|
5831
|
+
},
|
5832
|
+
{
|
5833
|
+
x: 0.3,
|
5834
|
+
y: -0.4
|
5835
|
+
},
|
5836
|
+
{
|
5837
|
+
x: 0.3,
|
5838
|
+
y: 0.4
|
5839
|
+
},
|
5840
|
+
{
|
5841
|
+
x: -0.3,
|
5842
|
+
y: 0.4
|
5843
|
+
},
|
5844
|
+
{
|
5845
|
+
x: -0.3,
|
5846
|
+
y: -0.4
|
5847
|
+
},
|
5848
|
+
{
|
5849
|
+
x: -0.3,
|
5850
|
+
y: 0.4
|
5851
|
+
}
|
5852
|
+
],
|
5853
|
+
color: "primary",
|
5854
|
+
fill: false
|
5855
|
+
},
|
5856
|
+
"path48-1": {
|
5857
|
+
type: "path",
|
5858
|
+
points: [
|
5859
|
+
{ x: -0.3, y: 0.1333 },
|
5860
|
+
{
|
5861
|
+
x: -0.5362092999999997,
|
5862
|
+
y: 0.1333
|
5863
|
+
}
|
5864
|
+
],
|
5865
|
+
color: "primary",
|
5866
|
+
fill: false
|
5867
|
+
},
|
5868
|
+
"path48-2": {
|
5869
|
+
type: "path",
|
5870
|
+
points: [
|
5871
|
+
{ x: -0.3, y: -0.1333 },
|
5872
|
+
{
|
5873
|
+
x: -0.5362092999999997,
|
5874
|
+
y: -0.1333
|
5875
|
+
}
|
5876
|
+
],
|
5877
|
+
color: "primary",
|
5878
|
+
fill: false
|
5879
|
+
},
|
5880
|
+
"path48-3": {
|
5881
|
+
type: "path",
|
5882
|
+
points: [
|
5883
|
+
{ x: 0.3, y: -0.1333 },
|
5884
|
+
{
|
5885
|
+
x: 0.5362093000000003,
|
5886
|
+
y: -0.1333
|
5887
|
+
}
|
5888
|
+
],
|
5889
|
+
color: "primary",
|
5890
|
+
fill: false
|
5891
|
+
},
|
5892
|
+
"path48-4": {
|
5893
|
+
type: "path",
|
5894
|
+
points: [
|
5895
|
+
{ x: 0.3, y: 0.1333 },
|
5896
|
+
{
|
5897
|
+
x: 0.5362093000000003,
|
5898
|
+
y: 0.1333
|
5899
|
+
}
|
5900
|
+
],
|
5901
|
+
color: "primary",
|
5902
|
+
fill: false
|
5903
|
+
}
|
5904
|
+
},
|
5905
|
+
texts: {
|
5906
|
+
bottom1: {
|
5907
|
+
type: "text",
|
5908
|
+
text: "{VAL}",
|
5909
|
+
x: 0,
|
5910
|
+
y: -0.43222
|
5911
|
+
},
|
5912
|
+
right1: {
|
5913
|
+
type: "text",
|
5914
|
+
text: "{REF}",
|
5915
|
+
x: 0,
|
5916
|
+
y: 0.43222
|
5917
|
+
}
|
5918
|
+
},
|
5919
|
+
refblocks: {
|
5920
|
+
left1: {
|
5921
|
+
x: -0.5362092999999997,
|
5922
|
+
y: 0.1333
|
5923
|
+
},
|
5924
|
+
left2: {
|
5925
|
+
x: -0.5362092999999997,
|
5926
|
+
y: -0.1333
|
5927
|
+
},
|
5928
|
+
right1: {
|
5929
|
+
x: 0.5362093000000003,
|
5930
|
+
y: -0.1333
|
5931
|
+
},
|
5932
|
+
right2: {
|
5933
|
+
x: 0.5362093000000003,
|
5934
|
+
y: 0.1333
|
5935
|
+
}
|
5936
|
+
},
|
5937
|
+
bounds: {
|
5938
|
+
minX: -0.5643677409999996,
|
5939
|
+
maxX: 0.5643677410000003,
|
5940
|
+
minY: -0.3234685999999982,
|
5941
|
+
maxY: 0.3234685999999982,
|
5942
|
+
width: 1.128735482,
|
5943
|
+
height: 0.6469371999999964,
|
5944
|
+
centerX: 33306690738754696e-32,
|
5945
|
+
centerY: 0
|
5946
|
+
},
|
5947
|
+
circles: {}
|
5948
|
+
};
|
5949
|
+
|
5950
|
+
// symbols/icled_right.ts
|
5951
|
+
var icled_right_default = modifySymbol(icled_default).labelPort("left1", ["1", "DIN"]).labelPort("left2", ["2", "POWER"]).labelPort("right1", ["4", "GND"]).labelPort("right2", ["3", "DOUT"]).changeTextAnchor("{REF}", "middle_bottom").changeTextAnchor("{VAL}", "middle_top").build();
|
5952
|
+
|
5953
|
+
// symbols/icled_down.ts
|
5954
|
+
var icled_down_default = rotateSymbol(icled_right_default, "down");
|
5955
|
+
|
5956
|
+
// symbols/icled_left.ts
|
5957
|
+
var icled_left_default = flipSymbolOverYAxis(icled_right_default);
|
5958
|
+
|
5959
|
+
// symbols/icled_up.ts
|
5960
|
+
var baseSymbol = rotateSymbol(icled_right_default, "up");
|
5961
|
+
var modifiedSymbol = {
|
5962
|
+
...baseSymbol,
|
5963
|
+
primitives: baseSymbol.primitives.map((primitive) => {
|
5964
|
+
if (primitive.type === "path" && (primitive.points.length === 3 || primitive.points.length === 4)) {
|
5965
|
+
return {
|
5966
|
+
...primitive,
|
5967
|
+
points: primitive.points.map((point) => ({
|
5968
|
+
x: point.x,
|
5969
|
+
y: -point.y + 2 * baseSymbol.center.y
|
5970
|
+
}))
|
5971
|
+
};
|
5972
|
+
}
|
5973
|
+
return primitive;
|
5974
|
+
})
|
5975
|
+
};
|
5976
|
+
var icled_up_default = modifiedSymbol;
|
5977
|
+
|
5648
5978
|
// assets/generated/igbt_transistor.json
|
5649
5979
|
var igbt_transistor_default = {
|
5650
5980
|
paths: {
|
@@ -8003,23 +8333,23 @@ var led_down_default = rotateSymbol(led_right_default, "down");
|
|
8003
8333
|
var led_left_default = flipSymbolOverYAxis(led_right_default);
|
8004
8334
|
|
8005
8335
|
// symbols/led_up.ts
|
8006
|
-
var
|
8007
|
-
var
|
8008
|
-
...
|
8009
|
-
primitives:
|
8336
|
+
var baseSymbol2 = rotateSymbol(led_right_default, "up");
|
8337
|
+
var modifiedSymbol2 = {
|
8338
|
+
...baseSymbol2,
|
8339
|
+
primitives: baseSymbol2.primitives.map((primitive) => {
|
8010
8340
|
if (primitive.type === "path" && (primitive.points.length === 3 || primitive.points.length === 4)) {
|
8011
8341
|
return {
|
8012
8342
|
...primitive,
|
8013
8343
|
points: primitive.points.map((point) => ({
|
8014
8344
|
x: point.x,
|
8015
|
-
y: -point.y + 2 *
|
8345
|
+
y: -point.y + 2 * baseSymbol2.center.y
|
8016
8346
|
}))
|
8017
8347
|
};
|
8018
8348
|
}
|
8019
8349
|
return primitive;
|
8020
8350
|
})
|
8021
8351
|
};
|
8022
|
-
var led_up_default =
|
8352
|
+
var led_up_default = modifiedSymbol2;
|
8023
8353
|
|
8024
8354
|
// assets/generated/light_dependent_resistor.json
|
8025
8355
|
var light_dependent_resistor_default = {
|
@@ -14080,8 +14410,8 @@ var SPDT_switch_default = {
|
|
14080
14410
|
y: -0.06451304999999996
|
14081
14411
|
},
|
14082
14412
|
right2: {
|
14083
|
-
x: 0.
|
14084
|
-
y:
|
14413
|
+
x: 0.3682737499999995,
|
14414
|
+
y: 0.17214665000000062
|
14085
14415
|
},
|
14086
14416
|
right3: {
|
14087
14417
|
x: 0.3682737499999995,
|
@@ -16331,6 +16661,10 @@ var symbols_index_default = {
|
|
16331
16661
|
"ground_vert": ground_vert_default,
|
16332
16662
|
"gunn_diode_horz": gunn_diode_horz_default,
|
16333
16663
|
"gunn_diode_vert": gunn_diode_vert_default,
|
16664
|
+
"icled_down": icled_down_default,
|
16665
|
+
"icled_left": icled_left_default,
|
16666
|
+
"icled_right": icled_right_default,
|
16667
|
+
"icled_up": icled_up_default,
|
16334
16668
|
"igbt_transistor_horz": igbt_transistor_horz_default,
|
16335
16669
|
"igbt_transistor_vert": igbt_transistor_vert_default,
|
16336
16670
|
"illuminated_push_button_normally_open_horz": illuminated_push_button_normally_open_horz_default,
|