@aceshooting/lyra-ui 29.2.2 → 30.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (440) hide show
  1. package/CHANGELOG.md +126 -106
  2. package/README.md +8 -7
  3. package/dist/ai/snapshot.js +1 -1
  4. package/dist/all.d.ts +1 -1
  5. package/dist/all.js +1 -1
  6. package/dist/autoloader.js +1 -1
  7. package/dist/cli/component-inventory.mjs +1 -1
  8. package/dist/cli/lyra-rename-ledger.mjs +1 -1
  9. package/dist/cli/migrate-wa.mjs +7 -3
  10. package/dist/cli/migration-analysis.mjs +1 -1
  11. package/dist/cli/migration-contract.json +1 -1
  12. package/dist/cli/migration-contract.mjs +1 -1
  13. package/dist/cli/migration-immutable-collections.mjs +6 -0
  14. package/dist/cli/migration-renames.mjs +1 -1
  15. package/dist/cli/migration-transforms.mjs +1 -1
  16. package/dist/components/agent-tools/activity-feed/activity-feed.class.d.ts +1 -1
  17. package/dist/components/agent-tools/agent-eval-dashboard/agent-eval-dashboard.class.d.ts +1 -2
  18. package/dist/components/agent-tools/agent-eval-dashboard/agent-eval-dashboard.class.js +1 -1
  19. package/dist/components/agent-tools/agent-run/agent-run.class.d.ts +3 -4
  20. package/dist/components/agent-tools/agent-run/agent-run.class.js +1 -1
  21. package/dist/components/agent-tools/agent-trace/agent-trace.class.d.ts +1 -1
  22. package/dist/components/agent-tools/agent-trace/agent-trace.class.js +2 -2
  23. package/dist/components/agent-tools/background-runs/background-runs.class.d.ts +1 -2
  24. package/dist/components/agent-tools/background-runs/background-runs.class.js +1 -1
  25. package/dist/components/agent-tools/change-review/change-review.class.d.ts +1 -2
  26. package/dist/components/agent-tools/change-review/change-review.class.js +1 -1
  27. package/dist/components/agent-tools/eval-dataset/eval-dataset.class.d.ts +3 -2
  28. package/dist/components/agent-tools/eval-dataset/eval-dataset.class.js +1 -1
  29. package/dist/components/agent-tools/evaluation-run/evaluation-run.class.d.ts +7 -1
  30. package/dist/components/agent-tools/evaluation-run/evaluation-run.class.js +1 -1
  31. package/dist/components/agent-tools/prompt-studio/prompt-studio.class.d.ts +2 -2
  32. package/dist/components/agent-tools/prompt-studio/prompt-studio.class.js +3 -3
  33. package/dist/components/agent-tools/span-waterfall/span-waterfall.class.d.ts +1 -1
  34. package/dist/components/agent-tools/subagent-panel/subagent-panel.class.d.ts +1 -2
  35. package/dist/components/agent-tools/subagent-panel/subagent-panel.class.js +2 -2
  36. package/dist/components/agent-tools/task-list/task-list.class.d.ts +1 -1
  37. package/dist/components/agent-tools/test-results/test-results.class.d.ts +1 -1
  38. package/dist/components/agent-tools/tool-call-chip/tool-call-chip.class.d.ts +3 -4
  39. package/dist/components/agent-tools/tool-call-chip/tool-call-chip.class.js +1 -5
  40. package/dist/components/agent-tools/tool-timeline/tool-timeline.class.d.ts +3 -3
  41. package/dist/components/agent-tools/trace-tree/trace-tree.class.d.ts +1 -0
  42. package/dist/components/agent-tools/trace-tree/trace-tree.class.js +1 -1
  43. package/dist/components/charts/chart/chart.class.js +3 -3
  44. package/dist/components/charts/chart-3d/chart-3d-data.d.ts +50 -0
  45. package/dist/components/charts/chart-3d/chart-3d-data.js +1 -0
  46. package/dist/components/charts/chart-3d/chart-3d-engine.js +1 -0
  47. package/dist/components/charts/chart-3d/chart-3d.class.d.ts +96 -0
  48. package/dist/components/charts/chart-3d/chart-3d.class.js +47 -0
  49. package/dist/components/charts/chart-3d/chart-3d.d.ts +1 -0
  50. package/dist/components/charts/chart-3d/chart-3d.js +1 -0
  51. package/dist/components/charts/chart-3d/chart-3d.styles.js +1 -0
  52. package/dist/components/charts/index.d.ts +1 -1
  53. package/dist/components/charts/index.js +1 -1
  54. package/dist/components/conversation/agent-workspace/agent-workspace.class.d.ts +3 -3
  55. package/dist/components/conversation/agent-workspace/agent-workspace.class.js +4 -5
  56. package/dist/components/conversation/code-block/code-block-base.class.js +1 -1
  57. package/dist/components/conversation/code-block/shiki-oniguruma.d.ts +3 -0
  58. package/dist/components/conversation/code-block/shiki-oniguruma.js +1 -0
  59. package/dist/components/conversation/code-block/shiki-types.d.ts +3 -5
  60. package/dist/components/conversation/code-block/shiki-types.js +1 -1
  61. package/dist/components/conversation/generation-metrics/generation-metrics.class.js +1 -1
  62. package/dist/components/conversation/markdown/markdown-progressive.js +1 -1
  63. package/dist/components/conversation/message-actions/message-actions.class.js +1 -1
  64. package/dist/components/conversation/message-parts/message-parts.class.js +1 -1
  65. package/dist/components/conversation/model-select/model-select.class.js +1 -1
  66. package/dist/components/conversation/model-settings-panel/model-settings-panel.class.js +1 -1
  67. package/dist/components/conversation/prompt-input/prompt-input.class.js +3 -4
  68. package/dist/components/conversation/prompt-queue/prompt-queue.class.d.ts +1 -1
  69. package/dist/components/conversation/push-to-talk/push-to-talk.class.js +1 -1
  70. package/dist/components/conversation/selection-toolbar/selection-toolbar.class.js +1 -1
  71. package/dist/components/conversation/thread-list/thread-list.class.d.ts +2 -2
  72. package/dist/components/conversation/thread-list/thread-list.class.js +1 -1
  73. package/dist/components/conversation/widget-renderer/registry.js +1 -1
  74. package/dist/components/conversation/widget-renderer/resolve.js +1 -1
  75. package/dist/components/data/calendar/calendar.class.d.ts +3 -1
  76. package/dist/components/data/data-grid/data-grid.class.js +2 -2
  77. package/dist/components/data/flow-canvas/flow-canvas.class.js +2 -2
  78. package/dist/components/data/flow-canvas/flow-source.js +1 -1
  79. package/dist/components/data/flow-node/flow-node.class.d.ts +2 -3
  80. package/dist/components/data/flow-node/flow-node.class.js +2 -4
  81. package/dist/components/data/heatmap/heatmap.class.js +1 -1
  82. package/dist/components/data/sparkline/sparkline.class.d.ts +0 -1
  83. package/dist/components/data/sparkline/sparkline.class.js +1 -1
  84. package/dist/components/data/table/table.class.js +1 -1
  85. package/dist/components/forms/color-picker/color-core.js +1 -1
  86. package/dist/components/forms/date-picker/calendar-core.js +1 -1
  87. package/dist/components/forms/otp-input/otp-input.class.js +1 -1
  88. package/dist/components/forms/signature-pad/signature-pad.class.d.ts +4 -3
  89. package/dist/components/forms/signature-pad/signature-pad.class.js +1 -1
  90. package/dist/components/forms/swatch-picker/swatch-picker.class.d.ts +3 -2
  91. package/dist/components/forms/swatch-picker/swatch-picker.class.js +1 -1
  92. package/dist/components/layout/app-rail/app-rail-item.class.d.ts +0 -2
  93. package/dist/components/layout/app-rail/app-rail-item.class.js +1 -1
  94. package/dist/components/layout/app-rail/app-rail.class.d.ts +3 -3
  95. package/dist/components/layout/command-palette/command-palette.class.d.ts +1 -1
  96. package/dist/components/layout/details/accordion-item.class.d.ts +1 -2
  97. package/dist/components/layout/details/accordion-item.class.js +1 -1
  98. package/dist/components/layout/dock-panel/dock-panel.class.d.ts +4 -11
  99. package/dist/components/layout/dock-panel/dock-panel.class.js +1 -1
  100. package/dist/components/layout/drilldown-panel/drilldown-panel.class.js +1 -1
  101. package/dist/components/layout/menu/menu.class.js +1 -1
  102. package/dist/components/layout/menubar/menubar-item.class.d.ts +1 -1
  103. package/dist/components/layout/menubar/menubar.class.d.ts +1 -1
  104. package/dist/components/layout/multi-split/multi-split.class.d.ts +1 -1
  105. package/dist/components/layout/multi-split/multi-split.class.js +1 -1
  106. package/dist/components/layout/navigation-menu/navigation-menu.class.d.ts +2 -6
  107. package/dist/components/layout/navigation-menu/navigation-menu.class.js +1 -1
  108. package/dist/components/layout/tab-group/tab-group.class.js +1 -1
  109. package/dist/components/layout/virtual-list/virtual-list.class.d.ts +3 -2
  110. package/dist/components/layout/virtual-list/virtual-list.class.js +1 -1
  111. package/dist/components/layout/widget/widget.class.d.ts +5 -14
  112. package/dist/components/layout/widget/widget.class.js +2 -2
  113. package/dist/components/lr-chart-3d.js +1 -0
  114. package/dist/components/lr-model-viewer.js +1 -0
  115. package/dist/components/media/av-player/av-metadata.d.ts +1 -13
  116. package/dist/components/media/av-player/av-metadata.js +1 -1
  117. package/dist/components/media/av-player/av-player.class.js +1 -1
  118. package/dist/components/media/file-input/file-input.class.d.ts +10 -13
  119. package/dist/components/media/file-input/file-input.class.js +3 -3
  120. package/dist/components/media/file-input/file-input.styles.js +1 -1
  121. package/dist/components/media/image-viewer/image-viewer-panorama.d.ts +5 -0
  122. package/dist/components/media/image-viewer/image-viewer-panorama.js +8 -0
  123. package/dist/components/media/image-viewer/image-viewer-panorama.styles.js +1 -0
  124. package/dist/components/media/image-viewer/image-viewer.class.d.ts +29 -5
  125. package/dist/components/media/image-viewer/image-viewer.class.js +8 -5
  126. package/dist/components/media/image-viewer/image-viewer.styles.js +1 -1
  127. package/dist/components/media/map/map-anchor-controller.js +1 -0
  128. package/dist/components/media/map/map-anchor-options.d.ts +14 -0
  129. package/dist/components/media/map/map-anchor-options.js +1 -0
  130. package/dist/components/media/map/map-camera.d.ts +34 -0
  131. package/dist/components/media/map/map-camera.js +1 -0
  132. package/dist/components/media/map/map-construction-scheduler.d.ts +13 -0
  133. package/dist/components/media/map/map-construction-scheduler.js +1 -0
  134. package/dist/components/media/map/map-control-options.d.ts +39 -0
  135. package/dist/components/media/map/map-control-options.js +1 -0
  136. package/dist/components/media/map/map-controls-lifecycle.js +1 -0
  137. package/dist/components/media/map/map-cursor.js +1 -0
  138. package/dist/components/media/map/map-data-layer-model.d.ts +40 -0
  139. package/dist/components/media/map/map-data-layer-model.js +1 -0
  140. package/dist/components/media/map/map-drawing-controller.js +1 -0
  141. package/dist/components/media/map/map-drawing-gesture.js +1 -0
  142. package/dist/components/media/map/map-drawing-pan.js +1 -0
  143. package/dist/components/media/map/map-drawing-pointer.js +1 -0
  144. package/dist/components/media/map/map-drawing.d.ts +29 -0
  145. package/dist/components/media/map/map-drawing.js +1 -0
  146. package/dist/components/media/map/map-empty-style.d.ts +8 -0
  147. package/dist/components/media/map/map-empty-style.js +1 -0
  148. package/dist/components/media/map/map-engine-events.js +1 -0
  149. package/dist/components/media/map/map-export-attribution.js +1 -0
  150. package/dist/components/media/map/map-external-source-effects.js +1 -0
  151. package/dist/components/media/map/map-feature-loader-core.js +1 -0
  152. package/dist/components/media/map/map-feature-loader.js +1 -0
  153. package/dist/components/media/map/map-feature-state-router.d.ts +16 -0
  154. package/dist/components/media/map/map-feature-state-router.js +1 -0
  155. package/dist/components/media/map/map-feature-state-routes.js +1 -0
  156. package/dist/components/media/map/map-feature-state.d.ts +16 -0
  157. package/dist/components/media/map/map-feature-state.js +1 -0
  158. package/dist/components/media/map/map-hash-option.js +1 -0
  159. package/dist/components/media/map/map-hash-owner.js +1 -0
  160. package/dist/components/media/map/map-hash.js +1 -0
  161. package/dist/components/media/map/map-hit-test.d.ts +17 -0
  162. package/dist/components/media/map/map-hit-test.js +1 -0
  163. package/dist/components/media/map/map-image-admission.d.ts +7 -0
  164. package/dist/components/media/map/map-image-admission.js +1 -0
  165. package/dist/components/media/map/map-image-export-controller.js +1 -0
  166. package/dist/components/media/map/map-image-export-error.d.ts +3 -0
  167. package/dist/components/media/map/map-image-export-error.js +1 -0
  168. package/dist/components/media/map/map-image-export.d.ts +15 -0
  169. package/dist/components/media/map/map-image-export.js +5 -0
  170. package/dist/components/media/map/map-image-limits.d.ts +4 -0
  171. package/dist/components/media/map/map-image-limits.js +1 -0
  172. package/dist/components/media/map/map-image-metadata.js +3 -0
  173. package/dist/components/media/map/map-image-provider.d.ts +33 -0
  174. package/dist/components/media/map/map-image-provider.js +1 -0
  175. package/dist/components/media/map/map-images.d.ts +9 -0
  176. package/dist/components/media/map/map-images.js +1 -0
  177. package/dist/components/media/map/map-interaction-options.d.ts +26 -0
  178. package/dist/components/media/map/map-interaction-options.js +1 -0
  179. package/dist/components/media/map/map-layer-order.js +1 -0
  180. package/dist/components/media/map/map-loader.d.ts +35 -5
  181. package/dist/components/media/map/map-loader.js +1 -1
  182. package/dist/components/media/map/map-local-image-url.js +1 -0
  183. package/dist/components/media/map/map-local-image.js +1 -0
  184. package/dist/components/media/map/map-overlay-admission.d.ts +13 -0
  185. package/dist/components/media/map/map-overlay-admission.js +1 -0
  186. package/dist/components/media/map/map-owned-feature-input.js +1 -0
  187. package/dist/components/media/map/map-owned-features.js +1 -0
  188. package/dist/components/media/map/map-owned-resources.js +1 -0
  189. package/dist/components/media/map/map-paint-batch.js +1 -0
  190. package/dist/components/media/map/map-readers.js +1 -0
  191. package/dist/components/media/map/map-readiness.js +1 -0
  192. package/dist/components/media/map/map-resource-feature-loaders.js +1 -0
  193. package/dist/components/media/map/map-source-updates.js +1 -0
  194. package/dist/components/media/map/map-style-input.js +1 -0
  195. package/dist/components/media/map/map-style-lifecycle.js +1 -0
  196. package/dist/components/media/map/map-style-override-admission.d.ts +10 -0
  197. package/dist/components/media/map/map-style-override-admission.js +1 -0
  198. package/dist/components/media/map/map-style-overrides.js +1 -0
  199. package/dist/components/media/map/map-style-value.d.ts +3 -0
  200. package/dist/components/media/map/map-style-value.js +1 -0
  201. package/dist/components/media/map/map-vector-style.d.ts +10 -0
  202. package/dist/components/media/map/map-vector-style.js +1 -0
  203. package/dist/components/media/map/map.class.d.ts +558 -51
  204. package/dist/components/media/map/map.class.js +58 -11
  205. package/dist/components/media/map/map.styles.js +1 -1
  206. package/dist/components/media/qr-code/qr-code.class.d.ts +1 -3
  207. package/dist/components/media/qr-code/qr-code.class.js +1 -1
  208. package/dist/components/media/qr-code/qr-code.styles.js +1 -1
  209. package/dist/components/media/video/video.class.d.ts +25 -4
  210. package/dist/components/media/video/video.class.js +11 -3
  211. package/dist/components/media/video/video.styles.js +1 -1
  212. package/dist/components/media/video-playlist/video-playlist.class.d.ts +0 -1
  213. package/dist/components/media/video-playlist/video-playlist.class.js +1 -1
  214. package/dist/components/overlays/chip/chip-group.class.d.ts +1 -1
  215. package/dist/components/overlays/chip/chip-group.class.js +1 -1
  216. package/dist/components/overlays/dialog/confirm.js +1 -1
  217. package/dist/components/overlays/overlay/popover.class.d.ts +1 -1
  218. package/dist/components/overlays/overlay/popover.class.js +2 -1
  219. package/dist/components/overlays/overlay/tooltip.class.js +1 -1
  220. package/dist/components/retrieval/chunk-inspector/chunk-inspector.class.d.ts +4 -7
  221. package/dist/components/retrieval/chunk-inspector/chunk-inspector.class.js +2 -2
  222. package/dist/components/retrieval/claim-evidence/claim-evidence.class.d.ts +2 -2
  223. package/dist/components/retrieval/community-card/community-card.class.d.ts +1 -4
  224. package/dist/components/retrieval/community-card/community-card.class.js +1 -1
  225. package/dist/components/retrieval/embedding-explorer/embedding-explorer-data.d.ts +12 -0
  226. package/dist/components/retrieval/embedding-explorer/embedding-explorer-data.js +1 -0
  227. package/dist/components/retrieval/embedding-explorer/embedding-explorer-engine.js +1 -0
  228. package/dist/components/retrieval/embedding-explorer/embedding-explorer.class.d.ts +26 -7
  229. package/dist/components/retrieval/embedding-explorer/embedding-explorer.class.js +35 -4
  230. package/dist/components/retrieval/embedding-explorer/embedding-explorer.styles.js +1 -1
  231. package/dist/components/retrieval/entity-dossier/entity-dossier.class.d.ts +3 -9
  232. package/dist/components/retrieval/graph/graph-builtin-3d-engine.js +1 -0
  233. package/dist/components/retrieval/graph/graph-engine-adapter.js +1 -0
  234. package/dist/components/retrieval/graph/graph-engine-columns.js +1 -0
  235. package/dist/components/retrieval/graph/graph-model.js +1 -1
  236. package/dist/components/retrieval/graph/graph-spatial-controller.js +13 -8
  237. package/dist/components/retrieval/graph/graph-webgl-engine.js +1 -0
  238. package/dist/components/retrieval/graph/graph.class.d.ts +18 -5
  239. package/dist/components/retrieval/graph/graph.class.js +4 -4
  240. package/dist/components/retrieval/graph/graph.styles.js +1 -1
  241. package/dist/components/retrieval/grounding-summary/grounding-summary.class.d.ts +1 -1
  242. package/dist/components/retrieval/ingestion-queue/ingestion-queue.class.d.ts +1 -1
  243. package/dist/components/retrieval/ingestion-queue/ingestion-queue.class.js +2 -2
  244. package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.class.d.ts +6 -3
  245. package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.class.js +3 -3
  246. package/dist/components/retrieval/memory-panel/memory-panel.class.d.ts +3 -10
  247. package/dist/components/retrieval/memory-panel/memory-panel.class.js +1 -1
  248. package/dist/components/retrieval/node-palette/node-palette.class.d.ts +1 -1
  249. package/dist/components/retrieval/path-strip/path-strip.class.d.ts +1 -4
  250. package/dist/components/retrieval/path-strip/path-strip.class.js +1 -1
  251. package/dist/components/retrieval/provenance-panel/provenance-panel.class.d.ts +2 -8
  252. package/dist/components/retrieval/rag-answer/rag-answer.class.d.ts +2 -2
  253. package/dist/components/retrieval/rag-answer/rag-answer.class.js +2 -3
  254. package/dist/components/retrieval/rag-eval-dashboard/rag-eval-dashboard.class.d.ts +1 -11
  255. package/dist/components/retrieval/rag-eval-dashboard/rag-eval-dashboard.class.js +1 -1
  256. package/dist/components/retrieval/retrieval-results/retrieval-results.class.d.ts +8 -12
  257. package/dist/components/retrieval/retrieval-results/retrieval-results.class.js +5 -6
  258. package/dist/components/retrieval/retrieval-search/retrieval-search.class.d.ts +1 -1
  259. package/dist/components/retrieval/retrieval-trace/retrieval-trace.class.d.ts +4 -7
  260. package/dist/components/retrieval/retrieval-trace/retrieval-trace.class.js +2 -3
  261. package/dist/components/retrieval/source-card/source-card.class.d.ts +6 -9
  262. package/dist/components/retrieval/source-card/source-card.class.js +1 -1
  263. package/dist/components/retrieval/source-picker/source-picker.class.d.ts +1 -4
  264. package/dist/components/retrieval/source-picker/source-picker.class.js +1 -1
  265. package/dist/components/utility/diff-view/diff-view.class.js +1 -1
  266. package/dist/components/utility/format/format-options.js +1 -1
  267. package/dist/components/utility/icon/icon.class.d.ts +0 -5
  268. package/dist/components/utility/icon/icon.class.js +2 -2
  269. package/dist/components/utility/icon/icon.styles.js +1 -1
  270. package/dist/components/utility/json-viewer/json-viewer.class.js +1 -1
  271. package/dist/components/utility/known-date/known-date.class.d.ts +0 -3
  272. package/dist/components/utility/known-date/known-date.class.js +1 -1
  273. package/dist/components/utility/mention-popover/mention-popover.class.d.ts +3 -2
  274. package/dist/components/utility/mention-popover/mention-popover.class.js +1 -1
  275. package/dist/components/viewers/archive-viewer/archive-viewer.class.js +1 -1
  276. package/dist/components/viewers/calendar-viewer/calendar-viewer.class.js +1 -1
  277. package/dist/components/viewers/contact-viewer/contact-viewer.class.js +1 -1
  278. package/dist/components/viewers/document-preview/document-preview.class.js +1 -1
  279. package/dist/components/viewers/document-viewer/document-viewer-kinds.d.ts +1 -1
  280. package/dist/components/viewers/document-viewer/document-viewer-kinds.js +1 -1
  281. package/dist/components/viewers/document-viewer/document-viewer.class.js +1 -1
  282. package/dist/components/viewers/document-viewer/registry.d.ts +1 -69
  283. package/dist/components/viewers/document-viewer/registry.js +1 -1
  284. package/dist/components/viewers/docx-viewer/docx-viewer.class.js +1 -1
  285. package/dist/components/viewers/email-viewer/email-viewer.class.js +1 -1
  286. package/dist/components/viewers/html-viewer/html-viewer.class.js +1 -1
  287. package/dist/components/viewers/include/include.class.js +1 -1
  288. package/dist/components/viewers/index.d.ts +1 -1
  289. package/dist/components/viewers/index.js +1 -1
  290. package/dist/components/viewers/model-viewer/model-viewer-document.js +1 -0
  291. package/dist/components/viewers/model-viewer/model-viewer-loader.js +1 -0
  292. package/dist/components/viewers/model-viewer/model-viewer-register.d.ts +1 -0
  293. package/dist/components/viewers/model-viewer/model-viewer-register.js +1 -0
  294. package/dist/components/viewers/model-viewer/model-viewer-source.d.ts +1 -0
  295. package/dist/components/viewers/model-viewer/model-viewer-source.js +1 -0
  296. package/dist/components/viewers/model-viewer/model-viewer.class.d.ts +61 -0
  297. package/dist/components/viewers/model-viewer/model-viewer.class.js +9 -0
  298. package/dist/components/viewers/model-viewer/model-viewer.d.ts +1 -0
  299. package/dist/components/viewers/model-viewer/model-viewer.js +1 -0
  300. package/dist/components/viewers/model-viewer/model-viewer.styles.js +1 -0
  301. package/dist/components/viewers/notebook-viewer/notebook-viewer.class.js +2 -2
  302. package/dist/components/viewers/page-rail/page-rail.class.js +1 -1
  303. package/dist/components/viewers/pdf-viewer/pdf-viewer.class.js +1 -1
  304. package/dist/components/viewers/pptx-viewer/pptx-viewer.class.js +3 -3
  305. package/dist/components/viewers/svg-viewer/svg-viewer.class.js +1 -1
  306. package/dist/components/viewers/table-viewer-shared.js +1 -1
  307. package/dist/components/viewers/xml-viewer/xml-viewer.class.js +1 -1
  308. package/dist/custom-elements-jsx.d.ts +1 -1
  309. package/dist/events.d.ts +137 -92
  310. package/dist/framework-types.d.ts +2 -2
  311. package/dist/hydration.d.ts +1 -1
  312. package/dist/internal/ansi.d.ts +3 -1
  313. package/dist/internal/ansi.js +1 -1
  314. package/dist/internal/autoloader-manifest.js +1 -1
  315. package/dist/internal/autoloader-tags.d.ts +1 -1
  316. package/dist/internal/autoloader-tags.js +1 -1
  317. package/dist/internal/av-metadata.d.ts +13 -0
  318. package/dist/internal/av-metadata.js +1 -0
  319. package/dist/internal/collection-snapshot.js +1 -1
  320. package/dist/internal/component-loaders.generated.js +1 -1
  321. package/dist/internal/data-descriptors.d.ts +30 -0
  322. package/dist/internal/default-strings/agent-tools.generated.js +1 -1
  323. package/dist/internal/default-strings/charts.generated.js +1 -1
  324. package/dist/internal/default-strings/conversation.generated.js +1 -1
  325. package/dist/internal/default-strings/media.generated.js +1 -1
  326. package/dist/internal/default-strings/shared.generated.js +1 -1
  327. package/dist/internal/default-strings/viewers.generated.js +1 -1
  328. package/dist/internal/document-renderer-registry.d.ts +75 -0
  329. package/dist/internal/document-renderer-registry.js +1 -0
  330. package/dist/internal/drop-session-controller.js +1 -1
  331. package/dist/internal/engine-3d-loader.d.ts +47 -0
  332. package/dist/internal/engine-3d-loader.js +1 -0
  333. package/dist/internal/engine-3d.d.ts +57 -0
  334. package/dist/internal/engine-3d.js +1 -0
  335. package/dist/internal/hierarchy-source-controller.js +1 -1
  336. package/dist/internal/localization-runtime.js +1 -1
  337. package/dist/internal/localization-types.d.ts +1 -1
  338. package/dist/internal/localization.js +1 -1
  339. package/dist/internal/lyra-element.d.ts +2 -2
  340. package/dist/internal/lyra-element.js +1 -1
  341. package/dist/internal/model-viewer-contract.d.ts +5 -0
  342. package/dist/internal/model-viewer-contract.js +1 -0
  343. package/dist/internal/package-metadata.js +1 -1
  344. package/dist/internal/positioner.js +1 -1
  345. package/dist/internal/rendered-state.js +1 -1
  346. package/dist/internal/root-registration-allowlist.js +1 -1
  347. package/dist/internal/scoped-definitions.generated.js +1 -1
  348. package/dist/internal/typed-columns.d.ts +39 -0
  349. package/dist/internal/typed-columns.js +1 -0
  350. package/dist/localization.js +1 -1
  351. package/dist/lyra.d.ts +1 -1
  352. package/dist/lyra.js +1 -1
  353. package/dist/ssr/all.d.ts +1 -1
  354. package/dist/ssr/all.js +1 -1
  355. package/dist/ssr.d.ts +4 -4
  356. package/dist/ssr.js +1 -1
  357. package/dist/svelte.d.ts +1 -1
  358. package/dist/testing/lyra-tag-event-map.d.ts +2 -2
  359. package/dist/testing/lyra-tag-event-map.js +1 -1
  360. package/dist/theme/theme-bootstrap.js +1 -1
  361. package/dist/theme/theme.js +1 -1
  362. package/dist/vue.d.ts +1 -1
  363. package/llms/components/lr-accordion-item.md +2 -2
  364. package/llms/components/lr-agent-eval-dashboard.md +3 -3
  365. package/llms/components/lr-agent-run.md +3 -3
  366. package/llms/components/lr-agent-trace.md +1 -1
  367. package/llms/components/lr-agent-workspace.md +1 -1
  368. package/llms/components/lr-app-rail-item.md +1 -1
  369. package/llms/components/lr-app-rail.md +5 -6
  370. package/llms/components/lr-background-runs.md +4 -4
  371. package/llms/components/lr-calendar.md +1 -1
  372. package/llms/components/lr-change-review.md +5 -5
  373. package/llms/components/lr-chart-3d.md +164 -0
  374. package/llms/components/lr-chunk-inspector.md +4 -5
  375. package/llms/components/lr-citation-badge.md +1 -1
  376. package/llms/components/lr-code-block-core.md +2 -4
  377. package/llms/components/lr-command-palette.md +3 -3
  378. package/llms/components/lr-community-card.md +2 -2
  379. package/llms/components/lr-date-picker.md +1 -1
  380. package/llms/components/lr-details.md +2 -2
  381. package/llms/components/lr-diff-view.md +2 -2
  382. package/llms/components/lr-dock-panel.md +5 -10
  383. package/llms/components/lr-document-viewer.md +21 -14
  384. package/llms/components/lr-embedding-explorer.md +24 -4
  385. package/llms/components/lr-entity-dossier.md +3 -4
  386. package/llms/components/lr-eval-dataset.md +3 -3
  387. package/llms/components/lr-eval-run.md +7 -1
  388. package/llms/components/lr-file-input.md +10 -11
  389. package/llms/components/lr-flow-node.md +2 -3
  390. package/llms/components/lr-geojson-viewer.md +1 -1
  391. package/llms/components/lr-graph.md +21 -2
  392. package/llms/components/lr-grounding-summary.md +1 -1
  393. package/llms/components/lr-icon.md +1 -3
  394. package/llms/components/lr-image-viewer.md +29 -2
  395. package/llms/components/lr-ingestion-queue.md +1 -1
  396. package/llms/components/lr-knowledge-base-admin.md +2 -2
  397. package/llms/components/lr-knowledge-graph-explorer.md +7 -1
  398. package/llms/components/lr-known-date.md +3 -10
  399. package/llms/components/lr-lite-chart.md +1 -1
  400. package/llms/components/lr-map.md +861 -49
  401. package/llms/components/lr-markdown-core.md +1 -2
  402. package/llms/components/lr-memory-panel.md +4 -8
  403. package/llms/components/lr-model-viewer.md +170 -0
  404. package/llms/components/lr-navigation-menu.md +3 -4
  405. package/llms/components/lr-node-palette.md +1 -1
  406. package/llms/components/lr-path-strip.md +2 -3
  407. package/llms/components/lr-provenance-panel.md +3 -5
  408. package/llms/components/lr-qr-code.md +3 -4
  409. package/llms/components/lr-rag-answer.md +1 -1
  410. package/llms/components/lr-rag-eval-dashboard.md +2 -5
  411. package/llms/components/lr-retrieval-results.md +6 -7
  412. package/llms/components/lr-retrieval-trace.md +3 -4
  413. package/llms/components/lr-signature-pad.md +4 -3
  414. package/llms/components/lr-source-card.md +1 -1
  415. package/llms/components/lr-source-list.md +5 -5
  416. package/llms/components/lr-source-picker.md +2 -3
  417. package/llms/components/lr-span-waterfall.md +4 -3
  418. package/llms/components/lr-sparkline.md +3 -3
  419. package/llms/components/lr-subagent-panel.md +3 -3
  420. package/llms/components/lr-tool-call-chip.md +6 -6
  421. package/llms/components/lr-tool-timeline.md +1 -1
  422. package/llms/components/lr-video-playlist.md +3 -3
  423. package/llms/components/lr-video.md +29 -2
  424. package/llms/components/lr-virtual-list.md +3 -2
  425. package/llms/components/lr-widget.md +6 -13
  426. package/llms/index.md +98 -95
  427. package/llms/migration.md +27 -38
  428. package/llms/peers.md +7 -6
  429. package/llms/shared/ai-and-peers.md +1 -1
  430. package/llms/shared/events-and-types.md +8 -0
  431. package/llms/shared/imports-and-registration.md +2 -2
  432. package/llms/shared/v29-to-v30-migration.md +256 -0
  433. package/llms/shared.md +11 -3
  434. package/llms.txt +4 -4
  435. package/locales.json +1 -2328
  436. package/package.json +41 -13
  437. package/registrations.json +1 -1
  438. package/skills/lyra-ui/SKILL.md +4 -3
  439. /package/dist/{components/viewers/document-viewer → internal}/deferred-teardown.js +0 -0
  440. /package/dist/{components/viewers/document-viewer/registry-ownership.js → internal/document-renderer-registry-ownership.js} +0 -0
