schematic-symbols 0.0.117 → 0.0.119

Sign up to get free protection for your applications and to get access to all the features.
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;
@@ -199,6 +211,10 @@ declare const _default: {
199
211
  potentiometer_vert: undefined;
200
212
  potentiometer2_horz: undefined;
201
213
  potentiometer2_vert: undefined;
214
+ potentiometer3_down: undefined;
215
+ potentiometer3_left: undefined;
216
+ potentiometer3_right: undefined;
217
+ potentiometer3_up: undefined;
202
218
  power_factor_meter_horz: undefined;
203
219
  power_factor_meter_vert: undefined;
204
220
  push_button_normally_closed_momentary_horz: undefined;
@@ -277,7 +293,7 @@ declare const _default: {
277
293
  zener_diode_vert: undefined;
278
294
  };
279
295
 
280
- 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" | "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";
281
297
 
282
298
  /**
283
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 baseSymbol = rotateSymbol(led_right_default, "up");
8007
- var modifiedSymbol = {
8008
- ...baseSymbol,
8009
- primitives: baseSymbol.primitives.map((primitive) => {
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 * baseSymbol.center.y
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 = modifiedSymbol;
8352
+ var led_up_default = modifiedSymbol2;
8023
8353
 
8024
8354
  // assets/generated/light_dependent_resistor.json
8025
8355
  var light_dependent_resistor_default = {
@@ -12233,6 +12563,113 @@ var ref19 = texts47.find((t) => t.text === "{REF}");
12233
12563
  ref19.anchor = "middle_left";
12234
12564
  var potentiometer2_vert_default = rotated6;
12235
12565
 
12566
+ // assets/generated/potentiometer3.json
12567
+ var potentiometer3_default = {
12568
+ paths: {
12569
+ path1: {
12570
+ type: "path",
12571
+ points: [
12572
+ { x: -0.4, y: 0 },
12573
+ { x: -0.3, y: 0 }
12574
+ ],
12575
+ color: "primary",
12576
+ fill: false
12577
+ },
12578
+ "path1-2-1": {
12579
+ type: "path",
12580
+ points: [
12581
+ { x: -0.3, y: 0 },
12582
+ { x: -0.25, y: 0.1 },
12583
+ { x: -0.15, y: -0.1 },
12584
+ { x: -0.05, y: 0.1 },
12585
+ { x: 0.05, y: -0.1 },
12586
+ { x: 0.15, y: 0.1 },
12587
+ { x: 0.25, y: -0.1 },
12588
+ { x: 0.3, y: 0 }
12589
+ ],
12590
+ color: "primary",
12591
+ fill: false
12592
+ },
12593
+ path2: {
12594
+ type: "path",
12595
+ points: [
12596
+ { x: 0.3, y: 0 },
12597
+ { x: 0.4, y: 0 }
12598
+ ],
12599
+ color: "primary",
12600
+ fill: false
12601
+ },
12602
+ path3: {
12603
+ type: "path",
12604
+ points: [
12605
+ { x: 0, y: -0.17 },
12606
+ { x: 0, y: -0.4 }
12607
+ ],
12608
+ color: "primary",
12609
+ fill: false
12610
+ },
12611
+ path15: {
12612
+ type: "path",
12613
+ points: [
12614
+ { x: 0, y: -0.12 },
12615
+ {
12616
+ x: 0.05,
12617
+ y: -0.2
12618
+ },
12619
+ {
12620
+ x: -0.05,
12621
+ y: -0.2
12622
+ },
12623
+ { x: 0, y: -0.12 }
12624
+ ],
12625
+ color: "primary",
12626
+ fill: true
12627
+ }
12628
+ },
12629
+ texts: {
12630
+ top1: {
12631
+ type: "text",
12632
+ text: "{REF}",
12633
+ x: 0.3,
12634
+ y: 0.25
12635
+ },
12636
+ bottom1: {
12637
+ type: "text",
12638
+ text: "{VAL}",
12639
+ x: 0.3,
12640
+ y: -0.25
12641
+ }
12642
+ },
12643
+ refblocks: {
12644
+ left: { x: -0.42, y: 0 },
12645
+ right: { x: 0.42, y: 0 },
12646
+ bottom: { x: 0, y: -0.4 }
12647
+ },
12648
+ bounds: {
12649
+ minX: -0.42,
12650
+ maxX: 0.42,
12651
+ minY: -0.2,
12652
+ maxY: 0.2,
12653
+ width: 0.84,
12654
+ height: 0.4,
12655
+ centerX: 0,
12656
+ centerY: 0
12657
+ },
12658
+ circles: {}
12659
+ };
12660
+
12661
+ // symbols/potentiometer3_right.ts
12662
+ var potentiometer3_right_default = modifySymbol(potentiometer3_default).labelPort("left", ["1"]).labelPort("right", ["3"]).labelPort("bottom", ["2"]).changeTextAnchor("{REF}", "middle_bottom").changeTextAnchor("{VAL}", "middle_top").build();
12663
+
12664
+ // symbols/potentiometer3_down.ts
12665
+ var potentiometer3_down_default = rotateSymbol(potentiometer3_right_default, "down");
12666
+
12667
+ // symbols/potentiometer3_left.ts
12668
+ var potentiometer3_left_default = rotateSymbol(potentiometer3_right_default, "left");
12669
+
12670
+ // symbols/potentiometer3_up.ts
12671
+ var potentiometer3_up_default = rotateSymbol(potentiometer3_right_default, "up");
12672
+
12236
12673
  // assets/generated/power_factor_meter.json
12237
12674
  var power_factor_meter_default = {
12238
12675
  paths: {
@@ -16224,6 +16661,10 @@ var symbols_index_default = {
16224
16661
  "ground_vert": ground_vert_default,
16225
16662
  "gunn_diode_horz": gunn_diode_horz_default,
16226
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,
16227
16668
  "igbt_transistor_horz": igbt_transistor_horz_default,
16228
16669
  "igbt_transistor_vert": igbt_transistor_vert_default,
16229
16670
  "illuminated_push_button_normally_open_horz": illuminated_push_button_normally_open_horz_default,
@@ -16274,6 +16715,10 @@ var symbols_index_default = {
16274
16715
  "potentiometer_vert": potentiometer_vert_default,
16275
16716
  "potentiometer2_horz": potentiometer2_horz_default,
16276
16717
  "potentiometer2_vert": potentiometer2_vert_default,
16718
+ "potentiometer3_down": potentiometer3_down_default,
16719
+ "potentiometer3_left": potentiometer3_left_default,
16720
+ "potentiometer3_right": potentiometer3_right_default,
16721
+ "potentiometer3_up": potentiometer3_up_default,
16277
16722
  "power_factor_meter_horz": power_factor_meter_horz_default,
16278
16723
  "power_factor_meter_vert": power_factor_meter_vert_default,
16279
16724
  "push_button_normally_closed_momentary_horz": push_button_normally_closed_momentary_horz_default,