schematic-symbols 0.0.124 → 0.0.126

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
@@ -44,10 +44,10 @@ function getBoundsOfPrimitives(primitives) {
44
44
  function defineSymbol(symbol) {
45
45
  let size = symbol.size;
46
46
  if (!size) {
47
- const bounds52 = getBoundsOfPrimitives(symbol.primitives);
47
+ const bounds51 = getBoundsOfPrimitives(symbol.primitives);
48
48
  size = {
49
- width: bounds52.maxX - bounds52.minX,
50
- height: bounds52.maxY - bounds52.minY
49
+ width: bounds51.maxX - bounds51.minX,
50
+ height: bounds51.maxY - bounds51.minY
51
51
  };
52
52
  }
53
53
  return { ...symbol, size };
@@ -494,14 +494,14 @@ var rotateRightFacingSymbol = (symbol, opts) => {
494
494
  ...applyToPoint(transform2, port)
495
495
  })
496
496
  );
497
- const bounds52 = getBoundsOfPrimitives(rotatedPrimitives);
497
+ const bounds51 = getBoundsOfPrimitives(rotatedPrimitives);
498
498
  return {
499
499
  primitives: rotatedPrimitives,
500
500
  center,
501
501
  ports: rotatedPorts,
502
502
  size: {
503
- width: bounds52.maxX - bounds52.minX,
504
- height: bounds52.maxY - bounds52.minY
503
+ width: bounds51.maxX - bounds51.minX,
504
+ height: bounds51.maxY - bounds51.minY
505
505
  },
506
506
  ...overrides
507
507
  };
@@ -913,7 +913,7 @@ var boxresistor_default = {
913
913
  y: 0.04580520000000021
914
914
  },
915
915
  right1: {
916
- x: 0.5337907000000004,
916
+ x: 0.5687907000000004,
917
917
  y: 0.04525870000000154
918
918
  }
919
919
  },
@@ -968,10 +968,10 @@ var SymbolModifier = class {
968
968
  return this;
969
969
  }
970
970
  computeSize() {
971
- const bounds52 = getBoundsOfPrimitives(this.symbol.primitives);
971
+ const bounds51 = getBoundsOfPrimitives(this.symbol.primitives);
972
972
  return {
973
- width: bounds52.maxX - bounds52.minX,
974
- height: bounds52.maxY - bounds52.minY
973
+ width: bounds51.maxX - bounds51.minX,
974
+ height: bounds51.maxY - bounds51.minY
975
975
  };
976
976
  }
