Wraps Leaflet.js as native Web Components. Each element maps 1:1 to a Leaflet object with reactive attribute binding and proper lifecycle cleanup. Key design decisions: - LeafletElement base class handles attribute→option mapping, the leaflet-register bubble event for parent/child wiring, and disconnectedCallback cleanup tracking parent bindings. - LeafletControl base class for map controls (zoom, attribution, scale). - leaflet-map uses a PROPS table to drive observedAttributes, getters/setters, attributeChangedCallback, and map event listeners from a single source of truth. Property types are derived via a mapped type over the table; the mixin-base pattern (TypedBase) makes them visible to TypeScript without an interface merge. - Boolean map options that default to true use disable-* attributes. - Leaflet and its CSS are bundled into dist/index.js via esbuild. - JSR config included for @buddy/leaflet-components.
33 lines
456 B
Plaintext
33 lines
456 B
Plaintext
/.idea/
|
|
/jspm_packages/
|
|
/node_modules/
|
|
/web_modules/
|
|
/dist/
|
|
*.pid
|
|
*.pid.lock
|
|
*.seed
|
|
*.tgz
|
|
*.tsbuildinfo
|
|
.env
|
|
.env.development.local
|
|
.env.local
|
|
.env.production.local
|
|
.env.test.local
|
|
.eslintcache
|
|
.node_repl_history
|
|
.npm
|
|
.pnp.*
|
|
.pnpm-debug.log*
|
|
.stylelintcache
|
|
.yarn-integrity
|
|
.yarn/build-state.yml
|
|
.yarn/cache
|
|
.yarn/install-state.gz
|
|
.yarn/unplugged
|
|
lerna-debug.log*
|
|
npm-debug.log*
|
|
pids
|
|
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
|
yarn-debug.log*
|
|
yarn-error.log*
|