schematic-symbols 0.0.87 → 0.0.89

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.ts CHANGED
@@ -231,11 +231,21 @@ declare const _default: {
231
231
  height: number;
232
232
  };
233
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
+ };
234
244
  zener_diode_horz: undefined;
235
245
  zener_diode_vert: undefined;
236
246
  };
237
247
 
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";
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";
239
249
 
240
250
  /**
241
251
  * Utility for easier autocomplete:
package/dist/index.js CHANGED
@@ -10878,6 +10878,138 @@ var watt_hour_meter_vert_default = {
10878
10878
  primitives: [...rotatedSymbol29.primitives, letter7]
10879
10879
  };
10880
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]
11011
+ };
11012
+
10881
11013
  // assets/generated/zener_diode.json
10882
11014
  var zener_diode_default = {
10883
11015
  paths: {
@@ -11025,22 +11157,22 @@ var zener_diode_default = {
11025
11157
  };
11026
11158
 
11027
11159
  // symbols/zener_diode_horz.ts
11028
- var { paths: paths55, texts: texts76, bounds: bounds55, refblocks: refblocks55, circles: circles44 } = zener_diode_default;
11160
+ var { paths: paths56, texts: texts77, bounds: bounds56, refblocks: refblocks56, circles: circles45 } = zener_diode_default;
11029
11161
  var zener_diode_horz_default = defineSymbol({
11030
11162
  primitives: [
11031
- ...Object.values(paths55),
11032
- ...Object.values(circles44),
11033
- { ...texts76.top1, anchor: "middle_bottom" },
11034
- { ...texts76.bottom1, anchor: "middle_top" }
11163
+ ...Object.values(paths56),
11164
+ ...Object.values(circles45),
11165
+ { ...texts77.top1, anchor: "middle_bottom" },
11166
+ { ...texts77.bottom1, anchor: "middle_top" }
11035
11167
  ],
11036
11168
  ports: [
11037
- { ...refblocks55.left1, labels: ["1"] },
11169
+ { ...refblocks56.left1, labels: ["1"] },
11038
11170
  // TODO add more "standard" labels
11039
- { ...refblocks55.right1, labels: ["2"] }
11171
+ { ...refblocks56.right1, labels: ["2"] }
11040
11172
  // TODO add more "standard" labels
11041
11173
  ],
11042
- size: { width: bounds55.width, height: bounds55.height },
11043
- center: { x: bounds55.centerX, y: bounds55.centerY }
11174
+ size: { width: bounds56.width, height: bounds56.height },
11175
+ center: { x: bounds56.centerX, y: bounds56.centerY }
11044
11176
  });
11045
11177
 
11046
11178
  // symbols/zener_diode_vert.ts
@@ -11165,6 +11297,8 @@ var symbols_index_default = {
11165
11297
  "volt_meter_vert": volt_meter_vert_default,
11166
11298
  "watt_hour_meter_horz": watt_hour_meter_horz_default,
11167
11299
  "watt_hour_meter_vert": watt_hour_meter_vert_default,
11300
+ "wattmeter_horz": wattmeter_horz_default,
11301
+ "wattmeter_vert": wattmeter_vert_default,
11168
11302
  "zener_diode_horz": zener_diode_horz_default,
11169
11303
  "zener_diode_vert": zener_diode_vert_default
11170
11304
  };