forked from HEL/circuiteria
adapted corner anchors for ALU, EXT and MUX
This commit is contained in:
parent
7731159dd0
commit
f9916e5856
@ -24,6 +24,10 @@
|
|||||||
draw.anchor("south", (p2, 50%, p3))
|
draw.anchor("south", (p2, 50%, p3))
|
||||||
draw.anchor("west", (p0, 50%, p3))
|
draw.anchor("west", (p0, 50%, p3))
|
||||||
draw.anchor("east", (p1, 50%, p2))
|
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)))
|
draw.anchor("name", (p5, 50%, (p1, 50%, p2)))
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -30,6 +30,10 @@
|
|||||||
draw.anchor("south", (bl, 50%, br))
|
draw.anchor("south", (bl, 50%, br))
|
||||||
draw.anchor("west", (tl, 50%, bl))
|
draw.anchor("west", (tl, 50%, bl))
|
||||||
draw.anchor("east", (tr2, 50%, br))
|
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)
|
return (f, tl, tr, br, bl)
|
||||||
}
|
}
|
||||||
|
@ -19,6 +19,10 @@
|
|||||||
draw.anchor("south", (bl, 50%, br2))
|
draw.anchor("south", (bl, 50%, br2))
|
||||||
draw.anchor("west", (tl, 50%, bl))
|
draw.anchor("west", (tl, 50%, bl))
|
||||||
draw.anchor("east", (tr2, 50%, br2))
|
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)
|
return (f, tl, tr, br, bl)
|
||||||
|
Loading…
Reference in New Issue
Block a user