schematic-symbols 0.0.183 → 0.0.185

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.js CHANGED
@@ -87,8 +87,8 @@ var rotateRightFacingAnchor = (anchor, newOrientation = "right") => {
87
87
  }
88
88
  return anchor;
89
89
  };
90
- var flipSymbolOverXAxis = (symbol11, overrides) => {
91
- const { primitives, center, ports, size } = symbol11;
90
+ var flipSymbolOverXAxis = (symbol14, overrides) => {
91
+ const { primitives, center, ports, size } = symbol14;
92
92
  const transformMatrix = transform({
93
93
  a: 1,
94
94
  b: 0,
@@ -156,8 +156,8 @@ var flipSymbolOverXAxis = (symbol11, overrides) => {
156
156
  ...overrides
157
157
  };
158
158
  };
159
- var flipSymbolOverYAxis = (symbol11, overrides) => {
160
- const { primitives, center, ports, size } = symbol11;
159
+ var flipSymbolOverYAxis = (symbol14, overrides) => {
160
+ const { primitives, center, ports, size } = symbol14;
161
161
  const transformMatrix = transform({
162
162
  a: -1,
163
163
  b: 0,
@@ -225,7 +225,7 @@ var flipSymbolOverYAxis = (symbol11, overrides) => {
225
225
  ...overrides
226
226
  };
227
227
  };
228
- var rotateRightFacingSymbol = (symbol11, opts) => {
228
+ var rotateRightFacingSymbol = (symbol14, opts) => {
229
229
  const { newOrientation, overrides } = opts;
230
230
  const angleMap = {
231
231
  up: Math.PI / 2,
@@ -235,10 +235,10 @@ var rotateRightFacingSymbol = (symbol11, opts) => {
235
235
  };
236
236
  const transform2 = rotate(
237
237
  newOrientation ? angleMap[newOrientation] : Math.PI / 2,
238
- symbol11.center.x,
239
- symbol11.center.y
238
+ symbol14.center.x,
239
+ symbol14.center.y
240
240
  );
241
- const { primitives, center, size, ports } = symbol11;
241
+ const { primitives, center, size, ports } = symbol14;
242
242
  const rotatedPrimitives = primitives.map((primitive) => {
243
243
  primitive = { ...primitive };
244
244
  switch (primitive.type) {
@@ -293,19 +293,19 @@ var rotateRightFacingSymbol = (symbol11, opts) => {
293
293
  ...applyToPoint(transform2, port)
294
294
  })
295
295
  );
296
- const bounds113 = getBoundsOfPrimitives(rotatedPrimitives);
296
+ const bounds114 = getBoundsOfPrimitives(rotatedPrimitives);
297
297
  return {
298
298
  primitives: rotatedPrimitives,
299
299
  center,
300
300
  ports: rotatedPorts,
301
301
  size: {
302
- width: bounds113.maxX - bounds113.minX,
303
- height: bounds113.maxY - bounds113.minY
302
+ width: bounds114.maxX - bounds114.minX,
303
+ height: bounds114.maxY - bounds114.minY
304
304
  },
305
305
  ...overrides
306
306
  };
307
307
  };
308
- var rotateSymbol = (symbol11, orientation = "down", overrides = {}) => rotateRightFacingSymbol(symbol11, {
308
+ var rotateSymbol = (symbol14, orientation = "down", overrides = {}) => rotateRightFacingSymbol(symbol14, {
309
309
  newOrientation: orientation,
310
310
  overrides
311
311
  });
@@ -313,8 +313,8 @@ var rotateSymbol = (symbol11, orientation = "down", overrides = {}) => rotateRig
313
313
  // drawing/modify-symbol/modify-symbol.ts
314
314
  var SymbolModifier = class {
315
315
  symbol;
316
- constructor(symbol11) {
317
- this.symbol = JSON.parse(JSON.stringify(symbol11));
316
+ constructor(symbol14) {
317
+ this.symbol = JSON.parse(JSON.stringify(symbol14));
318
318
  this.symbol.size = this.computeSize();
319
319
  }
320
320
  changeTextAnchor(text, newAnchor, anchorPosition) {
@@ -352,29 +352,29 @@ var SymbolModifier = class {
352
352
  return this;
353
353
  }
354
354
  computeSize() {
355
- const bounds113 = getBoundsOfPrimitives(this.symbol.primitives);
355
+ const bounds114 = getBoundsOfPrimitives(this.symbol.primitives);
356
356
  return {
357
- width: bounds113.maxX - bounds113.minX,
358
- height: bounds113.maxY - bounds113.minY
357
+ width: bounds114.maxX - bounds114.minX,
358
+ height: bounds114.maxY - bounds114.minY
359
359
  };
360
360
  }
361
361
  build() {
362
362
  return { ...this.symbol, size: this.computeSize() };
363
363
  }
364
364
  };
365
- var modifySymbol = (symbol11) => {
366
- const primitives = symbol11.primitives ?? [
367
- ...Object.values(symbol11.paths ?? {}),
368
- ...Object.values(symbol11.texts ?? {}),
369
- ...Object.values(symbol11.circles ?? {}),
370
- ...Object.values(symbol11.rects ?? {})
365
+ var modifySymbol = (symbol14) => {
366
+ const primitives = symbol14.primitives ?? [
367
+ ...Object.values(symbol14.paths ?? {}),
368
+ ...Object.values(symbol14.texts ?? {}),
369
+ ...Object.values(symbol14.circles ?? {}),
370
+ ...Object.values(symbol14.rects ?? {})
371
371
  ];
372
- const ports = symbol11.ports ?? Object.entries(symbol11.refblocks).flatMap(([key, refblock]) => {
372
+ const ports = symbol14.ports ?? Object.entries(symbol14.refblocks).flatMap(([key, refblock]) => {
373
373
  return [{ ...refblock, labels: [key] }];
374
374
  });
375
- let center = symbol11.center ?? {
376
- x: symbol11.bounds.centerX,
377
- y: symbol11.bounds.centerY
375
+ let center = symbol14.center ?? {
376
+ x: symbol14.bounds.centerX,
377
+ y: symbol14.bounds.centerY
378
378
  };
379
379
  if (ports.length === 2) {
380
380
  center = {
@@ -383,7 +383,7 @@ var modifySymbol = (symbol11) => {
383
383
  };
384
384
  }
385
385
  return new SymbolModifier({
386
- ...symbol11,
386
+ ...symbol14,
387
387
  primitives,
388
388
  ports,
389
389
  center
@@ -1252,16 +1252,16 @@ val.x = 0.25;
1252
1252
  var backward_diode_up_default = rotated;
1253
1253
 
1254
1254
  // drawing/defineSymbol.ts
1255
- function defineSymbol(symbol11) {
1256
- let size = symbol11.size;
1255
+ function defineSymbol(symbol14) {
1256
+ let size = symbol14.size;
1257
1257
  if (!size) {
1258
- const bounds113 = getBoundsOfPrimitives(symbol11.primitives);
1258
+ const bounds114 = getBoundsOfPrimitives(symbol14.primitives);
1259
1259
  size = {
1260
- width: bounds113.maxX - bounds113.minX,
1261
- height: bounds113.maxY - bounds113.minY
1260
+ width: bounds114.maxX - bounds114.minX,
1261
+ height: bounds114.maxY - bounds114.minY
1262
1262
  };
1263
1263
  }
1264
- return { ...symbol11, size };
1264
+ return { ...symbol14, size };
1265
1265
  }
1266
1266
 
1267
1267
  // assets/generated/battery.json
@@ -17006,13 +17006,13 @@ var resonator_default = {
17006
17006
  type: "text",
17007
17007
  text: "{REF}",
17008
17008
  x: 0.01596175000000022,
17009
- y: 0.5358501499999981
17009
+ y: 0.5308501500000009
17010
17010
  },
17011
17011
  bottom1: {
17012
17012
  type: "text",
17013
17013
  text: "{VAL}",
17014
17014
  x: 0.013116750000000454,
17015
- y: -0.5358501500000017
17015
+ y: -0.5408501499999989
17016
17016
  }
17017
17017
  },
17018
17018
  refblocks: {
@@ -17042,12 +17042,49 @@ var resonator_default = {
17042
17042
  circles: {}
17043
17043
  };
17044
17044
 
17045
- // symbols/resonator_horz.ts
17045
+ // symbols/resonator_right.ts
17046
17046
  var { paths: paths98, texts: texts107, bounds: bounds98, refblocks: refblocks98, circles: circles92 } = resonator_default;
17047
- var resonator_horz_default = defineSymbol({
17047
+ var resonator_right_default = defineSymbol({
17048
17048
  primitives: [
17049
17049
  ...Object.values(paths98),
17050
17050
  ...Object.values(circles92),
17051
+ { ...texts107.top1, anchor: "middle_bottom" },
17052
+ { ...texts107.bottom1, anchor: "middle_top" }
17053
+ ],
17054
+ ports: [
17055
+ { ...refblocks98.left1, labels: ["1"] },
17056
+ // TODO add more "standard" labels
17057
+ { ...refblocks98.right1, labels: ["2"] },
17058
+ // TODO add more "standard" labels
17059
+ { ...refblocks98.right2, labels: ["3"] }
17060
+ // TODO add more "standard" labels
17061
+ ],
17062
+ size: { width: bounds98.width, height: bounds98.height },
17063
+ center: { x: bounds98.centerX, y: bounds98.centerY }
17064
+ });
17065
+
17066
+ // symbols/resonator_down.ts
17067
+ var symbol11 = rotateSymbol(resonator_right_default, "down");
17068
+ var ref38 = symbol11.primitives.find(
17069
+ (p) => p.type === "text" && p.text === "{REF}"
17070
+ );
17071
+ var val37 = symbol11.primitives.find(
17072
+ (p) => p.type === "text" && p.text === "{VAL}"
17073
+ );
17074
+ ref38.anchor = "middle_bottom";
17075
+ val37.anchor = "middle_top";
17076
+ ref38.y += 0.3;
17077
+ ref38.x += 0.101;
17078
+ val37.y -= 0.49999;
17079
+ val37.x += 1.19999;
17080
+ var resonator_down_default = symbol11;
17081
+
17082
+ // symbols/resonator_horz.ts
17083
+ var { paths: paths99, texts: texts108, bounds: bounds99, refblocks: refblocks99, circles: circles93 } = resonator_default;
17084
+ var resonator_horz_default = defineSymbol({
17085
+ primitives: [
17086
+ ...Object.values(paths99),
17087
+ ...Object.values(circles93),
17051
17088
  // { ...texts.top1, anchor: "middle_left" },
17052
17089
  // { ...texts.bottom1, anchor: "middle_left" },
17053
17090
  {
@@ -17066,17 +17103,49 @@ var resonator_horz_default = defineSymbol({
17066
17103
  }
17067
17104
  ],
17068
17105
  ports: [
17069
- { ...refblocks98.left1, labels: ["1"] },
17106
+ { ...refblocks99.left1, labels: ["1"] },
17070
17107
  // TODO add more "standard" labels
17071
- { ...refblocks98.right1, labels: ["2"] },
17108
+ { ...refblocks99.right1, labels: ["2"] },
17072
17109
  // TODO add more "standard" labels
17073
- { ...refblocks98.right2, labels: ["3"] }
17110
+ { ...refblocks99.right2, labels: ["3"] }
17074
17111
  // TODO add more "standard" labels
17075
17112
  ],
17076
- size: { width: bounds98.width, height: bounds98.height },
17077
- center: { x: bounds98.centerX, y: bounds98.centerY }
17113
+ size: { width: bounds99.width, height: bounds99.height },
17114
+ center: { x: bounds99.centerX, y: bounds99.centerY }
17078
17115
  });
17079
17116
 
17117
+ // symbols/resonator_left.ts
17118
+ var symbol12 = rotateSymbol(resonator_right_default, "left");
17119
+ var ref39 = symbol12.primitives.find(
17120
+ (p) => p.type === "text" && p.text === "{REF}"
17121
+ );
17122
+ var val38 = symbol12.primitives.find(
17123
+ (p) => p.type === "text" && p.text === "{VAL}"
17124
+ );
17125
+ ref39.anchor = "middle_bottom";
17126
+ val38.anchor = "middle_top";
17127
+ ref39.y += 0.99;
17128
+ ref39.x -= 0;
17129
+ val38.y -= 1.10999;
17130
+ val38.x = 0;
17131
+ var resonator_left_default = symbol12;
17132
+
17133
+ // symbols/resonator_up.ts
17134
+ var symbol13 = rotateSymbol(resonator_right_default, "up");
17135
+ var ref40 = symbol13.primitives.find(
17136
+ (p) => p.type === "text" && p.text === "{REF}"
17137
+ );
17138
+ var val39 = symbol13.primitives.find(
17139
+ (p) => p.type === "text" && p.text === "{VAL}"
17140
+ );
17141
+ ref40.anchor = "middle_bottom";
17142
+ val39.anchor = "middle_top";
17143
+ ref40.y += 0.499;
17144
+ ref40.x = 0.62;
17145
+ val39.y -= 0.29999;
17146
+ val39.x += 0.1;
17147
+ var resonator_up_default = symbol13;
17148
+
17080
17149
  // symbols/resonator_vert.ts
17081
17150
  var resonator_vert_default = rotateSymbol(resonator_horz_default);
17082
17151
 
@@ -17276,50 +17345,50 @@ var schottky_diode_right_default = modifySymbol(schottky_diode_default).labelPor
17276
17345
 
17277
17346
  // symbols/schottky_diode_down.ts
17278
17347
  var rotated19 = rotateSymbol(schottky_diode_right_default, "down");
17279
- var ref38 = rotated19.primitives.find(
17348
+ var ref41 = rotated19.primitives.find(
17280
17349
  (p) => p.type === "text" && p.text === "{REF}"
17281
17350
  );
17282
- var val37 = rotated19.primitives.find(
17351
+ var val40 = rotated19.primitives.find(
17283
17352
  (p) => p.type === "text" && p.text === "{VAL}"
17284
17353
  );
17285
- ref38.anchor = "middle_left";
17286
- val37.anchor = "middle_left";
17287
- ref38.y += 0.3;
17288
- ref38.x = 0.3;
17289
- val37.y -= 0.3;
17290
- val37.x = 0.3;
17354
+ ref41.anchor = "middle_left";
17355
+ val40.anchor = "middle_left";
17356
+ ref41.y += 0.3;
17357
+ ref41.x = 0.3;
17358
+ val40.y -= 0.3;
17359
+ val40.x = 0.3;
17291
17360
  var schottky_diode_down_default = rotated19;
17292
17361
 
17293
17362
  // symbols/schottky_diode_left.ts
17294
17363
  var rotated20 = rotateSymbol(schottky_diode_right_default, "left");
17295
- var ref39 = rotated20.primitives.find(
17364
+ var ref42 = rotated20.primitives.find(
17296
17365
  (p) => p.type === "text" && p.text === "{REF}"
17297
17366
  );
17298
- var val38 = rotated20.primitives.find(
17367
+ var val41 = rotated20.primitives.find(
17299
17368
  (p) => p.type === "text" && p.text === "{VAL}"
17300
17369
  );
17301
- ref39.anchor = "middle_bottom";
17302
- val38.anchor = "middle_top";
17303
- ref39.y += 0.5;
17304
- ref39.x = 0;
17305
- val38.y -= 0.55;
17306
- val38.x = 0;
17370
+ ref42.anchor = "middle_bottom";
17371
+ val41.anchor = "middle_top";
17372
+ ref42.y += 0.5;
17373
+ ref42.x = 0;
17374
+ val41.y -= 0.55;
17375
+ val41.x = 0;
17307
17376
  var schottky_diode_left_default = rotated20;
17308
17377
 
17309
17378
  // symbols/schottky_diode_up.ts
17310
17379
  var rotated21 = rotateSymbol(schottky_diode_right_default, "up");
17311
- var ref40 = rotated21.primitives.find(
17380
+ var ref43 = rotated21.primitives.find(
17312
17381
  (p) => p.type === "text" && p.text === "{REF}"
17313
17382
  );
17314
- var val39 = rotated21.primitives.find(
17383
+ var val42 = rotated21.primitives.find(
17315
17384
  (p) => p.type === "text" && p.text === "{VAL}"
17316
17385
  );
17317
- ref40.anchor = "middle_left";
17318
- val39.anchor = "middle_left";
17319
- ref40.y += 0.3;
17320
- ref40.x = 0.3;
17321
- val39.y -= 0.3;
17322
- val39.x = 0.3;
17386
+ ref43.anchor = "middle_left";
17387
+ val42.anchor = "middle_left";
17388
+ ref43.y += 0.3;
17389
+ ref43.x = 0.3;
17390
+ val42.y -= 0.3;
17391
+ val42.x = 0.3;
17323
17392
  var schottky_diode_up_default = rotated21;
17324
17393
 
17325
17394
  // assets/generated/silicon_controlled_rectifier.json
@@ -17466,17 +17535,17 @@ var silicon_controlled_rectifier_default = {
17466
17535
  };
17467
17536
 
17468
17537
  // symbols/silicon_controlled_rectifier_horz.ts
17469
- var { paths: paths99, texts: texts108, bounds: bounds99, refblocks: refblocks99, circles: circles93 } = silicon_controlled_rectifier_default;
17538
+ var { paths: paths100, texts: texts109, bounds: bounds100, refblocks: refblocks100, circles: circles94 } = silicon_controlled_rectifier_default;
17470
17539
  var silicon_controlled_rectifier_horz_default = modifySymbol(silicon_controlled_rectifier_default).changeTextAnchor("{VAL}", "middle_top").labelPort("left1", ["1"]).labelPort("right1", ["2"]).labelPort("bottom1", ["3"]).changeTextAnchor("{REF}", "middle_bottom").build();
17471
17540
 
17472
17541
  // symbols/silicon_controlled_rectifier_vert.ts
17473
17542
  var rotatedSymbol13 = rotateSymbol(silicon_controlled_rectifier_horz_default);
17474
- var texts109 = rotatedSymbol13.primitives.filter(
17543
+ var texts110 = rotatedSymbol13.primitives.filter(
17475
17544
  (primitive) => primitive.type === "text"
17476
17545
  );
17477
- var ref41 = texts109.find((text) => text.text === "{REF}");
17478
- ref41.y = 0;
17479
- ref41.anchor = "middle_left";
17546
+ var ref44 = texts110.find((text) => text.text === "{REF}");
17547
+ ref44.y = 0;
17548
+ ref44.anchor = "middle_left";
17480
17549
  var silicon_controlled_rectifier_vert_default = rotatedSymbol13;
17481
17550
 
17482
17551
  // assets/generated/solderjumper2_bridged12.json
@@ -20315,50 +20384,50 @@ var spdt_normally_closed_switch_right_default = modifySymbol(spdt_normally_close
20315
20384
 
20316
20385
  // symbols/spdt_normally_closed_switch_down.ts
20317
20386
  var rotated22 = rotateSymbol(spdt_normally_closed_switch_right_default, "down");
20318
- var ref42 = rotated22.primitives.find(
20387
+ var ref45 = rotated22.primitives.find(
20319
20388
  (p) => p.type === "text" && p.text === "{REF}"
20320
20389
  );
20321
- var val40 = rotated22.primitives.find(
20390
+ var val43 = rotated22.primitives.find(
20322
20391
  (p) => p.type === "text" && p.text === "{VAL}"
20323
20392
  );
20324
- ref42.anchor = "middle_bottom";
20325
- val40.anchor = "middle_top";
20326
- ref42.x = 0.44;
20327
- ref42.y += 0.28;
20328
- val40.y -= 0.28;
20329
- val40.x = 0.44;
20393
+ ref45.anchor = "middle_bottom";
20394
+ val43.anchor = "middle_top";
20395
+ ref45.x = 0.44;
20396
+ ref45.y += 0.28;
20397
+ val43.y -= 0.28;
20398
+ val43.x = 0.44;
20330
20399
  var spdt_normally_closed_switch_down_default = rotated22;
20331
20400
 
20332
20401
  // symbols/spdt_normally_closed_switch_left.ts
20333
20402
  var rotated23 = rotateSymbol(spdt_normally_closed_switch_right_default, "left");
20334
- var ref43 = rotated23.primitives.find(
20403
+ var ref46 = rotated23.primitives.find(
20335
20404
  (p) => p.type === "text" && p.text === "{REF}"
20336
20405
  );
20337
- var val41 = rotated23.primitives.find(
20406
+ var val44 = rotated23.primitives.find(
20338
20407
  (p) => p.type === "text" && p.text === "{VAL}"
20339
20408
  );
20340
- ref43.anchor = "middle_bottom";
20341
- val41.anchor = "middle_top";
20342
- ref43.x = 0;
20343
- ref43.y += 0.625;
20344
- val41.y -= 0.695;
20345
- val41.x = 0;
20409
+ ref46.anchor = "middle_bottom";
20410
+ val44.anchor = "middle_top";
20411
+ ref46.x = 0;
20412
+ ref46.y += 0.625;
20413
+ val44.y -= 0.695;
20414
+ val44.x = 0;
20346
20415
  var spdt_normally_closed_switch_left_default = rotated23;
20347
20416
 
20348
20417
  // symbols/spdt_normally_closed_switch_up.ts
20349
20418
  var rotated24 = rotateSymbol(spdt_normally_closed_switch_right_default, "up");
20350
- var ref44 = rotated24.primitives.find(
20419
+ var ref47 = rotated24.primitives.find(
20351
20420
  (p) => p.type === "text" && p.text === "{REF}"
20352
20421
  );
20353
- var val42 = rotated24.primitives.find(
20422
+ var val45 = rotated24.primitives.find(
20354
20423
  (p) => p.type === "text" && p.text === "{VAL}"
20355
20424
  );
20356
- ref44.anchor = "middle_bottom";
20357
- val42.anchor = "middle_top";
20358
- ref44.x = 0.4;
20359
- ref44.y += 0.28;
20360
- val42.y -= 0.28;
20361
- val42.x = 0.4;
20425
+ ref47.anchor = "middle_bottom";
20426
+ val45.anchor = "middle_top";
20427
+ ref47.x = 0.4;
20428
+ ref47.y += 0.28;
20429
+ val45.y -= 0.28;
20430
+ val45.x = 0.4;
20362
20431
  var spdt_normally_closed_switch_up_default = rotated24;
20363
20432
 
20364
20433
  // assets/generated/spdt_switch.json
@@ -20496,50 +20565,50 @@ var spdt_switch_right_default = modifySymbol(spdt_switch_default).changeTextAnch
20496
20565
 
20497
20566
  // symbols/spdt_switch_down.ts
20498
20567
  var rotated25 = rotateSymbol(spdt_switch_right_default, "down");
20499
- var ref45 = rotated25.primitives.find(
20568
+ var ref48 = rotated25.primitives.find(
20500
20569
  (p) => p.type === "text" && p.text === "{REF}"
20501
20570
  );
20502
- var val43 = rotated25.primitives.find(
20571
+ var val46 = rotated25.primitives.find(
20503
20572
  (p) => p.type === "text" && p.text === "{VAL}"
20504
20573
  );
20505
- ref45.anchor = "middle_bottom";
20506
- val43.anchor = "middle_top";
20507
- ref45.x = 0.44;
20508
- ref45.y += 0.28;
20509
- val43.y -= 0.28;
20510
- val43.x = 0.44;
20574
+ ref48.anchor = "middle_bottom";
20575
+ val46.anchor = "middle_top";
20576
+ ref48.x = 0.44;
20577
+ ref48.y += 0.28;
20578
+ val46.y -= 0.28;
20579
+ val46.x = 0.44;
20511
20580
  var spdt_switch_down_default = rotated25;
20512
20581
 
20513
20582
  // symbols/spdt_switch_left.ts
20514
20583
  var rotated26 = rotateSymbol(spdt_switch_right_default, "left");
20515
- var ref46 = rotated26.primitives.find(
20584
+ var ref49 = rotated26.primitives.find(
20516
20585
  (p) => p.type === "text" && p.text === "{REF}"
20517
20586
  );
20518
- var val44 = rotated26.primitives.find(
20587
+ var val47 = rotated26.primitives.find(
20519
20588
  (p) => p.type === "text" && p.text === "{VAL}"
20520
20589
  );
20521
- ref46.anchor = "middle_bottom";
20522
- val44.anchor = "middle_top";
20523
- ref46.x = 0;
20524
- ref46.y += 0.625;
20525
- val44.y -= 0.695;
20526
- val44.x = 0;
20590
+ ref49.anchor = "middle_bottom";
20591
+ val47.anchor = "middle_top";
20592
+ ref49.x = 0;
20593
+ ref49.y += 0.625;
20594
+ val47.y -= 0.695;
20595
+ val47.x = 0;
20527
20596
  var spdt_switch_left_default = rotated26;
20528
20597
 
20529
20598
  // symbols/spdt_switch_up.ts
20530
20599
  var rotated27 = rotateSymbol(spdt_switch_right_default, "up");
20531
- var ref47 = rotated27.primitives.find(
20600
+ var ref50 = rotated27.primitives.find(
20532
20601
  (p) => p.type === "text" && p.text === "{REF}"
20533
20602
  );
20534
- var val45 = rotated27.primitives.find(
20603
+ var val48 = rotated27.primitives.find(
20535
20604
  (p) => p.type === "text" && p.text === "{VAL}"
20536
20605
  );
20537
- ref47.anchor = "middle_bottom";
20538
- val45.anchor = "middle_top";
20539
- ref47.x = 0.4;
20540
- ref47.y += 0.28;
20541
- val45.y -= 0.28;
20542
- val45.x = 0.4;
20606
+ ref50.anchor = "middle_bottom";
20607
+ val48.anchor = "middle_top";
20608
+ ref50.x = 0.4;
20609
+ ref50.y += 0.28;
20610
+ val48.y -= 0.28;
20611
+ val48.x = 0.4;
20543
20612
  var spdt_switch_up_default = rotated27;
20544
20613
 
20545
20614
  // assets/generated/spst_normally_closed_switch.json
@@ -20661,50 +20730,50 @@ var spst_normally_closed_switch_right_default = modifySymbol(spst_normally_close
20661
20730
 
20662
20731
  // symbols/spst_normally_closed_switch_down.ts
20663
20732
  var rotated28 = rotateSymbol(spst_normally_closed_switch_right_default, "down");
20664
- var ref48 = rotated28.primitives.find(
20733
+ var ref51 = rotated28.primitives.find(
20665
20734
  (p) => p.type === "text" && p.text === "{REF}"
20666
20735
  );
20667
- var val46 = rotated28.primitives.find(
20736
+ var val49 = rotated28.primitives.find(
20668
20737
  (p) => p.type === "text" && p.text === "{VAL}"
20669
20738
  );
20670
- ref48.anchor = "middle_bottom";
20671
- val46.anchor = "middle_top";
20672
- ref48.x = 0.3;
20673
- ref48.y += 0.265;
20674
- val46.y -= 0.265;
20675
- val46.x = 0.3;
20739
+ ref51.anchor = "middle_bottom";
20740
+ val49.anchor = "middle_top";
20741
+ ref51.x = 0.3;
20742
+ ref51.y += 0.265;
20743
+ val49.y -= 0.265;
20744
+ val49.x = 0.3;
20676
20745
  var spst_normally_closed_switch_down_default = rotated28;
20677
20746
 
20678
20747
  // symbols/spst_normally_closed_switch_left.ts
20679
20748
  var rotated29 = rotateSymbol(spst_normally_closed_switch_right_default, "left");
20680
- var ref49 = rotated29.primitives.find(
20749
+ var ref52 = rotated29.primitives.find(
20681
20750
  (p) => p.type === "text" && p.text === "{REF}"
20682
20751
  );
20683
- var val47 = rotated29.primitives.find(
20752
+ var val50 = rotated29.primitives.find(
20684
20753
  (p) => p.type === "text" && p.text === "{VAL}"
20685
20754
  );
20686
- ref49.anchor = "middle_bottom";
20687
- val47.anchor = "middle_top";
20688
- ref49.x = 0;
20689
- ref49.y += 0.57;
20690
- val47.y -= 0.57;
20691
- val47.x = 0;
20755
+ ref52.anchor = "middle_bottom";
20756
+ val50.anchor = "middle_top";
20757
+ ref52.x = 0;
20758
+ ref52.y += 0.57;
20759
+ val50.y -= 0.57;
20760
+ val50.x = 0;
20692
20761
  var spst_normally_closed_switch_left_default = rotated29;
20693
20762
 
20694
20763
  // symbols/spst_normally_closed_switch_up.ts
20695
20764
  var rotated30 = rotateSymbol(spst_normally_closed_switch_right_default, "up");
20696
- var ref50 = rotated30.primitives.find(
20765
+ var ref53 = rotated30.primitives.find(
20697
20766
  (p) => p.type === "text" && p.text === "{REF}"
20698
20767
  );
20699
- var val48 = rotated30.primitives.find(
20768
+ var val51 = rotated30.primitives.find(
20700
20769
  (p) => p.type === "text" && p.text === "{VAL}"
20701
20770
  );
20702
- ref50.anchor = "middle_bottom";
20703
- val48.anchor = "middle_top";
20704
- ref50.x = 0.3;
20705
- ref50.y += 0.265;
20706
- val48.y -= 0.265;
20707
- val48.x = 0.3;
20771
+ ref53.anchor = "middle_bottom";
20772
+ val51.anchor = "middle_top";
20773
+ ref53.x = 0.3;
20774
+ ref53.y += 0.265;
20775
+ val51.y -= 0.265;
20776
+ val51.x = 0.3;
20708
20777
  var spst_normally_closed_switch_up_default = rotated30;
20709
20778
 
20710
20779
  // assets/generated/spst_switch.json
@@ -20826,50 +20895,50 @@ var spst_switch_right_default = modifySymbol(spst_switch_default).changeTextAnch
20826
20895
 
20827
20896
  // symbols/spst_switch_down.ts
20828
20897
  var rotated31 = rotateSymbol(spst_switch_right_default, "down");
20829
- var ref51 = rotated31.primitives.find(
20898
+ var ref54 = rotated31.primitives.find(
20830
20899
  (p) => p.type === "text" && p.text === "{REF}"
20831
20900
  );
20832
- var val49 = rotated31.primitives.find(
20901
+ var val52 = rotated31.primitives.find(
20833
20902
  (p) => p.type === "text" && p.text === "{VAL}"
20834
20903
  );
20835
- ref51.anchor = "middle_bottom";
20836
- val49.anchor = "middle_top";
20837
- ref51.x = 0.3;
20838
- ref51.y += 0.265;
20839
- val49.y -= 0.265;
20840
- val49.x = 0.3;
20904
+ ref54.anchor = "middle_bottom";
20905
+ val52.anchor = "middle_top";
20906
+ ref54.x = 0.3;
20907
+ ref54.y += 0.265;
20908
+ val52.y -= 0.265;
20909
+ val52.x = 0.3;
20841
20910
  var spst_switch_down_default = rotated31;
20842
20911
 
20843
20912
  // symbols/spst_switch_left.ts
20844
20913
  var rotated32 = rotateSymbol(spst_switch_right_default, "left");
20845
- var ref52 = rotated32.primitives.find(
20914
+ var ref55 = rotated32.primitives.find(
20846
20915
  (p) => p.type === "text" && p.text === "{REF}"
20847
20916
  );
20848
- var val50 = rotated32.primitives.find(
20917
+ var val53 = rotated32.primitives.find(
20849
20918
  (p) => p.type === "text" && p.text === "{VAL}"
20850
20919
  );
20851
- ref52.anchor = "middle_bottom";
20852
- val50.anchor = "middle_top";
20853
- ref52.x = 0;
20854
- ref52.y += 0.57;
20855
- val50.y -= 0.57;
20856
- val50.x = 0;
20920
+ ref55.anchor = "middle_bottom";
20921
+ val53.anchor = "middle_top";
20922
+ ref55.x = 0;
20923
+ ref55.y += 0.57;
20924
+ val53.y -= 0.57;
20925
+ val53.x = 0;
20857
20926
  var spst_switch_left_default = rotated32;
20858
20927
 
20859
20928
  // symbols/spst_switch_up.ts
20860
20929
  var rotated33 = rotateSymbol(spst_switch_right_default, "up");
20861
- var ref53 = rotated33.primitives.find(
20930
+ var ref56 = rotated33.primitives.find(
20862
20931
  (p) => p.type === "text" && p.text === "{REF}"
20863
20932
  );
20864
- var val51 = rotated33.primitives.find(
20933
+ var val54 = rotated33.primitives.find(
20865
20934
  (p) => p.type === "text" && p.text === "{VAL}"
20866
20935
  );
20867
- ref53.anchor = "middle_bottom";
20868
- val51.anchor = "middle_top";
20869
- ref53.x = 0.3;
20870
- ref53.y += 0.265;
20871
- val51.y -= 0.265;
20872
- val51.x = 0.3;
20936
+ ref56.anchor = "middle_bottom";
20937
+ val54.anchor = "middle_top";
20938
+ ref56.x = 0.3;
20939
+ ref56.y += 0.265;
20940
+ val54.y -= 0.265;
20941
+ val54.x = 0.3;
20873
20942
  var spst_switch_up_default = rotated33;
20874
20943
 
20875
20944
  // assets/generated/step_recovery_diode.json
@@ -21034,7 +21103,7 @@ var step_recovery_diode_default = {
21034
21103
  };
21035
21104
 
21036
21105
  // symbols/step_recovery_diode_horz.ts
21037
- var { paths: paths100, texts: texts110, bounds: bounds100, refblocks: refblocks100, circles: circles94 } = step_recovery_diode_default;
21106
+ var { paths: paths101, texts: texts111, bounds: bounds101, refblocks: refblocks101, circles: circles95 } = step_recovery_diode_default;
21038
21107
  var step_recovery_diode_horz_default = modifySymbol(step_recovery_diode_default).changeTextAnchor("{VAL}", "middle_top").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_bottom").build();
21039
21108
 
21040
21109
  // symbols/step_recovery_diode_vert.ts
@@ -21127,11 +21196,11 @@ var tachometer_default = {
21127
21196
  };
21128
21197
 
21129
21198
  // symbols/tachometer_horz.ts
21130
- var { paths: paths101, texts: texts111, bounds: bounds101, refblocks: refblocks101, circles: circles95 } = tachometer_default;
21199
+ var { paths: paths102, texts: texts112, bounds: bounds102, refblocks: refblocks102, circles: circles96 } = tachometer_default;
21131
21200
  var tachometer_horz_default = defineSymbol({
21132
21201
  primitives: [
21133
- ...Object.values(paths101),
21134
- ...Object.values(circles95),
21202
+ ...Object.values(paths102),
21203
+ ...Object.values(circles96),
21135
21204
  {
21136
21205
  type: "text",
21137
21206
  text: "{REF}",
@@ -21146,16 +21215,16 @@ var tachometer_horz_default = defineSymbol({
21146
21215
  y: 0.35,
21147
21216
  anchor: "middle_bottom"
21148
21217
  },
21149
- { ...texts111.left1, y: 0.01, anchor: "center", fontSize: 0.2 }
21218
+ { ...texts112.left1, y: 0.01, anchor: "center", fontSize: 0.2 }
21150
21219
  ],
21151
21220
  ports: [
21152
- { ...refblocks101.left1, labels: ["1"] },
21221
+ { ...refblocks102.left1, labels: ["1"] },
21153
21222
  // TODO add more "standard" labels
21154
- { ...refblocks101.right1, labels: ["2"] }
21223
+ { ...refblocks102.right1, labels: ["2"] }
21155
21224
  // TODO add more "standard" labels
21156
21225
  ],
21157
- size: { width: bounds101.width, height: bounds101.height },
21158
- center: { x: bounds101.centerX, y: bounds101.centerY }
21226
+ size: { width: bounds102.width, height: bounds102.height },
21227
+ center: { x: bounds102.centerX, y: bounds102.centerY }
21159
21228
  });
21160
21229
 
21161
21230
  // symbols/tachometer_vert.ts
@@ -21202,11 +21271,11 @@ var testpoint_right_default = defineSymbol({
21202
21271
 
21203
21272
  // symbols/testpoint_down.ts
21204
21273
  var rotated34 = rotateSymbol(testpoint_right_default, "down");
21205
- var ref54 = rotated34.primitives.find(
21274
+ var ref57 = rotated34.primitives.find(
21206
21275
  (p) => p.type === "text" && p.text === "{REF}"
21207
21276
  );
21208
- if (ref54) {
21209
- ref54.anchor = "middle_top";
21277
+ if (ref57) {
21278
+ ref57.anchor = "middle_top";
21210
21279
  }
21211
21280
  var testpoint_down_default = rotated34;
21212
21281
 
@@ -21215,11 +21284,11 @@ var testpoint_left_default = rotateSymbol(testpoint_right_default, "left");
21215
21284
 
21216
21285
  // symbols/testpoint_up.ts
21217
21286
  var rotated35 = rotateSymbol(testpoint_right_default, "up");
21218
- var ref55 = rotated35.primitives.find(
21287
+ var ref58 = rotated35.primitives.find(
21219
21288
  (p) => p.type === "text" && p.text === "{REF}"
21220
21289
  );
21221
- if (ref55) {
21222
- ref55.anchor = "middle_bottom";
21290
+ if (ref58) {
21291
+ ref58.anchor = "middle_bottom";
21223
21292
  }
21224
21293
  var testpoint_up_default = rotated35;
21225
21294
 
@@ -21340,50 +21409,50 @@ var tilted_ground_right_default = modifySymbol(tilted_ground_default).labelPort(
21340
21409
 
21341
21410
  // symbols/tilted_ground_up.ts
21342
21411
  var rotated36 = rotateSymbol(tilted_ground_right_default, "up");
21343
- var ref56 = rotated36.primitives.find(
21412
+ var ref59 = rotated36.primitives.find(
21344
21413
  (p) => p.type === "text" && p.text === "{REF}"
21345
21414
  );
21346
- var val52 = rotated36.primitives.find(
21415
+ var val55 = rotated36.primitives.find(
21347
21416
  (p) => p.type === "text" && p.text === "{VAL}"
21348
21417
  );
21349
- ref56.anchor = "middle_bottom";
21350
- val52.anchor = "middle_top";
21351
- ref56.x = 0.4;
21352
- ref56.y += 0.2;
21353
- val52.y -= 0.3;
21354
- val52.x = 0.4;
21418
+ ref59.anchor = "middle_bottom";
21419
+ val55.anchor = "middle_top";
21420
+ ref59.x = 0.4;
21421
+ ref59.y += 0.2;
21422
+ val55.y -= 0.3;
21423
+ val55.x = 0.4;
21355
21424
  var tilted_ground_up_default = rotated36;
21356
21425
 
21357
21426
  // symbols/tilted_ground_down.ts
21358
21427
  var rotated37 = flipSymbolOverXAxis(tilted_ground_up_default);
21359
- var ref57 = rotated37.primitives.find(
21428
+ var ref60 = rotated37.primitives.find(
21360
21429
  (p) => p.type === "text" && p.text === "{REF}"
21361
21430
  );
21362
- var val53 = rotated37.primitives.find(
21431
+ var val56 = rotated37.primitives.find(
21363
21432
  (p) => p.type === "text" && p.text === "{VAL}"
21364
21433
  );
21365
- ref57.anchor = "middle_bottom";
21366
- val53.anchor = "middle_top";
21367
- ref57.x = 0.35;
21368
- ref57.y += 0.4;
21369
- val53.y -= 0.4;
21370
- val53.x = 0.35;
21434
+ ref60.anchor = "middle_bottom";
21435
+ val56.anchor = "middle_top";
21436
+ ref60.x = 0.35;
21437
+ ref60.y += 0.4;
21438
+ val56.y -= 0.4;
21439
+ val56.x = 0.35;
21371
21440
  var tilted_ground_down_default = rotated37;
21372
21441
 
21373
21442
  // symbols/tilted_ground_left.ts
21374
21443
  var rotated38 = rotateSymbol(tilted_ground_right_default, "left");
21375
- var ref58 = rotated38.primitives.find(
21444
+ var ref61 = rotated38.primitives.find(
21376
21445
  (p) => p.type === "text" && p.text === "{REF}"
21377
21446
  );
21378
- var val54 = rotated38.primitives.find(
21447
+ var val57 = rotated38.primitives.find(
21379
21448
  (p) => p.type === "text" && p.text === "{VAL}"
21380
21449
  );
21381
- ref58.anchor = "middle_bottom";
21382
- val54.anchor = "middle_top";
21383
- ref58.x = 0;
21384
- ref58.y += 0.5;
21385
- val54.y -= 0.6;
21386
- val54.x = 0;
21450
+ ref61.anchor = "middle_bottom";
21451
+ val57.anchor = "middle_top";
21452
+ ref61.x = 0;
21453
+ ref61.y += 0.5;
21454
+ val57.y -= 0.6;
21455
+ val57.x = 0;
21387
21456
  var tilted_ground_left_default = rotated38;
21388
21457
 
21389
21458
  // assets/generated/triac.json
@@ -21577,18 +21646,18 @@ var triac_default = {
21577
21646
  };
21578
21647
 
21579
21648
  // symbols/triac_horz.ts
21580
- var { paths: paths102, texts: texts112, bounds: bounds102, refblocks: refblocks102, circles: circles96 } = triac_default;
21649
+ var { paths: paths103, texts: texts113, bounds: bounds103, refblocks: refblocks103, circles: circles97 } = triac_default;
21581
21650
  var triac_horz_default = modifySymbol(triac_default).changeTextAnchor("{VAL}", "middle_top").labelPort("left1", ["1"]).labelPort("right1", ["2"]).labelPort("bottom1", ["3"]).changeTextAnchor("{REF}", "middle_bottom").build();
21582
21651
 
21583
21652
  // symbols/triac_vert.ts
21584
21653
  var rotatedSymbol15 = rotateSymbol(triac_horz_default);
21585
- var texts113 = rotatedSymbol15.primitives.filter(
21654
+ var texts114 = rotatedSymbol15.primitives.filter(
21586
21655
  (primitive) => primitive.type === "text"
21587
21656
  );
21588
- var ref59 = texts113.find((text) => text.text === "{REF}");
21589
- var val55 = texts113.find((text) => text.text === "{VAL}");
21590
- ref59.y = 0;
21591
- val55.y = 0;
21657
+ var ref62 = texts114.find((text) => text.text === "{REF}");
21658
+ var val58 = texts114.find((text) => text.text === "{VAL}");
21659
+ ref62.y = 0;
21660
+ val58.y = 0;
21592
21661
  var triac_vert_default = rotatedSymbol15;
21593
21662
 
21594
21663
  // assets/generated/tunnel_diode.json
@@ -21753,34 +21822,34 @@ var tunnel_diode_default = {
21753
21822
  };
21754
21823
 
21755
21824
  // symbols/tunnel_diode_horz.ts
21756
- var { paths: paths103, texts: texts114, bounds: bounds103, refblocks: refblocks103, circles: circles97 } = tunnel_diode_default;
21825
+ var { paths: paths104, texts: texts115, bounds: bounds104, refblocks: refblocks104, circles: circles98 } = tunnel_diode_default;
21757
21826
  var tunnel_diode_horz_default = defineSymbol({
21758
21827
  primitives: [
21759
- ...Object.values(paths103),
21760
- ...Object.values(circles97),
21761
- { ...texts114.top1, anchor: "middle_bottom" },
21762
- { ...texts114.bottom1, anchor: "middle_top" }
21828
+ ...Object.values(paths104),
21829
+ ...Object.values(circles98),
21830
+ { ...texts115.top1, anchor: "middle_bottom" },
21831
+ { ...texts115.bottom1, anchor: "middle_top" }
21763
21832
  ],
21764
21833
  ports: [
21765
- { ...refblocks103.left1, labels: ["1"] },
21834
+ { ...refblocks104.left1, labels: ["1"] },
21766
21835
  // TODO add more "standard" labels
21767
- { ...refblocks103.right1, labels: ["2"] }
21836
+ { ...refblocks104.right1, labels: ["2"] }
21768
21837
  // TODO add more "standard" labels
21769
21838
  ],
21770
- size: { width: bounds103.width, height: bounds103.height },
21771
- center: { x: bounds103.centerX, y: bounds103.centerY }
21839
+ size: { width: bounds104.width, height: bounds104.height },
21840
+ center: { x: bounds104.centerX, y: bounds104.centerY }
21772
21841
  });
21773
21842
 
21774
21843
  // symbols/tunnel_diode_vert.ts
21775
21844
  var rotated39 = rotateSymbol(tunnel_diode_horz_default);
21776
- var ref60 = rotated39.primitives.find(
21845
+ var ref63 = rotated39.primitives.find(
21777
21846
  (p) => p.type === "text" && p.text === "{REF}"
21778
21847
  );
21779
- var val56 = rotated39.primitives.find(
21848
+ var val59 = rotated39.primitives.find(
21780
21849
  (p) => p.type === "text" && p.text === "{VAL}"
21781
21850
  );
21782
- ref60.anchor = "middle_left";
21783
- val56.anchor = "middle_right";
21851
+ ref63.anchor = "middle_left";
21852
+ val59.anchor = "middle_right";
21784
21853
  var tunnel_diode_vert_default = rotated39;
21785
21854
 
21786
21855
  // assets/generated/unijunction_transistor.json
@@ -21951,36 +22020,36 @@ var unijunction_transistor_default = {
21951
22020
  };
21952
22021
 
21953
22022
  // symbols/unijunction_transistor_horz.ts
21954
- var { paths: paths104, texts: texts115, bounds: bounds104, refblocks: refblocks104, circles: circles98 } = unijunction_transistor_default;
22023
+ var { paths: paths105, texts: texts116, bounds: bounds105, refblocks: refblocks105, circles: circles99 } = unijunction_transistor_default;
21955
22024
  var unijunction_transistor_horz_default = defineSymbol({
21956
22025
  primitives: [
21957
- ...Object.values(paths104),
21958
- ...Object.values(circles98),
21959
- { ...texts115.top1, anchor: "middle_left" },
21960
- { ...texts115.bottom1, anchor: "middle_right" }
22026
+ ...Object.values(paths105),
22027
+ ...Object.values(circles99),
22028
+ { ...texts116.top1, anchor: "middle_left" },
22029
+ { ...texts116.bottom1, anchor: "middle_right" }
21961
22030
  ],
21962
22031
  ports: [
21963
- { ...refblocks104.top1, labels: ["1"] },
22032
+ { ...refblocks105.top1, labels: ["1"] },
21964
22033
  // TODO add more "standard" labels
21965
- { ...refblocks104.bottom1, labels: ["2"] },
22034
+ { ...refblocks105.bottom1, labels: ["2"] },
21966
22035
  // TODO add more "standard" labels
21967
- { ...refblocks104.left1, labels: ["3"] }
22036
+ { ...refblocks105.left1, labels: ["3"] }
21968
22037
  // TODO add more "standard" labels
21969
22038
  ],
21970
- size: { width: bounds104.width, height: bounds104.height },
21971
- center: { x: bounds104.centerX, y: bounds104.centerY }
22039
+ size: { width: bounds105.width, height: bounds105.height },
22040
+ center: { x: bounds105.centerX, y: bounds105.centerY }
21972
22041
  });
21973
22042
 
21974
22043
  // symbols/unijunction_transistor_vert.ts
21975
22044
  var rotatedSymbol16 = rotateSymbol(unijunction_transistor_horz_default);
21976
- var texts116 = rotatedSymbol16.primitives.filter(
22045
+ var texts117 = rotatedSymbol16.primitives.filter(
21977
22046
  (primitive) => primitive.type === "text"
21978
22047
  );
21979
- var ref61 = texts116.find((text) => text.text === "{REF}");
21980
- ref61.y = 0.1;
21981
- var val57 = texts116.find((text) => text.text === "{VAL}");
21982
- val57.y = 0.1;
21983
- val57.x = -0.4;
22048
+ var ref64 = texts117.find((text) => text.text === "{REF}");
22049
+ ref64.y = 0.1;
22050
+ var val60 = texts117.find((text) => text.text === "{VAL}");
22051
+ val60.y = 0.1;
22052
+ val60.x = -0.4;
21984
22053
  var unijunction_transistor_vert_default = rotatedSymbol16;
21985
22054
 
21986
22055
  // assets/generated/usbc.json
@@ -22222,33 +22291,33 @@ var var_meter_default = {
22222
22291
  };
22223
22292
 
22224
22293
  // symbols/var_meter_horz.ts
22225
- var { paths: paths105, texts: texts117, bounds: bounds105, refblocks: refblocks105, circles: circles99 } = var_meter_default;
22294
+ var { paths: paths106, texts: texts118, bounds: bounds106, refblocks: refblocks106, circles: circles100 } = var_meter_default;
22226
22295
  var var_meter_horz_default = defineSymbol({
22227
22296
  primitives: [
22228
- ...Object.values(paths105),
22229
- ...Object.values(circles99),
22297
+ ...Object.values(paths106),
22298
+ ...Object.values(circles100),
22230
22299
  {
22231
- ...texts117.top1,
22300
+ ...texts118.top1,
22232
22301
  x: 0,
22233
22302
  y: -0.3594553499999995,
22234
22303
  anchor: "middle_top"
22235
22304
  },
22236
22305
  {
22237
- ...texts117.bottom1,
22306
+ ...texts118.bottom1,
22238
22307
  x: 0,
22239
22308
  y: 0.35,
22240
22309
  anchor: "middle_bottom"
22241
22310
  },
22242
- { ...texts117.left1, x: -0.02, y: 0.01, fontSize: 0.2, anchor: "center" }
22311
+ { ...texts118.left1, x: -0.02, y: 0.01, fontSize: 0.2, anchor: "center" }
22243
22312
  ],
22244
22313
  ports: [
22245
- { ...refblocks105.left1, labels: ["1"] },
22314
+ { ...refblocks106.left1, labels: ["1"] },
22246
22315
  // TODO add more "standard" labels
22247
- { ...refblocks105.right1, labels: ["2"] }
22316
+ { ...refblocks106.right1, labels: ["2"] }
22248
22317
  // TODO add more "standard" labels
22249
22318
  ],
22250
- size: { width: bounds105.width, height: bounds105.height },
22251
- center: { x: bounds105.centerX, y: bounds105.centerY }
22319
+ size: { width: bounds106.width, height: bounds106.height },
22320
+ center: { x: bounds106.centerX, y: bounds106.centerY }
22252
22321
  });
22253
22322
 
22254
22323
  // symbols/var_meter_vert.ts
@@ -22401,34 +22470,34 @@ var varactor_diode_default = {
22401
22470
  };
22402
22471
 
22403
22472
  // symbols/varactor_diode_horz.ts
22404
- var { paths: paths106, texts: texts118, bounds: bounds106, refblocks: refblocks106, circles: circles100 } = varactor_diode_default;
22473
+ var { paths: paths107, texts: texts119, bounds: bounds107, refblocks: refblocks107, circles: circles101 } = varactor_diode_default;
22405
22474
  var varactor_diode_horz_default = defineSymbol({
22406
22475
  primitives: [
22407
- ...Object.values(paths106),
22408
- ...Object.values(circles100),
22409
- { ...texts118.top1, anchor: "middle_bottom" },
22410
- { ...texts118.bottom1, anchor: "middle_top" }
22476
+ ...Object.values(paths107),
22477
+ ...Object.values(circles101),
22478
+ { ...texts119.top1, anchor: "middle_bottom" },
22479
+ { ...texts119.bottom1, anchor: "middle_top" }
22411
22480
  ],
22412
22481
  ports: [
22413
- { ...refblocks106.left1, labels: ["1"] },
22482
+ { ...refblocks107.left1, labels: ["1"] },
22414
22483
  // TODO add more "standard" labels
22415
- { ...refblocks106.right1, labels: ["2"] }
22484
+ { ...refblocks107.right1, labels: ["2"] }
22416
22485
  // TODO add more "standard" labels
22417
22486
  ],
22418
- size: { width: bounds106.width, height: bounds106.height },
22419
- center: { x: bounds106.centerX, y: bounds106.centerY }
22487
+ size: { width: bounds107.width, height: bounds107.height },
22488
+ center: { x: bounds107.centerX, y: bounds107.centerY }
22420
22489
  });
22421
22490
 
22422
22491
  // symbols/varactor_diode_vert.ts
22423
22492
  var rotated40 = rotateSymbol(varactor_diode_horz_default);
22424
- var ref62 = rotated40.primitives.find(
22493
+ var ref65 = rotated40.primitives.find(
22425
22494
  (p) => p.type === "text" && p.text === "{REF}"
22426
22495
  );
22427
- var val58 = rotated40.primitives.find(
22496
+ var val61 = rotated40.primitives.find(
22428
22497
  (p) => p.type === "text" && p.text === "{VAL}"
22429
22498
  );
22430
- ref62.anchor = "middle_left";
22431
- val58.anchor = "middle_right";
22499
+ ref65.anchor = "middle_left";
22500
+ val61.anchor = "middle_right";
22432
22501
  var varactor_diode_vert_default = rotated40;
22433
22502
 
22434
22503
  // assets/generated/varistor.json
@@ -22564,26 +22633,26 @@ var varistor_default = {
22564
22633
  };
22565
22634
 
22566
22635
  // symbols/varistor_horz.ts
22567
- var { paths: paths107, texts: texts119, bounds: bounds107, refblocks: refblocks107 } = varistor_default;
22636
+ var { paths: paths108, texts: texts120, bounds: bounds108, refblocks: refblocks108 } = varistor_default;
22568
22637
  var varistor_horz_default = defineSymbol({
22569
22638
  primitives: [
22570
- ...Object.values(paths107),
22571
- { ...texts119.top1, anchor: "middle_left" },
22572
- { ...texts119.bottom1, anchor: "middle_right" }
22639
+ ...Object.values(paths108),
22640
+ { ...texts120.top1, anchor: "middle_left" },
22641
+ { ...texts120.bottom1, anchor: "middle_right" }
22573
22642
  ],
22574
22643
  ports: [
22575
22644
  {
22576
- ...refblocks107.left1,
22645
+ ...refblocks108.left1,
22577
22646
  labels: ["1", "-"]
22578
22647
  },
22579
22648
  {
22580
- ...refblocks107.right1,
22649
+ ...refblocks108.right1,
22581
22650
  labels: ["2", "+"]
22582
22651
  }
22583
22652
  ],
22584
- size: { width: bounds107.width, height: bounds107.height },
22653
+ size: { width: bounds108.width, height: bounds108.height },
22585
22654
  //{ width: 1, height: 0.24 },
22586
- center: { x: bounds107.centerX, y: bounds107.centerY }
22655
+ center: { x: bounds108.centerX, y: bounds108.centerY }
22587
22656
  });
22588
22657
 
22589
22658
  // symbols/varistor_vert.ts
@@ -22676,11 +22745,11 @@ var varmeter_default = {
22676
22745
  };
22677
22746
 
22678
22747
  // symbols/varmeter_horz.ts
22679
- var { paths: paths108, texts: texts120, bounds: bounds108, refblocks: refblocks108, circles: circles101 } = varmeter_default;
22748
+ var { paths: paths109, texts: texts121, bounds: bounds109, refblocks: refblocks109, circles: circles102 } = varmeter_default;
22680
22749
  var varmeter_horz_default = defineSymbol({
22681
22750
  primitives: [
22682
- ...Object.values(paths108),
22683
- ...Object.values(circles101),
22751
+ ...Object.values(paths109),
22752
+ ...Object.values(circles102),
22684
22753
  {
22685
22754
  type: "text",
22686
22755
  text: "{REF}",
@@ -22695,16 +22764,16 @@ var varmeter_horz_default = defineSymbol({
22695
22764
  y: 0.35,
22696
22765
  anchor: "middle_bottom"
22697
22766
  },
22698
- { ...texts120.left1, anchor: "center", y: 0.02, fontSize: 0.2 }
22767
+ { ...texts121.left1, anchor: "center", y: 0.02, fontSize: 0.2 }
22699
22768
  ],
22700
22769
  ports: [
22701
- { ...refblocks108.left1, labels: ["1"] },
22770
+ { ...refblocks109.left1, labels: ["1"] },
22702
22771
  // TODO add more "standard" labels
22703
- { ...refblocks108.right1, labels: ["2"] }
22772
+ { ...refblocks109.right1, labels: ["2"] }
22704
22773
  // TODO add more "standard" labels
22705
22774
  ],
22706
- size: { width: bounds108.width, height: bounds108.height },
22707
- center: { x: bounds108.centerX, y: bounds108.centerY }
22775
+ size: { width: bounds109.width, height: bounds109.height },
22776
+ center: { x: bounds109.centerX, y: bounds109.centerY }
22708
22777
  });
22709
22778
 
22710
22779
  // symbols/varmeter_vert.ts
@@ -22909,7 +22978,7 @@ var volt_meter_default = {
22909
22978
  };
22910
22979
 
22911
22980
  // symbols/volt_meter_horz.ts
22912
- var { paths: paths109, texts: texts121, bounds: bounds109, circles: circles102, refblocks: refblocks109 } = volt_meter_default;
22981
+ var { paths: paths110, texts: texts122, bounds: bounds110, circles: circles103, refblocks: refblocks110 } = volt_meter_default;
22913
22982
  var volt_meter_horz_default = modifySymbol(volt_meter_default).changeTextAnchor("{VAL}", "middle_top").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_bottom").build();
22914
22983
 
22915
22984
  // symbols/volt_meter_vert.ts
@@ -23002,11 +23071,11 @@ var watt_hour_meter_default = {
23002
23071
  };
23003
23072
 
23004
23073
  // symbols/watt_hour_meter_horz.ts
23005
- var { paths: paths110, texts: texts122, bounds: bounds110, refblocks: refblocks110, circles: circles103 } = watt_hour_meter_default;
23074
+ var { paths: paths111, texts: texts123, bounds: bounds111, refblocks: refblocks111, circles: circles104 } = watt_hour_meter_default;
23006
23075
  var watt_hour_meter_horz_default = defineSymbol({
23007
23076
  primitives: [
23008
- ...Object.values(paths110),
23009
- ...Object.values(circles103),
23077
+ ...Object.values(paths111),
23078
+ ...Object.values(circles104),
23010
23079
  {
23011
23080
  type: "text",
23012
23081
  text: "{REF}",
@@ -23021,16 +23090,16 @@ var watt_hour_meter_horz_default = defineSymbol({
23021
23090
  y: 0.35,
23022
23091
  anchor: "middle_bottom"
23023
23092
  },
23024
- { ...texts122.left1, anchor: "center", y: 0.01, fontSize: 0.2 }
23093
+ { ...texts123.left1, anchor: "center", y: 0.01, fontSize: 0.2 }
23025
23094
  ],
23026
23095
  ports: [
23027
- { ...refblocks110.left1, labels: ["1"] },
23096
+ { ...refblocks111.left1, labels: ["1"] },
23028
23097
  // TODO add more "standard" labels
23029
- { ...refblocks110.right1, labels: ["2"] }
23098
+ { ...refblocks111.right1, labels: ["2"] }
23030
23099
  // TODO add more "standard" labels
23031
23100
  ],
23032
- size: { width: bounds110.width, height: bounds110.height },
23033
- center: { x: bounds110.centerX, y: bounds110.centerY }
23101
+ size: { width: bounds111.width, height: bounds111.height },
23102
+ center: { x: bounds111.centerX, y: bounds111.centerY }
23034
23103
  });
23035
23104
 
23036
23105
  // symbols/watt_hour_meter_vert.ts
@@ -23134,11 +23203,11 @@ var wattmeter_default = {
23134
23203
  };
23135
23204
 
23136
23205
  // symbols/wattmeter_horz.ts
23137
- var { paths: paths111, texts: texts123, bounds: bounds111, refblocks: refblocks111, circles: circles104 } = wattmeter_default;
23206
+ var { paths: paths112, texts: texts124, bounds: bounds112, refblocks: refblocks112, circles: circles105 } = wattmeter_default;
23138
23207
  var wattmeter_horz_default = defineSymbol({
23139
23208
  primitives: [
23140
- ...Object.values(paths111),
23141
- ...Object.values(circles104),
23209
+ ...Object.values(paths112),
23210
+ ...Object.values(circles105),
23142
23211
  {
23143
23212
  type: "text",
23144
23213
  text: "{REF}",
@@ -23153,16 +23222,16 @@ var wattmeter_horz_default = defineSymbol({
23153
23222
  y: 0.35,
23154
23223
  anchor: "middle_bottom"
23155
23224
  },
23156
- { ...texts123.left1, anchor: "center", y: 0.01, fontSize: 0.3 }
23225
+ { ...texts124.left1, anchor: "center", y: 0.01, fontSize: 0.3 }
23157
23226
  ],
23158
23227
  ports: [
23159
- { ...refblocks111.left1, labels: ["1"] },
23228
+ { ...refblocks112.left1, labels: ["1"] },
23160
23229
  // TODO add more "standard" labels
23161
- { ...refblocks111.right1, labels: ["2"] }
23230
+ { ...refblocks112.right1, labels: ["2"] }
23162
23231
  // TODO add more "standard" labels
23163
23232
  ],
23164
- size: { width: bounds111.width, height: bounds111.height },
23165
- center: { x: bounds111.centerX, y: bounds111.centerY }
23233
+ size: { width: bounds112.width, height: bounds112.height },
23234
+ center: { x: bounds112.centerX, y: bounds112.centerY }
23166
23235
  });
23167
23236
 
23168
23237
  // symbols/wattmeter_vert.ts
@@ -23326,34 +23395,34 @@ var zener_diode_default = {
23326
23395
  };
23327
23396
 
23328
23397
  // symbols/zener_diode_horz.ts
23329
- var { paths: paths112, texts: texts124, bounds: bounds112, refblocks: refblocks112, circles: circles105 } = zener_diode_default;
23398
+ var { paths: paths113, texts: texts125, bounds: bounds113, refblocks: refblocks113, circles: circles106 } = zener_diode_default;
23330
23399
  var zener_diode_horz_default = defineSymbol({
23331
23400
  primitives: [
23332
- ...Object.values(paths112),
23333
- ...Object.values(circles105),
23334
- { ...texts124.top1, anchor: "middle_bottom" },
23335
- { ...texts124.bottom1, anchor: "middle_top" }
23401
+ ...Object.values(paths113),
23402
+ ...Object.values(circles106),
23403
+ { ...texts125.top1, anchor: "middle_bottom" },
23404
+ { ...texts125.bottom1, anchor: "middle_top" }
23336
23405
  ],
23337
23406
  ports: [
23338
- { ...refblocks112.left1, labels: ["1"] },
23407
+ { ...refblocks113.left1, labels: ["1"] },
23339
23408
  // TODO add more "standard" labels
23340
- { ...refblocks112.right1, labels: ["2"] }
23409
+ { ...refblocks113.right1, labels: ["2"] }
23341
23410
  // TODO add more "standard" labels
23342
23411
  ],
23343
- size: { width: bounds112.width, height: bounds112.height },
23344
- center: { x: bounds112.centerX, y: bounds112.centerY }
23412
+ size: { width: bounds113.width, height: bounds113.height },
23413
+ center: { x: bounds113.centerX, y: bounds113.centerY }
23345
23414
  });
23346
23415
 
23347
23416
  // symbols/zener_diode_vert.ts
23348
23417
  var rotated41 = rotateSymbol(zener_diode_horz_default);
23349
- var ref63 = rotated41.primitives.find(
23418
+ var ref66 = rotated41.primitives.find(
23350
23419
  (p) => p.type === "text" && p.text === "{REF}"
23351
23420
  );
23352
- var val59 = rotated41.primitives.find(
23421
+ var val62 = rotated41.primitives.find(
23353
23422
  (p) => p.type === "text" && p.text === "{VAL}"
23354
23423
  );
23355
- ref63.anchor = "middle_left";
23356
- val59.anchor = "middle_right";
23424
+ ref66.anchor = "middle_left";
23425
+ val62.anchor = "middle_right";
23357
23426
  var zener_diode_vert_default = rotated41;
23358
23427
 
23359
23428
  // generated/symbols-index.ts
@@ -23562,7 +23631,11 @@ var symbols_index_default = {
23562
23631
  "resistor_left": resistor_left_default,
23563
23632
  "resistor_right": resistor_right_default,
23564
23633
  "resistor_up": resistor_up_default,
23634
+ "resonator_down": resonator_down_default,
23565
23635
  "resonator_horz": resonator_horz_default,
23636
+ "resonator_left": resonator_left_default,
23637
+ "resonator_right": resonator_right_default,
23638
+ "resonator_up": resonator_up_default,
23566
23639
  "resonator_vert": resonator_vert_default,
23567
23640
  "schottky_diode_down": schottky_diode_down_default,
23568
23641
  "schottky_diode_left": schottky_diode_left_default,
@@ -23741,9 +23814,9 @@ function createPortElement(port, { yUpPositive }) {
23741
23814
  <text x="${x - labelFontSize / 2}" y="${makeYUpPositive(y, yUpPositive) + rectSize + labelFontSize / 2}" text-anchor="middle" style="font: ${labelFontSize}px monospace; fill: #833;">${label}</text>
23742
23815
  `;
23743
23816
  }
23744
- function getInnerSvg(symbol11, options = {}) {
23817
+ function getInnerSvg(symbol14, options = {}) {
23745
23818
  const { debug = false } = options;
23746
- const { primitives, size, ports } = symbol11;
23819
+ const { primitives, size, ports } = symbol14;
23747
23820
  const svgElements = primitives.map((primitive) => {
23748
23821
  switch (primitive.type) {
23749
23822
  case "path":
@@ -23765,12 +23838,12 @@ function getInnerSvg(symbol11, options = {}) {
23765
23838
  }
23766
23839
  });
23767
23840
  const portElements = ports.map((p) => createPortElement(p, { yUpPositive: true })).join("\n ");
23768
- const centerDiamond = createDiamondElement(symbol11.center);
23841
+ const centerDiamond = createDiamondElement(symbol14.center);
23769
23842
  const debugElements = [];
23770
23843
  if (debug) {
23771
23844
  const topLeft = {
23772
- x: symbol11.center.x - size.width / 2,
23773
- y: symbol11.center.y - size.height / 2
23845
+ x: symbol14.center.x - size.width / 2,
23846
+ y: symbol14.center.y - size.height / 2
23774
23847
  };
23775
23848
  debugElements.push(
23776
23849
  `<text x="${topLeft.x}" y="${topLeft.y}" style="font: 0.05px monospace; fill: #833;">${size.width.toFixed(2)} x ${size.height.toFixed(2)}</text>`
@@ -23792,15 +23865,15 @@ function getInnerSvg(symbol11, options = {}) {
23792
23865
  ...debugElements
23793
23866
  ].join("\n");
23794
23867
  }
23795
- function getSvg(symbol11, options = {}) {
23796
- const { size } = symbol11;
23797
- const innerSvg = getInnerSvg(symbol11, options);
23868
+ function getSvg(symbol14, options = {}) {
23869
+ const { size } = symbol14;
23870
+ const innerSvg = getInnerSvg(symbol14, options);
23798
23871
  const bufferMultiple = 1.2;
23799
23872
  const w = size.width * bufferMultiple;
23800
23873
  const h = size.height * bufferMultiple;
23801
23874
  const viewBox = {
23802
- x: symbol11.center.x - w / 2,
23803
- y: makeYUpPositive(symbol11.center.y, true) - h / 2,
23875
+ x: symbol14.center.x - w / 2,
23876
+ y: makeYUpPositive(symbol14.center.y, true) - h / 2,
23804
23877
  width: w,
23805
23878
  height: h
23806
23879
  };
@@ -23816,8 +23889,8 @@ function getSvg(symbol11, options = {}) {
23816
23889
  }
23817
23890
 
23818
23891
  // drawing/resizeSymbol.ts
23819
- function resizeSymbol(symbol11, newSize) {
23820
- const { width: oldWidth, height: oldHeight } = symbol11.size;
23892
+ function resizeSymbol(symbol14, newSize) {
23893
+ const { width: oldWidth, height: oldHeight } = symbol14.size;
23821
23894
  let scaleX = 1, scaleY = 1;
23822
23895
  if (newSize.width && newSize.height) {
23823
23896
  scaleX = newSize.width / oldWidth;
@@ -23827,7 +23900,7 @@ function resizeSymbol(symbol11, newSize) {
23827
23900
  } else if (newSize.height) {
23828
23901
  scaleX = scaleY = newSize.height / oldHeight;
23829
23902
  }
23830
- const resizedPrimitives = symbol11.primitives.map((primitive) => {
23903
+ const resizedPrimitives = symbol14.primitives.map((primitive) => {
23831
23904
  switch (primitive.type) {
23832
23905
  case "path":
23833
23906
  return {
@@ -23857,13 +23930,13 @@ function resizeSymbol(symbol11, newSize) {
23857
23930
  }
23858
23931
  });
23859
23932
  return {
23860
- ...symbol11,
23933
+ ...symbol14,
23861
23934
  primitives: resizedPrimitives,
23862
23935
  center: {
23863
- x: symbol11.center.x * scaleX,
23864
- y: symbol11.center.y * scaleY
23936
+ x: symbol14.center.x * scaleX,
23937
+ y: symbol14.center.y * scaleY
23865
23938
  },
23866
- ports: symbol11.ports.map((port) => ({
23939
+ ports: symbol14.ports.map((port) => ({
23867
23940
  ...port,
23868
23941
  x: port.x * scaleX,
23869
23942
  y: port.y * scaleY