@@ -1,4 +1,10 @@
1
- import{type TemplateResult,type PropertyValues}from'lit';import type{Feature,FeatureCollection}from'geojson';import{LyraElement}from'../../../internal/lyra-element.js';import{type LyraMapFeatureRequirements,type MapLibreSourceDataDiff}from'./map-loader.js';export{buildGeoJsonPropertyDiff}from'./map-geojson-diff.js';import'../../overlays/skeleton/skeleton.class.js';
1
+ import{type TemplateResult,type PropertyValues}from'lit';import type{Feature,FeatureCollection}from'geojson';import{LyraElement}from'../../../internal/lyra-element.js';import type{LyraMapAnchorBoundary,LyraMapAnchorCloseDetail,LyraMapAnchorSafeArea}from'./map-anchor-options.js';export type{LyraMapAnchorBoundary,LyraMapAnchorSafeArea,LyraMapAnchorCloseReason,LyraMapAnchorCloseDetail}from'./map-anchor-options.js';import{type LyraMapFeatureRequirements,type MapLibreSourceDataDiff}from'./map-loader.js';import{type LyraMapFeatureValue}from'./map-hit-test.js';export type{LyraMapFeatureValue}from'./map-hit-test.js';import{type LyraMapFeatureOrigin,type LyraMapFeatureStateTarget,type LyraMapResolvedFeatureStateTarget}from'./map-feature-state-router.js';import type{LyraMapFeatureState}from'./map-feature-state.js';export type{LyraMapFeatureState,LyraMapFeatureStateValue,LyraMapFeatureIdentifier}from'./map-feature-state.js';export type{LyraMapFeatureOrigin,LyraMapFeatureStateTarget,LyraMapResolvedFeatureStateTarget}from'./map-feature-state-router.js';import type{LyraMapDrawingSnapshot,LyraMapDrawingMode,LyraMapDrawingCancelDetail,LyraMapDrawingVertexEndDetail}from'./map-drawing.js';export type{LyraMapDrawingSnapshot,LyraMapDrawingMetrics,LyraMapDrawingMode,LyraMapDrawingPoint,LyraMapDrawingCancelReason,LyraMapDrawingCancelDetail,LyraMapDrawingVertexEndDetail}from'./map-drawing.js';
2
+ /** URL fragment form that `hash` reads and writes: a `key=` field, or the engine's unnamed token. */
3
+ export type LyraMapHashFormat='named'|'unnamed';import{type LyraMapInteractionOptions,type LyraMapBasemapInteraction,type LyraMapStyleLayer,type LyraMapStyleSource}from'./map-interaction-options.js';export type{LyraMapInteractionOptions,LyraMapBasemapInteraction,LyraMapStyleLayerSelector,LyraMapStyleLayer,LyraMapStyleSource}from'./map-interaction-options.js';import{type LyraMapGeolocateControlOptions,type LyraMapAttributionControlOptions,type LyraMapGeolocationErrorCode,type LyraMapNavigationControlOptions,type LyraMapScaleControlOptions}from'./map-control-options.js';export type{LyraMapControlPosition,LyraMapScaleUnit,LyraMapNavigationControlOptions,LyraMapScaleControlOptions,LyraMapGeolocateControlOptions,LyraMapAttributionControlOptions,LyraMapAttributionLink,LyraMapGeolocationErrorCode}from'./map-control-options.js';import{type LyraMapImageExportOptions,type LyraMapImageExportErrorCode}from'./map-image-export-error.js';export{LyraMapImageExportError}from'./map-image-export-error.js';export type{LyraMapImageExportOptions,LyraMapImageExportType,LyraMapImageExportErrorCode}from'./map-image-export-error.js';export interface LyraMapImageExportErrorDetail{readonly code:LyraMapImageExportErrorCode;}import{type LyraMapInitialization}from'./map-construction-scheduler.js';export type{LyraMapInitialization}from'./map-construction-scheduler.js';import type{LyraMapOverlaySource,LyraMapOverlayLayer}from'./map-overlay-admission.js';import type{LyraMapImage}from'./map-image-admission.js';import type{LyraMapImageProvider}from'./map-image-provider.js';export type{LyraMapImageProvider}from'./map-image-provider.js';import{type LyraMapExternalDataLayer,type LyraMapLabelOptions}from'./map-data-layer-model.js';export type{LyraMapVectorPaintProperty,LyraMapVectorLayoutProperty,LyraMapVectorStyleExpression,LyraMapVectorNumericValue,LyraMapVectorColorValue,LyraMapVectorPaint,LyraMapVectorLayout}from'./map-vector-style.js';export type{LyraMapSourceCoordinates,LyraMapLabelValue,LyraMapLabelOptions,LyraMapLabelAnchor,LyraMapTileSource,LyraMapExternalDataLayerOptions,LyraMapVectorDataLayer,LyraMapRasterDataLayer,LyraMapImageDataLayer,LyraMapCanvasDataLayer,LyraMapExternalDataLayer}from'./map-data-layer-model.js';
4
+ /** Existing GeoJSON overlays and explicitly discriminated native external-source families. */
5
+ export type LyraMapDataLayer=LyraMapGeoJsonDataLayer|LyraMapExternalDataLayer;import type{LyraMapStyleOverride}from'./map-style-override-admission.js';export type{LyraMapOverlaySource,LyraMapOverlayLayer}from'./map-overlay-admission.js';
6
+ /** Declarative native resources restored after every style replacement. */
7
+ export interface LyraMapOverlays{readonly sources?:readonly LyraMapOverlaySource[];readonly layers?:readonly LyraMapOverlayLayer[];}export type{LyraMapImage}from'./map-image-admission.js';export type{LyraMapStyleOverride,LyraMapStyleValue}from'./map-style-override-admission.js';import{type LyraMapCameraOptions}from'./map-camera.js';export type{LyraMapCameraOptions}from'./map-camera.js';import type{LyraMapStyleSpecification}from'./map-empty-style.js';export{LYRA_MAP_EMPTY_STYLE,type LyraMapStyleSpecification}from'./map-empty-style.js';export{buildGeoJsonPropertyDiff}from'./map-geojson-diff.js';import'../../overlays/skeleton/skeleton.class.js';
2
8
  /** A caller-authored GeoJSON source diff; feature IDs must be unique and stable. */
