JSPM

@thi.ng/geom-clip-poly

2.1.194
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 224
  • Score
    100M100P100Q108338F
  • License Apache-2.0

2D polygon clipping / offsetting (Sutherland-Hodgeman, Grainer-Hormann)

Package Exports

  • @thi.ng/geom-clip-poly

Readme

@thi.ng/geom-clip-poly

npm version npm downloads Mastodon Follow

[!NOTE] This is one of 210 standalone projects, maintained as part of the @thi.ng/umbrella monorepo and anti-framework.

🚀 Please help me to work full-time on these projects by sponsoring me on GitHub. Thank you! ❤️

About

2D polygon clipping / offsetting (Sutherland-Hodgeman, Grainer-Hormann). This is a support package for @thi.ng/geom.

Current implementations are based on toxiclibs (Java) and Clojure versions thi.ng/geom-clj.

Status

STABLE - used in production

Search or submit any issues for this package

Installation

yarn add @thi.ng/geom-clip-poly

ESM import:

import * as gcp from "@thi.ng/geom-clip-poly";

Browser ESM import:

<script type="module" src="https://esm.run/@thi.ng/geom-clip-poly"></script>

JSDelivr documentation

For Node.js REPL:

const gcp = await import("@thi.ng/geom-clip-poly");

Package sizes (brotli'd, pre-treeshake): ESM: 317 bytes

Dependencies

API

Generated API docs

TODO

Authors

If this project contributes to an academic publication, please cite it as:

@misc{thing-geom-clip-poly,
  title = "@thi.ng/geom-clip-poly",
  author = "Karsten Schmidt",
  note = "https://thi.ng/geom-clip-poly",
  year = 2013
}

License

© 2013 - 2025 Karsten Schmidt // Apache License 2.0