UNPKG

leaflet-polydraw

Version:

Advanced polygon drawing and editing plugin for Leaflet with drag-and-drop, smart merging, and comprehensive editing tools

86 lines (85 loc) 2.31 kB
{ "name": "leaflet-polydraw", "version": "0.9.3", "description": "Advanced polygon drawing and editing plugin for Leaflet with drag-and-drop, smart merging, and comprehensive editing tools", "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", "lint": "eslint ./src --ext .ts", "prepare": "npm run build" }, "devDependencies": { "@types/geojson": "^7946.0.16", "@types/leaflet": "^1.9.18", "@types/node": "^22.15.30", "@typescript-eslint/eslint-plugin": "^7.8.0", "@typescript-eslint/parser": "^7.8.0", "eslint": "^8.57.1", "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.29.1", "eslint-plugin-prettier": "^5.1.3", "jsdom": "^25.0.1", "prettier": "^3.6.2", "terser": "^5.43.1", "typescript": "~5.8.3", "vite": "^6.3.5", "vite-plugin-static-copy": "^3.0.0", "vitest": "^3.2.4" }, "dependencies": { "@turf/turf": "^7.2.0", "concaveman": "^1.1.0", "leaflet": "^1.9.4" }, "peerDependencies": { "leaflet": "^1.9.4" }, "files": [ "dist", "README.md", "LICENSE" ] }