3
9
  export type LyraMapSourceDataDiff=MapLibreSourceDataDiff;export type{LyraMapFeatureRequirements}from'./map-loader.js';
4
10
  /** Map engine selected before connecting the component. */
@@ -73,13 +79,20 @@ readonly group?:string;}
73
79
  * through instead of maintaining a second copy that drifts from the layer it describes.
74
80
  */
75
81
  export type LyraMapLegendGradientStop=readonly[number,string];
82
+ /** A labelled mark along the legend gradient bar, at a position in the data's own units. */
83
+ export interface LyraMapLegendGradientTick{
84
+ /** Position on the ramp, in the same units as the gradient's stops. A tick outside the ramp's
85
+ * lowest and highest stop is dropped. */
86
+ readonly value:number;
87
+ /** Caption; caller data, rendered verbatim. Defaults to the locale-formatted `value`. */
88
+ readonly label?:string;}
76
89
  /** Observable result of normalizing the latest `legend` assignment. */
77
90
  export interface LyraMapLegendProjection{readonly inputCount:number;readonly renderedCount:number;readonly omittedCount:number;readonly truncatedLabelCount:number;readonly truncated:boolean;}
78
91
  /**
79
92
  * Declarative GeoJSON fill layer, colored by interpolating `field`'s value
80
93
  * across `stops`.
81
94
  */
82
- export interface LyraMapChoroplethLayer{readonly sourceId:string;readonly geojson:FeatureCollection;readonly field:string;
95
+ export interface LyraMapChoroplethLayer extends LyraMapInteractionOptions{readonly sourceId:string;readonly geojson:FeatureCollection;readonly field:string;
83
96
  /**
84
97
  * `[value, color]` pairs, ascending by `value`, fed to a maplibre-gl `interpolate` or `step`
85
98
  * expression. CSS custom-property references are resolved against the host before they reach
@@ -112,7 +125,26 @@ readonly interpolation?:LyraMapChoroplethInterpolation;
112
125
  * live theme changes. Set it when the map should distinguish
113
126
  * "below the lowest advertised band" from the lowest band itself.
114
127
  */
115
- readonly stepBaseColor?:string;}
128
+ readonly stepBaseColor?:string;
129
+ /**
130
+ * How features without a usable value paint and are reported. A feature has no value when its
131
+ * `field` property is missing, `null` or not a number. Without `noData`, such a feature is not
132
+ * painted by this layer at all, so an application had to split its data into a second layer to
133
+ * show it. `noData: {}` accepts every default.
134
+ *
135
+ * A click on a no-data feature reports `noData: true` in the `lr-map-click` detail. With
136
+ * `choroplethLegend`, the legend shows a swatch for it, captioned `label`.
137
+ */
138
+ readonly noData?:LyraMapChoroplethNoData;}
139
+ /** Paint and caption for choropleth features that have no value. */
140
+ export interface LyraMapChoroplethNoData{
141
+ /** Fill color. A `var(--lr-…)` reference resolves against the host like `stops`. Defaults to the
142
+ * neutral data tone. */
143
+ readonly color?:string;
144
+ /** Outline color, drawn on no-data features only. Without it they have no distinct outline. */
145
+ readonly strokeColor?:string;
146
+ /** Legend caption. Caller data, rendered verbatim; defaults to the localized "No data". */
147
+ readonly label?:string;}
116
148
  /**
117
149
  * How a choropleth's fill color is derived from its stops.
118
150
  *
@@ -167,10 +199,10 @@ readonly colorSteps?:readonly(readonly[number,string])[];
167
199
  /** Outline color for aggregate cluster circles only. Defaults to the layer stroke, color, then tone; individual pins keep their layer paint. */
168
200
  readonly strokeColor?:string;
169
201
  /**
170
- * Font stack for the cluster count label, which must exist in the style's own glyph source.
202
+ * Font stack for the cluster count label, which must exist in the style's glyph or font-file source.
171
203
  * Defaults to MapLibre's spec default; supply the names your style actually ships when that
172
- * default is absent. The count label is skipped entirely when the style declares no `glyphs`,
173
- * since a text layer without one paints nothing and only emits peer errors.
204
+ * default is absent. The count label is skipped when the style declares neither `glyphs` nor
205
+ * readable native `font-faces`, since a text layer without a font source cannot paint text.
174
206
  */
175
207
  readonly countFont?:readonly string[];
176
208
  /** Count label foreground. Defaults to the layer tone's on-color. CSS token references resolve against this map. */
@@ -178,7 +210,14 @@ readonly countColor?:string;
178
210
  /** Optional count label halo color. Without it, the label has no halo. */
179
211
  readonly countHaloColor?:string;
180
212
  /** Halo width in CSS pixels, clamped to 0–3 (one quarter of the 12px count text size). Defaults to 1 when a halo color is set. */
181
- readonly countHaloWidth?:number;}
213
+ readonly countHaloWidth?:number;
214
+ /**
215
+ * Zooms into a cluster when it is clicked: the camera eases to the cluster's position at the
216
+ * zoom where it breaks apart (clamped to the camera range), honoring reduced motion and writing
217
+ * the result back to `center` and `zoom`. `lr-map-click` still fires first, with
218
+ * `origin: 'cluster'`. Defaults to `false`.
219
+ */
220
+ readonly zoomOnClick?:boolean;}
182
221
  /** A heatmap paint value expressed either as one constant or bounded `[zoom, value]` stops. */
