Files
geo-kit/package.json
T
CatoandClaude 12463a6d01 feat(map): one renderer for the geography geo-kit delivers (0.2.0) (#14)
`@bitbaum/geo-kit/map`: an orthographic globe on Canvas 2D (d3-geo) which,
zoomed in, is a flat map of the place in front of the reader, so the world
and a commune are one projection and one renderer. Extracted from Substrata's
globe (camera, motion, culling, picking, the fast projection, painting, input
and frame loop), made country-neutral (features keyed by any id, fills by id,
limits per map) and framework-free (`createMap` takes a canvas). Solon's
commune map moves onto it from MapLibre, Substrata's globe after it.

d3-geo and topojson-client are optional peer dependencies, needed by /map only.


Claude-Session: https://claude.ai/code/session_019MDtmuxKPxNit33QRcXSCC

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-30 22:01:34 +01:00

75 lines
1.9 KiB
JSON

{
"name": "@bitbaum/geo-kit",
"version": "0.2.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": {
"@types/d3-geo": "^3.1.1",
"@types/geojson": "^7946.0.16",
"@types/node": "^22.0.0",
"@types/topojson-client": "^3.1.5",
"@types/topojson-specification": "^1.0.5",
"d3-geo": "3.1.1",
"topojson-client": "3.1.0",
"typescript": "^5.8.0",
"world-atlas": "2.0.2"
}
}