schematic-symbols 0.0.127 → 0.0.128

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -273,6 +273,10 @@ declare const _default: {
273
273
  height: number;
274
274
  };
275
275
  };
276
+ tilted_ground_down: undefined;
277
+ tilted_ground_left: undefined;
278
+ tilted_ground_right: undefined;
279
+ tilted_ground_up: undefined;
276
280
  triac_horz: undefined;
277
281
  triac_vert: undefined;
278
282
  tunnel_diode_horz: undefined;
@@ -321,7 +325,7 @@ declare const _default: {
321
325
  zener_diode_vert: undefined;
322
326
  };
323
327
 
324
- type BaseSymbolName = "ac_voltmeter" | "avalanche_diode" | "backward_diode" | "battery" | "boxresistor" | "capacitor" | "capacitor_polarized" | "constant_current_diode" | "crystal_4pin" | "crystal" | "darlington_pair_transistor" | "dc_ammeter" | "dc_voltmeter" | "diac" | "diode" | "dpdt_normally_closed_switch" | "dpdt_switch" | "dpst_normally_closed_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_normally_closed_switch" | "spst_switch" | "spst_normally_closed_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";
328
+ type BaseSymbolName = "ac_voltmeter" | "avalanche_diode" | "backward_diode" | "battery" | "boxresistor" | "capacitor" | "capacitor_polarized" | "constant_current_diode" | "crystal_4pin" | "crystal" | "darlington_pair_transistor" | "dc_ammeter" | "dc_voltmeter" | "diac" | "diode" | "dpdt_normally_closed_switch" | "dpdt_switch" | "dpst_normally_closed_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_normally_closed_switch" | "spdt_switch" | "spst_normally_closed_switch" | "spst_switch" | "step_recovery_diode" | "tachometer" | "tilted_ground" | "triac" | "tunnel_diode" | "unijunction_transistor" | "var_meter" | "varactor_diode" | "varistor" | "varmeter" | "volt_meter" | "watt_hour_meter" | "wattmeter" | "zener_diode";
325
329
 
