JSPM

@thi.ng/geom

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

Functional, polymorphic API for 2D geometry types & SVG generation

Package Exports

  • @thi.ng/geom

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@thi.ng/geom) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@thi.ng/geom

npm version npm downloads Twitter Follow

This project is part of the @thi.ng/umbrella monorepo.

About

Functional, polymorphic API for 2D geometry types & SVG generation.

This project is a partially ported from the Clojure version of the same name. All polymorphic operations built on @thi.ng/defmulti.

Up-to-date feature matrix spreadsheet

This package acts as a higher-level frontend for most of the following related packages (which are more low-level, lightweight and usable by themselves too):

Support packages

Status

BETA - possibly breaking changes forthcoming

Installation

yarn add @thi.ng/geom

Package sizes (gzipped): ESM: 9.4KB / CJS: 9.6KB / UMD: 9.1KB

Dependencies

Usage examples

Several demos in this repo's /examples directory are using this package.

A selection:

geom-convex-hull

screenshot

Convex hull & shape clipping of 2D polygons

Live demo | Source

geom-tessel

screenshot

Animated, recursive polygon tessellations

Live demo | Source

geom-voronoi-mst

screenshot

Poisson-disk shape-aware sampling, Voronoi & Minimum Spanning Tree visualization

Live demo | Source

gesture-analysis

screenshot

Mouse gesture / stroke analysis, simplification, corner detection

Live demo | Source

hdom-canvas-particles

screenshot

2D Bezier curve-guided particle system

Live demo | Source

imgui

screenshot

Canvas based Immediate Mode GUI components

Live demo | Source

iso-plasma

screenshot

Animated sine plasma effect visualized using contour lines

Live demo | Source

poly-spline

screenshot

Polygon to cubic curve conversion & visualization

Live demo | Source

rotating-voronoi

screenshot

Animated Voronoi diagram, cubic splines & SVG download

Live demo | Source

scenegraph

screenshot

2D scenegraph & shape picking

Live demo | Source

scenegraph-image

screenshot

2D scenegraph & image map based geometry manipulation

Live demo | Source

text-canvas

screenshot

3D wireframe textmode demo

Live demo | Source

API

Generated API docs

TODO

Authors

Karsten Schmidt

License

© 2013 - 2020 Karsten Schmidt // Apache Software License 2.0