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.4.2.2/main_demo.html

LIVE DEMO (FPoint):
http://jsclipper.sourceforge.net/6.4.2.2_fpoint/main_demo.html

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

Information and examples (FPoint):
http://jsclipper.sourceforge.net/6.4.2.2_fpoint

Donate Javascript Clipper Project: https://sourceforge.net/p/jsclipper/wiki/Donations/

Use cases:
* Over 1500 schools in the UK uses Javascript Clipper in Digimap for Schools service. Read more:
https://mobilegeo.wordpress.com and
http://digimapforschools.edina.ac.uk/cosmo-free/osmapper

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
  • Faster and lighter FPoint version available

Project Samples

Project Activity

See All Activity >

Categories

Algorithms, Graphics

License

Boost Software License (BSL1.0)

Follow Javascript Clipper

Javascript Clipper Web Site

Other Useful Business Software
Go From AI Idea to AI App Fast Icon
Go From AI Idea to AI App Fast

One platform to build, fine-tune, and deploy ML models. No MLOps team required.

Access Gemini 3 and 200+ models. Build chatbots, agents, or custom models with built-in monitoring and scaling.
Try Free
Rate This Project
Login To Rate This Project

User Ratings

★★★★★
★★★★
★★★
★★
5
0
0
0
0
ease 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 5 / 5
features 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 4 / 5
design 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 5 / 5
support 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 5 / 5

User Reviews

Be the first to post a review of Javascript Clipper!

Additional Project Details

User Interface

Web-based

Programming Language

JavaScript

Related Categories

JavaScript Algorithms, JavaScript Graphics Software

Registered

2012-12-10