leaflet-polydraw
Version:
Advanced Leaflet plugin for freehand polygon drawing, with smart merging and powerful editing tool
112 lines (111 loc) • 3.19 kB
JSON
{
"name": "leaflet-polydraw",
"version": "0.9.6",
"description": "Advanced Leaflet plugin for freehand polygon drawing, with smart merging and powerful editing tool",
"types": "dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/polydraw.es.js",
"require": "./dist/polydraw.umd.min.js"
},
"./dist/*": "./dist/*",
"./leaflet-polydraw.css": "./dist/leaflet-polydraw.css"
},
"keywords": [
"leaflet",
"polygon",
"drawing",
"editing",
"geospatial",
"mapping",
"drag-drop",
"merge",
"geometry"
],
"homepage": "https://github.com/andreasolausson/leaflet-polydraw",
"demo": "https://polydraw.ao-tech.se",
"repository": {
"type": "git",
"url": "git+https://github.com/andreasolausson/leaflet-polydraw.git"
},
"bugs": {
"url": "https://github.com/andreasolausson/leaflet-polydraw/issues"
},
"author": {
"name": "Andreas Olausson",
"url": "https://github.com/andreasolausson"
},
"license": "MIT",
"engines": {
"node": ">=18",
"npm": ">=9"
},
"packageManager": "npm@10.2.0",
"scripts": {
"build": "tsc && vite build && npm run build:types",
"build:types": "tsc --project tsconfig.build.json && echo 'export { default } from \"./polydraw\";' > dist/types/index.d.ts",
"dev": "vite build --watch",
"preview": "vite preview",
"test": "vitest",
"test:cypress": "cypress run --component --browser chrome",
"test:e2e": "cypress run",
"lint": "eslint ./src --ext .ts",
"prepare": "npm run build"
},
"devDependencies": {
"@eslint/js": "^9.12.0",
"@types/geojson": "^7946.0.16",
"@types/leaflet": "^1.9.18",
"@types/node": "^22.15.30",
"@typescript-eslint/eslint-plugin": "^8.8.1",
"@typescript-eslint/parser": "^8.8.1",
"@vitest/coverage-v8": "^3.2.4",
"@vitest/ui": "^3.2.4",
"cypress": "^14.5.4",
"eslint": "^9.12.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-prettier": "^5.2.1",
"globals": "^15.12.0",
"jsdom": "^25.0.1",
"prettier": "^3.6.2",
"terser": "^5.36.0",
"typescript": "~5.8.3",
"vite": "^6.3.5",
"vite-plugin-static-copy": "^3.0.0",
"vitest": "^3.2.4"
},
"dependencies": {
"@turf/bezier-spline": "^7.2.0",
"@turf/boolean-equal": "^7.2.0",
"@turf/boolean-point-in-polygon": "^7.2.0",
"@turf/boolean-within": "^7.2.0",
"@turf/buffer": "^7.2.0",
"@turf/center-of-mass": "^7.2.0",
"@turf/convex": "^7.2.0",
"@turf/difference": "^7.2.0",
"@turf/explode": "^7.2.0",
"@turf/intersect": "^7.2.0",
"@turf/kinks": "^7.2.0",
"@turf/length": "^7.2.0",
"@turf/line-intersect": "^7.2.0",
"@turf/line-to-polygon": "^7.2.0",
"@turf/meta": "^7.2.0",
"@turf/nearest-point": "^7.2.0",
"@turf/polygon-to-line": "^7.2.0",
"@turf/simplify": "^7.2.0",
"@turf/union": "^7.2.0",
"@turf/unkink-polygon": "^7.2.0",
"concaveman": "^1.1.0",
"leaflet": "^1.9.4"
},
"peerDependencies": {
"leaflet": "^1.9.4"
},
"files": [
"dist",
"README.md",
"LICENSE"
]
}