183
222
  export type LyraMapHeatmapZoomValue=number|readonly(readonly[zoom:number,value:number])[];
184
223
  /** Paint configuration for a `kind: 'heatmap'` data layer. */
@@ -282,10 +321,16 @@ readonly iconSize?:number;}
282
321
  * for lines/outlines, `${sourceId}-circle` for points), or — under `cluster`/`kind` — as the
283
322
  * cluster or heatmap layers those describe. Colors resolve from `--lr-*` tokens at apply time,
284
323
  * defaulting to `accent`. */
285
- export interface LyraMapGeoJsonDataLayer{
324
+ export interface LyraMapGeoJsonDataLayer extends LyraMapInteractionOptions{
286
325
  /** Trimmed nonempty business identity. A collection retains the first occurrence and ignores
287
326
  * blank or later duplicate `sourceId` records. */
288
- readonly sourceId:string;readonly geojson:Feature|FeatureCollection;readonly tone?:'accent'|'success'|'warning'|'danger'|'neutral';
327
+ readonly sourceId:string;readonly geojson:Feature|FeatureCollection;
328
+ /** Logical data-layer sourceId or native layer anchor. Missing targets append; cycles reject the proposal. */
329
+ readonly before?:string;
330
+ /** Finite native minimum, clamped to [0,24], inclusive. Defaults to zero. */
331
+ readonly minZoom?:number;
332
+ /** Finite native maximum, clamped to [0,24], exclusive. Defaults to 24. Equal bounds are empty. */
333
+ readonly maxZoom?:number;readonly tone?:'accent'|'success'|'warning'|'danger'|'neutral';
289
334
  /**
290
335
  * Explicit fill color, overriding `tone` for the polygon fill only. Any CSS color, including a
291
336
  * `var(--lr-…)` reference.
@@ -323,7 +368,10 @@ readonly heatmap?:LyraMapHeatmapOptions;
323
368
  * Ignored when `kind` is `'heatmap'`: a heatmap already aggregates density, and clustering its
324
369
  * input would feed it one weighted point per cluster instead of the real distribution.
325
370
  */
326
- readonly cluster?:LyraMapClusterOptions;}export interface LyraMapMarker{
371
+ readonly cluster?:LyraMapClusterOptions;
372
+ /** Text labels require a glyph-capable style. Clustered sources label only unclustered points.
373
+ * Heatmaps and line placement on clustered points do not accept labels. */
374
+ readonly label?:LyraMapLabelOptions;}export interface LyraMapMarker{
327
375
  /** Optional explicit business identity. Explicit IDs are trimmed and must be nonempty; the
328
376
  * first occurrence is retained. Markers with no `id` remain distinct by coordinate occurrence. */
329
377
  readonly id?:string;readonly lngLat:readonly[number,number];
@@ -355,8 +403,20 @@ readonly lngLat:readonly[number,number];
355
403
  readonly marker:LyraMapMarker;
356
404
  /** Whether activation came through click/pointer semantics or the keyboard contract. */
357
405
  readonly source:LyraMapMarkerActivationSource;}
358
- /** Peer-neutral subset of a MapLibre style accepted by `mapStyle`. */
359
- export interface LyraMapStyleSpecification{readonly version:8;readonly sources:Readonly<Record<string,unknown>>;readonly layers:readonly unknown[];readonly name?:string;readonly sprite?:string|readonly Readonly<{id:string;url:string;}>[];readonly glyphs?:string;readonly projection?:unknown;readonly terrain?:unknown;}
406
+ /**
407
+ * Standard peer controls an `<lr-map>` adds and removes for you. Entries accept `true` (defaults),
408
+ * `false` (disabled), or an options object. Attribution is enabled when omitted; other omitted
409
+ * controls are disabled. The selected engine's control code loads only for enabled controls.
410
+ */
411
+ export interface LyraMapGeolocateErrorDetail{readonly code:LyraMapGeolocationErrorCode;}export interface LyraMapGeolocateOutOfBoundsDetail{readonly code:'out-of-bounds';}
412
+ /** Detail of `lr-map-geolocate`: the position the user-activated geolocate control located. */
413
+ export interface LyraMapGeolocateDetail{
414
+ /** `[longitude, latitude]` reported by the browser. */
415
+ readonly lngLat:readonly[number,number];
416
+ /** Radius of uncertainty in metres, as the browser reports it. */
417
+ readonly accuracy:number;}export interface LyraMapControls{readonly navigation?:boolean|LyraMapNavigationControlOptions;readonly scale?:boolean|LyraMapScaleControlOptions;readonly geolocate?:boolean|LyraMapGeolocateControlOptions;
418
+ /** Text or guarded linked credits. Controls in a corner read navigation, scale, geolocate, attribution from top to bottom. */
419
+ readonly attribution?:boolean|LyraMapAttributionControlOptions;}
360
420
  /**
361
421
  * Common imperative map capability returned by `LyraMap.map` without making
362
422
  * `maplibre-gl` a declaration dependency for consumers.
@@ -386,28 +446,50 @@ export type LyraMapBounds=readonly[readonly[number,number],readonly[number,numbe
386
446
  * `0`.
387
447
  */
388
448
  export interface LyraMapPadding{readonly top?:number;readonly right?:number;readonly bottom?:number;readonly left?:number;}
449
+ /** Identifies the connection/style whose owned overlays reached readiness. */
450
+ export interface LyraMapReadinessDetail{
451
+ /** Monotonically increasing for this element, including reconnects and style replacements. */
452
+ readonly generation:number;}
389
453
  /** Options for `LyraMap.fitBounds()`. Every field is optional. */
390
454
  export interface LyraMapFitBoundsOptions{
391
455
  /** Screen pixels kept clear around the box: one number for every side, or per side. A negative
392
456
  * or non-finite side counts as `0`. Defaults to `0`. */
393
457
  readonly padding?:number|LyraMapPadding;
394
458
  /** Highest zoom the fit may reach, so a single point or a tight cluster does not zoom to the
395
- * street. Clamped into `[0, 22]`; a non-finite value sets no ceiling. */
459
+ * street. Clamped into the map's zoom limits (`minZoom`/`maxZoom`, `[0, 22]` by default); a
460
+ * non-finite value sets no ceiling beyond `maxZoom`. */
396
461
  readonly maxZoom?:number;
397
462
  /** Whether the camera animates to the box. Defaults to `true`. It never animates under
398
463
  * `prefers-reduced-motion: reduce`, or when the fit was queued before the map existed. */
399
464
  readonly animate?:boolean;}
400
- /** What settled the camera that a `lr-map-view-change` reports: a user gesture (drag, wheel,
401
- * touch, keyboard, box zoom or a standard peer navigation button) or a `fitBounds()` call. These
402
- * are the only two: camera moves made directly through `map` are never reported. */
403
- export type LyraMapViewChangeSource='user'|'fit';
465
+ /** What settled the camera that a `lr-map-view-change` reports: a user gesture (`'user'`: drag,
466
+ * wheel, touch, keyboard, box zoom or a standard peer navigation button), a `fitBounds()` or
467
+ * `fitToData()` call (`'fit'`), or a `flyTo()`, `easeTo()` or `jumpTo()` call (`'command'`). These
468
+ * are the only three: camera moves made directly through `map` are never reported. */
469
+ export type LyraMapViewChangeSource='user'|'fit'|'command';
404
470
  /** Detail of `lr-map-view-change`. Frozen, and detached from the component's own state. */
405
471
  export interface LyraMapViewChangeDetail{
406
472
  /** Settled `[longitude, latitude]`, longitude wrapped into `[-180, 180]`. Already written into
407
473
  * `center`. */
408
474
  readonly center:readonly[number,number];
409
475
  /** Settled zoom. Already written into `zoom`. */
410
- readonly zoom:number;readonly source:LyraMapViewChangeSource;}
476
+ readonly zoom:number;readonly source:LyraMapViewChangeSource;
477
+ /** The visible geographic box, `[[west, south], [east, north]]`, inside `cameraPadding` (the
478
+ * area not covered by the padding). Longitudes are shifted so `west` lies in `[-180, 180]` and
479
+ * `east` may run past 180 across the antimeridian, so `fitBounds()` accepts the box back.
480
+ * Absent when the engine cannot report bounds. */
481
+ readonly bounds?:LyraMapBounds;}
482
+ /** Detail of `lr-map-move`. Frozen, and detached from the component's own state. */
483
+ export interface LyraMapMoveDetail{
484
+ /** Current `[longitude, latitude]`, longitude wrapped into `[-180, 180]`. */
485
+ readonly center:readonly[number,number];
486
+ /** Current zoom. */
487
+ readonly zoom:number;
488
+ /** The visible box, as in `LyraMapViewChangeDetail.bounds`. Absent when the engine cannot
489
+ * report bounds. */
490
+ readonly bounds?:LyraMapBounds;}
491
+ /** A position in the map's container, `[x, y]` CSS pixels from its top-left corner. */
492
+ export type LyraMapPoint=readonly[number,number];
411
493
  /**
412
494
  * Complete proposed visibility snapshot for one map legend category, mirroring
413
495
  * `LyraChartLegendVisibilityChangeDetail`'s shape so a host that already reconciles a chart legend
@@ -427,19 +509,39 @@ readonly hiddenCategories:readonly string[];}
427
509
  */
