schematic-symbols 0.0.41 → 0.0.42
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 +242 -99
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/symbols/power_factor_meter_horz.ts +42 -0
- package/symbols/power_factor_meter_vert.ts +16 -0
package/dist/index.d.ts
CHANGED
@@ -117,6 +117,8 @@ declare const _default: {
|
|
117
117
|
potentiometer_vert: undefined;
|
118
118
|
potentiometer2_horz: undefined;
|
119
119
|
potentiometer2_vert: undefined;
|
120
|
+
power_factor_meter_horz: undefined;
|
121
|
+
power_factor_meter_vert: undefined;
|
120
122
|
push_button_normally_closed_momentary_horz: undefined;
|
121
123
|
push_button_normally_closed_momentary_vert: undefined;
|
122
124
|
push_button_normally_open_momentary_horz: undefined;
|
@@ -135,7 +137,7 @@ declare const _default: {
|
|
135
137
|
zener_diode_vert: undefined;
|
136
138
|
};
|
137
139
|
|
138
|
-
type BaseSymbolName = "ac_voltmeter | avalanche_diode | boxresistor | capacitor | dc_ammeter | dc_voltmeter | diode | fuse | led | mosfet_depletion_normally_on | photodiode | potentiometer | potentiometer2 | push_button_normally_closed_momentary | push_button_normally_open_momentary | schottky_diode | tunnel_diode | varactor_diode | varistor | volt_meter | zener_diode";
|
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";
|
139
141
|
|
140
142
|
/**
|
141
143
|
* Utility for easier autocomplete:
|
package/dist/index.js
CHANGED
@@ -2454,6 +2454,147 @@ var potentiometer2_horz_default = defineSymbol({
|
|
2454
2454
|
// symbols/potentiometer2_vert.ts
|
2455
2455
|
var potentiometer2_vert_default = rotateSymbol(potentiometer2_horz_default);
|
2456
2456
|
|
2457
|
+
// assets/generated/power_factor_meter.json
|
2458
|
+
var power_factor_meter_default = {
|
2459
|
+
paths: {
|
2460
|
+
path11: {
|
2461
|
+
type: "path",
|
2462
|
+
points: [
|
2463
|
+
{
|
2464
|
+
x: -0.5307178,
|
2465
|
+
y: 0
|
2466
|
+
},
|
2467
|
+
{
|
2468
|
+
x: -0.3042887999999997,
|
2469
|
+
y: 0
|
2470
|
+
}
|
2471
|
+
],
|
2472
|
+
color: "primary",
|
2473
|
+
fill: false
|
2474
|
+
},
|
2475
|
+
path12: {
|
2476
|
+
type: "path",
|
2477
|
+
points: [
|
2478
|
+
{
|
2479
|
+
x: 0.2899773000000003,
|
2480
|
+
y: 0
|
2481
|
+
},
|
2482
|
+
{
|
2483
|
+
x: 0.5307178000000001,
|
2484
|
+
y: 0
|
2485
|
+
}
|
2486
|
+
],
|
2487
|
+
color: "primary",
|
2488
|
+
fill: false
|
2489
|
+
}
|
2490
|
+
},
|
2491
|
+
texts: {
|
2492
|
+
top1: {
|
2493
|
+
type: "text",
|
2494
|
+
text: "{REF}",
|
2495
|
+
x: -0.16538809999999904,
|
2496
|
+
y: -0.36705149999999964
|
2497
|
+
},
|
2498
|
+
bottom1: {
|
2499
|
+
type: "text",
|
2500
|
+
text: "{VAL}",
|
2501
|
+
x: -0.0066096999999991635,
|
2502
|
+
y: 0.42330070000000064
|
2503
|
+
},
|
2504
|
+
left1: {
|
2505
|
+
type: "text",
|
2506
|
+
text: "COS \u03C6",
|
2507
|
+
x: -0.14859499999999937,
|
2508
|
+
y: 0.014279000000000375
|
2509
|
+
}
|
2510
|
+
},
|
2511
|
+
refblocks: {
|
2512
|
+
left1: {
|
2513
|
+
x: -0.5446330999999993,
|
2514
|
+
y: 852800000000542e-18
|
2515
|
+
},
|
2516
|
+
right1: {
|
2517
|
+
x: 0.5381638000000004,
|
2518
|
+
y: -14359999999924433e-20
|
2519
|
+
}
|
2520
|
+
},
|
2521
|
+
bounds: {
|
2522
|
+
minX: -0.5307178,
|
2523
|
+
maxX: 0.5307178000000001,
|
2524
|
+
minY: 0,
|
2525
|
+
maxY: 0,
|
2526
|
+
width: 1.0614356000000003,
|
2527
|
+
height: 1,
|
2528
|
+
centerX: 5551115123125783e-32,
|
2529
|
+
centerY: 0
|
2530
|
+
},
|
2531
|
+
circles: {
|
2532
|
+
path1: {
|
2533
|
+
type: "circle",
|
2534
|
+
x: -0.006997299999999651,
|
2535
|
+
y: -0.007128299999999532,
|
2536
|
+
radius: 0.28854213,
|
2537
|
+
color: "primary",
|
2538
|
+
fill: false
|
2539
|
+
}
|
2540
|
+
}
|
2541
|
+
};
|
2542
|
+
|
2543
|
+
// symbols/power_factor_meter_horz.ts
|
2544
|
+
var { paths: paths14, texts: texts14, bounds: bounds14, refblocks: refblocks14, circles: circles6 } = power_factor_meter_default;
|
2545
|
+
var power_factor_meter_horz_default = defineSymbol({
|
2546
|
+
primitives: [
|
2547
|
+
...Object.values(paths14),
|
2548
|
+
...Object.values(circles6),
|
2549
|
+
// { ...texts.top1, anchor: "middle_left" },
|
2550
|
+
{
|
2551
|
+
type: "text",
|
2552
|
+
text: "{REF}",
|
2553
|
+
x: -0.15,
|
2554
|
+
y: -0.42330070000000064,
|
2555
|
+
anchor: "middle_left"
|
2556
|
+
},
|
2557
|
+
// { ...texts.bottom1, anchor: "middle_left" },
|
2558
|
+
{
|
2559
|
+
type: "text",
|
2560
|
+
text: "{VAL}",
|
2561
|
+
x: -0.15,
|
2562
|
+
y: 0.42330070000000064,
|
2563
|
+
anchor: "middle_left"
|
2564
|
+
},
|
2565
|
+
// { ...texts.left1, anchor: "middle_left" },
|
2566
|
+
{
|
2567
|
+
type: "text",
|
2568
|
+
text: "COS \u03C6",
|
2569
|
+
x: -0.14,
|
2570
|
+
y: 0.014279000000000375,
|
2571
|
+
anchor: "middle-left"
|
2572
|
+
}
|
2573
|
+
],
|
2574
|
+
ports: [
|
2575
|
+
{ ...refblocks14.left1, labels: ["1"] },
|
2576
|
+
// TODO add more "standard" labels
|
2577
|
+
{ ...refblocks14.right1, labels: ["2"] }
|
2578
|
+
// TODO add more "standard" labels
|
2579
|
+
],
|
2580
|
+
size: { width: bounds14.width, height: bounds14.height },
|
2581
|
+
center: { x: bounds14.centerX, y: bounds14.centerY }
|
2582
|
+
});
|
2583
|
+
|
2584
|
+
// symbols/power_factor_meter_vert.ts
|
2585
|
+
var rotatedSymbol5 = rotateSymbol(power_factor_meter_horz_default);
|
2586
|
+
var texts15 = rotatedSymbol5.primitives.filter((p) => p.type === "text");
|
2587
|
+
var ref5 = texts15.find((t) => t.text === "{REF}");
|
2588
|
+
var val4 = texts15.find((t) => t.text === "{VAL}");
|
2589
|
+
var text_cos = texts15.find((t) => t.text === "COS \u03C6");
|
2590
|
+
ref5.x = 0.35;
|
2591
|
+
ref5.y = 0;
|
2592
|
+
val4.x = -0.6;
|
2593
|
+
val4.y = 0;
|
2594
|
+
text_cos.x = -0.1;
|
2595
|
+
text_cos.y = 0;
|
2596
|
+
var power_factor_meter_vert_default = rotatedSymbol5;
|
2597
|
+
|
2457
2598
|
// assets/generated/push_button_normally_closed_momentary.json
|
2458
2599
|
var push_button_normally_closed_momentary_default = {
|
2459
2600
|
paths: {
|
@@ -2555,37 +2696,37 @@ var push_button_normally_closed_momentary_default = {
|
|
2555
2696
|
};
|
2556
2697
|
|
2557
2698
|
// symbols/push_button_normally_closed_momentary_horz.ts
|
2558
|
-
var { paths:
|
2699
|
+
var { paths: paths15, texts: texts16, bounds: bounds15, refblocks: refblocks15 } = push_button_normally_closed_momentary_default;
|
2559
2700
|
var push_button_normally_closed_momentary_horz_default = defineSymbol({
|
2560
2701
|
primitives: [
|
2561
|
-
...Object.values(
|
2562
|
-
{ ...
|
2563
|
-
{ ...
|
2702
|
+
...Object.values(paths15),
|
2703
|
+
{ ...texts16.top1, anchor: "middle_bottom" },
|
2704
|
+
{ ...texts16.bottom1, anchor: "middle_top" }
|
2564
2705
|
],
|
2565
2706
|
ports: [
|
2566
|
-
{ ...
|
2707
|
+
{ ...refblocks15.left1, labels: ["1"] },
|
2567
2708
|
// TODO add more "standard" labels
|
2568
|
-
{ ...
|
2709
|
+
{ ...refblocks15.right1, labels: ["2"] }
|
2569
2710
|
// TODO add more "standard" labels
|
2570
2711
|
],
|
2571
|
-
size: { width:
|
2572
|
-
center: { x:
|
2712
|
+
size: { width: bounds15.width, height: bounds15.height },
|
2713
|
+
center: { x: bounds15.centerX, y: bounds15.centerY }
|
2573
2714
|
});
|
2574
2715
|
|
2575
2716
|
// symbols/push_button_normally_closed_momentary_vert.ts
|
2576
2717
|
var rotated5 = rotateSymbol(push_button_normally_closed_momentary_horz_default);
|
2577
|
-
var
|
2718
|
+
var ref6 = rotated5.primitives.find(
|
2578
2719
|
(p) => p.type === "text" && p.text === "{REF}"
|
2579
2720
|
);
|
2580
|
-
var
|
2721
|
+
var val5 = rotated5.primitives.find(
|
2581
2722
|
(p) => p.type === "text" && p.text === "{VAL}"
|
2582
2723
|
);
|
2583
|
-
|
2584
|
-
|
2585
|
-
|
2586
|
-
|
2587
|
-
|
2588
|
-
|
2724
|
+
ref6.anchor = "middle_left";
|
2725
|
+
val5.anchor = "middle_right";
|
2726
|
+
ref6.x = ref6.x - 0.03;
|
2727
|
+
ref6.y = ref6.y;
|
2728
|
+
val5.x = val5.x;
|
2729
|
+
val5.y = 0;
|
2589
2730
|
var push_button_normally_closed_momentary_vert_default = rotated5;
|
2590
2731
|
|
2591
2732
|
// assets/generated/push_button_normally_open_momentary.json
|
@@ -2689,37 +2830,37 @@ var push_button_normally_open_momentary_default = {
|
|
2689
2830
|
};
|
2690
2831
|
|
2691
2832
|
// symbols/push_button_normally_open_momentary_horz.ts
|
2692
|
-
var { paths:
|
2833
|
+
var { paths: paths16, texts: texts17, bounds: bounds16, refblocks: refblocks16 } = push_button_normally_open_momentary_default;
|
2693
2834
|
var push_button_normally_open_momentary_horz_default = defineSymbol({
|
2694
2835
|
primitives: [
|
2695
|
-
...Object.values(
|
2696
|
-
{ ...
|
2697
|
-
{ ...
|
2836
|
+
...Object.values(paths16),
|
2837
|
+
{ ...texts17.top1, anchor: "middle_bottom" },
|
2838
|
+
{ ...texts17.bottom1, anchor: "middle_top" }
|
2698
2839
|
],
|
2699
2840
|
ports: [
|
2700
|
-
{ ...
|
2841
|
+
{ ...refblocks16.left1, labels: ["1"] },
|
2701
2842
|
// TODO add more "standard" labels
|
2702
|
-
{ ...
|
2843
|
+
{ ...refblocks16.right1, labels: ["2"] }
|
2703
2844
|
// TODO add more "standard" labels
|
2704
2845
|
],
|
2705
|
-
size: { width:
|
2706
|
-
center: { x:
|
2846
|
+
size: { width: bounds16.width, height: bounds16.height },
|
2847
|
+
center: { x: bounds16.centerX, y: bounds16.centerY }
|
2707
2848
|
});
|
2708
2849
|
|
2709
2850
|
// symbols/push_button_normally_open_momentary_vert.ts
|
2710
2851
|
var rotated6 = rotateSymbol(push_button_normally_open_momentary_horz_default);
|
2711
|
-
var
|
2852
|
+
var ref7 = rotated6.primitives.find(
|
2712
2853
|
(p) => p.type === "text" && p.text === "{REF}"
|
2713
2854
|
);
|
2714
|
-
var
|
2855
|
+
var val6 = rotated6.primitives.find(
|
2715
2856
|
(p) => p.type === "text" && p.text === "{VAL}"
|
2716
2857
|
);
|
2717
|
-
|
2718
|
-
|
2719
|
-
|
2720
|
-
|
2721
|
-
|
2722
|
-
|
2858
|
+
ref7.anchor = "middle_left";
|
2859
|
+
val6.anchor = "middle_right";
|
2860
|
+
ref7.x = ref7.x + 0.1;
|
2861
|
+
ref7.y = ref7.y;
|
2862
|
+
val6.x = val6.x;
|
2863
|
+
val6.y = 0;
|
2723
2864
|
var push_button_normally_open_momentary_vert_default = rotated6;
|
2724
2865
|
|
2725
2866
|
// assets/generated/schottky_diode.json
|
@@ -2914,34 +3055,34 @@ var schottky_diode_default = {
|
|
2914
3055
|
};
|
2915
3056
|
|
2916
3057
|
// symbols/schottky_diode_horz.ts
|
2917
|
-
var { paths:
|
3058
|
+
var { paths: paths17, texts: texts18, bounds: bounds17, refblocks: refblocks17, circles: circles7 } = schottky_diode_default;
|
2918
3059
|
var schottky_diode_horz_default = defineSymbol({
|
2919
3060
|
primitives: [
|
2920
|
-
...Object.values(
|
2921
|
-
...Object.values(
|
2922
|
-
{ ...
|
2923
|
-
{ ...
|
3061
|
+
...Object.values(paths17),
|
3062
|
+
...Object.values(circles7),
|
3063
|
+
{ ...texts18.top1, anchor: "middle_bottom" },
|
3064
|
+
{ ...texts18.bottom1, anchor: "middle_top" }
|
2924
3065
|
],
|
2925
3066
|
ports: [
|
2926
|
-
{ ...
|
3067
|
+
{ ...refblocks17.left1, labels: ["1"] },
|
2927
3068
|
// TODO add more "standard" labels
|
2928
|
-
{ ...
|
3069
|
+
{ ...refblocks17.right1, labels: ["2"] }
|
2929
3070
|
// TODO add more "standard" labels
|
2930
3071
|
],
|
2931
|
-
size: { width:
|
2932
|
-
center: { x:
|
3072
|
+
size: { width: bounds17.width, height: bounds17.height },
|
3073
|
+
center: { x: bounds17.centerX, y: bounds17.centerY }
|
2933
3074
|
});
|
2934
3075
|
|
2935
3076
|
// symbols/schottky_diode_vert.ts
|
2936
3077
|
var rotated7 = rotateSymbol(schottky_diode_horz_default);
|
2937
|
-
var
|
3078
|
+
var ref8 = rotated7.primitives.find(
|
2938
3079
|
(p) => p.type === "text" && p.text === "{REF}"
|
2939
3080
|
);
|
2940
|
-
var
|
3081
|
+
var val7 = rotated7.primitives.find(
|
2941
3082
|
(p) => p.type === "text" && p.text === "{VAL}"
|
2942
3083
|
);
|
2943
|
-
|
2944
|
-
|
3084
|
+
ref8.anchor = "middle_left";
|
3085
|
+
val7.anchor = "middle_right";
|
2945
3086
|
var schottky_diode_vert_default = rotated7;
|
2946
3087
|
|
2947
3088
|
// assets/generated/tunnel_diode.json
|
@@ -3106,34 +3247,34 @@ var tunnel_diode_default = {
|
|
3106
3247
|
};
|
3107
3248
|
|
3108
3249
|
// symbols/tunnel_diode_horz.ts
|
3109
|
-
var { paths:
|
3250
|
+
var { paths: paths18, texts: texts19, bounds: bounds18, refblocks: refblocks18, circles: circles8 } = tunnel_diode_default;
|
3110
3251
|
var tunnel_diode_horz_default = defineSymbol({
|
3111
3252
|
primitives: [
|
3112
|
-
...Object.values(
|
3113
|
-
...Object.values(
|
3114
|
-
{ ...
|
3115
|
-
{ ...
|
3253
|
+
...Object.values(paths18),
|
3254
|
+
...Object.values(circles8),
|
3255
|
+
{ ...texts19.top1, anchor: "middle_bottom" },
|
3256
|
+
{ ...texts19.bottom1, anchor: "middle_top" }
|
3116
3257
|
],
|
3117
3258
|
ports: [
|
3118
|
-
{ ...
|
3259
|
+
{ ...refblocks18.left1, labels: ["1"] },
|
3119
3260
|
// TODO add more "standard" labels
|
3120
|
-
{ ...
|
3261
|
+
{ ...refblocks18.right1, labels: ["2"] }
|
3121
3262
|
// TODO add more "standard" labels
|
3122
3263
|
],
|
3123
|
-
size: { width:
|
3124
|
-
center: { x:
|
3264
|
+
size: { width: bounds18.width, height: bounds18.height },
|
3265
|
+
center: { x: bounds18.centerX, y: bounds18.centerY }
|
3125
3266
|
});
|
3126
3267
|
|
3127
3268
|
// symbols/tunnel_diode_vert.ts
|
3128
3269
|
var rotated8 = rotateSymbol(tunnel_diode_horz_default);
|
3129
|
-
var
|
3270
|
+
var ref9 = rotated8.primitives.find(
|
3130
3271
|
(p) => p.type === "text" && p.text === "{REF}"
|
3131
3272
|
);
|
3132
|
-
var
|
3273
|
+
var val8 = rotated8.primitives.find(
|
3133
3274
|
(p) => p.type === "text" && p.text === "{VAL}"
|
3134
3275
|
);
|
3135
|
-
|
3136
|
-
|
3276
|
+
ref9.anchor = "middle_left";
|
3277
|
+
val8.anchor = "middle_right";
|
3137
3278
|
var tunnel_diode_vert_default = rotated8;
|
3138
3279
|
|
3139
3280
|
// assets/generated/varactor_diode.json
|
@@ -3283,34 +3424,34 @@ var varactor_diode_default = {
|
|
3283
3424
|
};
|
3284
3425
|
|
3285
3426
|
// symbols/varactor_diode_horz.ts
|
3286
|
-
var { paths:
|
3427
|
+
var { paths: paths19, texts: texts20, bounds: bounds19, refblocks: refblocks19, circles: circles9 } = varactor_diode_default;
|
3287
3428
|
var varactor_diode_horz_default = defineSymbol({
|
3288
3429
|
primitives: [
|
3289
|
-
...Object.values(
|
3290
|
-
...Object.values(
|
3291
|
-
{ ...
|
3292
|
-
{ ...
|
3430
|
+
...Object.values(paths19),
|
3431
|
+
...Object.values(circles9),
|
3432
|
+
{ ...texts20.top1, anchor: "middle_bottom" },
|
3433
|
+
{ ...texts20.bottom1, anchor: "middle_top" }
|
3293
3434
|
],
|
3294
3435
|
ports: [
|
3295
|
-
{ ...
|
3436
|
+
{ ...refblocks19.left1, labels: ["1"] },
|
3296
3437
|
// TODO add more "standard" labels
|
3297
|
-
{ ...
|
3438
|
+
{ ...refblocks19.right1, labels: ["2"] }
|
3298
3439
|
// TODO add more "standard" labels
|
3299
3440
|
],
|
3300
|
-
size: { width:
|
3301
|
-
center: { x:
|
3441
|
+
size: { width: bounds19.width, height: bounds19.height },
|
3442
|
+
center: { x: bounds19.centerX, y: bounds19.centerY }
|
3302
3443
|
});
|
3303
3444
|
|
3304
3445
|
// symbols/varactor_diode_vert.ts
|
3305
3446
|
var rotated9 = rotateSymbol(varactor_diode_horz_default);
|
3306
|
-
var
|
3447
|
+
var ref10 = rotated9.primitives.find(
|
3307
3448
|
(p) => p.type === "text" && p.text === "{REF}"
|
3308
3449
|
);
|
3309
|
-
var
|
3450
|
+
var val9 = rotated9.primitives.find(
|
3310
3451
|
(p) => p.type === "text" && p.text === "{VAL}"
|
3311
3452
|
);
|
3312
|
-
|
3313
|
-
|
3453
|
+
ref10.anchor = "middle_left";
|
3454
|
+
val9.anchor = "middle_right";
|
3314
3455
|
var varactor_diode_vert_default = rotated9;
|
3315
3456
|
|
3316
3457
|
// assets/generated/varistor.json
|
@@ -3445,26 +3586,26 @@ var varistor_default = {
|
|
3445
3586
|
};
|
3446
3587
|
|
3447
3588
|
// symbols/varistor_horz.ts
|
3448
|
-
var { paths:
|
3589
|
+
var { paths: paths20, texts: texts21, bounds: bounds20, refblocks: refblocks20 } = varistor_default;
|
3449
3590
|
var varistor_horz_default = defineSymbol({
|
3450
3591
|
primitives: [
|
3451
|
-
...Object.values(
|
3452
|
-
{ ...
|
3453
|
-
{ ...
|
3592
|
+
...Object.values(paths20),
|
3593
|
+
{ ...texts21.top1, anchor: "middle_left" },
|
3594
|
+
{ ...texts21.bottom1, anchor: "middle_right" }
|
3454
3595
|
],
|
3455
3596
|
ports: [
|
3456
3597
|
{
|
3457
|
-
...
|
3598
|
+
...refblocks20.left1,
|
3458
3599
|
labels: ["1", "-"]
|
3459
3600
|
},
|
3460
3601
|
{
|
3461
|
-
...
|
3602
|
+
...refblocks20.right1,
|
3462
3603
|
labels: ["2", "+"]
|
3463
3604
|
}
|
3464
3605
|
],
|
3465
|
-
size: { width:
|
3606
|
+
size: { width: bounds20.width, height: bounds20.height },
|
3466
3607
|
//{ width: 1, height: 0.24 },
|
3467
|
-
center: { x:
|
3608
|
+
center: { x: bounds20.centerX, y: bounds20.centerY }
|
3468
3609
|
});
|
3469
3610
|
|
3470
3611
|
// symbols/varistor_vert.ts
|
@@ -3570,11 +3711,11 @@ var volt_meter_default = {
|
|
3570
3711
|
};
|
3571
3712
|
|
3572
3713
|
// symbols/volt_meter_horz.ts
|
3573
|
-
var { paths:
|
3714
|
+
var { paths: paths21, texts: texts22, bounds: bounds21, circles: circles10, refblocks: refblocks21 } = volt_meter_default;
|
3574
3715
|
var volt_meter_horz_default = defineSymbol({
|
3575
3716
|
primitives: [
|
3576
|
-
...Object.values(
|
3577
|
-
...Object.values(
|
3717
|
+
...Object.values(paths21),
|
3718
|
+
...Object.values(circles10),
|
3578
3719
|
{
|
3579
3720
|
type: "text",
|
3580
3721
|
text: "{REF}",
|
@@ -3591,13 +3732,13 @@ var volt_meter_horz_default = defineSymbol({
|
|
3591
3732
|
}
|
3592
3733
|
],
|
3593
3734
|
ports: [
|
3594
|
-
{ ...
|
3735
|
+
{ ...refblocks21.left1, labels: ["1"] },
|
3595
3736
|
// TODO add more "standard" labels
|
3596
|
-
{ ...
|
3737
|
+
{ ...refblocks21.right1, labels: ["2"] }
|
3597
3738
|
// TODO add more "standard" labels
|
3598
3739
|
],
|
3599
|
-
size: { width:
|
3600
|
-
center: { x:
|
3740
|
+
size: { width: bounds21.width, height: bounds21.height },
|
3741
|
+
center: { x: bounds21.centerX, y: bounds21.centerY }
|
3601
3742
|
});
|
3602
3743
|
|
3603
3744
|
// symbols/volt_meter_vert.ts
|
@@ -3750,34 +3891,34 @@ var zener_diode_default = {
|
|
3750
3891
|
};
|
3751
3892
|
|
3752
3893
|
// symbols/zener_diode_horz.ts
|
3753
|
-
var { paths:
|
3894
|
+
var { paths: paths22, texts: texts23, bounds: bounds22, refblocks: refblocks22, circles: circles11 } = zener_diode_default;
|
3754
3895
|
var zener_diode_horz_default = defineSymbol({
|
3755
3896
|
primitives: [
|
3756
|
-
...Object.values(
|
3757
|
-
...Object.values(
|
3758
|
-
{ ...
|
3759
|
-
{ ...
|
3897
|
+
...Object.values(paths22),
|
3898
|
+
...Object.values(circles11),
|
3899
|
+
{ ...texts23.top1, anchor: "middle_bottom" },
|
3900
|
+
{ ...texts23.bottom1, anchor: "middle_top" }
|
3760
3901
|
],
|
3761
3902
|
ports: [
|
3762
|
-
{ ...
|
3903
|
+
{ ...refblocks22.left1, labels: ["1"] },
|
3763
3904
|
// TODO add more "standard" labels
|
3764
|
-
{ ...
|
3905
|
+
{ ...refblocks22.right1, labels: ["2"] }
|
3765
3906
|
// TODO add more "standard" labels
|
3766
3907
|
],
|
3767
|
-
size: { width:
|
3768
|
-
center: { x:
|
3908
|
+
size: { width: bounds22.width, height: bounds22.height },
|
3909
|
+
center: { x: bounds22.centerX, y: bounds22.centerY }
|
3769
3910
|
});
|
3770
3911
|
|
3771
3912
|
// symbols/zener_diode_vert.ts
|
3772
3913
|
var rotated10 = rotateSymbol(zener_diode_horz_default);
|
3773
|
-
var
|
3914
|
+
var ref11 = rotated10.primitives.find(
|
3774
3915
|
(p) => p.type === "text" && p.text === "{REF}"
|
3775
3916
|
);
|
3776
|
-
var
|
3917
|
+
var val10 = rotated10.primitives.find(
|
3777
3918
|
(p) => p.type === "text" && p.text === "{VAL}"
|
3778
3919
|
);
|
3779
|
-
|
3780
|
-
|
3920
|
+
ref11.anchor = "middle_left";
|
3921
|
+
val10.anchor = "middle_right";
|
3781
3922
|
var zener_diode_vert_default = rotated10;
|
3782
3923
|
|
3783
3924
|
// generated/symbols-index.ts
|
@@ -3808,6 +3949,8 @@ var symbols_index_default = {
|
|
3808
3949
|
"potentiometer_vert": potentiometer_vert_default,
|
3809
3950
|
"potentiometer2_horz": potentiometer2_horz_default,
|
3810
3951
|
"potentiometer2_vert": potentiometer2_vert_default,
|
3952
|
+
"power_factor_meter_horz": power_factor_meter_horz_default,
|
3953
|
+
"power_factor_meter_vert": power_factor_meter_vert_default,
|
3811
3954
|
"push_button_normally_closed_momentary_horz": push_button_normally_closed_momentary_horz_default,
|
3812
3955
|
"push_button_normally_closed_momentary_vert": push_button_normally_closed_momentary_vert_default,
|
3813
3956
|
"push_button_normally_open_momentary_horz": push_button_normally_open_momentary_horz_default,
|