matkoniecz / lunar_assembler

SVG maps from OpenStreetMap data. Available at https://mapsaregreat.com/osm_to_svg_in_browser/
GNU Affero General Public License v3.0
41 stars 5 forks source link

find JS library for line clipping #24

Closed matkoniecz closed 3 years ago

matkoniecz commented 3 years ago

prerequisite for #22

preferably one working on also on geojson areas (NOT 3d.js geojson areas)

ceelo777 commented 3 years ago

This project looks pretty cool - what exactly do you need for this issue? I'm down to contribute

matkoniecz commented 3 years ago

For this one? To find code that would allow clipping lines (the best would be JS library allowing to clip lines and areas, and remove points outside specified area).

Right now generated SVG has invisible parts sticking outside, what is problematic in some kinds of uses (for example in case of using them on a laser cutter). I want to remove and eliminate parts outside selected rectangle.

I found library allowing to clip areas ( https://github.com/matkoniecz/lunar_assembler/issues/22#issuecomment-811355092 ), but from what I see it is not supporting lines (I may be wrong).

See screen10