schematic-symbols 0.0.46 → 0.0.47

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
@@ -131,6 +131,8 @@ declare const _default: {
131
131
  triac_vert: undefined;
132
132
  tunnel_diode_horz: undefined;
133
133
  tunnel_diode_vert: undefined;
134
+ var_meter_horz: undefined;
135
+ var_meter_vert: undefined;
134
136
  varactor_diode_horz: undefined;
135
137
  varactor_diode_vert: undefined;
136
138
  varistor_horz: undefined;
@@ -141,7 +143,7 @@ declare const _default: {
141
143
  zener_diode_vert: undefined;
142
144
  };
143
145
 
144
- type BaseSymbolName = "ac_voltmeter | avalanche_diode | boxresistor | capacitor | dc_ammeter | dc_voltmeter | diode | fuse | led | mosfet_depletion_normally_on | photodiode | potentiometer | potentiometer2 | power_factor_meter | push_button_normally_closed_momentary | push_button_normally_open_momentary | schottky_diode | silicon_controlled_rectifier | triac | tunnel_diode | varactor_diode | varistor | volt_meter | zener_diode";
146
+ type BaseSymbolName = "ac_voltmeter | avalanche_diode | boxresistor | capacitor | dc_ammeter | dc_voltmeter | diode | fuse | led | mosfet_depletion_normally_on | photodiode | potentiometer | potentiometer2 | power_factor_meter | push_button_normally_closed_momentary | push_button_normally_open_momentary | schottky_diode | silicon_controlled_rectifier | triac | tunnel_diode | var_meter | varactor_diode | varistor | volt_meter | zener_diode";
145
147
 
146
148
  /**
147
149
  * Utility for easier autocomplete:
package/dist/index.js CHANGED
@@ -3673,6 +3673,125 @@ ref11.anchor = "middle_left";
3673
3673
  val9.anchor = "middle_right";
3674
3674
  var tunnel_diode_vert_default = rotated8;
3675
3675
 
3676
+ // assets/generated/var_meter.json
3677
+ var var_meter_default = {
3678
+ paths: {
3679
+ path11: {
3680
+ type: "path",
3681
+ points: [
3682
+ {
3683
+ x: -0.5307178,
3684
+ y: 0
3685
+ },
3686
+ {
3687
+ x: -0.3042887999999997,
3688
+ y: 0
3689
+ }
3690
+ ],
3691
+ color: "primary",
3692
+ fill: false
3693
+ },
3694
+ path12: {
3695
+ type: "path",
3696
+ points: [
3697
+ {
3698
+ x: 0.2899773000000003,
3699
+ y: 0
3700
+ },
3701
+ {
3702
+ x: 0.5307178000000001,
3703
+ y: 0
3704
+ }
3705
+ ],
3706
+ color: "primary",
3707
+ fill: false
3708
+ }
3709
+ },
3710
+ texts: {
3711
+ top1: {
3712
+ type: "text",
3713
+ text: "{REF}",
3714
+ x: -0.17652089999999898,
3715
+ y: -0.36197569999999946
3716
+ },
3717
+ bottom1: {
3718
+ type: "text",
3719
+ text: "{VAL}",
3720
+ x: -0.009849199999999891,
3721
+ y: 0.43234960000000044
3722
+ },
3723
+ left1: {
3724
+ type: "text",
3725
+ text: "Var",
3726
+ x: -0.19436529999999896,
3727
+ y: 0.07249430000000023
3728
+ }
3729
+ },
3730
+ refblocks: {
3731
+ left1: {
3732
+ x: -0.5446330999999993,
3733
+ y: 852800000000542e-18
3734
+ },
3735
+ right1: {
3736
+ x: 0.5381638000000004,
3737
+ y: -14359999999924433e-20
3738
+ }
3739
+ },
3740
+ bounds: {
3741
+ minX: -0.5307178,
3742
+ maxX: 0.5307178000000001,
3743
+ minY: 0,
3744
+ maxY: 0,
3745
+ width: 1.0614356000000003,
3746
+ height: 1,
3747
+ centerX: 5551115123125783e-32,
3748
+ centerY: 0
3749
+ },
3750
+ circles: {
3751
+ path1: {
3752
+ type: "circle",
3753
+ x: -0.006997299999999651,
3754
+ y: -0.007128299999999532,
3755
+ radius: 0.28854213,
3756
+ color: "primary",
3757
+ fill: false
3758
+ }
3759
+ }
3760
+ };
3761
+
3762
+ // symbols/var_meter_horz.ts
3763
+ var { paths: paths21, texts: texts24, bounds: bounds21, refblocks: refblocks21, circles: circles11 } = var_meter_default;
3764
+ var var_meter_horz_default = defineSymbol({
3765
+ primitives: [
3766
+ ...Object.values(paths21),
3767
+ ...Object.values(circles11),
3768
+ {
3769
+ ...texts24.top1,
3770
+ x: 0,
3771
+ y: -0.3594553499999995,
3772
+ anchor: "middle_bottom"
3773
+ },
3774
+ {
3775
+ ...texts24.bottom1,
3776
+ x: 0,
3777
+ y: 0.35,
3778
+ anchor: "middle_top"
3779
+ },
3780
+ { ...texts24.left1, x: -0.02, y: -0.02, fontSize: 0.2, anchor: "center" }
3781
+ ],
3782
+ ports: [
3783
+ { ...refblocks21.left1, labels: ["1"] },
3784
+ // TODO add more "standard" labels
3785
+ { ...refblocks21.right1, labels: ["2"] }
3786
+ // TODO add more "standard" labels
3787
+ ],
3788
+ size: { width: bounds21.width, height: bounds21.height },
3789
+ center: { x: bounds21.centerX, y: bounds21.centerY }
3790
+ });
3791
+
3792
+ // symbols/var_meter_vert.ts
3793
+ var var_meter_vert_default = rotateSymbol(var_meter_horz_default);
3794
+
3676
3795
  // assets/generated/varactor_diode.json
3677
3796
  var varactor_diode_default = {
3678
3797
  paths: {
@@ -3820,22 +3939,22 @@ var varactor_diode_default = {
3820
3939
  };
3821
3940
 
3822
3941
  // symbols/varactor_diode_horz.ts
3823
- var { paths: paths21, texts: texts24, bounds: bounds21, refblocks: refblocks21, circles: circles11 } = varactor_diode_default;
3942
+ var { paths: paths22, texts: texts25, bounds: bounds22, refblocks: refblocks22, circles: circles12 } = varactor_diode_default;
3824
3943
  var varactor_diode_horz_default = defineSymbol({
3825
3944
  primitives: [
3826
- ...Object.values(paths21),
3827
- ...Object.values(circles11),
3828
- { ...texts24.top1, anchor: "middle_bottom" },
3829
- { ...texts24.bottom1, anchor: "middle_top" }
3945
+ ...Object.values(paths22),
3946
+ ...Object.values(circles12),
3947
+ { ...texts25.top1, anchor: "middle_bottom" },
3948
+ { ...texts25.bottom1, anchor: "middle_top" }
3830
3949
  ],
3831
3950
  ports: [
3832
- { ...refblocks21.left1, labels: ["1"] },
3951
+ { ...refblocks22.left1, labels: ["1"] },
3833
3952
  // TODO add more "standard" labels
3834
- { ...refblocks21.right1, labels: ["2"] }
3953
+ { ...refblocks22.right1, labels: ["2"] }
3835
3954
  // TODO add more "standard" labels
3836
3955
  ],
3837
- size: { width: bounds21.width, height: bounds21.height },
3838
- center: { x: bounds21.centerX, y: bounds21.centerY }
3956
+ size: { width: bounds22.width, height: bounds22.height },
3957
+ center: { x: bounds22.centerX, y: bounds22.centerY }
3839
3958
  });
3840
3959
 
3841
3960
  // symbols/varactor_diode_vert.ts
@@ -3982,26 +4101,26 @@ var varistor_default = {
3982
4101
  };
3983
4102
 
3984
4103
  // symbols/varistor_horz.ts
3985
- var { paths: paths22, texts: texts25, bounds: bounds22, refblocks: refblocks22 } = varistor_default;
4104
+ var { paths: paths23, texts: texts26, bounds: bounds23, refblocks: refblocks23 } = varistor_default;
3986
4105
  var varistor_horz_default = defineSymbol({
3987
4106
  primitives: [
3988
- ...Object.values(paths22),
3989
- { ...texts25.top1, anchor: "middle_left" },
3990
- { ...texts25.bottom1, anchor: "middle_right" }
4107
+ ...Object.values(paths23),
4108
+ { ...texts26.top1, anchor: "middle_left" },
4109
+ { ...texts26.bottom1, anchor: "middle_right" }
3991
4110
  ],
3992
4111
  ports: [
3993
4112
  {
3994
- ...refblocks22.left1,
4113
+ ...refblocks23.left1,
3995
4114
  labels: ["1", "-"]
3996
4115
  },
3997
4116
  {
3998
- ...refblocks22.right1,
4117
+ ...refblocks23.right1,
3999
4118
  labels: ["2", "+"]
4000
4119
  }
4001
4120
  ],
4002
- size: { width: bounds22.width, height: bounds22.height },
4121
+ size: { width: bounds23.width, height: bounds23.height },
4003
4122
  //{ width: 1, height: 0.24 },
4004
- center: { x: bounds22.centerX, y: bounds22.centerY }
4123
+ center: { x: bounds23.centerX, y: bounds23.centerY }
4005
4124
  });
4006
4125
 
4007
4126
  // symbols/varistor_vert.ts
@@ -4107,11 +4226,11 @@ var volt_meter_default = {
4107
4226
  };
4108
4227
 
4109
4228
  // symbols/volt_meter_horz.ts
4110
- var { paths: paths23, texts: texts26, bounds: bounds23, circles: circles12, refblocks: refblocks23 } = volt_meter_default;
4229
+ var { paths: paths24, texts: texts27, bounds: bounds24, circles: circles13, refblocks: refblocks24 } = volt_meter_default;
4111
4230
  var volt_meter_horz_default = defineSymbol({
4112
4231
  primitives: [
4113
- ...Object.values(paths23),
4114
- ...Object.values(circles12),
4232
+ ...Object.values(paths24),
4233
+ ...Object.values(circles13),
4115
4234
  {
4116
4235
  type: "text",
4117
4236
  text: "{REF}",
@@ -4128,13 +4247,13 @@ var volt_meter_horz_default = defineSymbol({
4128
4247
  }
4129
4248
  ],
4130
4249
  ports: [
4131
- { ...refblocks23.left1, labels: ["1"] },
4250
+ { ...refblocks24.left1, labels: ["1"] },
4132
4251
  // TODO add more "standard" labels
4133
- { ...refblocks23.right1, labels: ["2"] }
4252
+ { ...refblocks24.right1, labels: ["2"] }
4134
4253
  // TODO add more "standard" labels
4135
4254
  ],
4136
- size: { width: bounds23.width, height: bounds23.height },
4137
- center: { x: bounds23.centerX, y: bounds23.centerY }
4255
+ size: { width: bounds24.width, height: bounds24.height },
4256
+ center: { x: bounds24.centerX, y: bounds24.centerY }
4138
4257
  });
4139
4258
 
4140
4259
  // symbols/volt_meter_vert.ts
@@ -4287,22 +4406,22 @@ var zener_diode_default = {
4287
4406
  };
4288
4407
 
4289
4408
  // symbols/zener_diode_horz.ts
4290
- var { paths: paths24, texts: texts27, bounds: bounds24, refblocks: refblocks24, circles: circles13 } = zener_diode_default;
4409
+ var { paths: paths25, texts: texts28, bounds: bounds25, refblocks: refblocks25, circles: circles14 } = zener_diode_default;
4291
4410
  var zener_diode_horz_default = defineSymbol({
4292
4411
  primitives: [
4293
- ...Object.values(paths24),
4294
- ...Object.values(circles13),
4295
- { ...texts27.top1, anchor: "middle_bottom" },
4296
- { ...texts27.bottom1, anchor: "middle_top" }
4412
+ ...Object.values(paths25),
4413
+ ...Object.values(circles14),
4414
+ { ...texts28.top1, anchor: "middle_bottom" },
4415
+ { ...texts28.bottom1, anchor: "middle_top" }
4297
4416
  ],
4298
4417
  ports: [
4299
- { ...refblocks24.left1, labels: ["1"] },
4418
+ { ...refblocks25.left1, labels: ["1"] },
4300
4419
  // TODO add more "standard" labels
4301
- { ...refblocks24.right1, labels: ["2"] }
4420
+ { ...refblocks25.right1, labels: ["2"] }
4302
4421
  // TODO add more "standard" labels
4303
4422
  ],
4304
- size: { width: bounds24.width, height: bounds24.height },
4305
- center: { x: bounds24.centerX, y: bounds24.centerY }
4423
+ size: { width: bounds25.width, height: bounds25.height },
4424
+ center: { x: bounds25.centerX, y: bounds25.centerY }
4306
4425
  });
4307
4426
 
4308
4427
  // symbols/zener_diode_vert.ts
@@ -4359,6 +4478,8 @@ var symbols_index_default = {
4359
4478
  "triac_vert": triac_vert_default,
4360
4479
  "tunnel_diode_horz": tunnel_diode_horz_default,
4361
4480
  "tunnel_diode_vert": tunnel_diode_vert_default,
4481
+ "var_meter_horz": var_meter_horz_default,
4482
+ "var_meter_vert": var_meter_vert_default,
4362
4483
  "varactor_diode_horz": varactor_diode_horz_default,
4363
4484
  "varactor_diode_vert": varactor_diode_vert_default,
4364
4485
  "varistor_horz": varistor_horz_default,