@aceshooting/lyra-ui 29.2.2 → 30.1.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.
- package/CHANGELOG.md +164 -89
- package/README.md +9 -8
- package/dist/ai/adapters/ag-ui.d.ts +2 -2
- package/dist/ai/index.d.ts +1 -1
- package/dist/ai/runtime.d.ts +7 -7
- package/dist/ai/runtime.js +1 -1
- package/dist/ai/snapshot.d.ts +5 -5
- package/dist/ai/snapshot.js +1 -1
- package/dist/ai/types.d.ts +34 -34
- package/dist/all.d.ts +1 -1
- package/dist/all.js +1 -1
- package/dist/autoloader.d.ts +5 -5
- package/dist/autoloader.js +1 -1
- package/dist/cli/component-inventory.mjs +1 -1
- package/dist/cli/lyra-rename-ledger.mjs +1 -1
- package/dist/cli/migrate-wa.mjs +7 -3
- package/dist/cli/migration-analysis.mjs +1 -1
- package/dist/cli/migration-contract.json +1 -1
- package/dist/cli/migration-contract.mjs +1 -1
- package/dist/cli/migration-immutable-collections.mjs +6 -0
- package/dist/cli/migration-renames.mjs +1 -1
- package/dist/cli/migration-transforms.mjs +1 -1
- package/dist/components/agent-tools/activity-feed/activity-feed.class.d.ts +6 -6
- package/dist/components/agent-tools/activity-feed/activity-feed.d.ts +1 -1
- package/dist/components/agent-tools/agent-eval-dashboard/agent-eval-dashboard.class.d.ts +5 -6
- package/dist/components/agent-tools/agent-eval-dashboard/agent-eval-dashboard.class.js +1 -1
- package/dist/components/agent-tools/agent-eval-dashboard/agent-eval-dashboard.d.ts +1 -1
- package/dist/components/agent-tools/agent-question/agent-question.class.d.ts +9 -9
- package/dist/components/agent-tools/agent-question/agent-question.d.ts +1 -1
- package/dist/components/agent-tools/agent-run/agent-run.class.d.ts +5 -6
- package/dist/components/agent-tools/agent-run/agent-run.class.js +1 -1
- package/dist/components/agent-tools/agent-run/agent-run.d.ts +1 -1
- package/dist/components/agent-tools/agent-status-presentation.d.ts +6 -6
- package/dist/components/agent-tools/agent-trace/agent-trace.class.d.ts +6 -6
- package/dist/components/agent-tools/agent-trace/agent-trace.class.js +2 -2
- package/dist/components/agent-tools/agent-trace/agent-trace.d.ts +1 -1
- package/dist/components/agent-tools/approval-queue/approval-queue.class.d.ts +6 -6
- package/dist/components/agent-tools/approval-queue/approval-queue.d.ts +1 -1
- package/dist/components/agent-tools/approval-state.d.ts +4 -4
- package/dist/components/agent-tools/artifact-panel/artifact-panel.class.d.ts +7 -7
- package/dist/components/agent-tools/artifact-panel/artifact-panel.d.ts +1 -1
- package/dist/components/agent-tools/background-runs/background-runs.class.d.ts +6 -7
- package/dist/components/agent-tools/background-runs/background-runs.class.js +1 -1
- package/dist/components/agent-tools/background-runs/background-runs.d.ts +1 -1
- package/dist/components/agent-tools/browser-frame/browser-frame.class.d.ts +2 -2
- package/dist/components/agent-tools/browser-frame/browser-frame.d.ts +1 -1
- package/dist/components/agent-tools/budget-meter/budget-meter.class.d.ts +5 -5
- package/dist/components/agent-tools/budget-meter/budget-meter.d.ts +1 -1
- package/dist/components/agent-tools/change-review/change-review.class.d.ts +6 -7
- package/dist/components/agent-tools/change-review/change-review.class.js +1 -1
- package/dist/components/agent-tools/change-review/change-review.d.ts +1 -1
- package/dist/components/agent-tools/commit-card/commit-card.class.d.ts +5 -5
- package/dist/components/agent-tools/commit-card/commit-card.d.ts +1 -1
- package/dist/components/agent-tools/compare-panel/compare-panel.d.ts +1 -1
- package/dist/components/agent-tools/confirm-bar/confirm-bar.class.d.ts +4 -4
- package/dist/components/agent-tools/confirm-bar/confirm-bar.d.ts +1 -1
- package/dist/components/agent-tools/connector-manager/connector-manager.class.d.ts +4 -4
- package/dist/components/agent-tools/connector-manager/connector-manager.d.ts +1 -1
- package/dist/components/agent-tools/context-inspector/context-inspector.class.d.ts +13 -13
- package/dist/components/agent-tools/context-inspector/context-inspector.d.ts +1 -1
- package/dist/components/agent-tools/eval-dataset/eval-dataset.class.d.ts +11 -10
- package/dist/components/agent-tools/eval-dataset/eval-dataset.class.js +1 -1
- package/dist/components/agent-tools/eval-dataset/eval-dataset.d.ts +1 -1
- package/dist/components/agent-tools/eval-result/eval-result.class.d.ts +7 -7
- package/dist/components/agent-tools/eval-result/eval-result.d.ts +1 -1
- package/dist/components/agent-tools/evaluation-run/evaluation-run.class.d.ts +13 -7
- package/dist/components/agent-tools/evaluation-run/evaluation-run.class.js +1 -1
- package/dist/components/agent-tools/evaluation-run/evaluation-run.d.ts +1 -1
- package/dist/components/agent-tools/mcp-app/mcp-app.class.d.ts +5 -5
- package/dist/components/agent-tools/mcp-app/mcp-app.d.ts +1 -1
- package/dist/components/agent-tools/permission-grant/permission-grant.class.d.ts +7 -7
- package/dist/components/agent-tools/permission-grant/permission-grant.d.ts +1 -1
- package/dist/components/agent-tools/permission-rules/permission-rules.class.d.ts +3 -3
- package/dist/components/agent-tools/permission-rules/permission-rules.d.ts +1 -1
- package/dist/components/agent-tools/policy-summary/policy-summary.class.d.ts +3 -3
- package/dist/components/agent-tools/policy-summary/policy-summary.d.ts +1 -1
- package/dist/components/agent-tools/prompt-studio/prompt-studio.class.d.ts +10 -10
- package/dist/components/agent-tools/prompt-studio/prompt-studio.class.js +3 -3
- package/dist/components/agent-tools/prompt-studio/prompt-studio.d.ts +1 -1
- package/dist/components/agent-tools/result-card/result-card.class.d.ts +1 -1
- package/dist/components/agent-tools/result-card/result-card.d.ts +1 -1
- package/dist/components/agent-tools/result-card/result-field.class.d.ts +1 -1
- package/dist/components/agent-tools/result-card/result-field.d.ts +1 -1
- package/dist/components/agent-tools/run-events.d.ts +1 -1
- package/dist/components/agent-tools/schema-viewer/schema-viewer.class.d.ts +2 -2
- package/dist/components/agent-tools/schema-viewer/schema-viewer.d.ts +1 -1
- package/dist/components/agent-tools/span-waterfall/span-waterfall.class.d.ts +3 -3
- package/dist/components/agent-tools/span-waterfall/span-waterfall.d.ts +1 -1
- package/dist/components/agent-tools/stack-trace/stack-trace-parse.d.ts +4 -4
- package/dist/components/agent-tools/stack-trace/stack-trace.class.d.ts +3 -3
- package/dist/components/agent-tools/stack-trace/stack-trace.d.ts +1 -1
- package/dist/components/agent-tools/subagent-panel/subagent-panel.class.d.ts +2 -3
- package/dist/components/agent-tools/subagent-panel/subagent-panel.class.js +2 -2
- package/dist/components/agent-tools/subagent-panel/subagent-panel.d.ts +1 -1
- package/dist/components/agent-tools/task-list/task-list.class.d.ts +7 -7
- package/dist/components/agent-tools/task-list/task-list.d.ts +1 -1
- package/dist/components/agent-tools/terminal/terminal.class.d.ts +2 -2
- package/dist/components/agent-tools/terminal/terminal.d.ts +1 -1
- package/dist/components/agent-tools/test-results/test-results.class.d.ts +9 -9
- package/dist/components/agent-tools/test-results/test-results.d.ts +1 -1
- package/dist/components/agent-tools/thinking-panel/thinking-panel.class.d.ts +1 -1
- package/dist/components/agent-tools/thinking-panel/thinking-panel.d.ts +1 -1
- package/dist/components/agent-tools/tool-approval-dialog/tool-approval-dialog.class.d.ts +9 -9
- package/dist/components/agent-tools/tool-approval-dialog/tool-approval-dialog.d.ts +1 -1
- package/dist/components/agent-tools/tool-call-block/tool-call-block.class.d.ts +8 -8
- package/dist/components/agent-tools/tool-call-block/tool-call-block.d.ts +1 -1
- package/dist/components/agent-tools/tool-call-chip/tool-call-chip.class.d.ts +9 -10
- package/dist/components/agent-tools/tool-call-chip/tool-call-chip.class.js +1 -5
- package/dist/components/agent-tools/tool-call-chip/tool-call-chip.d.ts +1 -1
- package/dist/components/agent-tools/tool-param-form/tool-param-form.class.d.ts +7 -7
- package/dist/components/agent-tools/tool-param-form/tool-param-form.d.ts +1 -1
- package/dist/components/agent-tools/tool-param-form/tool-param-types.d.ts +14 -14
- package/dist/components/agent-tools/tool-result-dialog/tool-result-dialog.class.d.ts +7 -7
- package/dist/components/agent-tools/tool-result-dialog/tool-result-dialog.d.ts +1 -1
- package/dist/components/agent-tools/tool-result-view/registry.d.ts +9 -9
- package/dist/components/agent-tools/tool-result-view/tool-result-view.class.d.ts +7 -7
- package/dist/components/agent-tools/tool-result-view/tool-result-view.d.ts +1 -1
- package/dist/components/agent-tools/tool-select-dialog/tool-select-dialog.class.d.ts +9 -9
- package/dist/components/agent-tools/tool-select-dialog/tool-select-dialog.d.ts +1 -1
- package/dist/components/agent-tools/tool-timeline/tool-timeline.class.d.ts +7 -7
- package/dist/components/agent-tools/tool-timeline/tool-timeline.d.ts +1 -1
- package/dist/components/agent-tools/trace-tree/span-shared.d.ts +9 -9
- package/dist/components/agent-tools/trace-tree/trace-tree.class.d.ts +10 -9
- package/dist/components/agent-tools/trace-tree/trace-tree.class.js +1 -1
- package/dist/components/agent-tools/trace-tree/trace-tree.d.ts +1 -1
- package/dist/components/charts/chart/bar-chart.d.ts +1 -1
- package/dist/components/charts/chart/box-plot.class.d.ts +10 -10
- package/dist/components/charts/chart/box-plot.d.ts +1 -1
- package/dist/components/charts/chart/bubble-chart.d.ts +1 -1
- package/dist/components/charts/chart/chart-chrome.d.ts +2 -2
- package/dist/components/charts/chart/chart-colors.d.ts +1 -1
- package/dist/components/charts/chart/chart-core-loader.d.ts +2 -2
- package/dist/components/charts/chart/chart-feature-loader.d.ts +1 -1
- package/dist/components/charts/chart/chart-legend-visibility.d.ts +9 -9
- package/dist/components/charts/chart/chart-prepared-data.d.ts +4 -4
- package/dist/components/charts/chart/chart.class.d.ts +35 -35
- package/dist/components/charts/chart/chart.class.js +4 -4
- package/dist/components/charts/chart/chart.d.ts +1 -1
- package/dist/components/charts/chart/doughnut-chart.d.ts +1 -1
- package/dist/components/charts/chart/histogram-bin.d.ts +1 -1
- package/dist/components/charts/chart/histogram.class.d.ts +2 -2
- package/dist/components/charts/chart/histogram.d.ts +1 -1
- package/dist/components/charts/chart/line-chart.d.ts +1 -1
- package/dist/components/charts/chart/lite-chart.class.d.ts +9 -9
- package/dist/components/charts/chart/lite-chart.d.ts +1 -1
- package/dist/components/charts/chart/pie-chart.d.ts +1 -1
- package/dist/components/charts/chart/polar-area-chart.d.ts +1 -1
- package/dist/components/charts/chart/radar-chart.d.ts +1 -1
- package/dist/components/charts/chart/scatter-chart.d.ts +1 -1
- package/dist/components/charts/chart-3d/chart-3d-data.d.ts +50 -0
- package/dist/components/charts/chart-3d/chart-3d-data.js +1 -0
- package/dist/components/charts/chart-3d/chart-3d-engine.js +1 -0
- package/dist/components/charts/chart-3d/chart-3d.class.d.ts +96 -0
- package/dist/components/charts/chart-3d/chart-3d.class.js +47 -0
- package/dist/components/charts/chart-3d/chart-3d.d.ts +1 -0
- package/dist/components/charts/chart-3d/chart-3d.js +1 -0
- package/dist/components/charts/chart-3d/chart-3d.styles.js +1 -0
- package/dist/components/charts/index.d.ts +1 -1
- package/dist/components/charts/index.js +1 -1
- package/dist/components/conversation/agent-workspace/agent-workspace.class.d.ts +29 -29
- package/dist/components/conversation/agent-workspace/agent-workspace.class.js +4 -5
- package/dist/components/conversation/agent-workspace/agent-workspace.d.ts +1 -1
- package/dist/components/conversation/audio-visualizer/audio-visualizer.class.d.ts +3 -3
- package/dist/components/conversation/audio-visualizer/audio-visualizer.d.ts +1 -1
- package/dist/components/conversation/branch-picker/branch-picker.class.d.ts +2 -2
- package/dist/components/conversation/branch-picker/branch-picker.d.ts +1 -1
- package/dist/components/conversation/catalog-picker-element.d.ts +20 -20
- package/dist/components/conversation/chat-composer/chat-composer-status.d.ts +1 -1
- package/dist/components/conversation/chat-composer/chat-composer.class.d.ts +10 -10
- package/dist/components/conversation/chat-composer/chat-composer.d.ts +1 -1
- package/dist/components/conversation/chat-message/chat-message.class.d.ts +5 -5
- package/dist/components/conversation/chat-message/chat-message.d.ts +1 -1
- package/dist/components/conversation/chat-viewport/chat-viewport.class.d.ts +1 -1
- package/dist/components/conversation/chat-viewport/chat-viewport.d.ts +1 -1
- package/dist/components/conversation/checkpoint/checkpoint.class.d.ts +4 -4
- package/dist/components/conversation/checkpoint/checkpoint.d.ts +1 -1
- package/dist/components/conversation/code-block/code-block-base.class.d.ts +3 -3
- package/dist/components/conversation/code-block/code-block-base.class.js +1 -1
- package/dist/components/conversation/code-block/code-block-core.class.d.ts +6 -6
- package/dist/components/conversation/code-block/code-block-core.d.ts +1 -1
- package/dist/components/conversation/code-block/code-block-shared.d.ts +12 -12
- package/dist/components/conversation/code-block/code-block.class.d.ts +7 -7
- package/dist/components/conversation/code-block/code-block.d.ts +1 -1
- package/dist/components/conversation/code-block/shiki-oniguruma.d.ts +3 -0
- package/dist/components/conversation/code-block/shiki-oniguruma.js +1 -0
- package/dist/components/conversation/code-block/shiki-types.d.ts +8 -10
- package/dist/components/conversation/code-block/shiki-types.js +1 -1
- package/dist/components/conversation/conversation-item/conversation-item.class.d.ts +2 -2
- package/dist/components/conversation/conversation-item/conversation-item.d.ts +1 -1
- package/dist/components/conversation/generation-metrics/generation-metrics.class.d.ts +1 -1
- package/dist/components/conversation/generation-metrics/generation-metrics.class.js +1 -1
- package/dist/components/conversation/generation-metrics/generation-metrics.d.ts +1 -1
- package/dist/components/conversation/handoff-divider/handoff-divider.d.ts +1 -1
- package/dist/components/conversation/markdown/markdown-base.class.d.ts +8 -8
- package/dist/components/conversation/markdown/markdown-code-header.d.ts +2 -2
- package/dist/components/conversation/markdown/markdown-core.class.d.ts +4 -4
- package/dist/components/conversation/markdown/markdown-core.d.ts +1 -1
- package/dist/components/conversation/markdown/markdown-fallback-code.d.ts +3 -3
- package/dist/components/conversation/markdown/markdown-loader.d.ts +3 -3
- package/dist/components/conversation/markdown/markdown-progressive.js +2 -2
- package/dist/components/conversation/markdown/markdown-shared.d.ts +24 -24
- package/dist/components/conversation/markdown/markdown.class.d.ts +3 -3
- package/dist/components/conversation/markdown/markdown.d.ts +1 -1
- package/dist/components/conversation/message-actions/message-actions.class.d.ts +2 -2
- package/dist/components/conversation/message-actions/message-actions.class.js +1 -1
- package/dist/components/conversation/message-actions/message-actions.d.ts +1 -1
- package/dist/components/conversation/message-actions/toolbar-actions.d.ts +2 -2
- package/dist/components/conversation/message-feedback/message-feedback.class.d.ts +8 -8
- package/dist/components/conversation/message-feedback/message-feedback.d.ts +1 -1
- package/dist/components/conversation/message-parts/message-parts.class.d.ts +6 -6
- package/dist/components/conversation/message-parts/message-parts.class.js +1 -1
- package/dist/components/conversation/message-parts/message-parts.d.ts +1 -1
- package/dist/components/conversation/model-select/model-select.class.d.ts +9 -9
- package/dist/components/conversation/model-select/model-select.class.js +1 -1
- package/dist/components/conversation/model-select/model-select.d.ts +1 -1
- package/dist/components/conversation/model-settings-panel/model-settings-panel.class.d.ts +4 -4
- package/dist/components/conversation/model-settings-panel/model-settings-panel.class.js +1 -1
- package/dist/components/conversation/model-settings-panel/model-settings-panel.d.ts +1 -1
- package/dist/components/conversation/prompt-input/prompt-input.class.d.ts +16 -16
- package/dist/components/conversation/prompt-input/prompt-input.class.js +3 -4
- package/dist/components/conversation/prompt-input/prompt-input.d.ts +1 -1
- package/dist/components/conversation/prompt-queue/prompt-queue.class.d.ts +4 -4
- package/dist/components/conversation/prompt-queue/prompt-queue.d.ts +1 -1
- package/dist/components/conversation/push-to-talk/push-to-talk.class.d.ts +3 -3
- package/dist/components/conversation/push-to-talk/push-to-talk.class.js +1 -1
- package/dist/components/conversation/push-to-talk/push-to-talk.d.ts +1 -1
- package/dist/components/conversation/realtime-session/realtime-session.d.ts +1 -1
- package/dist/components/conversation/selection-toolbar/selection-toolbar.class.d.ts +1 -1
- package/dist/components/conversation/selection-toolbar/selection-toolbar.class.js +1 -1
- package/dist/components/conversation/selection-toolbar/selection-toolbar.d.ts +1 -1
- package/dist/components/conversation/stream-status/stream-status.class.d.ts +5 -5
- package/dist/components/conversation/stream-status/stream-status.d.ts +1 -1
- package/dist/components/conversation/streaming-text/markdown-detection.d.ts +1 -1
- package/dist/components/conversation/streaming-text/streaming-text-core.class.d.ts +1 -1
- package/dist/components/conversation/streaming-text/streaming-text-core.d.ts +1 -1
- package/dist/components/conversation/streaming-text/streaming-text.class.d.ts +1 -1
- package/dist/components/conversation/streaming-text/streaming-text.d.ts +1 -1
- package/dist/components/conversation/suggestion-chips/suggestion-chips.class.d.ts +4 -4
- package/dist/components/conversation/suggestion-chips/suggestion-chips.d.ts +1 -1
- package/dist/components/conversation/thread-list/thread-list.class.d.ts +15 -15
- package/dist/components/conversation/thread-list/thread-list.class.js +1 -1
- package/dist/components/conversation/thread-list/thread-list.d.ts +1 -1
- package/dist/components/conversation/timestamp.d.ts +2 -2
- package/dist/components/conversation/transcript-feed/transcript-feed.class.d.ts +3 -3
- package/dist/components/conversation/transcript-feed/transcript-feed.d.ts +1 -1
- package/dist/components/conversation/typing-indicator/typing-indicator.class.d.ts +1 -1
- package/dist/components/conversation/typing-indicator/typing-indicator.d.ts +1 -1
- package/dist/components/conversation/usage-badge/usage-badge.class.d.ts +2 -2
- package/dist/components/conversation/usage-badge/usage-badge.d.ts +1 -1
- package/dist/components/conversation/voice-picker/voice-picker.class.d.ts +10 -10
- package/dist/components/conversation/voice-picker/voice-picker.d.ts +1 -1
- package/dist/components/conversation/widget-renderer/default-registry.d.ts +1 -1
- package/dist/components/conversation/widget-renderer/registry.d.ts +12 -12
- package/dist/components/conversation/widget-renderer/registry.js +1 -1
- package/dist/components/conversation/widget-renderer/resolve.d.ts +7 -7
- package/dist/components/conversation/widget-renderer/resolve.js +1 -1
- package/dist/components/conversation/widget-renderer/widget-renderer.class.d.ts +1 -1
- package/dist/components/conversation/widget-renderer/widget-renderer.d.ts +1 -1
- package/dist/components/data/calendar/calendar.class.d.ts +4 -2
- package/dist/components/data/calendar/calendar.d.ts +1 -1
- package/dist/components/data/condition-builder/condition-builder.class.d.ts +11 -11
- package/dist/components/data/condition-builder/condition-builder.d.ts +1 -1
- package/dist/components/data/context-meter/context-meter.class.d.ts +12 -12
- package/dist/components/data/context-meter/context-meter.d.ts +1 -1
- package/dist/components/data/data-grid/data-grid-types.d.ts +19 -19
- package/dist/components/data/data-grid/data-grid.class.d.ts +58 -58
- package/dist/components/data/data-grid/data-grid.class.js +2 -2
- package/dist/components/data/data-grid/data-grid.d.ts +1 -1
- package/dist/components/data/document-library/document-library.class.d.ts +12 -12
- package/dist/components/data/document-library/document-library.d.ts +1 -1
- package/dist/components/data/env-list/env-list.class.d.ts +1 -1
- package/dist/components/data/env-list/env-list.d.ts +1 -1
- package/dist/components/data/file-tree/file-tree.class.d.ts +6 -4
- package/dist/components/data/file-tree/file-tree.class.js +2 -2
- package/dist/components/data/file-tree/file-tree.d.ts +1 -1
- package/dist/components/data/flow-canvas/flow-canvas.class.d.ts +19 -19
- package/dist/components/data/flow-canvas/flow-canvas.class.js +2 -2
- package/dist/components/data/flow-canvas/flow-canvas.d.ts +1 -1
- package/dist/components/data/flow-canvas/flow-source.js +1 -1
- package/dist/components/data/flow-canvas/flow-types.d.ts +12 -12
- package/dist/components/data/flow-controls/flow-controls.class.d.ts +1 -1
- package/dist/components/data/flow-controls/flow-controls.d.ts +1 -1
- package/dist/components/data/flow-minimap/flow-minimap.class.d.ts +1 -1
- package/dist/components/data/flow-minimap/flow-minimap.d.ts +1 -1
- package/dist/components/data/flow-node/flow-node.class.d.ts +11 -12
- package/dist/components/data/flow-node/flow-node.class.js +2 -4
- package/dist/components/data/flow-node/flow-node.d.ts +1 -1
- package/dist/components/data/flow-run-status/flow-run-status.class.d.ts +2 -2
- package/dist/components/data/flow-run-status/flow-run-status.d.ts +1 -1
- package/dist/components/data/funnel/funnel.class.d.ts +8 -8
- package/dist/components/data/funnel/funnel.d.ts +1 -1
- package/dist/components/data/gauge/gauge.class.d.ts +2 -2
- package/dist/components/data/gauge/gauge.d.ts +1 -1
- package/dist/components/data/graph-query-builder/graph-query-builder.class.d.ts +19 -19
- package/dist/components/data/graph-query-builder/graph-query-builder.d.ts +1 -1
- package/dist/components/data/heatmap/calendar-grid.d.ts +5 -5
- package/dist/components/data/heatmap/heatmap-limits.d.ts +5 -5
- package/dist/components/data/heatmap/heatmap-matrix-source.d.ts +2 -2
- package/dist/components/data/heatmap/heatmap-scale.d.ts +3 -3
- package/dist/components/data/heatmap/heatmap.class.d.ts +20 -20
- package/dist/components/data/heatmap/heatmap.class.js +2 -2
- package/dist/components/data/heatmap/heatmap.d.ts +1 -1
- package/dist/components/data/pagination/pagination.class.d.ts +14 -14
- package/dist/components/data/pagination/pagination.d.ts +1 -1
- package/dist/components/data/sequence-strip/sequence-strip-source.d.ts +2 -2
- package/dist/components/data/sequence-strip/sequence-strip.class.d.ts +2 -2
- package/dist/components/data/sequence-strip/sequence-strip.d.ts +1 -1
- package/dist/components/data/sparkline/sparkline.class.d.ts +8 -9
- package/dist/components/data/sparkline/sparkline.class.js +1 -1
- package/dist/components/data/sparkline/sparkline.d.ts +1 -1
- package/dist/components/data/stat/stat.class.d.ts +5 -5
- package/dist/components/data/stat/stat.d.ts +1 -1
- package/dist/components/data/table/table.class.d.ts +12 -12
- package/dist/components/data/table/table.class.js +1 -1
- package/dist/components/data/table/table.d.ts +1 -1
- package/dist/components/data/timeline/timeline-item.d.ts +1 -1
- package/dist/components/data/timeline/timeline.class.d.ts +3 -3
- package/dist/components/data/timeline/timeline.d.ts +1 -1
- package/dist/components/data/tree/tree-item.class.d.ts +9 -9
- package/dist/components/data/tree/tree-item.d.ts +1 -1
- package/dist/components/data/tree/tree-types.d.ts +7 -7
- package/dist/components/data/tree/tree.class.d.ts +4 -4
- package/dist/components/data/tree/tree.d.ts +1 -1
- package/dist/components/data/word-cloud/word-cloud-layout.d.ts +14 -14
- package/dist/components/data/word-cloud/word-cloud.class.d.ts +4 -4
- package/dist/components/data/word-cloud/word-cloud.d.ts +1 -1
- package/dist/components/forms/button/button.class.d.ts +12 -12
- package/dist/components/forms/button/button.d.ts +1 -1
- package/dist/components/forms/catalog-picker-base.d.ts +24 -24
- package/dist/components/forms/checkbox/checkbox.class.d.ts +8 -8
- package/dist/components/forms/checkbox/checkbox.d.ts +1 -1
- package/dist/components/forms/checkbox-group/checkbox-group.class.d.ts +12 -12
- package/dist/components/forms/checkbox-group/checkbox-group.d.ts +1 -1
- package/dist/components/forms/code-editor/code-editor.class.d.ts +4 -4
- package/dist/components/forms/code-editor/code-editor.d.ts +1 -1
- package/dist/components/forms/color-picker/color-core.d.ts +11 -11
- package/dist/components/forms/color-picker/color-core.js +1 -1
- package/dist/components/forms/color-picker/color-picker.class.d.ts +13 -13
- package/dist/components/forms/color-picker/color-picker.d.ts +1 -1
- package/dist/components/forms/combobox/combobox.class.d.ts +27 -27
- package/dist/components/forms/combobox/combobox.d.ts +1 -1
- package/dist/components/forms/combobox/option.class.d.ts +8 -8
- package/dist/components/forms/combobox/option.d.ts +1 -1
- package/dist/components/forms/country-picker/country-picker.class.d.ts +2 -2
- package/dist/components/forms/currency-picker/currency-catalog.d.ts +5 -5
- package/dist/components/forms/currency-picker/currency-picker.class.d.ts +1 -1
- package/dist/components/forms/currency-picker/currency-types.d.ts +1 -1
- package/dist/components/forms/date-picker/calendar-core.d.ts +10 -10
- package/dist/components/forms/date-picker/calendar-core.js +1 -1
- package/dist/components/forms/date-picker/date-input.class.d.ts +25 -25
- package/dist/components/forms/date-picker/date-input.d.ts +1 -1
- package/dist/components/forms/date-picker/date-picker-disabled-dates.d.ts +1 -1
- package/dist/components/forms/date-picker/date-picker.class.d.ts +13 -13
- package/dist/components/forms/date-picker/date-picker.d.ts +1 -1
- package/dist/components/forms/emoji-picker/emoji-picker.class.d.ts +8 -8
- package/dist/components/forms/emoji-picker/emoji-picker.d.ts +1 -1
- package/dist/components/forms/emoji-picker/emoji-types.d.ts +1 -1
- package/dist/components/forms/form-validator.d.ts +3 -3
- package/dist/components/forms/icon-button/icon-button.class.d.ts +8 -8
- package/dist/components/forms/icon-button/icon-button.d.ts +1 -1
- package/dist/components/forms/input/input-shared.d.ts +14 -14
- package/dist/components/forms/input/input.class.d.ts +1 -1
- package/dist/components/forms/input/input.d.ts +1 -1
- package/dist/components/forms/input/native-time-input.class.d.ts +3 -3
- package/dist/components/forms/input/native-time-input.d.ts +1 -1
- package/dist/components/forms/input/number-input.class.d.ts +6 -6
- package/dist/components/forms/input/number-input.d.ts +1 -1
- package/dist/components/forms/input/time-input-shared.d.ts +7 -7
- package/dist/components/forms/input/time-input.class.d.ts +9 -9
- package/dist/components/forms/input/time-input.class.js +1 -1
- package/dist/components/forms/input/time-input.d.ts +1 -1
- package/dist/components/forms/locale-picker/locale-picker.class.d.ts +23 -18
- package/dist/components/forms/locale-picker/locale-picker.class.js +1 -1
- package/dist/components/forms/locale-picker/locale-picker.d.ts +1 -1
- package/dist/components/forms/otp-input/otp-input.class.d.ts +24 -24
- package/dist/components/forms/otp-input/otp-input.class.js +1 -1
- package/dist/components/forms/otp-input/otp-input.d.ts +1 -1
- package/dist/components/forms/phone-input/phone-input.class.d.ts +19 -19
- package/dist/components/forms/phone-input/phone-input.d.ts +1 -1
- package/dist/components/forms/phone-input/phone-number-adapter.d.ts +10 -10
- package/dist/components/forms/radio/radio-button.d.ts +1 -1
- package/dist/components/forms/radio/radio-group.class.d.ts +9 -9
- package/dist/components/forms/radio/radio-group.d.ts +1 -1
- package/dist/components/forms/radio/radio.class.d.ts +8 -8
- package/dist/components/forms/radio/radio.d.ts +1 -1
- package/dist/components/forms/rubric-form/rubric-form.class.d.ts +10 -10
- package/dist/components/forms/rubric-form/rubric-form.d.ts +1 -1
- package/dist/components/forms/select/select.class.d.ts +15 -15
- package/dist/components/forms/select/select.class.js +1 -1
- package/dist/components/forms/select/select.d.ts +1 -1
- package/dist/components/forms/signature-pad/signature-pad-limits.d.ts +2 -2
- package/dist/components/forms/signature-pad/signature-pad.class.d.ts +13 -12
- package/dist/components/forms/signature-pad/signature-pad.class.js +1 -1
- package/dist/components/forms/slider/slider.class.d.ts +21 -21
- package/dist/components/forms/slider/slider.class.js +1 -1
- package/dist/components/forms/slider/slider.d.ts +1 -1
- package/dist/components/forms/swatch-picker/swatch-picker.class.d.ts +8 -7
- package/dist/components/forms/swatch-picker/swatch-picker.class.js +1 -1
- package/dist/components/forms/swatch-picker/swatch-picker.d.ts +1 -1
- package/dist/components/forms/switch/switch.class.d.ts +6 -6
- package/dist/components/forms/switch/switch.d.ts +1 -1
- package/dist/components/forms/textarea/textarea.class.d.ts +10 -10
- package/dist/components/forms/textarea/textarea.d.ts +1 -1
- package/dist/components/forms/time-range/time-range.class.d.ts +4 -4
- package/dist/components/forms/time-range/time-range.d.ts +1 -1
- package/dist/components/forms/time-zone-picker/time-zone-picker.class.d.ts +1 -1
- package/dist/components/forms/toggle/toggle.class.d.ts +10 -10
- package/dist/components/forms/toggle/toggle.d.ts +1 -1
- package/dist/components/forms/toggle-group/toggle-group.class.d.ts +11 -11
- package/dist/components/forms/toggle-group/toggle-group.d.ts +1 -1
- package/dist/components/forms/token-input/token-input.class.d.ts +12 -12
- package/dist/components/forms/token-input/token-input.d.ts +1 -1
- package/dist/components/forms/unit-picker/unit-picker.class.d.ts +1 -1
- package/dist/components/layout/app-rail/app-rail-item.class.d.ts +5 -7
- package/dist/components/layout/app-rail/app-rail-item.class.js +1 -1
- package/dist/components/layout/app-rail/app-rail-item.d.ts +1 -1
- package/dist/components/layout/app-rail/app-rail-mode.d.ts +4 -4
- package/dist/components/layout/app-rail/app-rail.class.d.ts +7 -7
- package/dist/components/layout/app-rail/app-rail.d.ts +1 -1
- package/dist/components/layout/app-rail-group/app-rail-group.class.d.ts +3 -3
- package/dist/components/layout/app-rail-group/app-rail-group.d.ts +1 -1
- package/dist/components/layout/breadcrumb/breadcrumb-item.class.d.ts +2 -2
- package/dist/components/layout/breadcrumb/breadcrumb-item.d.ts +1 -1
- package/dist/components/layout/breadcrumb/breadcrumb.d.ts +1 -1
- package/dist/components/layout/button-group/button-group.class.d.ts +2 -2
- package/dist/components/layout/button-group/button-group.d.ts +1 -1
- package/dist/components/layout/card/card.class.d.ts +1 -1
- package/dist/components/layout/card/card.d.ts +1 -1
- package/dist/components/layout/carousel/carousel-item.d.ts +1 -1
- package/dist/components/layout/carousel/carousel.class.d.ts +5 -5
- package/dist/components/layout/command-palette/command-palette.class.d.ts +8 -8
- package/dist/components/layout/command-palette/command-palette.d.ts +1 -1
- package/dist/components/layout/control-group/control-group.d.ts +1 -1
- package/dist/components/layout/dashboard-grid/dashboard-grid.class.d.ts +3 -3
- package/dist/components/layout/dashboard-grid/dashboard-grid.d.ts +1 -1
- package/dist/components/layout/dashboard-grid/layout-types.d.ts +12 -12
- package/dist/components/layout/details/accordion-item.class.d.ts +11 -12
- package/dist/components/layout/details/accordion-item.class.js +1 -1
- package/dist/components/layout/details/accordion-item.d.ts +1 -1
- package/dist/components/layout/details/accordion-types.d.ts +2 -2
- package/dist/components/layout/details/accordion.class.d.ts +5 -5
- package/dist/components/layout/details/accordion.d.ts +1 -1
- package/dist/components/layout/details/details.class.d.ts +9 -9
- package/dist/components/layout/details/details.d.ts +1 -1
- package/dist/components/layout/dock-panel/dock-panel.class.d.ts +8 -15
- package/dist/components/layout/dock-panel/dock-panel.class.js +1 -1
- package/dist/components/layout/dock-panel/dock-panel.d.ts +1 -1
- package/dist/components/layout/drilldown-panel/drilldown-panel.class.d.ts +8 -8
- package/dist/components/layout/drilldown-panel/drilldown-panel.class.js +1 -1
- package/dist/components/layout/drilldown-panel/drilldown-panel.d.ts +1 -1
- package/dist/components/layout/filter-bar/filter-bar.class.d.ts +12 -12
- package/dist/components/layout/filter-bar/filter-bar.d.ts +1 -1
- package/dist/components/layout/menu/dropdown-item.class.d.ts +1 -1
- package/dist/components/layout/menu/dropdown-item.d.ts +1 -1
- package/dist/components/layout/menu/menu-item.class.d.ts +6 -6
- package/dist/components/layout/menu/menu-item.d.ts +1 -1
- package/dist/components/layout/menu/menu-label.d.ts +1 -1
- package/dist/components/layout/menu/menu.class.js +1 -1
- package/dist/components/layout/menu/menu.d.ts +1 -1
- package/dist/components/layout/menubar/menubar-item.class.d.ts +2 -2
- package/dist/components/layout/menubar/menubar-item.d.ts +1 -1
- package/dist/components/layout/menubar/menubar.class.d.ts +3 -3
- package/dist/components/layout/menubar/menubar.d.ts +1 -1
- package/dist/components/layout/multi-split/multi-split.class.d.ts +5 -5
- package/dist/components/layout/multi-split/multi-split.class.js +1 -1
- package/dist/components/layout/multi-split/multi-split.d.ts +1 -1
- package/dist/components/layout/navigation-menu/navigation-menu.class.d.ts +10 -14
- package/dist/components/layout/navigation-menu/navigation-menu.class.js +1 -1
- package/dist/components/layout/navigation-menu/navigation-menu.d.ts +1 -1
- package/dist/components/layout/navigation-menu-item/navigation-menu-item.class.d.ts +5 -5
- package/dist/components/layout/navigation-menu-item/navigation-menu-item.d.ts +1 -1
- package/dist/components/layout/page/page.class.d.ts +9 -9
- package/dist/components/layout/page/page.d.ts +1 -1
- package/dist/components/layout/reorder-list/reorder-item.class.d.ts +2 -2
- package/dist/components/layout/reorder-list/reorder-item.d.ts +1 -1
- package/dist/components/layout/reorder-list/reorder-list.d.ts +1 -1
- package/dist/components/layout/responsive-panel/responsive-panel-mode.d.ts +3 -3
- package/dist/components/layout/responsive-panel/responsive-panel.class.d.ts +4 -4
- package/dist/components/layout/responsive-panel/responsive-panel.d.ts +1 -1
- package/dist/components/layout/scroller/scroller.class.d.ts +2 -2
- package/dist/components/layout/scroller/scroller.d.ts +1 -1
- package/dist/components/layout/segmented/segmented.class.d.ts +2 -2
- package/dist/components/layout/segmented/segmented.d.ts +1 -1
- package/dist/components/layout/split-panel/split-panel-snap.d.ts +4 -4
- package/dist/components/layout/split-panel/split-panel.class.d.ts +11 -11
- package/dist/components/layout/split-panel/split-panel.d.ts +1 -1
- package/dist/components/layout/stepper/stepper.class.d.ts +4 -4
- package/dist/components/layout/stepper/stepper.d.ts +1 -1
- package/dist/components/layout/tab-group/tab-group.class.d.ts +4 -4
- package/dist/components/layout/tab-group/tab-group.class.js +1 -1
- package/dist/components/layout/tab-group/tab-group.d.ts +1 -1
- package/dist/components/layout/tab-group/tab-panel.class.d.ts +1 -1
- package/dist/components/layout/tab-group/tab-panel.d.ts +1 -1
- package/dist/components/layout/tab-group/tab.class.d.ts +2 -2
- package/dist/components/layout/tab-group/tab.d.ts +1 -1
- package/dist/components/layout/virtual-list/virtual-list-attributes.d.ts +2 -2
- package/dist/components/layout/virtual-list/virtual-list-limits.d.ts +1 -1
- package/dist/components/layout/virtual-list/virtual-list.class.d.ts +15 -14
- package/dist/components/layout/virtual-list/virtual-list.class.js +1 -1
- package/dist/components/layout/virtual-list/virtual-list.d.ts +1 -1
- package/dist/components/layout/widget/widget.class.d.ts +8 -17
- package/dist/components/layout/widget/widget.class.js +2 -2
- package/dist/components/layout/widget/widget.d.ts +1 -1
- package/dist/components/lr-chart-3d.js +1 -0
- package/dist/components/lr-map-anchor.js +1 -0
- package/dist/components/lr-model-viewer.js +1 -0
- package/dist/components/media/animated-image/animated-image.class.d.ts +4 -4
- package/dist/components/media/animated-image/animated-image.d.ts +1 -1
- package/dist/components/media/animation/animation-catalog.d.ts +3 -3
- package/dist/components/media/animation/animation.class.d.ts +5 -5
- package/dist/components/media/animation/animation.d.ts +1 -1
- package/dist/components/media/attachment-chip/attachment-chip.class.d.ts +5 -5
- package/dist/components/media/attachment-chip/attachment-chip.d.ts +1 -1
- package/dist/components/media/attachment-chip/file-size.d.ts +2 -2
- package/dist/components/media/attachment-trigger/attachment-trigger.class.d.ts +1 -1
- package/dist/components/media/attachment-trigger/attachment-trigger.d.ts +1 -1
- package/dist/components/media/av-player/av-cue-source.d.ts +3 -3
- package/dist/components/media/av-player/av-metadata.d.ts +1 -13
- package/dist/components/media/av-player/av-metadata.js +1 -1
- package/dist/components/media/av-player/av-player.class.d.ts +10 -10
- package/dist/components/media/av-player/av-player.class.js +1 -1
- package/dist/components/media/av-player/av-player.d.ts +1 -1
- package/dist/components/media/avatar/avatar.d.ts +1 -1
- package/dist/components/media/avatar-group/avatar-group.class.d.ts +2 -2
- package/dist/components/media/avatar-group/avatar-group.d.ts +1 -1
- package/dist/components/media/drop-zone/drop-zone.class.d.ts +3 -3
- package/dist/components/media/drop-zone/drop-zone.d.ts +1 -1
- package/dist/components/media/file-icon/file-icon.class.d.ts +5 -5
- package/dist/components/media/file-icon/file-icon.d.ts +1 -1
- package/dist/components/media/file-icon/file-type-metadata.d.ts +3 -3
- package/dist/components/media/file-input/file-input.class.d.ts +26 -29
- package/dist/components/media/file-input/file-input.class.js +3 -3
- package/dist/components/media/file-input/file-input.d.ts +1 -1
- package/dist/components/media/file-input/file-input.styles.js +1 -1
- package/dist/components/media/file-input/file-intake.d.ts +6 -6
- package/dist/components/media/flag/flag-url-resolver.d.ts +1 -1
- package/dist/components/media/flag/flag.class.d.ts +4 -4
- package/dist/components/media/flag/flag.d.ts +1 -1
- package/dist/components/media/image-comparer/image-comparer.class.d.ts +3 -3
- package/dist/components/media/image-viewer/image-viewer-limits.d.ts +1 -1
- package/dist/components/media/image-viewer/image-viewer-panorama.d.ts +5 -0
- package/dist/components/media/image-viewer/image-viewer-panorama.js +8 -0
- package/dist/components/media/image-viewer/image-viewer-panorama.styles.js +1 -0
- package/dist/components/media/image-viewer/image-viewer.class.d.ts +37 -13
- package/dist/components/media/image-viewer/image-viewer.class.js +8 -5
- package/dist/components/media/image-viewer/image-viewer.d.ts +1 -1
- package/dist/components/media/image-viewer/image-viewer.styles.js +1 -1
- package/dist/components/media/index.d.ts +1 -1
- package/dist/components/media/index.js +1 -1
- package/dist/components/media/lightbox/lightbox-types.d.ts +2 -2
- package/dist/components/media/lightbox/lightbox.class.d.ts +9 -9
- package/dist/components/media/lightbox/lightbox.d.ts +1 -1
- package/dist/components/media/map/map-anchor-controller.js +1 -0
- package/dist/components/media/map/map-anchor-options.d.ts +14 -0
- package/dist/components/media/map/map-anchor-options.js +1 -0
- package/dist/components/media/map/map-anchor-seam.js +1 -0
- package/dist/components/media/map/map-anchor.class.d.ts +79 -0
- package/dist/components/media/map/map-anchor.class.js +3 -0
- package/dist/components/media/map/map-anchor.d.ts +1 -0
- package/dist/components/media/map/map-anchor.js +1 -0
- package/dist/components/media/map/map-anchor.styles.js +1 -0
- package/dist/components/media/map/map-basemap-order.js +1 -0
- package/dist/components/media/map/map-camera.d.ts +34 -0
- package/dist/components/media/map/map-camera.js +1 -0
- package/dist/components/media/map/map-construction-scheduler.d.ts +13 -0
- package/dist/components/media/map/map-construction-scheduler.js +1 -0
- package/dist/components/media/map/map-control-options.d.ts +39 -0
- package/dist/components/media/map/map-control-options.js +1 -0
- package/dist/components/media/map/map-controls-lifecycle.js +1 -0
- package/dist/components/media/map/map-cursor.js +1 -0
- package/dist/components/media/map/map-data-layer-model.d.ts +40 -0
- package/dist/components/media/map/map-data-layer-model.js +1 -0
- package/dist/components/media/map/map-drawing-controller.js +1 -0
- package/dist/components/media/map/map-drawing-gesture.js +1 -0
- package/dist/components/media/map/map-drawing-pan.js +1 -0
- package/dist/components/media/map/map-drawing-pointer.js +1 -0
- package/dist/components/media/map/map-drawing.d.ts +29 -0
- package/dist/components/media/map/map-drawing.js +1 -0
- package/dist/components/media/map/map-empty-style.d.ts +8 -0
- package/dist/components/media/map/map-empty-style.js +1 -0
- package/dist/components/media/map/map-engine-events.js +1 -0
- package/dist/components/media/map/map-export-attribution.js +1 -0
- package/dist/components/media/map/map-external-source-effects.js +1 -0
- package/dist/components/media/map/map-feature-loader-core.js +1 -0
- package/dist/components/media/map/map-feature-loader.js +1 -0
- package/dist/components/media/map/map-feature-state-router.d.ts +16 -0
- package/dist/components/media/map/map-feature-state-router.js +1 -0
- package/dist/components/media/map/map-feature-state-routes.js +1 -0
- package/dist/components/media/map/map-feature-state.d.ts +16 -0
- package/dist/components/media/map/map-feature-state.js +1 -0
- package/dist/components/media/map/map-geojson-diff.d.ts +4 -4
- package/dist/components/media/map/map-hash-option.js +1 -0
- package/dist/components/media/map/map-hash-owner.js +1 -0
- package/dist/components/media/map/map-hash.js +1 -0
- package/dist/components/media/map/map-hit-test.d.ts +17 -0
- package/dist/components/media/map/map-hit-test.js +1 -0
- package/dist/components/media/map/map-image-admission.d.ts +7 -0
- package/dist/components/media/map/map-image-admission.js +1 -0
- package/dist/components/media/map/map-image-export-controller.js +1 -0
- package/dist/components/media/map/map-image-export-error.d.ts +3 -0
- package/dist/components/media/map/map-image-export-error.js +1 -0
- package/dist/components/media/map/map-image-export.d.ts +15 -0
- package/dist/components/media/map/map-image-export.js +5 -0
- package/dist/components/media/map/map-image-limits.d.ts +4 -0
- package/dist/components/media/map/map-image-limits.js +1 -0
- package/dist/components/media/map/map-image-metadata.js +3 -0
- package/dist/components/media/map/map-image-provider.d.ts +33 -0
- package/dist/components/media/map/map-image-provider.js +1 -0
- package/dist/components/media/map/map-images.d.ts +9 -0
- package/dist/components/media/map/map-images.js +1 -0
- package/dist/components/media/map/map-interaction-options.d.ts +26 -0
- package/dist/components/media/map/map-interaction-options.js +1 -0
- package/dist/components/media/map/map-layer-order.js +1 -0
- package/dist/components/media/map/map-loader.d.ts +47 -17
- package/dist/components/media/map/map-loader.js +1 -1
- package/dist/components/media/map/map-local-image-url.js +1 -0
- package/dist/components/media/map/map-local-image.js +1 -0
- package/dist/components/media/map/map-overlay-admission.d.ts +13 -0
- package/dist/components/media/map/map-overlay-admission.js +1 -0
- package/dist/components/media/map/map-owned-feature-input.js +1 -0
- package/dist/components/media/map/map-owned-features.js +1 -0
- package/dist/components/media/map/map-owned-resources.js +1 -0
- package/dist/components/media/map/map-paint-batch.js +1 -0
- package/dist/components/media/map/map-readers.js +1 -0
- package/dist/components/media/map/map-readiness.js +1 -0
- package/dist/components/media/map/map-resource-feature-loaders.js +1 -0
- package/dist/components/media/map/map-source-updates.js +1 -0
- package/dist/components/media/map/map-style-input.js +1 -0
- package/dist/components/media/map/map-style-lifecycle.js +1 -0
- package/dist/components/media/map/map-style-override-admission.d.ts +13 -0
- package/dist/components/media/map/map-style-override-admission.js +1 -0
- package/dist/components/media/map/map-style-overrides.js +1 -0
- package/dist/components/media/map/map-style-value.d.ts +3 -0
- package/dist/components/media/map/map-style-value.js +1 -0
- package/dist/components/media/map/map-vector-style.d.ts +10 -0
- package/dist/components/media/map/map-vector-style.js +1 -0
- package/dist/components/media/map/map.class.d.ts +642 -117
- package/dist/components/media/map/map.class.js +59 -11
- package/dist/components/media/map/map.d.ts +1 -1
- package/dist/components/media/map/map.styles.js +1 -1
- package/dist/components/media/media-card/media-card.class.d.ts +3 -3
- package/dist/components/media/media-card/media-card.d.ts +1 -1
- package/dist/components/media/pan-zoom/pan-zoom.class.d.ts +5 -5
- package/dist/components/media/qr-code/qr-code.class.d.ts +7 -9
- package/dist/components/media/qr-code/qr-code.class.js +1 -1
- package/dist/components/media/qr-code/qr-code.d.ts +1 -1
- package/dist/components/media/qr-code/qr-code.styles.js +1 -1
- package/dist/components/media/sequence-playback/sequence-playback.class.d.ts +13 -13
- package/dist/components/media/sequence-playback/sequence-playback.d.ts +1 -1
- package/dist/components/media/video/video.class.d.ts +56 -35
- package/dist/components/media/video/video.class.js +11 -3
- package/dist/components/media/video/video.d.ts +1 -1
- package/dist/components/media/video/video.styles.js +1 -1
- package/dist/components/media/video-playlist/video-playlist.class.d.ts +8 -9
- package/dist/components/media/video-playlist/video-playlist.class.js +1 -1
- package/dist/components/media/video-playlist/video-playlist.d.ts +1 -1
- package/dist/components/media/zoomable-frame/zoomable-frame.class.d.ts +15 -15
- package/dist/components/overlays/alert/alert.class.d.ts +6 -6
- package/dist/components/overlays/alert/alert.d.ts +1 -1
- package/dist/components/overlays/badge/badge.class.d.ts +3 -3
- package/dist/components/overlays/badge/badge.d.ts +1 -1
- package/dist/components/overlays/badge/tag.class.d.ts +5 -5
- package/dist/components/overlays/badge/tag.d.ts +1 -1
- package/dist/components/overlays/callout/callout.class.d.ts +4 -4
- package/dist/components/overlays/callout/callout.d.ts +1 -1
- package/dist/components/overlays/chip/chip-group.class.d.ts +1 -1
- package/dist/components/overlays/chip/chip-group.class.js +1 -1
- package/dist/components/overlays/chip/chip-group.d.ts +1 -1
- package/dist/components/overlays/chip/chip.class.d.ts +6 -6
- package/dist/components/overlays/chip/chip.d.ts +1 -1
- package/dist/components/overlays/context-menu/context-menu.class.d.ts +6 -6
- package/dist/components/overlays/context-menu/context-menu.d.ts +1 -1
- package/dist/components/overlays/dialog/confirm.d.ts +5 -5
- package/dist/components/overlays/dialog/confirm.js +1 -1
- package/dist/components/overlays/dialog/dialog.class.d.ts +8 -8
- package/dist/components/overlays/dialog/dialog.class.js +1 -1
- package/dist/components/overlays/dialog/dialog.d.ts +1 -1
- package/dist/components/overlays/drawer/drawer.class.d.ts +1 -1
- package/dist/components/overlays/drawer/drawer.d.ts +1 -1
- package/dist/components/overlays/empty/empty.class.d.ts +2 -2
- package/dist/components/overlays/empty/empty.d.ts +1 -1
- package/dist/components/overlays/kbd/kbd.class.d.ts +3 -3
- package/dist/components/overlays/kbd/kbd.d.ts +1 -1
- package/dist/components/overlays/overlay/dropdown.class.d.ts +10 -10
- package/dist/components/overlays/overlay/dropdown.d.ts +1 -1
- package/dist/components/overlays/overlay/overlay-arrow.d.ts +5 -5
- package/dist/components/overlays/overlay/overlay-shared.d.ts +6 -6
- package/dist/components/overlays/overlay/popover.class.d.ts +15 -15
- package/dist/components/overlays/overlay/popover.class.js +2 -1
- package/dist/components/overlays/overlay/popover.d.ts +1 -1
- package/dist/components/overlays/overlay/tooltip.class.d.ts +5 -5
- package/dist/components/overlays/overlay/tooltip.class.js +1 -1
- package/dist/components/overlays/overlay/tooltip.d.ts +1 -1
- package/dist/components/overlays/popup/popup.class.d.ts +20 -20
- package/dist/components/overlays/popup/popup.d.ts +1 -1
- package/dist/components/overlays/progress/progress-bar.class.d.ts +1 -1
- package/dist/components/overlays/progress/progress-bar.d.ts +1 -1
- package/dist/components/overlays/progress/progress-base.d.ts +6 -6
- package/dist/components/overlays/progress/progress-ring.class.d.ts +2 -2
- package/dist/components/overlays/progress/progress-ring.d.ts +1 -1
- package/dist/components/overlays/rating/rating.class.d.ts +10 -10
- package/dist/components/overlays/rating/rating.d.ts +1 -1
- package/dist/components/overlays/skeleton/skeleton.class.d.ts +1 -1
- package/dist/components/overlays/skeleton/skeleton.d.ts +1 -1
- package/dist/components/overlays/spinner/spinner.d.ts +1 -1
- package/dist/components/overlays/toast/toast-item.class.d.ts +6 -6
- package/dist/components/overlays/toast/toast-item.d.ts +1 -1
- package/dist/components/overlays/toast/toast.class.d.ts +7 -7
- package/dist/components/overlays/toast/toast.d.ts +1 -1
- package/dist/components/overlays/toast/toaster.d.ts +2 -2
- package/dist/components/retrieval/chunk-inspector/chunk-inspector.class.d.ts +15 -18
- package/dist/components/retrieval/chunk-inspector/chunk-inspector.class.js +2 -2
- package/dist/components/retrieval/chunk-inspector/chunk-inspector.d.ts +1 -1
- package/dist/components/retrieval/citation-badge/citation-badge.class.d.ts +1 -1
- package/dist/components/retrieval/citation-badge/citation-badge.d.ts +1 -1
- package/dist/components/retrieval/claim-evidence/claim-evidence.class.d.ts +5 -5
- package/dist/components/retrieval/claim-evidence/claim-evidence.d.ts +1 -1
- package/dist/components/retrieval/community-card/community-card.class.d.ts +5 -8
- package/dist/components/retrieval/community-card/community-card.class.js +1 -1
- package/dist/components/retrieval/community-card/community-card.d.ts +1 -1
- package/dist/components/retrieval/embedding-explorer/embedding-explorer-data.d.ts +12 -0
- package/dist/components/retrieval/embedding-explorer/embedding-explorer-data.js +1 -0
- package/dist/components/retrieval/embedding-explorer/embedding-explorer-engine.js +1 -0
- package/dist/components/retrieval/embedding-explorer/embedding-explorer.class.d.ts +29 -10
- package/dist/components/retrieval/embedding-explorer/embedding-explorer.class.js +35 -4
- package/dist/components/retrieval/embedding-explorer/embedding-explorer.d.ts +1 -1
- package/dist/components/retrieval/embedding-explorer/embedding-explorer.styles.js +1 -1
- package/dist/components/retrieval/entity-card/entity-card.class.d.ts +7 -7
- package/dist/components/retrieval/entity-card/entity-card.d.ts +1 -1
- package/dist/components/retrieval/entity-chip/entity-chip.class.d.ts +2 -2
- package/dist/components/retrieval/entity-chip/entity-chip.d.ts +1 -1
- package/dist/components/retrieval/entity-dossier/entity-dossier.class.d.ts +13 -19
- package/dist/components/retrieval/entity-dossier/entity-dossier.d.ts +1 -1
- package/dist/components/retrieval/graph/graph-builtin-3d-engine.js +1 -0
- package/dist/components/retrieval/graph/graph-engine-adapter.js +1 -0
- package/dist/components/retrieval/graph/graph-engine-columns.js +1 -0
- package/dist/components/retrieval/graph/graph-loader.d.ts +1 -1
- package/dist/components/retrieval/graph/graph-model.d.ts +16 -16
- package/dist/components/retrieval/graph/graph-model.js +1 -1
- package/dist/components/retrieval/graph/graph-spatial-controller.js +13 -8
- package/dist/components/retrieval/graph/graph-webgl-engine.js +1 -0
- package/dist/components/retrieval/graph/graph.class.d.ts +38 -25
- package/dist/components/retrieval/graph/graph.class.js +4 -4
- package/dist/components/retrieval/graph/graph.d.ts +1 -1
- package/dist/components/retrieval/graph/graph.styles.js +1 -1
- package/dist/components/retrieval/graph-legend/graph-legend.class.d.ts +4 -4
- package/dist/components/retrieval/graph-legend/graph-legend.d.ts +1 -1
- package/dist/components/retrieval/grounding-summary/grounding-summary.class.d.ts +6 -6
- package/dist/components/retrieval/grounding-summary/grounding-summary.d.ts +1 -1
- package/dist/components/retrieval/ingestion-queue/ingestion-queue.class.d.ts +10 -10
- package/dist/components/retrieval/ingestion-queue/ingestion-queue.class.js +2 -2
- package/dist/components/retrieval/ingestion-queue/ingestion-queue.d.ts +1 -1
- package/dist/components/retrieval/knowledge-base/knowledge-base.class.d.ts +16 -16
- package/dist/components/retrieval/knowledge-base/knowledge-base.d.ts +1 -1
- package/dist/components/retrieval/knowledge-base-admin/knowledge-base-admin.class.d.ts +3 -3
- package/dist/components/retrieval/knowledge-base-admin/knowledge-base-admin.d.ts +1 -1
- package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.class.d.ts +16 -13
- package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.class.js +3 -3
- package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.d.ts +1 -1
- package/dist/components/retrieval/memory-panel/memory-panel.class.d.ts +11 -18
- package/dist/components/retrieval/memory-panel/memory-panel.class.js +1 -1
- package/dist/components/retrieval/memory-panel/memory-panel.d.ts +1 -1
- package/dist/components/retrieval/mind-map/mind-map-layout.d.ts +6 -6
- package/dist/components/retrieval/mind-map/mind-map.class.d.ts +1 -1
- package/dist/components/retrieval/mind-map/mind-map.d.ts +1 -1
- package/dist/components/retrieval/neighbor-list/neighbor-list.class.d.ts +13 -13
- package/dist/components/retrieval/neighbor-list/neighbor-list.class.js +2 -2
- package/dist/components/retrieval/neighbor-list/neighbor-list.d.ts +1 -1
- package/dist/components/retrieval/node-palette/node-palette.class.d.ts +6 -6
- package/dist/components/retrieval/node-palette/node-palette.d.ts +1 -1
- package/dist/components/retrieval/path-strip/path-strip.class.d.ts +2 -5
- package/dist/components/retrieval/path-strip/path-strip.class.js +1 -1
- package/dist/components/retrieval/path-strip/path-strip.d.ts +1 -1
- package/dist/components/retrieval/provenance-panel/provenance-panel.class.d.ts +5 -11
- package/dist/components/retrieval/provenance-panel/provenance-panel.d.ts +1 -1
- package/dist/components/retrieval/rag-answer/rag-answer.class.d.ts +9 -9
- package/dist/components/retrieval/rag-answer/rag-answer.class.js +2 -3
- package/dist/components/retrieval/rag-answer/rag-answer.d.ts +1 -1
- package/dist/components/retrieval/rag-eval-dashboard/rag-eval-dashboard.class.d.ts +5 -15
- package/dist/components/retrieval/rag-eval-dashboard/rag-eval-dashboard.class.js +1 -1
- package/dist/components/retrieval/rag-eval-dashboard/rag-eval-dashboard.d.ts +1 -1
- package/dist/components/retrieval/research-progress/research-progress.class.d.ts +6 -6
- package/dist/components/retrieval/research-progress/research-progress.d.ts +1 -1
- package/dist/components/retrieval/retrieval-compare/retrieval-compare.class.d.ts +4 -4
- package/dist/components/retrieval/retrieval-compare/retrieval-compare.d.ts +1 -1
- package/dist/components/retrieval/retrieval-results/retrieval-results.class.d.ts +15 -19
- package/dist/components/retrieval/retrieval-results/retrieval-results.class.js +5 -6
- package/dist/components/retrieval/retrieval-results/retrieval-results.d.ts +1 -1
- package/dist/components/retrieval/retrieval-search/retrieval-search.class.d.ts +1 -1
- package/dist/components/retrieval/retrieval-search/retrieval-search.d.ts +1 -1
- package/dist/components/retrieval/retrieval-trace/retrieval-trace.class.d.ts +18 -21
- package/dist/components/retrieval/retrieval-trace/retrieval-trace.class.js +2 -3
- package/dist/components/retrieval/retrieval-trace/retrieval-trace.d.ts +1 -1
- package/dist/components/retrieval/source-card/source-card.class.d.ts +9 -12
- package/dist/components/retrieval/source-card/source-card.class.js +1 -1
- package/dist/components/retrieval/source-card/source-card.d.ts +1 -1
- package/dist/components/retrieval/source-list/source-list.class.d.ts +1 -1
- package/dist/components/retrieval/source-list/source-list.d.ts +1 -1
- package/dist/components/retrieval/source-picker/source-picker.class.d.ts +5 -8
- package/dist/components/retrieval/source-picker/source-picker.class.js +1 -1
- package/dist/components/retrieval/source-picker/source-picker.d.ts +1 -1
- package/dist/components/utility/copy-button/copy-button.class.d.ts +8 -8
- package/dist/components/utility/copy-button/copy-button.d.ts +1 -1
- package/dist/components/utility/diff-view/diff-line-diff.d.ts +1 -1
- package/dist/components/utility/diff-view/diff-view.class.d.ts +3 -3
- package/dist/components/utility/diff-view/diff-view.class.js +1 -1
- package/dist/components/utility/diff-view/diff-view.d.ts +1 -1
- package/dist/components/utility/divider/divider.class.d.ts +1 -1
- package/dist/components/utility/divider/divider.d.ts +1 -1
- package/dist/components/utility/export-button/csv.d.ts +2 -2
- package/dist/components/utility/export-button/export-button.class.d.ts +11 -11
- package/dist/components/utility/export-button/export-button.d.ts +1 -1
- package/dist/components/utility/format/format-bytes.d.ts +1 -1
- package/dist/components/utility/format/format-date.class.d.ts +1 -1
- package/dist/components/utility/format/format-date.d.ts +1 -1
- package/dist/components/utility/format/format-number.class.d.ts +2 -2
- package/dist/components/utility/format/format-number.d.ts +1 -1
- package/dist/components/utility/format/format-options.d.ts +4 -4
- package/dist/components/utility/format/format-options.js +1 -1
- package/dist/components/utility/format/relative-time.d.ts +1 -1
- package/dist/components/utility/icon/icon-library.d.ts +2 -2
- package/dist/components/utility/icon/icon.class.d.ts +10 -15
- package/dist/components/utility/icon/icon.class.js +2 -2
- package/dist/components/utility/icon/icon.d.ts +1 -1
- package/dist/components/utility/icon/icon.styles.js +1 -1
- package/dist/components/utility/intersection-observer/intersection-observer.class.d.ts +1 -1
- package/dist/components/utility/intersection-observer/intersection-observer.d.ts +1 -1
- package/dist/components/utility/json-viewer/json-viewer.class.d.ts +5 -5
- package/dist/components/utility/json-viewer/json-viewer.class.js +1 -1
- package/dist/components/utility/json-viewer/json-viewer.d.ts +1 -1
- package/dist/components/utility/known-date/known-date.class.d.ts +18 -21
- package/dist/components/utility/known-date/known-date.class.js +1 -1
- package/dist/components/utility/known-date/known-date.d.ts +1 -1
- package/dist/components/utility/live-region/live-region.class.d.ts +1 -1
- package/dist/components/utility/live-region/live-region.d.ts +1 -1
- package/dist/components/utility/mention-popover/mention-popover.class.d.ts +12 -11
- package/dist/components/utility/mention-popover/mention-popover.class.js +1 -1
- package/dist/components/utility/mention-popover/mention-popover.d.ts +1 -1
- package/dist/components/utility/mutation-observer/mutation-observer.class.d.ts +1 -1
- package/dist/components/utility/mutation-observer/mutation-observer.d.ts +1 -1
- package/dist/components/utility/poll-status/poll-status.class.d.ts +1 -1
- package/dist/components/utility/poll-status/poll-status.d.ts +1 -1
- package/dist/components/utility/random-content/random-content.class.d.ts +4 -4
- package/dist/components/utility/random-content/random-content.d.ts +1 -1
- package/dist/components/utility/resize-observer/resize-observer.d.ts +1 -1
- package/dist/components/utility/tour/tour.class.d.ts +8 -8
- package/dist/components/utility/tour/tour.d.ts +1 -1
- package/dist/components/utility/visually-hidden/visually-hidden.d.ts +1 -1
- package/dist/components/viewers/archive-viewer/archive-viewer.class.d.ts +3 -3
- package/dist/components/viewers/archive-viewer/archive-viewer.class.js +1 -1
- package/dist/components/viewers/archive-viewer/archive-viewer.d.ts +1 -1
- package/dist/components/viewers/calendar-viewer/calendar-loader.d.ts +1 -1
- package/dist/components/viewers/calendar-viewer/calendar-viewer.class.d.ts +6 -6
- package/dist/components/viewers/calendar-viewer/calendar-viewer.class.js +1 -1
- package/dist/components/viewers/calendar-viewer/calendar-viewer.d.ts +1 -1
- package/dist/components/viewers/contact-viewer/contact-viewer.class.d.ts +4 -4
- package/dist/components/viewers/contact-viewer/contact-viewer.class.js +1 -1
- package/dist/components/viewers/contact-viewer/contact-viewer.d.ts +1 -1
- package/dist/components/viewers/contact-viewer/vcard.d.ts +1 -1
- package/dist/components/viewers/csv-viewer/csv-viewer.class.d.ts +7 -7
- package/dist/components/viewers/csv-viewer/csv-viewer.d.ts +1 -1
- package/dist/components/viewers/dataset-viewer/dataset-viewer.class.d.ts +8 -8
- package/dist/components/viewers/dataset-viewer/dataset-viewer.d.ts +1 -1
- package/dist/components/viewers/document-compare/document-compare.class.d.ts +15 -15
- package/dist/components/viewers/document-compare/document-compare.d.ts +1 -1
- package/dist/components/viewers/document-preview/document-preview.class.d.ts +1 -1
- package/dist/components/viewers/document-preview/document-preview.class.js +1 -1
- package/dist/components/viewers/document-preview/document-preview.d.ts +1 -1
- package/dist/components/viewers/document-viewer/anchors.d.ts +7 -7
- package/dist/components/viewers/document-viewer/document-viewer-kinds.d.ts +1 -1
- package/dist/components/viewers/document-viewer/document-viewer-kinds.js +1 -1
- package/dist/components/viewers/document-viewer/document-viewer.class.d.ts +9 -9
- package/dist/components/viewers/document-viewer/document-viewer.class.js +1 -1
- package/dist/components/viewers/document-viewer/document-viewer.d.ts +1 -1
- package/dist/components/viewers/document-viewer/registry.d.ts +1 -69
- package/dist/components/viewers/document-viewer/registry.js +1 -1
- package/dist/components/viewers/docx-viewer/docx-viewer.class.d.ts +4 -4
- package/dist/components/viewers/docx-viewer/docx-viewer.class.js +1 -1
- package/dist/components/viewers/docx-viewer/docx-viewer.d.ts +1 -1
- package/dist/components/viewers/ebook-viewer/ebook-viewer.class.d.ts +2 -2
- package/dist/components/viewers/ebook-viewer/ebook-viewer.d.ts +1 -1
- package/dist/components/viewers/email-viewer/email-loader.d.ts +2 -2
- package/dist/components/viewers/email-viewer/email-viewer.class.d.ts +3 -3
- package/dist/components/viewers/email-viewer/email-viewer.class.js +1 -1
- package/dist/components/viewers/email-viewer/email-viewer.d.ts +1 -1
- package/dist/components/viewers/geojson-view/geojson-viewer.class.d.ts +2 -2
- package/dist/components/viewers/geojson-view/geojson-viewer.d.ts +1 -1
- package/dist/components/viewers/highlight-layer/highlight-layer.class.d.ts +1 -1
- package/dist/components/viewers/highlight-layer/highlight-layer.d.ts +1 -1
- package/dist/components/viewers/html-viewer/html-viewer.class.d.ts +5 -5
- package/dist/components/viewers/html-viewer/html-viewer.class.js +1 -1
- package/dist/components/viewers/html-viewer/html-viewer.d.ts +1 -1
- package/dist/components/viewers/include/include-resource.d.ts +1 -1
- package/dist/components/viewers/include/include.class.d.ts +2 -2
- package/dist/components/viewers/include/include.class.js +1 -1
- package/dist/components/viewers/include/include.d.ts +1 -1
- package/dist/components/viewers/index.d.ts +1 -1
- package/dist/components/viewers/index.js +1 -1
- package/dist/components/viewers/model-viewer/model-viewer-document.js +1 -0
- package/dist/components/viewers/model-viewer/model-viewer-loader.js +1 -0
- package/dist/components/viewers/model-viewer/model-viewer-register.d.ts +1 -0
- package/dist/components/viewers/model-viewer/model-viewer-register.js +1 -0
- package/dist/components/viewers/model-viewer/model-viewer-source.d.ts +1 -0
- package/dist/components/viewers/model-viewer/model-viewer-source.js +1 -0
- package/dist/components/viewers/model-viewer/model-viewer.class.d.ts +61 -0
- package/dist/components/viewers/model-viewer/model-viewer.class.js +9 -0
- package/dist/components/viewers/model-viewer/model-viewer.d.ts +1 -0
- package/dist/components/viewers/model-viewer/model-viewer.js +1 -0
- package/dist/components/viewers/model-viewer/model-viewer.styles.js +1 -0
- package/dist/components/viewers/notebook-viewer/notebook-viewer.class.d.ts +3 -3
- package/dist/components/viewers/notebook-viewer/notebook-viewer.class.js +2 -2
- package/dist/components/viewers/notebook-viewer/notebook-viewer.d.ts +1 -1
- package/dist/components/viewers/page-rail/page-rail.class.d.ts +5 -5
- package/dist/components/viewers/page-rail/page-rail.class.js +1 -1
- package/dist/components/viewers/page-rail/page-rail.d.ts +1 -1
- package/dist/components/viewers/page-rail/page-viewer-snapshot.d.ts +2 -2
- package/dist/components/viewers/pdf-viewer/pdf-viewer.class.d.ts +4 -4
- package/dist/components/viewers/pdf-viewer/pdf-viewer.class.js +1 -1
- package/dist/components/viewers/pdf-viewer/pdf-viewer.d.ts +1 -1
- package/dist/components/viewers/pptx-viewer/pptx-loader.d.ts +5 -5
- package/dist/components/viewers/pptx-viewer/pptx-viewer.class.d.ts +7 -7
- package/dist/components/viewers/pptx-viewer/pptx-viewer.class.js +3 -3
- package/dist/components/viewers/pptx-viewer/pptx-viewer.d.ts +1 -1
- package/dist/components/viewers/spreadsheet-viewer/spreadsheet-viewer.class.d.ts +9 -9
- package/dist/components/viewers/spreadsheet-viewer/spreadsheet-viewer.d.ts +1 -1
- package/dist/components/viewers/svg-viewer/svg-viewer.class.d.ts +1 -1
- package/dist/components/viewers/svg-viewer/svg-viewer.class.js +1 -1
- package/dist/components/viewers/svg-viewer/svg-viewer.d.ts +1 -1
- package/dist/components/viewers/table-viewer-shared.js +1 -1
- package/dist/components/viewers/viewer-diagnostics.d.ts +3 -3
- package/dist/components/viewers/viewer-source.d.ts +2 -2
- package/dist/components/viewers/xml-viewer/xml-viewer.class.d.ts +9 -9
- package/dist/components/viewers/xml-viewer/xml-viewer.class.js +1 -1
- package/dist/components/viewers/xml-viewer/xml-viewer.d.ts +1 -1
- package/dist/countries.d.ts +3 -3
- package/dist/currency.d.ts +5 -5
- package/dist/custom-elements-jsx.d.ts +1 -1
- package/dist/data-sources.d.ts +17 -17
- package/dist/events.d.ts +164 -119
- package/dist/framework-types.d.ts +4 -4
- package/dist/hydration.d.ts +1 -1
- package/dist/internal/a11y.d.ts +2 -2
- package/dist/internal/accessibility-visibility.d.ts +17 -17
- package/dist/internal/active-element.d.ts +1 -1
- package/dist/internal/anchor-target.d.ts +3 -3
- package/dist/internal/announcer.d.ts +18 -18
- package/dist/internal/ansi.d.ts +5 -3
- package/dist/internal/ansi.js +1 -1
- package/dist/internal/approval-wait-until.d.ts +1 -1
- package/dist/internal/autoloader-manifest.js +1 -1
- package/dist/internal/autoloader-tags.d.ts +1 -1
- package/dist/internal/autoloader-tags.js +1 -1
- package/dist/internal/av-metadata.d.ts +13 -0
- package/dist/internal/av-metadata.js +1 -0
- package/dist/internal/canvas-color.d.ts +1 -1
- package/dist/internal/catalog-picker.d.ts +1 -1
- package/dist/internal/clipboard.d.ts +5 -5
- package/dist/internal/collection-snapshot.js +1 -1
- package/dist/internal/component-loaders.generated.js +1 -1
- package/dist/internal/composed-tree.d.ts +2 -2
- package/dist/internal/converters.d.ts +10 -10
- package/dist/internal/css-length.d.ts +1 -1
- package/dist/internal/custom-element-upgrade-observer.d.ts +1 -1
- package/dist/internal/data-descriptors.d.ts +30 -0
- package/dist/internal/default-strings/agent-tools.generated.js +1 -1
- package/dist/internal/default-strings/charts.generated.js +1 -1
- package/dist/internal/default-strings/conversation.generated.js +1 -1
- package/dist/internal/default-strings/media.generated.js +1 -1
- package/dist/internal/default-strings/shared.generated.js +1 -1
- package/dist/internal/default-strings/viewers.generated.js +1 -1
- package/dist/internal/deferred-focus-return.d.ts +5 -5
- package/dist/internal/definition-registry.d.ts +2 -2
- package/dist/internal/deprecated-alias-types.d.ts +1 -1
- package/dist/internal/deprecated-aliases.d.ts +1 -1
- package/dist/internal/direct-form-associated.d.ts +4 -4
- package/dist/internal/document-renderer-registry.d.ts +75 -0
- package/dist/internal/document-renderer-registry.js +1 -0
- package/dist/internal/document-tokens.d.ts +1 -1
- package/dist/internal/docx-zip-admission.d.ts +1 -1
- package/dist/internal/drop-session-controller.d.ts +6 -6
- package/dist/internal/drop-session-controller.js +1 -1
- package/dist/internal/engine-3d-loader.d.ts +47 -0
- package/dist/internal/engine-3d-loader.js +1 -0
- package/dist/internal/engine-3d.d.ts +57 -0
- package/dist/internal/engine-3d.js +1 -0
- package/dist/internal/focus-navigation.d.ts +9 -9
- package/dist/internal/form-associated.d.ts +20 -20
- package/dist/internal/form-control-element.d.ts +6 -6
- package/dist/internal/heading-level.d.ts +1 -1
- package/dist/internal/hierarchy-source-controller.js +1 -1
- package/dist/internal/highlight-collection.d.ts +3 -3
- package/dist/internal/icons.d.ts +23 -23
- package/dist/internal/inherited-attribute-hub.d.ts +3 -3
- package/dist/internal/layered-layout.d.ts +8 -8
- package/dist/internal/locale-loader.d.ts +1 -1
- package/dist/internal/localization-runtime.d.ts +7 -7
- package/dist/internal/localization-runtime.js +1 -1
- package/dist/internal/localization-types.d.ts +2 -2
- package/dist/internal/localization.js +1 -1
- package/dist/internal/lyra-element.d.ts +19 -19
- package/dist/internal/lyra-element.js +1 -1
- package/dist/internal/match-constraint.d.ts +1 -1
- package/dist/internal/model-viewer-contract.d.ts +5 -0
- package/dist/internal/model-viewer-contract.js +1 -0
- package/dist/internal/node-type-style.d.ts +1 -1
- package/dist/internal/numbers.d.ts +12 -12
- package/dist/internal/optional-peer-capabilities.d.ts +9 -9
- package/dist/internal/overlay-manager.d.ts +22 -22
- package/dist/internal/overlay-manager.js +1 -1
- package/dist/internal/overlay-order.d.ts +3 -3
- package/dist/internal/overlay-stack.d.ts +3 -3
- package/dist/internal/package-metadata.js +1 -1
- package/dist/internal/positioner-geometry.d.ts +2 -2
- package/dist/internal/positioner.d.ts +26 -23
- package/dist/internal/positioner.js +1 -1
- package/dist/internal/registered-animation.d.ts +2 -2
- package/dist/internal/rendered-state.js +1 -1
- package/dist/internal/rendered-tree-traversal.d.ts +13 -13
- package/dist/internal/resource-loader.d.ts +7 -7
- package/dist/internal/root-registration-allowlist.js +1 -1
- package/dist/internal/safe-resource-cache.d.ts +3 -3
- package/dist/internal/scoped-definitions.generated.js +1 -1
- package/dist/internal/score-tiers.d.ts +2 -2
- package/dist/internal/selection-catalog.d.ts +3 -3
- package/dist/internal/semantic-variant.d.ts +3 -3
- package/dist/internal/shared-unions.d.ts +3 -3
- package/dist/internal/slugger.d.ts +1 -1
- package/dist/internal/stream-phase.d.ts +1 -1
- package/dist/internal/text-highlights.d.ts +4 -4
- package/dist/internal/text-quote.d.ts +18 -18
- package/dist/internal/text-viewer-target.d.ts +4 -4
- package/dist/internal/theme-watcher.d.ts +2 -2
- package/dist/internal/top-layer-escape.d.ts +1 -1
- package/dist/internal/typed-columns.d.ts +39 -0
- package/dist/internal/typed-columns.js +1 -0
- package/dist/internal/variant-values.d.ts +3 -3
- package/dist/internal/variants.d.ts +4 -4
- package/dist/localization.js +1 -1
- package/dist/lyra.d.ts +1 -1
- package/dist/lyra.js +1 -1
- package/dist/ssr/all.d.ts +1 -1
- package/dist/ssr/all.js +1 -1
- package/dist/ssr.d.ts +16 -16
- package/dist/ssr.js +1 -1
- package/dist/svelte.d.ts +1 -1
- package/dist/testing/happy-dom-shims.d.ts +3 -3
- package/dist/testing/interaction-drivers.d.ts +3 -3
- package/dist/testing/jsdom-shims.d.ts +9 -9
- package/dist/testing/lyra-tag-event-map.d.ts +2 -2
- package/dist/testing/lyra-tag-event-map.js +1 -1
- package/dist/testing/wait-for-mount.d.ts +3 -3
- package/dist/theme/chart-palette.d.ts +2 -2
- package/dist/theme/gemstones-data.d.ts +2 -2
- package/dist/theme/look-css.d.ts +2 -2
- package/dist/theme/looks/data.d.ts +1 -1
- package/dist/theme/looks/high-contrast.d.ts +1 -1
- package/dist/theme/looks/material.d.ts +1 -1
- package/dist/theme/looks/shadcn.d.ts +1 -1
- package/dist/theme/looks/terminal.d.ts +1 -1
- package/dist/theme/options/charts.d.ts +5 -5
- package/dist/theme/options/elevation.d.ts +1 -1
- package/dist/theme/options/shape.d.ts +1 -1
- package/dist/theme/options/typography.d.ts +1 -1
- package/dist/theme/preferences.d.ts +1 -1
- package/dist/theme/style-ownership.d.ts +1 -1
- package/dist/theme/theme-bootstrap.js +1 -1
- package/dist/theme/theme.d.ts +13 -13
- package/dist/theme/theme.js +1 -1
- package/dist/units.d.ts +2 -2
- package/dist/utilities/animation-registry.d.ts +5 -5
- package/dist/utilities/catalog.d.ts +1 -1
- package/dist/utilities/data-spatial.d.ts +9 -9
- package/dist/utilities/defined.d.ts +1 -1
- package/dist/utilities/deprecated-aliases.d.ts +1 -1
- package/dist/utilities/scoped-registry.d.ts +5 -5
- package/dist/vue.d.ts +3 -3
- package/llms/components/lr-accordion-item.md +2 -2
- package/llms/components/lr-agent-eval-dashboard.md +3 -3
- package/llms/components/lr-agent-run.md +3 -3
- package/llms/components/lr-agent-trace.md +1 -1
- package/llms/components/lr-agent-workspace.md +1 -1
- package/llms/components/lr-app-rail-item.md +1 -1
- package/llms/components/lr-app-rail.md +5 -6
- package/llms/components/lr-background-runs.md +4 -4
- package/llms/components/lr-calendar.md +1 -1
- package/llms/components/lr-change-review.md +5 -5
- package/llms/components/lr-chart-3d.md +164 -0
- package/llms/components/lr-chunk-inspector.md +4 -5
- package/llms/components/lr-citation-badge.md +1 -1
- package/llms/components/lr-code-block-core.md +2 -4
- package/llms/components/lr-command-palette.md +3 -3
- package/llms/components/lr-community-card.md +2 -2
- package/llms/components/lr-date-picker.md +1 -1
- package/llms/components/lr-details.md +2 -2
- package/llms/components/lr-diff-view.md +2 -2
- package/llms/components/lr-dock-panel.md +5 -10
- package/llms/components/lr-document-viewer.md +21 -14
- package/llms/components/lr-embedding-explorer.md +24 -4
- package/llms/components/lr-entity-dossier.md +3 -4
- package/llms/components/lr-eval-dataset.md +3 -3
- package/llms/components/lr-eval-run.md +7 -1
- package/llms/components/lr-file-input.md +10 -11
- package/llms/components/lr-flow-node.md +2 -3
- package/llms/components/lr-geojson-viewer.md +1 -1
- package/llms/components/lr-graph.md +21 -2
- package/llms/components/lr-grounding-summary.md +1 -1
- package/llms/components/lr-icon.md +1 -3
- package/llms/components/lr-image-viewer.md +29 -2
- package/llms/components/lr-ingestion-queue.md +1 -1
- package/llms/components/lr-knowledge-base-admin.md +2 -2
- package/llms/components/lr-knowledge-graph-explorer.md +7 -1
- package/llms/components/lr-known-date.md +3 -10
- package/llms/components/lr-lite-chart.md +1 -1
- package/llms/components/lr-locale-picker.md +11 -1
- package/llms/components/lr-map-anchor.md +165 -0
- package/llms/components/lr-map.md +939 -49
- package/llms/components/lr-markdown-core.md +1 -2
- package/llms/components/lr-memory-panel.md +4 -8
- package/llms/components/lr-model-viewer.md +170 -0
- package/llms/components/lr-navigation-menu.md +3 -4
- package/llms/components/lr-node-palette.md +1 -1
- package/llms/components/lr-path-strip.md +2 -3
- package/llms/components/lr-provenance-panel.md +3 -5
- package/llms/components/lr-qr-code.md +3 -4
- package/llms/components/lr-rag-answer.md +1 -1
- package/llms/components/lr-rag-eval-dashboard.md +2 -5
- package/llms/components/lr-retrieval-results.md +6 -7
- package/llms/components/lr-retrieval-trace.md +3 -4
- package/llms/components/lr-signature-pad.md +4 -3
- package/llms/components/lr-source-card.md +1 -1
- package/llms/components/lr-source-list.md +5 -5
- package/llms/components/lr-source-picker.md +2 -3
- package/llms/components/lr-span-waterfall.md +4 -3
- package/llms/components/lr-sparkline.md +3 -3
- package/llms/components/lr-subagent-panel.md +3 -3
- package/llms/components/lr-tool-call-chip.md +6 -6
- package/llms/components/lr-tool-timeline.md +1 -1
- package/llms/components/lr-tree.md +4 -0
- package/llms/components/lr-video-playlist.md +3 -3
- package/llms/components/lr-video.md +29 -2
- package/llms/components/lr-virtual-list.md +3 -2
- package/llms/components/lr-widget.md +6 -13
- package/llms/index.md +100 -96
- package/llms/migration.md +27 -38
- package/llms/peers.md +7 -6
- package/llms/shared/ai-and-peers.md +1 -1
- package/llms/shared/events-and-types.md +12 -0
- package/llms/shared/imports-and-registration.md +2 -2
- package/llms/shared/testing-and-utilities.md +6 -1
- package/llms/shared/v29-to-v30-migration.md +256 -0
- package/llms/shared.md +21 -4
- package/llms.txt +7 -7
- package/locales.json +1 -2328
- package/package.json +49 -14
- package/registrations.json +1 -1
- package/skills/lyra-ui/SKILL.md +4 -3
- /package/dist/{components/viewers/document-viewer → internal}/deferred-teardown.js +0 -0
- /package/dist/{components/viewers/document-viewer/registry-ownership.js → internal/document-renderer-registry-ownership.js} +0 -0
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
- **Status** `stable` since `4.0.0` — see the maturity and deprecation policy in `llms/shared.md`
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md); family-wide breaking-change summaries: [media](https://github.com/aceshooting/lyra-ui/blob/main/packages/lyra-ui/llms/media.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
|
-
- **Optional peers** `@aceshooting/lyra-map`, `maplibre-gl` — see `llms/peers.md`
|
|
12
|
-
- **Themeable via**
|
|
11
|
+
- **Optional peers** `@aceshooting/lyra-map`, `dompurify`, `maplibre-gl` — see `llms/peers.md`
|
|
12
|
+
- **Themeable via** 52 parts, 9 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
13
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
14
14
|
|
|
15
15
|
---
|
|
@@ -56,6 +56,501 @@ step base color again, as well as its opacity. These are paint-only updates on t
|
|
|
56
56
|
layer: the map instance, source, layer and viewport are preserved. Linear, logarithmic and step
|
|
57
57
|
modes use the same expression semantics at initial render and after a theme change.
|
|
58
58
|
|
|
59
|
+
**Readiness and declarative resources:** `whenStyleReady()` waits for the current style and
|
|
60
|
+
wrapper-owned resources for that style generation. After changing layer or source data on the same
|
|
61
|
+
style, await `whenIdle()` for the current resource and rendering work. Observe
|
|
62
|
+
`lr-map-style-load` and `lr-map-idle` for lifecycle notifications. Await these promises and handle
|
|
63
|
+
rejection when replacing styles or disconnecting; a returned `true` from a synchronous command
|
|
64
|
+
means admission, not asynchronous completion.
|
|
65
|
+
|
|
66
|
+
Replacing `mapStyle` with a URL rebuilds the native basemap with `setStyle(style, { diff: false })`
|
|
67
|
+
and waits for the replacement's committed `style.load` before restoring owned layers, images and
|
|
68
|
+
style overrides or reporting readiness. A style that supersedes an unfinished replacement also
|
|
69
|
+
uses a full replacement. This gives unchanged URL responses a reliable completion event, at the
|
|
70
|
+
cost of the peer's style-diff optimization. Inline replacements of an already loaded style keep
|
|
71
|
+
the peer's default diff behavior. These replacements preserve the map instance and camera.
|
|
72
|
+
|
|
73
|
+
**On-demand runtimes:** optional `lr-map` features load their code on first use, so a bundler that
|
|
74
|
+
splits chunks keeps them out of the initial bundle. Drawing and vertex editing load when `drawMode`
|
|
75
|
+
becomes `line` or `polygon` or `editDrawing()` is first called; `exportImage()` loads export
|
|
76
|
+
capture; `hash` loads URL ownership when it is anything but `false`, `null` or `undefined`;
|
|
77
|
+
`overlays`, `images`, `styleOverrides`, external data layers and `interactiveBasemapLayers` load
|
|
78
|
+
resource ownership when they are not the empty defaults; an `imageProvider` function loads
|
|
79
|
+
resource ownership too. Image preparation and basemap override ownership load only for
|
|
80
|
+
non-empty `images` and `styleOverrides`; `anchorLngLat` loads
|
|
81
|
+
anchor placement; the first native control (default attribution included) loads control
|
|
82
|
+
ownership; and the first `setFeatureState()`/`removeFeatureState()` loads feature state. Each
|
|
83
|
+
runtime is imported once per page and every element shares it. `whenStyleReady()` and
|
|
84
|
+
`whenIdle()` wait for a resource-ownership load and for any drawing, URL or feature-state load in
|
|
85
|
+
progress, so awaiting them is the deterministic way to wait; anchor placement, export and controls
|
|
86
|
+
stay asynchronous as before. Once a runtime has loaded, its APIs are synchronous again.
|
|
87
|
+
While one is loading, `editDrawing()`, `setFeatureState()` and `removeFeatureState()` return
|
|
88
|
+
`false` without retaining anything: await `whenIdle()` and call again. `undoDrawing()`,
|
|
89
|
+
`completeDrawing()`, `closeAnchor()` and `focusAnchor()` return `false` because no session or
|
|
90
|
+
placed anchor exists yet; `cancelDrawing()` still cancels an armed mode synchronously with the
|
|
91
|
+
usual `lr-map-draw-cancel` detail. A runtime that cannot load fails closed with the feature's
|
|
92
|
+
existing localized feedback: drawing shows its unavailable message, export rejects with
|
|
93
|
+
`capture-failed`, resources show the initialization fallback, URL ownership and requested controls
|
|
94
|
+
show the control-unavailable message (default attribution alone stays silent, as when its own code
|
|
95
|
+
cannot load), feature state shows its unavailable message, and an anchor stays hidden. Drawing
|
|
96
|
+
retries when drawing is requested again, feature state after a new style or connection, URL
|
|
97
|
+
ownership after reconnection, controls when they next change, export on its next call, and an
|
|
98
|
+
anchor for a new coordinate.
|
|
99
|
+
|
|
100
|
+
`overlays: LyraMapOverlays = {}` owns native `sources` (`{ id, source }`) and `layers`
|
|
101
|
+
(`{ layer, before?, interactive?, priority? }`). Descriptors are snapshotted as bounded plain data:
|
|
102
|
+
at most 128 sources and 128 layers, 50,000 values, 10,000 entries per array or record and 1 MiB of
|
|
103
|
+
text; a rejected assignment shows the localized initialization failure. A `geojson` source whose
|
|
104
|
+
`data` is a `Feature` or `FeatureCollection` object is the exception: that object is kept by
|
|
105
|
+
identity (its envelope is checked, its contents are left to the engine, as for `dataLayers`), so
|
|
106
|
+
large data stays outside that budget. That is the supported way to draw large styled GeoJSON with
|
|
107
|
+
native paint and layout expressions (`match`, `interpolate` on `["zoom"]`,
|
|
108
|
+
`["coalesce", ["feature-state", "x"], ["get", "x"]]`), `filter`, `minzoom`/`maxzoom`, symbol layers,
|
|
109
|
+
`before` ordering, interaction and feature state, all replayed after a `mapStyle` swap. Assign a new
|
|
110
|
+
`data` object (in a new `overlays` value) to update the native source in place with `setData`: its
|
|
111
|
+
layers stay, and its feature state is retired as for any data change. Mutating the retained object is
|
|
112
|
+
not observed; `updateSourceData(sourceId, diff)` also accepts an overlay GeoJSON source ID for
|
|
113
|
+
incremental diffs (re-applied from `data` after the next style swap). Hits skip an interactive layer
|
|
114
|
+
outside its `minzoom`/`maxzoom` at the fractional camera zoom, with `visibility: 'none'`, or whose
|
|
115
|
+
every opacity (a constant or a `["zoom"]`-driven `interpolate`/`step`) is `0`, so a hidden tier never
|
|
116
|
+
shadows a visible one.
|
|
117
|
+
|
|
118
|
+
Reassign a fresh `overlays` snapshot to change an owned layer's `paint`, `layout`, `filter`,
|
|
119
|
+
`minzoom` or `maxzoom`. When its `id`, `type`, source/source-layer binding and other structural
|
|
120
|
+
fields stay the same and its source does not need replacement, the wrapper applies those mutable
|
|
121
|
+
fields in place. Removed paint and layout
|
|
122
|
+
keys are unset; removing `filter` clears it, and omitted zoom bounds return to `0`/`24`. The native
|
|
123
|
+
source and layer stay installed, so feature state, image references and interaction attribution
|
|
124
|
+
survive the change. The `before` order planner also runs when a snapshot changes. Changing a
|
|
125
|
+
structural field, or using a peer without the needed mutation methods, takes the existing
|
|
126
|
+
remove/add path instead. A failed native mutation is rolled back while the current peer can still
|
|
127
|
+
be used; if restoration fails, ownership stays uncertain until a fresh style or peer can rebuild
|
|
128
|
+
the resources. Failures
|
|
129
|
+
produce the localized resource error, without exposing the native exception or claiming readiness
|
|
130
|
+
for a partial update. Keep the application snapshot authoritative and await `whenIdle()` after a
|
|
131
|
+
successful assignment before relying on the new rendering.
|
|
132
|
+
|
|
133
|
+
```js
|
|
134
|
+
mapEl.overlays = {
|
|
135
|
+
sources: [{ id: 'communes', source: { type: 'geojson', data: communes /* 600k values */, promoteId: 'code' } }],
|
|
136
|
+
layers: [{ interactive: true, before: 'place-labels', layer: {
|
|
137
|
+
id: 'communes-fill', type: 'fill', source: 'communes', minzoom: 9, maxzoom: 14,
|
|
138
|
+
filter: ['==', ['get', 'level'], 'commune'],
|
|
139
|
+
paint: {
|
|
140
|
+
'fill-color': ['coalesce', ['feature-state', 'color'], ['get', 'color']],
|
|
141
|
+
'fill-opacity': ['interpolate', ['linear'], ['zoom'], 9, 0, 10, 0.6],
|
|
142
|
+
},
|
|
143
|
+
} }],
|
|
144
|
+
};
|
|
145
|
+
mapEl.setFeatureState({ origin: 'overlay', source: 'communes', id: 'LU0101' }, { color: '#0d6efd' });
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
### Composing independent map modules
|
|
149
|
+
|
|
150
|
+
Keep one application owner of `overlays`. For example, publish eight module snapshots in this
|
|
151
|
+
explicit bottom-to-top order: districts, parcels, roads, transit, water, sensors, alerts, selection.
|
|
152
|
+
Each controller returns immutable `sources` and `layers` arrays with globally unique stable IDs
|
|
153
|
+
such as `city:roads:data` and `city:roads:fill`. These are application IDs; the aggregator never
|
|
154
|
+
prefixes or rewrites them. Freeze nested descriptor values too and treat retained GeoJSON as
|
|
155
|
+
immutable; create fresh descriptors when a controller changes. Keep large `data` objects by
|
|
156
|
+
reference instead of cloning or serializing them.
|
|
157
|
+
|
|
158
|
+
The tested **Independent Modules** story uses the following pure composition pattern (trusted
|
|
159
|
+
application snapshots, not an admission boundary for untrusted objects):
|
|
160
|
+
|
|
161
|
+
```ts
|
|
162
|
+
import type { LyraMapOverlays } from '@aceshooting/lyra-ui/components/media/map/map.class.js';
|
|
163
|
+
|
|
164
|
+
/** Application example, shared by the composition story and its tests. */
|
|
165
|
+
export const MAP_MODULE_ORDER = Object.freeze([
|
|
166
|
+
'districts', 'parcels', 'roads', 'transit', 'water', 'sensors', 'alerts', 'selection',
|
|
167
|
+
] as const);
|
|
168
|
+
export type MapModuleName = typeof MAP_MODULE_ORDER[number];
|
|
169
|
+
export type MapModuleSnapshot = Required<LyraMapOverlays>;
|
|
170
|
+
export type MapModules = Readonly<Partial<Record<MapModuleName, MapModuleSnapshot>>>;
|
|
171
|
+
|
|
172
|
+
/** Match descriptor admission limits before publication, without visiting GeoJSON contents.
|
|
173
|
+
* This example accepts plain immutable application descriptors, not canvas/other native objects. */
|
|
174
|
+
function validateDescriptors(sources: NonNullable<LyraMapOverlays['sources']>, layers: NonNullable<LyraMapOverlays['layers']>): void {
|
|
175
|
+
if (sources.length > 128 || layers.length > 128) throw new Error('limit');
|
|
176
|
+
let values = 0, text = 0;
|
|
177
|
+
const visiting = new WeakSet<object>();
|
|
178
|
+
const fail = (): never => { throw new Error('invalid-descriptor'); };
|
|
179
|
+
const plain = (value: unknown): value is Record<string, unknown> => value !== null && typeof value === 'object' &&
|
|
180
|
+
(Object.getPrototypeOf(value) === Object.prototype || Object.getPrototypeOf(value) === null);
|
|
181
|
+
const plainArray = (value: unknown): value is unknown[] => Array.isArray(value) && Object.getPrototypeOf(value) === Array.prototype;
|
|
182
|
+
const own = (value: object, key: string): unknown => {
|
|
183
|
+
const descriptor = Object.getOwnPropertyDescriptor(value, key);
|
|
184
|
+
if (!descriptor) return undefined;
|
|
185
|
+
if (!Object.hasOwn(descriptor, 'value')) return fail();
|
|
186
|
+
return descriptor.value;
|
|
187
|
+
};
|
|
188
|
+
const safeKey = (key: string): void => { if (['__proto__', 'prototype', 'constructor'].includes(key)) fail(); };
|
|
189
|
+
const addText = (value: string): void => { text += value.length; if (text > 1_048_576) throw new Error('limit'); };
|
|
190
|
+
const walk = (value: unknown, depth: number): void => {
|
|
191
|
+
values += 1;
|
|
192
|
+
if (values > 50_000 || depth > 24) throw new Error('limit');
|
|
193
|
+
if (value === null || typeof value === 'boolean') return;
|
|
194
|
+
if (typeof value === 'string') { addText(value); return; }
|
|
195
|
+
if (typeof value === 'number') { if (!Number.isFinite(value)) fail(); return; }
|
|
196
|
+
if (typeof value !== 'object' || visiting.has(value)) return fail();
|
|
197
|
+
visiting.add(value);
|
|
198
|
+
try {
|
|
199
|
+
if (plainArray(value)) {
|
|
200
|
+
if (value.length > 10_000) throw new Error('limit');
|
|
201
|
+
for (let i = 0; i < value.length; i++) walk(own(value, String(i)), depth + 1);
|
|
202
|
+
} else {
|
|
203
|
+
if (!plain(value)) fail();
|
|
204
|
+
const keys = Object.keys(value);
|
|
205
|
+
if (keys.length > 10_000) throw new Error('limit');
|
|
206
|
+
for (const key of keys) {
|
|
207
|
+
safeKey(key);
|
|
208
|
+
const descriptor = Object.getOwnPropertyDescriptor(value, key);
|
|
209
|
+
if (!descriptor || !Object.hasOwn(descriptor, 'value')) fail();
|
|
210
|
+
addText(key); walk(descriptor!.value, depth + 1);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
} finally { visiting.delete(value); }
|
|
214
|
+
};
|
|
215
|
+
for (const { source } of sources) {
|
|
216
|
+
if (!plain(source)) fail();
|
|
217
|
+
const type = own(source, 'type');
|
|
218
|
+
if (typeof type !== 'string' || !/^[a-z][a-z0-9-]{0,63}$/u.test(type)) fail();
|
|
219
|
+
const data = own(source, 'data');
|
|
220
|
+
const envelope = plain(data) && (own(data, 'type') === 'FeatureCollection' && plainArray(own(data, 'features')) ||
|
|
221
|
+
own(data, 'type') === 'Feature' && (own(data, 'geometry') === null || plain(own(data, 'geometry'))));
|
|
222
|
+
if (type === 'geojson' && envelope) {
|
|
223
|
+
const keys = Object.keys(source);
|
|
224
|
+
if (keys.length > 10_000) throw new Error('limit');
|
|
225
|
+
for (const key of keys) {
|
|
226
|
+
safeKey(key); addText(key);
|
|
227
|
+
const value = own(source, key);
|
|
228
|
+
if (key !== 'data') walk(value, 1);
|
|
229
|
+
}
|
|
230
|
+
continue;
|
|
231
|
+
}
|
|
232
|
+
walk(source, 0);
|
|
233
|
+
}
|
|
234
|
+
for (const { layer } of layers) {
|
|
235
|
+
if (typeof layer.type !== 'string' || !/^[a-z][a-z0-9-]{0,63}$/u.test(layer.type)) fail();
|
|
236
|
+
if (layer['source'] !== undefined && typeof layer['source'] !== 'string') fail();
|
|
237
|
+
walk(layer, 0);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
function canonicalId(id: string): string {
|
|
241
|
+
if (!id || id !== id.trim() || id.length > 128 || ['__proto__', 'prototype', 'constructor'].includes(id))
|
|
242
|
+
throw new Error('noncanonical-id');
|
|
243
|
+
return id;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/** Compose trusted application snapshots. IDs are never rewritten. External dependencies are
|
|
247
|
+
* declared explicitly; callers must refresh those inventories when their basemap changes. */
|
|
248
|
+
export function composeMapModules(modules: MapModules, external: {
|
|
249
|
+
readonly sources: readonly string[]; readonly layers: readonly string[];
|
|
250
|
+
} = { sources: [], layers: [] }): LyraMapOverlays {
|
|
251
|
+
const sources = MAP_MODULE_ORDER.flatMap(name => modules[name]?.sources ?? []);
|
|
252
|
+
const layers = MAP_MODULE_ORDER.flatMap(name => modules[name]?.layers ?? []);
|
|
253
|
+
validateDescriptors(sources, layers);
|
|
254
|
+
const sourceIds = new Set(external.sources.map(canonicalId)), layerIds = new Set(external.layers.map(canonicalId));
|
|
255
|
+
for (const entry of sources) {
|
|
256
|
+
canonicalId(entry.id);
|
|
257
|
+
if (sourceIds.has(entry.id)) throw new Error(`duplicate-source:${entry.id}`);
|
|
258
|
+
sourceIds.add(entry.id);
|
|
259
|
+
}
|
|
260
|
+
for (const entry of layers) {
|
|
261
|
+
canonicalId(entry.layer.id);
|
|
262
|
+
if (layerIds.has(entry.layer.id)) throw new Error(`duplicate-layer:${entry.layer.id}`);
|
|
263
|
+
layerIds.add(entry.layer.id);
|
|
264
|
+
}
|
|
265
|
+
for (const entry of layers) {
|
|
266
|
+
const source = entry.layer['source'];
|
|
267
|
+
if (typeof source === 'string') canonicalId(source);
|
|
268
|
+
if (entry.before !== undefined) canonicalId(entry.before);
|
|
269
|
+
if (typeof source === 'string' && !sourceIds.has(source)) throw new Error(`missing-source:${source}`);
|
|
270
|
+
if (entry.before !== undefined && !layerIds.has(entry.before)) throw new Error(`missing-layer:${entry.before}`);
|
|
271
|
+
}
|
|
272
|
+
const before = new Map(layers.map(entry => [entry.layer.id, entry.before]));
|
|
273
|
+
for (const { layer } of layers) {
|
|
274
|
+
const seen = new Set<string>(); let next: string | undefined = layer.id;
|
|
275
|
+
while (next !== undefined && before.has(next)) {
|
|
276
|
+
if (seen.has(next)) throw new Error(`cycle:${next}`);
|
|
277
|
+
seen.add(next); next = before.get(next);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
// The component remains responsible for native order planning and bounded descriptor admission.
|
|
281
|
+
return Object.freeze({ sources: Object.freeze(sources), layers: Object.freeze(layers) });
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/** An application controller calls this once after batching its module changes. Validation runs
|
|
285
|
+
* before the sole assignment; failures leave both the map and the last successful input intact. */
|
|
286
|
+
export function createMapModulePublisher(assign: (overlays: LyraMapOverlays) => void) {
|
|
287
|
+
let previous: MapModules | undefined;
|
|
288
|
+
return (modules: MapModules): boolean => {
|
|
289
|
+
if (previous && MAP_MODULE_ORDER.every(name => previous?.[name] === modules[name])) return false;
|
|
290
|
+
const overlays = composeMapModules(modules);
|
|
291
|
+
assign(overlays);
|
|
292
|
+
previous = Object.freeze({ ...modules });
|
|
293
|
+
return true;
|
|
294
|
+
};
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
const publish = createMapModulePublisher(value => { mapEl.overlays = value; });
|
|
299
|
+
try { publish(moduleSnapshots); }
|
|
300
|
+
catch (error) { reportCompositionDiagnostic(error); }
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
Collect all IDs before checking dependencies so modules can reference another module's source or
|
|
304
|
+
`before` layer regardless of publication order. If referencing basemap IDs, explicitly supply their
|
|
305
|
+
current source/layer inventories to validation, check collisions with them, and refresh those
|
|
306
|
+
inventories when changing styles. The self-contained example needs no external inventories.
|
|
307
|
+
This application preflight rejects noncanonical IDs (including surrounding whitespace), duplicate IDs, missing dependencies, cycles and the same aggregate descriptor budgets before assignment. It accepts trusted plain immutable native descriptors; canvas/native-object sources need their own validated application adapter. GeoJSON envelopes retain opaque data by identity outside the descriptor walk. Native option semantics remain the selected engine's responsibility. The map repeats bounded admission and native order planning; splitting resources into modules does not raise its limits.
|
|
308
|
+
|
|
309
|
+
A publisher can retain the last successful module references and skip publication when all eight
|
|
310
|
+
references are unchanged. Publish a fresh module snapshot on each change, then compose and make
|
|
311
|
+
exactly one assignment for the batch. Only update that reference cache after successful composition
|
|
312
|
+
and assignment. Duplicate IDs or missing dependencies reject the whole composition with a stable
|
|
313
|
+
application diagnostic; the last assigned aggregate remains intact. Remove a module by omitting its
|
|
314
|
+
snapshot, and resolve any dependent descriptors in the same batch. Unrelated module snapshots,
|
|
315
|
+
descriptors and GeoJSON retain their identity. Composition does not replace the map's native
|
|
316
|
+
lifecycle: resources replay after style changes, clicks keep `hit.origin === 'overlay'` and their
|
|
317
|
+
`sourceId`, and `setFeatureState({ origin: 'overlay', source: sourceId, id }, patch)` keeps the normal
|
|
318
|
+
identity and retirement rules described below. The story demonstrates style replay, attributed
|
|
319
|
+
selection, a module update/removal and a rejected conflicting module.
|
|
320
|
+
|
|
321
|
+
`images: readonly LyraMapImage[] = []` registers bounded image descriptors (`id`, `source`,
|
|
322
|
+
`width`, `height`, `pixelRatio`, `sdf?`), with SVG markup or a safe URL as the source: up to 1,024
|
|
323
|
+
images within an aggregate budget of 16,777,216 backing pixels and 8 MiB of encoded input, so a
|
|
324
|
+
sprite catalog fits. `sdf: true` registers a signed-distance-field image that `icon-color` and
|
|
325
|
+
`icon-halo-color` recolor. Reassigning `images` adds, replaces and removes images in place, without
|
|
326
|
+
removing or re-adding the layers that use them. These resources are restored after style
|
|
327
|
+
replacement; keep IDs distinct from basemap and generated resources.
|
|
328
|
+
|
|
329
|
+
`imageProvider?: LyraMapImageProvider` (attribute: false) supplies images on demand:
|
|
330
|
+
`(id) => LyraMapImage | null | undefined` (or a promise of one), called through the engine's
|
|
331
|
+
missing-image hook for an image ID a layer needs that neither `images` nor the basemap sprite has.
|
|
332
|
+
Return a descriptor with the same `id`; it is sanitized and rasterized like an `images` entry and
|
|
333
|
+
shares their count and pixel budget. A declined, invalid, failing or over-budget image stays missing
|
|
334
|
+
(development-mode warning) without failing the map. Each ID is asked once per provider and its
|
|
335
|
+
pixels are re-added after a style swap; an ID later assigned through `images` is handed over to it,
|
|
336
|
+
and replacing or clearing the provider removes what it supplied. The engine waits for the provider
|
|
337
|
+
before laying out the symbols that need it, so `whenIdle()` covers it.
|
|
338
|
+
|
|
339
|
+
```js
|
|
340
|
+
mapEl.imageProvider = async (id) => id.startsWith('poi-')
|
|
341
|
+
? { id, source: { kind: 'url', url: `/sprites/${id}.svg` }, width: 32, height: 32, pixelRatio: 2 }
|
|
342
|
+
: undefined;
|
|
343
|
+
```
|
|
344
|
+
|
|
345
|
+
`styleOverrides: readonly LyraMapStyleOverride[] = []` applies `paint` and `layout` records by `layerId` to existing unowned style layers. Reassign fresh
|
|
346
|
+
descriptors to change desired state; unsupported or conflicting resources fail closed.
|
|
347
|
+
|
|
348
|
+
An override can also set `before: 'layer-or-group-id'` to move its matched basemap layers below a
|
|
349
|
+
native layer or public overlay group, or `before: null` to move them above all other layers.
|
|
350
|
+
Omitting `before` leaves placement unowned; removing it restores the original position relative to
|
|
351
|
+
surviving unowned successors. Active managed placement takes precedence. This uses native moves
|
|
352
|
+
only, without copying sources or recreating layers.
|
|
353
|
+
Selector matches move as one group in their original style order; explicit-id and earlier-selector
|
|
354
|
+
precedence applies to the entire entry, including placement. A concrete member used as an anchor
|
|
355
|
+
names its whole managed group. Missing anchors append with a dev-mode warning; self-anchors,
|
|
356
|
+
identity conflicts and cycles across basemap and owned groups reject before resource mutation.
|
|
357
|
+
Ordering-enabled overrides share the 128-group and 4,096-total-layer limits with owned overlays;
|
|
358
|
+
the existing 64-entry and 1,024-selector-match limits still apply.
|
|
359
|
+
|
|
360
|
+
A basemap subject absent from the current style is deferred, including its paint/layout overrides,
|
|
361
|
+
without failing readiness. Later reconciliation or style loading retries it, so one stable binding
|
|
362
|
+
can name alternative provider layer IDs without clearing and rebinding around a style change.
|
|
363
|
+
Observed absence discards the former restoration baseline. Owned subjects, invalid input, peer
|
|
364
|
+
errors and ordering cycles still fail.
|
|
365
|
+
|
|
366
|
+
Unrelated layers keep their relative order. Changing `before` retains the restoration baseline;
|
|
367
|
+
an observed external relocation updates it while the explicit placement remains authoritative.
|
|
368
|
+
An external relocation observed before the next reconciliation or just before removal wins over
|
|
369
|
+
the former baseline. During owned-resource reconciliation, changes solely relative to owned IDs
|
|
370
|
+
cannot be distinguished from controlled removal/recreation: controlled placement takes precedence,
|
|
371
|
+
while changes across surviving unowned basemap IDs can still establish a new baseline. A new style
|
|
372
|
+
captures a new baseline, and observed missing layers lose their old baseline. As with paint
|
|
373
|
+
overrides, an external remove-and-recreate under the same ID without an observable absence needs a new style generation
|
|
374
|
+
to distinguish the replacement. Basemap overrides cannot move generated or registered layers:
|
|
375
|
+
use those layers' own `before` field.
|
|
376
|
+
|
|
377
|
+
```js
|
|
378
|
+
map.styleOverrides = [{ sourceLayer: 'boundary', layerType: 'line', before: null }];
|
|
379
|
+
// Release placement ownership and restore surviving original positions.
|
|
380
|
+
map.styleOverrides = [];
|
|
381
|
+
```
|
|
382
|
+
|
|
383
|
+
An overlay layer's `source` may name a source of the basemap style itself rather than one of
|
|
384
|
+
`overlays.sources`, for example a vector tile source plus its `source-layer`, so you can add a
|
|
385
|
+
highlight or a restyled copy of basemap features without registering the source twice; the layer is
|
|
386
|
+
restored after every style swap whose new style still defines that source. Color-valued `paint`
|
|
387
|
+
strings in overlay layers and `styleOverrides` may be theme tokens (`var(--brand)`), `currentColor`
|
|
388
|
+
or CSS color functions (`oklch()`, `color-mix()`, `light-dark()`, …), also inside expressions. They
|
|
389
|
+
resolve against the host, convert to sRGB (engines parse only sRGB notations) and re-resolve when an
|
|
390
|
+
ancestor theme, class, style or color scheme changes; an unresolvable token fails closed like any
|
|
391
|
+
other invalid resource.
|
|
392
|
+
|
|
393
|
+
```js
|
|
394
|
+
map.overlays = {
|
|
395
|
+
layers: [{ layer: { id: 'poi-highlight', type: 'circle', source: 'openmaptiles', 'source-layer': 'poi',
|
|
396
|
+
paint: { 'circle-color': 'var(--lr-color-brand)', 'circle-radius': 6 } } }],
|
|
397
|
+
};
|
|
398
|
+
```
|
|
399
|
+
|
|
400
|
+
**Basemap selectors and the style catalog:** an `interactiveBasemapLayers` or `styleOverrides`
|
|
401
|
+
entry names one layer by `layerId`, or selects every layer of the current style whose `source`,
|
|
402
|
+
`sourceLayer` and `layerType` match the fields it gives (`LyraMapStyleLayerSelector`), for example
|
|
403
|
+
`{ sourceLayer: 'poi', layerType: 'symbol', paint: { 'icon-opacity': 0.4 } }`. An explicit id wins
|
|
404
|
+
over a selector and an earlier selector over a later one; an entry with both an id and a selector,
|
|
405
|
+
or with an empty selector, fails closed. Selectors re-match after each style swap, and a selector
|
|
406
|
+
may expand to at most 1,024 overridden layers. The read-only `styleLayers`
|
|
407
|
+
(`{ id, type, source?, sourceLayer? }[]`, at most 4,096) and `styleSources` (`{ id, type }[]`, at
|
|
408
|
+
most 1,024) list what the current `mapStyle` loaded, before the element added its own resources.
|
|
409
|
+
Both are frozen, empty until the style has loaded and replaced on every style swap; read them after
|
|
410
|
+
`lr-map-style-load` or `whenStyleReady()`.
|
|
411
|
+
|
|
412
|
+
`LyraMapDataLayer` includes GeoJSON and explicitly discriminated `vector`, `raster`, `image`, and
|
|
413
|
+
`canvas` descriptors. Tile descriptors use `source`; vector descriptors also require `sourceLayer`
|
|
414
|
+
and `render`. Image descriptors use `url` and canvas descriptors retain an `HTMLCanvasElement`;
|
|
415
|
+
both require four `coordinates` ordered top-left, top-right, bottom-right, bottom-left. External
|
|
416
|
+
layers accept `before`, `minZoom`, `maxZoom`, `opacity`, and `category`. GeoJSON and vector labels
|
|
417
|
+
use `label: LyraMapLabelOptions` with exactly one `field` or `expression`; text needs a style with
|
|
418
|
+
a glyph provider. Image/canvas interaction tests the full four-corner footprint, including
|
|
419
|
+
transparent pixels, and reports `sourceId` without inventing feature identity or `sourceLayer`.
|
|
420
|
+
|
|
421
|
+
For a retained canvas, change `redrawRevision` (default `0`, a nonnegative safe integer) in a
|
|
422
|
+
fresh `dataLayers` array after drawing. With `animate: false`, this uploads the new pixels once
|
|
423
|
+
without replacing the source or its layers. Repeating a revision does not request another upload.
|
|
424
|
+
An already animated canvas keeps its animation policy. Coordinate and revision changes can be
|
|
425
|
+
assigned together. Missing native upload support fails through the map's resource-error path.
|
|
426
|
+
|
|
427
|
+
Image-layer `url` also accepts strict base64 PNG/JPEG/WebP data URLs and blob URLs from the
|
|
428
|
+
current document origin. SVG and other local formats are rejected. Local image preparation has a
|
|
429
|
+
1 MiB byte limit, a 2,048-pixel per-axis limit, a 4,194,304-pixel limit and a 15-second deadline.
|
|
430
|
+
The map owns a separately validated object URL; it never revokes the caller's blob URL. Retained
|
|
431
|
+
local URLs share an 8 MiB encoded-byte retention budget, including older URLs awaiting native retirement.
|
|
432
|
+
This local-source budget is separate from the atlas-image budget used by `images` and `imageProvider`.
|
|
433
|
+
Keep an input blob URL available until preparation finishes. The owned URL survives style replay
|
|
434
|
+
and is released after its native use retires or the map disconnects. Tile and style URLs keep
|
|
435
|
+
their HTTP(S)-only policy.
|
|
436
|
+
|
|
437
|
+
Paint-only data-layer and choropleth changes request one repaint per synchronous mutation batch.
|
|
438
|
+
Equal paint produces no repaint; camera movement is not needed to show a metric or theme change.
|
|
439
|
+
|
|
440
|
+
**Interactions:** opt in with `interactive` and optional `priority` on a data layer, choropleth or
|
|
441
|
+
owned overlay layer; `interactiveBasemapLayers = []` explicitly enrolls basemap layers.
|
|
442
|
+
`lr-map-click`, `lr-map-contextmenu`, `lr-map-feature-enter`, and `lr-map-feature-leave` report routed interaction data;
|
|
443
|
+
legacy `lr-map-click` and cluster payloads remain available. `pickMode = false` enables a temporary
|
|
444
|
+
coordinate-picking session when set to true; `lr-map-pick` also supports keyboard center selection.
|
|
445
|
+
`setFeatureState(target, patch)`, `getFeatureState(target)`, and `removeFeatureState(target, key?)`
|
|
446
|
+
use stable source/feature IDs and an optional `origin` (`choropleth`, `data-layer`, `overlay`, or
|
|
447
|
+
`basemap`). Check boolean admission and retain application state across source identity changes;
|
|
448
|
+
the first write returns `false` while the feature-state runtime loads (see **On-demand runtimes**).
|
|
449
|
+
`hash = false` opts out of URL camera synchronization; use true or a distinct string key to opt in.
|
|
450
|
+
With `hashFormat: LyraMapHashFormat = 'named'` (attribute `hash-format`) the camera is the
|
|
451
|
+
`#map=zoom/lat/lng[/bearing[/pitch]]` field (or the given key); other `&`-separated tokens are
|
|
452
|
+
preserved. `hashFormat = 'unnamed'` with `hash = true` reads and writes the raw engine's unnamed
|
|
453
|
+
form, `#zoom/lat/lng[/bearing[/pitch]]`, so existing deep links keep working: the camera is the
|
|
454
|
+
leading token without `=`, named fields after it are kept, and a fragment of named fields only gets
|
|
455
|
+
the camera prepended. A string `hash` under `'unnamed'` is invalid and shows the localized hash
|
|
456
|
+
message. An enabled `hash` delays map construction until URL ownership has loaded, so a valid
|
|
457
|
+
initial hash still sets the first camera, and it takes precedence over a queued initial
|
|
458
|
+
`fitBounds()`/`fitToData()`. Only a valid camera in the owned field or token suppresses that fit: an
|
|
459
|
+
absent, unrelated (`#section`) or malformed fragment leaves the fit to run, and a malformed owned
|
|
460
|
+
value is left untouched (no camera is written over it) until navigation replaces it.
|
|
461
|
+
`controls` also supports `geolocate` and `attribution` options; geolocation errors are sanitized in
|
|
462
|
+
`lr-map-geolocate-error`, and out-of-bounds reports use `lr-map-geolocate-out-of-bounds`. A
|
|
463
|
+
successful location, which only the user's activation of the geolocate button can start, emits
|
|
464
|
+
`lr-map-geolocate` with frozen `LyraMapGeolocateDetail { lngLat, accuracy }` (`accuracy` in metres),
|
|
465
|
+
again for each position update while the control tracks the user. Use it to store the position or
|
|
466
|
+
to compare it against your own bounds.
|
|
467
|
+
`lr-map-pointer-move` (frozen `LyraMapPointerDetail { lngLat, point }`) reports the mouse position
|
|
468
|
+
at most once per animation frame whatever lies under it, for tooltips and coordinate read-outs, and
|
|
469
|
+
`lr-map-pointer-leave` (detail `null`) follows when it leaves the map. `lr-map-feature-enter`,
|
|
470
|
+
`lr-map-feature-leave`, `lr-map-contextmenu` and `lr-map-pick` add `feature`, the hit as a detached,
|
|
471
|
+
deeply frozen GeoJSON `Feature` (`LyraMapFeature`) with its `[longitude, latitude]` geometry. That
|
|
472
|
+
geometry is the rendered one, so a large feature may be clipped to the tiles around the pointer, and
|
|
473
|
+
`geometry` is `null` above 100,000 coordinate values.
|
|
474
|
+
|
|
475
|
+
**Drawing:** `drawMode: LyraMapDrawingMode = 'none'` arms `line` or `polygon` drawing. The
|
|
476
|
+
controls render as soon as a mode is armed; the session starts once the drawing runtime has loaded
|
|
477
|
+
and the style is ready, and `whenIdle()` covers that load. Pointer
|
|
478
|
+
vertices and the keyboard center/undo/finish/cancel controls share one temporary session.
|
|
479
|
+
`undoDrawing()`, `completeDrawing()`, and `cancelDrawing()` return boolean admission.
|
|
480
|
+
`lr-map-draw-start`, `lr-map-draw-change`, `lr-map-draw-complete`, and `lr-map-draw-cancel` carry
|
|
481
|
+
immutable `LyraMapDrawingSnapshot` data (cancel adds a reason). Completion supplies geometry and
|
|
482
|
+
metrics: length in metres, area in square metres, and a geographic centroid. The 512-vertex cap
|
|
483
|
+
and simple-geometry, polar and antimeridian validation reject unsupported shapes. Persist the
|
|
484
|
+
completed snapshot in application state: temporary drawing resources are not a durable layer.
|
|
485
|
+
`editDrawing(snapshot)` explicitly starts editing a completed snapshot; completion does not
|
|
486
|
+
implicitly reopen it. Before the drawing runtime has loaded it returns `false` without reading the
|
|
487
|
+
snapshot and starts the load; await `whenIdle()` and call it again. Keyboard vertex handles and
|
|
488
|
+
pointer edits update the same session.
|
|
489
|
+
Use `whenIdle()` to await temporary rendering work.
|
|
490
|
+
|
|
491
|
+
While drawing, a dashed rubber band runs from the last vertex to the pointer (and, for a polygon,
|
|
492
|
+
on to the first vertex). A press within 12 CSS pixels of a polygon's first vertex, once it has three
|
|
493
|
+
vertices, completes it as clicking near the start does in common drawing tools. While the map
|
|
494
|
+
canvas has focus, Enter completes the drawing (or an edit) and Backspace removes the last vertex;
|
|
495
|
+
the canvas advertises them through `aria-keyshortcuts`, and the visible buttons remain the
|
|
496
|
+
discoverable path. A drawing or edit session survives a `mapStyle` swap: its temporary resources are
|
|
497
|
+
rebuilt on the new style and a captured vertex drag is released (the `style-change` cancel reason is
|
|
498
|
+
no longer reported). `lr-map-draw-change` fires for every intermediate drag position, so recompute
|
|
499
|
+
derived state on `lr-map-draw-vertex-end` (`LyraMapDrawingVertexEndDetail`, the snapshot plus the
|
|
500
|
+
moved vertex `index`), fired once when a drag that moved the vertex is released and after each
|
|
501
|
+
keyboard vertex move. Setting `drawingMeasurements` to `true` (attribute `drawing-measurements`;
|
|
502
|
+
default `false`) shows
|
|
503
|
+
localized, decorative on-map labels (`drawing-measurement`, with `data-kind` `segment`, `closing`,
|
|
504
|
+
`area` or `length`): every segment length, a polygon's closing segment and its area at the centroid,
|
|
505
|
+
and a line's total length; the same total is written beside the vertex count as `drawing-summary`
|
|
506
|
+
for assistive technology. Lengths are metres or kilometres through `Intl.NumberFormat` in the
|
|
507
|
+
component locale, areas `mapSquareMeters`/`mapSquareKilometers`. The temporary drawing, its rubber
|
|
508
|
+
band and the vertex handles use `--lr-map-drawing-color` (default: the brand accent), re-read after
|
|
509
|
+
a theme change.
|
|
510
|
+
|
|
511
|
+
**Anchored content:** `anchorLngLat` is the sole declarative open request for the `anchor` slot.
|
|
512
|
+
Its first coordinate loads anchor placement; placement, already asynchronous, follows that load.
|
|
513
|
+
`anchorBoundary?: LyraMapAnchorBoundary` accepts connected same-document elements (one element or
|
|
514
|
+
a dense array of at most 32). `anchorSafeArea?: LyraMapAnchorSafeArea` adds nonnegative finite
|
|
515
|
+
logical CSS-pixel edges (`blockStart`, `inlineEnd`, `blockEnd`, `inlineStart`); omitted edges are
|
|
516
|
+
zero, explicitly invalid edges fail closed. Placement intersects boundaries with the allocation
|
|
517
|
+
and retains its 8px padding. If the geographic target remains on the map but lies outside that
|
|
518
|
+
intersection, the panel shifts fully inside the available area; changing the safe area never
|
|
519
|
+
moves the map camera or changes `anchorLngLat`. An off-map target or collapsed allocation hides
|
|
520
|
+
the panel. `anchorClosable = false` leaves content passive; enabling it adds a
|
|
521
|
+
close button and nonmodal Escape handling. `focusAnchor()` explicitly focuses eligible visible
|
|
522
|
+
content synchronously; `closeAnchor()` closes a currently visible anchor. Both return booleans.
|
|
523
|
+
`lr-map-anchor-close` reports `api`, `close-button`, or `escape`; focus return respects ownership.
|
|
524
|
+
The close button is exposed as `anchor-close`.
|
|
525
|
+
|
|
526
|
+
**Multiple anchored panels:** when several panels must be open at once, each opened and closed by
|
|
527
|
+
its own owner, use `lr-map-anchor` children (see its section below) instead of the single `anchor`
|
|
528
|
+
slot. They render through the `anchors` slot, are placed exactly like the slot anchor, and use this
|
|
529
|
+
element's `anchorSafeArea` and `anchorBoundary` while their own `safeArea` and `boundary` are
|
|
530
|
+
`undefined`. The two kinds coexist: `closeAnchor()`, `focusAnchor()` and `lr-map-anchor-close`
|
|
531
|
+
concern only the `anchor` slot, and the slot panel joins the children's paint and Escape order only
|
|
532
|
+
while the map places at least one child anchor.
|
|
533
|
+
|
|
534
|
+
**Initialization and image export:** `initialization: LyraMapInitialization = 'visible'` defers
|
|
535
|
+
construction until visible; `idle` schedules idle construction and `eager` requests immediate
|
|
536
|
+
construction. `interaction` waits for the first input on the element (pointer press, touch, wheel,
|
|
537
|
+
key press or click) and shows the localized `initialization-activate` button over the placeholder,
|
|
538
|
+
so keyboard and screen-reader users can start the map; focus moves to the map canvas when the map
|
|
539
|
+
was started from that button. `initializationDelay?: number` (attribute `initialization-delay`,
|
|
540
|
+
milliseconds) also starts an `interaction` map that long after it connected; leave it unset to wait
|
|
541
|
+
for input only. Until then `map` is undefined and `whenStyleReady()`/`whenIdle()` wait; camera
|
|
542
|
+
commands and fits queue as usual. Deferred UI exposes `initialization-placeholder` and
|
|
543
|
+
`initialization-control`.
|
|
544
|
+
Static `LyraMap.preload(engine)` loads the engine without constructing a map.
|
|
545
|
+
`exportImage(options?: LyraMapImageExportOptions): Promise<Blob>` captures the current native
|
|
546
|
+
frame with `type` of `image/png` (default), `image/jpeg`, or `image/webp`. Attribution is included
|
|
547
|
+
by default, including admitted source credits and custom attribution; preserve required credits
|
|
548
|
+
when sharing an export. DOM markers, popups and slotted overlays are excluded. Export waits for
|
|
549
|
+
current-frame readiness; handle rejection as `LyraMapImageExportError` with a sanitized `code`.
|
|
550
|
+
`lr-map-export-error` carries `LyraMapImageExportErrorDetail`, never raw renderer errors. The first
|
|
551
|
+
call loads the export runtime; options are still admitted when the call is made, and a runtime that
|
|
552
|
+
cannot load rejects with `capture-failed`.
|
|
553
|
+
|
|
59
554
|
**Properties:**
|
|
60
555
|
|
|
61
556
|
- `engine: LyraMapEngine = 'modular'` — selects the optional `@aceshooting/lyra-map` companion.
|
|
@@ -65,7 +560,8 @@ modes use the same expression semantics at initial render and after a theme chan
|
|
|
65
560
|
engine payload and is a separate opt-in from the modular default.
|
|
66
561
|
- `center: [number, number] = [0, 0]`
|
|
67
562
|
- `zoom: number = 2` — `center` and `zoom` are the declarative camera. Assigning either moves the
|
|
68
|
-
map without emitting anything. When the camera settles after a user gesture
|
|
563
|
+
map without emitting anything. When the camera settles after a user gesture, `fitBounds()` or a
|
|
564
|
+
camera command (`flyTo()`/`easeTo()`/`jumpTo()`), the
|
|
69
565
|
element writes that camera into both and reports it through `lr-map-view-change`, so its next
|
|
70
566
|
update never resets it, and a later, different assignment still moves the map. Assigning a value
|
|
71
567
|
the map already shows moves nothing, so echoing a reported camera back, however late, never stops
|
|
@@ -74,8 +570,31 @@ modes use the same expression semantics at initial render and after a theme chan
|
|
|
74
570
|
did not assign is not left wherever the interrupted movement stopped; with nothing in flight,
|
|
75
571
|
only the assigned axis moves. Because both track the settled camera, a map rebuilt after a
|
|
76
572
|
disconnect/reconnect opens at the last settled camera rather than the originally declared one.
|
|
77
|
-
|
|
78
|
-
a
|
|
573
|
+
`center` is compared by value against the last value assigned: a new array holding the same two
|
|
574
|
+
numbers (a parent re-render rebuilding its arrays) is not a new request, even after a gesture,
|
|
575
|
+
fit or camera command, so it never pulls the map back over the user's pan. Assign a different
|
|
576
|
+
value to move the map, or call `jumpTo({ center })` to re-centre on the value already assigned.
|
|
577
|
+
**Behavior change:** an equal re-assignment used to re-centre the map after a pan.
|
|
578
|
+
- `minZoom?: number` (attribute `min-zoom`) and `maxZoom?: number` (attribute `max-zoom`) — camera
|
|
579
|
+
zoom limits in `[0, 24]`, forwarded to the engine at construction and whenever they change.
|
|
580
|
+
Unset keeps the engine's `[0, 22]` (`maxZoom` defaults to `minZoom` when that is above 22).
|
|
581
|
+
Gestures, `zoom`, the URL `hash`, `flyTo()`/`easeTo()`/`jumpTo()`, and the `maxZoom` of
|
|
582
|
+
`fitBounds()`/`fitToData()` are all clamped into them. Raising `minZoom` above the camera (or
|
|
583
|
+
lowering `maxZoom` below it) moves the camera inside and writes the clamped value into `zoom`,
|
|
584
|
+
without an `lr-map-view-change`. A non-finite value counts as unset; an explicit
|
|
585
|
+
`minZoom > maxZoom` pair is ignored as a whole, with a development-mode warning.
|
|
586
|
+
|
|
587
|
+
```js
|
|
588
|
+
mapEl.minZoom = 5; // country view at most
|
|
589
|
+
mapEl.maxZoom = 21; // building level at least
|
|
590
|
+
```
|
|
591
|
+
- `cameraPadding?: LyraMapPadding` (attribute: false) — screen pixels (`top`, `right`, `bottom`,
|
|
592
|
+
`left`; an omitted, negative or non-finite side is `0`) the camera is measured inside, applied to
|
|
593
|
+
the engine persistently. Every fit (`fitBounds()`, `fitToData()`) frames inside it, and the
|
|
594
|
+
`bounds` that `lr-map-view-change` and `lr-map-move` report is the visible box inside it, so a
|
|
595
|
+
panel or toolbar covering part of the map does not hide what the map frames. Changing it keeps
|
|
596
|
+
the geographic centre fixed, shifts the picture and is not reported as a camera change. Sides are
|
|
597
|
+
physical, not logical.
|
|
79
598
|
- `renderWorldCopies?: boolean` (attribute: false) — forwarded to MapLibre when its map is
|
|
80
599
|
constructed. Leave it unset to preserve MapLibre's own current default; set `false` before
|
|
81
600
|
construction to stop repeating the world horizontally. This is a construction-time option, so a
|
|
@@ -87,7 +606,10 @@ modes use the same expression semantics at initial render and after a theme chan
|
|
|
87
606
|
is selected implicitly: an unset, empty, or whitespace-only value renders the localized
|
|
88
607
|
style-required failure and makes no tile/style request. Assign a hosted vector/raster style from
|
|
89
608
|
a provider whose terms fit your application, or an explicitly network-silent style for local
|
|
90
|
-
geometry.
|
|
609
|
+
geometry. `LYRA_MAP_EMPTY_STYLE` (exported from `@aceshooting/lyra-ui` and the map module) is that
|
|
610
|
+
style for the common case: a frozen `{ version: 8, sources: {}, layers: [] }` with no basemap, so
|
|
611
|
+
a choropleth, `dataLayers` and markers draw on a blank canvas and no tile request is made. Assign
|
|
612
|
+
it as is (`map.mapStyle = LYRA_MAP_EMPTY_STYLE`); build a new style object to add to it.
|
|
91
613
|
- `legendGradient: readonly (readonly [number, string])[] = []` (attribute: false, type
|
|
92
614
|
`LyraMapLegendGradientStop[]`) — renders the legend as a **continuous** gradient bar with endpoint
|
|
93
615
|
captions instead of (or alongside) the discrete `legend` swatches, which is the standard key for a
|
|
@@ -108,6 +630,29 @@ modes use the same expression semantics at initial render and after a theme chan
|
|
|
108
630
|
`legendGradientHiLabel: string | null = null` (attribute `legend-gradient-hi-label`) — override
|
|
109
631
|
the endpoint captions, which otherwise default to the lowest/highest stop value in the component's
|
|
110
632
|
own locale-aware numeric formatting
|
|
633
|
+
- `legendGradientTicks: readonly (number | LyraMapLegendGradientTick)[]` (attribute: false; the
|
|
634
|
+
getter returns the frozen `LyraMapLegendGradientTick { value: number; label?: string }` list) —
|
|
635
|
+
labelled marks under the `legendGradient` bar, each at its value's true position on the ramp
|
|
636
|
+
(the bar and its marks share one track, so a logarithmic ramp keeps them at the data positions).
|
|
637
|
+
A bare number is a mark labelled with the locale-formatted value; a `label` is caller data and is
|
|
638
|
+
rendered verbatim. At most 16 marks are kept, sorted ascending and de-duplicated; a mark outside
|
|
639
|
+
the ramp's lowest and highest stop, or a non-finite one, is not drawn, and without a gradient
|
|
640
|
+
there is nothing to mark. Marks are positioned from the inline start, so they mirror with the
|
|
641
|
+
flipped bar under RTL. Parts `legend-ticks` and `legend-tick`.
|
|
642
|
+
- `choroplethLegend: boolean = false` (attribute `choropleth-legend`, reflected) — derives the key
|
|
643
|
+
from `choropleth` instead of a hand-built copy that can drift. A `'step'` ramp renders one swatch
|
|
644
|
+
row per band in `legend-derived`: `< 20`, `20 – 50`, `≥ 50` (numbers formatted for
|
|
645
|
+
`effectiveLocale`, each range wrapped in bidi isolates so it keeps its order in a right-to-left
|
|
646
|
+
legend); an explicit `stepBaseColor` becomes its own `< first` band, otherwise the first band
|
|
647
|
+
absorbs the values below the first threshold exactly as the fill does, and a lone stop without a
|
|
648
|
+
base colour describes nothing so it adds no band. A `'linear'` or `'logarithmic'` ramp renders the
|
|
649
|
+
gradient bar from `choropleth.stops` (a logarithmic one sampled as the fill is) with the interior
|
|
650
|
+
stop values as ticks, because a continuous ramp has no bands to list. When `choropleth.noData`
|
|
651
|
+
is set, a hatched swatch (`data-pattern="diagonal"`, the non-colour cue) captioned with its
|
|
652
|
+
`label`, or the localized "No data", ends the derived rows. Authored input wins where it overlaps:
|
|
653
|
+
a non-empty `legendGradient` replaces the derived bar, an assigned `legendGradientTicks` (even
|
|
654
|
+
`[]`) replaces the derived ticks, and `legend` rows render ahead of the derived rows. Derived rows
|
|
655
|
+
are not interactive. Default off, so an unset map renders what it rendered before.
|
|
111
656
|
- `legend: readonly LyraMapLegendEntry[] = []` (attribute: false) — immutable defensive snapshots
|
|
112
657
|
of `LyraMapLegendEntry { readonly color: string; readonly label: string; readonly pattern:
|
|
113
658
|
LyraMapLegendPattern }`, where `LyraMapLegendPattern` is `'solid' | 'diagonal' | 'dots' |
|
|
@@ -217,6 +762,18 @@ string; geojson: GeoJSON.FeatureCollection; field: string; stops: [number, strin
|
|
|
217
762
|
colour, so a legend whose first band starts at the data minimum needs no extra configuration.
|
|
218
763
|
Stop colors and `stepBaseColor` accept CSS custom-property references; Lyra resolves them from
|
|
219
764
|
the live host cascade before passing the expression to MapLibre's WebGL renderer.
|
|
765
|
+
`noData?: LyraMapChoroplethNoData { color?: string; strokeColor?: string; label?: string }`
|
|
766
|
+
says how features without a usable value look and read, instead of splitting the data into a
|
|
767
|
+
second layer. A feature has no value when its `field` property is missing, `null` or not a number;
|
|
768
|
+
without `noData` such a feature is not painted by the choropleth at all (the expression cannot
|
|
769
|
+
evaluate). With it, `fill-color` becomes `['case', <is a number>, <ramp>, <noData color>]` under
|
|
770
|
+
every interpolation, `color` defaults to the neutral data tone and takes the same CSS colours and
|
|
771
|
+
`var(--lr-…)` references as `stops`, and the colour follows live theme changes. `strokeColor`
|
|
772
|
+
adds an outline drawn on no-data features only (other features keep the default outline, their own
|
|
773
|
+
fill colour); omitted, nothing distinct is drawn. `label` is caller data, trimmed and bounded to
|
|
774
|
+
256 characters, shown verbatim as the legend caption under `choroplethLegend` (default: the
|
|
775
|
+
localized "No data"). `noData: {}` accepts every default. A click on such a feature reports
|
|
776
|
+
`noData: true` in the `lr-map-click` detail.
|
|
220
777
|
- `markers: LyraMapMarker[] = []` (attribute: false) — `LyraMapMarker { id?: string; lngLat:
|
|
221
778
|
[number, number]; color?: string; label?: string; unsafeHtml?: string }`; an explicit `id` is
|
|
222
779
|
trimmed and must be nonempty, and the first successfully admitted marker for an explicit ID wins.
|
|
@@ -245,7 +802,9 @@ string; geojson: GeoJSON.FeatureCollection; field: string; stops: [number, strin
|
|
|
245
802
|
Enter, and Space emit `lr-map-marker-activate`; Space suppresses its page-scroll default while
|
|
246
803
|
preserving MapLibre's popup toggle. A popup-bearing marker additionally exposes
|
|
247
804
|
`aria-haspopup="dialog"`, `aria-controls`, and explicit `aria-expanded`.
|
|
248
|
-
- `dataLayers:
|
|
805
|
+
- `dataLayers: readonly LyraMapDataLayer[] = []` (attribute: false) accepts GeoJSON, vector,
|
|
806
|
+
raster, image and canvas entries. The external-source forms are described under
|
|
807
|
+
**Readiness and declarative resources** above. The GeoJSON form is
|
|
249
808
|
`LyraMapGeoJsonDataLayer { sourceId: string; geojson: GeoJSON.Feature |
|
|
250
809
|
GeoJSON.FeatureCollection; tone?: 'accent' | 'success' | 'warning' |
|
|
251
810
|
'danger' | 'neutral'; color?: string; strokeColor?: string; line?: LyraMapLineOptions;
|
|
@@ -253,7 +812,7 @@ point?: LyraMapPointOptions; kind?: LyraMapDataLayerKind;
|
|
|
253
812
|
heatmap?: LyraMapHeatmapOptions; cluster?: LyraMapClusterOptions }`. `sourceId` is trimmed and must be nonempty; the first layer for a
|
|
254
813
|
`sourceId` that is successfully admitted wins. Only the first 100 entries are inspected; blank,
|
|
255
814
|
malformed, and later duplicate records are
|
|
256
|
-
ignored without reserving an identity for a valid later sibling. Each retained entry adds one
|
|
815
|
+
ignored without reserving an identity for a valid later sibling. Each retained GeoJSON entry adds one
|
|
257
816
|
GeoJSON source plus three geometry-filtered layers
|
|
258
817
|
(fill, line, and circle, so a mixed `FeatureCollection` renders correctly), colored from the
|
|
259
818
|
matching `--lr-color-*` token (`tone` defaults to `'accent'` → `--lr-color-brand`).
|
|
@@ -296,7 +855,7 @@ heatmap?: LyraMapHeatmapOptions; cluster?: LyraMapClusterOptions }`. `sourceId`
|
|
|
296
855
|
|
|
297
856
|
`cluster?: LyraMapClusterOptions { radius?: number; maxZoom?: number; radiusSteps?: [number,
|
|
298
857
|
number][]; colorSteps?: [number, string][]; strokeColor?: string; countFont?: string[]; countColor?: string;
|
|
299
|
-
countHaloColor?: string; countHaloWidth?: number }` turns the entry's source into a
|
|
858
|
+
countHaloColor?: string; countHaloWidth?: number; zoomOnClick?: boolean }` turns the entry's source into a
|
|
300
859
|
natively clustered one — `cluster`/`clusterRadius` (default 50)/`clusterMaxZoom` (default 14) on
|
|
301
860
|
the source, plus a `${sourceId}-cluster` circle filtered on `has('point_count')`, a
|
|
302
861
|
`${sourceId}-cluster-count` label, and a `${sourceId}-circle` layer for the points that stayed
|
|
@@ -323,6 +882,13 @@ countHaloColor?: string; countHaloWidth?: number }` turns the entry's source int
|
|
|
323
882
|
explicit width of 0 disables the outline. Both count colors accept CSS colors or `var(--lr-…)`
|
|
324
883
|
references resolved against the host on theme repaint. Omitting or removing these options
|
|
325
884
|
restores the previous on-tone label and halo-free default.
|
|
885
|
+
`zoomOnClick` (default `false`) eases the camera into a clicked cluster: after `lr-map-click`
|
|
886
|
+
fires with `origin: 'cluster'`, the element asks the cluster's source for the zoom at which it
|
|
887
|
+
breaks apart (promise or callback peers both work) and calls `easeTo({ center: <cluster>, zoom })`,
|
|
888
|
+
so reduced motion, the write-back into `center`/`zoom` and `lr-map-view-change` with
|
|
889
|
+
`source: 'command'` all apply, and the zoom is clamped to the camera range. A later cluster click
|
|
890
|
+
supersedes an earlier lookup still pending; a peer without the lookup, or a cluster that has
|
|
891
|
+
vanished, leaves the camera alone. It is not cancelable from the click event.
|
|
326
892
|
Cluster options are baked into the source at creation time by MapLibre and have no setter, so
|
|
327
893
|
changing them (or `kind`) rebuilds that one entry's source and layers; every other update still
|
|
328
894
|
reconciles in place.
|
|
@@ -458,12 +1024,65 @@ intensity?: LyraMapHeatmapZoomValue; opacity?: number }`, where `LyraMapHeatmapZ
|
|
|
458
1024
|
escape hatch: constraining the camera can wedge maplibre-gl at a sub-1 fractional zoom in a wide
|
|
459
1025
|
container, leaving `getZoom()` returning `null` permanently, every frame throwing from inside the
|
|
460
1026
|
peer's own matrix math, and the canvas never painting again — a blank map, with nothing thrown at
|
|
461
|
-
the call site to attribute it to. This property applies the same call, then reads the camera back
|
|
462
|
-
|
|
1027
|
+
the call site to attribute it to. This property applies the same call, then reads the camera back.
|
|
1028
|
+
A camera below zoom 1, fractional zoom included, is tolerated: a box the peer rejects there is
|
|
1029
|
+
retried once from zoom 1 and the zoom and centre that were showing are restored, so the limit
|
|
1030
|
+
applies to a map that currently shows the whole world and no warning is issued. A box that still
|
|
1031
|
+
cannot be applied reverts (restoring zoom and centre), so the worst case is an
|
|
463
1032
|
unconstrained map plus a dev-mode warning. The defensive camera snapshots are inside the same
|
|
464
1033
|
failure boundary, so a peer whose damaged transform already throws from `getZoom()` or
|
|
465
1034
|
`getCenter()` is also reduced to an unconstrained map instead of leaking through Lit's update.
|
|
466
1035
|
A malformed box is rejected rather than clamped
|
|
1036
|
+
- `controls?: Readonly<LyraMapControls>` (attribute: false) — `LyraMapControls { navigation?: boolean |
|
|
1037
|
+
LyraMapNavigationControlOptions; scale?: boolean | LyraMapScaleControlOptions;
|
|
1038
|
+
geolocate?: boolean | LyraMapGeolocateControlOptions;
|
|
1039
|
+
attribution?: boolean | LyraMapAttributionControlOptions }`, with
|
|
1040
|
+
`LyraMapNavigationControlOptions { position?: LyraMapControlPosition }`,
|
|
1041
|
+
`LyraMapScaleControlOptions { position?: LyraMapControlPosition; unit?: LyraMapScaleUnit }`,
|
|
1042
|
+
`LyraMapControlPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'` and
|
|
1043
|
+
`LyraMapScaleUnit = 'metric' | 'imperial'`. The element adds the engine's standard controls once
|
|
1044
|
+
the map exists, moves one whose corner changes, replaces one whose other options change and removes one that
|
|
1045
|
+
is dropped, so an application no longer imports control classes and calls `map.addControl()`.
|
|
1046
|
+
`true` takes the defaults (navigation `'top-right'`, scale `'bottom-left'` and `'metric'`); an
|
|
1047
|
+
unknown navigation/scale position or unit falls back to its default. Malformed geolocate or
|
|
1048
|
+
attribution options are rejected with localized feedback. The control code comes from the selected
|
|
1049
|
+
engine (`maplibre-gl`, or the companion's granular control entries). Requested controls load
|
|
1050
|
+
on demand; unavailable controls show localized feedback while the map remains usable. Geolocation
|
|
1051
|
+
starts only on user activation. Attribution is enabled by default; set `attribution: false` to
|
|
1052
|
+
disable it. Attribution options accept `position`, `compact`, and `customAttribution` as a string,
|
|
1053
|
+
`LyraMapAttributionLink { readonly label: string; readonly url: string }`, or a readonly array of
|
|
1054
|
+
either. Labels are escaped text; links open in a new tab with `rel="noopener noreferrer"`.
|
|
1055
|
+
Link URLs must be absolute HTTP(S), no longer than 2,048 characters, with no credentials or
|
|
1056
|
+
control characters. At most 32 credits and 16 KiB of label/URL text are accepted, with each label
|
|
1057
|
+
limited to 4,096 characters. Admission snapshots own data properties without invoking accessors.
|
|
1058
|
+
An invalid item rejects the whole custom option and shows localized feedback while retaining
|
|
1059
|
+
provider credits. Image exports include link labels as text alongside provider credits, without
|
|
1060
|
+
the link URLs or markup. For example:
|
|
1061
|
+
|
|
1062
|
+
```js
|
|
1063
|
+
mapElement.controls = {
|
|
1064
|
+
navigation: { position: 'bottom-left' },
|
|
1065
|
+
scale: { position: 'bottom-left' },
|
|
1066
|
+
geolocate: { position: 'bottom-left' },
|
|
1067
|
+
attribution: { position: 'bottom-left', customAttribution: [
|
|
1068
|
+
'Survey team', { label: 'Data contributors', url: 'https://example.com/credits' }
|
|
1069
|
+
] }
|
|
1070
|
+
};
|
|
1071
|
+
```
|
|
1072
|
+
|
|
1073
|
+
Within each corner the visual and keyboard order is navigation, scale, geolocate, attribution,
|
|
1074
|
+
including when constructors load in a different order or one fails. A subset keeps that relative
|
|
1075
|
+
order. Changing only a corner moves the existing controls and retains focused buttons. Corners
|
|
1076
|
+
continue to follow text direction under RTL. Geolocation is never activated by reconfiguration
|
|
1077
|
+
or reconnect.
|
|
1078
|
+
Button names come from `zoomIn`, `zoomOut` and `mapResetNorth`
|
|
1079
|
+
and are re-applied whenever `lang`, `locale` or `strings` change, so they follow a live language
|
|
1080
|
+
switch. Controls survive a `mapStyle` swap and are dropped with the map on disconnect, then added
|
|
1081
|
+
again to the next one. Parts `navigation`, `zoom-in`, `zoom-out`, `compass`, `scale`.
|
|
1082
|
+
- `anchorLngLat?: readonly [number, number] | null` (attribute: false) — where content in the
|
|
1083
|
+
`anchor` slot sits. Pair it with the `lngLat` of an `lr-map-click` to show a clicked feature's
|
|
1084
|
+
details, replacing a hand-positioned popup. The first coordinate loads anchor placement on
|
|
1085
|
+
demand; the anchor stays hidden until it has been placed. See **Slots**.
|
|
467
1086
|
|
|
468
1087
|
**Choropleth and `dataLayers` updates are diffed before they reach the peer.** `setData()`
|
|
469
1088
|
unconditionally re-tiles and repaints an entire source, which is invisible on a static map and
|
|
@@ -503,8 +1122,10 @@ payload beside the map.
|
|
|
503
1122
|
`LyraMapPointRadiusInterpolation`, `LyraMapPointIcon`, `LyraMapPointIconMode`,
|
|
504
1123
|
`LyraMapPointIconLineCap`, `LyraMapPointIconLineJoin`, `LyraMapMarker`, `LyraMapMarkerActivationDetail`,
|
|
505
1124
|
`LyraMapMarkerActivationSource`, `LyraMapLegendToggleDetail`, `LyraMapLegendPanelToggleDetail`,
|
|
506
|
-
`
|
|
507
|
-
|
|
1125
|
+
`LyraMapChoroplethNoData`, `LyraMapLegendGradientTick`, `LyraMapControls`,
|
|
1126
|
+
`LyraMapNavigationControlOptions`, `LyraMapScaleControlOptions`, `LyraMapControlPosition`,
|
|
1127
|
+
`LyraMapScaleUnit`, `LyraMapStyleSpecification`, `LyraMapEngine`, `LyraMapFeatureRequirements`,
|
|
1128
|
+
`LyraMapSourceDataDiff`, the `LYRA_MAP_EMPTY_STYLE` constant, and `LyraMapInstance`.
|
|
508
1129
|
|
|
509
1130
|
**Getters:** `map: LyraMapInstance | undefined` → the underlying runtime `maplibregl.Map`, exposed
|
|
510
1131
|
through the peer-neutral `getCanvas()`, `getCenter()`, `getZoom()`, `setCenter()`, `setZoom()`, and
|
|
@@ -523,11 +1144,10 @@ direct engine mutation that must be visible without further interaction (a scree
|
|
|
523
1144
|
export), call the narrowed engine's `map.triggerRepaint()` once. `lr-map` does not force a
|
|
524
1145
|
repaint after every idle, because that would re-render forever.
|
|
525
1146
|
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
and `dataLayers` layers described below; it does not query arbitrary layer IDs from `mapStyle`.
|
|
1147
|
+
For style-owned layers, set `interactiveBasemapLayers` to opt their IDs into the component's
|
|
1148
|
+
hit routing and `lr-map-click` events. For queries outside that routing, narrow `.map` to the
|
|
1149
|
+
selected engine's type and call `queryRenderedFeatures(point, { layers: [...] })`; `point` is a
|
|
1150
|
+
screen position available from `project([longitude, latitude])`.
|
|
531
1151
|
|
|
532
1152
|
`markersTruncated: boolean` (read-only) is true when authored marker entries exceed the 2,000-entry
|
|
533
1153
|
inspection ceiling; it does not count malformed rows skipped within that prefix.
|
|
@@ -571,7 +1191,8 @@ settles, the element writes it into `center`/`zoom` and emits `lr-map-view-chang
|
|
|
571
1191
|
both text directions, because the map's projected space is physical. A negative or non-finite
|
|
572
1192
|
side counts as `0`. Defaults to `0`.
|
|
573
1193
|
- `options.maxZoom` — the highest zoom the fit may reach, so one marker or a tight cluster does not
|
|
574
|
-
zoom to the street. Clamped into `[0, 22]
|
|
1194
|
+
zoom to the street. Clamped into the zoom limits (`minZoom`/`maxZoom`, `[0, 22]` by default) when
|
|
1195
|
+
the fit runs; a non-finite value sets no ceiling beyond `maxZoom`.
|
|
575
1196
|
- `options.animate` — defaults to `true`. The camera never animates under
|
|
576
1197
|
`prefers-reduced-motion: reduce`.
|
|
577
1198
|
- Latitudes lie in `[-90, 90]`, with `south <= north`, and longitudes in `[-180, 180]`. A box
|
|
@@ -593,6 +1214,49 @@ settles, the element writes it into `center`/`zoom` and emits `lr-map-view-chang
|
|
|
593
1214
|
map), MapLibre leaves the camera where it is and logs its own warning: the call still returns
|
|
594
1215
|
`true`, and no `lr-map-view-change` fires.
|
|
595
1216
|
|
|
1217
|
+
`fitToData(options?: LyraMapFitBoundsOptions): boolean` frames everything the map draws: `markers`,
|
|
1218
|
+
every `dataLayers` source and the `choropleth`, measured from the geometry the element has already
|
|
1219
|
+
admitted (not from your raw values), so you no longer compute a box yourself. It is `fitBounds()` of
|
|
1220
|
+
the union of their extents, with the same options, queueing, `cameraPadding`, write-back and
|
|
1221
|
+
`source: 'fit'`. `maxZoom` defaults to `16`, so one marker does not zoom to the street; pass it
|
|
1222
|
+
(a non-finite value for no ceiling) to change that. The extent is a plain west-to-east span, so data
|
|
1223
|
+
on both sides of the antimeridian frames the long way round. Returns `false`, doing nothing, when
|
|
1224
|
+
nothing with geometry is drawn. Assignments to `markers`/`dataLayers`/`choropleth` made in the same
|
|
1225
|
+
tick are already counted.
|
|
1226
|
+
|
|
1227
|
+
`fitBounds()`, `fitToData()` and the camera commands below are not interrupted by a `center` or
|
|
1228
|
+
`zoom` assignment made in the same tick: they run after the update that pushes that assignment, so
|
|
1229
|
+
the order you wrote them in is the order they take effect (`el.center = x; el.fitBounds(box)` no
|
|
1230
|
+
longer needs an `await el.updateComplete` in between). Their return value is `true` once accepted
|
|
1231
|
+
or deferred.
|
|
1232
|
+
|
|
1233
|
+
`flyTo(options)`, `easeTo(options)` and `jumpTo(options)` (`LyraMapCameraOptions { center?, zoom?,
|
|
1234
|
+
bearing?, pitch?, duration? }`; each returns `boolean`) move the camera with the engine's own
|
|
1235
|
+
commands, a curved flight, an eased animation and an immediate jump respectively. Use them instead of
|
|
1236
|
+
calling the same methods through `map`, which the element neither knows about nor reports.
|
|
1237
|
+
|
|
1238
|
+
- Reduced motion: under `prefers-reduced-motion: reduce` (or a `data-lr-motion="reduce"` scope)
|
|
1239
|
+
`flyTo()` and `easeTo()` jump.
|
|
1240
|
+
- Write-back: once the camera settles, the element writes it into `center`/`zoom` and emits
|
|
1241
|
+
`lr-map-view-change` with `source: 'command'`; it never moves the camera a second time to apply
|
|
1242
|
+
what it just wrote. `jumpTo()` is the explicit re-centre (an equal `center` re-assignment is a
|
|
1243
|
+
no-op).
|
|
1244
|
+
- Every option is optional and an unusable one is ignored: `center` must be a finite
|
|
1245
|
+
`[longitude, latitude]` (clamped into range), `zoom` is clamped into the zoom limits
|
|
1246
|
+
(`minZoom`/`maxZoom`, `[0, 22]` by default), `pitch` into
|
|
1247
|
+
`[0, 85]`, and a negative or non-finite `duration` means the engine's default. With nothing
|
|
1248
|
+
usable the call returns `false` (and warns in development) without moving anything.
|
|
1249
|
+
- Callable before the map exists: the most recent request (or `fitBounds()` call) is queued and
|
|
1250
|
+
applied without animation right after construction, unless `center` or `zoom` has been given a
|
|
1251
|
+
different value since. Returns `true` once the move is running or queued, `false` when the loaded
|
|
1252
|
+
engine has no such command.
|
|
1253
|
+
|
|
1254
|
+
`project(lngLat)` returns the `[x, y]` CSS pixel position of a `[longitude, latitude]` in the map's
|
|
1255
|
+
container, and `unproject([x, y])` the inverse, so an overlay can sit on a coordinate; both read the
|
|
1256
|
+
camera as it is now and return `undefined` before the map exists, for a non-finite input, or when
|
|
1257
|
+
the engine cannot project. Pair `project()` with `lr-map-move` to keep an overlay glued to a moving
|
|
1258
|
+
map.
|
|
1259
|
+
|
|
596
1260
|
There is deliberately no declarative `bounds` property. `center` and `zoom` already describe the
|
|
597
1261
|
camera; a third camera input would need a precedence rule against them, and a framework that
|
|
598
1262
|
rebuilds its arrays on every render would refit on every render, pulling the camera away from a user
|
|
@@ -609,7 +1273,7 @@ import type {
|
|
|
609
1273
|
let camera: LyraMapViewChangeDetail | undefined;
|
|
610
1274
|
const mapEl = document.querySelector('lr-map') as LyraMap;
|
|
611
1275
|
mapEl.addEventListener('lr-map-view-change', (event) => {
|
|
612
|
-
// Keep the host's own camera state in step: { center, zoom, source }.
|
|
1276
|
+
// Keep the host's own camera state in step: { center, zoom, source, bounds }.
|
|
613
1277
|
camera = event.detail;
|
|
614
1278
|
});
|
|
615
1279
|
|
|
@@ -624,6 +1288,19 @@ function showMarkers(markers: LyraMapMarker[]): void {
|
|
|
624
1288
|
];
|
|
625
1289
|
mapEl.fitBounds(box, { padding: 48, maxZoom: 14 });
|
|
626
1290
|
}
|
|
1291
|
+
|
|
1292
|
+
// The same, without computing the box, inside a toolbar that covers the left 320px:
|
|
1293
|
+
mapEl.cameraPadding = { left: 320 };
|
|
1294
|
+
mapEl.fitToData({ maxZoom: 14 });
|
|
1295
|
+
|
|
1296
|
+
// Camera commands report as `source: 'command'` and write back into center/zoom:
|
|
1297
|
+
mapEl.flyTo({ center: [2.35, 48.85], zoom: 11 });
|
|
1298
|
+
|
|
1299
|
+
// Keep an overlay on a coordinate while the map moves:
|
|
1300
|
+
mapEl.addEventListener('lr-map-move', () => {
|
|
1301
|
+
const point = mapEl.project([2.35, 48.85]);
|
|
1302
|
+
if (point) overlay.style.translate = `${point[0]}px ${point[1]}px`;
|
|
1303
|
+
});
|
|
627
1304
|
```
|
|
628
1305
|
|
|
629
1306
|
**Events:** `lr-map-load` (fired once, after the underlying map's own `'load'`),
|
|
@@ -649,7 +1326,9 @@ Also `lr-map-marker-activate` (non-cancelable; frozen `LyraMapMarkerActivationDe
|
|
|
649
1326
|
marker, source }`; `id` is the trimmed explicit identity or `undefined`, `marker` is the accepted
|
|
650
1327
|
declarative snapshot, and `source` is `'pointer' | 'keyboard'`), and `lr-map-click`
|
|
651
1328
|
(frozen `detail: { readonly lngLat: readonly [lng, lat], readonly feature?, readonly origin?,
|
|
652
|
-
readonly sourceId? }`; the tuple and any hit GeoJSON feature are detached and
|
|
1329
|
+
readonly sourceId?, readonly noData? }`; the tuple and any hit GeoJSON feature are detached and
|
|
1330
|
+
recursively frozen). `noData` is `true` only for a choropleth hit whose `field` value is missing,
|
|
1331
|
+
`null` or not a number while `choropleth.noData` is configured, and is absent otherwise.
|
|
653
1332
|
`feature` resolves against the choropleth fill layer **and** every applied `dataLayers`
|
|
654
1333
|
fill/line/circle/cluster layer, topmost first — so a shape painted through `dataLayers` is
|
|
655
1334
|
identifiable instead of being indistinguishable from empty space. `origin` is `'choropleth'`,
|
|
@@ -657,24 +1336,74 @@ identifiable instead of being indistinguishable from empty space. `origin` is `'
|
|
|
657
1336
|
data-layer or cluster hit; both are `undefined` whenever `feature` is. A cluster hit is reported
|
|
658
1337
|
separately because it is a synthetic aggregate rather than one of your features: its useful payload
|
|
659
1338
|
is MapLibre's `point_count`/`point_count_abbreviated`/`cluster_id` properties, which is what a
|
|
660
|
-
zoom-to-cluster handler reads
|
|
1339
|
+
zoom-to-cluster handler reads (or set `cluster.zoomOnClick` and let the element ease into it).
|
|
1340
|
+
The count label is deliberately not hit-tested (it sits exactly on
|
|
661
1341
|
the circle already queried and would only make the label the topmost hit), and a `kind: 'heatmap'`
|
|
662
1342
|
layer is never queried at all — MapLibre returns no features for a rendered density surface.
|
|
663
|
-
Also `lr-map-view-change` (non-cancelable; frozen `LyraMapViewChangeDetail { center, zoom, source
|
|
664
|
-
`source` being `LyraMapViewChangeSource = 'user' | 'fit'`), fired once each
|
|
665
|
-
after a user gesture (drag, wheel, touch, keyboard, Shift+drag box zoom, or
|
|
666
|
-
navigation button)
|
|
667
|
-
|
|
1343
|
+
Also `lr-map-view-change` (non-cancelable; frozen `LyraMapViewChangeDetail { center, zoom, source,
|
|
1344
|
+
bounds? }`, `source` being `LyraMapViewChangeSource = 'user' | 'fit' | 'command'`), fired once each
|
|
1345
|
+
time the camera settles after a user gesture (drag, wheel, touch, keyboard, Shift+drag box zoom, or
|
|
1346
|
+
a standard peer navigation button), a `fitBounds()`/`fitToData()` call (`'fit'`), or a
|
|
1347
|
+
`flyTo()`/`easeTo()`/`jumpTo()` call (`'command'`). `center` is `[longitude, latitude]` with the
|
|
1348
|
+
longitude wrapped into `[-180, 180]`. `bounds` is the visible `[[west, south], [east, north]]` box
|
|
1349
|
+
inside `cameraPadding` (`west` within `[-180, 180]`, `east` possibly past 180 across the antimeridian,
|
|
1350
|
+
so `fitBounds()` accepts it back); it is absent when the engine cannot report bounds. The element has already written the camera into `center` and `zoom`
|
|
668
1351
|
when it fires, so a host that mirrors camera state assigns the detail back, at any later time,
|
|
669
1352
|
without moving the map. Assigning `center`/`zoom` reconciles without emitting it, so a controlled
|
|
670
1353
|
host cannot loop, and camera moves made directly through `map` are not reported — which is why
|
|
671
|
-
`'user'` and `'
|
|
1354
|
+
`'user'`, `'fit'` and `'command'` are the only sources.
|
|
1355
|
+
Also `lr-map-move` (non-cancelable; frozen `LyraMapMoveDetail { center, zoom, bounds? }`), fired at
|
|
1356
|
+
most once per animation frame while the camera moves, whatever moves it (a gesture, an animation,
|
|
1357
|
+
a camera command, a fit, a `center`/`zoom` assignment or a move made directly through `map`), and
|
|
1358
|
+
once more when the move ends so the last position is never missed. It reports the camera as it is,
|
|
1359
|
+
not a settled intent: use `lr-map-view-change` for where the camera came to rest, and this event to
|
|
1360
|
+
keep an overlay in step with the map while it travels (pair it with `project()`). It stops when the
|
|
1361
|
+
element disconnects.
|
|
1362
|
+
Readiness: `lr-map-style-load` (frozen `LyraMapReadinessDetail { generation }`) fires once per
|
|
1363
|
+
connection and style after generated and registered overlays, images, style overrides and their
|
|
1364
|
+
asynchronous preparation are restored; `lr-map-idle` (same detail) fires after style readiness
|
|
1365
|
+
whenever the peer and current component work are idle, including after later camera or source
|
|
1366
|
+
updates. `generation` increases monotonically across reconnects and style replacements.
|
|
1367
|
+
Interactions: `lr-map-feature-enter` and `lr-map-feature-leave` (frozen `LyraMapInteractionDetail
|
|
1368
|
+
{ lngLat, hit?, feature? }`) report the pointer entering a different admitted feature and leaving the previous
|
|
1369
|
+
one; `lr-map-pointer-move` (frozen `LyraMapPointerDetail { lngLat, point }`, at most once per frame) and
|
|
1370
|
+
`lr-map-pointer-leave` (detail `null`) report the pointer itself; `lr-map-contextmenu` (same detail) reports a secondary click without preventing the native
|
|
1371
|
+
context menu; `lr-map-pick` (frozen `LyraMapPickDetail { lngLat, hit?, trigger }`, `trigger` being
|
|
1372
|
+
`'pointer' | 'keyboard'`) reports a pick-mode selection, a keyboard pick using the camera center.
|
|
1373
|
+
`lr-map-anchor-close` (frozen `LyraMapAnchorCloseDetail { reason }`) fires after an open anchor
|
|
1374
|
+
closes by `closeAnchor()`, its close button or Escape.
|
|
1375
|
+
Drawing: `lr-map-draw-start` (after the first accepted vertex), `lr-map-draw-change` (after an
|
|
1376
|
+
accepted vertex, undo or vertex edit) and `lr-map-draw-complete` (valid geometry with spherical
|
|
1377
|
+
metrics) carry a frozen `LyraMapDrawingSnapshot`; `lr-map-draw-cancel` carries
|
|
1378
|
+
`LyraMapDrawingCancelDetail`, the cancelled snapshot plus a stable `reason`; `lr-map-draw-vertex-end`
|
|
1379
|
+
carries `LyraMapDrawingVertexEndDetail` once a vertex drag or keyboard move ends.
|
|
1380
|
+
Location: `lr-map-geolocate` (frozen `LyraMapGeolocateDetail { lngLat, accuracy }`) after the
|
|
1381
|
+
user-activated geolocate control locates the user.
|
|
1382
|
+
Failures: `lr-map-geolocate-error` (frozen `LyraMapGeolocateErrorDetail { code }`, a
|
|
1383
|
+
`LyraMapGeolocationErrorCode`) and `lr-map-geolocate-out-of-bounds` (`{ code: 'out-of-bounds' }`)
|
|
1384
|
+
expose no coordinates or native messages; `lr-map-export-error` (frozen
|
|
1385
|
+
`LyraMapImageExportErrorDetail { code }`) reports a sanitized `exportImage()` failure. None of these
|
|
1386
|
+
events is cancelable; all bubble and are composed.
|
|
672
1387
|
|
|
673
1388
|
The outer marker-activation detail is frozen, while an opaque marker `unsafeHtml` value remains the
|
|
674
1389
|
original supplied value at the MapLibre popup and marker-activation boundary. Treat it as trusted
|
|
675
1390
|
markup as described above.
|
|
676
1391
|
|
|
677
|
-
**Slots:** `
|
|
1392
|
+
**Slots:** `anchor` — content placed at `anchorLngLat`, replacing a hand-positioned popup. It sits
|
|
1393
|
+
above the point (flipped below near the top edge, shifted to stay inside the map), follows the point
|
|
1394
|
+
through every camera move, resize and `anchorLngLat` change, and is hidden while `anchorLngLat` is
|
|
1395
|
+
unset or unusable, the point is outside the visible map, or the map does not exist (before the peer
|
|
1396
|
+
loads, after a failure or a disconnect). The element only places it: `part="anchor"` supplies a
|
|
1397
|
+
default surface (padding, border, radius, shadow, above the legend and controls) and the slotted
|
|
1398
|
+
content owns its semantics, labelling, close control and focus, so name it and manage focus as you
|
|
1399
|
+
would any dialog or popup of your own. Positioning uses the library's shared popup positioner, in
|
|
1400
|
+
the map's container, and the wrapper's size never depends on the placement, so it adds no layout
|
|
1401
|
+
loop. Typical use: `map.addEventListener('lr-map-click', (e) => { card.hidden = false;
|
|
1402
|
+
map.anchorLngLat = e.detail.lngLat; })`.
|
|
1403
|
+
`anchors` — `lr-map-anchor` children; a direct child anchor assigns itself here. An element assigned
|
|
1404
|
+
here may also wrap anchors (a framework component host, say); it renders inside the map, so it
|
|
1405
|
+
should hold only anchors.
|
|
1406
|
+
`legend` — custom legend content, rendered inside the legend panel's own layout so it
|
|
678
1407
|
stays positioned with the map instead of floating beside it. Supplying it opens the panel even
|
|
679
1408
|
when `legend` and `legendGradient` are both empty. `legend-start` — the same extension point at the
|
|
680
1409
|
**top** of the panel: it renders ahead of the gradient bar and every projected row, where `legend`
|
|
@@ -685,9 +1414,19 @@ which only reaches rows projected from `legend`.
|
|
|
685
1414
|
**CSS parts:** `base`, `container`, `legend`, `legend-disclosure`, `legend-disclosure-icon`,
|
|
686
1415
|
`legend-group`, `legend-group-heading`, `legend-swatch`, `legend-toggle`,
|
|
687
1416
|
`legend-toggle-hidden`, `legend-gradient`, `legend-lo`,
|
|
688
|
-
`legend-hi`, `legend-
|
|
689
|
-
`popup-content`, `popup-close-button`, `attribution`,
|
|
690
|
-
`zoom-in`, `zoom-out`, `compass`, `scale`,
|
|
1417
|
+
`legend-hi`, `legend-ticks`, `legend-tick`, `legend-derived`, `legend-limit`, `anchor`,
|
|
1418
|
+
`anchor-close`, `marker`, `popup`, `popup-content`, `popup-close-button`, `attribution`,
|
|
1419
|
+
`attribution-toggle`, `attribution-content`, `navigation`, `zoom-in`, `zoom-out`, `compass`, `scale`,
|
|
1420
|
+
`geolocate`, `geolocate-control`,
|
|
1421
|
+
`configuration-error`, `error`.
|
|
1422
|
+
Before native construction, `initialization-placeholder` is the stable surface,
|
|
1423
|
+
`initialization-control` outlines each requested control and, for `initialization="interaction"`,
|
|
1424
|
+
`initialization-activate` is the localized button that starts the map. Pick mode renders `pick-controls` with
|
|
1425
|
+
`pick-center` and `pick-cancel`; draw mode renders `drawing-controls` with `drawing-add`,
|
|
1426
|
+
`drawing-undo`, `drawing-complete`, `drawing-cancel` and the `drawing-status` vertex count (plus
|
|
1427
|
+
`drawing-summary` with `drawingMeasurements`), vertex editing renders `drawing-handles` containing
|
|
1428
|
+
one `drawing-vertex` per editable vertex, and `drawingMeasurements` renders `drawing-measurements`
|
|
1429
|
+
holding the `drawing-measurement` labels.
|
|
691
1430
|
The compact attribution summary has a decorative, current-color information glyph and retains
|
|
692
1431
|
MapLibre's accessible name, keyboard/touch disclosure behavior and attribution links. To make
|
|
693
1432
|
only this control compact, scope the shared target-size token to its public wrapper:
|
|
@@ -698,6 +1437,27 @@ lr-map::part(attribution) { --lr-icon-button-size: var(--lr-size-24px); }
|
|
|
698
1437
|
|
|
699
1438
|
Keep that target at least 24px in both axes. This leaves navigation controls at their existing size.
|
|
700
1439
|
|
|
1440
|
+
`geolocate-control` targets the native geolocation control's whole wrapper; `geolocate` remains its
|
|
1441
|
+
button. Apply layout offsets to the wrapper to avoid enlarging the button's painted group.
|
|
1442
|
+
`attribution-content` targets the credits inside `attribution`, separately from `attribution-toggle`.
|
|
1443
|
+
For example, a host can place a bounded, scrollable credits panel above the compact toggle without
|
|
1444
|
+
changing the control's footprint when it opens:
|
|
1445
|
+
|
|
1446
|
+
```css
|
|
1447
|
+
lr-map::part(geolocate-control) { margin-block-end: var(--lr-space-2xl); }
|
|
1448
|
+
lr-map::part(attribution-content) {
|
|
1449
|
+
position: absolute;
|
|
1450
|
+
inset-inline-end: 0;
|
|
1451
|
+
inset-block-end: calc(100% + var(--lr-space-xs));
|
|
1452
|
+
inline-size: var(--lr-size-16rem);
|
|
1453
|
+
max-block-size: var(--lr-size-8rem);
|
|
1454
|
+
overflow: auto;
|
|
1455
|
+
background: var(--lr-color-surface);
|
|
1456
|
+
}
|
|
1457
|
+
```
|
|
1458
|
+
|
|
1459
|
+
Choose panel bounds that fit the map's allocation and keep required provider credits reachable.
|
|
1460
|
+
|
|
701
1461
|
`legend` is a localized `role="group"` containing a real list associated to the map canvas with
|
|
702
1462
|
`aria-describedby`; each entry is a `listitem`, decorative swatches are inert/accessibility-hidden,
|
|
703
1463
|
and the overlay is bounded to the map allocation with scrolling and long-label wrapping.
|
|
@@ -762,11 +1522,13 @@ reserves vertical room for these controls and attribution, including after resiz
|
|
|
762
1522
|
Attribution also reserves legend space when it is the only control. Opposing occupied corners
|
|
763
1523
|
share the available width, so expanded attribution wraps without covering a scale or navigation
|
|
764
1524
|
control on the other side; controls stay aligned to their logical edge in both text directions.
|
|
1525
|
+
Prefer the declarative `controls` property (`controls = { navigation: true, scale: { unit: 'metric' } }`),
|
|
1526
|
+
which does the dynamic import, `addControl()` and removal for you; the imperative route below stays
|
|
1527
|
+
supported for controls it does not cover, such as fullscreen.
|
|
765
1528
|
Navigation exposes `navigation`, `zoom-in`, `zoom-out`, and `compass` parts; the scale exposes `scale`.
|
|
766
1529
|
Button names update through `zoomIn`, `zoomOut`, and `mapResetNorth` locale strings. MapLibre retains
|
|
767
1530
|
keyboard activation, compass rotation, zoom limits, scale units and viewport updates. No controls
|
|
768
|
-
are created until
|
|
769
|
-
integration; there is no declarative controls property.
|
|
1531
|
+
other than default attribution are created until declared in `controls` or added by the application.
|
|
770
1532
|
|
|
771
1533
|
Navigation, scale, attribution and the legend follow the surrounding Glass or Solid surface
|
|
772
1534
|
treatment. Their decorative filtering leaves native control behavior and map data paint intact.
|
|
@@ -791,6 +1553,8 @@ geometry and foreground overrides remain available through the existing public p
|
|
|
791
1553
|
- `--lr-map-legend-hidden-swatch-opacity` (default `0.5`) — opacity of a hidden interactive legend
|
|
792
1554
|
row's decorative swatch. Only the `aria-hidden` swatch dims; the label re-colours through
|
|
793
1555
|
`--lr-color-text-quiet` instead, so it never drops below 4.5:1.
|
|
1556
|
+
- `--lr-map-drawing-color` (default `var(--lr-color-brand)`) — color of the temporary drawing, its
|
|
1557
|
+
rubber band and the vertex handles. Read from the resolved cascade, so a theme change repaints it.
|
|
794
1558
|
- `--lr-map-popup-close-button-hover-bg` (default `var(--lr-color-brand-quiet)`) and
|
|
795
1559
|
`--lr-map-popup-close-button-hover-color` (default `var(--lr-color-brand)`) — hover background
|
|
796
1560
|
and foreground of `popup-close-button`.
|
|
@@ -802,6 +1566,85 @@ var(--lr-color-brand-quiet), var(--lr-color-mix-partner) var(--lr-color-mix-acti
|
|
|
802
1566
|
control group), `--lr-color-border-subtle` (popup, legend and legend-limit rule edges),
|
|
803
1567
|
`--lr-shadow`, `--lr-radius`.
|
|
804
1568
|
|
|
1569
|
+
### Migrating a raw engine map to `lr-map`
|
|
1570
|
+
|
|
1571
|
+
Move the map's desired state into the component before connecting it. Keep `mapStyle` for the
|
|
1572
|
+
basemap and `overlays` for application-owned native sources and layers. The component prepares the
|
|
1573
|
+
modular features, installs those resources and restores them after each style replacement.
|
|
1574
|
+
|
|
1575
|
+
| Raw engine operation | Component-owned equivalent |
|
|
1576
|
+
| --- | --- |
|
|
1577
|
+
| `new Map({ style, center, zoom })` | `mapStyle`, `center`, `zoom` and the element's allocation |
|
|
1578
|
+
| `addSource()` / `addLayer()` and style-load replay | `overlays.sources` / `overlays.layers`, or `dataLayers` for the documented data-layer models |
|
|
1579
|
+
| `addImage()` / missing-image listener | `images` / `imageProvider` |
|
|
1580
|
+
| Basemap `setPaintProperty()` / `setLayoutProperty()` / `moveLayer()` | `styleOverrides` with a basemap `layerId` or selector; `before` controls placement |
|
|
1581
|
+
| Camera moves and fitting | `flyTo()`, `easeTo()`, `jumpTo()`, `fitBounds()` and `fitToData()` |
|
|
1582
|
+
| Polling `isStyleLoaded()` and installing a style-load listener | `whenStyleReady()` for style restoration; `whenIdle()` for subsequent resource/render work |
|
|
1583
|
+
|
|
1584
|
+
For example, this overlay remains owned when the basemap changes:
|
|
1585
|
+
|
|
1586
|
+
```ts
|
|
1587
|
+
import {
|
|
1588
|
+
LYRA_MAP_EMPTY_STYLE,
|
|
1589
|
+
type LyraMapStyleSpecification,
|
|
1590
|
+
} from '@aceshooting/lyra-ui/components/lr-map.js';
|
|
1591
|
+
|
|
1592
|
+
const mapEl = document.createElement('lr-map');
|
|
1593
|
+
mapEl.setAttribute('aria-label', 'Locations');
|
|
1594
|
+
mapEl.style.blockSize = '24rem';
|
|
1595
|
+
mapEl.initialization = 'eager';
|
|
1596
|
+
mapEl.mapStyle = LYRA_MAP_EMPTY_STYLE;
|
|
1597
|
+
mapEl.center = [2.35, 48.85];
|
|
1598
|
+
mapEl.zoom = 10;
|
|
1599
|
+
mapEl.overlays = {
|
|
1600
|
+
sources: [{
|
|
1601
|
+
id: 'locations-source',
|
|
1602
|
+
source: {
|
|
1603
|
+
type: 'geojson',
|
|
1604
|
+
data: {
|
|
1605
|
+
type: 'FeatureCollection',
|
|
1606
|
+
features: [{
|
|
1607
|
+
type: 'Feature', id: 'location-1', properties: {},
|
|
1608
|
+
geometry: { type: 'Point', coordinates: [2.35, 48.85] },
|
|
1609
|
+
}],
|
|
1610
|
+
},
|
|
1611
|
+
},
|
|
1612
|
+
}],
|
|
1613
|
+
layers: [{
|
|
1614
|
+
interactive: true,
|
|
1615
|
+
layer: {
|
|
1616
|
+
id: 'locations-circles', type: 'circle', source: 'locations-source',
|
|
1617
|
+
paint: { 'circle-color': 'var(--lr-color-brand)', 'circle-radius': 6 },
|
|
1618
|
+
},
|
|
1619
|
+
}],
|
|
1620
|
+
};
|
|
1621
|
+
document.body.append(mapEl);
|
|
1622
|
+
await mapEl.whenStyleReady();
|
|
1623
|
+
|
|
1624
|
+
async function replaceBasemap(style: LyraMapStyleSpecification): Promise<void> {
|
|
1625
|
+
mapEl.mapStyle = style;
|
|
1626
|
+
await mapEl.whenStyleReady();
|
|
1627
|
+
// The component has restored locations-source and locations-circles.
|
|
1628
|
+
}
|
|
1629
|
+
```
|
|
1630
|
+
|
|
1631
|
+
Configure the companion worker as shown below before running this example. Handle rejected
|
|
1632
|
+
readiness promises when navigation disconnects the element, a newer style supersedes the request,
|
|
1633
|
+
or resource preparation fails. After reassigning overlay data or mutable paint/layout on the same
|
|
1634
|
+
style, await `whenIdle()` before relying on the rendered result.
|
|
1635
|
+
|
|
1636
|
+
Keep the application snapshot authoritative and assign fresh `overlays`, `images` and
|
|
1637
|
+
`styleOverrides` values when they change. An incremental `updateSourceData()` call does not rewrite
|
|
1638
|
+
that snapshot: the next style replacement restores the controlled source data. Keep source, layer
|
|
1639
|
+
and image IDs distinct from the basemap and component-generated resources. A `before` anchor must
|
|
1640
|
+
be valid for the replacement basemap too; omit it when no shared anchor exists.
|
|
1641
|
+
|
|
1642
|
+
Remove the old callbacks that re-add these same resources on every style load. Use
|
|
1643
|
+
`lr-map-style-load` to observe completed restoration. Direct mutations through the `map` getter
|
|
1644
|
+
remain outside declarative ownership; move resources that must survive basemap changes into the
|
|
1645
|
+
properties above. Retain application selection state across source identity changes, and check
|
|
1646
|
+
boolean admission when applying it through `setFeatureState()`.
|
|
1647
|
+
|
|
805
1648
|
**Optional peer deps:** the default is `@aceshooting/lyra-map` `^1.0.0` (lazy-loaded). Install and
|
|
806
1649
|
configure the companion's Vite plugin so the engine and module worker share the same emitted
|
|
807
1650
|
feature graph:
|
|
@@ -813,6 +1656,22 @@ import { lyraMapWorkerPlugin } from '@aceshooting/lyra-map/vite';
|
|
|
813
1656
|
export default defineConfig({ plugins: [lyraMapWorkerPlugin()] });
|
|
814
1657
|
```
|
|
815
1658
|
|
|
1659
|
+
The plugin configures the worker as the selected renderer is bundled; application startup needs
|
|
1660
|
+
no companion pre-import or readiness gate. Configure one plugin instance per application build,
|
|
1661
|
+
including when a workspace re-exports it. For an optional warm-up when navigation intent is known:
|
|
1662
|
+
|
|
1663
|
+
```ts
|
|
1664
|
+
import { LyraMap } from '@aceshooting/lyra-ui/components/lr-map.js';
|
|
1665
|
+
|
|
1666
|
+
void LyraMap.preload();
|
|
1667
|
+
```
|
|
1668
|
+
|
|
1669
|
+
`preload()` starts the selected engine import without constructing a map, creating a WebGL context
|
|
1670
|
+
or waiting for a style. It is optional and does not replace worker configuration or an element's
|
|
1671
|
+
`whenStyleReady()` / `whenIdle()` promises. Await its boolean result only when the application needs
|
|
1672
|
+
to choose its own fallback; `false` means that the selected engine could not load. For an element
|
|
1673
|
+
that will use `engine="maplibre"`, warm that engine with `LyraMap.preload('maplibre')` instead.
|
|
1674
|
+
|
|
816
1675
|
The plugin disables document module-preload helpers for chunks also imported by workers. See the
|
|
817
1676
|
companion README for Rollup/Rolldown integration or the explicit `setWorkerUrl()` override. Missing
|
|
818
1677
|
worker configuration fails visibly. Importing the companion during SSR is safe; worker creation
|
|
@@ -854,10 +1713,44 @@ With the default companion configured:
|
|
|
854
1713
|
</script>
|
|
855
1714
|
```
|
|
856
1715
|
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
`
|
|
860
|
-
|
|
1716
|
+
### Moving from full MapLibre to the modular engine
|
|
1717
|
+
|
|
1718
|
+
For an existing `lr-map`, install the compatible `@aceshooting/lyra-map` companion, add
|
|
1719
|
+
`lyraMapWorkerPlugin()` to the Vite configuration above, and set `engine="modular"` before the
|
|
1720
|
+
element connects (or omit `engine`, whose default is `modular`). Existing style descriptors and
|
|
1721
|
+
component-owned overlays keep the same shape. Changing `engine` on a connected element takes
|
|
1722
|
+
effect only after disconnect/reconnect.
|
|
1723
|
+
|
|
1724
|
+
Register custom protocols through `@aceshooting/lyra-map` when using the modular engine; protocol
|
|
1725
|
+
registrations on `maplibre-gl` belong to that other engine. Declarative component resources prepare
|
|
1726
|
+
their required feature families automatically. Any remaining direct `map.addSource()` /
|
|
1727
|
+
`map.addLayer()` / projection / terrain mutations must await the modular map's
|
|
1728
|
+
`prepareFeatures()` with their real descriptors first, as described above.
|
|
1729
|
+
|
|
1730
|
+
The modular plugin does not configure full MapLibre's worker. If an element still explicitly uses
|
|
1731
|
+
`engine="maplibre"`, retain that engine's setup. For Vite and MapLibre v6:
|
|
1732
|
+
|
|
1733
|
+
```ts
|
|
1734
|
+
import { setWorkerUrl } from 'maplibre-gl';
|
|
1735
|
+
import workerUrl from 'maplibre-gl/dist/maplibre-gl-worker.mjs?worker&url';
|
|
1736
|
+
import {
|
|
1737
|
+
LYRA_MAP_EMPTY_STYLE,
|
|
1738
|
+
} from '@aceshooting/lyra-ui/components/lr-map.js';
|
|
1739
|
+
|
|
1740
|
+
setWorkerUrl(workerUrl);
|
|
1741
|
+
const nativeMapEl = document.createElement('lr-map');
|
|
1742
|
+
nativeMapEl.engine = 'maplibre';
|
|
1743
|
+
nativeMapEl.mapStyle = LYRA_MAP_EMPTY_STYLE;
|
|
1744
|
+
nativeMapEl.style.blockSize = '24rem';
|
|
1745
|
+
document.body.append(nativeMapEl);
|
|
1746
|
+
```
|
|
1747
|
+
|
|
1748
|
+
Run worker setup before connecting any full-engine element. MapLibre v5's standard build includes
|
|
1749
|
+
its worker; other build variants and bundlers have their own setup (see
|
|
1750
|
+
https://maplibre.org/maplibre-gl-js/docs/#esm). Remove the full-engine worker import and dependency
|
|
1751
|
+
only when no remaining consumer uses them. The component styles its own shadow DOM for either
|
|
1752
|
+
engine; keep a page-level engine stylesheet only for raw maps that still need it. Deploy the
|
|
1753
|
+
modular renderer, worker and every emitted feature chunk together.
|
|
861
1754
|
|
|
862
1755
|
**Known gotchas:**
|
|
863
1756
|
|
|
@@ -892,10 +1785,9 @@ undefined`, or changing `choropleth.sourceId` to a different value, now calls `r
|
|
|
892
1785
|
`Marker` has no `setColor()`) rather than mutated in place — this also closes any popup the user
|
|
893
1786
|
currently has open on that marker (a fresh, closed `Popup` is built for the new instance); an
|
|
894
1787
|
accepted side effect of the reconstruction fallback, not a bug.
|
|
895
|
-
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
only the raw `lr-map-click` event.
|
|
1788
|
+
- Clicking does not select or highlight a feature automatically. Use `setFeatureState()` with
|
|
1789
|
+
feature-state-aware paint for application-owned selection, or assign `anchorLngLat` and slotted
|
|
1790
|
+
anchor content to show feature details. Marker popups remain available through `unsafeHtml`/`label`.
|
|
899
1791
|
- `LyraMapLegendEntry.color` is validated against a strict CSS-color-syntax allowlist before being applied
|
|
900
1792
|
to the legend swatch's `background-color`, rejecting anything that isn't recognizable color syntax
|
|
901
1793
|
(notably `url(...)`, which `background` also accepts and would otherwise fetch as soon as the
|
|
@@ -905,13 +1797,11 @@ undefined`, or changing `choropleth.sourceId` to a different value, now calls `r
|
|
|
905
1797
|
decorative `<lr-skeleton shape="rect" announce="false">` in place of the map container.
|
|
906
1798
|
Ordinary sr-only text preserves the localized `loading` label without creating a shadow live
|
|
907
1799
|
region.
|
|
908
|
-
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
concurrent WebGL contexts when many `<lr-map>`s sit in one dashboard/grid. Skipped entirely
|
|
914
|
-
(constructs immediately once the peer loads) when `IntersectionObserver` itself is unavailable.
|
|
1800
|
+
- `initialization='visible'` (the default) waits for the element to intersect the viewport before
|
|
1801
|
+
constructing its map and WebGL context. `idle` and `eager` select the other admission modes.
|
|
1802
|
+
Deferred construction shows the localized initialization placeholder; `map` remains undefined
|
|
1803
|
+
and `lr-map-load` waits for construction. Without `IntersectionObserver`, visible admission
|
|
1804
|
+
proceeds once the peer and caller inputs are ready.
|
|
915
1805
|
- Once constructed, the owner realm's `ResizeObserver` watches the rendered map container and calls
|
|
916
1806
|
the current peer's `resize()` on allocation changes. It is replaced on reconnect/adoption and
|
|
917
1807
|
disconnected before peer teardown, so a stale delivery cannot resize a removed map. Browsers
|