Replies: 3 comments 2 replies
-
i think any design/ css person could know the math, let me ask some |
Beta Was this translation helpful? Give feedback.
-
So the math is very simple, is inner radius + distance = outer radius. Now what it makes a bit more complicated is that i think that works for dimensionless lines while you are working with strokewidth. I m currently out but when i m back i ll play with the fiddle, if that simple rule doesn't help it may have to do with canvas small differences in drawing or fabric calculations |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hey 👋
I am looking for some help calculating
rx
andry
inline with Stroke's renderer. I am trying (and failing) to calculate the inner relative border radius to an outer wrapper rect. For layout and aesthetic purposes, I want to have the same non-linear border radius calculation continued to the inner element to avoid missmatched radii.I've set up an example that demonstrates the situation I cannot find the correct math to solve: https://codepen.io/ralpharoo/pen/NWZwMwa
Examples that I cannot figure a workaround to include;
Happy to pay a 100 USD bounty / charity donation to someone to help solve 🥇 Aim is to ensure that the alignment works in all cases in a responsive manner to any height / width image wrapped. The calculation must already be available, but I cannot figure how to use it 😅
Happy to consider alternative approaches but this is used in a complicated project and may not be possible.
Thanks in advanced!
Beta Was this translation helpful? Give feedback.
All reactions