mirror of
https://github.com/bitbaum/geo-kit.git
synced 2026-12-04 03:47:27 +01:00
* fix(map): a tap picks the place drawn on top, and pickAllAt returns the stack (0.7.0) pickAt walked the features in array order and ignored layer, so a coarse Natural Earth country listed first took every tap inside a fine place drawn over it (Solon: a tap inside Narva selected Russia). The pick index is now topmost first: highest layer, then smallest area, then listed last. Adds pickAllAt, picking tests on real borders (Narva, Valga/Valka, Goerlitz/Zgorzelec, Baarle enclaves, Liechtenstein communes) with sourced fixtures, and docs/design/picking.md. Claude-Session: https://claude.ai/code/session_019MDtmsK7DLpfrBNHLWnWaM * feat(map): borders are stroked layer by layer, and picture tests for the border fixtures (0.8.0) A coarse country's outline was stroked in one pass over every fill, so it ran across the fine places drawn over it. Each layer's fills are now followed by its own border lines. Adds Skia-rendered picture tests with baselines, including a check that no coarse border is stroked across a fine place. Claude-Session: https://claude.ai/code/session_019MDtmsK7DLpfrBNHLWnWaM
78 lines
2.0 KiB
JSON
78 lines
2.0 KiB
JSON
{
|
|
"name": "@bitbaum/geo-kit",
|
|
"version": "0.8.0",
|
|
"description": "Versioned, on-demand geography resources and sourced boundary assertions for web applications, and a Canvas 2D renderer for them (globe or map).",
|
|
"author": "BitBaum",
|
|
"homepage": "https://github.com/bitbaum/geo-kit#readme",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/bitbaum/geo-kit.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/bitbaum/geo-kit/issues"
|
|
},
|
|
"license": "MIT",
|
|
"type": "module",
|
|
"packageManager": "pnpm@11.25.0",
|
|
"engines": {
|
|
"node": ">=20"
|
|
},
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"import": "./dist/index.js",
|
|
"default": "./dist/index.js"
|
|
},
|
|
"./map": {
|
|
"types": "./dist/map/index.d.ts",
|
|
"import": "./dist/map/index.js",
|
|
"default": "./dist/map/index.js"
|
|
}
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"README.md",
|
|
"LICENSE"
|
|
],
|
|
"publishConfig": {
|
|
"access": "public",
|
|
"provenance": true
|
|
},
|
|
"sideEffects": false,
|
|
"scripts": {
|
|
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
"build": "tsc -p tsconfig.build.json",
|
|
"test": "node --experimental-strip-types --test test/*.test.ts",
|
|
"pack:check": "node scripts/check-pack.mjs",
|
|
"verify": "pnpm run typecheck && pnpm run test && pnpm run build && pnpm run pack:check"
|
|
},
|
|
"peerDependencies": {
|
|
"d3-geo": "^3.1.0",
|
|
"topojson-client": "^3.1.0"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"d3-geo": {
|
|
"optional": true
|
|
},
|
|
"topojson-client": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"devDependencies": {
|
|
"@napi-rs/canvas": "^1.1.0",
|
|
"@types/d3-geo": "^3.1.1",
|
|
"@types/geojson": "^7946.0.16",
|
|
"@types/node": "^22.0.0",
|
|
"@types/pngjs": "^6.0.5",
|
|
"@types/topojson-client": "^3.1.5",
|
|
"@types/topojson-specification": "^1.0.5",
|
|
"d3-geo": "3.1.1",
|
|
"pngjs": "^7.0.0",
|
|
"topojson-client": "3.1.0",
|
|
"typescript": "^5.8.0",
|
|
"world-atlas": "2.0.2"
|
|
}
|
|
}
|