326
330
  /**
327
331
  * Utility for easier autocomplete:
package/dist/index.js CHANGED
@@ -16159,6 +16159,169 @@ var tachometer_vert_default = {
16159
16159
  primitives: [...rotatedSymbol20.primitives, letter4]
16160
16160
  };
16161
16161
 
16162
+ // assets/generated/tilted_ground.json
16163
+ var tilted_ground_default = {
16164
+ paths: {
16165
+ path40: {
16166
+ type: "path",
16167
+ points: [
16168
+ {
16169
+ x: 0.4445889,
16170
+ y: 0.04403629999999836
16171
+ },
16172
+ {
16173
+ x: 0.1899943999999995,
16174
+ y: -0.08825540000000132
16175
+ }
16176
+ ],
16177
+ color: "primary",
16178
+ fill: false
16179
+ },
16180
+ path41: {
16181
+ type: "path",
16182
+ points: [
16183
+ {
16184
+ x: 0.1899943999999995,
16185
+ y: 0.1763280000000016
16186
+ },
16187
+ {
16188
+ x: 0.4445889,
16189
+ y: 0.04403629999999836
16190
+ }
16191
+ ],
16192
+ color: "primary",
16193
+ fill: false
16194
+ },
16195
+ path42: {
16196
+ type: "path",
16197
+ points: [
16198
+ {
16199
+ x: 0.1899943999999995,
16200
+ y: -0.08825539999999776
16201
+ },
16202
+ {
16203
+ x: 0.1899943999999995,
16204
+ y: 0.1763280000000016
16205
+ }
16206
+ ],
16207
+ color: "primary",
16208
+ fill: false
16209
+ },
16210
+ path44: {
16211
+ type: "path",
16212
+ points: [
16213
+ {
16214
+ x: 0.1899943999999995,
16215
+ y: 0.04403629999999836
16216
+ },
16217
+ {
16218
+ x: -0.108693999999996,
16219
+ y: 0.04403629999999836
16220
+ }
16221
+ ],
16222
+ color: "primary",
16223
+ fill: false
16224
+ },
16225
+ path45: {
16226
+ type: "path",
16227
+ points: [
16228
+ {
16229
+ x: -0.4021990999999996,
16230
+ y: 0.20403629999999837
16231
+ },
16232
+ {
16233
+ x: -0.108693999999996,
16234
+ y: 0.04403629999999836
16235
+ }
16236
+ ],
16237
+ color: "primary",
16238
+ fill: false
16239
+ }
16240
+ },
16241
+ texts: {
16242
+ top1: {
16243
+ type: "text",
16244
+ text: "{REF}",
16245
+ x: -0.0050250999999996715,
16246
+ y: 0.27384529999999785
16247
+ },
16248
+ bottom1: {
16249
+ type: "text",
16250
+ text: "{VAL}",
16251
+ x: -11179999999999524e-20,
16252
+ y: -0.2738453000000014
16253
+ }
16254
+ },
16255
+ refblocks: {
16256
+ right1: {
16257
+ x: -0.4259909999999956,
16258
+ y: 0.2173629999999836
16259
+ }
16260
+ },
16261
+ bounds: {
16262
+ minX: -0.5473055410000001,
16263
+ maxX: 0.5473055410000001,
16264
+ minY: -0.2738453000000014,
16265
+ maxY: 0.27384529999999785,
16266
+ width: 1.0946110820000001,
16267
+ height: 0.5476905999999993,
16268
+ centerX: 0,
16269
+ centerY: -17763568394002505e-31
16270
+ },
16271
+ circles: {}
16272
+ };
16273
+
16274
+ // symbols/tilted_ground_right.ts
16275
+ var tilted_ground_right_default = modifySymbol(tilted_ground_default).labelPort("right1", ["1"]).changeTextAnchor("{REF}", "middle_bottom").changeTextAnchor("{VAL}", "middle_top").build();
16276
+
16277
+ // symbols/tilted_ground_up.ts
16278
+ var rotated34 = rotateSymbol(tilted_ground_right_default, "up");
16279
+ var ref47 = rotated34.primitives.find(
16280
+ (p) => p.type === "text" && p.text === "{REF}"
16281
+ );
16282
+ var val42 = rotated34.primitives.find(
16283
+ (p) => p.type === "text" && p.text === "{VAL}"
16284
+ );
16285
+ ref47.anchor = "middle_bottom";
16286
+ val42.anchor = "middle_top";
16287
+ ref47.x = 0.4;
16288
+ ref47.y += 0.2;
16289
+ val42.y -= 0.3;
16290
+ val42.x = 0.4;
16291
+ var tilted_ground_up_default = rotated34;
16292
+
16293
+ // symbols/tilted_ground_down.ts
16294
+ var rotated35 = flipSymbolOverXAxis(tilted_ground_up_default);
16295
+ var ref48 = rotated35.primitives.find(
16296
+ (p) => p.type === "text" && p.text === "{REF}"
16297
+ );
16298
+ var val43 = rotated35.primitives.find(
16299
+ (p) => p.type === "text" && p.text === "{VAL}"
16300
+ );
16301
+ ref48.anchor = "middle_bottom";
16302
+ val43.anchor = "middle_top";
16303
+ ref48.x = 0.35;
16304
+ ref48.y += 0.4;
16305
+ val43.y -= 0.4;
16306
+ val43.x = 0.35;
16307
+ var tilted_ground_down_default = rotated35;
16308
+
16309
+ // symbols/tilted_ground_left.ts
16310
+ var rotated36 = rotateSymbol(tilted_ground_right_default, "left");
16311
+ var ref49 = rotated36.primitives.find(
16312
+ (p) => p.type === "text" && p.text === "{REF}"
16313
+ );
16314
+ var val44 = rotated36.primitives.find(
16315
+ (p) => p.type === "text" && p.text === "{VAL}"
16316
+ );
16317
+ ref49.anchor = "middle_bottom";
16318
+ val44.anchor = "middle_top";
16319
+ ref49.x = 0;
16320
+ ref49.y += 0.5;
16321
+ val44.y -= 0.6;
16322
+ val44.x = 0;
16323
+ var tilted_ground_left_default = rotated36;
16324
+
16162
16325
  // assets/generated/triac.json
16163
16326
  var triac_default = {
16164
16327
  paths: {
@@ -16358,10 +16521,10 @@ var rotatedSymbol21 = rotateSymbol(triac_horz_default);
16358
16521
  var texts59 = rotatedSymbol21.primitives.filter(
16359
16522
  (primitive) => primitive.type === "text"
16360
16523
  );
16361
- var ref47 = texts59.find((text) => text.text === "{REF}");
16362
- var val42 = texts59.find((text) => text.text === "{VAL}");
16363
- ref47.y = 0;
16364
- val42.y = 0;
16524
+ var ref50 = texts59.find((text) => text.text === "{REF}");
16525
+ var val45 = texts59.find((text) => text.text === "{VAL}");
16526
+ ref50.y = 0;
16527
+ val45.y = 0;
16365
16528
  var triac_vert_default = rotatedSymbol21;
16366
16529
 
16367
16530
  // assets/generated/tunnel_diode.json
@@ -16545,16 +16708,16 @@ var tunnel_diode_horz_default = defineSymbol({
16545
16708
  });
16546
16709
 
16547
16710
  // symbols/tunnel_diode_vert.ts
16548
- var rotated34 = rotateSymbol(tunnel_diode_horz_default);
16549
- var ref48 = rotated34.primitives.find(
16711
+ var rotated37 = rotateSymbol(tunnel_diode_horz_default);
16712
+ var ref51 = rotated37.primitives.find(
16550
16713
  (p) => p.type === "text" && p.text === "{REF}"
16551
16714
  );
16552
- var val43 = rotated34.primitives.find(
16715
+ var val46 = rotated37.primitives.find(
16553
16716
  (p) => p.type === "text" && p.text === "{VAL}"
16554
16717
  );
16555
- ref48.anchor = "middle_left";
16556
- val43.anchor = "middle_right";
16557
- var tunnel_diode_vert_default = rotated34;
16718
+ ref51.anchor = "middle_left";
16719
+ val46.anchor = "middle_right";
16720
+ var tunnel_diode_vert_default = rotated37;
16558
16721
 
16559
16722
  // assets/generated/unijunction_transistor.json
16560
16723
  var unijunction_transistor_default = {
@@ -16749,11 +16912,11 @@ var rotatedSymbol22 = rotateSymbol(unijunction_transistor_horz_default);
16749
16912
  var texts62 = rotatedSymbol22.primitives.filter(
16750
16913
  (primitive) => primitive.type === "text"
16751
16914
  );
16752
- var ref49 = texts62.find((text) => text.text === "{REF}");
16753
- ref49.y = 0.1;
16754
- var val44 = texts62.find((text) => text.text === "{VAL}");
16755
- val44.y = 0.1;
16756
- val44.x = -0.4;
16915
+ var ref52 = texts62.find((text) => text.text === "{REF}");
16916
+ ref52.y = 0.1;
16917
+ var val47 = texts62.find((text) => text.text === "{VAL}");
16918
+ val47.y = 0.1;
16919
+ val47.x = -0.4;
16757
16920
  var unijunction_transistor_vert_default = rotatedSymbol22;
16758
16921
 
16759
16922
  // assets/generated/var_meter.json
@@ -17041,16 +17204,16 @@ var varactor_diode_horz_default = defineSymbol({
17041
17204
  });
17042
17205
 
17043
17206
  // symbols/varactor_diode_vert.ts
17044
- var rotated35 = rotateSymbol(varactor_diode_horz_default);
17045
- var ref50 = rotated35.primitives.find(
17207
+ var rotated38 = rotateSymbol(varactor_diode_horz_default);
17208
+ var ref53 = rotated38.primitives.find(
17046
17209
  (p) => p.type === "text" && p.text === "{REF}"
17047
17210
  );
17048
- var val45 = rotated35.primitives.find(
17211
+ var val48 = rotated38.primitives.find(
17049
17212
  (p) => p.type === "text" && p.text === "{VAL}"
17050
17213
  );
17051
- ref50.anchor = "middle_left";
17052
- val45.anchor = "middle_right";
17053
- var varactor_diode_vert_default = rotated35;
17214
+ ref53.anchor = "middle_left";
17215
+ val48.anchor = "middle_right";
17216
+ var varactor_diode_vert_default = rotated38;
17054
17217
 
17055
17218
  // assets/generated/varistor.json
17056
17219
  var varistor_default = {
@@ -17878,16 +18041,16 @@ var zener_diode_horz_default = defineSymbol({
17878
18041
  });
17879
18042
 
17880
18043
  // symbols/zener_diode_vert.ts
17881
- var rotated36 = rotateSymbol(zener_diode_horz_default);
17882
- var ref51 = rotated36.primitives.find(
18044
+ var rotated39 = rotateSymbol(zener_diode_horz_default);
18045
+ var ref54 = rotated39.primitives.find(
17883
18046
  (p) => p.type === "text" && p.text === "{REF}"
17884
18047
  );
17885
- var val46 = rotated36.primitives.find(
18048
+ var val49 = rotated39.primitives.find(
17886
18049
  (p) => p.type === "text" && p.text === "{VAL}"
17887
18050
  );
17888
- ref51.anchor = "middle_left";
17889
- val46.anchor = "middle_right";
17890
- var zener_diode_vert_default = rotated36;
18051
+ ref54.anchor = "middle_left";
18052
+ val49.anchor = "middle_right";
18053
+ var zener_diode_vert_default = rotated39;
17891
18054
 
17892
18055
  // generated/symbols-index.ts
17893
18056
  var symbols_index_default = {
@@ -18049,6 +18212,10 @@ var symbols_index_default = {
18049
18212
  "step_recovery_diode_vert": step_recovery_diode_vert_default,
18050
18213
  "tachometer_horz": tachometer_horz_default,
18051
18214
  "tachometer_vert": tachometer_vert_default,
18215
+ "tilted_ground_down": tilted_ground_down_default,
18216
+ "tilted_ground_left": tilted_ground_left_default,
18217
+ "tilted_ground_right": tilted_ground_right_default,
18218
+ "tilted_ground_up": tilted_ground_up_default,
18052
18219
  "triac_horz": triac_horz_default,
18053
18220
  "triac_vert": triac_vert_default,
18054
18221
  "tunnel_diode_horz": tunnel_diode_horz_default,