ClojureScript library wrapper for JSTS : https://github.com/bjornharrtell/jsts
Current version wrapped: 2.12.1
The cljsjs version of the library died at version 1.6.0. Meanwhile, the JSTS library has evolved.
Add the dependency to your deps.edn:
io.github.cleancoders/cljsts {:git/sha "20ab76d244310d6c5dbb2db114eb83c814ddf1f5"}Require the library:
[com.cleancoders.cljsts]The jsts.min.js can be found starting here: https://cdnjs.com/libraries/jsts
Generate the jsts.ext.js here: https://jmmk.github.io/javascript-externs-generator/
- use
jstsas the "extern object" - add
"getConvexHull": function () {}toConvexHull - add
"isCCW": function() {}toOrientation