minor fix to port margins

This commit is contained in:
Louis Heredero 2025-04-19 16:04:11 +02:00
parent 3e9272255c
commit 33d79f35fa
Signed by: HEL
GPG Key ID: 8D83DE470F8544E7
3 changed files with 4 additions and 4 deletions

Binary file not shown.

View File

@ -37,7 +37,6 @@
)
wire.stub("AdrSrc-MP.north", side: "north", name: "AdrSrc")
/*
element.block(
pos: (
6, (align: "A", with: "AdrSrc-MP.out")
@ -78,6 +77,7 @@
wire.stub("InstDataMgr.IRWrite")
wire.stub("InstDataMgr.WD")
/*
element.block(
pos: (
15, (align: "WD3", with: "InstDataMgr.RD")

View File

@ -157,9 +157,9 @@
let props2 = props
if side in elmt.ports-margins {
let (pt0, pt1) = props
let margins = ports-margins.at(side)
a = (pt0, margins.at(0), pt1)
b = (pt0, 100% - margins.at(1), pt1)
let margins = elmt.ports-margins.at(side)
let a = util.lerp(pt0, margins.at(0), pt1)
let b = util.lerp(pt0, 100% - margins.at(1), pt1)
props2 = (a, b)
}
bounds.ports.insert(side, props2)