977
977
  build() {
@@ -15083,8 +15083,8 @@ val31.y -= 0.28;
15083
15083
  val31.x = 0.4;
15084
15084
  var spdt_normally_closed_switch_up_default = rotated23;
15085
15085
 
15086
- // assets/generated/SPDT_switch.json
15087
- var SPDT_switch_default = {
15086
+ // assets/generated/spdt_switch.json
15087
+ var spdt_switch_default = {
15088
15088
  paths: {
15089
15089
  path1: {
15090
15090
  type: "path",
@@ -15105,12 +15105,12 @@ var SPDT_switch_default = {
15105
15105
  type: "path",
15106
15106
  points: [
15107
15107
  {
15108
- x: -0.1133669500000003,
15108
+ x: -0.0733669500000003,
15109
15109
  y: 0.0321987500000005
15110
15110
  },
15111
15111
  {
15112
15112
  x: 0.11208324999999997,
15113
- y: 0.14600155000000048
15113
+ y: 0.14000155000000047
15114
15114
  }
15115
15115
  ],
15116
15116
  color: "primary",
@@ -15151,37 +15151,25 @@ var SPDT_switch_default = {
15151
15151
  top1: {
15152
15152
  type: "text",
15153
15153
  text: "{REF}",
15154
- x: -0.17853294999999947,
15154
+ x: 0,
15155
15155
  y: 0.39716265000000006
15156
15156
  },
15157
15157
  bottom1: {
15158
15158
  type: "text",
15159
15159
  text: "{VAL}",
15160
- x: -0.011861250000000378,
15160
+ x: 0,
15161
15161
  y: -0.39716264999999984
15162
15162
  }
15163
15163
  },
15164
15164
  refblocks: {
15165
- top1: {
15166
- x: 0.10744654999999947,
15167
- y: 0.17214664999999973
15168
- },
15169
15165
  left1: {
15170
15166
  x: -0.3682737499999995,
15171
15167
  y: 0.03204385000000021
15172
15168
  },
15173
- left2: {
15174
- x: -0.11569114999999996,
15175
- y: 0.03204385000000021
15176
- },
15177
15169
  right1: {
15178
15170
  x: 0.3682737499999995,
15179
15171
  y: -0.06451304999999996
15180
15172
  },
15181
- right2: {
15182
- x: 0.3682737499999995,
15183
- y: 0.17214665000000062
15184
- },
15185
15173
  right3: {
15186
15174
  x: 0.3682737499999995,
15187
15175
  y: 0.17214664999999973
@@ -15197,43 +15185,84 @@ var SPDT_switch_default = {
15197
15185
  centerX: 0,
15198
15186
  centerY: 11102230246251565e-32
15199
15187
  },
15200
- circles: {}
15188
+ circles: {
15189
+ "circle-3": {
15190
+ type: "circle",
15191
+ x: 0.08200307499999998,
15192
+ y: -0.06518,
15193
+ radius: 0.023193523,
15194
+ color: "primary",
15195
+ fill: false
15196
+ },
15197
+ "circle-1": {
15198
+ type: "circle",
15199
+ x: -0.09900307499999998,
15200
+ y: 0.02848,
15201
+ radius: 0.023193523,
15202
+ color: "primary",
15203
+ fill: false
15204
+ },
15205
+ "circle-2": {
15206
+ type: "circle",
15207
+ x: 0.08200307499999998,
15208
+ y: 0.172848,
15209
+ radius: 0.023193523,
15210
+ color: "primary",
15211
+ fill: false
15212
+ }
15213
+ }
15201
15214
  };
15202
15215
 
15203
- // symbols/SPDT_switch_horz.ts
15204
- SPDT_switch_default.bounds.width += 0.2;
15205
- var { paths: paths38, texts: texts52, bounds: bounds38, refblocks: refblocks38, circles: circles34 } = SPDT_switch_default;
15206
- var SPDT_switch_horz_default = defineSymbol({
15207
- primitives: [
15208
- ...Object.values(paths38),
15209
- ...Object.values(circles34),
15210
- { ...texts52.top1, anchor: "middle_bottom", x: -0.01 },
15211
- { ...texts52.bottom1, anchor: "middle_top", x: -0.01 }
15212
- ],
15213
- ports: [
15214
- { ...refblocks38.left1, labels: ["1"] },
15215
- // TODO add more "standard" labels
15216
- { ...refblocks38.right1, labels: ["3"] },
15217
- // TODO add more "standard" labels
15218
- { ...refblocks38.right2, labels: ["2"] }
15219
- // TODO add more "standard" labels
15220
- ],
15221
- size: { width: bounds38.width, height: bounds38.height },
15222
- center: { x: bounds38.centerX, y: bounds38.centerY }
15223
- });
15216
+ // symbols/spdt_switch_right.ts
15217
+ var spdt_switch_right_default = modifySymbol(spdt_switch_default).changeTextAnchor("{VAL}", "middle_top").labelPort("left1", ["1"]).labelPort("right3", ["2"]).labelPort("right1", ["3"]).changeTextAnchor("{REF}", "middle_bottom").build();
15218
+
15219
+ // symbols/spdt_switch_down.ts
15220
+ var rotated24 = rotateSymbol(spdt_switch_right_default, "down");
15221
+ var ref37 = rotated24.primitives.find(
15222
+ (p) => p.type === "text" && p.text === "{REF}"
15223
+ );
15224
+ var val32 = rotated24.primitives.find(
15225
+ (p) => p.type === "text" && p.text === "{VAL}"
15226
+ );
15227
+ ref37.anchor = "middle_bottom";
15228
+ val32.anchor = "middle_top";
15229
+ ref37.x = 0.44;
15230
+ ref37.y += 0.28;
15231
+ val32.y -= 0.28;
15232
+ val32.x = 0.44;
15233
+ var spdt_switch_down_default = rotated24;
15234
+
15235
+ // symbols/spdt_switch_left.ts
15236
+ var rotated25 = rotateSymbol(spdt_switch_right_default, "left");
15237
+ var ref38 = rotated25.primitives.find(
15238
+ (p) => p.type === "text" && p.text === "{REF}"
15239
+ );
15240
+ var val33 = rotated25.primitives.find(
15241
+ (p) => p.type === "text" && p.text === "{VAL}"
15242
+ );
15243
+ ref38.anchor = "middle_bottom";
15244
+ val33.anchor = "middle_top";
15245
+ ref38.x = 0;
15246
+ ref38.y += 0.625;
15247
+ val33.y -= 0.695;
15248
+ val33.x = 0;
15249
+ var spdt_switch_left_default = rotated25;
15224
15250
 
15225
- // symbols/SPDT_switch_vert.ts
15226
- var rotatedSymbol20 = rotateSymbol(SPDT_switch_horz_default);
15227
- var texts53 = rotatedSymbol20.primitives.filter((p) => p.type === "text");
15228
- var val32 = texts53.find((t) => t.text === "{VAL}");
15229
- val32.anchor = "middle_right";
15230
- val32.x = -0.3;
15231
- val32.y = 0;
15232
- var ref37 = texts53.find((t) => t.text === "{REF}");
15233
- ref37.anchor = "middle_left";
15234
- ref37.x = 0.3;
15235
- ref37.y = 0;
15236
- var SPDT_switch_vert_default = rotatedSymbol20;
15251
+ // symbols/spdt_switch_up.ts
15252
+ var rotated26 = rotateSymbol(spdt_switch_right_default, "up");
15253
+ var ref39 = rotated26.primitives.find(
15254
+ (p) => p.type === "text" && p.text === "{REF}"
15255
+ );
15256
+ var val34 = rotated26.primitives.find(
15257
+ (p) => p.type === "text" && p.text === "{VAL}"
15258
+ );
15259
+ ref39.anchor = "middle_bottom";
15260
+ val34.anchor = "middle_top";
15261
+ ref39.x = 0.4;
15262
+ ref39.y += 0.28;
15263
+ val34.y -= 0.28;
15264
+ val34.x = 0.4;
15265
+ var spdt_switch_up_default = rotated26;
15237
15266
 
15238
15267
  // assets/generated/spst_normally_closed_switch.json
15239
15268
  var spst_normally_closed_switch_default = {
@@ -15353,55 +15382,55 @@ spst_normally_closed_switch_default.bounds.width += 0.2;
15353
15382
  var spst_normally_closed_switch_right_default = modifySymbol(spst_normally_closed_switch_default).changeTextAnchor("{VAL}", "middle_top").labelPort("left2", ["1"]).labelPort("right2", ["2"]).changeTextAnchor("{REF}", "middle_bottom").build();
15354
15383
 
15355
15384
  // symbols/spst_normally_closed_switch_down.ts
15356
- var rotated24 = rotateSymbol(spst_normally_closed_switch_right_default, "down");
15357
- var ref38 = rotated24.primitives.find(
15385
+ var rotated27 = rotateSymbol(spst_normally_closed_switch_right_default, "down");
15386
+ var ref40 = rotated27.primitives.find(
15358
15387
  (p) => p.type === "text" && p.text === "{REF}"
15359
15388
  );
15360
- var val33 = rotated24.primitives.find(
15389
+ var val35 = rotated27.primitives.find(
15361
15390
  (p) => p.type === "text" && p.text === "{VAL}"
15362
15391
  );
15363
- ref38.anchor = "middle_bottom";
15364
- val33.anchor = "middle_top";
15365
- ref38.x = 0.3;
15366
- ref38.y += 0.265;
15367
- val33.y -= 0.265;
15368
- val33.x = 0.3;
15369
- var spst_normally_closed_switch_down_default = rotated24;
15392
+ ref40.anchor = "middle_bottom";
15393
+ val35.anchor = "middle_top";
15394
+ ref40.x = 0.3;
15395
+ ref40.y += 0.265;
15396
+ val35.y -= 0.265;
15397
+ val35.x = 0.3;
15398
+ var spst_normally_closed_switch_down_default = rotated27;
15370
15399
 
15371
15400
  // symbols/spst_normally_closed_switch_left.ts
15372
- var rotated25 = rotateSymbol(spst_normally_closed_switch_right_default, "left");
15373
- var ref39 = rotated25.primitives.find(
15401
+ var rotated28 = rotateSymbol(spst_normally_closed_switch_right_default, "left");
15402
+ var ref41 = rotated28.primitives.find(
15374
15403
  (p) => p.type === "text" && p.text === "{REF}"
15375
15404
  );
15376
- var val34 = rotated25.primitives.find(
15405
+ var val36 = rotated28.primitives.find(
15377
15406
  (p) => p.type === "text" && p.text === "{VAL}"
15378
15407
  );
15379
- ref39.anchor = "middle_bottom";
15380
- val34.anchor = "middle_top";
15381
- ref39.x = 0;
15382
- ref39.y += 0.57;
15383
- val34.y -= 0.57;
15384
- val34.x = 0;
15385
- var spst_normally_closed_switch_left_default = rotated25;
15408
+ ref41.anchor = "middle_bottom";
15409
+ val36.anchor = "middle_top";
15410
+ ref41.x = 0;
15411
+ ref41.y += 0.57;
15412
+ val36.y -= 0.57;
15413
+ val36.x = 0;
15414
+ var spst_normally_closed_switch_left_default = rotated28;
15386
15415
 
15387
15416
  // symbols/spst_normally_closed_switch_up.ts
15388
- var rotated26 = rotateSymbol(spst_normally_closed_switch_right_default, "up");
15389
- var ref40 = rotated26.primitives.find(
15417
+ var rotated29 = rotateSymbol(spst_normally_closed_switch_right_default, "up");
15418
+ var ref42 = rotated29.primitives.find(
15390
15419
  (p) => p.type === "text" && p.text === "{REF}"
15391
15420
  );
15392
- var val35 = rotated26.primitives.find(
15421
+ var val37 = rotated29.primitives.find(
15393
15422
  (p) => p.type === "text" && p.text === "{VAL}"
15394
15423
  );
15395
- ref40.anchor = "middle_bottom";
15396
- val35.anchor = "middle_top";
15397
- ref40.x = 0.3;
15398
- ref40.y += 0.265;
15399
- val35.y -= 0.265;
15400
- val35.x = 0.3;
15401
- var spst_normally_closed_switch_up_default = rotated26;
15424
+ ref42.anchor = "middle_bottom";
15425
+ val37.anchor = "middle_top";
15426
+ ref42.x = 0.3;
15427
+ ref42.y += 0.265;
15428
+ val37.y -= 0.265;
15429
+ val37.x = 0.3;
15430
+ var spst_normally_closed_switch_up_default = rotated29;
15402
15431
 
15403
- // assets/generated/SPST_switch.json
15404
- var SPST_switch_default = {
15432
+ // assets/generated/spst_switch.json
15433
+ var spst_switch_default = {
15405
15434
  paths: {
15406
15435
  path11: {
15407
15436
  type: "path",
@@ -15422,8 +15451,8 @@ var SPST_switch_default = {
15422
15451
  type: "path",
15423
15452
  points: [
15424
15453
  {
15425
- x: -0.12010005000000046,
15426
- y: -0.0033888499999992217
15454
+ x: -0.07010005000000046,
15455
+ y: 0.01
15427
15456
  },
15428
15457
  {
15429
15458
  x: 0.10307834999999987,
@@ -15453,13 +15482,13 @@ var SPST_switch_default = {
15453
15482
  top1: {
15454
15483
  type: "text",
15455
15484
  text: "{REF}",
15456
- x: -0.03688484999999986,
15485
+ x: 0,
15457
15486
  y: 0.25026835000000003
15458
15487
  },
15459
15488
  bottom1: {
15460
15489
  type: "text",
15461
15490
  text: "{VAL}",
15462
- x: -0.02235315000000071,
15491
+ x: 0,
15463
15492
  y: -0.25026835000000003
15464
15493
  }
15465
15494
  },
@@ -15491,27 +15520,79 @@ var SPST_switch_default = {
15491
15520
  centerX: 0,
15492
15521
  centerY: 0
15493
15522
  },
15494
- circles: {}
15523
+ circles: {
15524
+ "circle-2": {
15525
+ type: "circle",
15526
+ x: 0.09900307499999998,
15527
+ y: 148e-5,
15528
+ radius: 0.023193523,
15529
+ color: "primary",
15530
+ fill: false
15531
+ },
15532
+ "circle-1": {
15533
+ type: "circle",
15534
+ x: -0.09900307499999998,
15535
+ y: 148e-5,
15536
+ radius: 0.023193523,
15537
+ color: "primary",
15538
+ fill: false
15539
+ }
15540
+ }
15495
15541
  };
15496
15542
 
15497
- // symbols/SPST_switch_horz.ts
15498
- delete SPST_switch_default.refblocks.left1;
15499
- delete SPST_switch_default.refblocks.right1;
15500
- SPST_switch_default.bounds.width += 0.2;
15501
- var SPST_switch_horz_default = modifySymbol(SPST_switch_default).changeTextAnchor("{VAL}", "middle_top").labelPort("left2", ["1"]).labelPort("right2", ["2"]).changeTextAnchor("{REF}", "middle_bottom").build();
15502
-
15503
- // symbols/SPST_switch_vert.ts
15504
- var rotatedSymbol21 = rotateSymbol(SPST_switch_horz_default);
15505
- var texts54 = rotatedSymbol21.primitives.filter((p) => p.type === "text");
15506
- var val36 = texts54.find((t) => t.text === "{VAL}");
15507
- val36.anchor = "middle_right";
15508
- val36.x = -0.3;
15509
- val36.y = 0;
15510
- var ref41 = texts54.find((t) => t.text === "{REF}");
15511
- ref41.anchor = "middle_left";
15512
- ref41.x = 0.3;
15513
- ref41.y = 0;
15514
- var SPST_switch_vert_default = rotatedSymbol21;
15543
+ // symbols/spst_switch_right.ts
15544
+ delete spst_switch_default.refblocks.left1;
15545
+ delete spst_switch_default.refblocks.right1;
15546
+ spst_switch_default.bounds.width += 0.2;
15547
+ var spst_switch_right_default = modifySymbol(spst_switch_default).changeTextAnchor("{VAL}", "middle_top").labelPort("left2", ["1"]).labelPort("right2", ["2"]).changeTextAnchor("{REF}", "middle_bottom").build();
15548
+
15549
+ // symbols/spst_switch_down.ts
15550
+ var rotated30 = rotateSymbol(spst_switch_right_default, "down");
15551
+ var ref43 = rotated30.primitives.find(
15552
+ (p) => p.type === "text" && p.text === "{REF}"
15553
+ );
15554
+ var val38 = rotated30.primitives.find(
15555
+ (p) => p.type === "text" && p.text === "{VAL}"
15556
+ );
15557
+ ref43.anchor = "middle_bottom";
15558
+ val38.anchor = "middle_top";
15559
+ ref43.x = 0.3;
15560
+ ref43.y += 0.265;
15561
+ val38.y -= 0.265;
15562
+ val38.x = 0.3;
15563
+ var spst_switch_down_default = rotated30;
15564
+
15565
+ // symbols/spst_switch_left.ts
15566
+ var rotated31 = rotateSymbol(spst_switch_right_default, "left");
15567
+ var ref44 = rotated31.primitives.find(
15568
+ (p) => p.type === "text" && p.text === "{REF}"
15569
+ );
15570
+ var val39 = rotated31.primitives.find(
15571
+ (p) => p.type === "text" && p.text === "{VAL}"
15572
+ );
15573
+ ref44.anchor = "middle_bottom";
15574
+ val39.anchor = "middle_top";
15575
+ ref44.x = 0;
15576
+ ref44.y += 0.57;
15577
+ val39.y -= 0.57;
15578
+ val39.x = 0;
15579
+ var spst_switch_left_default = rotated31;
15580
+
15581
+ // symbols/spst_switch_up.ts
15582
+ var rotated32 = rotateSymbol(spst_switch_right_default, "up");
15583
+ var ref45 = rotated32.primitives.find(
15584
+ (p) => p.type === "text" && p.text === "{REF}"
15585
+ );
15586
+ var val40 = rotated32.primitives.find(
15587
+ (p) => p.type === "text" && p.text === "{VAL}"
15588
+ );
15589
+ ref45.anchor = "middle_bottom";
15590
+ val40.anchor = "middle_top";
15591
+ ref45.x = 0.3;
15592
+ ref45.y += 0.265;
15593
+ val40.y -= 0.265;
15594
+ val40.x = 0.3;
15595
+ var spst_switch_up_default = rotated32;
15515
15596
 
15516
15597
  // assets/generated/step_recovery_diode.json
15517
15598
  var step_recovery_diode_default = {
@@ -15675,7 +15756,7 @@ var step_recovery_diode_default = {
15675
15756
  };
15676
15757
 
15677
15758
  // symbols/step_recovery_diode_horz.ts
15678
- var { paths: paths39, texts: texts55, bounds: bounds39, refblocks: refblocks39, circles: circles35 } = step_recovery_diode_default;
15759
+ var { paths: paths38, texts: texts52, bounds: bounds38, refblocks: refblocks38, circles: circles34 } = step_recovery_diode_default;
15679
15760
  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();
15680
15761
 
15681
15762
  // symbols/step_recovery_diode_vert.ts
@@ -15768,11 +15849,11 @@ var tachometer_default = {
15768
15849
  };
15769
15850
 
15770
15851
  // symbols/tachometer_horz.ts
15771
- var { paths: paths40, texts: texts56, bounds: bounds40, refblocks: refblocks40, circles: circles36 } = tachometer_default;
15852
+ var { paths: paths39, texts: texts53, bounds: bounds39, refblocks: refblocks39, circles: circles35 } = tachometer_default;
15772
15853
  var tachometer_horz_default = defineSymbol({
15773
15854
  primitives: [
15774
- ...Object.values(paths40),
15775
- ...Object.values(circles36),
15855
+ ...Object.values(paths39),
15856
+ ...Object.values(circles35),
15776
15857
  {
15777
15858
  type: "text",
15778
15859
  text: "{REF}",
@@ -15787,16 +15868,16 @@ var tachometer_horz_default = defineSymbol({
15787
15868
  y: 0.35,
15788
15869
  anchor: "middle_bottom"
15789
15870
  },
15790
- { ...texts56.left1, y: 0.01, anchor: "center", fontSize: 0.2 }
15871
+ { ...texts53.left1, y: 0.01, anchor: "center", fontSize: 0.2 }
15791
15872
  ],
15792
15873
  ports: [
15793
- { ...refblocks40.left1, labels: ["1"] },
15874
+ { ...refblocks39.left1, labels: ["1"] },
15794
15875
  // TODO add more "standard" labels
15795
- { ...refblocks40.right1, labels: ["2"] }
15876
+ { ...refblocks39.right1, labels: ["2"] }
15796
15877
  // TODO add more "standard" labels
15797
15878
  ],
15798
- size: { width: bounds40.width, height: bounds40.height },
15799
- center: { x: bounds40.centerX, y: bounds40.centerY }
15879
+ size: { width: bounds39.width, height: bounds39.height },
15880
+ center: { x: bounds39.centerX, y: bounds39.centerY }
15800
15881
  });
15801
15882
 
15802
15883
  // symbols/tachometer_vert.ts
@@ -15804,13 +15885,13 @@ var { 5: letter4, ...rest4 } = tachometer_horz_default.primitives;
15804
15885
  function isPrimitive4(value) {
15805
15886
  return typeof value === "object";
15806
15887
  }
15807
- var rotatedSymbol22 = rotateSymbol({
15888
+ var rotatedSymbol20 = rotateSymbol({
15808
15889
  ...tachometer_horz_default,
15809
15890
  primitives: Object.values(rest4).filter(isPrimitive4)
15810
15891
  });
15811
15892
  var tachometer_vert_default = {
15812
- ...rotatedSymbol22,
15813
- primitives: [...rotatedSymbol22.primitives, letter4]
15893
+ ...rotatedSymbol20,
15894
+ primitives: [...rotatedSymbol20.primitives, letter4]
15814
15895
  };
15815
15896
 
15816
15897
  // assets/generated/triac.json
@@ -16004,19 +16085,19 @@ var triac_default = {
16004
16085
  };
16005
16086
 
16006
16087
  // symbols/triac_horz.ts
16007
- var { paths: paths41, texts: texts57, bounds: bounds41, refblocks: refblocks41, circles: circles37 } = triac_default;
16088
+ var { paths: paths40, texts: texts54, bounds: bounds40, refblocks: refblocks40, circles: circles36 } = triac_default;
16008
16089
  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();
16009
16090
 
16010
16091
  // symbols/triac_vert.ts
16011
- var rotatedSymbol23 = rotateSymbol(triac_horz_default);
16012
- var texts58 = rotatedSymbol23.primitives.filter(
16092
+ var rotatedSymbol21 = rotateSymbol(triac_horz_default);
16093
+ var texts55 = rotatedSymbol21.primitives.filter(
16013
16094
  (primitive) => primitive.type === "text"
16014
16095
  );
16015
- var ref42 = texts58.find((text) => text.text === "{REF}");
16016
- var val37 = texts58.find((text) => text.text === "{VAL}");
16017
- ref42.y = 0;
16018
- val37.y = 0;
16019
- var triac_vert_default = rotatedSymbol23;
16096
+ var ref46 = texts55.find((text) => text.text === "{REF}");
16097
+ var val41 = texts55.find((text) => text.text === "{VAL}");
16098
+ ref46.y = 0;
16099
+ val41.y = 0;
16100
+ var triac_vert_default = rotatedSymbol21;
16020
16101
 
16021
16102
  // assets/generated/tunnel_diode.json
16022
16103
  var tunnel_diode_default = {
@@ -16180,35 +16261,35 @@ var tunnel_diode_default = {
16180
16261
  };
16181
16262
 
16182
16263
  // symbols/tunnel_diode_horz.ts
16183
- var { paths: paths42, texts: texts59, bounds: bounds42, refblocks: refblocks42, circles: circles38 } = tunnel_diode_default;
16264
+ var { paths: paths41, texts: texts56, bounds: bounds41, refblocks: refblocks41, circles: circles37 } = tunnel_diode_default;
16184
16265
  var tunnel_diode_horz_default = defineSymbol({
16185
16266
  primitives: [
16186
- ...Object.values(paths42),
16187
- ...Object.values(circles38),
16188
- { ...texts59.top1, anchor: "middle_bottom" },
16189
- { ...texts59.bottom1, anchor: "middle_top" }
16267
+ ...Object.values(paths41),
16268
+ ...Object.values(circles37),
16269
+ { ...texts56.top1, anchor: "middle_bottom" },
16270
+ { ...texts56.bottom1, anchor: "middle_top" }
16190
16271
  ],
16191
16272
  ports: [
16192
- { ...refblocks42.left1, labels: ["1"] },
16273
+ { ...refblocks41.left1, labels: ["1"] },
16193
16274
  // TODO add more "standard" labels
16194
- { ...refblocks42.right1, labels: ["2"] }
16275
+ { ...refblocks41.right1, labels: ["2"] }
16195
16276
  // TODO add more "standard" labels
16196
16277
  ],
16197
- size: { width: bounds42.width, height: bounds42.height },
16198
- center: { x: bounds42.centerX, y: bounds42.centerY }
16278
+ size: { width: bounds41.width, height: bounds41.height },
16279
+ center: { x: bounds41.centerX, y: bounds41.centerY }
16199
16280
  });
16200
16281
 
16201
16282
  // symbols/tunnel_diode_vert.ts
16202
- var rotated27 = rotateSymbol(tunnel_diode_horz_default);
16203
- var ref43 = rotated27.primitives.find(
16283
+ var rotated33 = rotateSymbol(tunnel_diode_horz_default);
16284
+ var ref47 = rotated33.primitives.find(
16204
16285
  (p) => p.type === "text" && p.text === "{REF}"
16205
16286
  );
16206
- var val38 = rotated27.primitives.find(
16287
+ var val42 = rotated33.primitives.find(
16207
16288
  (p) => p.type === "text" && p.text === "{VAL}"
16208
16289
  );
16209
- ref43.anchor = "middle_left";
16210
- val38.anchor = "middle_right";
16211
- var tunnel_diode_vert_default = rotated27;
16290
+ ref47.anchor = "middle_left";
16291
+ val42.anchor = "middle_right";
16292
+ var tunnel_diode_vert_default = rotated33;
16212
16293
 
16213
16294
  // assets/generated/unijunction_transistor.json
16214
16295
  var unijunction_transistor_default = {
@@ -16378,37 +16459,37 @@ var unijunction_transistor_default = {
16378
16459
  };
16379
16460
 
16380
16461
  // symbols/unijunction_transistor_horz.ts
16381
- var { paths: paths43, texts: texts60, bounds: bounds43, refblocks: refblocks43, circles: circles39 } = unijunction_transistor_default;
16462
+ var { paths: paths42, texts: texts57, bounds: bounds42, refblocks: refblocks42, circles: circles38 } = unijunction_transistor_default;
16382
16463
  var unijunction_transistor_horz_default = defineSymbol({
16383
16464
  primitives: [
16384
- ...Object.values(paths43),
16385
- ...Object.values(circles39),
16386
- { ...texts60.top1, anchor: "middle_left" },
16387
- { ...texts60.bottom1, anchor: "middle_right" }
16465
+ ...Object.values(paths42),
16466
+ ...Object.values(circles38),
16467
+ { ...texts57.top1, anchor: "middle_left" },
16468
+ { ...texts57.bottom1, anchor: "middle_right" }
16388
16469
  ],
16389
16470
  ports: [
16390
- { ...refblocks43.top1, labels: ["1"] },
16471
+ { ...refblocks42.top1, labels: ["1"] },
16391
16472
  // TODO add more "standard" labels
16392
- { ...refblocks43.bottom1, labels: ["2"] },
16473
+ { ...refblocks42.bottom1, labels: ["2"] },
16393
16474
  // TODO add more "standard" labels
16394
- { ...refblocks43.left1, labels: ["3"] }
16475
+ { ...refblocks42.left1, labels: ["3"] }
16395
16476
  // TODO add more "standard" labels
16396
16477
  ],
16397
- size: { width: bounds43.width, height: bounds43.height },
16398
- center: { x: bounds43.centerX, y: bounds43.centerY }
16478
+ size: { width: bounds42.width, height: bounds42.height },
16479
+ center: { x: bounds42.centerX, y: bounds42.centerY }
16399
16480
  });
16400
16481
 
16401
16482
  // symbols/unijunction_transistor_vert.ts
16402
- var rotatedSymbol24 = rotateSymbol(unijunction_transistor_horz_default);
16403
- var texts61 = rotatedSymbol24.primitives.filter(
16483
+ var rotatedSymbol22 = rotateSymbol(unijunction_transistor_horz_default);
16484
+ var texts58 = rotatedSymbol22.primitives.filter(
16404
16485
  (primitive) => primitive.type === "text"
16405
16486
  );
16406
- var ref44 = texts61.find((text) => text.text === "{REF}");
16407
- ref44.y = 0.1;
16408
- var val39 = texts61.find((text) => text.text === "{VAL}");
16409
- val39.y = 0.1;
16410
- val39.x = -0.4;
16411
- var unijunction_transistor_vert_default = rotatedSymbol24;
16487
+ var ref48 = texts58.find((text) => text.text === "{REF}");
16488
+ ref48.y = 0.1;
16489
+ var val43 = texts58.find((text) => text.text === "{VAL}");
16490
+ val43.y = 0.1;
16491
+ val43.x = -0.4;
16492
+ var unijunction_transistor_vert_default = rotatedSymbol22;
16412
16493
 
16413
16494
  // assets/generated/var_meter.json
16414
16495
  var var_meter_default = {
@@ -16497,33 +16578,33 @@ var var_meter_default = {
16497
16578
  };
16498
16579
 
16499
16580
  // symbols/var_meter_horz.ts
16500
- var { paths: paths44, texts: texts62, bounds: bounds44, refblocks: refblocks44, circles: circles40 } = var_meter_default;
16581
+ var { paths: paths43, texts: texts59, bounds: bounds43, refblocks: refblocks43, circles: circles39 } = var_meter_default;
16501
16582
  var var_meter_horz_default = defineSymbol({
16502
16583
  primitives: [
16503
- ...Object.values(paths44),
16504
- ...Object.values(circles40),
16584
+ ...Object.values(paths43),
16585
+ ...Object.values(circles39),
16505
16586
  {
16506
- ...texts62.top1,
16587
+ ...texts59.top1,
16507
16588
  x: 0,
16508
16589
  y: -0.3594553499999995,
16509
16590
  anchor: "middle_top"
16510
16591
  },
16511
16592
  {
16512
- ...texts62.bottom1,
16593
+ ...texts59.bottom1,
16513
16594
  x: 0,
16514
16595
  y: 0.35,
16515
16596
  anchor: "middle_bottom"
16516
16597
  },
16517
- { ...texts62.left1, x: -0.02, y: 0.01, fontSize: 0.2, anchor: "center" }
16598
+ { ...texts59.left1, x: -0.02, y: 0.01, fontSize: 0.2, anchor: "center" }
16518
16599
  ],
16519
16600
  ports: [
16520
- { ...refblocks44.left1, labels: ["1"] },
16601
+ { ...refblocks43.left1, labels: ["1"] },
16521
16602
  // TODO add more "standard" labels
16522
- { ...refblocks44.right1, labels: ["2"] }
16603
+ { ...refblocks43.right1, labels: ["2"] }
16523
16604
  // TODO add more "standard" labels
16524
16605
  ],
16525
- size: { width: bounds44.width, height: bounds44.height },
16526
- center: { x: bounds44.centerX, y: bounds44.centerY }
16606
+ size: { width: bounds43.width, height: bounds43.height },
16607
+ center: { x: bounds43.centerX, y: bounds43.centerY }
16527
16608
  });
16528
16609
 
16529
16610
  // symbols/var_meter_vert.ts
@@ -16676,35 +16757,35 @@ var varactor_diode_default = {
16676
16757
  };
16677
16758
 
16678
16759
  // symbols/varactor_diode_horz.ts
16679
- var { paths: paths45, texts: texts63, bounds: bounds45, refblocks: refblocks45, circles: circles41 } = varactor_diode_default;
16760
+ var { paths: paths44, texts: texts60, bounds: bounds44, refblocks: refblocks44, circles: circles40 } = varactor_diode_default;
16680
16761
  var varactor_diode_horz_default = defineSymbol({
16681
16762
  primitives: [
16682
- ...Object.values(paths45),
16683
- ...Object.values(circles41),
16684
- { ...texts63.top1, anchor: "middle_bottom" },
16685
- { ...texts63.bottom1, anchor: "middle_top" }
16763
+ ...Object.values(paths44),
16764
+ ...Object.values(circles40),
16765
+ { ...texts60.top1, anchor: "middle_bottom" },
16766
+ { ...texts60.bottom1, anchor: "middle_top" }
16686
16767
  ],
16687
16768
  ports: [
16688
- { ...refblocks45.left1, labels: ["1"] },
16769
+ { ...refblocks44.left1, labels: ["1"] },
16689
16770
  // TODO add more "standard" labels
16690
- { ...refblocks45.right1, labels: ["2"] }
16771
+ { ...refblocks44.right1, labels: ["2"] }
16691
16772
  // TODO add more "standard" labels
16692
16773
  ],
16693
- size: { width: bounds45.width, height: bounds45.height },
16694
- center: { x: bounds45.centerX, y: bounds45.centerY }
16774
+ size: { width: bounds44.width, height: bounds44.height },
16775
+ center: { x: bounds44.centerX, y: bounds44.centerY }
16695
16776
  });
16696
16777
 
16697
16778
  // symbols/varactor_diode_vert.ts
16698
- var rotated28 = rotateSymbol(varactor_diode_horz_default);
16699
- var ref45 = rotated28.primitives.find(
16779
+ var rotated34 = rotateSymbol(varactor_diode_horz_default);
16780
+ var ref49 = rotated34.primitives.find(
16700
16781
  (p) => p.type === "text" && p.text === "{REF}"
16701
16782
  );
16702
- var val40 = rotated28.primitives.find(
16783
+ var val44 = rotated34.primitives.find(
16703
16784
  (p) => p.type === "text" && p.text === "{VAL}"
16704
16785
  );
16705
- ref45.anchor = "middle_left";
16706
- val40.anchor = "middle_right";
16707
- var varactor_diode_vert_default = rotated28;
16786
+ ref49.anchor = "middle_left";
16787
+ val44.anchor = "middle_right";
16788
+ var varactor_diode_vert_default = rotated34;
16708
16789
 
16709
16790
  // assets/generated/varistor.json
16710
16791
  var varistor_default = {
@@ -16839,26 +16920,26 @@ var varistor_default = {
16839
16920
  };
16840
16921
 
16841
16922
  // symbols/varistor_horz.ts
16842
- var { paths: paths46, texts: texts64, bounds: bounds46, refblocks: refblocks46 } = varistor_default;
16923
+ var { paths: paths45, texts: texts61, bounds: bounds45, refblocks: refblocks45 } = varistor_default;
16843
16924
  var varistor_horz_default = defineSymbol({
16844
16925
  primitives: [
16845
- ...Object.values(paths46),
16846
- { ...texts64.top1, anchor: "middle_left" },
16847
- { ...texts64.bottom1, anchor: "middle_right" }
16926
+ ...Object.values(paths45),
16927
+ { ...texts61.top1, anchor: "middle_left" },
16928
+ { ...texts61.bottom1, anchor: "middle_right" }
16848
16929
  ],
16849
16930
  ports: [
16850
16931
  {
16851
- ...refblocks46.left1,
16932
+ ...refblocks45.left1,
16852
16933
  labels: ["1", "-"]
16853
16934
  },
16854
16935
  {
16855
- ...refblocks46.right1,
16936
+ ...refblocks45.right1,
16856
16937
  labels: ["2", "+"]
16857
16938
  }
16858
16939
  ],
16859
- size: { width: bounds46.width, height: bounds46.height },
16940
+ size: { width: bounds45.width, height: bounds45.height },
16860
16941
  //{ width: 1, height: 0.24 },
16861
- center: { x: bounds46.centerX, y: bounds46.centerY }
16942
+ center: { x: bounds45.centerX, y: bounds45.centerY }
16862
16943
  });
16863
16944
 
16864
16945
  // symbols/varistor_vert.ts
@@ -16951,11 +17032,11 @@ var varmeter_default = {
16951
17032
  };
16952
17033
 
16953
17034
  // symbols/varmeter_horz.ts
16954
- var { paths: paths47, texts: texts65, bounds: bounds47, refblocks: refblocks47, circles: circles42 } = varmeter_default;
17035
+ var { paths: paths46, texts: texts62, bounds: bounds46, refblocks: refblocks46, circles: circles41 } = varmeter_default;
16955
17036
  var varmeter_horz_default = defineSymbol({
16956
17037
  primitives: [
16957
- ...Object.values(paths47),
16958
- ...Object.values(circles42),
17038
+ ...Object.values(paths46),
17039
+ ...Object.values(circles41),
16959
17040
  {
16960
17041
  type: "text",
16961
17042
  text: "{REF}",
@@ -16970,16 +17051,16 @@ var varmeter_horz_default = defineSymbol({
16970
17051
  y: 0.35,
16971
17052
  anchor: "middle_bottom"
16972
17053
  },
16973
- { ...texts65.left1, anchor: "center", y: 0.02, fontSize: 0.2 }
17054
+ { ...texts62.left1, anchor: "center", y: 0.02, fontSize: 0.2 }
16974
17055
  ],
16975
17056
  ports: [
16976
- { ...refblocks47.left1, labels: ["1"] },
17057
+ { ...refblocks46.left1, labels: ["1"] },
16977
17058
  // TODO add more "standard" labels
16978
- { ...refblocks47.right1, labels: ["2"] }
17059
+ { ...refblocks46.right1, labels: ["2"] }
16979
17060
  // TODO add more "standard" labels
16980
17061
  ],
16981
- size: { width: bounds47.width, height: bounds47.height },
16982
- center: { x: bounds47.centerX, y: bounds47.centerY }
17062
+ size: { width: bounds46.width, height: bounds46.height },
17063
+ center: { x: bounds46.centerX, y: bounds46.centerY }
16983
17064
  });
16984
17065
 
16985
17066
  // symbols/varmeter_vert.ts
@@ -16987,13 +17068,13 @@ var { 5: letter5, ...rest5 } = varmeter_horz_default.primitives;
16987
17068
  function isPrimitive5(value) {
16988
17069
  return typeof value === "object";
16989
17070
  }
16990
- var rotatedSymbol25 = rotateSymbol({
17071
+ var rotatedSymbol23 = rotateSymbol({
16991
17072
  ...varmeter_horz_default,
16992
17073
  primitives: Object.values(rest5).filter(isPrimitive5)
16993
17074
  });
16994
17075
  var varmeter_vert_default = {
16995
- ...rotatedSymbol25,
16996
- primitives: [...rotatedSymbol25.primitives, letter5]
17076
+ ...rotatedSymbol23,
17077
+ primitives: [...rotatedSymbol23.primitives, letter5]
16997
17078
  };
16998
17079
 
16999
17080
  // assets/generated/volt_meter.json
@@ -17096,7 +17177,7 @@ var volt_meter_default = {
17096
17177
  };
17097
17178
 
17098
17179
  // symbols/volt_meter_horz.ts
17099
- var { paths: paths48, texts: texts66, bounds: bounds48, circles: circles43, refblocks: refblocks48 } = volt_meter_default;
17180
+ var { paths: paths47, texts: texts63, bounds: bounds47, circles: circles42, refblocks: refblocks47 } = volt_meter_default;
17100
17181
  var volt_meter_horz_default = modifySymbol(volt_meter_default).changeTextAnchor("{VAL}", "middle_top").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_bottom").build();
17101
17182
 
17102
17183
  // symbols/volt_meter_vert.ts
@@ -17189,11 +17270,11 @@ var watt_hour_meter_default = {
17189
17270
  };
17190
17271
 
17191
17272
  // symbols/watt_hour_meter_horz.ts
17192
- var { paths: paths49, texts: texts67, bounds: bounds49, refblocks: refblocks49, circles: circles44 } = watt_hour_meter_default;
17273
+ var { paths: paths48, texts: texts64, bounds: bounds48, refblocks: refblocks48, circles: circles43 } = watt_hour_meter_default;
17193
17274
  var watt_hour_meter_horz_default = defineSymbol({
17194
17275
  primitives: [
17195
- ...Object.values(paths49),
17196
- ...Object.values(circles44),
17276
+ ...Object.values(paths48),
17277
+ ...Object.values(circles43),
17197
17278
  {
17198
17279
  type: "text",
17199
17280
  text: "{REF}",
@@ -17208,16 +17289,16 @@ var watt_hour_meter_horz_default = defineSymbol({
17208
17289
  y: 0.35,
17209
17290
  anchor: "middle_bottom"
17210
17291
  },
17211
- { ...texts67.left1, anchor: "center", y: 0.01, fontSize: 0.2 }
17292
+ { ...texts64.left1, anchor: "center", y: 0.01, fontSize: 0.2 }
17212
17293
  ],
17213
17294
  ports: [
17214
- { ...refblocks49.left1, labels: ["1"] },
17295
+ { ...refblocks48.left1, labels: ["1"] },
17215
17296
  // TODO add more "standard" labels
17216
- { ...refblocks49.right1, labels: ["2"] }
17297
+ { ...refblocks48.right1, labels: ["2"] }
17217
17298
  // TODO add more "standard" labels
17218
17299
  ],
17219
- size: { width: bounds49.width, height: bounds49.height },
17220
- center: { x: bounds49.centerX, y: bounds49.centerY }
17300
+ size: { width: bounds48.width, height: bounds48.height },
17301
+ center: { x: bounds48.centerX, y: bounds48.centerY }
17221
17302
  });
17222
17303
 
17223
17304
  // symbols/watt_hour_meter_vert.ts
@@ -17225,13 +17306,13 @@ var { 5: letter6, ...rest6 } = watt_hour_meter_horz_default.primitives;
17225
17306
  function isPrimitive6(value) {
17226
17307
  return typeof value === "object";
17227
17308
  }
17228
- var rotatedSymbol26 = rotateSymbol({
17309
+ var rotatedSymbol24 = rotateSymbol({
17229
17310
  ...watt_hour_meter_horz_default,
17230
17311
  primitives: Object.values(rest6).filter(isPrimitive6)
17231
17312
  });
17232
17313
  var watt_hour_meter_vert_default = {
17233
- ...rotatedSymbol26,
17234
- primitives: [...rotatedSymbol26.primitives, letter6]
17314
+ ...rotatedSymbol24,
17315
+ primitives: [...rotatedSymbol24.primitives, letter6]
17235
17316
  };
17236
17317
 
17237
17318
  // assets/generated/wattmeter.json
@@ -17321,11 +17402,11 @@ var wattmeter_default = {
17321
17402
  };
17322
17403
 
17323
17404
  // symbols/wattmeter_horz.ts
17324
- var { paths: paths50, texts: texts68, bounds: bounds50, refblocks: refblocks50, circles: circles45 } = wattmeter_default;
17405
+ var { paths: paths49, texts: texts65, bounds: bounds49, refblocks: refblocks49, circles: circles44 } = wattmeter_default;
17325
17406
  var wattmeter_horz_default = defineSymbol({
17326
17407
  primitives: [
17327
- ...Object.values(paths50),
17328
- ...Object.values(circles45),
17408
+ ...Object.values(paths49),
17409
+ ...Object.values(circles44),
17329
17410
  {
17330
17411
  type: "text",
17331
17412
  text: "{REF}",
@@ -17340,16 +17421,16 @@ var wattmeter_horz_default = defineSymbol({
17340
17421
  y: 0.35,
17341
17422
  anchor: "middle_bottom"
17342
17423
  },
17343
- { ...texts68.left1, anchor: "center", y: 0.01, fontSize: 0.3 }
17424
+ { ...texts65.left1, anchor: "center", y: 0.01, fontSize: 0.3 }
17344
17425
  ],
17345
17426
  ports: [
17346
- { ...refblocks50.left1, labels: ["1"] },
17427
+ { ...refblocks49.left1, labels: ["1"] },
17347
17428
  // TODO add more "standard" labels
17348
- { ...refblocks50.right1, labels: ["2"] }
17429
+ { ...refblocks49.right1, labels: ["2"] }
17349
17430
  // TODO add more "standard" labels
17350
17431
  ],
17351
- size: { width: bounds50.width, height: bounds50.height },
17352
- center: { x: bounds50.centerX, y: bounds50.centerY }
17432
+ size: { width: bounds49.width, height: bounds49.height },
17433
+ center: { x: bounds49.centerX, y: bounds49.centerY }
17353
17434
  });
17354
17435
 
17355
17436
  // symbols/wattmeter_vert.ts
@@ -17357,13 +17438,13 @@ var { 5: letter7, ...rest7 } = wattmeter_horz_default.primitives;
17357
17438
  function isPrimitive7(value) {
17358
17439
  return typeof value === "object";
17359
17440
  }
17360
- var rotatedSymbol27 = rotateSymbol({
17441
+ var rotatedSymbol25 = rotateSymbol({
17361
17442
  ...wattmeter_horz_default,
17362
17443
  primitives: Object.values(rest7).filter(isPrimitive7)
17363
17444
  });
17364
17445
  var wattmeter_vert_default = {
17365
- ...rotatedSymbol27,
17366
- primitives: [...rotatedSymbol27.primitives, letter7]
17446
+ ...rotatedSymbol25,
17447
+ primitives: [...rotatedSymbol25.primitives, letter7]
17367
17448
  };
17368
17449
 
17369
17450
  // assets/generated/zener_diode.json
@@ -17513,35 +17594,35 @@ var zener_diode_default = {
17513
17594
  };
17514
17595
 
17515
17596
  // symbols/zener_diode_horz.ts
17516
- var { paths: paths51, texts: texts69, bounds: bounds51, refblocks: refblocks51, circles: circles46 } = zener_diode_default;
17597
+ var { paths: paths50, texts: texts66, bounds: bounds50, refblocks: refblocks50, circles: circles45 } = zener_diode_default;
17517
17598
  var zener_diode_horz_default = defineSymbol({
17518
17599
  primitives: [
17519
- ...Object.values(paths51),
17520
- ...Object.values(circles46),
17521
- { ...texts69.top1, anchor: "middle_bottom" },
17522
- { ...texts69.bottom1, anchor: "middle_top" }
17600
+ ...Object.values(paths50),
17601
+ ...Object.values(circles45),
17602
+ { ...texts66.top1, anchor: "middle_bottom" },
17603
+ { ...texts66.bottom1, anchor: "middle_top" }
17523
17604
  ],
17524
17605
  ports: [
17525
- { ...refblocks51.left1, labels: ["1"] },
17606
+ { ...refblocks50.left1, labels: ["1"] },
17526
17607
  // TODO add more "standard" labels
17527
- { ...refblocks51.right1, labels: ["2"] }
17608
+ { ...refblocks50.right1, labels: ["2"] }
17528
17609
  // TODO add more "standard" labels
17529
17610
  ],
17530
- size: { width: bounds51.width, height: bounds51.height },
17531
- center: { x: bounds51.centerX, y: bounds51.centerY }
17611
+ size: { width: bounds50.width, height: bounds50.height },
17612
+ center: { x: bounds50.centerX, y: bounds50.centerY }
17532
17613
  });
17533
17614
 
17534
17615
  // symbols/zener_diode_vert.ts
17535
- var rotated29 = rotateSymbol(zener_diode_horz_default);
17536
- var ref46 = rotated29.primitives.find(
17616
+ var rotated35 = rotateSymbol(zener_diode_horz_default);
17617
+ var ref50 = rotated35.primitives.find(
17537
17618
  (p) => p.type === "text" && p.text === "{REF}"
17538
17619
  );
17539
- var val41 = rotated29.primitives.find(
17620
+ var val45 = rotated35.primitives.find(
17540
17621
  (p) => p.type === "text" && p.text === "{VAL}"
17541
17622
  );
17542
- ref46.anchor = "middle_left";
17543
- val41.anchor = "middle_right";
17544
- var zener_diode_vert_default = rotated29;
17623
+ ref50.anchor = "middle_left";
17624
+ val45.anchor = "middle_right";
17625
+ var zener_diode_vert_default = rotated35;
17545
17626
 
17546
17627
  // generated/symbols-index.ts
17547
17628
  var symbols_index_default = {
@@ -17683,14 +17764,18 @@ var symbols_index_default = {
17683
17764
  "spdt_normally_closed_switch_left": spdt_normally_closed_switch_left_default,
17684
17765
  "spdt_normally_closed_switch_right": spdt_normally_closed_switch_right_default,
17685
17766
  "spdt_normally_closed_switch_up": spdt_normally_closed_switch_up_default,
17686
- "SPDT_switch_horz": SPDT_switch_horz_default,
17687
- "SPDT_switch_vert": SPDT_switch_vert_default,
17767
+ "spdt_switch_down": spdt_switch_down_default,
17768
+ "spdt_switch_left": spdt_switch_left_default,
17769
+ "spdt_switch_right": spdt_switch_right_default,
17770
+ "spdt_switch_up": spdt_switch_up_default,
17688
17771
  "spst_normally_closed_switch_down": spst_normally_closed_switch_down_default,
17689
17772
  "spst_normally_closed_switch_left": spst_normally_closed_switch_left_default,
17690
17773
  "spst_normally_closed_switch_right": spst_normally_closed_switch_right_default,
17691
17774
  "spst_normally_closed_switch_up": spst_normally_closed_switch_up_default,
17692
- "SPST_switch_horz": SPST_switch_horz_default,
17693
- "SPST_switch_vert": SPST_switch_vert_default,
17775
+ "spst_switch_down": spst_switch_down_default,
17776
+ "spst_switch_left": spst_switch_left_default,
17777
+ "spst_switch_right": spst_switch_right_default,
17778
+ "spst_switch_up": spst_switch_up_default,
17694
17779
  "step_recovery_diode_horz": step_recovery_diode_horz_default,
17695
17780
  "step_recovery_diode_vert": step_recovery_diode_vert_default,
17696
17781
  "tachometer_horz": tachometer_horz_default,