UNPKG

@thi.ng/geom-clip-poly

Version:

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

89 lines 2.23 kB
{ "name": "@thi.ng/geom-clip-poly", "version": "2.1.181", "description": "2D polygon clipping / offsetting (Sutherland-Hodgeman, Grainer-Hormann)", "type": "module", "module": "./index.js", "typings": "./index.d.ts", "sideEffects": false, "repository": { "type": "git", "url": "https://github.com/thi-ng/umbrella.git" }, "homepage": "https://thi.ng/geom-clip-poly", "funding": [ { "type": "github", "url": "https://github.com/sponsors/postspectacular" }, { "type": "patreon", "url": "https://patreon.com/thing_umbrella" }, { "type": "liberapay", "url": "https://liberapay.com/thi.ng" } ], "author": "Karsten Schmidt (https://thi.ng)", "license": "Apache-2.0", "scripts": { "build": "yarn build:esbuild && yarn build:decl", "build:decl": "tsc --declaration --emitDeclarationOnly", "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts", "clean": "bun ../../tools/src/clean-package.ts", "doc": "typedoc --options ../../typedoc.json --out doc src/index.ts", "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts", "pub": "yarn npm publish --access public", "test": "bun test", "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts" }, "dependencies": { "@thi.ng/geom-isec": "^4.0.49", "@thi.ng/geom-poly-utils": "^3.0.49", "@thi.ng/math": "^5.11.30", "@thi.ng/vectors": "^8.3.2" }, "devDependencies": { "esbuild": "^0.25.6", "typedoc": "^0.28.7", "typescript": "^5.8.3" }, "keywords": [ "2d", "bbox", "clipping", "convex", "geometry", "graphics", "offset", "polygon", "rect", "sutherland-hodgeman", "typescript" ], "publishConfig": { "access": "public" }, "engines": { "node": ">=18" }, "files": [ "./*.js", "./*.d.ts" ], "exports": { ".": { "default": "./index.js" } }, "thi.ng": { "parent": "@thi.ng/geom", "related": [ "geom-clip-line" ], "tag": "clipping", "year": 2013 }, "gitHead": "56d8f088389b22192a06e9a395b5eecebf47697a\n" }