OoooOOooh! Guess what! As of Chrome 149, shape() works in shape-outside! So you can really *shape* your UI's 😉* rect() and xywh() are also supported for shape-outside in Chrome 149 codepen.io/una/full/ogz... *(just let me have my Mom joke)
Post
The way I had to do this was to have a wrapper div with a resize observer that has its corners anchored to socket-A and socket-B. Inside that are two reference points, and an svg. On every resize observer cb, I find the position of the reference divs and re-draw the SVG path from scratch.
0 reposts1 like
arcanigen.thatrobhuman.com is the final thing. I dont have a snippet off hand.
@maikelkrause.bsky.social I'm back at home now - let me know if you need a distilled version of this or if you were able to reverse-engineer it.
Had a look, I get the gist of it, thanks for the link! A while back I made a quick n' dirty prototype here which is similar: codepen.io/maikelkrause... It doesn't have the JS part though to dynamically update the SVG (currently it breaks in most orientations). Need to get back to this at some point