@tscircuit/footprinter 0.0.170 → 0.0.171
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +6 -6
- package/dist/index.js +11 -18
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -378,10 +378,10 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
378
378
|
od: number;
|
|
379
379
|
pinlabeltextalignleft: boolean;
|
|
380
380
|
pinlabeltextalignright: boolean;
|
|
381
|
-
pinlabelverticallyinverted: boolean;
|
|
382
381
|
pinlabelorthogonal: boolean;
|
|
383
382
|
rows: number;
|
|
384
383
|
pinlabeltextaligncenter: boolean;
|
|
384
|
+
pinlabelverticallyinverted: boolean;
|
|
385
385
|
nosquareplating: boolean;
|
|
386
386
|
male?: boolean | undefined;
|
|
387
387
|
female?: boolean | undefined;
|
|
@@ -395,10 +395,10 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
395
395
|
female?: boolean | undefined;
|
|
396
396
|
pinlabeltextalignleft?: boolean | undefined;
|
|
397
397
|
pinlabeltextalignright?: boolean | undefined;
|
|
398
|
-
pinlabelverticallyinverted?: boolean | undefined;
|
|
399
398
|
pinlabelorthogonal?: boolean | undefined;
|
|
400
399
|
rows?: string | number | undefined;
|
|
401
400
|
pinlabeltextaligncenter?: boolean | undefined;
|
|
401
|
+
pinlabelverticallyinverted?: boolean | undefined;
|
|
402
402
|
nosquareplating?: boolean | undefined;
|
|
403
403
|
}>, {
|
|
404
404
|
pinlabelAnchorSide: "top" | "bottom" | "left" | "right";
|
|
@@ -411,10 +411,10 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
411
411
|
od: number;
|
|
412
412
|
pinlabeltextalignleft: boolean;
|
|
413
413
|
pinlabeltextalignright: boolean;
|
|
414
|
-
pinlabelverticallyinverted: boolean;
|
|
415
414
|
pinlabelorthogonal: boolean;
|
|
416
415
|
rows: number;
|
|
417
416
|
pinlabeltextaligncenter: boolean;
|
|
417
|
+
pinlabelverticallyinverted: boolean;
|
|
418
418
|
nosquareplating: boolean;
|
|
419
419
|
}, {
|
|
420
420
|
fn: string;
|
|
@@ -426,10 +426,10 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
426
426
|
female?: boolean | undefined;
|
|
427
427
|
pinlabeltextalignleft?: boolean | undefined;
|
|
428
428
|
pinlabeltextalignright?: boolean | undefined;
|
|
429
|
-
pinlabelverticallyinverted?: boolean | undefined;
|
|
430
429
|
pinlabelorthogonal?: boolean | undefined;
|
|
431
430
|
rows?: string | number | undefined;
|
|
432
431
|
pinlabeltextaligncenter?: boolean | undefined;
|
|
432
|
+
pinlabelverticallyinverted?: boolean | undefined;
|
|
433
433
|
nosquareplating?: boolean | undefined;
|
|
434
434
|
}>, {
|
|
435
435
|
pinlabelAnchorSide: "top" | "bottom" | "left" | "right";
|
|
@@ -442,10 +442,10 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
442
442
|
od: number;
|
|
443
443
|
pinlabeltextalignleft: boolean;
|
|
444
444
|
pinlabeltextalignright: boolean;
|
|
445
|
-
pinlabelverticallyinverted: boolean;
|
|
446
445
|
pinlabelorthogonal: boolean;
|
|
447
446
|
rows: number;
|
|
448
447
|
pinlabeltextaligncenter: boolean;
|
|
448
|
+
pinlabelverticallyinverted: boolean;
|
|
449
449
|
nosquareplating: boolean;
|
|
450
450
|
}, {
|
|
451
451
|
fn: string;
|
|
@@ -457,10 +457,10 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
457
457
|
female?: boolean | undefined;
|
|
458
458
|
pinlabeltextalignleft?: boolean | undefined;
|
|
459
459
|
pinlabeltextalignright?: boolean | undefined;
|
|
460
|
-
pinlabelverticallyinverted?: boolean | undefined;
|
|
461
460
|
pinlabelorthogonal?: boolean | undefined;
|
|
462
461
|
rows?: string | number | undefined;
|
|
463
462
|
pinlabeltextaligncenter?: boolean | undefined;
|
|
463
|
+
pinlabelverticallyinverted?: boolean | undefined;
|
|
464
464
|
nosquareplating?: boolean | undefined;
|
|
465
465
|
}>, z.ZodEffects<z.ZodObject<z.objectUtil.extendShape<{
|
|
466
466
|
fn: z.ZodString;
|
package/dist/index.js
CHANGED
|
@@ -1579,10 +1579,16 @@ var silkscreenPin = ({
|
|
|
1579
1579
|
}
|
|
1580
1580
|
let anchor_alignment = "center";
|
|
1581
1581
|
if (textalign === "left") {
|
|
1582
|
-
|
|
1582
|
+
if (verticallyinverted)
|
|
1583
|
+
anchor_alignment = "center_right";
|
|
1584
|
+
else
|
|
1585
|
+
anchor_alignment = "center_left";
|
|
1583
1586
|
}
|
|
1584
1587
|
if (textalign === "right") {
|
|
1585
|
-
|
|
1588
|
+
if (verticallyinverted)
|
|
1589
|
+
anchor_alignment = "center_left";
|
|
1590
|
+
else
|
|
1591
|
+
anchor_alignment = "center_right";
|
|
1586
1592
|
}
|
|
1587
1593
|
return {
|
|
1588
1594
|
type: "pcb_silkscreen_text",
|
|
@@ -1605,37 +1611,24 @@ import "@tscircuit/mm";
|
|
|
1605
1611
|
function determinePinlabelAnchorSide({
|
|
1606
1612
|
pinlabeltextalignleft,
|
|
1607
1613
|
pinlabeltextalignright,
|
|
1608
|
-
pinlabelverticallyinverted,
|
|
1609
1614
|
pinlabelorthogonal
|
|
1610
1615
|
}) {
|
|
1611
1616
|
let pinlabelAnchorSide = "top";
|
|
1612
|
-
if (pinlabelorthogonal
|
|
1617
|
+
if (pinlabelorthogonal) {
|
|
1613
1618
|
pinlabelAnchorSide = "left";
|
|
1614
|
-
} else if (pinlabelorthogonal) {
|
|
1615
|
-
pinlabelAnchorSide = "right";
|
|
1616
|
-
} else if (pinlabelverticallyinverted) {
|
|
1617
|
-
pinlabelAnchorSide = "bottom";
|
|
1618
1619
|
} else {
|
|
1619
1620
|
pinlabelAnchorSide = "top";
|
|
1620
1621
|
}
|
|
1621
1622
|
if (pinlabeltextalignleft) {
|
|
1622
|
-
if (pinlabelorthogonal
|
|
1623
|
-
pinlabelAnchorSide = "top";
|
|
1624
|
-
} else if (pinlabelorthogonal) {
|
|
1623
|
+
if (pinlabelorthogonal) {
|
|
1625
1624
|
pinlabelAnchorSide = "bottom";
|
|
1626
|
-
} else if (pinlabelverticallyinverted) {
|
|
1627
|
-
pinlabelAnchorSide = "left";
|
|
1628
1625
|
} else {
|
|
1629
1626
|
pinlabelAnchorSide = "right";
|
|
1630
1627
|
}
|
|
1631
1628
|
}
|
|
1632
1629
|
if (pinlabeltextalignright) {
|
|
1633
|
-
if (pinlabelorthogonal
|
|
1634
|
-
pinlabelAnchorSide = "bottom";
|
|
1635
|
-
} else if (pinlabelorthogonal) {
|
|
1630
|
+
if (pinlabelorthogonal) {
|
|
1636
1631
|
pinlabelAnchorSide = "top";
|
|
1637
|
-
} else if (pinlabelverticallyinverted) {
|
|
1638
|
-
pinlabelAnchorSide = "right";
|
|
1639
1632
|
} else {
|
|
1640
1633
|
pinlabelAnchorSide = "left";
|
|
1641
1634
|
}
|