schematic-symbols 0.0.44 → 0.0.45

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
@@ -125,6 +125,8 @@ declare const _default: {
125
125
  push_button_normally_open_momentary_vert: undefined;
126
126
  schottky_diode_horz: undefined;
127
127
  schottky_diode_vert: undefined;
128
+ silicon_controlled_rectifier_horz: undefined;
129
+ silicon_controlled_rectifier_vert: undefined;
128
130
  tunnel_diode_horz: undefined;
129
131
  tunnel_diode_vert: undefined;
130
132
  varactor_diode_horz: undefined;
@@ -137,7 +139,7 @@ declare const _default: {
137
139
  zener_diode_vert: undefined;
138
140
  };
139
141
 
140
- 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 | tunnel_diode | varactor_diode | varistor | volt_meter | zener_diode";
142
+ 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 | tunnel_diode | varactor_diode | varistor | volt_meter | zener_diode";
141
143
 
142
144
  /**
143
145
  * Utility for easier autocomplete:
package/dist/index.js CHANGED
@@ -3085,6 +3085,180 @@ ref8.anchor = "middle_left";
3085
3085
  val7.anchor = "middle_right";
3086
3086
  var schottky_diode_vert_default = rotated7;
3087
3087
 
3088
+ // assets/generated/silicon_controlled_rectifier.json
3089
+ var silicon_controlled_rectifier_default = {
3090
+ paths: {
3091
+ path11: {
3092
+ type: "path",
3093
+ points: [
3094
+ {
3095
+ x: -0.5026467500000003,
3096
+ y: -0.07301339999999956
3097
+ },
3098
+ {
3099
+ x: -0.18113355000000042,
3100
+ y: -0.07301339999999956
3101
+ }
3102
+ ],
3103
+ color: "primary",
3104
+ fill: false
3105
+ },
3106
+ path12: {
3107
+ type: "path",
3108
+ points: [
3109
+ {
3110
+ x: 0.18335604999999977,
3111
+ y: -0.08088269999999964
3112
+ },
3113
+ {
3114
+ x: 0.5026467500000005,
3115
+ y: -0.08088269999999964
3116
+ }
3117
+ ],
3118
+ color: "primary",
3119
+ fill: false
3120
+ },
3121
+ "path12-6": {
3122
+ type: "path",
3123
+ points: [
3124
+ {
3125
+ x: 0.17850255000000104,
3126
+ y: 0.12073280000000008
3127
+ },
3128
+ {
3129
+ x: 0.17739655000000099,
3130
+ y: -0.2824842000000001
3131
+ }
3132
+ ],
3133
+ color: "primary",
3134
+ fill: false
3135
+ },
3136
+ "path12-2": {
3137
+ type: "path",
3138
+ points: [
3139
+ {
3140
+ x: 0.18277155000000045,
3141
+ y: -0.0360551999999994
3142
+ },
3143
+ {
3144
+ x: 0.34233075000000013,
3145
+ y: 0.10412470000000029
3146
+ }
3147
+ ],
3148
+ color: "primary",
3149
+ fill: false
3150
+ },
3151
+ "path12-2-9": {
3152
+ type: "path",
3153
+ points: [
3154
+ {
3155
+ x: 0.3426967499999998,
3156
+ y: 0.10950500000000041
3157
+ },
3158
+ {
3159
+ x: 0.34103675,
3160
+ y: 0.3030752000000003
3161
+ }
3162
+ ],
3163
+ color: "primary",
3164
+ fill: false
3165
+ },
3166
+ "path11-0-9": {
3167
+ type: "path",
3168
+ points: [
3169
+ {
3170
+ x: -0.17385475000000028,
3171
+ y: -0.30194379999999965
3172
+ },
3173
+ {
3174
+ x: -0.17592174999999988,
3175
+ y: 0.12074010000000013
3176
+ },
3177
+ {
3178
+ x: 0.1766704499999996,
3179
+ y: -0.07887709999999992
3180
+ },
3181
+ {
3182
+ x: -0.1699402499999998,
3183
+ y: -0.3030752000000003
3184
+ }
3185
+ ],
3186
+ color: "primary",
3187
+ fill: true
3188
+ }
3189
+ },
3190
+ texts: {
3191
+ top1: {
3192
+ type: "text",
3193
+ text: "{REF}",
3194
+ x: -0.22681734999999947,
3195
+ y: -0.41400399999999893
3196
+ },
3197
+ bottom1: {
3198
+ type: "text",
3199
+ text: "{VAL}",
3200
+ x: 0.026417550000000123,
3201
+ y: 0.3514669000000008
3202
+ }
3203
+ },
3204
+ refblocks: {
3205
+ left1: {
3206
+ x: -0.5214821499999992,
3207
+ y: -0.07216059999999902
3208
+ },
3209
+ right1: {
3210
+ x: 0.5140987500000003,
3211
+ y: -0.08102629999999889
3212
+ },
3213
+ right2: {
3214
+ x: 0.34089075000000046,
3215
+ y: 0.3182699000000011
3216
+ }
3217
+ },
3218
+ bounds: {
3219
+ minX: -0.5026467500000003,
3220
+ maxX: 0.5026467500000005,
3221
+ minY: -0.3030752000000003,
3222
+ maxY: 0.3030752000000003,
3223
+ width: 1.0052935000000007,
3224
+ height: 1,
3225
+ centerX: 11102230246251565e-32,
3226
+ centerY: 0
3227
+ },
3228
+ circles: {}
3229
+ };
3230
+
3231
+ // symbols/silicon_controlled_rectifier_horz.ts
3232
+ var { paths: paths18, texts: texts19, bounds: bounds18, refblocks: refblocks18, circles: circles8 } = silicon_controlled_rectifier_default;
3233
+ var silicon_controlled_rectifier_horz_default = defineSymbol({
3234
+ primitives: [
3235
+ ...Object.values(paths18),
3236
+ ...Object.values(circles8),
3237
+ { ...texts19.top1, anchor: "middle_left" },
3238
+ { ...texts19.bottom1, anchor: "middle_top" }
3239
+ ],
3240
+ ports: [
3241
+ { ...refblocks18.left1, labels: ["1"] },
3242
+ // TODO add more "standard" labels
3243
+ { ...refblocks18.right1, labels: ["2"] },
3244
+ // TODO add more "standard" labels
3245
+ { ...refblocks18.right2, labels: ["3"] }
3246
+ // TODO add more "standard" labels
3247
+ ],
3248
+ size: { width: bounds18.width, height: bounds18.height },
3249
+ center: { x: bounds18.centerX, y: bounds18.centerY }
3250
+ });
3251
+
3252
+ // symbols/silicon_controlled_rectifier_vert.ts
3253
+ var rotatedSymbol6 = rotateSymbol(silicon_controlled_rectifier_horz_default);
3254
+ var texts20 = rotatedSymbol6.primitives.filter(
3255
+ (primitive) => primitive.type === "text"
3256
+ );
3257
+ var ref9 = texts20.find((text) => text.text === "{REF}");
3258
+ ref9.y = 0;
3259
+ ref9.anchor = "middle_left";
3260
+ var silicon_controlled_rectifier_vert_default = rotatedSymbol6;
3261
+
3088
3262
  // assets/generated/tunnel_diode.json
3089
3263
  var tunnel_diode_default = {
3090
3264
  paths: {
@@ -3247,33 +3421,33 @@ var tunnel_diode_default = {
3247
3421
  };
3248
3422
 
3249
3423
  // symbols/tunnel_diode_horz.ts
3250
- var { paths: paths18, texts: texts19, bounds: bounds18, refblocks: refblocks18, circles: circles8 } = tunnel_diode_default;
3424
+ var { paths: paths19, texts: texts21, bounds: bounds19, refblocks: refblocks19, circles: circles9 } = tunnel_diode_default;
3251
3425
  var tunnel_diode_horz_default = defineSymbol({
3252
3426
  primitives: [
3253
- ...Object.values(paths18),
3254
- ...Object.values(circles8),
3255
- { ...texts19.top1, anchor: "middle_bottom" },
3256
- { ...texts19.bottom1, anchor: "middle_top" }
3427
+ ...Object.values(paths19),
3428
+ ...Object.values(circles9),
3429
+ { ...texts21.top1, anchor: "middle_bottom" },
3430
+ { ...texts21.bottom1, anchor: "middle_top" }
3257
3431
  ],
3258
3432
  ports: [
3259
- { ...refblocks18.left1, labels: ["1"] },
3433
+ { ...refblocks19.left1, labels: ["1"] },
3260
3434
  // TODO add more "standard" labels
3261
- { ...refblocks18.right1, labels: ["2"] }
3435
+ { ...refblocks19.right1, labels: ["2"] }
3262
3436
  // TODO add more "standard" labels
3263
3437
  ],
3264
- size: { width: bounds18.width, height: bounds18.height },
3265
- center: { x: bounds18.centerX, y: bounds18.centerY }
3438
+ size: { width: bounds19.width, height: bounds19.height },
3439
+ center: { x: bounds19.centerX, y: bounds19.centerY }
3266
3440
  });
3267
3441
 
3268
3442
  // symbols/tunnel_diode_vert.ts
3269
3443
  var rotated8 = rotateSymbol(tunnel_diode_horz_default);
3270
- var ref9 = rotated8.primitives.find(
3444
+ var ref10 = rotated8.primitives.find(
3271
3445
  (p) => p.type === "text" && p.text === "{REF}"
3272
3446
  );
3273
3447
  var val8 = rotated8.primitives.find(
3274
3448
  (p) => p.type === "text" && p.text === "{VAL}"
3275
3449
  );
3276
- ref9.anchor = "middle_left";
3450
+ ref10.anchor = "middle_left";
3277
3451
  val8.anchor = "middle_right";
3278
3452
  var tunnel_diode_vert_default = rotated8;
3279
3453
 
@@ -3424,33 +3598,33 @@ var varactor_diode_default = {
3424
3598
  };
3425
3599
 
3426
3600
  // symbols/varactor_diode_horz.ts
3427
- var { paths: paths19, texts: texts20, bounds: bounds19, refblocks: refblocks19, circles: circles9 } = varactor_diode_default;
3601
+ var { paths: paths20, texts: texts22, bounds: bounds20, refblocks: refblocks20, circles: circles10 } = varactor_diode_default;
3428
3602
  var varactor_diode_horz_default = defineSymbol({
3429
3603
  primitives: [
3430
- ...Object.values(paths19),
3431
- ...Object.values(circles9),
3432
- { ...texts20.top1, anchor: "middle_bottom" },
3433
- { ...texts20.bottom1, anchor: "middle_top" }
3604
+ ...Object.values(paths20),
3605
+ ...Object.values(circles10),
3606
+ { ...texts22.top1, anchor: "middle_bottom" },
3607
+ { ...texts22.bottom1, anchor: "middle_top" }
3434
3608
  ],
3435
3609
  ports: [
3436
- { ...refblocks19.left1, labels: ["1"] },
3610
+ { ...refblocks20.left1, labels: ["1"] },
3437
3611
  // TODO add more "standard" labels
3438
- { ...refblocks19.right1, labels: ["2"] }
3612
+ { ...refblocks20.right1, labels: ["2"] }
3439
3613
  // TODO add more "standard" labels
3440
3614
  ],
3441
- size: { width: bounds19.width, height: bounds19.height },
3442
- center: { x: bounds19.centerX, y: bounds19.centerY }
3615
+ size: { width: bounds20.width, height: bounds20.height },
3616
+ center: { x: bounds20.centerX, y: bounds20.centerY }
3443
3617
  });
3444
3618
 
3445
3619
  // symbols/varactor_diode_vert.ts
3446
3620
  var rotated9 = rotateSymbol(varactor_diode_horz_default);
3447
- var ref10 = rotated9.primitives.find(
3621
+ var ref11 = rotated9.primitives.find(
3448
3622
  (p) => p.type === "text" && p.text === "{REF}"
3449
3623
  );
3450
3624
  var val9 = rotated9.primitives.find(
3451
3625
  (p) => p.type === "text" && p.text === "{VAL}"
3452
3626
  );
3453
- ref10.anchor = "middle_left";
3627
+ ref11.anchor = "middle_left";
3454
3628
  val9.anchor = "middle_right";
3455
3629
  var varactor_diode_vert_default = rotated9;
3456
3630
 
@@ -3586,26 +3760,26 @@ var varistor_default = {
3586
3760
  };
3587
3761
 
3588
3762
  // symbols/varistor_horz.ts
3589
- var { paths: paths20, texts: texts21, bounds: bounds20, refblocks: refblocks20 } = varistor_default;
3763
+ var { paths: paths21, texts: texts23, bounds: bounds21, refblocks: refblocks21 } = varistor_default;
3590
3764
  var varistor_horz_default = defineSymbol({
3591
3765
  primitives: [
3592
- ...Object.values(paths20),
3593
- { ...texts21.top1, anchor: "middle_left" },
3594
- { ...texts21.bottom1, anchor: "middle_right" }
3766
+ ...Object.values(paths21),
3767
+ { ...texts23.top1, anchor: "middle_left" },
3768
+ { ...texts23.bottom1, anchor: "middle_right" }
3595
3769
  ],
3596
3770
  ports: [
3597
3771
  {
3598
- ...refblocks20.left1,
3772
+ ...refblocks21.left1,
3599
3773
  labels: ["1", "-"]
3600
3774
  },
3601
3775
  {
3602
- ...refblocks20.right1,
3776
+ ...refblocks21.right1,
3603
3777
  labels: ["2", "+"]
3604
3778
  }
3605
3779
  ],
3606
- size: { width: bounds20.width, height: bounds20.height },
3780
+ size: { width: bounds21.width, height: bounds21.height },
3607
3781
  //{ width: 1, height: 0.24 },
3608
- center: { x: bounds20.centerX, y: bounds20.centerY }
3782
+ center: { x: bounds21.centerX, y: bounds21.centerY }
3609
3783
  });
3610
3784
 
3611
3785
  // symbols/varistor_vert.ts
@@ -3711,11 +3885,11 @@ var volt_meter_default = {
3711
3885
  };
3712
3886
 
3713
3887
  // symbols/volt_meter_horz.ts
3714
- var { paths: paths21, texts: texts22, bounds: bounds21, circles: circles10, refblocks: refblocks21 } = volt_meter_default;
3888
+ var { paths: paths22, texts: texts24, bounds: bounds22, circles: circles11, refblocks: refblocks22 } = volt_meter_default;
3715
3889
  var volt_meter_horz_default = defineSymbol({
3716
3890
  primitives: [
3717
- ...Object.values(paths21),
3718
- ...Object.values(circles10),
3891
+ ...Object.values(paths22),
3892
+ ...Object.values(circles11),
3719
3893
  {
3720
3894
  type: "text",
3721
3895
  text: "{REF}",
@@ -3732,13 +3906,13 @@ var volt_meter_horz_default = defineSymbol({
3732
3906
  }
3733
3907
  ],
3734
3908
  ports: [
3735
- { ...refblocks21.left1, labels: ["1"] },
3909
+ { ...refblocks22.left1, labels: ["1"] },
3736
3910
  // TODO add more "standard" labels
3737
- { ...refblocks21.right1, labels: ["2"] }
3911
+ { ...refblocks22.right1, labels: ["2"] }
3738
3912
  // TODO add more "standard" labels
3739
3913
  ],
3740
- size: { width: bounds21.width, height: bounds21.height },
3741
- center: { x: bounds21.centerX, y: bounds21.centerY }
3914
+ size: { width: bounds22.width, height: bounds22.height },
3915
+ center: { x: bounds22.centerX, y: bounds22.centerY }
3742
3916
  });
3743
3917
 
3744
3918
  // symbols/volt_meter_vert.ts
@@ -3891,33 +4065,33 @@ var zener_diode_default = {
3891
4065
  };
3892
4066
 
3893
4067
  // symbols/zener_diode_horz.ts
3894
- var { paths: paths22, texts: texts23, bounds: bounds22, refblocks: refblocks22, circles: circles11 } = zener_diode_default;
4068
+ var { paths: paths23, texts: texts25, bounds: bounds23, refblocks: refblocks23, circles: circles12 } = zener_diode_default;
3895
4069
  var zener_diode_horz_default = defineSymbol({
3896
4070
  primitives: [
3897
- ...Object.values(paths22),
3898
- ...Object.values(circles11),
3899
- { ...texts23.top1, anchor: "middle_bottom" },
3900
- { ...texts23.bottom1, anchor: "middle_top" }
4071
+ ...Object.values(paths23),
4072
+ ...Object.values(circles12),
4073
+ { ...texts25.top1, anchor: "middle_bottom" },
4074
+ { ...texts25.bottom1, anchor: "middle_top" }
3901
4075
  ],
3902
4076
  ports: [
3903
- { ...refblocks22.left1, labels: ["1"] },
4077
+ { ...refblocks23.left1, labels: ["1"] },
3904
4078
  // TODO add more "standard" labels
3905
- { ...refblocks22.right1, labels: ["2"] }
4079
+ { ...refblocks23.right1, labels: ["2"] }
3906
4080
  // TODO add more "standard" labels
3907
4081
  ],
3908
- size: { width: bounds22.width, height: bounds22.height },
3909
- center: { x: bounds22.centerX, y: bounds22.centerY }
4082
+ size: { width: bounds23.width, height: bounds23.height },
4083
+ center: { x: bounds23.centerX, y: bounds23.centerY }
3910
4084
  });
3911
4085
 
3912
4086
  // symbols/zener_diode_vert.ts
3913
4087
  var rotated10 = rotateSymbol(zener_diode_horz_default);
3914
- var ref11 = rotated10.primitives.find(
4088
+ var ref12 = rotated10.primitives.find(
3915
4089
  (p) => p.type === "text" && p.text === "{REF}"
3916
4090
  );
3917
4091
  var val10 = rotated10.primitives.find(
3918
4092
  (p) => p.type === "text" && p.text === "{VAL}"
3919
4093
  );
3920
- ref11.anchor = "middle_left";
4094
+ ref12.anchor = "middle_left";
3921
4095
  val10.anchor = "middle_right";
3922
4096
  var zener_diode_vert_default = rotated10;
3923
4097
 
@@ -3957,6 +4131,8 @@ var symbols_index_default = {
3957
4131
  "push_button_normally_open_momentary_vert": push_button_normally_open_momentary_vert_default,
3958
4132
  "schottky_diode_horz": schottky_diode_horz_default,
3959
4133
  "schottky_diode_vert": schottky_diode_vert_default,
4134
+ "silicon_controlled_rectifier_horz": silicon_controlled_rectifier_horz_default,
4135
+ "silicon_controlled_rectifier_vert": silicon_controlled_rectifier_vert_default,
3960
4136
  "tunnel_diode_horz": tunnel_diode_horz_default,
3961
4137
  "tunnel_diode_vert": tunnel_diode_vert_default,
3962
4138
  "varactor_diode_horz": varactor_diode_horz_default,