schematic-symbols 0.0.44 → 0.0.46
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 +5 -1
- package/dist/index.js +454 -54
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/symbols/silicon_controlled_rectifier_horz.ts +21 -0
- package/symbols/silicon_controlled_rectifier_vert.ts +15 -0
- package/symbols/triac_horz.ts +21 -0
- package/symbols/triac_vert.ts +16 -0
package/dist/index.d.ts
CHANGED
@@ -125,6 +125,10 @@ 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;
|
130
|
+
triac_horz: undefined;
|
131
|
+
triac_vert: undefined;
|
128
132
|
tunnel_diode_horz: undefined;
|
129
133
|
tunnel_diode_vert: undefined;
|
130
134
|
varactor_diode_horz: undefined;
|
@@ -137,7 +141,7 @@ declare const _default: {
|
|
137
141
|
zener_diode_vert: undefined;
|
138
142
|
};
|
139
143
|
|
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";
|
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";
|
141
145
|
|
142
146
|
/**
|
143
147
|
* Utility for easier autocomplete:
|
package/dist/index.js
CHANGED
@@ -3085,6 +3085,402 @@ 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
|
+
|
3262
|
+
// assets/generated/triac.json
|
3263
|
+
var triac_default = {
|
3264
|
+
paths: {
|
3265
|
+
path11: {
|
3266
|
+
type: "path",
|
3267
|
+
points: [
|
3268
|
+
{
|
3269
|
+
x: -0.5211797499999996,
|
3270
|
+
y: -0.06283009999999978
|
3271
|
+
},
|
3272
|
+
{
|
3273
|
+
x: -0.11239775000000019,
|
3274
|
+
y: -0.06283009999999978
|
3275
|
+
}
|
3276
|
+
],
|
3277
|
+
color: "primary",
|
3278
|
+
fill: false
|
3279
|
+
},
|
3280
|
+
path12: {
|
3281
|
+
type: "path",
|
3282
|
+
points: [
|
3283
|
+
{
|
3284
|
+
x: 0.09960874999999936,
|
3285
|
+
y: -0.06283009999999978
|
3286
|
+
},
|
3287
|
+
{
|
3288
|
+
x: 0.5211797499999995,
|
3289
|
+
y: -0.06283009999999978
|
3290
|
+
}
|
3291
|
+
],
|
3292
|
+
color: "primary",
|
3293
|
+
fill: false
|
3294
|
+
},
|
3295
|
+
"path11-0": {
|
3296
|
+
type: "path",
|
3297
|
+
points: [
|
3298
|
+
{
|
3299
|
+
x: -0.09694955000000016,
|
3300
|
+
y: 0.12512129999999955
|
3301
|
+
},
|
3302
|
+
{
|
3303
|
+
x: -0.09660955000000016,
|
3304
|
+
y: -0.27942560000000016
|
3305
|
+
}
|
3306
|
+
],
|
3307
|
+
color: "primary",
|
3308
|
+
fill: false
|
3309
|
+
},
|
3310
|
+
"path11-0-3": {
|
3311
|
+
type: "path",
|
3312
|
+
points: [
|
3313
|
+
{
|
3314
|
+
x: 0.08168064999999913,
|
3315
|
+
y: 0.12394879999999975
|
3316
|
+
},
|
3317
|
+
{
|
3318
|
+
x: 0.08202064999999914,
|
3319
|
+
y: -0.28059809999999996
|
3320
|
+
}
|
3321
|
+
],
|
3322
|
+
color: "primary",
|
3323
|
+
fill: false
|
3324
|
+
},
|
3325
|
+
"path11-0-9": {
|
3326
|
+
type: "path",
|
3327
|
+
points: [
|
3328
|
+
{
|
3329
|
+
x: -0.08666725000000008,
|
3330
|
+
y: -0.0770194999999998
|
3331
|
+
},
|
3332
|
+
{
|
3333
|
+
x: -0.08766725000000042,
|
3334
|
+
y: 0.12569620000000037
|
3335
|
+
},
|
3336
|
+
{
|
3337
|
+
x: 0.08302554999999989,
|
3338
|
+
y: 0.029961600000000255
|
3339
|
+
},
|
3340
|
+
{
|
3341
|
+
x: -0.0847714500000003,
|
3342
|
+
y: -0.07756219999999958
|
3343
|
+
}
|
3344
|
+
],
|
3345
|
+
color: "primary",
|
3346
|
+
fill: true
|
3347
|
+
},
|
3348
|
+
"path11-0-9-0": {
|
3349
|
+
type: "path",
|
3350
|
+
points: [
|
3351
|
+
{
|
3352
|
+
x: 0.07310254999999932,
|
3353
|
+
y: -0.27773950000000025
|
3354
|
+
},
|
3355
|
+
{
|
3356
|
+
x: 0.07410254999999988,
|
3357
|
+
y: -0.07502390000000037
|
3358
|
+
},
|
3359
|
+
{
|
3360
|
+
x: -0.09659025000000065,
|
3361
|
+
y: -0.17075850000000048
|
3362
|
+
},
|
3363
|
+
{
|
3364
|
+
x: 0.07120674999999954,
|
3365
|
+
y: -0.2782822000000007
|
3366
|
+
}
|
3367
|
+
],
|
3368
|
+
color: "primary",
|
3369
|
+
fill: true
|
3370
|
+
},
|
3371
|
+
"path12-2": {
|
3372
|
+
type: "path",
|
3373
|
+
points: [
|
3374
|
+
{
|
3375
|
+
x: 0.08650115000000014,
|
3376
|
+
y: 0.03856369999999987
|
3377
|
+
},
|
3378
|
+
{
|
3379
|
+
x: 0.26729024999999984,
|
3380
|
+
y: 0.15002969999999993
|
3381
|
+
}
|
3382
|
+
],
|
3383
|
+
color: "primary",
|
3384
|
+
fill: false
|
3385
|
+
},
|
3386
|
+
"path12-2-9": {
|
3387
|
+
type: "path",
|
3388
|
+
points: [
|
3389
|
+
{
|
3390
|
+
x: 0.2694016499999996,
|
3391
|
+
y: 0.15483390000000008
|
3392
|
+
},
|
3393
|
+
{
|
3394
|
+
x: 0.2677306499999994,
|
3395
|
+
y: 0.28059809999999996
|
3396
|
+
}
|
3397
|
+
],
|
3398
|
+
color: "primary",
|
3399
|
+
fill: false
|
3400
|
+
}
|
3401
|
+
},
|
3402
|
+
texts: {
|
3403
|
+
top1: {
|
3404
|
+
type: "text",
|
3405
|
+
text: "{REF}",
|
3406
|
+
x: -0.1767959499999996,
|
3407
|
+
y: -0.4779211999999992
|
3408
|
+
},
|
3409
|
+
bottom1: {
|
3410
|
+
type: "text",
|
3411
|
+
text: "{VAL}",
|
3412
|
+
x: -0.0337326499999997,
|
3413
|
+
y: 0.3957511000000007
|
3414
|
+
}
|
3415
|
+
},
|
3416
|
+
refblocks: {
|
3417
|
+
bottom1: {
|
3418
|
+
x: 0.2687293500000003,
|
3419
|
+
y: 0.2877112000000006
|
3420
|
+
},
|
3421
|
+
left1: {
|
3422
|
+
x: -0.5449081499999999,
|
3423
|
+
y: -0.061977099999999785
|
3424
|
+
},
|
3425
|
+
right1: {
|
3426
|
+
x: 0.5378887499999996,
|
3427
|
+
y: -0.06297349999999935
|
3428
|
+
}
|
3429
|
+
},
|
3430
|
+
bounds: {
|
3431
|
+
minX: -0.5211797499999996,
|
3432
|
+
maxX: 0.5211797499999995,
|
3433
|
+
minY: -0.28059809999999996,
|
3434
|
+
maxY: 0.28059809999999996,
|
3435
|
+
width: 1.042359499999999,
|
3436
|
+
height: 1,
|
3437
|
+
centerX: -5551115123125783e-32,
|
3438
|
+
centerY: 0
|
3439
|
+
},
|
3440
|
+
circles: {
|
3441
|
+
path1: {
|
3442
|
+
type: "circle",
|
3443
|
+
x: -0.0072723500000002606,
|
3444
|
+
y: -0.06995819999999964,
|
3445
|
+
radius: 0.28854213,
|
3446
|
+
color: "primary",
|
3447
|
+
fill: false
|
3448
|
+
}
|
3449
|
+
}
|
3450
|
+
};
|
3451
|
+
|
3452
|
+
// symbols/triac_horz.ts
|
3453
|
+
var { paths: paths19, texts: texts21, bounds: bounds19, refblocks: refblocks19, circles: circles9 } = triac_default;
|
3454
|
+
var triac_horz_default = defineSymbol({
|
3455
|
+
primitives: [
|
3456
|
+
...Object.values(paths19),
|
3457
|
+
...Object.values(circles9),
|
3458
|
+
{ ...texts21.top1, anchor: "middle_left" },
|
3459
|
+
{ ...texts21.bottom1, anchor: "middle_top" }
|
3460
|
+
],
|
3461
|
+
ports: [
|
3462
|
+
{ ...refblocks19.left1, labels: ["1"] },
|
3463
|
+
// TODO add more "standard" labels
|
3464
|
+
{ ...refblocks19.right1, labels: ["2"] },
|
3465
|
+
// TODO add more "standard" labels
|
3466
|
+
{ ...refblocks19.bottom1, labels: ["3"] }
|
3467
|
+
// TODO add more "standard" labels
|
3468
|
+
],
|
3469
|
+
size: { width: bounds19.width, height: bounds19.height },
|
3470
|
+
center: { x: bounds19.centerX, y: bounds19.centerY }
|
3471
|
+
});
|
3472
|
+
|
3473
|
+
// symbols/triac_vert.ts
|
3474
|
+
var rotatedSymbol7 = rotateSymbol(triac_horz_default);
|
3475
|
+
var texts22 = rotatedSymbol7.primitives.filter(
|
3476
|
+
(primitive) => primitive.type === "text"
|
3477
|
+
);
|
3478
|
+
var ref10 = texts22.find((text) => text.text === "{REF}");
|
3479
|
+
var val8 = texts22.find((text) => text.text === "{VAL}");
|
3480
|
+
ref10.y = 0;
|
3481
|
+
val8.y = 0;
|
3482
|
+
var triac_vert_default = rotatedSymbol7;
|
3483
|
+
|
3088
3484
|
// assets/generated/tunnel_diode.json
|
3089
3485
|
var tunnel_diode_default = {
|
3090
3486
|
paths: {
|
@@ -3247,34 +3643,34 @@ var tunnel_diode_default = {
|
|
3247
3643
|
};
|
3248
3644
|
|
3249
3645
|
// symbols/tunnel_diode_horz.ts
|
3250
|
-
var { paths:
|
3646
|
+
var { paths: paths20, texts: texts23, bounds: bounds20, refblocks: refblocks20, circles: circles10 } = tunnel_diode_default;
|
3251
3647
|
var tunnel_diode_horz_default = defineSymbol({
|
3252
3648
|
primitives: [
|
3253
|
-
...Object.values(
|
3254
|
-
...Object.values(
|
3255
|
-
{ ...
|
3256
|
-
{ ...
|
3649
|
+
...Object.values(paths20),
|
3650
|
+
...Object.values(circles10),
|
3651
|
+
{ ...texts23.top1, anchor: "middle_bottom" },
|
3652
|
+
{ ...texts23.bottom1, anchor: "middle_top" }
|
3257
3653
|
],
|
3258
3654
|
ports: [
|
3259
|
-
{ ...
|
3655
|
+
{ ...refblocks20.left1, labels: ["1"] },
|
3260
3656
|
// TODO add more "standard" labels
|
3261
|
-
{ ...
|
3657
|
+
{ ...refblocks20.right1, labels: ["2"] }
|
3262
3658
|
// TODO add more "standard" labels
|
3263
3659
|
],
|
3264
|
-
size: { width:
|
3265
|
-
center: { x:
|
3660
|
+
size: { width: bounds20.width, height: bounds20.height },
|
3661
|
+
center: { x: bounds20.centerX, y: bounds20.centerY }
|
3266
3662
|
});
|
3267
3663
|
|
3268
3664
|
// symbols/tunnel_diode_vert.ts
|
3269
3665
|
var rotated8 = rotateSymbol(tunnel_diode_horz_default);
|
3270
|
-
var
|
3666
|
+
var ref11 = rotated8.primitives.find(
|
3271
3667
|
(p) => p.type === "text" && p.text === "{REF}"
|
3272
3668
|
);
|
3273
|
-
var
|
3669
|
+
var val9 = rotated8.primitives.find(
|
3274
3670
|
(p) => p.type === "text" && p.text === "{VAL}"
|
3275
3671
|
);
|
3276
|
-
|
3277
|
-
|
3672
|
+
ref11.anchor = "middle_left";
|
3673
|
+
val9.anchor = "middle_right";
|
3278
3674
|
var tunnel_diode_vert_default = rotated8;
|
3279
3675
|
|
3280
3676
|
// assets/generated/varactor_diode.json
|
@@ -3424,34 +3820,34 @@ var varactor_diode_default = {
|
|
3424
3820
|
};
|
3425
3821
|
|
3426
3822
|
// symbols/varactor_diode_horz.ts
|
3427
|
-
var { paths:
|
3823
|
+
var { paths: paths21, texts: texts24, bounds: bounds21, refblocks: refblocks21, circles: circles11 } = varactor_diode_default;
|
3428
3824
|
var varactor_diode_horz_default = defineSymbol({
|
3429
3825
|
primitives: [
|
3430
|
-
...Object.values(
|
3431
|
-
...Object.values(
|
3432
|
-
{ ...
|
3433
|
-
{ ...
|
3826
|
+
...Object.values(paths21),
|
3827
|
+
...Object.values(circles11),
|
3828
|
+
{ ...texts24.top1, anchor: "middle_bottom" },
|
3829
|
+
{ ...texts24.bottom1, anchor: "middle_top" }
|
3434
3830
|
],
|
3435
3831
|
ports: [
|
3436
|
-
{ ...
|
3832
|
+
{ ...refblocks21.left1, labels: ["1"] },
|
3437
3833
|
// TODO add more "standard" labels
|
3438
|
-
{ ...
|
3834
|
+
{ ...refblocks21.right1, labels: ["2"] }
|
3439
3835
|
// TODO add more "standard" labels
|
3440
3836
|
],
|
3441
|
-
size: { width:
|
3442
|
-
center: { x:
|
3837
|
+
size: { width: bounds21.width, height: bounds21.height },
|
3838
|
+
center: { x: bounds21.centerX, y: bounds21.centerY }
|
3443
3839
|
});
|
3444
3840
|
|
3445
3841
|
// symbols/varactor_diode_vert.ts
|
3446
3842
|
var rotated9 = rotateSymbol(varactor_diode_horz_default);
|
3447
|
-
var
|
3843
|
+
var ref12 = rotated9.primitives.find(
|
3448
3844
|
(p) => p.type === "text" && p.text === "{REF}"
|
3449
3845
|
);
|
3450
|
-
var
|
3846
|
+
var val10 = rotated9.primitives.find(
|
3451
3847
|
(p) => p.type === "text" && p.text === "{VAL}"
|
3452
3848
|
);
|
3453
|
-
|
3454
|
-
|
3849
|
+
ref12.anchor = "middle_left";
|
3850
|
+
val10.anchor = "middle_right";
|
3455
3851
|
var varactor_diode_vert_default = rotated9;
|
3456
3852
|
|
3457
3853
|
// assets/generated/varistor.json
|
@@ -3586,26 +3982,26 @@ var varistor_default = {
|
|
3586
3982
|
};
|
3587
3983
|
|
3588
3984
|
// symbols/varistor_horz.ts
|
3589
|
-
var { paths:
|
3985
|
+
var { paths: paths22, texts: texts25, bounds: bounds22, refblocks: refblocks22 } = varistor_default;
|
3590
3986
|
var varistor_horz_default = defineSymbol({
|
3591
3987
|
primitives: [
|
3592
|
-
...Object.values(
|
3593
|
-
{ ...
|
3594
|
-
{ ...
|
3988
|
+
...Object.values(paths22),
|
3989
|
+
{ ...texts25.top1, anchor: "middle_left" },
|
3990
|
+
{ ...texts25.bottom1, anchor: "middle_right" }
|
3595
3991
|
],
|
3596
3992
|
ports: [
|
3597
3993
|
{
|
3598
|
-
...
|
3994
|
+
...refblocks22.left1,
|
3599
3995
|
labels: ["1", "-"]
|
3600
3996
|
},
|
3601
3997
|
{
|
3602
|
-
...
|
3998
|
+
...refblocks22.right1,
|
3603
3999
|
labels: ["2", "+"]
|
3604
4000
|
}
|
3605
4001
|
],
|
3606
|
-
size: { width:
|
4002
|
+
size: { width: bounds22.width, height: bounds22.height },
|
3607
4003
|
//{ width: 1, height: 0.24 },
|
3608
|
-
center: { x:
|
4004
|
+
center: { x: bounds22.centerX, y: bounds22.centerY }
|
3609
4005
|
});
|
3610
4006
|
|
3611
4007
|
// symbols/varistor_vert.ts
|
@@ -3711,11 +4107,11 @@ var volt_meter_default = {
|
|
3711
4107
|
};
|
3712
4108
|
|
3713
4109
|
// symbols/volt_meter_horz.ts
|
3714
|
-
var { paths:
|
4110
|
+
var { paths: paths23, texts: texts26, bounds: bounds23, circles: circles12, refblocks: refblocks23 } = volt_meter_default;
|
3715
4111
|
var volt_meter_horz_default = defineSymbol({
|
3716
4112
|
primitives: [
|
3717
|
-
...Object.values(
|
3718
|
-
...Object.values(
|
4113
|
+
...Object.values(paths23),
|
4114
|
+
...Object.values(circles12),
|
3719
4115
|
{
|
3720
4116
|
type: "text",
|
3721
4117
|
text: "{REF}",
|
@@ -3732,13 +4128,13 @@ var volt_meter_horz_default = defineSymbol({
|
|
3732
4128
|
}
|
3733
4129
|
],
|
3734
4130
|
ports: [
|
3735
|
-
{ ...
|
4131
|
+
{ ...refblocks23.left1, labels: ["1"] },
|
3736
4132
|
// TODO add more "standard" labels
|
3737
|
-
{ ...
|
4133
|
+
{ ...refblocks23.right1, labels: ["2"] }
|
3738
4134
|
// TODO add more "standard" labels
|
3739
4135
|
],
|
3740
|
-
size: { width:
|
3741
|
-
center: { x:
|
4136
|
+
size: { width: bounds23.width, height: bounds23.height },
|
4137
|
+
center: { x: bounds23.centerX, y: bounds23.centerY }
|
3742
4138
|
});
|
3743
4139
|
|
3744
4140
|
// symbols/volt_meter_vert.ts
|
@@ -3891,34 +4287,34 @@ var zener_diode_default = {
|
|
3891
4287
|
};
|
3892
4288
|
|
3893
4289
|
// symbols/zener_diode_horz.ts
|
3894
|
-
var { paths:
|
4290
|
+
var { paths: paths24, texts: texts27, bounds: bounds24, refblocks: refblocks24, circles: circles13 } = zener_diode_default;
|
3895
4291
|
var zener_diode_horz_default = defineSymbol({
|
3896
4292
|
primitives: [
|
3897
|
-
...Object.values(
|
3898
|
-
...Object.values(
|
3899
|
-
{ ...
|
3900
|
-
{ ...
|
4293
|
+
...Object.values(paths24),
|
4294
|
+
...Object.values(circles13),
|
4295
|
+
{ ...texts27.top1, anchor: "middle_bottom" },
|
4296
|
+
{ ...texts27.bottom1, anchor: "middle_top" }
|
3901
4297
|
],
|
3902
4298
|
ports: [
|
3903
|
-
{ ...
|
4299
|
+
{ ...refblocks24.left1, labels: ["1"] },
|
3904
4300
|
// TODO add more "standard" labels
|
3905
|
-
{ ...
|
4301
|
+
{ ...refblocks24.right1, labels: ["2"] }
|
3906
4302
|
// TODO add more "standard" labels
|
3907
4303
|
],
|
3908
|
-
size: { width:
|
3909
|
-
center: { x:
|
4304
|
+
size: { width: bounds24.width, height: bounds24.height },
|
4305
|
+
center: { x: bounds24.centerX, y: bounds24.centerY }
|
3910
4306
|
});
|
3911
4307
|
|
3912
4308
|
// symbols/zener_diode_vert.ts
|
3913
4309
|
var rotated10 = rotateSymbol(zener_diode_horz_default);
|
3914
|
-
var
|
4310
|
+
var ref13 = rotated10.primitives.find(
|
3915
4311
|
(p) => p.type === "text" && p.text === "{REF}"
|
3916
4312
|
);
|
3917
|
-
var
|
4313
|
+
var val11 = rotated10.primitives.find(
|
3918
4314
|
(p) => p.type === "text" && p.text === "{VAL}"
|
3919
4315
|
);
|
3920
|
-
|
3921
|
-
|
4316
|
+
ref13.anchor = "middle_left";
|
4317
|
+
val11.anchor = "middle_right";
|
3922
4318
|
var zener_diode_vert_default = rotated10;
|
3923
4319
|
|
3924
4320
|
// generated/symbols-index.ts
|
@@ -3957,6 +4353,10 @@ var symbols_index_default = {
|
|
3957
4353
|
"push_button_normally_open_momentary_vert": push_button_normally_open_momentary_vert_default,
|
3958
4354
|
"schottky_diode_horz": schottky_diode_horz_default,
|
3959
4355
|
"schottky_diode_vert": schottky_diode_vert_default,
|
4356
|
+
"silicon_controlled_rectifier_horz": silicon_controlled_rectifier_horz_default,
|
4357
|
+
"silicon_controlled_rectifier_vert": silicon_controlled_rectifier_vert_default,
|
4358
|
+
"triac_horz": triac_horz_default,
|
4359
|
+
"triac_vert": triac_vert_default,
|
3960
4360
|
"tunnel_diode_horz": tunnel_diode_horz_default,
|
3961
4361
|
"tunnel_diode_vert": tunnel_diode_vert_default,
|
3962
4362
|
"varactor_diode_horz": varactor_diode_horz_default,
|