428
510
  export interface LyraMapLegendPanelToggleDetail{
429
511
  /** Proposed `legendOpen` after this activation. */
430
- readonly open:boolean;}export interface LyraMapEventMap{'lr-map-load':CustomEvent<null>;'lr-map-marker-activate':CustomEvent<LyraMapMarkerActivationDetail>;
512
+ readonly open:boolean;}
513
+ /** Detached hit data with a public logical source identity. Anonymous hits omit target. */
514
+ export interface LyraMapFeatureHit{readonly layerId:string;readonly origin:LyraMapFeatureOrigin;readonly source:string;readonly sourceLayer?:string;readonly id?:string|number;readonly properties:{readonly[key:string]:LyraMapFeatureValue;};readonly target?:LyraMapResolvedFeatureStateTarget;}export interface LyraMapInteractionDetail{readonly lngLat:readonly[number,number];readonly hit?:LyraMapFeatureHit;
515
+ /** The hit as a detached, deeply frozen GeoJSON feature: `id`, `properties` (as in `hit`) and its
516
+ * geometry in `[longitude, latitude]`. Rendered geometry comes from the engine's tiles, so a
517
+ * large feature may be clipped to the tiles around the pointer; `geometry` is `null` past
518
+ * 100,000 coordinate values. Present whenever `hit` is. */
519
+ readonly feature?:LyraMapFeature;}
520
+ /** A detached GeoJSON feature reported by hover, context-menu and pick events. */
521
+ export type LyraMapFeature=Readonly<Feature>;
522
+ /** Detail of `lr-map-pointer-move`. Frozen. */
523
+ export interface LyraMapPointerDetail{
524
+ /** `[longitude, latitude]` under the pointer, longitude wrapped into `[-180, 180]`. */
525
+ readonly lngLat:readonly[number,number];
526
+ /** The pointer position in the map's container, `[x, y]` CSS pixels (see `project()`). */
527
+ readonly point:LyraMapPoint;}export interface LyraMapPickDetail extends LyraMapInteractionDetail{readonly trigger:'pointer'|'keyboard';}export interface LyraMapEventMap{'lr-map-anchor-close':CustomEvent<LyraMapAnchorCloseDetail>;'lr-map-draw-start':CustomEvent<LyraMapDrawingSnapshot>;'lr-map-draw-change':CustomEvent<LyraMapDrawingSnapshot>;'lr-map-draw-complete':CustomEvent<LyraMapDrawingSnapshot>;'lr-map-draw-cancel':CustomEvent<LyraMapDrawingCancelDetail>;'lr-map-draw-vertex-end':CustomEvent<LyraMapDrawingVertexEndDetail>;'lr-map-feature-enter':CustomEvent<LyraMapInteractionDetail>;'lr-map-feature-leave':CustomEvent<LyraMapInteractionDetail>;'lr-map-pointer-move':CustomEvent<LyraMapPointerDetail>;'lr-map-pointer-leave':CustomEvent<null>;'lr-map-contextmenu':CustomEvent<LyraMapInteractionDetail>;'lr-map-pick':CustomEvent<LyraMapPickDetail>;'lr-map-load':CustomEvent<null>;'lr-map-geolocate':CustomEvent<LyraMapGeolocateDetail>;'lr-map-geolocate-error':CustomEvent<LyraMapGeolocateErrorDetail>;'lr-map-geolocate-out-of-bounds':CustomEvent<LyraMapGeolocateOutOfBoundsDetail>;'lr-map-export-error':CustomEvent<LyraMapImageExportErrorDetail>;'lr-map-style-load':CustomEvent<LyraMapReadinessDetail>;'lr-map-idle':CustomEvent<LyraMapReadinessDetail>;'lr-map-marker-activate':CustomEvent<LyraMapMarkerActivationDetail>;
431
528
  /** Cancelable proposal to change one legend category's visibility. */
432
529
  'lr-map-legend-toggle-request':CustomEvent<LyraMapLegendToggleDetail>;
433
530
  /** Cancelable proposal to open or collapse the legend panel. */
434
- 'lr-map-legend-panel-toggle-request':CustomEvent<LyraMapLegendPanelToggleDetail>;'lr-map-view-change':CustomEvent<LyraMapViewChangeDetail>;'lr-map-click':CustomEvent<{readonly lngLat:readonly[number,number];readonly feature:Feature|undefined;
531
+ 'lr-map-legend-panel-toggle-request':CustomEvent<LyraMapLegendPanelToggleDetail>;'lr-map-view-change':CustomEvent<LyraMapViewChangeDetail>;'lr-map-move':CustomEvent<LyraMapMoveDetail>;'lr-map-click':CustomEvent<{readonly lngLat:readonly[number,number];readonly feature:Feature|undefined;
435
532
  /** Which layer `feature` was hit on, so a click is attributable when both a choropleth and
436
533
  * `dataLayers` are painted. `'cluster'` marks a hit on a clustered entry's aggregate circle,
437
534
  * whose `point_count`/`cluster_id` properties describe the group rather than one feature.
438
535
  * `undefined` whenever `feature` is. */
439
- readonly origin:'choropleth'|'data-layer'|'cluster'|undefined;
536
+ readonly origin:LyraMapFeatureOrigin|'cluster'|undefined;readonly hit?:LyraMapFeatureHit;readonly target?:LyraMapResolvedFeatureStateTarget;
440
537
  /** The authored `dataLayers[].sourceId` the hit belongs to; `undefined` for a choropleth hit
441
538
  * (which has only one possible source) and when nothing was hit. */
442
- readonly sourceId:string|undefined;}>;}
539
+ readonly sourceId:string|undefined;
540
+ /** Native vector source layer containing the hit; absent for other source families. */
541
+ readonly sourceLayer?:string;
542
+ /** `true` when the hit is a choropleth feature without a usable value and `choropleth.noData`
543
+ * is configured; absent otherwise. */
544
+ readonly noData?:true;}>;}
443
545
  /**
444
546
  * `<lr-map>` — a modular MapLibre-compatible wrapper with a declarative legend, choropleth
445
547
  * GeoJSON layer, markers, and additive `dataLayers` GeoJSON overlays
@@ -480,6 +582,25 @@ readonly sourceId:string|undefined;}>;}
480
582
  *
481
583
  * @customElement lr-map
482
584
  * @event lr-map-load - Fired once the underlying maplibregl.Map loads.
585
+ * @event lr-map-geolocate - `detail: { lngLat, accuracy }` (`LyraMapGeolocateDetail`). Fired each time
586
+ * the user-activated geolocate control locates the user (including position updates while it
587
+ * tracks), after the browser granted access. Never fired without that user activation.
588
+ * @event lr-map-geolocate-error - `detail: { code }` (`LyraMapGeolocateErrorDetail`). Location
589
+ * permission, availability or timeout failure; no location or native error message is exposed.
590
+ * @event lr-map-geolocate-out-of-bounds - `detail: { code: 'out-of-bounds' }`. A user-activated
591
+ * location lies outside maxBounds; no coordinates are exposed.
592
+ * @event lr-map-export-error - `detail: { code }` (`LyraMapImageExportErrorDetail`). Frozen sanitized export failure.
593
+ * @csspart initialization-placeholder - Stable surface before native construction. It is
594
+ * noninteractive except for `initialization-activate`.
595
+ * @csspart initialization-activate - Localized button covering an `initialization="interaction"`
596
+ * placeholder until the first input builds the map.
597
+ * @csspart initialization-control - Decorative outline of a requested native control before construction.
598
+ * @event lr-map-style-load - `detail: { generation }` (`LyraMapReadinessDetail`). Fired once per
599
+ * connection/style after generated and registered overlays, images, style overrides and their
600
+ * asynchronous preparation are restored.
601
+ * @event lr-map-idle - `detail: { generation }` (`LyraMapReadinessDetail`). Fired after style
602
+ * readiness when the peer and current component work are idle, including later camera/source
603
+ * updates. These readiness events bubble, are composed, and are not cancelable.
483
604
  * @event lr-map-legend-toggle-request - **Cancelable.** Fired once when an interactive legend row
484
605
  * is activated by pointer or by Enter/Space, carrying the immutable
485
606
  * `detail: { value, visible, hiddenCategories }` -- the activated category key, its proposed
@@ -502,24 +623,69 @@ readonly sourceId:string|undefined;}>;}
502
623
  * @event lr-map-marker-activate - Fired once when an accepted declarative marker is activated by
503
624
  * pointer/click or by Enter/Space. The immutable detail carries its normalized `id`, validated
504
625
  * `lngLat`, accepted marker snapshot, and activation `source`.
505
- * @event lr-map-click - `detail: { lngLat, feature?, origin?, sourceId? }`. `feature` resolves
626
+ * @event lr-map-feature-enter - Pointer entered a different admitted feature (anonymous hits start a fresh transition on every pointer query); frozen `detail: { lngLat, hit, feature }`, where `feature` is the hit as a detached GeoJSON feature with its geometry.
627
+ * @event lr-map-feature-leave - Pointer left its previous admitted feature; frozen `detail: { lngLat, hit, feature }`, the detail its enter carried.
628
+ * @event lr-map-pointer-move - Fired at most once per animation frame while a mouse pointer moves over the map, whatever lies under it, carrying the frozen `detail: { lngLat, point }` (`LyraMapPointerDetail`): the coordinate and the container position, for tooltips and coordinate read-outs. Not fired while the map is inert or disabled.
629
+ * @event lr-map-pointer-leave - The pointer left the map after an `lr-map-pointer-move`; `detail` is `null`.
630
+ * @event lr-map-contextmenu - Frozen `detail: { lngLat, hit?, feature? }`; does not prevent the native context menu.
631
+ * @event lr-map-pick - Pick mode selection, `detail: { lngLat, hit?, feature?, trigger }`. Pointer picks replace ordinary click dispatch; keyboard picks use the current camera center.
632
+ * @event lr-map-anchor-close - Frozen `detail: { reason }` after an actually open anchor closes by API, close action or Escape.
633
+ * @csspart anchor-close - Optional localized anchor close button.
634
+ * @event lr-map-draw-start - Frozen drawing snapshot after the first accepted vertex, before change.
635
+ * @event lr-map-draw-change - Frozen drawing snapshot after an accepted vertex, undo or vertex edit; explicit completed edits include recomputed geometry and spherical metrics.
636
+ * @event lr-map-draw-complete - Frozen valid geometry and spherical metrics; temporary drawing clears after dispatch.
637
+ * @event lr-map-draw-cancel - Frozen cancelled snapshot with a stable reason; mode and temporary state are cleared.
638
+ * @event lr-map-draw-vertex-end - Frozen snapshot plus the moved vertex `index` (`LyraMapDrawingVertexEndDetail`) once a vertex drag that moved the vertex is released, and after each keyboard vertex move: the point to recompute anything derived from the shape, where `lr-map-draw-change` fires for every intermediate position.
639
+ * @csspart drawing-measurements - Decorative layer holding the on-map measurement labels of `drawingMeasurements`.
640
+ * @csspart drawing-measurement - One measurement label; `data-kind` is `segment`, `closing`, `area` or `length`.
641
+ * @csspart drawing-summary - Localized total length (line) or area (polygon) beside the vertex count while `drawingMeasurements` is set.
642
+ * @cssprop [--lr-map-drawing-color=var(--lr-color-brand)] - Color of the temporary drawing, its rubber band and vertex handles. Read from the resolved cascade, so a theme change repaints it.
643
+ * @csspart drawing-controls - Wrapping keyboard-accessible drawing actions.
644
+ * @csspart drawing-add - Add the current map center as a vertex.
645
+ * @csspart drawing-undo - Remove the last vertex.
646
+ * @csspart drawing-complete - Complete a valid drawing.
647
+ * @csspart drawing-cancel - Cancel drawing.
648
+ * @csspart drawing-status - Localized vertex count.
649
+ * @csspart drawing-handles - Viewport-clipped projected vertex edit controls.
650
+ * @csspart drawing-vertex - Keyboard-accessible vertex handle with logical arrow-key movement.
651
+ * @csspart pick-controls - Coordinate-picking actions.
652
+ * @csspart pick-center - Keyboard-accessible pick-at-center button.
653
+ * @csspart pick-cancel - Button that exits pick mode.
654
+ * @event lr-map-click - `detail: { lngLat, feature?, origin?, sourceId?, noData? }`. `feature` resolves
506
655
  * against the choropleth fill *and* every applied `dataLayers` fill/line/circle/cluster layer,
507
656
  * topmost first; `origin`/`sourceId` name where it came from. A hit on a clustered entry's
508
657
  * aggregate circle reports `origin: 'cluster'` and carries MapLibre's `point_count`/`cluster_id`
509
658
  * properties; a `kind: 'heatmap'` layer is never hit-tested, because MapLibre returns no features
510
- * for a density surface.
659
+ * for a density surface. A hit on a choropleth feature without a numeric `field` value reports
660
+ * `noData: true` when `choropleth.noData` is configured; the key is absent otherwise. A cluster
661
+ * hit also eases the camera into the cluster when its entry sets `cluster.zoomOnClick`.
511
662
  * @event lr-map-view-change - Fired once each time the camera settles after a user gesture (drag,
512
- * wheel, touch, keyboard, box zoom or a standard peer navigation button) or a `fitBounds()` call,
513
- * carrying the immutable `detail: { center, zoom, source }` (`LyraMapViewChangeDetail`). The
514
- * element has already written that camera into `center` and `zoom`, so it never resets it on its
515
- * next update, and a host mirroring camera state assigns the detail back, at any later time,
516
- * without moving the map. `source` is `'user'` or `'fit'`. Assigning `center`/`zoom` reconciles
517
- * without emitting it, so a controlled host cannot loop, and camera moves made directly through
518
- * `map` are not reported.
663
+ * wheel, touch, keyboard, box zoom or a standard peer navigation button), a `fitBounds()` or
664
+ * `fitToData()` call, or a `flyTo()`/`easeTo()`/`jumpTo()` call, carrying the immutable
665
+ * `detail: { center, zoom, source, bounds? }` (`LyraMapViewChangeDetail`). The element has
666
+ * already written that camera into `center` and `zoom`, so it never resets it on its next
667
+ * update, and a host mirroring camera state assigns the detail back, at any later time, without
668
+ * moving the map. `source` is `'user'`, `'fit'` or `'command'`; `bounds` is the visible
669
+ * `[[west, south], [east, north]]` box inside `cameraPadding`. Assigning `center`/`zoom`
670
+ * reconciles without emitting it, so a controlled host cannot loop, and camera moves made
671
+ * directly through `map` are not reported.
672
+ * @event lr-map-move - Fired at most once per animation frame while the camera moves, whatever
673
+ * moves it (a gesture, an animation, a camera command, a `center`/`zoom` assignment, a fit or a
674
+ * move made directly through `map`), and once more when the move ends, carrying the immutable
675
+ * `detail: { center, zoom, bounds? }` (`LyraMapMoveDetail`). It reports the camera as it is, not
676
+ * a settled intent: use `lr-map-view-change` to learn where the camera came to rest, and this
677
+ * event to keep an overlay glued to the map while it travels (pair it with `project()`).
519
678
  * @csspart base - The non-semantic map wrapper. It exposes `aria-busy="true"` while the optional
520
679
  * map library loads and contains ordinary, non-live localized loading text.
680
+ * @csspart configuration-error - Localized control or URL configuration feedback.
681
+ * @csspart geolocate - Native user-activated geolocation button.
521
682
  * @csspart container - The MapLibre container. Its generated canvas is the actual focusable map
522
683
  * region and receives the host-first accessible name and effective locale.
684
+ * @slot anchor - Content placed at `anchorLngLat`: above the point, flipped below near the top edge
685
+ * and kept inside the map, following the point through camera moves and hidden while the point
686
+ * is off screen. The element only positions it (`part="anchor"` supplies a default surface);
687
+ * the slotted content owns its semantics, close control and focus.
688
+ * @csspart anchor - The positioned wrapper of the `anchor` slot.
523
689
  * @slot legend - Custom legend content, rendered inside the legend panel's own layout so it stays
524
690
  * positioned with the map instead of floating beside it. Slotted content is never made
525
691
  * interactive by `legendInteractive`, which only reaches rows projected from `legend`.
@@ -554,6 +720,9 @@ readonly sourceId:string|undefined;}>;}
554
720
  * @csspart legend-gradient - The continuous ramp bar rendered from `legendGradient`.
555
721
  * @csspart legend-lo - The low endpoint caption of the `legendGradient` bar (mirrors `lr-heatmap`).
556
722
  * @csspart legend-hi - The high endpoint caption of the `legendGradient` bar (mirrors `lr-heatmap`).
723
+ * @csspart legend-ticks - The row of labelled marks under the gradient bar, when ticks are shown.
724
+ * @csspart legend-tick - One labelled mark under the gradient bar, positioned at its value.
725
+ * @csspart legend-derived - The swatch list `choroplethLegend` derives (step bands, no data).
557
726
  * @csspart legend-limit - Visible localized summary when legend input is bounded or shortened.
558
727
  * @csspart marker - A MapLibre-generated marker, with a 24px minimum target in both axes even
559
728
  * when a peer/custom marker has no intrinsic content size.
@@ -562,7 +731,7 @@ readonly sourceId:string|undefined;}>;}
562
731
  * @csspart popup-close-button - The MapLibre-generated button that closes an open marker popup.
563
732
  * @csspart attribution - MapLibre-generated map attribution.
564
733
  * @csspart attribution-toggle - MapLibre's compact-attribution disclosure control with a decorative information glyph.
565
- * @csspart navigation - Standard peer NavigationControl group, when added through the map getter.
734
+ * @csspart navigation - Standard peer NavigationControl group, added through `controls` or the map getter.
566
735
  * @csspart zoom-in - Peer zoom-in button with a localized accessible name and tokenized target.
567
736
  * @csspart zoom-out - Peer zoom-out button.
568
737
  * @csspart compass - Peer compass/reset-north button; its glyph retains the peer's bearing rotation.
@@ -613,7 +782,7 @@ export declare class LyraMap extends LyraElement<LyraMapEventMap>{protected stat
613
782
  /** MapLibre features and admitted marker snapshots carry opaque peer values that the generic
614
783
  * event-detail snapshotter must not walk. The marker is already a frozen canonical record; its
615
784
  * `unsafeHtml` value therefore reaches both Popup and activation consumers by identity. */
616
- protected static readonly identityEventDetailProperties:Readonly<{'lr-map-click':readonly string[];'lr-map-marker-activate':readonly string[];}>;protected static readonly ownedCollectionProperties:readonly string[];
785
+ protected static readonly identityEventDetailProperties:Readonly<{'lr-map-click':readonly string[];'lr-map-feature-enter':readonly string[];'lr-map-feature-leave':readonly string[];'lr-map-contextmenu':readonly string[];'lr-map-pick':readonly string[];'lr-map-marker-activate':readonly string[];}>;protected static readonly ownedCollectionProperties:readonly string[];
617
786
  /** The retained raw values are opaque after their schema projections below admit them. */
618
787
  protected static readonly identityCollectionProperties:readonly string[];protected static readonly identityCollectionObjectProperties:readonly string[];static styles:import("lit").CSSResultGroup[];private readonly hostDescription;
