3 ms·
I think this was patched just now. On my last visit a few minutes ago the bug still worked, now it removes any larger bits where the lines intersect. Also, the
by t0astbread 6y ago
I think this was patched just now. On my last visit a few minutes ago the bug still worked, now it removes any larger bits where the lines intersect.
Also, the code has been amended right where this comment is:
// People like to draw shapes with kinks, which results
// in part of the polygon being treated as negative area.
// turf.unkinkPolygon can be used to find the kinks and
// separate the polygon into multiple polygons at the
// kinks, but it's a little fragile and hard to combine
// into a single unkinked polygon. [...]
- jinseokim 6y agoYou may want to revert the (tedious) patch about intersections. Here is a simple workaround: > turf.unkinkPolygon=(x)=>x; Press F12, click 'Console', copy-paste the above one and press Enter.
- Aardwolf 6y agoI'm having so much fun with the before-the-fix version, you can make it "jump" out of the water, if you draw a figure 8 under water, and when the negative lobe is at the top and around 75% of the size of the positive one Even more optimal: https://imgur.com/7gCEJ0T https://imgur.com/7gCEJ0T I've had more extreme versions of this shape teleport off-screen, when starting them under water: https://imgur.com/ymVtTWq https://imgur.com/ymVtTWq And here's someone holding a balloon: https://imgur.com/8O4rib8 https://imgur.com/8O4rib8
- crazyKoala2 6y agoIt still works, you just have to mess around with the lines a bit more: https://gliggy.github.io/broken.png https://gliggy.github.io/broken.png
- dheera 6y agoDamnit it was so much more fun before the "fix".