From f9916e5856874ef8d7dee4997d0fc85fa1d1a53a Mon Sep 17 00:00:00 2001 From: LordBaryhobal Date: Sat, 18 May 2024 17:02:42 +0200 Subject: [PATCH] adapted corner anchors for ALU, EXT and MUX --- src/elements/alu.typ | 4 ++++ src/elements/extender.typ | 4 ++++ src/elements/multiplexer.typ | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/src/elements/alu.typ b/src/elements/alu.typ index b187f01..c32d35a 100644 --- a/src/elements/alu.typ +++ b/src/elements/alu.typ @@ -24,6 +24,10 @@ draw.anchor("south", (p2, 50%, p3)) draw.anchor("west", (p0, 50%, p3)) draw.anchor("east", (p1, 50%, p2)) + draw.anchor("north-west", p0) + draw.anchor("north-east", p1) + draw.anchor("south-east", p2) + draw.anchor("south-west", p3) draw.anchor("name", (p5, 50%, (p1, 50%, p2))) }) diff --git a/src/elements/extender.typ b/src/elements/extender.typ index 2f27ed6..8fe6f0b 100644 --- a/src/elements/extender.typ +++ b/src/elements/extender.typ @@ -30,6 +30,10 @@ draw.anchor("south", (bl, 50%, br)) draw.anchor("west", (tl, 50%, bl)) draw.anchor("east", (tr2, 50%, br)) + draw.anchor("north-west", tl) + draw.anchor("north-east", tr2) + draw.anchor("south-east", br) + draw.anchor("south-west", bl) }) return (f, tl, tr, br, bl) } diff --git a/src/elements/multiplexer.typ b/src/elements/multiplexer.typ index 837900f..8df5cee 100644 --- a/src/elements/multiplexer.typ +++ b/src/elements/multiplexer.typ @@ -19,6 +19,10 @@ draw.anchor("south", (bl, 50%, br2)) draw.anchor("west", (tl, 50%, bl)) draw.anchor("east", (tr2, 50%, br2)) + draw.anchor("north-west", tl) + draw.anchor("north-east", tr2) + draw.anchor("south-east", br2) + draw.anchor("south-west", bl) }) return (f, tl, tr, br, bl)