619
788
  /** Starts the shared optional-peer import without constructing a map. Returns false when the
@@ -624,12 +793,39 @@ static preload(engine?:LyraMapEngine):Promise<boolean>;constructor();
624
793
  * a user gesture or `fitBounds()`, it holds that camera (see `lr-map-view-change`), so a map
625
794
  * rebuilt after a reconnect opens where the user left it. Assigning a value the map already
626
795
  * shows moves nothing; an assignment that interrupts an animation or gesture applies `zoom`
627
- * too, so the camera never keeps a half-finished axis. Re-assigning the identical array is not a
628
- * new request, even after a gesture or fit. */
629
- get center():readonly[number,number];set center(value:readonly[number,number]);private _center;
796
+ * too, so the camera never keeps a half-finished axis.
797
+ *
798
+ * Compared by value against the last value assigned: a new array holding the same two numbers
799
+ * is not a new request, even after a gesture, fit or camera command, so a framework that
800
+ * rebuilds an equal array on every render never pulls the map back over the user's pan. A
801
+ * different value still moves the camera; `jumpTo()` is the explicit way to re-centre. */
802
+ get center():readonly[number,number];set center(value:readonly[number,number]);private assignedCenter;private hasAssignedCenter;private _center;
630
803
  /** Initial and controlled map zoom level. Tracks the settled camera and reconciles the same way
631
- * as `center`. */
632
- zoom:number;private pendingFit?;private readonly fitToken;private semanticsStale;private markerSemanticsStale;private geoJsonRefreshRequested;private refreshingGeoJson;private reflectedCamera?;private boxZoomSettling;private writingCamera;
804
+ * as `center`. Clamped into the zoom limits (`minZoom`/`maxZoom`, `[0, 22]` by default). */
805
+ zoom:number;
806
+ /**
807
+ * Lowest zoom level the camera may reach, in `[0, 24]`. Unset leaves the engine's own floor, `0`.
808
+ * Forwarded to the engine at construction and live: gestures, `zoom`, `fitBounds()`,
809
+ * `fitToData()`, the URL `hash` and the camera commands all stay inside the limits. Raising it
810
+ * above the camera moves the camera to the limit and writes the clamped value into `zoom`,
811
+ * without an `lr-map-view-change`. A non-finite value counts as unset; when both limits are set
812
+ * and `minZoom` exceeds `maxZoom`, both are ignored (with a dev-mode warning).
813
+ */
814
+ minZoom?:number;
815
+ /**
816
+ * Highest zoom level the camera may reach, in `[0, 24]`. Unset leaves the engine's own ceiling,
817
+ * `22` (or `minZoom` when that is higher). Forwarded and enforced exactly like `minZoom`; a
818
+ * `fitBounds()`/`fitToData()` `maxZoom` above it is lowered to it.
819
+ */
820
+ maxZoom?:number;private get zoomLimitsRequested();private get zoomLimits();
821
+ /** Screen padding kept clear on each side of the viewport: the camera centre, and every fit, are
822
+ * measured inside it, so a panel or toolbar covering part of the map does not hide what the map
823
+ * frames. Sides are physical (not logical) pixels; an omitted side is `0`, and a negative or
824
+ * non-finite side counts as `0`. It is applied persistently, so it also shapes the `bounds`
825
+ * that `lr-map-view-change` and `lr-map-move` report (the visible box inside the padding).
826
+ * Changing it keeps the geographic centre fixed and shifts the picture; it is not reported as a
827
+ * camera change. Applied to the engine once it exists. */
828
+ cameraPadding?:LyraMapPadding;private appliedPadding;private pendingCommand?;private readonly commandToken;private reflectingCamera;private zoomLimitRevision;private cameraUpdatePending;private deferredCameraWork;private moveFrame?;private pendingFit?;private readonly fitToken;private semanticsStale;private markerSemanticsStale;private geoJsonRefreshRequested;private refreshingGeoJson;private reflectedCamera?;private boxZoomSettling;private writingCamera;
633
829
  /** Whether the constructed peer repeats the world horizontally. `undefined` leaves MapLibre's
634
830
  * own default in force. Construction-only; set before the map is created. */
635
831
  renderWorldCopies?:boolean;
@@ -641,13 +837,90 @@ renderWorldCopies?:boolean;
641
837
  * has been observed to leave `getZoom()` returning `null` permanently, after which every frame
642
838
  * throws from inside the peer's own matrix math and the canvas never paints again -- a blank map,
643
839
  * with nothing thrown at the call site to attribute it to. Going through this property applies
644
- * the same call, then checks the camera survived it and reverts if it did not, so the worst case
645
- * is an unconstrained map plus a dev-mode warning rather than a blank one.
840
+ * the same call, then checks the camera survived it. A camera below zoom 1 (fractional zoom
841
+ * included) is tolerated: a rejected box is retried once from zoom 1 and the zoom and centre
842
+ * that were showing are restored, so the limit applies to a map that currently shows the whole
843
+ * world. If the box still cannot be applied the constraint is dropped, so the worst case is an
844
+ * unconstrained map plus a dev-mode warning rather than a blank one.
646
845
  */
647
846
  maxBounds:LyraMapBounds|null;
847
+ /**
848
+ * Standard controls to add, `{ navigation, scale, geolocate, attribution }`, each `true`, `false`
849
+ * or an options object with a `position` corner (and, for `scale`, a `unit` of `'metric'` or `'imperial'`). The
850
+ * element adds the control once the map exists, moves it when only its corner changes, replaces
851
+ * it for other option changes and removes
852
+ * it when it is dropped, instead of an application importing the engine's control classes and
853
+ * calling `map.addControl()` itself.
854
+ *
855
+ * The controls are the engine's own, styled with Lyra tokens and exposing the `navigation`,
856
+ * `zoom-in`, `zoom-out`, `compass` and `scale` parts. Their button names come from the `zoomIn`,
857
+ * `zoomOut` and `mapResetNorth` strings and are re-applied when `lang`, `locale` or `strings`
858
+ * change, so they follow a live language switch. Geolocation starts only from user activation;
859
+ * failures emit sanitized codes and localized feedback. Attribution is enabled by default;
860
+ * explicit false disables it. Custom attribution accepts escaped text or guarded HTTP(S) links;
861
+ * invalid custom credits leave provider attribution visible. The visual and keyboard order within
862
+ * each corner is navigation, scale, geolocate, attribution, regardless of import completion order.
863
+ * A requested control
864
+ * whose code cannot load leaves localized feedback while the map remains usable.
865
+ */
866
+ controls?:Readonly<LyraMapControls>;
867
+ /** URL fragment ownership of the camera. With the default `hashFormat`, `true` owns the named
868
+ * field `map` (`#map=zoom/lat/lng[/bearing[/pitch]]`) and a string owns that field name; unset
869
+ * does not read or write the URL. Other `&`-separated fragment tokens are preserved.
870
+ *
871
+ * A valid camera in the URL when the map is constructed takes precedence over a queued initial
872
+ * fit. An absent, unrelated or malformed fragment does not suppress the fit: only a valid camera
873
+ * in the owned field or token counts. A malformed owned value is left untouched, and the camera
874
+ * is not written over it until navigation replaces it. Disabling leaves the URL intact. Two
875
+ * connected maps cannot own the same window/key; the first owner keeps it.
876
+ * Any value other than false, null or undefined loads the URL ownership runtime on demand. The
877
+ * map is constructed once it has loaded, and URL feedback appears then; whenIdle() covers it.
878
+ * If that runtime cannot be loaded, the URL is left untouched with localized control feedback. */
879
+ hash:boolean|string;
880
+ /** Fragment form that `hash` reads and writes. `'named'` (default) uses a `key=` field.
881
+ * `'unnamed'` uses the raw engine's unnamed form, `#zoom/lat/lng[/bearing[/pitch]]`, so existing
882
+ * deep links keep working: the camera is the leading token without `=`, named fields after it
883
+ * are preserved, and a fragment made only of named fields gets the camera prepended. `'unnamed'`
884
+ * takes `hash = true`; a string `hash` is invalid and shows the localized hash feedback. Two
885
+ * maps cannot own the unnamed token of one window, but one may own it beside named owners. */
886
+ hashFormat:LyraMapHashFormat;private get hashOption();private hashOwner?;private hashRuntimePending;private hashRuntimeFailed;private applyingHash;private hashIssue?;private controlIssue?;private pendingHashIssue?;private pendingControlIssue;private setControlIssue;private hashRequested;private hashRuntime;private featureLoads;private trackFeatureLoad;private syncHash;private applyHash;private writeHash;
887
+ /**
888
+ * Where the content slotted into `anchor` sits, `[longitude, latitude]`, or `null`/`undefined`
889
+ * for none. The slotted content (a feature's details, say) is placed above the point, flipped
890
+ * below it near the top edge and kept inside the map, follows the point as the camera moves and
891
+ * is hidden while the point is off screen or the map is not ready. Use the `lngLat` of an
892
+ * `lr-map-click` to anchor content to a clicked feature. See the `anchor` slot. The first
893
+ * coordinate loads the anchor placement runtime on demand; placement, already asynchronous,
894
+ * follows once it has loaded, and the anchor stays hidden if it cannot be loaded.
895
+ */
896
+ anchorLngLat?:readonly[number,number]|null;
897
+ /** Additional clipping boundaries intersected with map allocation. Accepts a connected Element
898
+ * or a dense array of at most32 connected same-document Elements. An empty array adds none.
899
+ * Invalid boundaries hide the anchor until corrected; caller arrays are never retained or mutated. */
900
+ anchorBoundary?:LyraMapAnchorBoundary;
901
+ /** Nonnegative finite CSS-pixel logical insets inside the map allocation, in addition to the
902
+ * existing8px placement padding. Missing edges default0; explicit invalid values/accessors hide
903
+ * the anchor. Oversized valid edges collapse available allocation. Caller data is not mutated. */
904
+ anchorSafeArea?:LyraMapAnchorSafeArea;
905
+ /** Adds a localized close action and nonmodal Escape ownership. Opening never moves focus. */
906
+ anchorClosable:boolean;
907
+ /** Defers native construction until visible (default), browser idle time (`idle`), immediate
908
+ * admission (`eager`), or the first user input on the element (`interaction`): a pointer press,
909
+ * touch, wheel, key press or click anywhere on it. Until then an `interaction` map shows its
910
+ * placeholder with a localized `initialization-activate` button, so keyboard and assistive
911
+ * technology users can start it too; focus moves to the map once it has been built from that
912
+ * button. `whenIdle()` and `whenStyleReady()` wait for construction, so they settle only after
913
+ * that input (or `initializationDelay`). Changing this before construction reschedules
914
+ * admission; a live map is retained. */
915
+ initialization:LyraMapInitialization;
916
+ /** With `initialization="interaction"`, also constructs the map this many milliseconds after it
917
+ * connected when no input arrived first. Unset (default) waits for input only; other modes ignore
918
+ * it. A negative or non-finite value counts as unset. */
919
+ initializationDelay?:number;private get safeInitializationDelay();private get initializationMode();private get awaitingActivation();private _mapStyle?;private _mapStyleSource?;private _mapStyleRevision;
648
920
  /** Required MapLibre style URL or peer-neutral style specification. No provider is contacted
649
- * unless a consumer assigns this property. */
650
- mapStyle?:Readonly<LyraMapStyleSpecification> |string;private _legend;private _legendSource?;private _legendProjection;private _legendGrouped;
921
+ * unless a consumer assigns this property. Generated text accepts a nonempty glyph URL or
922
+ * native font-faces with at most 64 families, 256 faces per family and 64 Unicode ranges per face. */
923
+ get mapStyle():Readonly<LyraMapStyleSpecification> |string|undefined;set mapStyle(value:Readonly<LyraMapStyleSpecification> |string|undefined);private _legend;private _legendSource?;private _legendProjection;private _legendGrouped;
651
924
  /** Immutable, bounded entries rendered in the optional map legend. A required pattern keeps
652
925
  * category identity available when authored colors collapse or are unavailable. */
653
926
  get legend():readonly LyraMapLegendEntry[];set legend(value:readonly LyraMapLegendEntry[]);private hasLegendSlot;private hasLegendStartSlot;private probeLegendSlot;private _legendGradient;private _legendGradientSource?;private legendIsLine;
