diff --git a/gallery/target_api.pdf b/gallery/target_api.pdf index e0ecee5..cf3490a 100644 Binary files a/gallery/target_api.pdf and b/gallery/target_api.pdf differ diff --git a/gallery/target_api.typ b/gallery/target_api.typ index 87df0b3..fb34a39 100644 --- a/gallery/target_api.typ +++ b/gallery/target_api.typ @@ -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") diff --git a/src/elements/element.typ b/src/elements/element.typ index 51c071b..fce0069 100644 --- a/src/elements/element.typ +++ b/src/elements/element.typ @@ -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)