schematic-symbols 0.0.107 → 0.0.108
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 +3 -1
- package/dist/index.js +305 -0
- package/dist/index.js.map +1 -1
- package/package.json +5 -2
- package/symbols/crystal_4pin_horz.ts +11 -0
- package/symbols/crystal_4pin_vert.ts +10 -0
package/dist/index.d.ts
CHANGED
@@ -87,6 +87,8 @@ declare const _default: {
|
|
87
87
|
capacitor_up: undefined;
|
88
88
|
constant_current_diode_horz: undefined;
|
89
89
|
constant_current_diode_vert: undefined;
|
90
|
+
crystal_4pin_horz: undefined;
|
91
|
+
crystal_4pin_vert: undefined;
|
90
92
|
crystal_horz: undefined;
|
91
93
|
crystal_vert: undefined;
|
92
94
|
darlington_pair_transistor_horz: undefined;
|
@@ -265,7 +267,7 @@ declare const _default: {
|
|
265
267
|
zener_diode_vert: undefined;
|
266
268
|
};
|
267
269
|
|
268
|
-
type BaseSymbolName = "ac_voltmeter" | "avalanche_diode" | "battery" | "boxresistor" | "capacitor" | "capacitor_polarized" | "constant_current_diode" | "crystal" | "darlington_pair_transistor" | "dc_ammeter" | "dc_voltmeter" | "diac" | "diode" | "dpst_switch" | "filled_diode" | "frequency_meter" | "fuse" | "ground" | "gunn_diode" | "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" | "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";
|
270
|
+
type BaseSymbolName = "ac_voltmeter" | "avalanche_diode" | "battery" | "boxresistor" | "capacitor" | "capacitor_polarized" | "constant_current_diode" | "crystal_4pin" | "crystal" | "darlington_pair_transistor" | "dc_ammeter" | "dc_voltmeter" | "diac" | "diode" | "dpst_switch" | "filled_diode" | "frequency_meter" | "fuse" | "ground" | "gunn_diode" | "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" | "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";
|
269
271
|
|
270
272
|
/**
|
271
273
|
* Utility for easier autocomplete:
|
package/dist/index.js
CHANGED
@@ -3147,6 +3147,309 @@ var constant_current_diode_horz_default = modifySymbol(constant_current_diode_de
|
|
3147
3147
|
// symbols/constant_current_diode_vert.ts
|
3148
3148
|
var constant_current_diode_vert_default = modifySymbol(constant_current_diode_default).rotateRightFacingSymbol("down").changeTextAnchor("{VAL}", "middle_right").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_left").build();
|
3149
3149
|
|
3150
|
+
// assets/generated/crystal_4pin.json
|
3151
|
+
var crystal_4pin_default = {
|
3152
|
+
paths: {
|
3153
|
+
path27: {
|
3154
|
+
type: "path",
|
3155
|
+
points: [
|
3156
|
+
{
|
3157
|
+
x: 0.52188525,
|
3158
|
+
y: -0.010083950000000286
|
3159
|
+
},
|
3160
|
+
{
|
3161
|
+
x: 0.1314137500000001,
|
3162
|
+
y: -0.010083950000000286
|
3163
|
+
}
|
3164
|
+
],
|
3165
|
+
color: "primary",
|
3166
|
+
fill: false
|
3167
|
+
},
|
3168
|
+
path29: {
|
3169
|
+
type: "path",
|
3170
|
+
points: [
|
3171
|
+
{
|
3172
|
+
x: 0.12501034999999971,
|
3173
|
+
y: 0.25449935000000146
|
3174
|
+
},
|
3175
|
+
{
|
3176
|
+
x: 0.12501035000000016,
|
3177
|
+
y: -0.2746672499999985
|
3178
|
+
}
|
3179
|
+
],
|
3180
|
+
color: "primary",
|
3181
|
+
fill: false
|
3182
|
+
},
|
3183
|
+
"path29-2": {
|
3184
|
+
type: "path",
|
3185
|
+
points: [
|
3186
|
+
{
|
3187
|
+
x: 0.07157854999999946,
|
3188
|
+
y: 0.253778650000001
|
3189
|
+
},
|
3190
|
+
{
|
3191
|
+
x: 0.07157854999999991,
|
3192
|
+
y: -0.27538794999999716
|
3193
|
+
}
|
3194
|
+
],
|
3195
|
+
color: "primary",
|
3196
|
+
fill: false
|
3197
|
+
},
|
3198
|
+
path30: {
|
3199
|
+
type: "path",
|
3200
|
+
points: [
|
3201
|
+
{
|
3202
|
+
x: -0.13957305000000053,
|
3203
|
+
y: 0.25449935000000146
|
3204
|
+
},
|
3205
|
+
{
|
3206
|
+
x: -0.1395730500000001,
|
3207
|
+
y: -0.2746672499999985
|
3208
|
+
}
|
3209
|
+
],
|
3210
|
+
color: "primary",
|
3211
|
+
fill: false
|
3212
|
+
},
|
3213
|
+
"path29-5": {
|
3214
|
+
type: "path",
|
3215
|
+
points: [
|
3216
|
+
{
|
3217
|
+
x: -0.08349325000000052,
|
3218
|
+
y: 0.25541165000000277
|
3219
|
+
},
|
3220
|
+
{
|
3221
|
+
x: -0.08349325000000007,
|
3222
|
+
y: -0.27375494999999894
|
3223
|
+
}
|
3224
|
+
],
|
3225
|
+
color: "primary",
|
3226
|
+
fill: false
|
3227
|
+
},
|
3228
|
+
"path29-2-7": {
|
3229
|
+
type: "path",
|
3230
|
+
points: [
|
3231
|
+
{
|
3232
|
+
x: 0.07147894999999993,
|
3233
|
+
y: 0.2552525499999998
|
3234
|
+
},
|
3235
|
+
{
|
3236
|
+
x: -0.0829032500000002,
|
3237
|
+
y: 0.2552525499999998
|
3238
|
+
}
|
3239
|
+
],
|
3240
|
+
color: "primary",
|
3241
|
+
fill: false
|
3242
|
+
},
|
3243
|
+
"path29-2-7-6": {
|
3244
|
+
type: "path",
|
3245
|
+
points: [
|
3246
|
+
{
|
3247
|
+
x: 0.07107315000000014,
|
3248
|
+
y: -0.27817384999999817
|
3249
|
+
},
|
3250
|
+
{
|
3251
|
+
x: -0.08330905,
|
3252
|
+
y: -0.27817384999999817
|
3253
|
+
}
|
3254
|
+
],
|
3255
|
+
color: "primary",
|
3256
|
+
fill: false
|
3257
|
+
},
|
3258
|
+
path43: {
|
3259
|
+
type: "path",
|
3260
|
+
points: [
|
3261
|
+
{
|
3262
|
+
x: -0.21327535000000042,
|
3263
|
+
y: 0.31803495000000304
|
3264
|
+
},
|
3265
|
+
{
|
3266
|
+
x: 0.19712464999999968,
|
3267
|
+
y: 0.31807695
|
3268
|
+
}
|
3269
|
+
],
|
3270
|
+
color: "primary",
|
3271
|
+
fill: false
|
3272
|
+
},
|
3273
|
+
"path44-0": {
|
3274
|
+
type: "path",
|
3275
|
+
points: [
|
3276
|
+
{
|
3277
|
+
x: 0.003324649999999707,
|
3278
|
+
y: 0.694594949999999
|
3279
|
+
},
|
3280
|
+
{
|
3281
|
+
x: 0.003324649999999707,
|
3282
|
+
y: 0.3310069500000008
|
3283
|
+
},
|
3284
|
+
{
|
3285
|
+
x: 0.003324649999999707,
|
3286
|
+
y: 0.3209089500000015
|
3287
|
+
}
|
3288
|
+
],
|
3289
|
+
color: "primary",
|
3290
|
+
fill: false
|
3291
|
+
},
|
3292
|
+
"path43-8": {
|
3293
|
+
type: "path",
|
3294
|
+
points: [
|
3295
|
+
{
|
3296
|
+
x: -0.21327535000000042,
|
3297
|
+
y: 0.3180639499999991
|
3298
|
+
},
|
3299
|
+
{
|
3300
|
+
x: -0.21327535000000042,
|
3301
|
+
y: 0.2498769499999991
|
3302
|
+
}
|
3303
|
+
],
|
3304
|
+
color: "primary",
|
3305
|
+
fill: false
|
3306
|
+
},
|
3307
|
+
"path43-8-8": {
|
3308
|
+
type: "path",
|
3309
|
+
points: [
|
3310
|
+
{
|
3311
|
+
x: 0.19712464999999968,
|
3312
|
+
y: 0.31807695
|
3313
|
+
},
|
3314
|
+
{
|
3315
|
+
x: 0.19712464999999968,
|
3316
|
+
y: 0.24987695000000443
|
3317
|
+
}
|
3318
|
+
],
|
3319
|
+
color: "primary",
|
3320
|
+
fill: false
|
3321
|
+
},
|
3322
|
+
"path43-9": {
|
3323
|
+
type: "path",
|
3324
|
+
points: [
|
3325
|
+
{
|
3326
|
+
x: 0.19226054999999942,
|
3327
|
+
y: -0.3468980499999983
|
3328
|
+
},
|
3329
|
+
{
|
3330
|
+
x: -0.21813945000000068,
|
3331
|
+
y: -0.3469400500000006
|
3332
|
+
}
|
3333
|
+
],
|
3334
|
+
color: "primary",
|
3335
|
+
fill: false
|
3336
|
+
},
|
3337
|
+
"path44-0-5": {
|
3338
|
+
type: "path",
|
3339
|
+
points: [
|
3340
|
+
{
|
3341
|
+
x: -0.024339450000000262,
|
3342
|
+
y: -0.7234580499999996
|
3343
|
+
},
|
3344
|
+
{
|
3345
|
+
x: -0.024339450000000262,
|
3346
|
+
y: -0.3598700499999996
|
3347
|
+
},
|
3348
|
+
{
|
3349
|
+
x: -0.024339450000000262,
|
3350
|
+
y: -0.34977205000000033
|
3351
|
+
}
|
3352
|
+
],
|
3353
|
+
color: "primary",
|
3354
|
+
fill: false
|
3355
|
+
},
|
3356
|
+
"path43-8-1": {
|
3357
|
+
type: "path",
|
3358
|
+
points: [
|
3359
|
+
{
|
3360
|
+
x: 0.19226054999999942,
|
3361
|
+
y: -0.3469270499999997
|
3362
|
+
},
|
3363
|
+
{
|
3364
|
+
x: 0.19226054999999942,
|
3365
|
+
y: -0.2787400499999979
|
3366
|
+
}
|
3367
|
+
],
|
3368
|
+
color: "primary",
|
3369
|
+
fill: false
|
3370
|
+
},
|
3371
|
+
"path43-8-8-9": {
|
3372
|
+
type: "path",
|
3373
|
+
points: [
|
3374
|
+
{
|
3375
|
+
x: -0.21813955000000096,
|
3376
|
+
y: -0.34694015
|
3377
|
+
},
|
3378
|
+
{
|
3379
|
+
x: -0.21813955000000096,
|
3380
|
+
y: -0.27874015000000085
|
3381
|
+
}
|
3382
|
+
],
|
3383
|
+
color: "primary",
|
3384
|
+
fill: false
|
3385
|
+
},
|
3386
|
+
path28: {
|
3387
|
+
type: "path",
|
3388
|
+
points: [
|
3389
|
+
{
|
3390
|
+
x: -0.14368304999999992,
|
3391
|
+
y: -0.010083950000000286
|
3392
|
+
},
|
3393
|
+
{
|
3394
|
+
x: -0.5364480500000002,
|
3395
|
+
y: -0.010083950000000286
|
3396
|
+
}
|
3397
|
+
],
|
3398
|
+
color: "primary",
|
3399
|
+
fill: false
|
3400
|
+
}
|
3401
|
+
},
|
3402
|
+
texts: {
|
3403
|
+
left1: {
|
3404
|
+
type: "text",
|
3405
|
+
text: "{REF}",
|
3406
|
+
x: -0.38155925000000046,
|
3407
|
+
y: 0.09576035000000083
|
3408
|
+
},
|
3409
|
+
right1: {
|
3410
|
+
type: "text",
|
3411
|
+
text: "{VAL}",
|
3412
|
+
x: 0.3369813499999994,
|
3413
|
+
y: -0.17868404999999754
|
3414
|
+
}
|
3415
|
+
},
|
3416
|
+
refblocks: {
|
3417
|
+
top1: {
|
3418
|
+
x: 0.0032092499999998303,
|
3419
|
+
y: 0.7114137500000002
|
3420
|
+
},
|
3421
|
+
bottom1: {
|
3422
|
+
x: -0.02355145000000025,
|
3423
|
+
y: -0.7114137500000002
|
3424
|
+
},
|
3425
|
+
left1: {
|
3426
|
+
x: -0.5415391500000004,
|
3427
|
+
y: -0.00607074999999746
|
3428
|
+
},
|
3429
|
+
right1: {
|
3430
|
+
x: 0.5415391499999997,
|
3431
|
+
y: -0.012221549999997805
|
3432
|
+
}
|
3433
|
+
},
|
3434
|
+
bounds: {
|
3435
|
+
minX: -0.5696975910000004,
|
3436
|
+
maxX: 0.5696975909999997,
|
3437
|
+
minY: -0.7395721910000002,
|
3438
|
+
maxY: 0.7395721910000002,
|
3439
|
+
width: 1.1393951820000001,
|
3440
|
+
height: 1.4791443820000003,
|
3441
|
+
centerX: -33306690738754696e-32,
|
3442
|
+
centerY: 0
|
3443
|
+
},
|
3444
|
+
circles: {}
|
3445
|
+
};
|
3446
|
+
|
3447
|
+
// symbols/crystal_4pin_horz.ts
|
3448
|
+
var crystal_4pin_horz_default = modifySymbol(crystal_4pin_default).labelPort("top1", ["2", "gnd1"]).labelPort("bottom1", ["4", "gnd2"]).labelPort("left1", ["1"]).labelPort("right1", ["3"]).changeTextAnchor("{REF}", "bottom_right").changeTextAnchor("{VAL}", "top_left").build();
|
3449
|
+
|
3450
|
+
// symbols/crystal_4pin_vert.ts
|
3451
|
+
var crystal_4pin_vert_default = modifySymbol(crystal_4pin_horz_default).rotateRightFacingSymbol("up").changeTextAnchor("{REF}", "top_right").changeTextAnchor("{VAL}", "bottom_left").build();
|
3452
|
+
|
3150
3453
|
// assets/generated/crystal.json
|
3151
3454
|
var crystal_default = {
|
3152
3455
|
paths: {
|
@@ -15098,6 +15401,8 @@ var symbols_index_default = {
|
|
15098
15401
|
"capacitor_up": capacitor_up_default,
|
15099
15402
|
"constant_current_diode_horz": constant_current_diode_horz_default,
|
15100
15403
|
"constant_current_diode_vert": constant_current_diode_vert_default,
|
15404
|
+
"crystal_4pin_horz": crystal_4pin_horz_default,
|
15405
|
+
"crystal_4pin_vert": crystal_4pin_vert_default,
|
15101
15406
|
"crystal_horz": crystal_horz_default,
|
15102
15407
|
"crystal_vert": crystal_vert_default,
|
15103
15408
|
"darlington_pair_transistor_horz": darlington_pair_transistor_horz_default,
|