Skip to content

evispa/timo-jsclipper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Javascript Clipper

Clone of http://sourceforge.net/projects/jsclipper

Description

Boolean operations and offsetting library in Javascript.

The Javascript Clipper library performs clipping and offsetting for both lines and polygons. All four boolean clipping operations are supported - intersection, union, difference and exclusive-or. Polygons can be of any shape including self-intersecting polygons.

Javascript Clipper is a port of Angus Johnson's Clipper library: https://sourceforge.net/projects/polyclipping/

LIVE DEMO: http://jsclipper.sourceforge.net/6.1.3.2/main_demo.html

Information and examples: http://jsclipper.sourceforge.net/6.1.3.2/

Features

  • Line and polygon clipping - intersection, union, difference & xor
  • Line and polygon offsetting with 3 types of joining - miter, square and round
  • Polygons can be of any shape, including self-intersecting polygons
  • Minkowski Addition and Minkowski Difference functions included
  • The library is written in Javascript
  • Comprehensive documentation
  • Demos use inline SVG and Canvas libraries
  • The library is significantly faster than commercial alternatives
  • Uses Tom Wu's fast big integer library

License

Boost Software License (BSL1.0) http://opensource.org/licenses/BSL-1.0

Copyright

Javascript Clipper Author: Timo

Original Clipper Author: Angus Johnson 2010-2014 http://www.angusj.com