@@ -670,7 +943,30 @@ get legendGradient():readonly(readonly[number,string])[];set legendGradient(valu
670
943
  /** Overrides the low endpoint's caption; defaults to the lowest stop value, locale-formatted. */
671
944
  legendGradientLoLabel:string|null;
672
945
  /** Overrides the high endpoint's caption; defaults to the highest stop value, locale-formatted. */
673
- legendGradientHiLabel:string|null;
946
+ legendGradientHiLabel:string|null;private _legendGradientTicks;private _legendGradientTicksSource?;
947
+ /**
948
+ * Labelled marks under the legend gradient bar, `[{ value, label? }]` or bare numbers, at their
949
+ * position on the ramp. Values are in the data's own units, so a logarithmic ramp keeps its marks
950
+ * at the true data positions. Bounded to 16, sorted ascending and de-duplicated; a mark outside
951
+ * the ramp's lowest and highest stop is not drawn. Without a `label` a mark reads the
952
+ * locale-formatted value. Marks mirror under RTL together with the bar.
953
+ *
954
+ * Ticks accompany `legendGradient` or the ramp `choroplethLegend` derives; without a gradient they
955
+ * render nothing. With `choroplethLegend`, assigning ticks replaces the derived marks (the
956
+ * interior stop values), and assigning an empty array draws none.
957
+ */
958
+ get legendGradientTicks():readonly LyraMapLegendGradientTick[];set legendGradientTicks(value:readonly(number|LyraMapLegendGradientTick)[]);private _legendGradientTicksAssigned;
959
+ /**
960
+ * Derives the legend from `choropleth`. A `'step'` ramp renders one swatch row per band
961
+ * (`< 10`, `10 – 20`, `≥ 50`, numbers formatted for the locale), because a continuous bar would
962
+ * misdescribe discrete bands; a `'linear'` or `'logarithmic'` ramp renders the gradient bar from
963
+ * `choropleth.stops` with its interior stops as ticks. When `choropleth.noData` is set, a
964
+ * hatched swatch captioned with its `label` (or the localized "No data") joins the key.
965
+ *
966
+ * An explicit `legendGradient` replaces the derived bar and an explicit `legend` renders ahead
967
+ * of the derived rows, so a key can still be authored by hand. Default `false`.
968
+ */
969
+ choroplethLegend:boolean;private derivedLegend;
674
970
  /** Counts from the latest bounded legend normalization. `truncated` covers omitted rows or
675
971
  * shortened labels; the returned record is frozen and never aliases caller input. Read-only --
676
972
  * derived from the live `legend` normalization, never assignable. The setter is a documented
@@ -771,25 +1067,120 @@ get markersTruncated():boolean;
771
1067
  * be; `kind: 'heatmap'` replaces the geometry split with MapLibre's own `heatmap` layer. Neither
772
1068
  * changes an entry that sets neither. `point` adds categorical circle paint and bounded SVG path
773
1069
  * icons to ordinary or clustered points on the same source; `line` adds numeric route paint.
1070
+ * Explicit vector/raster/image/canvas entries add native external sources (up to 32); vector
1071
+ * entries name sourceLayer and line/circle/fill/symbol render families. HTTP(S) URL templates
1072
+ * use the engine transport contract and its CORS/provider behavior, without library response
1073
+ * byte ceilings. Image/canvas corners are TL/TR/BR/BL longitude/latitude pairs. Same-source
1074
+ * paint changes retain the source; supported native image/canvas setters retain update identity.
1075
+ * Optional text labels require a glyph-capable style and support bounded native expressions.
774
1076
  */
775
- dataLayers:readonly LyraMapGeoJsonDataLayer[];private _canonicalChoroplethSource;private _canonicalChoropleth;private _canonicalDataLayersSource;private _canonicalDataLayers;private _canonicalMarkersSource;private _canonicalMarkers;private get canonicalChoropleth();private get canonicalDataLayers();private get canonicalMarkers();
1077
+ dataLayers:readonly LyraMapDataLayer[];
1078
+ /** Immutable native source/layer descriptors with stable IDs. Up to 128 sources and 128 layers
1079
+ * are snapshotted as bounded plain data (50,000 values, 10,000 entries per container and 1 MiB of
1080
+ * text in total); a rejected assignment shows the localized initialization failure. Canvas
1081
+ * sources retain only source.canvas by identity. A `geojson` source's `Feature` or
1082
+ * `FeatureCollection` `data` object is retained by identity instead, outside that budget, so
1083
+ * large data keeps native paint and layout expressions, filters, `minzoom`/`maxzoom`, symbol
1084
+ * layers, feature state and `before` ordering. Assigning a new data object updates the native
1085
+ * source in place (`setData`), keeping its layers and retiring its feature state; mutating the
1086
+ * retained object is not observed, and `updateSourceData()` forwards an incremental diff.
1087
+ * IDs must not collide with basemap/generated resources. Images, sources and layers replay in
1088
+ * dependency order after style changes; before targets refer to native layer IDs. A missing
1089
+ * target appends the layer. Hits skip a layer outside its zoom range, hidden, or with every
1090
+ * opacity known to be `0`. Direct mutation of registered peer IDs is unsupported.
1091
+ *
1092
+ * A layer's `source` may name a source of the basemap style itself (for example its vector
1093
+ * tiles, with a `source-layer`), so an application can restyle or highlight basemap features
1094
+ * without registering a copy of that source; the layer is restored after every style change
1095
+ * that still defines the source. Color-valued `paint` strings may be theme tokens (`var(--…)`),
1096
+ * `currentColor` or CSS color functions (`oklch()`, `color-mix()`, …): they resolve against this
1097
+ * host, convert to sRGB for the engine, and re-resolve when its theme changes. */
1098
+ overlays:LyraMapOverlays;
1099
+ /** Immutable portable atlas images, prepared before registered symbol layers. Up to 1,024 stable
1100
+ * IDs accept sanitized inline SVG or CORS-readable SVG/PNG/JPEG/WebP URLs, within an aggregate
1101
+ * budget of 16,777,216 backing pixels and 8 MiB of encoded input. Explicit width/height
1102
+ * describe bounded backing pixels; pixelRatio changes logical size; `sdf: true` registers a
1103
+ * signed-distance-field image that `icon-color` recolors. Unchanged descriptors reuse
1104
+ * prepared pixels across updates and styles. Reassign to update/remove: an added, changed or
1105
+ * removed image is applied in place, without removing or re-adding the layers that use it.
1106
+ * Preparation failures reject readiness and show the localized initialization fallback. */
1107
+ images:readonly LyraMapImage[];
1108
+ /** Lazy atlas images: called with an image ID that a style layer needs and that neither
1109
+ * `images` nor the basemap sprite provides, through the engine's missing-image hook. Return (or
1110
+ * resolve to) an `images`-style descriptor with that same `id`, or nothing to leave it missing.
1111
+ * The descriptor is sanitized and rasterized like an `images` entry and shares its count, pixel
1112
+ * and byte budget; an image over budget, invalid or rejected stays missing (dev-mode warning)
1113
+ * without failing the map. Each ID is asked once per provider: its pixels are kept and re-added
1114
+ * after a `mapStyle` swap. Assigning `images` an ID the provider supplied hands it over to
1115
+ * `images`. Replacing or clearing the provider removes the images it supplied. The engine waits
1116
+ * for the provider before laying out the symbols that need the image, so `whenIdle()` covers it. */
1117
+ imageProvider?:LyraMapImageProvider;
1118
+ /** Immutable paint/layout overrides for existing basemap layers only. Each entry names one layer
1119
+ * by `layerId`, or selects every current style layer whose `source`, `sourceLayer` and
1120
+ * `layerType` match the fields it gives; an explicit id wins over a selector, and an earlier
1121
+ * selector over a later one, and selectors re-match after each style swap (`styleLayers` lists
1122
+ * the candidates). Generated and registered layers own their own paint. Removing an override
1123
+ * restores its original value; changing mapStyle captures a new baseline. Color-valued strings
1124
+ * that are CSS var() tokens, currentColor or CSS color functions resolve against this host and
1125
+ * update with its theme. Up to 64 entries and 32 properties per kind are admitted, and a
1126
+ * selector may expand to at most 1,024 layers in total. */
1127
+ styleOverrides:readonly LyraMapStyleOverride[];private _canonicalChoroplethSource;private _canonicalChoropleth;private _canonicalDataLayersSource;private _canonicalDataLayersBase;private _canonicalDataLayersOrigin;private _canonicalExternalLayers;private invalidDataLayerModel;private dataLayerIssue;private pendingDataLayerIssue;private setDataLayerIssue;private committedDataLayers;private committedExternalLayers;private groupOrderActive;private readonly plannedDataLayerIds;private _canonicalDataLayers;private _canonicalMarkersSource;private _canonicalMarkers;private get canonicalChoropleth();private get canonicalDataLayers();private get canonicalMarkers();
776
1128
  /** Accessible name for MapLibre's focusable canvas; a host `aria-label` wins. Defaults to the
777
1129
  * localized `map` message, which an explicit empty string suppresses. */
778
1130
  label?:string;
779
1131
  /** Optional engine. Set before connecting; changes take effect after disconnect/reconnect.
780
1132
  * `modular` loads `@aceshooting/lyra-map`; `maplibre` explicitly selects the full `maplibre-gl`
781
1133
  * peer. No engine is substituted when the selected peer is unavailable. */
782
- engine:LyraMapEngine;private loading;private failure?;private readonly announcements;private loadLibrary;private visible;private intersectionObserver?;private containerEl?;private _map?;private _styleLoaded;private _appliedChoroplethSourceId?;private _appliedFillLayerId?;private _appliedDataLayerIds;private _appliedDataLayerShapes;private _appliedGeoJson;private _nextDataLayerId;private nextPointIconId;private appliedPointPaint;private appliedPointMuting;private appliedPointIcons;private _maplibreModule?;private _webglReady;private _markerInstances;private _markerLabels;private _markerPopupIds;private readonly markerActivationDetails;private _configuredPopups;private _nextPopupId;private peerChromeObserver?;private observedPeerContainer?;private mapResizeObserver?;private observedMapContainer?;private _markerColors;private _markerSources;private _connectGeneration;private _styleGeneration;private featureGeneration;private featureAbort?;private preparingFeatures;private preparedFeatureSignature?;private pendingMapLoad;private rebuildGeneratedLayers;
1134
+ engine:LyraMapEngine;private loading;private failure?;private readonly announcements;private loadLibrary;private visible;private constructionScheduler?;private constructionMode;private constructionDelay?;private containerEl?;private anchorEl?;private anchorBoundaryEl?;private _map?;private _styleLoaded;private _appliedChoroplethSourceId?;private _appliedFillLayerId?;private _appliedDataLayerIds;private _appliedDataLayerShapes;private _appliedGeoJson;private _nextDataLayerId;private nextPointIconId;private appliedPointPaint;private appliedPointMuting;private appliedPointIcons;private _maplibreModule?;private _webglReady;private _markerInstances;private _markerLabels;private _markerPopupIds;private readonly markerActivationDetails;private _configuredPopups;private _nextPopupId;private peerChromeObserver?;private observedPeerContainer?;private mapResizeObserver?;private observedMapContainer?;private _markerColors;private _markerSources;private _connectGeneration;private _styleGeneration;private readonly readiness;private ownedFeatures?;private externalFeatures?;private externalFeatureWorkStarted;private externalIdStyle;private externalIdCounter;private readonly externalSourceIds;private readonly appliedGeoLabels;private readonly peerEvents;private optionalFeatureWorkStarted;
1135
+ /** Explicit basemap layer opt-in; all other basemap features remain noninteractive. Each entry
1136
+ * names one layer by `layerId`, or selects every current style layer whose `source`,
1137
+ * `sourceLayer` and `layerType` match the fields it gives (for example
1138
+ * `{ sourceLayer: 'poi', layerType: 'symbol' }`); an explicit id wins over a selector, and an
1139
+ * earlier selector over a later one. Selectors re-match after each style swap; `styleLayers`
1140
+ * lists what they match against. */
1141
+ interactiveBasemapLayers:readonly LyraMapBasemapInteraction[];
1142
+ /** Pick coordinates by clicking the map or using the localized center-pick button. */
1143
+ pickMode:boolean;
1144
+ /** Arms bounded line or polygon drawing. The first accepted vertex starts the session.
1145
+ * Pick mode cancels drawing without automatic resumption. Completion/cancellation reset to none.
1146
+ * Drawing preserves pan/zoom and temporarily owns double-click zoom. Maximum 512 vertices.
1147
+ * Accepted edits update desired state synchronously; whenIdle() covers temporary resource preparation.
1148
+ * Arming loads the drawing runtime on demand: the controls render at once, and the session starts
1149
+ * once that runtime has loaded and the style is ready. whenIdle() also covers that load. */
1150
+ drawMode:LyraMapDrawingMode;
1151
+ /** Shows localized on-map measurement labels while drawing or editing: each segment's length,
1152
+ * a polygon's closing segment and its area at the centroid, and a line's total length beside its
1153
+ * last vertex. Lengths and areas are great-circle measurements, as in the drawing metrics,
1154
+ * formatted in metric units with the component locale. The same total also appears, for
1155
+ * assistive technology, beside the vertex count. Default `false`. */
1156
+ drawingMeasurements:boolean;private drawingIssue?;private drawingRevision;private drawingController?;private drawingLoad?;private suppressDrawingClick;private drawingResetting;private drawingEpoch;private get drawingPending();private get drawingWork();private featureStateIssue;private interactionBlocked;private readonly stateRouter;private featureStates?;private featureStateLoad?;private stateRequested;private stateRoutingAvailable;private stateRoutes;private readonly sourceIdentities;private interactions;private interactionGeneration;private interactionQuery;private queryingMap;private hovered?;private readonly mapCursor;private pointerCleanup?;private interactionObserver?;private featureWork;private finishFeatureWork?;private featureGeneration;private featureAbort?;private preparingFeatures;private preparedFeatureSignature?;private pendingMapLoad;private mapLoadEmitted;private rebuildGeneratedLayers;
783
1157
  /** The underlying runtime `maplibregl.Map`, declared through Lyra's peer-neutral common-method
784
1158
  * subset so consumers do not acquire a mandatory `maplibre-gl` type dependency. Consumers that
785
1159
  * install the optional peer may explicitly narrow this value to its full `Map` type. */
786
- get map():LyraMapInstance|undefined;private pushGeoJson;
787
- /** Forwards a caller-authored diff to an applied dataLayers or choropleth public sourceId.
788
- * Returns false before the source is ready, after disconnect, or if the engine lacks updateData.
1160
+ get map():LyraMapInstance|undefined;
1161
+ /**
1162
+ * Resolves when the current connection/style has restored generated and registered overlays,
1163
+ * images and basemap overrides, including asynchronous image and feature preparation. Callable while the connected map is still loading or
1164
+ * waiting to become visible. Rejects with AbortError when disconnected or superseded, and
1165
+ * MapReadinessError on a current load/preparation failure. A completed promise describes only
1166
+ * that style; call again after assigning a new mapStyle.
1167
+ */
1168
+ whenStyleReady():Promise<void>;
1169
+ /**
1170
+ * Resolves when the current style, camera, sources and component preparation are idle. Each
1171
+ * call checks current work; the first idle is not reused after a later update. Rejects with
1172
+ * AbortError on disconnect/style replacement and MapReadinessError on a current peer or
1173
+ * preparation failure. Peers without a loaded() probe require a subsequent idle event.
1174
+ */
1175
+ whenIdle():Promise<void>;private pushGeoJson;
1176
+ /** Forwards a caller-authored diff to an applied dataLayers or choropleth public sourceId, or to
1177
+ * an applied `overlays` GeoJSON source ID. Returns false before the source is ready, after
1178
+ * disconnect, or if the engine lacks updateData. An overlay source replays its assigned `data`
1179
+ * after a `mapStyle` swap, so fold the diff into that data before the next swap or assignment.
789
1180
  * The diff is passed through without cloning; the caller owns feature IDs and validity. This
790
1181
  * route bypasses the automatic 10,000-feature comparison ceiling. It does not rewrite public
791
1182
  * properties; reassigning controlled GeoJSON later replaces this imperative state in full. */
792
- updateSourceData(sourceId:string,diff:LyraMapSourceDataDiff):boolean;private get safeMaxBounds();private applyMaxBounds;private get safeZoom();private get safeCenter();
1183
+ updateSourceData(sourceId:string,diff:LyraMapSourceDataDiff):boolean;private get safeMaxBounds();private applyMaxBounds;private constrainTo;private applyZoomLimits;private syncImageProvider;private constrainFromWholeZoom;private get safeZoom();private get safeCenter();
793
1184
  /**
794
1185
  * Frames `bounds`, `[[west, south], [east, north]]`, in the viewport: the usual way to show every
795
1186
  * current marker or a selected region whenever the data set changes.
@@ -824,10 +1215,126 @@ updateSourceData(sourceId:string,diff:LyraMapSourceDataDiff):boolean;private get
824
1215
  * Returns `false`, without moving or queueing anything, when `bounds` is unusable or the loaded
825
1216
  * peer cannot fit a box, and `true` once the fit is running or queued.
826
1217
  */
827
- fitBounds(bounds:LyraMapBounds,options?:LyraMapFitBoundsOptions):boolean;private applyFit;private applyPendingFit;private reflectCamera;private pushCamera;private writeCamera;connectedCallback():void;disconnectedCallback():void;private failureMessage;private failInitialization;private scheduleStyleRequiredFailure;private disposeMap;adoptedCallback():void;private tryConstructMap;requestUpdate(...args:Parameters<LyraElement['requestUpdate']>):void;protected updated(changed:PropertyValues):void;protected willUpdate(changed:PropertyValues):void;private paintThemeKey?;private paintThemeSources?;private paintThemeTokens;private syncPaintTheme;private refreshThemePaint;private cancelFeaturePreparation;private generatedFeatureRequirements;private reconcileGeneratedLayers;private appliedChoroplethPaintKey?;private applyChoropleth;private choroplethColorExpression;private resolveChoroplethSourceId;private removeChoropleth;private readonly appliedLayerPaintKeys;private applyDataLayers;private applyDataLayerRendering;private paintDataLayer;private applyGeometryLayers;private paintGeometryLayers;private lineColor;private mutedPointOpacity;private paintPoints;private pointIconColor;private removePointIcons;private applyPointIcons;private paintPointIcons;private clusterColorExpression;private applyClusterLayers;private paintClusterLayers;private applyHeatmapLayer;private paintHeatmapLayer;private heatmapColorExpression;private styleProvidesGlyphs;private resolveDataLayerSourceId;private removeDataLayer;private applyMarkers;private readonly configuredMarkerElements;private configureMarkerInteraction;private emitMarkerActivation;private get effectiveMapLabel();private popupId;private configurePopupSemantics;private stopObservingMapAllocation;private observeMapAllocation;private stopObservingPeerChrome;private peerControlsResizeObserver?;private peerControlsResizeFrame?;private schedulePeerControlInsets;private measurePeerControlInsets;private syncPeerChromeParts;private observePeerChrome;private syncPopupSemantics;private syncMapSemantics;private formatCount;private legendLimitText;private onLegendSlotChange;
1218
+ fitBounds(bounds:LyraMapBounds,options?:LyraMapFitBoundsOptions):boolean;private executeFit;private deferUntilCameraSettled;
1219
+ /**
1220
+ * Moves the camera with the engine's `flyTo`: a smooth, curved animation to `options`. The
1221
+ * resulting camera is written into `center` and `zoom` when it settles, and reported through
1222
+ * `lr-map-view-change` with `source: 'command'`, so declarative state stays the single source of
1223
+ * truth and the element's own reconciliation never moves the camera a second time.
1224
+ *
1225
+ * Under `prefers-reduced-motion: reduce` (or `data-lr-motion="reduce"`) the move is a jump.
1226
+ * Callable before the map exists: the most recent such request, or `fitBounds()` call, is queued
1227
+ * and applied without animation right after construction, unless `center` or `zoom` has been
1228
+ * given a different value since. A request made in the same tick as a `center`/`zoom` write
1229
+ * applies after that write.
1230
+ *
1231
+ * Every option is optional; an unusable one is ignored (see `LyraMapCameraOptions`). Returns
1232
+ * `false`, without moving or queueing anything, when no option is usable or the loaded engine
1233
+ * has no such command, and `true` once the move is running or queued.
1234
+ */
1235
+ flyTo(options:LyraMapCameraOptions):boolean;
1236
+ /** Like `flyTo()`, but with the engine's `easeTo`: a straight, eased animation. */
1237
+ easeTo(options:LyraMapCameraOptions):boolean;
1238
+ /**
1239
+ * Like `flyTo()`, but without animation: the camera is at `options` at once. This is the explicit
1240
+ * way to re-centre the map on a `center` the host already assigned (re-assigning an equal
1241
+ * `center` is a no-op).
1242
+ */
1243
+ jumpTo(options:LyraMapCameraOptions):boolean;private runCameraCommand;private executeCameraCommand;private applyCameraCommand;private applyPendingCommand;
1244
+ /**
1245
+ * Frames everything the map draws: `markers`, every `dataLayers` source and the `choropleth`,
1246
+ * measured from the geometry the element has already admitted rather than from the host's raw
1247
+ * values. Equivalent to `fitBounds()` of the union of their extents, with the same options,
1248
+ * `cameraPadding` and write-back, and `source: 'fit'`.
1249
+ *
1250
+ * `maxZoom` defaults to `16`, so a single marker does not zoom to the street; pass `maxZoom`
1251
+ * explicitly (a non-finite value for no ceiling) to change that. The extent is a plain
1252
+ * west-to-east span, so data on both sides of the antimeridian frames the long way round.
1253
+ *
1254
+ * Returns `false`, doing nothing, when the map draws no geometry at all, and otherwise what
1255
+ * `fitBounds()` returns. A `markers`/`dataLayers`/`choropleth` assignment made in the same tick
1256
+ * is already counted.
1257
+ */
1258
+ fitToData(options?:LyraMapFitBoundsOptions):boolean;
1259
+ /**
1260
+ * The position in the map's container, `[x, y]` CSS pixels from its top-left corner, of a
1261
+ * `[longitude, latitude]`: what an overlay needs to sit on a coordinate. Reads the camera as it
1262
+ * is now (so combine it with `lr-map-move` to follow a moving map), and is relative to the
1263
+ * container, not to `cameraPadding`. Returns `undefined` when the map does not exist yet, the
1264
+ * engine cannot project, or the input is not a finite pair.
1265
+ */
1266
+ project(lngLat:readonly[number,number]):LyraMapPoint|undefined;
1267
+ /**
1268
+ * The inverse of `project()`: the `[longitude, latitude]`, longitude wrapped into
1269
+ * `[-180, 180]`, under a container position `[x, y]` in CSS pixels. Returns `undefined` when the
1270
+ * map does not exist yet, the engine cannot unproject, or the input is not a finite pair.
1271
+ */
1272
+ unproject(point:LyraMapPoint):readonly[number,number]|undefined;private controlLifecycle?;private controlPeer?;private readonly scaleLabels;private controlLocale;private syncControls;private anchorController?;private anchorLoad?;private anchorSyncRequested;private exportController?;private exportIssue;private pendingExportIssue;private publishExportIssue;private reportExportFailure;private cancelImageExport;
1273
+ /** Exports a fresh current-style WebGL frame as PNG (default), JPEG or WebP. Attribution
1274
+ * defaults to true and includes all admitted source/provider and custom credits in a footer.
1275
+ * DOM controls, markers and anchored content are excluded. Rejects with a sanitized
1276
+ * LyraMapImageExportError code; disconnect or style replacement cancels the operation.
1277
+ * The first call loads the export runtime on demand; options are admitted synchronously
1278
+ * either way. If that runtime cannot be loaded, the call rejects with `capture-failed`. */
1279
+ exportImage(options?:LyraMapImageExportOptions):Promise<Blob>;private imageExportHost;
1280
+ /** Closes an actually placed anchor, restoring its prior focus only while it still owns focus.
1281
+ * Returns false without dispatch when already hidden, unplaced, inert or closed. */
1282
+ closeAnchor():boolean;
1283
+ /** Explicitly focuses the first eligible rendered anchor action. Returns false for a hidden,
1284
+ * stale, inert or not-yet-placed anchor, or when no eligible target exists. Never queues focus. */
1285
+ focusAnchor():boolean;private anchorRuntime;private syncAnchor;private scheduleAnchorSync;private onAnchorFocus;private onAnchorSlotChange;private anchorHost;private zoomIntoCluster;private clusterZoomToken;private applyCameraPadding;private readVisibleBounds;private scheduleMoveReport;private flushMoveReport;private cancelMoveReport;private reportMove;private applyFit;private applyPendingFit;private reflectCamera;private pushCamera;private writeCamera;connectedCallback():void;disconnectedCallback():void;private failureMessage;private failInitialization;private scheduleStyleRequiredFailure;private disposeMap;adoptedCallback():void;private tryConstructMap;private flushMapLoad;private beginStyleReadiness;requestUpdate(...args:Parameters<LyraElement['requestUpdate']>):void;private mapUpdateActive;protected performUpdate():void;protected updated(changed:PropertyValues):void;protected willUpdate(changed:PropertyValues):void;private paintThemeKey?;private paintThemeSources?;private paintThemeTokens;private syncPaintTheme;private readonly mapPaintBatch;private mapPaintBatchActive;private withMapPaintBatch;private removeMapLayer;private setMapPaint;private pendingDrawingTheme;private refreshThemePaint;private refreshThemePaintBatch;
1286
+ /**
1287
+ * Records bounded desired state for a currently restored, unambiguous logical source. `true`
1288
+ * means admission, not a native paint acknowledgement; `whenIdle()` covers application and
1289
+ * rejects with a sanitized error on failure. As with native failures, idle remains rejected
1290
+ * until a new style or reconnect; desired state remains available for retry. Vector targets require sourceLayer. Basemap
1291
+ * sources require interactiveBasemapLayers opt-in. Invalid or colliding targets return false.
1292
+ * Retained routing admits at most 256 logical sources and 1,048,576 copied source-descriptor characters;
1293
+ * exceeding either bound disables retained routing atomically while map interaction remains available.
1294
+ * The first write loads the feature-state runtime on demand. Until it has loaded this returns false
1295
+ * without retaining anything, and whenIdle() resolves only after the load, so await it and write
1296
+ * again; once loaded, admission is synchronous for every element. If the runtime cannot load,
1297
+ * localized feedback is shown and writes keep returning false until a new style or connection.
1298
+ */
1299
+ setFeatureState(target:LyraMapFeatureStateTarget,patch:LyraMapFeatureState):boolean;
1300
+ /** Returns frozen own-data desired state, never caller-owned or native state references. */
1301
+ getFeatureState(target:LyraMapFeatureStateTarget):LyraMapFeatureState|undefined;
1302
+ /** Records removal of owned keys only; admission and idle semantics match setFeatureState(). */
1303
+ removeFeatureState(target:LyraMapFeatureStateTarget,key?:string):boolean;private featureStateRuntime;private canWriteFeatureState;private flushFeatureState;private replayFeatureStates;private sourceToken;private basemapInteractionTargets;private _styleLayers;private _styleSources;
1304
+ /**
1305
+ * The layers of the current `mapStyle` as the engine loaded it, in paint order, before this
1306
+ * element added its own: `{ id, type, source?, sourceLayer? }`, frozen. Read it after
1307
+ * `lr-map-style-load` (or `whenStyleReady()`) to discover basemap layers for
1308
+ * `interactiveBasemapLayers`, `styleOverrides` or an overlay that targets a basemap source. Empty
1309
+ * before the style has loaded; replaced on every style swap. At most 4,096 layers are listed.
1310
+ */
1311
+ get styleLayers():readonly LyraMapStyleLayer[];
1312
+ /** The sources of the current `mapStyle`, `{ id, type }`, frozen, with the same timing as
1313
+ * `styleLayers`. At most 1,024 sources are listed. */
1314
+ get styleSources():readonly LyraMapStyleSource[];private captureStyleCatalog;private mapStateDefinitions;private prepareStateRetirement;private configureMapInteractions;private drawingConfigRevision;private drawingConfigApplying;private drawingConfigApplied;private drawingActionAllowed;private mapInteractionAllowed;private mapInteractionBlocked;private syncMapCursor;private observeMapInteractions;private pointerFrame?;private pendingPointer?;private pointerInside;private schedulePointerReport;private endPointerReports;private clearMapHover;
1315
+ /** Opens an explicit vertex-edit session from a valid completed drawing snapshot.
1316
+ * Mode and vertices are detached through own data properties; geometry and spherical metrics
1317
+ * are recomputed. Caller metrics are ignored. False leaves existing state unchanged, including
1318
+ * when another session is active. A completion listener may synchronously reopen its result.
1319
+ * Accepted vertex edits emit frozen lr-map-draw-change snapshots with completed geometry and
1320
+ * metrics. Finish/completeDrawing commits and clears; cancel, style replacement and disconnect
1321
+ * retire the edit session. True admits desired state; whenIdle covers owned rendering work.
1322
+ * The first call loads the drawing runtime on demand. Until it has loaded, this returns false
1323
+ * without reading the snapshot or changing state, and whenIdle() resolves only after the load,
1324
+ * so await it and call again. Once loaded, admission is synchronous for every element. */
1325
+ editDrawing(snapshot:LyraMapDrawingSnapshot):boolean;
1326
+ /** Removes the last accepted vertex. Returns false when drawing is unavailable or empty. */
1327
+ undoDrawing():boolean;
1328
+ /** Emits a frozen valid geometry with spherical metrics, then exits drawing mode.
1329
+ * Returns false for an incomplete/invalid shape. Completed geometry is not retained on the map;
1330
+ * assign it to dataLayers to keep it. Reentrant replacement belongs to the new drawing. */
1331
+ completeDrawing():boolean;
1332
+ /** Cancels an armed or started drawing and clears its temporary resources and mode. An armed
1333
+ * mode whose drawing runtime is still loading is cancelled synchronously as well. */
1334
+ cancelDrawing():boolean;private cancelMapDrawing;private resetDrawingMode;private syncDrawing;private drawingRuntime;private drawingHost;private showDrawingError;private drawingErrorMessage;private drawMapCenter;private cancelMapPick;private pickMapCenter;private handleMapInteraction;private cancelFeaturePreparation;private generatedFeatureRequirements;private externalSourceEffects?;private externalLayerInput;private dataLayerOrderGroups;private nativeLayerOrder;private applyDataLayerOrder;private reconcileGeneratedLayers;private resolveStyleOverride;private appliedChoroplethPaintKey?;private applyChoropleth;private choroplethColorExpression;private choroplethNoDataColor;private choroplethOutlineExpression;private resolveChoroplethSourceId;private removeChoropleth;private readonly appliedLayerPaintKeys;private readonly appliedRowRanges;private applyDataLayers;private applyDataLayerRange;private applyDataLayerRendering;private paintDataLayer;private applyGeoLabel;private applyGeometryLayers;private paintGeometryLayers;private lineColor;private mutedPointOpacity;private paintPoints;private pointIconColor;private removePointIcons;private applyPointIcons;private paintPointIcons;private clusterColorExpression;private applyClusterLayers;private paintClusterLayers;private applyHeatmapLayer;private paintHeatmapLayer;private heatmapColorExpression;private styleHasTextFonts;private styleProvidesGlyphs;private resolveDataLayerSourceId;private removeDataLayer;private applyMarkers;private readonly configuredMarkerElements;private configureMarkerInteraction;private emitMarkerActivation;private get effectiveMapLabel();private popupId;private configurePopupSemantics;private stopObservingMapAllocation;private observeMapAllocation;private stopObservingPeerChrome;private peerControlsResizeObserver?;private peerControlsResizeFrame?;private schedulePeerControlInsets;private measurePeerControlInsets;private syncPeerChromeParts;private observePeerChrome;private syncPopupSemantics;private syncMapSemantics;private formatDistance;private formatArea;private drawingSummary;private drawingLabelText;private formatCount;private legendLimitText;private onLegendSlotChange;
828
1335
  /**
829
1336
  * The continuous gradient bar plus its two endpoint captions, or nothing when `legendGradient`
830
1337
  * holds fewer than two usable stops. Part names mirror `lr-heatmap`'s
831
1338
  * `legend-lo`/`legend-hi` so a consumer styling both components learns one vocabulary.
832
1339
  */
833
- private renderLegendRowContent;private toggleLegendCategory;private announceLegendVisibility;private renderLegendRow;private renderLegendRows;private renderLegendGradient;render():TemplateResult;}declare global{interface HTMLElementTagNameMap{'lr-map':LyraMap;}}
1340
+ private renderLegendRowContent;private toggleLegendCategory;private announceLegendVisibility;private renderLegendRow;private renderLegendRows;private hasDerivedLegend;private renderLegendGradient;private renderDerivedLegendRows;render():TemplateResult;}declare global{interface HTMLElementTagNameMap{'lr-map':LyraMap;}}