schematic-symbols 0.0.95 → 0.0.97
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +9 -1
- package/dist/index.js +249 -158
- package/dist/index.js.map +1 -1
- package/drawing/rotateSymbol.ts +159 -1
- package/package.json +1 -1
- package/symbols/led_left.ts +2 -2
- package/symbols/led_up.ts +24 -1
- package/symbols/potentiometer2_horz.ts +2 -2
- package/symbols/potentiometer2_vert.ts +11 -1
package/dist/index.js
CHANGED
@@ -194,7 +194,7 @@ var ac_voltmeter_horz_default = defineSymbol({
|
|
194
194
|
});
|
195
195
|
|
196
196
|
// drawing/rotateSymbol.ts
|
197
|
-
import { rotate, applyToPoint } from "transformation-matrix";
|
197
|
+
import { rotate, applyToPoint, transform } from "transformation-matrix";
|
198
198
|
var rotateAnchor = (anchor, orientation = "right") => {
|
199
199
|
switch (orientation) {
|
200
200
|
case "up":
|
@@ -238,6 +238,75 @@ var rotateAnchor = (anchor, orientation = "right") => {
|
|
238
238
|
}
|
239
239
|
return anchor;
|
240
240
|
};
|
241
|
+
var flipSymbolOverYAxis = (symbol, overrides) => {
|
242
|
+
const { primitives, center, ports, size } = symbol;
|
243
|
+
const transformMatrix = transform({
|
244
|
+
a: -1,
|
245
|
+
b: 0,
|
246
|
+
c: 0,
|
247
|
+
d: 1,
|
248
|
+
e: 0,
|
249
|
+
f: 2 * center.x
|
250
|
+
});
|
251
|
+
const flippedPrimitives = primitives.map((primitive) => {
|
252
|
+
primitive = { ...primitive };
|
253
|
+
switch (primitive.type) {
|
254
|
+
case "path":
|
255
|
+
return {
|
256
|
+
...primitive,
|
257
|
+
points: primitive.points.map(
|
258
|
+
(point) => applyToPoint(transformMatrix, point)
|
259
|
+
)
|
260
|
+
};
|
261
|
+
case "text":
|
262
|
+
const flippedPoint = applyToPoint(transformMatrix, {
|
263
|
+
x: primitive.x,
|
264
|
+
y: primitive.y
|
265
|
+
});
|
266
|
+
const anchorMap = {
|
267
|
+
top_left: "top_right",
|
268
|
+
top_right: "top_left",
|
269
|
+
bottom_left: "bottom_right",
|
270
|
+
bottom_right: "bottom_left",
|
271
|
+
center: "center",
|
272
|
+
middle_top: "middle_top",
|
273
|
+
middle_bottom: "middle_bottom",
|
274
|
+
middle_left: "middle_right",
|
275
|
+
middle_right: "middle_left"
|
276
|
+
};
|
277
|
+
return {
|
278
|
+
...primitive,
|
279
|
+
x: flippedPoint.x,
|
280
|
+
y: flippedPoint.y,
|
281
|
+
anchor: anchorMap[primitive.anchor]
|
282
|
+
};
|
283
|
+
case "circle":
|
284
|
+
case "box":
|
285
|
+
const flippedCenter = applyToPoint(transformMatrix, {
|
286
|
+
x: primitive.x,
|
287
|
+
y: primitive.y
|
288
|
+
});
|
289
|
+
return {
|
290
|
+
...primitive,
|
291
|
+
x: flippedCenter.x,
|
292
|
+
y: flippedCenter.y
|
293
|
+
};
|
294
|
+
}
|
295
|
+
});
|
296
|
+
const flippedPorts = ports.map(
|
297
|
+
(port) => ({
|
298
|
+
...port,
|
299
|
+
...applyToPoint(transformMatrix, port)
|
300
|
+
})
|
301
|
+
);
|
302
|
+
return {
|
303
|
+
primitives: flippedPrimitives,
|
304
|
+
center,
|
305
|
+
ports: flippedPorts,
|
306
|
+
size,
|
307
|
+
...overrides
|
308
|
+
};
|
309
|
+
};
|
241
310
|
var rotateSymbol = (symbol, orientation, overrides) => {
|
242
311
|
const angleMap = {
|
243
312
|
up: -Math.PI / 2,
|
@@ -245,7 +314,7 @@ var rotateSymbol = (symbol, orientation, overrides) => {
|
|
245
314
|
down: Math.PI / 2,
|
246
315
|
left: -Math.PI
|
247
316
|
};
|
248
|
-
const
|
317
|
+
const transform2 = rotate(
|
249
318
|
orientation ? angleMap[orientation] : Math.PI / 2,
|
250
319
|
symbol.center.x,
|
251
320
|
symbol.center.y
|
@@ -258,11 +327,11 @@ var rotateSymbol = (symbol, orientation, overrides) => {
|
|
258
327
|
return {
|
259
328
|
...primitive,
|
260
329
|
points: primitive.points.map(
|
261
|
-
(point) => applyToPoint(
|
330
|
+
(point) => applyToPoint(transform2, point)
|
262
331
|
)
|
263
332
|
};
|
264
333
|
case "text":
|
265
|
-
const rotatedPoint = applyToPoint(
|
334
|
+
const rotatedPoint = applyToPoint(transform2, {
|
266
335
|
x: primitive.x,
|
267
336
|
y: primitive.y
|
268
337
|
});
|
@@ -276,7 +345,7 @@ var rotateSymbol = (symbol, orientation, overrides) => {
|
|
276
345
|
y: rotatedPoint.y
|
277
346
|
};
|
278
347
|
case "circle":
|
279
|
-
const rotatedCenter = applyToPoint(
|
348
|
+
const rotatedCenter = applyToPoint(transform2, {
|
280
349
|
x: primitive.x,
|
281
350
|
y: primitive.y
|
282
351
|
});
|
@@ -286,7 +355,7 @@ var rotateSymbol = (symbol, orientation, overrides) => {
|
|
286
355
|
y: rotatedCenter.y
|
287
356
|
};
|
288
357
|
case "box":
|
289
|
-
const rotatedCorner = applyToPoint(
|
358
|
+
const rotatedCorner = applyToPoint(transform2, {
|
290
359
|
x: primitive.x,
|
291
360
|
y: primitive.y
|
292
361
|
});
|
@@ -302,7 +371,7 @@ var rotateSymbol = (symbol, orientation, overrides) => {
|
|
302
371
|
const rotatedPorts = ports.map(
|
303
372
|
(port) => ({
|
304
373
|
...port,
|
305
|
-
...applyToPoint(
|
374
|
+
...applyToPoint(transform2, port)
|
306
375
|
})
|
307
376
|
);
|
308
377
|
return {
|
@@ -5180,10 +5249,26 @@ var led_right_default = defineSymbol({
|
|
5180
5249
|
var led_down_default = rotateSymbol(led_right_default, "down");
|
5181
5250
|
|
5182
5251
|
// symbols/led_left.ts
|
5183
|
-
var led_left_default =
|
5252
|
+
var led_left_default = flipSymbolOverYAxis(led_right_default);
|
5184
5253
|
|
5185
5254
|
// symbols/led_up.ts
|
5186
|
-
var
|
5255
|
+
var baseSymbol = rotateSymbol(led_right_default, "up");
|
5256
|
+
var modifiedSymbol = {
|
5257
|
+
...baseSymbol,
|
5258
|
+
primitives: baseSymbol.primitives.map((primitive) => {
|
5259
|
+
if (primitive.type === "path" && (primitive.points.length === 3 || primitive.points.length === 4)) {
|
5260
|
+
return {
|
5261
|
+
...primitive,
|
5262
|
+
points: primitive.points.map((point) => ({
|
5263
|
+
x: point.x,
|
5264
|
+
y: -point.y + 2 * baseSymbol.center.y
|
5265
|
+
}))
|
5266
|
+
};
|
5267
|
+
}
|
5268
|
+
return primitive;
|
5269
|
+
})
|
5270
|
+
};
|
5271
|
+
var led_up_default = modifiedSymbol;
|
5187
5272
|
|
5188
5273
|
// assets/generated/light_dependent_resistor.json
|
5189
5274
|
var light_dependent_resistor_default = {
|
@@ -8707,8 +8792,8 @@ var { paths: paths38, texts: texts52, bounds: bounds38, refblocks: refblocks38 }
|
|
8707
8792
|
var potentiometer2_horz_default = defineSymbol({
|
8708
8793
|
primitives: [
|
8709
8794
|
...Object.values(paths38),
|
8710
|
-
{ ...texts52.bottom1, anchor: "
|
8711
|
-
{ ...texts52.top1, anchor: "
|
8795
|
+
{ ...texts52.bottom1, anchor: "middle_top" },
|
8796
|
+
{ ...texts52.top1, anchor: "middle_bottom" }
|
8712
8797
|
],
|
8713
8798
|
ports: [
|
8714
8799
|
{ ...refblocks38.left1, labels: ["1"] },
|
@@ -8721,7 +8806,13 @@ var potentiometer2_horz_default = defineSymbol({
|
|
8721
8806
|
});
|
8722
8807
|
|
8723
8808
|
// symbols/potentiometer2_vert.ts
|
8724
|
-
var
|
8809
|
+
var rotated6 = rotateSymbol(potentiometer2_horz_default);
|
8810
|
+
var texts53 = rotated6.primitives.filter((p) => p.type === "text");
|
8811
|
+
var val18 = texts53.find((t) => t.text === "{VAL}");
|
8812
|
+
val18.anchor = "middle_right";
|
8813
|
+
var ref22 = texts53.find((t) => t.text === "{REF}");
|
8814
|
+
ref22.anchor = "middle_left";
|
8815
|
+
var potentiometer2_vert_default = rotated6;
|
8725
8816
|
|
8726
8817
|
// assets/generated/power_factor_meter.json
|
8727
8818
|
var power_factor_meter_default = {
|
@@ -8810,7 +8901,7 @@ var power_factor_meter_default = {
|
|
8810
8901
|
};
|
8811
8902
|
|
8812
8903
|
// symbols/power_factor_meter_horz.ts
|
8813
|
-
var { paths: paths39, texts:
|
8904
|
+
var { paths: paths39, texts: texts54, bounds: bounds39, refblocks: refblocks39, circles: circles33 } = power_factor_meter_default;
|
8814
8905
|
var power_factor_meter_horz_default = defineSymbol({
|
8815
8906
|
primitives: [
|
8816
8907
|
...Object.values(paths39),
|
@@ -8852,14 +8943,14 @@ var power_factor_meter_horz_default = defineSymbol({
|
|
8852
8943
|
|
8853
8944
|
// symbols/power_factor_meter_vert.ts
|
8854
8945
|
var rotatedSymbol22 = rotateSymbol(power_factor_meter_horz_default);
|
8855
|
-
var
|
8856
|
-
var
|
8857
|
-
var
|
8858
|
-
var text_cos =
|
8859
|
-
|
8860
|
-
|
8861
|
-
|
8862
|
-
|
8946
|
+
var texts55 = rotatedSymbol22.primitives.filter((p) => p.type === "text");
|
8947
|
+
var ref23 = texts55.find((t) => t.text === "{REF}");
|
8948
|
+
var val19 = texts55.find((t) => t.text === "{VAL}");
|
8949
|
+
var text_cos = texts55.find((t) => t.text === "COS \u03C6");
|
8950
|
+
ref23.x = 0.35;
|
8951
|
+
ref23.y = 0;
|
8952
|
+
val19.x = -0.6;
|
8953
|
+
val19.y = 0;
|
8863
8954
|
text_cos.x = -0.1;
|
8864
8955
|
text_cos.y = 0;
|
8865
8956
|
var power_factor_meter_vert_default = rotatedSymbol22;
|
@@ -8966,12 +9057,12 @@ var push_button_normally_closed_momentary_default = {
|
|
8966
9057
|
};
|
8967
9058
|
|
8968
9059
|
// symbols/push_button_normally_closed_momentary_horz.ts
|
8969
|
-
var { paths: paths40, texts:
|
9060
|
+
var { paths: paths40, texts: texts56, bounds: bounds40, refblocks: refblocks40 } = push_button_normally_closed_momentary_default;
|
8970
9061
|
var push_button_normally_closed_momentary_horz_default = defineSymbol({
|
8971
9062
|
primitives: [
|
8972
9063
|
...Object.values(paths40),
|
8973
|
-
{ ...
|
8974
|
-
{ ...
|
9064
|
+
{ ...texts56.top1, anchor: "middle_bottom" },
|
9065
|
+
{ ...texts56.bottom1, anchor: "middle_top" }
|
8975
9066
|
],
|
8976
9067
|
ports: [
|
8977
9068
|
{ ...refblocks40.left1, labels: ["1"] },
|
@@ -8984,20 +9075,20 @@ var push_button_normally_closed_momentary_horz_default = defineSymbol({
|
|
8984
9075
|
});
|
8985
9076
|
|
8986
9077
|
// symbols/push_button_normally_closed_momentary_vert.ts
|
8987
|
-
var
|
8988
|
-
var
|
9078
|
+
var rotated7 = rotateSymbol(push_button_normally_closed_momentary_horz_default);
|
9079
|
+
var ref24 = rotated7.primitives.find(
|
8989
9080
|
(p) => p.type === "text" && p.text === "{REF}"
|
8990
9081
|
);
|
8991
|
-
var
|
9082
|
+
var val20 = rotated7.primitives.find(
|
8992
9083
|
(p) => p.type === "text" && p.text === "{VAL}"
|
8993
9084
|
);
|
8994
|
-
|
8995
|
-
|
8996
|
-
|
8997
|
-
|
8998
|
-
|
8999
|
-
|
9000
|
-
var push_button_normally_closed_momentary_vert_default =
|
9085
|
+
ref24.anchor = "middle_left";
|
9086
|
+
val20.anchor = "middle_right";
|
9087
|
+
ref24.x = ref24.x - 0.03;
|
9088
|
+
ref24.y = ref24.y;
|
9089
|
+
val20.x = val20.x;
|
9090
|
+
val20.y = 0;
|
9091
|
+
var push_button_normally_closed_momentary_vert_default = rotated7;
|
9001
9092
|
|
9002
9093
|
// assets/generated/push_button_normally_open_momentary.json
|
9003
9094
|
var push_button_normally_open_momentary_default = {
|
@@ -9101,12 +9192,12 @@ var push_button_normally_open_momentary_default = {
|
|
9101
9192
|
};
|
9102
9193
|
|
9103
9194
|
// symbols/push_button_normally_open_momentary_horz.ts
|
9104
|
-
var { paths: paths41, texts:
|
9195
|
+
var { paths: paths41, texts: texts57, bounds: bounds41, refblocks: refblocks41 } = push_button_normally_open_momentary_default;
|
9105
9196
|
var push_button_normally_open_momentary_horz_default = defineSymbol({
|
9106
9197
|
primitives: [
|
9107
9198
|
...Object.values(paths41),
|
9108
|
-
{ ...
|
9109
|
-
{ ...
|
9199
|
+
{ ...texts57.top1, anchor: "middle_bottom" },
|
9200
|
+
{ ...texts57.bottom1, anchor: "middle_top" }
|
9110
9201
|
],
|
9111
9202
|
ports: [
|
9112
9203
|
{ ...refblocks41.left1, labels: ["1"] },
|
@@ -9119,20 +9210,20 @@ var push_button_normally_open_momentary_horz_default = defineSymbol({
|
|
9119
9210
|
});
|
9120
9211
|
|
9121
9212
|
// symbols/push_button_normally_open_momentary_vert.ts
|
9122
|
-
var
|
9123
|
-
var
|
9213
|
+
var rotated8 = rotateSymbol(push_button_normally_open_momentary_horz_default);
|
9214
|
+
var ref25 = rotated8.primitives.find(
|
9124
9215
|
(p) => p.type === "text" && p.text === "{REF}"
|
9125
9216
|
);
|
9126
|
-
var
|
9217
|
+
var val21 = rotated8.primitives.find(
|
9127
9218
|
(p) => p.type === "text" && p.text === "{VAL}"
|
9128
9219
|
);
|
9129
|
-
|
9130
|
-
|
9131
|
-
|
9132
|
-
|
9133
|
-
|
9134
|
-
|
9135
|
-
var push_button_normally_open_momentary_vert_default =
|
9220
|
+
ref25.anchor = "middle_left";
|
9221
|
+
val21.anchor = "middle_right";
|
9222
|
+
ref25.x = ref25.x + 0.1;
|
9223
|
+
ref25.y = ref25.y;
|
9224
|
+
val21.x = val21.x;
|
9225
|
+
val21.y = 0;
|
9226
|
+
var push_button_normally_open_momentary_vert_default = rotated8;
|
9136
9227
|
|
9137
9228
|
// assets/generated/rectifier_diode.json
|
9138
9229
|
var rectifier_diode_default = {
|
@@ -9544,13 +9635,13 @@ var rectifier_diode_default = {
|
|
9544
9635
|
};
|
9545
9636
|
|
9546
9637
|
// symbols/rectifier_diode_horz.ts
|
9547
|
-
var { paths: paths42, texts:
|
9638
|
+
var { paths: paths42, texts: texts58, bounds: bounds42, refblocks: refblocks42, circles: circles34 } = rectifier_diode_default;
|
9548
9639
|
var rectifier_diode_horz_default = defineSymbol({
|
9549
9640
|
primitives: [
|
9550
9641
|
...Object.values(paths42),
|
9551
9642
|
...Object.values(circles34),
|
9552
|
-
{ ...
|
9553
|
-
{ ...
|
9643
|
+
{ ...texts58.top1, anchor: "middle_right" },
|
9644
|
+
{ ...texts58.bottom1, anchor: "middle_right" }
|
9554
9645
|
],
|
9555
9646
|
ports: [
|
9556
9647
|
{ ...refblocks42.top1, labels: ["1"] },
|
@@ -9567,16 +9658,16 @@ var rectifier_diode_horz_default = defineSymbol({
|
|
9567
9658
|
});
|
9568
9659
|
|
9569
9660
|
// symbols/rectifier_diode_vert.ts
|
9570
|
-
var
|
9571
|
-
var
|
9661
|
+
var rotated9 = rotateSymbol(rectifier_diode_horz_default);
|
9662
|
+
var ref26 = rotated9.primitives.find(
|
9572
9663
|
(p) => p.type === "text" && p.text === "{REF}"
|
9573
9664
|
);
|
9574
|
-
var
|
9665
|
+
var val22 = rotated9.primitives.find(
|
9575
9666
|
(p) => p.type === "text" && p.text === "{VAL}"
|
9576
9667
|
);
|
9577
|
-
|
9578
|
-
|
9579
|
-
var rectifier_diode_vert_default =
|
9668
|
+
ref26.anchor = "middle_left";
|
9669
|
+
val22.anchor = "middle_right";
|
9670
|
+
var rectifier_diode_vert_default = rotated9;
|
9580
9671
|
|
9581
9672
|
// assets/generated/resonator.json
|
9582
9673
|
var resonator_default = {
|
@@ -9924,7 +10015,7 @@ var resonator_default = {
|
|
9924
10015
|
};
|
9925
10016
|
|
9926
10017
|
// symbols/resonator_horz.ts
|
9927
|
-
var { paths: paths43, texts:
|
10018
|
+
var { paths: paths43, texts: texts59, bounds: bounds43, refblocks: refblocks43, circles: circles35 } = resonator_default;
|
9928
10019
|
var resonator_horz_default = defineSymbol({
|
9929
10020
|
primitives: [
|
9930
10021
|
...Object.values(paths43),
|
@@ -10153,13 +10244,13 @@ var schottky_diode_default = {
|
|
10153
10244
|
};
|
10154
10245
|
|
10155
10246
|
// symbols/schottky_diode_horz.ts
|
10156
|
-
var { paths: paths44, texts:
|
10247
|
+
var { paths: paths44, texts: texts60, bounds: bounds44, refblocks: refblocks44, circles: circles36 } = schottky_diode_default;
|
10157
10248
|
var schottky_diode_horz_default = defineSymbol({
|
10158
10249
|
primitives: [
|
10159
10250
|
...Object.values(paths44),
|
10160
10251
|
...Object.values(circles36),
|
10161
|
-
{ ...
|
10162
|
-
{ ...
|
10252
|
+
{ ...texts60.top1, anchor: "middle_bottom" },
|
10253
|
+
{ ...texts60.bottom1, anchor: "middle_top" }
|
10163
10254
|
],
|
10164
10255
|
ports: [
|
10165
10256
|
{ ...refblocks44.left1, labels: ["1"] },
|
@@ -10172,16 +10263,16 @@ var schottky_diode_horz_default = defineSymbol({
|
|
10172
10263
|
});
|
10173
10264
|
|
10174
10265
|
// symbols/schottky_diode_vert.ts
|
10175
|
-
var
|
10176
|
-
var
|
10266
|
+
var rotated10 = rotateSymbol(schottky_diode_horz_default);
|
10267
|
+
var ref27 = rotated10.primitives.find(
|
10177
10268
|
(p) => p.type === "text" && p.text === "{REF}"
|
10178
10269
|
);
|
10179
|
-
var
|
10270
|
+
var val23 = rotated10.primitives.find(
|
10180
10271
|
(p) => p.type === "text" && p.text === "{VAL}"
|
10181
10272
|
);
|
10182
|
-
|
10183
|
-
|
10184
|
-
var schottky_diode_vert_default =
|
10273
|
+
ref27.anchor = "middle_left";
|
10274
|
+
val23.anchor = "middle_right";
|
10275
|
+
var schottky_diode_vert_default = rotated10;
|
10185
10276
|
|
10186
10277
|
// assets/generated/silicon_controlled_rectifier.json
|
10187
10278
|
var silicon_controlled_rectifier_default = {
|
@@ -10327,13 +10418,13 @@ var silicon_controlled_rectifier_default = {
|
|
10327
10418
|
};
|
10328
10419
|
|
10329
10420
|
// symbols/silicon_controlled_rectifier_horz.ts
|
10330
|
-
var { paths: paths45, texts:
|
10421
|
+
var { paths: paths45, texts: texts61, bounds: bounds45, refblocks: refblocks45, circles: circles37 } = silicon_controlled_rectifier_default;
|
10331
10422
|
var silicon_controlled_rectifier_horz_default = defineSymbol({
|
10332
10423
|
primitives: [
|
10333
10424
|
...Object.values(paths45),
|
10334
10425
|
...Object.values(circles37),
|
10335
|
-
{ ...
|
10336
|
-
{ ...
|
10426
|
+
{ ...texts61.top1, anchor: "middle_left" },
|
10427
|
+
{ ...texts61.bottom1, anchor: "middle_top" }
|
10337
10428
|
],
|
10338
10429
|
ports: [
|
10339
10430
|
{ ...refblocks45.left1, labels: ["1"] },
|
@@ -10349,12 +10440,12 @@ var silicon_controlled_rectifier_horz_default = defineSymbol({
|
|
10349
10440
|
|
10350
10441
|
// symbols/silicon_controlled_rectifier_vert.ts
|
10351
10442
|
var rotatedSymbol23 = rotateSymbol(silicon_controlled_rectifier_horz_default);
|
10352
|
-
var
|
10443
|
+
var texts62 = rotatedSymbol23.primitives.filter(
|
10353
10444
|
(primitive) => primitive.type === "text"
|
10354
10445
|
);
|
10355
|
-
var
|
10356
|
-
|
10357
|
-
|
10446
|
+
var ref28 = texts62.find((text) => text.text === "{REF}");
|
10447
|
+
ref28.y = 0;
|
10448
|
+
ref28.anchor = "middle_left";
|
10358
10449
|
var silicon_controlled_rectifier_vert_default = rotatedSymbol23;
|
10359
10450
|
|
10360
10451
|
// assets/generated/SPDT_switch.json
|
@@ -10475,13 +10566,13 @@ var SPDT_switch_default = {
|
|
10475
10566
|
};
|
10476
10567
|
|
10477
10568
|
// symbols/SPDT_switch_horz.ts
|
10478
|
-
var { paths: paths46, texts:
|
10569
|
+
var { paths: paths46, texts: texts63, bounds: bounds46, refblocks: refblocks46, circles: circles38 } = SPDT_switch_default;
|
10479
10570
|
var SPDT_switch_horz_default = defineSymbol({
|
10480
10571
|
primitives: [
|
10481
10572
|
...Object.values(paths46),
|
10482
10573
|
...Object.values(circles38),
|
10483
|
-
{ ...
|
10484
|
-
{ ...
|
10574
|
+
{ ...texts63.top1, anchor: "middle_bottom", x: -0.01 },
|
10575
|
+
{ ...texts63.bottom1, anchor: "middle_top", x: -0.01 }
|
10485
10576
|
],
|
10486
10577
|
ports: [
|
10487
10578
|
{ ...refblocks46.left1, labels: ["1"] },
|
@@ -10497,15 +10588,15 @@ var SPDT_switch_horz_default = defineSymbol({
|
|
10497
10588
|
|
10498
10589
|
// symbols/SPDT_switch_vert.ts
|
10499
10590
|
var rotatedSymbol24 = rotateSymbol(SPDT_switch_horz_default);
|
10500
|
-
var
|
10501
|
-
var
|
10502
|
-
|
10503
|
-
|
10504
|
-
|
10505
|
-
var
|
10506
|
-
|
10507
|
-
|
10508
|
-
|
10591
|
+
var texts64 = rotatedSymbol24.primitives.filter((p) => p.type === "text");
|
10592
|
+
var val24 = texts64.find((t) => t.text === "{VAL}");
|
10593
|
+
val24.anchor = "middle_right";
|
10594
|
+
val24.x = -0.3;
|
10595
|
+
val24.y = 0;
|
10596
|
+
var ref29 = texts64.find((t) => t.text === "{REF}");
|
10597
|
+
ref29.anchor = "middle_left";
|
10598
|
+
ref29.x = 0.3;
|
10599
|
+
ref29.y = 0;
|
10509
10600
|
var SPDT_switch_vert_default = rotatedSymbol24;
|
10510
10601
|
|
10511
10602
|
// assets/generated/SPST_switch.json
|
@@ -10603,13 +10694,13 @@ var SPST_switch_default = {
|
|
10603
10694
|
};
|
10604
10695
|
|
10605
10696
|
// symbols/SPST_switch_horz.ts
|
10606
|
-
var { paths: paths47, texts:
|
10697
|
+
var { paths: paths47, texts: texts65, bounds: bounds47, refblocks: refblocks47, circles: circles39 } = SPST_switch_default;
|
10607
10698
|
var SPST_switch_horz_default = defineSymbol({
|
10608
10699
|
primitives: [
|
10609
10700
|
...Object.values(paths47),
|
10610
10701
|
...Object.values(circles39),
|
10611
|
-
{ ...
|
10612
|
-
{ ...
|
10702
|
+
{ ...texts65.top1, anchor: "middle_bottom", x: 0 },
|
10703
|
+
{ ...texts65.bottom1, anchor: "middle_top", x: 0 }
|
10613
10704
|
],
|
10614
10705
|
ports: [
|
10615
10706
|
{ ...refblocks47.left1, labels: ["1"] },
|
@@ -10623,15 +10714,15 @@ var SPST_switch_horz_default = defineSymbol({
|
|
10623
10714
|
|
10624
10715
|
// symbols/SPST_switch_vert.ts
|
10625
10716
|
var rotatedSymbol25 = rotateSymbol(SPST_switch_horz_default);
|
10626
|
-
var
|
10627
|
-
var
|
10628
|
-
|
10629
|
-
|
10630
|
-
|
10631
|
-
var
|
10632
|
-
|
10633
|
-
|
10634
|
-
|
10717
|
+
var texts66 = rotatedSymbol25.primitives.filter((p) => p.type === "text");
|
10718
|
+
var val25 = texts66.find((t) => t.text === "{VAL}");
|
10719
|
+
val25.anchor = "middle_right";
|
10720
|
+
val25.x = -0.3;
|
10721
|
+
val25.y = 0;
|
10722
|
+
var ref30 = texts66.find((t) => t.text === "{REF}");
|
10723
|
+
ref30.anchor = "middle_left";
|
10724
|
+
ref30.x = 0.3;
|
10725
|
+
ref30.y = 0;
|
10635
10726
|
var SPST_switch_vert_default = rotatedSymbol25;
|
10636
10727
|
|
10637
10728
|
// assets/generated/step_recovery_diode.json
|
@@ -10796,7 +10887,7 @@ var step_recovery_diode_default = {
|
|
10796
10887
|
};
|
10797
10888
|
|
10798
10889
|
// symbols/step_recovery_diode_horz.ts
|
10799
|
-
var { paths: paths48, texts:
|
10890
|
+
var { paths: paths48, texts: texts67, bounds: bounds48, refblocks: refblocks48, circles: circles40 } = step_recovery_diode_default;
|
10800
10891
|
var step_recovery_diode_horz_default = defineSymbol({
|
10801
10892
|
primitives: [
|
10802
10893
|
...Object.values(paths48),
|
@@ -10918,7 +11009,7 @@ var tachometer_default = {
|
|
10918
11009
|
};
|
10919
11010
|
|
10920
11011
|
// symbols/tachometer_horz.ts
|
10921
|
-
var { paths: paths49, texts:
|
11012
|
+
var { paths: paths49, texts: texts68, bounds: bounds49, refblocks: refblocks49, circles: circles41 } = tachometer_default;
|
10922
11013
|
var tachometer_horz_default = defineSymbol({
|
10923
11014
|
primitives: [
|
10924
11015
|
...Object.values(paths49),
|
@@ -10937,7 +11028,7 @@ var tachometer_horz_default = defineSymbol({
|
|
10937
11028
|
y: 0.35,
|
10938
11029
|
anchor: "middle_top"
|
10939
11030
|
},
|
10940
|
-
{ ...
|
11031
|
+
{ ...texts68.left1, anchor: "center", fontSize: 0.2 }
|
10941
11032
|
],
|
10942
11033
|
ports: [
|
10943
11034
|
{ ...refblocks49.left1, labels: ["1"] },
|
@@ -11154,13 +11245,13 @@ var triac_default = {
|
|
11154
11245
|
};
|
11155
11246
|
|
11156
11247
|
// symbols/triac_horz.ts
|
11157
|
-
var { paths: paths50, texts:
|
11248
|
+
var { paths: paths50, texts: texts69, bounds: bounds50, refblocks: refblocks50, circles: circles42 } = triac_default;
|
11158
11249
|
var triac_horz_default = defineSymbol({
|
11159
11250
|
primitives: [
|
11160
11251
|
...Object.values(paths50),
|
11161
11252
|
...Object.values(circles42),
|
11162
|
-
{ ...
|
11163
|
-
{ ...
|
11253
|
+
{ ...texts69.top1, anchor: "middle_left" },
|
11254
|
+
{ ...texts69.bottom1, anchor: "middle_top" }
|
11164
11255
|
],
|
11165
11256
|
ports: [
|
11166
11257
|
{ ...refblocks50.left1, labels: ["1"] },
|
@@ -11176,13 +11267,13 @@ var triac_horz_default = defineSymbol({
|
|
11176
11267
|
|
11177
11268
|
// symbols/triac_vert.ts
|
11178
11269
|
var rotatedSymbol27 = rotateSymbol(triac_horz_default);
|
11179
|
-
var
|
11270
|
+
var texts70 = rotatedSymbol27.primitives.filter(
|
11180
11271
|
(primitive) => primitive.type === "text"
|
11181
11272
|
);
|
11182
|
-
var
|
11183
|
-
var
|
11184
|
-
|
11185
|
-
|
11273
|
+
var ref31 = texts70.find((text) => text.text === "{REF}");
|
11274
|
+
var val26 = texts70.find((text) => text.text === "{VAL}");
|
11275
|
+
ref31.y = 0;
|
11276
|
+
val26.y = 0;
|
11186
11277
|
var triac_vert_default = rotatedSymbol27;
|
11187
11278
|
|
11188
11279
|
// assets/generated/tunnel_diode.json
|
@@ -11347,13 +11438,13 @@ var tunnel_diode_default = {
|
|
11347
11438
|
};
|
11348
11439
|
|
11349
11440
|
// symbols/tunnel_diode_horz.ts
|
11350
|
-
var { paths: paths51, texts:
|
11441
|
+
var { paths: paths51, texts: texts71, bounds: bounds51, refblocks: refblocks51, circles: circles43 } = tunnel_diode_default;
|
11351
11442
|
var tunnel_diode_horz_default = defineSymbol({
|
11352
11443
|
primitives: [
|
11353
11444
|
...Object.values(paths51),
|
11354
11445
|
...Object.values(circles43),
|
11355
|
-
{ ...
|
11356
|
-
{ ...
|
11446
|
+
{ ...texts71.top1, anchor: "middle_bottom" },
|
11447
|
+
{ ...texts71.bottom1, anchor: "middle_top" }
|
11357
11448
|
],
|
11358
11449
|
ports: [
|
11359
11450
|
{ ...refblocks51.left1, labels: ["1"] },
|
@@ -11366,16 +11457,16 @@ var tunnel_diode_horz_default = defineSymbol({
|
|
11366
11457
|
});
|
11367
11458
|
|
11368
11459
|
// symbols/tunnel_diode_vert.ts
|
11369
|
-
var
|
11370
|
-
var
|
11460
|
+
var rotated11 = rotateSymbol(tunnel_diode_horz_default);
|
11461
|
+
var ref32 = rotated11.primitives.find(
|
11371
11462
|
(p) => p.type === "text" && p.text === "{REF}"
|
11372
11463
|
);
|
11373
|
-
var
|
11464
|
+
var val27 = rotated11.primitives.find(
|
11374
11465
|
(p) => p.type === "text" && p.text === "{VAL}"
|
11375
11466
|
);
|
11376
|
-
|
11377
|
-
|
11378
|
-
var tunnel_diode_vert_default =
|
11467
|
+
ref32.anchor = "middle_left";
|
11468
|
+
val27.anchor = "middle_right";
|
11469
|
+
var tunnel_diode_vert_default = rotated11;
|
11379
11470
|
|
11380
11471
|
// assets/generated/unijunction_transistor.json
|
11381
11472
|
var unijunction_transistor_default = {
|
@@ -11545,13 +11636,13 @@ var unijunction_transistor_default = {
|
|
11545
11636
|
};
|
11546
11637
|
|
11547
11638
|
// symbols/unijunction_transistor_horz.ts
|
11548
|
-
var { paths: paths52, texts:
|
11639
|
+
var { paths: paths52, texts: texts72, bounds: bounds52, refblocks: refblocks52, circles: circles44 } = unijunction_transistor_default;
|
11549
11640
|
var unijunction_transistor_horz_default = defineSymbol({
|
11550
11641
|
primitives: [
|
11551
11642
|
...Object.values(paths52),
|
11552
11643
|
...Object.values(circles44),
|
11553
|
-
{ ...
|
11554
|
-
{ ...
|
11644
|
+
{ ...texts72.top1, anchor: "middle_left" },
|
11645
|
+
{ ...texts72.bottom1, anchor: "middle_right" }
|
11555
11646
|
],
|
11556
11647
|
ports: [
|
11557
11648
|
{ ...refblocks52.top1, labels: ["1"] },
|
@@ -11567,14 +11658,14 @@ var unijunction_transistor_horz_default = defineSymbol({
|
|
11567
11658
|
|
11568
11659
|
// symbols/unijunction_transistor_vert.ts
|
11569
11660
|
var rotatedSymbol28 = rotateSymbol(unijunction_transistor_horz_default);
|
11570
|
-
var
|
11661
|
+
var texts73 = rotatedSymbol28.primitives.filter(
|
11571
11662
|
(primitive) => primitive.type === "text"
|
11572
11663
|
);
|
11573
|
-
var
|
11574
|
-
|
11575
|
-
var
|
11576
|
-
|
11577
|
-
|
11664
|
+
var ref33 = texts73.find((text) => text.text === "{REF}");
|
11665
|
+
ref33.y = 0.1;
|
11666
|
+
var val28 = texts73.find((text) => text.text === "{VAL}");
|
11667
|
+
val28.y = 0.1;
|
11668
|
+
val28.x = -0.4;
|
11578
11669
|
var unijunction_transistor_vert_default = rotatedSymbol28;
|
11579
11670
|
|
11580
11671
|
// assets/generated/var_meter.json
|
@@ -11664,24 +11755,24 @@ var var_meter_default = {
|
|
11664
11755
|
};
|
11665
11756
|
|
11666
11757
|
// symbols/var_meter_horz.ts
|
11667
|
-
var { paths: paths53, texts:
|
11758
|
+
var { paths: paths53, texts: texts74, bounds: bounds53, refblocks: refblocks53, circles: circles45 } = var_meter_default;
|
11668
11759
|
var var_meter_horz_default = defineSymbol({
|
11669
11760
|
primitives: [
|
11670
11761
|
...Object.values(paths53),
|
11671
11762
|
...Object.values(circles45),
|
11672
11763
|
{
|
11673
|
-
...
|
11764
|
+
...texts74.top1,
|
11674
11765
|
x: 0,
|
11675
11766
|
y: -0.3594553499999995,
|
11676
11767
|
anchor: "middle_bottom"
|
11677
11768
|
},
|
11678
11769
|
{
|
11679
|
-
...
|
11770
|
+
...texts74.bottom1,
|
11680
11771
|
x: 0,
|
11681
11772
|
y: 0.35,
|
11682
11773
|
anchor: "middle_top"
|
11683
11774
|
},
|
11684
|
-
{ ...
|
11775
|
+
{ ...texts74.left1, x: -0.02, y: -0.02, fontSize: 0.2, anchor: "center" }
|
11685
11776
|
],
|
11686
11777
|
ports: [
|
11687
11778
|
{ ...refblocks53.left1, labels: ["1"] },
|
@@ -11843,13 +11934,13 @@ var varactor_diode_default = {
|
|
11843
11934
|
};
|
11844
11935
|
|
11845
11936
|
// symbols/varactor_diode_horz.ts
|
11846
|
-
var { paths: paths54, texts:
|
11937
|
+
var { paths: paths54, texts: texts75, bounds: bounds54, refblocks: refblocks54, circles: circles46 } = varactor_diode_default;
|
11847
11938
|
var varactor_diode_horz_default = defineSymbol({
|
11848
11939
|
primitives: [
|
11849
11940
|
...Object.values(paths54),
|
11850
11941
|
...Object.values(circles46),
|
11851
|
-
{ ...
|
11852
|
-
{ ...
|
11942
|
+
{ ...texts75.top1, anchor: "middle_bottom" },
|
11943
|
+
{ ...texts75.bottom1, anchor: "middle_top" }
|
11853
11944
|
],
|
11854
11945
|
ports: [
|
11855
11946
|
{ ...refblocks54.left1, labels: ["1"] },
|
@@ -11862,16 +11953,16 @@ var varactor_diode_horz_default = defineSymbol({
|
|
11862
11953
|
});
|
11863
11954
|
|
11864
11955
|
// symbols/varactor_diode_vert.ts
|
11865
|
-
var
|
11866
|
-
var
|
11956
|
+
var rotated12 = rotateSymbol(varactor_diode_horz_default);
|
11957
|
+
var ref34 = rotated12.primitives.find(
|
11867
11958
|
(p) => p.type === "text" && p.text === "{REF}"
|
11868
11959
|
);
|
11869
|
-
var
|
11960
|
+
var val29 = rotated12.primitives.find(
|
11870
11961
|
(p) => p.type === "text" && p.text === "{VAL}"
|
11871
11962
|
);
|
11872
|
-
|
11873
|
-
|
11874
|
-
var varactor_diode_vert_default =
|
11963
|
+
ref34.anchor = "middle_left";
|
11964
|
+
val29.anchor = "middle_right";
|
11965
|
+
var varactor_diode_vert_default = rotated12;
|
11875
11966
|
|
11876
11967
|
// assets/generated/varistor.json
|
11877
11968
|
var varistor_default = {
|
@@ -12006,12 +12097,12 @@ var varistor_default = {
|
|
12006
12097
|
};
|
12007
12098
|
|
12008
12099
|
// symbols/varistor_horz.ts
|
12009
|
-
var { paths: paths55, texts:
|
12100
|
+
var { paths: paths55, texts: texts76, bounds: bounds55, refblocks: refblocks55 } = varistor_default;
|
12010
12101
|
var varistor_horz_default = defineSymbol({
|
12011
12102
|
primitives: [
|
12012
12103
|
...Object.values(paths55),
|
12013
|
-
{ ...
|
12014
|
-
{ ...
|
12104
|
+
{ ...texts76.top1, anchor: "middle_left" },
|
12105
|
+
{ ...texts76.bottom1, anchor: "middle_right" }
|
12015
12106
|
],
|
12016
12107
|
ports: [
|
12017
12108
|
{
|
@@ -12118,7 +12209,7 @@ var varmeter_default = {
|
|
12118
12209
|
};
|
12119
12210
|
|
12120
12211
|
// symbols/varmeter_horz.ts
|
12121
|
-
var { paths: paths56, texts:
|
12212
|
+
var { paths: paths56, texts: texts77, bounds: bounds56, refblocks: refblocks56, circles: circles47 } = varmeter_default;
|
12122
12213
|
var varmeter_horz_default = defineSymbol({
|
12123
12214
|
primitives: [
|
12124
12215
|
...Object.values(paths56),
|
@@ -12137,7 +12228,7 @@ var varmeter_horz_default = defineSymbol({
|
|
12137
12228
|
y: 0.35,
|
12138
12229
|
anchor: "middle_top"
|
12139
12230
|
},
|
12140
|
-
{ ...
|
12231
|
+
{ ...texts77.left1, anchor: "center", fontSize: 0.2 }
|
12141
12232
|
],
|
12142
12233
|
ports: [
|
12143
12234
|
{ ...refblocks56.left1, labels: ["1"] },
|
@@ -12263,7 +12354,7 @@ var volt_meter_default = {
|
|
12263
12354
|
};
|
12264
12355
|
|
12265
12356
|
// symbols/volt_meter_horz.ts
|
12266
|
-
var { paths: paths57, texts:
|
12357
|
+
var { paths: paths57, texts: texts78, bounds: bounds57, circles: circles48, refblocks: refblocks57 } = volt_meter_default;
|
12267
12358
|
var volt_meter_horz_default = defineSymbol({
|
12268
12359
|
primitives: [
|
12269
12360
|
...Object.values(paths57),
|
@@ -12383,7 +12474,7 @@ var watt_hour_meter_default = {
|
|
12383
12474
|
};
|
12384
12475
|
|
12385
12476
|
// symbols/watt_hour_meter_horz.ts
|
12386
|
-
var { paths: paths58, texts:
|
12477
|
+
var { paths: paths58, texts: texts79, bounds: bounds58, refblocks: refblocks58, circles: circles49 } = watt_hour_meter_default;
|
12387
12478
|
var watt_hour_meter_horz_default = defineSymbol({
|
12388
12479
|
primitives: [
|
12389
12480
|
...Object.values(paths58),
|
@@ -12402,7 +12493,7 @@ var watt_hour_meter_horz_default = defineSymbol({
|
|
12402
12493
|
y: 0.35,
|
12403
12494
|
anchor: "middle_top"
|
12404
12495
|
},
|
12405
|
-
{ ...
|
12496
|
+
{ ...texts79.left1, anchor: "center", fontSize: 0.2 }
|
12406
12497
|
],
|
12407
12498
|
ports: [
|
12408
12499
|
{ ...refblocks58.left1, labels: ["1"] },
|
@@ -12515,7 +12606,7 @@ var wattmeter_default = {
|
|
12515
12606
|
};
|
12516
12607
|
|
12517
12608
|
// symbols/wattmeter_horz.ts
|
12518
|
-
var { paths: paths59, texts:
|
12609
|
+
var { paths: paths59, texts: texts80, bounds: bounds59, refblocks: refblocks59, circles: circles50 } = wattmeter_default;
|
12519
12610
|
var wattmeter_horz_default = defineSymbol({
|
12520
12611
|
primitives: [
|
12521
12612
|
...Object.values(paths59),
|
@@ -12534,7 +12625,7 @@ var wattmeter_horz_default = defineSymbol({
|
|
12534
12625
|
y: 0.35,
|
12535
12626
|
anchor: "middle_top"
|
12536
12627
|
},
|
12537
|
-
{ ...
|
12628
|
+
{ ...texts80.left1, anchor: "center", fontSize: 0.3 }
|
12538
12629
|
],
|
12539
12630
|
ports: [
|
12540
12631
|
{ ...refblocks59.left1, labels: ["1"] },
|
@@ -12707,13 +12798,13 @@ var zener_diode_default = {
|
|
12707
12798
|
};
|
12708
12799
|
|
12709
12800
|
// symbols/zener_diode_horz.ts
|
12710
|
-
var { paths: paths60, texts:
|
12801
|
+
var { paths: paths60, texts: texts81, bounds: bounds60, refblocks: refblocks60, circles: circles51 } = zener_diode_default;
|
12711
12802
|
var zener_diode_horz_default = defineSymbol({
|
12712
12803
|
primitives: [
|
12713
12804
|
...Object.values(paths60),
|
12714
12805
|
...Object.values(circles51),
|
12715
|
-
{ ...
|
12716
|
-
{ ...
|
12806
|
+
{ ...texts81.top1, anchor: "middle_bottom" },
|
12807
|
+
{ ...texts81.bottom1, anchor: "middle_top" }
|
12717
12808
|
],
|
12718
12809
|
ports: [
|
12719
12810
|
{ ...refblocks60.left1, labels: ["1"] },
|
@@ -12726,16 +12817,16 @@ var zener_diode_horz_default = defineSymbol({
|
|
12726
12817
|
});
|
12727
12818
|
|
12728
12819
|
// symbols/zener_diode_vert.ts
|
12729
|
-
var
|
12730
|
-
var
|
12820
|
+
var rotated13 = rotateSymbol(zener_diode_horz_default);
|
12821
|
+
var ref35 = rotated13.primitives.find(
|
12731
12822
|
(p) => p.type === "text" && p.text === "{REF}"
|
12732
12823
|
);
|
12733
|
-
var
|
12824
|
+
var val30 = rotated13.primitives.find(
|
12734
12825
|
(p) => p.type === "text" && p.text === "{VAL}"
|
12735
12826
|
);
|
12736
|
-
|
12737
|
-
|
12738
|
-
var zener_diode_vert_default =
|
12827
|
+
ref35.anchor = "middle_left";
|
12828
|
+
val30.anchor = "middle_right";
|
12829
|
+
var zener_diode_vert_default = rotated13;
|
12739
12830
|
|
12740
12831
|
// generated/symbols-index.ts
|
12741
12832
|
var symbols_index_default = {
|