Boolean operations and offsetting library in Javascript
Last updated 8 months ago by junmer .
BSL · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install clipper-lib 
SYNC missed versions from official npm registry.


forked from Javascript Clipper


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:


Information and examples:

Donate Javascript Clipper Project:

Use cases:

Javascript Clipper Web Site


  • 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
  • UMD support


Algorithms, Graphics



Boost Software License (BSL1.0)

Current Tags

  • 6.4.2                                ...           latest (8 months ago)

3 Versions

  • 6.4.2                                ...           8 months ago
  • 6.2.1                                ...           4 years ago
  • 1.0.0                                ...           5 years ago

Copyright 2014 - 2016 © |