From 7d674a5a811743cc7ab87c7be3590bdfa16c47f0 Mon Sep 17 00:00:00 2001 From: junn-dev Date: Fri, 22 May 2026 08:24:37 +0700 Subject: [PATCH] docs: add courtyard outline anchor examples --- docs/elements/courtyardoutline.mdx | 71 ++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/docs/elements/courtyardoutline.mdx b/docs/elements/courtyardoutline.mdx index 5fa2511..ed16e9f 100644 --- a/docs/elements/courtyardoutline.mdx +++ b/docs/elements/courtyardoutline.mdx @@ -75,3 +75,74 @@ export default () => ( ) `} /> + +## Anchor Alignment Examples + +Use `anchorAlignment` with `pcbX` and `pcbY` when the same courtyard shape needs +to be positioned from a specific corner or edge. This is useful for footprints +that are laid out from a known mechanical datum instead of from the geometric +center. + + { + const outline = [ + { x: -3, y: -2 }, + { x: 3, y: -2 }, + { x: 4, y: 1 }, + { x: 0, y: 3 }, + { x: -4, y: 1 }, + ] + + return ( + + + + + + } + /> + + + + + } + /> + + + + + } + /> + + ) +} +`} +/>