@classic-homes/maps-core 0.7.5 → 0.9.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/dist/{chunk-KEBZDTH3.js → chunk-OYZEJO3U.js} +5 -3
- package/dist/{chunk-Q4ISJ6FV.js → chunk-QT4EOLBO.js} +1 -1
- package/dist/{chunk-ZAGAADA3.js → chunk-VMBWIYOW.js} +28 -2
- package/dist/{deck-Crhj7TKV.d.ts → deck-C9WgQFqv.d.ts} +33 -2
- package/dist/{deck-Cvmx9g1O.d.cts → deck-CQDQQlcb.d.cts} +33 -2
- package/dist/{generator-CU9ZTZ1v.d.cts → generator-DmozEcaK.d.cts} +10 -0
- package/dist/{generator-CU9ZTZ1v.d.ts → generator-DmozEcaK.d.ts} +10 -0
- package/dist/index.cjs +32 -2
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +5 -5
- package/dist/theme/index.cjs +4 -2
- package/dist/theme/index.d.cts +3 -2
- package/dist/theme/index.d.ts +3 -2
- package/dist/theme/index.js +2 -2
- package/dist/types/index.d.cts +9 -4
- package/dist/types/index.d.ts +9 -4
- package/dist/utils/index.cjs +32 -2
- package/dist/utils/index.d.cts +3 -2
- package/dist/utils/index.d.ts +3 -2
- package/dist/utils/index.js +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { fontFamily, semanticColors, ch, colors } from '@classic-homes/theme-tokens';
|
|
1
|
+
import { fontFamily, semanticColors, dataStatusColors, ch, colors } from '@classic-homes/theme-tokens';
|
|
2
2
|
|
|
3
3
|
// src/theme/generator.ts
|
|
4
4
|
var THEME_LIGHT = "classic-light";
|
|
@@ -75,7 +75,8 @@ function generateLightDataColors() {
|
|
|
75
75
|
neutral: ch.grey02,
|
|
76
76
|
// One teal ramp (Shallows, Accent Teal, Heritage Teal); no red in it, since
|
|
77
77
|
// red means a problem in v2.5
|
|
78
|
-
heatmapRamp: ["rgba(216, 237, 237, 0)", ch.accentTeal100, ch.accentTeal, ch.heritageTeal]
|
|
78
|
+
heatmapRamp: ["rgba(216, 237, 237, 0)", ch.accentTeal100, ch.accentTeal, ch.heritageTeal],
|
|
79
|
+
status: { ...dataStatusColors.light }
|
|
79
80
|
};
|
|
80
81
|
}
|
|
81
82
|
function generateDarkDataColors() {
|
|
@@ -104,7 +105,8 @@ function generateDarkDataColors() {
|
|
|
104
105
|
colors.red[400],
|
|
105
106
|
colors.red[500],
|
|
106
107
|
colors.red[600]
|
|
107
|
-
]
|
|
108
|
+
],
|
|
109
|
+
status: { ...dataStatusColors.dark }
|
|
108
110
|
};
|
|
109
111
|
}
|
|
110
112
|
function getTypography() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { lightTheme } from './chunk-
|
|
1
|
+
import { lightTheme } from './chunk-OYZEJO3U.js';
|
|
2
2
|
import { ch } from '@classic-homes/theme-tokens';
|
|
3
3
|
import RBush from 'rbush';
|
|
4
4
|
|
|
@@ -2882,6 +2882,32 @@ function applyMarkerChildProtection(element) {
|
|
|
2882
2882
|
style.setProperty("transition", "none", "important");
|
|
2883
2883
|
style.setProperty("animation", "none", "important");
|
|
2884
2884
|
}
|
|
2885
|
+
var MANAGED_TABINDEX = "data-marker-tabindex";
|
|
2886
|
+
function applyMarkerAccessibility(element, { label, clickable = false, draggable = false, custom = false }) {
|
|
2887
|
+
const name = label?.trim();
|
|
2888
|
+
if (name) element.setAttribute("aria-label", name);
|
|
2889
|
+
else if (custom) element.removeAttribute("aria-label");
|
|
2890
|
+
if (!custom || name || clickable) {
|
|
2891
|
+
element.setAttribute("role", clickable || draggable && !custom ? "button" : "img");
|
|
2892
|
+
} else {
|
|
2893
|
+
element.removeAttribute("role");
|
|
2894
|
+
}
|
|
2895
|
+
if (clickable) {
|
|
2896
|
+
if (!element.hasAttribute("tabindex")) {
|
|
2897
|
+
element.setAttribute("tabindex", "0");
|
|
2898
|
+
element.setAttribute(MANAGED_TABINDEX, "");
|
|
2899
|
+
}
|
|
2900
|
+
} else if (element.hasAttribute(MANAGED_TABINDEX)) {
|
|
2901
|
+
element.removeAttribute("tabindex");
|
|
2902
|
+
element.removeAttribute(MANAGED_TABINDEX);
|
|
2903
|
+
}
|
|
2904
|
+
}
|
|
2905
|
+
function handleMarkerKeydown(event) {
|
|
2906
|
+
if (event.key !== "Enter" && event.key !== " ") return;
|
|
2907
|
+
if (event.target !== event.currentTarget) return;
|
|
2908
|
+
event.preventDefault();
|
|
2909
|
+
event.currentTarget.click();
|
|
2910
|
+
}
|
|
2885
2911
|
|
|
2886
2912
|
// src/utils/popup.ts
|
|
2887
2913
|
function normalizePadding(padding) {
|
|
@@ -2958,4 +2984,4 @@ function resolveDeckInterleaved(map, requested) {
|
|
|
2958
2984
|
return requested && supportsDeckInterleaving(map);
|
|
2959
2985
|
}
|
|
2960
2986
|
|
|
2961
|
-
export { DEFAULT_SIMPLIFICATION_THRESHOLDS, KEYBOARD_CONTROLS, MARKER_PROTECTION_CLASS, applyMarkerChildProtection, applyMarkerProtection, boundaryColors, boundsToPolygon, buildRTreeIndex, buildSpatialIndex, calculateBounds, calculateCentroid, calculateZoomThresholds, clampLatitude, clusterColors, combineBounds, countFeaturesByType, createCategoricalColorExpression, createCircleStyle, createClusterCirclePaint, createClusterStyles, createClusterTextLayout, createContinuousColorExpression, createDynamicLODManager, createExtrusionHeightExpression, createExtrusionStyle, createFillStyle, createGeoJSONFingerprint, createHeatmapStyle, createHoverExpression, createIdleViewportManager, createInteractiveExpression, createInteractiveStatusColorExpression, createLineStyle, createLotFillStyle, createLotOutlineStyle, createPredictiveViewportManager, createRTreeViewportManager, createSelectionExpression, createStatusColorExpression, createViewportManager, createViewportQuery, createZoomExpression, decimalToDMS, deepEqual, ensureValidCoordinates, expandCluster, expandClusterToBounds, extendBounds, filterByGeometryType, filterEqual, fingerprintEqual, formatArea, formatBearing, formatBounds, formatCoordinates, formatDistance, formatFeatureProperties, formatLabel, formatPitch, formatPropertyValue, formatScale, formatZoom, generateBoundingPolygon, generateConvexHull, generateFeatureCollectionDescription, generateFeatureTable, generateKeyboardControlsDescription, generateLODData, generateLODDataWithSimplification, generateMapDescription, generateMarkerList, generateMarkersDescription, generateMoveAnnouncement, geoJSONEqual, getChangedPaintProps, getClusterBounds, getClusterChildren, getClusterExpansionZoom, getClusterLeaves, getGridNavigationIndex, getHighlightStyle, getSelectionStyle, getSimplificationToleranceForZoom, getSimplifiedFeaturesForZoom, groupFeaturesByProperty, isClusterFeature, isValidBounds, isValidLatitude, isValidLongitude, loadGeoJSON, markerColor, nonMatchedColor, normalizeLongitude, normalizePadding, paintPropsEqual, panToFitPopup, prefersReducedMotion, queryByBounds, queryByBoundsWithStats, queryRTreeByBounds, queryRTreeByBoundsWithStats, removeMarkerProtection, resetWorkerUrlWarning, resolveDeckInterleaved, salesOfficeColor, serializeFilter, simplifyFeature, simplifyFeatureCollection, simplifyFeatureCollectionWithStats, simplifyPolygon, supportsDeckInterleaving, validateBoundsArray, validateCoordinates, validateGeoJSON, warnIfWorkerUrlMissing, zoomToScale };
|
|
2987
|
+
export { DEFAULT_SIMPLIFICATION_THRESHOLDS, KEYBOARD_CONTROLS, MARKER_PROTECTION_CLASS, applyMarkerAccessibility, applyMarkerChildProtection, applyMarkerProtection, boundaryColors, boundsToPolygon, buildRTreeIndex, buildSpatialIndex, calculateBounds, calculateCentroid, calculateZoomThresholds, clampLatitude, clusterColors, combineBounds, countFeaturesByType, createCategoricalColorExpression, createCircleStyle, createClusterCirclePaint, createClusterStyles, createClusterTextLayout, createContinuousColorExpression, createDynamicLODManager, createExtrusionHeightExpression, createExtrusionStyle, createFillStyle, createGeoJSONFingerprint, createHeatmapStyle, createHoverExpression, createIdleViewportManager, createInteractiveExpression, createInteractiveStatusColorExpression, createLineStyle, createLotFillStyle, createLotOutlineStyle, createPredictiveViewportManager, createRTreeViewportManager, createSelectionExpression, createStatusColorExpression, createViewportManager, createViewportQuery, createZoomExpression, decimalToDMS, deepEqual, ensureValidCoordinates, expandCluster, expandClusterToBounds, extendBounds, filterByGeometryType, filterEqual, fingerprintEqual, formatArea, formatBearing, formatBounds, formatCoordinates, formatDistance, formatFeatureProperties, formatLabel, formatPitch, formatPropertyValue, formatScale, formatZoom, generateBoundingPolygon, generateConvexHull, generateFeatureCollectionDescription, generateFeatureTable, generateKeyboardControlsDescription, generateLODData, generateLODDataWithSimplification, generateMapDescription, generateMarkerList, generateMarkersDescription, generateMoveAnnouncement, geoJSONEqual, getChangedPaintProps, getClusterBounds, getClusterChildren, getClusterExpansionZoom, getClusterLeaves, getGridNavigationIndex, getHighlightStyle, getSelectionStyle, getSimplificationToleranceForZoom, getSimplifiedFeaturesForZoom, groupFeaturesByProperty, handleMarkerKeydown, isClusterFeature, isValidBounds, isValidLatitude, isValidLongitude, loadGeoJSON, markerColor, nonMatchedColor, normalizeLongitude, normalizePadding, paintPropsEqual, panToFitPopup, prefersReducedMotion, queryByBounds, queryByBoundsWithStats, queryRTreeByBounds, queryRTreeByBoundsWithStats, removeMarkerProtection, resetWorkerUrlWarning, resolveDeckInterleaved, salesOfficeColor, serializeFilter, simplifyFeature, simplifyFeatureCollection, simplifyFeatureCollectionWithStats, simplifyPolygon, supportsDeckInterleaving, validateBoundsArray, validateCoordinates, validateGeoJSON, warnIfWorkerUrlMissing, zoomToScale };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { G as GeoJSONFeatureCollection, L as LngLat, k as MarkerData, M as MapBounds, B as BoundsArray, a as GeoJSONFeature, h as GeoJSONPolygon } from './data-DCyEqgN0.js';
|
|
2
|
-
import { a as MapTheme } from './generator-
|
|
2
|
+
import { a as MapTheme } from './generator-DmozEcaK.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Accessibility utilities for maps
|
|
@@ -1501,6 +1501,37 @@ declare function removeMarkerProtection(element: HTMLElement): void;
|
|
|
1501
1501
|
* Apply CSS protection to custom marker content (children/slots).
|
|
1502
1502
|
*/
|
|
1503
1503
|
declare function applyMarkerChildProtection(element: HTMLElement): void;
|
|
1504
|
+
/**
|
|
1505
|
+
* How a marker should be exposed to assistive technology.
|
|
1506
|
+
*/
|
|
1507
|
+
interface MarkerAccessibilityOptions {
|
|
1508
|
+
/** Accessible name. Without one, a default MapLibre marker keeps its generic "Map marker" */
|
|
1509
|
+
label?: string;
|
|
1510
|
+
/** The marker does something on click: exposed as a focusable button */
|
|
1511
|
+
clickable?: boolean;
|
|
1512
|
+
/** The marker can be dragged (MapLibre exposes draggable default markers as buttons) */
|
|
1513
|
+
draggable?: boolean;
|
|
1514
|
+
/** The element is the app's own content rather than MapLibre's default pin */
|
|
1515
|
+
custom?: boolean;
|
|
1516
|
+
}
|
|
1517
|
+
/**
|
|
1518
|
+
* Give a marker element its accessible name, role and keyboard focus.
|
|
1519
|
+
*
|
|
1520
|
+
* Call it before `marker.addTo(map)` as well as after any change: MapLibre only
|
|
1521
|
+
* labels and gives a role to a default marker that has none yet, and it leaves
|
|
1522
|
+
* an application-set role and tabindex alone. So the app's label replaces the
|
|
1523
|
+
* generic "Map marker", a clickable marker is a `button` that Tab reaches,
|
|
1524
|
+
* and a plain one is an `img`.
|
|
1525
|
+
*
|
|
1526
|
+
* Custom marker content gets a role only when it has a label or a click
|
|
1527
|
+
* action; otherwise it is left to the app's own markup.
|
|
1528
|
+
*/
|
|
1529
|
+
declare function applyMarkerAccessibility(element: HTMLElement, { label, clickable, draggable, custom }: MarkerAccessibilityOptions): void;
|
|
1530
|
+
/**
|
|
1531
|
+
* Keydown handler for a clickable marker: Enter and Space activate it like a
|
|
1532
|
+
* mouse click, as for any `role="button"`. Attach it to the marker element.
|
|
1533
|
+
*/
|
|
1534
|
+
declare function handleMarkerKeydown(event: KeyboardEvent): void;
|
|
1504
1535
|
|
|
1505
1536
|
/**
|
|
1506
1537
|
* MapLibre worker-URL guard.
|
|
@@ -1558,4 +1589,4 @@ declare function supportsDeckInterleaving(map: DeckHostMap): boolean;
|
|
|
1558
1589
|
*/
|
|
1559
1590
|
declare function resolveDeckInterleaved(map: DeckHostMap, requested: boolean): boolean;
|
|
1560
1591
|
|
|
1561
|
-
export {
|
|
1592
|
+
export { createClusterCirclePaint as $, type PaintPropsDiff as A, type SimplificationThreshold as B, type ClusterCircleStyleOptions as C, DEFAULT_SIMPLIFICATION_THRESHOLDS as D, type ExtrusionHeightOptions as E, type FeatureGroup as F, type GenerateLODOptions as G, applyMarkerAccessibility as H, applyMarkerChildProtection as I, applyMarkerProtection as J, KEYBOARD_CONTROLS as K, type LODData as L, MARKER_PROTECTION_CLASS as M, type NumberExpression as N, boundsToPolygon as O, type PaintProps as P, calculateBounds as Q, calculateCentroid as R, type SimplificationStats as S, calculateZoomThresholds as T, type UnclusteredPointStyleOptions as U, type ValidationResult as V, clampLatitude as W, combineBounds as X, countFeaturesByType as Y, createCategoricalColorExpression as Z, createCircleStyle as _, type ClusterExpandOptions as a, isValidBounds as a$, createClusterStyles as a0, createClusterTextLayout as a1, createContinuousColorExpression as a2, createDynamicLODManager as a3, createExtrusionHeightExpression as a4, createExtrusionStyle as a5, createFillStyle as a6, createGeoJSONFingerprint as a7, createHeatmapStyle as a8, createHoverExpression as a9, formatScale as aA, formatZoom as aB, generateBoundingPolygon as aC, generateConvexHull as aD, generateFeatureCollectionDescription as aE, generateFeatureTable as aF, generateKeyboardControlsDescription as aG, generateLODData as aH, generateLODDataWithSimplification as aI, generateMapDescription as aJ, generateMarkerList as aK, generateMarkersDescription as aL, generateMoveAnnouncement as aM, geoJSONEqual as aN, getChangedPaintProps as aO, getClusterBounds as aP, getClusterChildren as aQ, getClusterExpansionZoom as aR, getClusterLeaves as aS, getGridNavigationIndex as aT, getHighlightStyle as aU, getSelectionStyle as aV, getSimplificationToleranceForZoom as aW, getSimplifiedFeaturesForZoom as aX, groupFeaturesByProperty as aY, handleMarkerKeydown as aZ, isClusterFeature as a_, createInteractiveExpression as aa, createInteractiveStatusColorExpression as ab, createLineStyle as ac, createLotFillStyle as ad, createLotOutlineStyle as ae, createSelectionExpression as af, createStatusColorExpression as ag, createZoomExpression as ah, decimalToDMS as ai, deepEqual as aj, ensureValidCoordinates as ak, expandCluster as al, expandClusterToBounds as am, extendBounds as an, filterByGeometryType as ao, filterEqual as ap, fingerprintEqual as aq, formatArea as ar, formatBearing as as, formatBounds as at, formatCoordinates as au, formatDistance as av, formatFeatureProperties as aw, formatLabel as ax, formatPitch as ay, formatPropertyValue as az, type ClusterExpansionResult as b, isValidLatitude as b0, isValidLongitude as b1, loadGeoJSON as b2, normalizeLongitude as b3, paintPropsEqual as b4, removeMarkerProtection as b5, resetWorkerUrlWarning as b6, resolveDeckInterleaved as b7, serializeFilter as b8, simplifyFeature as b9, simplifyFeatureCollection as ba, simplifyFeatureCollectionWithStats as bb, simplifyPolygon as bc, supportsDeckInterleaving as bd, validateBoundsArray as be, validateCoordinates as bf, validateGeoJSON as bg, warnIfWorkerUrlMissing as bh, zoomToScale as bi, type ClusterFeatureProperties as c, type ClusterLayerStyles as d, type ClusterMapBoundsExpander as e, type ClusterMapExpander as f, type ClusterMapReader as g, type ClusterTextStyleOptions as h, type ClusterableGeoJSONSource as i, type ColorExpression as j, type CoordinateValidationResult as k, type DeckHostMap as l, type DynamicLODOptions as m, type DynamicLODState as n, type FilterExpression as o, type FilterOperator as p, type FilterValue as q, type GeoJSONFingerprint as r, type GroupFeaturesOptions as s, type LODDataWithSimplification as t, type LoadGeoJSONOptions as u, type LoadGeoJSONResult as v, type LotFillStyleOptions as w, type LotOutlineStyleOptions as x, type MapLibreWorkerApi as y, type MarkerAccessibilityOptions as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { G as GeoJSONFeatureCollection, L as LngLat, k as MarkerData, M as MapBounds, B as BoundsArray, a as GeoJSONFeature, h as GeoJSONPolygon } from './data-DCyEqgN0.cjs';
|
|
2
|
-
import { a as MapTheme } from './generator-
|
|
2
|
+
import { a as MapTheme } from './generator-DmozEcaK.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Accessibility utilities for maps
|
|
@@ -1501,6 +1501,37 @@ declare function removeMarkerProtection(element: HTMLElement): void;
|
|
|
1501
1501
|
* Apply CSS protection to custom marker content (children/slots).
|
|
1502
1502
|
*/
|
|
1503
1503
|
declare function applyMarkerChildProtection(element: HTMLElement): void;
|
|
1504
|
+
/**
|
|
1505
|
+
* How a marker should be exposed to assistive technology.
|
|
1506
|
+
*/
|
|
1507
|
+
interface MarkerAccessibilityOptions {
|
|
1508
|
+
/** Accessible name. Without one, a default MapLibre marker keeps its generic "Map marker" */
|
|
1509
|
+
label?: string;
|
|
1510
|
+
/** The marker does something on click: exposed as a focusable button */
|
|
1511
|
+
clickable?: boolean;
|
|
1512
|
+
/** The marker can be dragged (MapLibre exposes draggable default markers as buttons) */
|
|
1513
|
+
draggable?: boolean;
|
|
1514
|
+
/** The element is the app's own content rather than MapLibre's default pin */
|
|
1515
|
+
custom?: boolean;
|
|
1516
|
+
}
|
|
1517
|
+
/**
|
|
1518
|
+
* Give a marker element its accessible name, role and keyboard focus.
|
|
1519
|
+
*
|
|
1520
|
+
* Call it before `marker.addTo(map)` as well as after any change: MapLibre only
|
|
1521
|
+
* labels and gives a role to a default marker that has none yet, and it leaves
|
|
1522
|
+
* an application-set role and tabindex alone. So the app's label replaces the
|
|
1523
|
+
* generic "Map marker", a clickable marker is a `button` that Tab reaches,
|
|
1524
|
+
* and a plain one is an `img`.
|
|
1525
|
+
*
|
|
1526
|
+
* Custom marker content gets a role only when it has a label or a click
|
|
1527
|
+
* action; otherwise it is left to the app's own markup.
|
|
1528
|
+
*/
|
|
1529
|
+
declare function applyMarkerAccessibility(element: HTMLElement, { label, clickable, draggable, custom }: MarkerAccessibilityOptions): void;
|
|
1530
|
+
/**
|
|
1531
|
+
* Keydown handler for a clickable marker: Enter and Space activate it like a
|
|
1532
|
+
* mouse click, as for any `role="button"`. Attach it to the marker element.
|
|
1533
|
+
*/
|
|
1534
|
+
declare function handleMarkerKeydown(event: KeyboardEvent): void;
|
|
1504
1535
|
|
|
1505
1536
|
/**
|
|
1506
1537
|
* MapLibre worker-URL guard.
|
|
@@ -1558,4 +1589,4 @@ declare function supportsDeckInterleaving(map: DeckHostMap): boolean;
|
|
|
1558
1589
|
*/
|
|
1559
1590
|
declare function resolveDeckInterleaved(map: DeckHostMap, requested: boolean): boolean;
|
|
1560
1591
|
|
|
1561
|
-
export {
|
|
1592
|
+
export { createClusterCirclePaint as $, type PaintPropsDiff as A, type SimplificationThreshold as B, type ClusterCircleStyleOptions as C, DEFAULT_SIMPLIFICATION_THRESHOLDS as D, type ExtrusionHeightOptions as E, type FeatureGroup as F, type GenerateLODOptions as G, applyMarkerAccessibility as H, applyMarkerChildProtection as I, applyMarkerProtection as J, KEYBOARD_CONTROLS as K, type LODData as L, MARKER_PROTECTION_CLASS as M, type NumberExpression as N, boundsToPolygon as O, type PaintProps as P, calculateBounds as Q, calculateCentroid as R, type SimplificationStats as S, calculateZoomThresholds as T, type UnclusteredPointStyleOptions as U, type ValidationResult as V, clampLatitude as W, combineBounds as X, countFeaturesByType as Y, createCategoricalColorExpression as Z, createCircleStyle as _, type ClusterExpandOptions as a, isValidBounds as a$, createClusterStyles as a0, createClusterTextLayout as a1, createContinuousColorExpression as a2, createDynamicLODManager as a3, createExtrusionHeightExpression as a4, createExtrusionStyle as a5, createFillStyle as a6, createGeoJSONFingerprint as a7, createHeatmapStyle as a8, createHoverExpression as a9, formatScale as aA, formatZoom as aB, generateBoundingPolygon as aC, generateConvexHull as aD, generateFeatureCollectionDescription as aE, generateFeatureTable as aF, generateKeyboardControlsDescription as aG, generateLODData as aH, generateLODDataWithSimplification as aI, generateMapDescription as aJ, generateMarkerList as aK, generateMarkersDescription as aL, generateMoveAnnouncement as aM, geoJSONEqual as aN, getChangedPaintProps as aO, getClusterBounds as aP, getClusterChildren as aQ, getClusterExpansionZoom as aR, getClusterLeaves as aS, getGridNavigationIndex as aT, getHighlightStyle as aU, getSelectionStyle as aV, getSimplificationToleranceForZoom as aW, getSimplifiedFeaturesForZoom as aX, groupFeaturesByProperty as aY, handleMarkerKeydown as aZ, isClusterFeature as a_, createInteractiveExpression as aa, createInteractiveStatusColorExpression as ab, createLineStyle as ac, createLotFillStyle as ad, createLotOutlineStyle as ae, createSelectionExpression as af, createStatusColorExpression as ag, createZoomExpression as ah, decimalToDMS as ai, deepEqual as aj, ensureValidCoordinates as ak, expandCluster as al, expandClusterToBounds as am, extendBounds as an, filterByGeometryType as ao, filterEqual as ap, fingerprintEqual as aq, formatArea as ar, formatBearing as as, formatBounds as at, formatCoordinates as au, formatDistance as av, formatFeatureProperties as aw, formatLabel as ax, formatPitch as ay, formatPropertyValue as az, type ClusterExpansionResult as b, isValidLatitude as b0, isValidLongitude as b1, loadGeoJSON as b2, normalizeLongitude as b3, paintPropsEqual as b4, removeMarkerProtection as b5, resetWorkerUrlWarning as b6, resolveDeckInterleaved as b7, serializeFilter as b8, simplifyFeature as b9, simplifyFeatureCollection as ba, simplifyFeatureCollectionWithStats as bb, simplifyPolygon as bc, supportsDeckInterleaving as bd, validateBoundsArray as be, validateCoordinates as bf, validateGeoJSON as bg, warnIfWorkerUrlMissing as bh, zoomToScale as bi, type ClusterFeatureProperties as c, type ClusterLayerStyles as d, type ClusterMapBoundsExpander as e, type ClusterMapExpander as f, type ClusterMapReader as g, type ClusterTextStyleOptions as h, type ClusterableGeoJSONSource as i, type ColorExpression as j, type CoordinateValidationResult as k, type DeckHostMap as l, type DynamicLODOptions as m, type DynamicLODState as n, type FilterExpression as o, type FilterOperator as p, type FilterValue as q, type GeoJSONFingerprint as r, type GroupFeaturesOptions as s, type LODDataWithSimplification as t, type LoadGeoJSONOptions as u, type LoadGeoJSONResult as v, type LotFillStyleOptions as w, type LotOutlineStyleOptions as x, type MapLibreWorkerApi as y, type MarkerAccessibilityOptions as z };
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import { DataStatus } from '@classic-homes/theme-tokens';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* Map theme generator
|
|
3
5
|
*
|
|
4
6
|
* Generates MapLibre-compatible themes from Classic Theme design tokens
|
|
5
7
|
*/
|
|
8
|
+
|
|
6
9
|
/**
|
|
7
10
|
* Theme identifiers
|
|
8
11
|
*/
|
|
@@ -73,6 +76,13 @@ interface MapDataColors {
|
|
|
73
76
|
neutral: string;
|
|
74
77
|
/** Heatmap color ramp (low to high) */
|
|
75
78
|
heatmapRamp: string[];
|
|
79
|
+
/**
|
|
80
|
+
* Data status for map features and their legends: positive (on track), info,
|
|
81
|
+
* caution (at risk), negative (late), neutral. Same set as charts-core
|
|
82
|
+
* `getChartColors().status`. Give caution features an outline or a label,
|
|
83
|
+
* and never show status by colour alone.
|
|
84
|
+
*/
|
|
85
|
+
status: Record<DataStatus, string>;
|
|
76
86
|
}
|
|
77
87
|
/**
|
|
78
88
|
* Complete map theme configuration
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import { DataStatus } from '@classic-homes/theme-tokens';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* Map theme generator
|
|
3
5
|
*
|
|
4
6
|
* Generates MapLibre-compatible themes from Classic Theme design tokens
|
|
5
7
|
*/
|
|
8
|
+
|
|
6
9
|
/**
|
|
7
10
|
* Theme identifiers
|
|
8
11
|
*/
|
|
@@ -73,6 +76,13 @@ interface MapDataColors {
|
|
|
73
76
|
neutral: string;
|
|
74
77
|
/** Heatmap color ramp (low to high) */
|
|
75
78
|
heatmapRamp: string[];
|
|
79
|
+
/**
|
|
80
|
+
* Data status for map features and their legends: positive (on track), info,
|
|
81
|
+
* caution (at risk), negative (late), neutral. Same set as charts-core
|
|
82
|
+
* `getChartColors().status`. Give caution features an outline or a label,
|
|
83
|
+
* and never show status by colour alone.
|
|
84
|
+
*/
|
|
85
|
+
status: Record<DataStatus, string>;
|
|
76
86
|
}
|
|
77
87
|
/**
|
|
78
88
|
* Complete map theme configuration
|
package/dist/index.cjs
CHANGED
|
@@ -83,7 +83,8 @@ function generateLightDataColors() {
|
|
|
83
83
|
neutral: themeTokens.ch.grey02,
|
|
84
84
|
// One teal ramp (Shallows, Accent Teal, Heritage Teal); no red in it, since
|
|
85
85
|
// red means a problem in v2.5
|
|
86
|
-
heatmapRamp: ["rgba(216, 237, 237, 0)", themeTokens.ch.accentTeal100, themeTokens.ch.accentTeal, themeTokens.ch.heritageTeal]
|
|
86
|
+
heatmapRamp: ["rgba(216, 237, 237, 0)", themeTokens.ch.accentTeal100, themeTokens.ch.accentTeal, themeTokens.ch.heritageTeal],
|
|
87
|
+
status: { ...themeTokens.dataStatusColors.light }
|
|
87
88
|
};
|
|
88
89
|
}
|
|
89
90
|
function generateDarkDataColors() {
|
|
@@ -112,7 +113,8 @@ function generateDarkDataColors() {
|
|
|
112
113
|
themeTokens.colors.red[400],
|
|
113
114
|
themeTokens.colors.red[500],
|
|
114
115
|
themeTokens.colors.red[600]
|
|
115
|
-
]
|
|
116
|
+
],
|
|
117
|
+
status: { ...themeTokens.dataStatusColors.dark }
|
|
116
118
|
};
|
|
117
119
|
}
|
|
118
120
|
function getTypography() {
|
|
@@ -3405,6 +3407,32 @@ function applyMarkerChildProtection(element) {
|
|
|
3405
3407
|
style.setProperty("transition", "none", "important");
|
|
3406
3408
|
style.setProperty("animation", "none", "important");
|
|
3407
3409
|
}
|
|
3410
|
+
var MANAGED_TABINDEX = "data-marker-tabindex";
|
|
3411
|
+
function applyMarkerAccessibility(element, { label, clickable = false, draggable = false, custom = false }) {
|
|
3412
|
+
const name = label?.trim();
|
|
3413
|
+
if (name) element.setAttribute("aria-label", name);
|
|
3414
|
+
else if (custom) element.removeAttribute("aria-label");
|
|
3415
|
+
if (!custom || name || clickable) {
|
|
3416
|
+
element.setAttribute("role", clickable || draggable && !custom ? "button" : "img");
|
|
3417
|
+
} else {
|
|
3418
|
+
element.removeAttribute("role");
|
|
3419
|
+
}
|
|
3420
|
+
if (clickable) {
|
|
3421
|
+
if (!element.hasAttribute("tabindex")) {
|
|
3422
|
+
element.setAttribute("tabindex", "0");
|
|
3423
|
+
element.setAttribute(MANAGED_TABINDEX, "");
|
|
3424
|
+
}
|
|
3425
|
+
} else if (element.hasAttribute(MANAGED_TABINDEX)) {
|
|
3426
|
+
element.removeAttribute("tabindex");
|
|
3427
|
+
element.removeAttribute(MANAGED_TABINDEX);
|
|
3428
|
+
}
|
|
3429
|
+
}
|
|
3430
|
+
function handleMarkerKeydown(event) {
|
|
3431
|
+
if (event.key !== "Enter" && event.key !== " ") return;
|
|
3432
|
+
if (event.target !== event.currentTarget) return;
|
|
3433
|
+
event.preventDefault();
|
|
3434
|
+
event.currentTarget.click();
|
|
3435
|
+
}
|
|
3408
3436
|
|
|
3409
3437
|
// src/utils/worker.ts
|
|
3410
3438
|
var SETUP_HINT = ` import { setWorkerUrl } from 'maplibre-gl';
|
|
@@ -4722,6 +4750,7 @@ exports.TRANSIT_ROUTES = TRANSIT_ROUTES;
|
|
|
4722
4750
|
exports.WATERSHEDS = WATERSHEDS;
|
|
4723
4751
|
exports.ZONING_DISTRICTS = ZONING_DISTRICTS;
|
|
4724
4752
|
exports.Z_INDEX_LAYERS = Z_INDEX_LAYERS;
|
|
4753
|
+
exports.applyMarkerAccessibility = applyMarkerAccessibility;
|
|
4725
4754
|
exports.applyMarkerChildProtection = applyMarkerChildProtection;
|
|
4726
4755
|
exports.applyMarkerProtection = applyMarkerProtection;
|
|
4727
4756
|
exports.boundaryColors = boundaryColors;
|
|
@@ -4833,6 +4862,7 @@ exports.getTypography = getTypography;
|
|
|
4833
4862
|
exports.getVisibleLayerIds = getVisibleLayerIds;
|
|
4834
4863
|
exports.groupFeaturesByProperty = groupFeaturesByProperty;
|
|
4835
4864
|
exports.groupLayersByCategory = groupLayersByCategory;
|
|
4865
|
+
exports.handleMarkerKeydown = handleMarkerKeydown;
|
|
4836
4866
|
exports.hideAllLayers = hideAllLayers;
|
|
4837
4867
|
exports.inventoryStatusColorExpression = inventoryStatusColorExpression;
|
|
4838
4868
|
exports.inventoryStatusColors = inventoryStatusColors;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
export { M as MapDataColors, a as MapTheme, b as MapThemeColors, T as THEME_DARK, c as THEME_LIGHT, d as darkTheme, g as generateDarkColors, e as generateDarkDataColors, f as generateDarkTheme, h as generateLightColors, i as generateLightDataColors, j as generateLightTheme, k as getTheme, l as getTypography, m as lightTheme } from './generator-
|
|
1
|
+
export { M as MapDataColors, a as MapTheme, b as MapThemeColors, T as THEME_DARK, c as THEME_LIGHT, d as darkTheme, g as generateDarkColors, e as generateDarkDataColors, f as generateDarkTheme, h as generateLightColors, i as generateLightDataColors, j as generateLightTheme, k as getTheme, l as getTypography, m as lightTheme } from './generator-DmozEcaK.cjs';
|
|
2
2
|
export { MapStyleSpec, darkBasicStyle, generateBasicStyle, generateVectorStyle, getBasicStyle, lightBasicStyle } from './theme/index.cjs';
|
|
3
3
|
import { G as GeoJSONFeatureCollection } from './data-DCyEqgN0.cjs';
|
|
4
4
|
export { B as BoundsArray, C as ClusterConfig, E as ExtrusionData, a as GeoJSONFeature, b as GeoJSONGeometry, c as GeoJSONLineString, d as GeoJSONMultiLineString, e as GeoJSONMultiPoint, f as GeoJSONMultiPolygon, g as GeoJSONPoint, h as GeoJSONPolygon, H as HeatmapPoint, L as LngLat, M as MapBounds, i as MapSourceData, j as MapViewport, k as MarkerData } from './data-DCyEqgN0.cjs';
|
|
5
5
|
import { BasemapDefinition, BasemapApiKeys, MapStyleSpec } from './types/index.cjs';
|
|
6
6
|
export { BaseControlProps, BaseLayerProps, BaseMapEventParams, BaseMapProps, BasemapCategory, BasemapProvider, BasemapSwitcherProps, CircleLayerProps, ControlPosition, CoordinateDisplayProps, FeatureClickEventParams, FeatureHoverEventParams, FillExtrusionLayerProps, FillLayerProps, GeolocateControlProps, GradientStop, HeatmapLayerProps, LegendConfig, LegendGroupProps, LegendItem, LegendProps, LineLayerProps, MapClickEventParams, MapErrorEventParams, MapErrorLike, MapHoverEventParams, MapLayerSpecBase, MapLoadEventParams, MapMoveEventParams, MapProps, MapSourceSpec, MarkerClickEventParams, MarkerDragEventParams, MarkerProps, NavigationControlProps, PopupEventParams, PopupProps, RasterLayerProps, ScaleControlProps, SourceProps, SymbolLayerProps } from './types/index.cjs';
|
|
7
|
-
export { C as ClusterCircleStyleOptions, a as ClusterExpandOptions, b as ClusterExpansionResult, c as ClusterFeatureProperties, d as ClusterLayerStyles, h as ClusterTextStyleOptions, j as ColorExpression, k as CoordinateValidationResult, D as DEFAULT_SIMPLIFICATION_THRESHOLDS, l as DeckHostMap, m as DynamicLODOptions, n as DynamicLODState, E as ExtrusionHeightOptions, F as FeatureGroup, o as FilterExpression, p as FilterOperator, q as FilterValue, G as GenerateLODOptions, r as GeoJSONFingerprint, s as GroupFeaturesOptions, K as KEYBOARD_CONTROLS, L as LODData, t as LODDataWithSimplification, u as LoadGeoJSONOptions, v as LoadGeoJSONResult, w as LotFillStyleOptions, x as LotOutlineStyleOptions, M as MARKER_PROTECTION_CLASS, N as NumberExpression, P as PaintProps,
|
|
7
|
+
export { C as ClusterCircleStyleOptions, a as ClusterExpandOptions, b as ClusterExpansionResult, c as ClusterFeatureProperties, d as ClusterLayerStyles, h as ClusterTextStyleOptions, j as ColorExpression, k as CoordinateValidationResult, D as DEFAULT_SIMPLIFICATION_THRESHOLDS, l as DeckHostMap, m as DynamicLODOptions, n as DynamicLODState, E as ExtrusionHeightOptions, F as FeatureGroup, o as FilterExpression, p as FilterOperator, q as FilterValue, G as GenerateLODOptions, r as GeoJSONFingerprint, s as GroupFeaturesOptions, K as KEYBOARD_CONTROLS, L as LODData, t as LODDataWithSimplification, u as LoadGeoJSONOptions, v as LoadGeoJSONResult, w as LotFillStyleOptions, x as LotOutlineStyleOptions, M as MARKER_PROTECTION_CLASS, z as MarkerAccessibilityOptions, N as NumberExpression, P as PaintProps, A as PaintPropsDiff, S as SimplificationStats, B as SimplificationThreshold, U as UnclusteredPointStyleOptions, V as ValidationResult, H as applyMarkerAccessibility, I as applyMarkerChildProtection, J as applyMarkerProtection, O as boundsToPolygon, Q as calculateBounds, R as calculateCentroid, T as calculateZoomThresholds, W as clampLatitude, X as combineBounds, Y as countFeaturesByType, Z as createCategoricalColorExpression, _ as createCircleStyle, $ as createClusterCirclePaint, a0 as createClusterStyles, a1 as createClusterTextLayout, a2 as createContinuousColorExpression, a3 as createDynamicLODManager, a4 as createExtrusionHeightExpression, a5 as createExtrusionStyle, a6 as createFillStyle, a7 as createGeoJSONFingerprint, a8 as createHeatmapStyle, a9 as createHoverExpression, aa as createInteractiveExpression, ab as createInteractiveStatusColorExpression, ac as createLineStyle, ad as createLotFillStyle, ae as createLotOutlineStyle, af as createSelectionExpression, ag as createStatusColorExpression, ah as createZoomExpression, ai as decimalToDMS, aj as deepEqual, ak as ensureValidCoordinates, al as expandCluster, am as expandClusterToBounds, an as extendBounds, ao as filterByGeometryType, ap as filterEqual, aq as fingerprintEqual, ar as formatArea, as as formatBearing, at as formatBounds, au as formatCoordinates, av as formatDistance, aw as formatFeatureProperties, ax as formatLabel, ay as formatPitch, az as formatPropertyValue, aA as formatScale, aB as formatZoom, aC as generateBoundingPolygon, aD as generateConvexHull, aE as generateFeatureCollectionDescription, aF as generateFeatureTable, aG as generateKeyboardControlsDescription, aH as generateLODData, aI as generateLODDataWithSimplification, aJ as generateMapDescription, aK as generateMarkerList, aL as generateMarkersDescription, aM as generateMoveAnnouncement, aN as geoJSONEqual, aO as getChangedPaintProps, aP as getClusterBounds, aQ as getClusterChildren, aR as getClusterExpansionZoom, aS as getClusterLeaves, aT as getGridNavigationIndex, aU as getHighlightStyle, aV as getSelectionStyle, aW as getSimplificationToleranceForZoom, aX as getSimplifiedFeaturesForZoom, aY as groupFeaturesByProperty, aZ as handleMarkerKeydown, a_ as isClusterFeature, a$ as isValidBounds, b0 as isValidLatitude, b1 as isValidLongitude, b2 as loadGeoJSON, b3 as normalizeLongitude, b4 as paintPropsEqual, b5 as removeMarkerProtection, b6 as resetWorkerUrlWarning, b7 as resolveDeckInterleaved, b8 as serializeFilter, b9 as simplifyFeature, ba as simplifyFeatureCollection, bb as simplifyFeatureCollectionWithStats, bc as simplifyPolygon, bd as supportsDeckInterleaving, be as validateBoundsArray, bf as validateCoordinates, bg as validateGeoJSON, bh as warnIfWorkerUrlMissing, bi as zoomToScale } from './deck-CQDQQlcb.cjs';
|
|
8
8
|
export { B as BuildRTreeIndexOptions, a as BuildSpatialIndexOptions, I as IdleViewportManagerOptions, b as IdleViewportResult, P as PanVelocity, c as PredictiveViewportResult, Q as QuerySpatialIndexOptions, d as QueryStats, R as RTreeIndex, e as RTreeItem, f as RTreeQueryStats, S as SpatialIndex, V as ViewportManagedDataOptions, g as ViewportManagedResult, h as buildRTreeIndex, i as buildSpatialIndex, j as createIdleViewportManager, k as createPredictiveViewportManager, l as createRTreeViewportManager, m as createViewportManager, n as createViewportQuery, q as queryByBounds, o as queryByBoundsWithStats, p as queryRTreeByBounds, r as queryRTreeByBoundsWithStats } from './spatial-pNn2rgAH.cjs';
|
|
9
|
+
import '@classic-homes/theme-tokens';
|
|
9
10
|
import 'rbush';
|
|
10
11
|
|
|
11
12
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
export { M as MapDataColors, a as MapTheme, b as MapThemeColors, T as THEME_DARK, c as THEME_LIGHT, d as darkTheme, g as generateDarkColors, e as generateDarkDataColors, f as generateDarkTheme, h as generateLightColors, i as generateLightDataColors, j as generateLightTheme, k as getTheme, l as getTypography, m as lightTheme } from './generator-
|
|
1
|
+
export { M as MapDataColors, a as MapTheme, b as MapThemeColors, T as THEME_DARK, c as THEME_LIGHT, d as darkTheme, g as generateDarkColors, e as generateDarkDataColors, f as generateDarkTheme, h as generateLightColors, i as generateLightDataColors, j as generateLightTheme, k as getTheme, l as getTypography, m as lightTheme } from './generator-DmozEcaK.js';
|
|
2
2
|
export { MapStyleSpec, darkBasicStyle, generateBasicStyle, generateVectorStyle, getBasicStyle, lightBasicStyle } from './theme/index.js';
|
|
3
3
|
import { G as GeoJSONFeatureCollection } from './data-DCyEqgN0.js';
|
|
4
4
|
export { B as BoundsArray, C as ClusterConfig, E as ExtrusionData, a as GeoJSONFeature, b as GeoJSONGeometry, c as GeoJSONLineString, d as GeoJSONMultiLineString, e as GeoJSONMultiPoint, f as GeoJSONMultiPolygon, g as GeoJSONPoint, h as GeoJSONPolygon, H as HeatmapPoint, L as LngLat, M as MapBounds, i as MapSourceData, j as MapViewport, k as MarkerData } from './data-DCyEqgN0.js';
|
|
5
5
|
import { BasemapDefinition, BasemapApiKeys, MapStyleSpec } from './types/index.js';
|
|
6
6
|
export { BaseControlProps, BaseLayerProps, BaseMapEventParams, BaseMapProps, BasemapCategory, BasemapProvider, BasemapSwitcherProps, CircleLayerProps, ControlPosition, CoordinateDisplayProps, FeatureClickEventParams, FeatureHoverEventParams, FillExtrusionLayerProps, FillLayerProps, GeolocateControlProps, GradientStop, HeatmapLayerProps, LegendConfig, LegendGroupProps, LegendItem, LegendProps, LineLayerProps, MapClickEventParams, MapErrorEventParams, MapErrorLike, MapHoverEventParams, MapLayerSpecBase, MapLoadEventParams, MapMoveEventParams, MapProps, MapSourceSpec, MarkerClickEventParams, MarkerDragEventParams, MarkerProps, NavigationControlProps, PopupEventParams, PopupProps, RasterLayerProps, ScaleControlProps, SourceProps, SymbolLayerProps } from './types/index.js';
|
|
7
|
-
export { C as ClusterCircleStyleOptions, a as ClusterExpandOptions, b as ClusterExpansionResult, c as ClusterFeatureProperties, d as ClusterLayerStyles, h as ClusterTextStyleOptions, j as ColorExpression, k as CoordinateValidationResult, D as DEFAULT_SIMPLIFICATION_THRESHOLDS, l as DeckHostMap, m as DynamicLODOptions, n as DynamicLODState, E as ExtrusionHeightOptions, F as FeatureGroup, o as FilterExpression, p as FilterOperator, q as FilterValue, G as GenerateLODOptions, r as GeoJSONFingerprint, s as GroupFeaturesOptions, K as KEYBOARD_CONTROLS, L as LODData, t as LODDataWithSimplification, u as LoadGeoJSONOptions, v as LoadGeoJSONResult, w as LotFillStyleOptions, x as LotOutlineStyleOptions, M as MARKER_PROTECTION_CLASS, N as NumberExpression, P as PaintProps,
|
|
7
|
+
export { C as ClusterCircleStyleOptions, a as ClusterExpandOptions, b as ClusterExpansionResult, c as ClusterFeatureProperties, d as ClusterLayerStyles, h as ClusterTextStyleOptions, j as ColorExpression, k as CoordinateValidationResult, D as DEFAULT_SIMPLIFICATION_THRESHOLDS, l as DeckHostMap, m as DynamicLODOptions, n as DynamicLODState, E as ExtrusionHeightOptions, F as FeatureGroup, o as FilterExpression, p as FilterOperator, q as FilterValue, G as GenerateLODOptions, r as GeoJSONFingerprint, s as GroupFeaturesOptions, K as KEYBOARD_CONTROLS, L as LODData, t as LODDataWithSimplification, u as LoadGeoJSONOptions, v as LoadGeoJSONResult, w as LotFillStyleOptions, x as LotOutlineStyleOptions, M as MARKER_PROTECTION_CLASS, z as MarkerAccessibilityOptions, N as NumberExpression, P as PaintProps, A as PaintPropsDiff, S as SimplificationStats, B as SimplificationThreshold, U as UnclusteredPointStyleOptions, V as ValidationResult, H as applyMarkerAccessibility, I as applyMarkerChildProtection, J as applyMarkerProtection, O as boundsToPolygon, Q as calculateBounds, R as calculateCentroid, T as calculateZoomThresholds, W as clampLatitude, X as combineBounds, Y as countFeaturesByType, Z as createCategoricalColorExpression, _ as createCircleStyle, $ as createClusterCirclePaint, a0 as createClusterStyles, a1 as createClusterTextLayout, a2 as createContinuousColorExpression, a3 as createDynamicLODManager, a4 as createExtrusionHeightExpression, a5 as createExtrusionStyle, a6 as createFillStyle, a7 as createGeoJSONFingerprint, a8 as createHeatmapStyle, a9 as createHoverExpression, aa as createInteractiveExpression, ab as createInteractiveStatusColorExpression, ac as createLineStyle, ad as createLotFillStyle, ae as createLotOutlineStyle, af as createSelectionExpression, ag as createStatusColorExpression, ah as createZoomExpression, ai as decimalToDMS, aj as deepEqual, ak as ensureValidCoordinates, al as expandCluster, am as expandClusterToBounds, an as extendBounds, ao as filterByGeometryType, ap as filterEqual, aq as fingerprintEqual, ar as formatArea, as as formatBearing, at as formatBounds, au as formatCoordinates, av as formatDistance, aw as formatFeatureProperties, ax as formatLabel, ay as formatPitch, az as formatPropertyValue, aA as formatScale, aB as formatZoom, aC as generateBoundingPolygon, aD as generateConvexHull, aE as generateFeatureCollectionDescription, aF as generateFeatureTable, aG as generateKeyboardControlsDescription, aH as generateLODData, aI as generateLODDataWithSimplification, aJ as generateMapDescription, aK as generateMarkerList, aL as generateMarkersDescription, aM as generateMoveAnnouncement, aN as geoJSONEqual, aO as getChangedPaintProps, aP as getClusterBounds, aQ as getClusterChildren, aR as getClusterExpansionZoom, aS as getClusterLeaves, aT as getGridNavigationIndex, aU as getHighlightStyle, aV as getSelectionStyle, aW as getSimplificationToleranceForZoom, aX as getSimplifiedFeaturesForZoom, aY as groupFeaturesByProperty, aZ as handleMarkerKeydown, a_ as isClusterFeature, a$ as isValidBounds, b0 as isValidLatitude, b1 as isValidLongitude, b2 as loadGeoJSON, b3 as normalizeLongitude, b4 as paintPropsEqual, b5 as removeMarkerProtection, b6 as resetWorkerUrlWarning, b7 as resolveDeckInterleaved, b8 as serializeFilter, b9 as simplifyFeature, ba as simplifyFeatureCollection, bb as simplifyFeatureCollectionWithStats, bc as simplifyPolygon, bd as supportsDeckInterleaving, be as validateBoundsArray, bf as validateCoordinates, bg as validateGeoJSON, bh as warnIfWorkerUrlMissing, bi as zoomToScale } from './deck-C9WgQFqv.js';
|
|
8
8
|
export { B as BuildRTreeIndexOptions, a as BuildSpatialIndexOptions, I as IdleViewportManagerOptions, b as IdleViewportResult, P as PanVelocity, c as PredictiveViewportResult, Q as QuerySpatialIndexOptions, d as QueryStats, R as RTreeIndex, e as RTreeItem, f as RTreeQueryStats, S as SpatialIndex, V as ViewportManagedDataOptions, g as ViewportManagedResult, h as buildRTreeIndex, i as buildSpatialIndex, j as createIdleViewportManager, k as createPredictiveViewportManager, l as createRTreeViewportManager, m as createViewportManager, n as createViewportQuery, q as queryByBounds, o as queryByBoundsWithStats, p as queryRTreeByBounds, r as queryRTreeByBoundsWithStats } from './spatial-Df48Jj9D.js';
|
|
9
|
+
import '@classic-homes/theme-tokens';
|
|
9
10
|
import 'rbush';
|
|
10
11
|
|
|
11
12
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { lightBasicStyle, darkBasicStyle } from './chunk-
|
|
2
|
-
export { darkBasicStyle, generateBasicStyle, generateVectorStyle, getBasicStyle, lightBasicStyle } from './chunk-
|
|
3
|
-
import { createCategoricalColorExpression, clusterColors, nonMatchedColor } from './chunk-
|
|
4
|
-
export { DEFAULT_SIMPLIFICATION_THRESHOLDS, KEYBOARD_CONTROLS, MARKER_PROTECTION_CLASS, applyMarkerChildProtection, applyMarkerProtection, boundaryColors, boundsToPolygon, buildRTreeIndex, buildSpatialIndex, calculateBounds, calculateCentroid, calculateZoomThresholds, clampLatitude, clusterColors, combineBounds, countFeaturesByType, createCategoricalColorExpression, createCircleStyle, createClusterCirclePaint, createClusterStyles, createClusterTextLayout, createContinuousColorExpression, createDynamicLODManager, createExtrusionHeightExpression, createExtrusionStyle, createFillStyle, createGeoJSONFingerprint, createHeatmapStyle, createHoverExpression, createIdleViewportManager, createInteractiveExpression, createInteractiveStatusColorExpression, createLineStyle, createLotFillStyle, createLotOutlineStyle, createPredictiveViewportManager, createRTreeViewportManager, createSelectionExpression, createStatusColorExpression, createViewportManager, createViewportQuery, createZoomExpression, decimalToDMS, deepEqual, ensureValidCoordinates, expandCluster, expandClusterToBounds, extendBounds, filterByGeometryType, filterEqual, fingerprintEqual, formatArea, formatBearing, formatBounds, formatCoordinates, formatDistance, formatFeatureProperties, formatLabel, formatPitch, formatPropertyValue, formatScale, formatZoom, generateBoundingPolygon, generateConvexHull, generateFeatureCollectionDescription, generateFeatureTable, generateKeyboardControlsDescription, generateLODData, generateLODDataWithSimplification, generateMapDescription, generateMarkerList, generateMarkersDescription, generateMoveAnnouncement, geoJSONEqual, getChangedPaintProps, getClusterBounds, getClusterChildren, getClusterExpansionZoom, getClusterLeaves, getGridNavigationIndex, getHighlightStyle, getSelectionStyle, getSimplificationToleranceForZoom, getSimplifiedFeaturesForZoom, groupFeaturesByProperty, isClusterFeature, isValidBounds, isValidLatitude, isValidLongitude, loadGeoJSON, markerColor, nonMatchedColor, normalizeLongitude, paintPropsEqual, queryByBounds, queryByBoundsWithStats, queryRTreeByBounds, queryRTreeByBoundsWithStats, removeMarkerProtection, resetWorkerUrlWarning, resolveDeckInterleaved, salesOfficeColor, serializeFilter, simplifyFeature, simplifyFeatureCollection, simplifyFeatureCollectionWithStats, simplifyPolygon, supportsDeckInterleaving, validateBoundsArray, validateCoordinates, validateGeoJSON, warnIfWorkerUrlMissing, zoomToScale } from './chunk-
|
|
5
|
-
export { THEME_DARK, THEME_LIGHT, darkTheme, generateDarkColors, generateDarkDataColors, generateDarkTheme, generateLightColors, generateLightDataColors, generateLightTheme, getTheme, getTypography, lightTheme } from './chunk-
|
|
1
|
+
import { lightBasicStyle, darkBasicStyle } from './chunk-QT4EOLBO.js';
|
|
2
|
+
export { darkBasicStyle, generateBasicStyle, generateVectorStyle, getBasicStyle, lightBasicStyle } from './chunk-QT4EOLBO.js';
|
|
3
|
+
import { createCategoricalColorExpression, clusterColors, nonMatchedColor } from './chunk-VMBWIYOW.js';
|
|
4
|
+
export { DEFAULT_SIMPLIFICATION_THRESHOLDS, KEYBOARD_CONTROLS, MARKER_PROTECTION_CLASS, applyMarkerAccessibility, applyMarkerChildProtection, applyMarkerProtection, boundaryColors, boundsToPolygon, buildRTreeIndex, buildSpatialIndex, calculateBounds, calculateCentroid, calculateZoomThresholds, clampLatitude, clusterColors, combineBounds, countFeaturesByType, createCategoricalColorExpression, createCircleStyle, createClusterCirclePaint, createClusterStyles, createClusterTextLayout, createContinuousColorExpression, createDynamicLODManager, createExtrusionHeightExpression, createExtrusionStyle, createFillStyle, createGeoJSONFingerprint, createHeatmapStyle, createHoverExpression, createIdleViewportManager, createInteractiveExpression, createInteractiveStatusColorExpression, createLineStyle, createLotFillStyle, createLotOutlineStyle, createPredictiveViewportManager, createRTreeViewportManager, createSelectionExpression, createStatusColorExpression, createViewportManager, createViewportQuery, createZoomExpression, decimalToDMS, deepEqual, ensureValidCoordinates, expandCluster, expandClusterToBounds, extendBounds, filterByGeometryType, filterEqual, fingerprintEqual, formatArea, formatBearing, formatBounds, formatCoordinates, formatDistance, formatFeatureProperties, formatLabel, formatPitch, formatPropertyValue, formatScale, formatZoom, generateBoundingPolygon, generateConvexHull, generateFeatureCollectionDescription, generateFeatureTable, generateKeyboardControlsDescription, generateLODData, generateLODDataWithSimplification, generateMapDescription, generateMarkerList, generateMarkersDescription, generateMoveAnnouncement, geoJSONEqual, getChangedPaintProps, getClusterBounds, getClusterChildren, getClusterExpansionZoom, getClusterLeaves, getGridNavigationIndex, getHighlightStyle, getSelectionStyle, getSimplificationToleranceForZoom, getSimplifiedFeaturesForZoom, groupFeaturesByProperty, handleMarkerKeydown, isClusterFeature, isValidBounds, isValidLatitude, isValidLongitude, loadGeoJSON, markerColor, nonMatchedColor, normalizeLongitude, paintPropsEqual, queryByBounds, queryByBoundsWithStats, queryRTreeByBounds, queryRTreeByBoundsWithStats, removeMarkerProtection, resetWorkerUrlWarning, resolveDeckInterleaved, salesOfficeColor, serializeFilter, simplifyFeature, simplifyFeatureCollection, simplifyFeatureCollectionWithStats, simplifyPolygon, supportsDeckInterleaving, validateBoundsArray, validateCoordinates, validateGeoJSON, warnIfWorkerUrlMissing, zoomToScale } from './chunk-VMBWIYOW.js';
|
|
5
|
+
export { THEME_DARK, THEME_LIGHT, darkTheme, generateDarkColors, generateDarkDataColors, generateDarkTheme, generateLightColors, generateLightDataColors, generateLightTheme, getTheme, getTypography, lightTheme } from './chunk-OYZEJO3U.js';
|
|
6
6
|
import { ch } from '@classic-homes/theme-tokens';
|
|
7
7
|
import { getContrastTextColor as getContrastTextColor$1 } from '@classic-homes/theme-tokens/contrast';
|
|
8
8
|
|
package/dist/theme/index.cjs
CHANGED
|
@@ -77,7 +77,8 @@ function generateLightDataColors() {
|
|
|
77
77
|
neutral: themeTokens.ch.grey02,
|
|
78
78
|
// One teal ramp (Shallows, Accent Teal, Heritage Teal); no red in it, since
|
|
79
79
|
// red means a problem in v2.5
|
|
80
|
-
heatmapRamp: ["rgba(216, 237, 237, 0)", themeTokens.ch.accentTeal100, themeTokens.ch.accentTeal, themeTokens.ch.heritageTeal]
|
|
80
|
+
heatmapRamp: ["rgba(216, 237, 237, 0)", themeTokens.ch.accentTeal100, themeTokens.ch.accentTeal, themeTokens.ch.heritageTeal],
|
|
81
|
+
status: { ...themeTokens.dataStatusColors.light }
|
|
81
82
|
};
|
|
82
83
|
}
|
|
83
84
|
function generateDarkDataColors() {
|
|
@@ -106,7 +107,8 @@ function generateDarkDataColors() {
|
|
|
106
107
|
themeTokens.colors.red[400],
|
|
107
108
|
themeTokens.colors.red[500],
|
|
108
109
|
themeTokens.colors.red[600]
|
|
109
|
-
]
|
|
110
|
+
],
|
|
111
|
+
status: { ...themeTokens.dataStatusColors.dark }
|
|
110
112
|
};
|
|
111
113
|
}
|
|
112
114
|
function getTypography() {
|
package/dist/theme/index.d.cts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { a as MapTheme, c as THEME_LIGHT, T as THEME_DARK } from '../generator-
|
|
2
|
-
export { M as MapDataColors, b as MapThemeColors, d as darkTheme, g as generateDarkColors, e as generateDarkDataColors, f as generateDarkTheme, h as generateLightColors, i as generateLightDataColors, j as generateLightTheme, k as getTheme, l as getTypography, m as lightTheme } from '../generator-
|
|
1
|
+
import { a as MapTheme, c as THEME_LIGHT, T as THEME_DARK } from '../generator-DmozEcaK.cjs';
|
|
2
|
+
export { M as MapDataColors, b as MapThemeColors, d as darkTheme, g as generateDarkColors, e as generateDarkDataColors, f as generateDarkTheme, h as generateLightColors, i as generateLightDataColors, j as generateLightTheme, k as getTheme, l as getTypography, m as lightTheme } from '../generator-DmozEcaK.cjs';
|
|
3
|
+
import '@classic-homes/theme-tokens';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* Map style generator
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { a as MapTheme, c as THEME_LIGHT, T as THEME_DARK } from '../generator-
|
|
2
|
-
export { M as MapDataColors, b as MapThemeColors, d as darkTheme, g as generateDarkColors, e as generateDarkDataColors, f as generateDarkTheme, h as generateLightColors, i as generateLightDataColors, j as generateLightTheme, k as getTheme, l as getTypography, m as lightTheme } from '../generator-
|
|
1
|
+
import { a as MapTheme, c as THEME_LIGHT, T as THEME_DARK } from '../generator-DmozEcaK.js';
|
|
2
|
+
export { M as MapDataColors, b as MapThemeColors, d as darkTheme, g as generateDarkColors, e as generateDarkDataColors, f as generateDarkTheme, h as generateLightColors, i as generateLightDataColors, j as generateLightTheme, k as getTheme, l as getTypography, m as lightTheme } from '../generator-DmozEcaK.js';
|
|
3
|
+
import '@classic-homes/theme-tokens';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* Map style generator
|
package/dist/theme/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { darkBasicStyle, generateBasicStyle, generateVectorStyle, getBasicStyle, lightBasicStyle } from '../chunk-
|
|
2
|
-
export { THEME_DARK, THEME_LIGHT, darkTheme, generateDarkColors, generateDarkDataColors, generateDarkTheme, generateLightColors, generateLightDataColors, generateLightTheme, getTheme, getTypography, lightTheme } from '../chunk-
|
|
1
|
+
export { darkBasicStyle, generateBasicStyle, generateVectorStyle, getBasicStyle, lightBasicStyle } from '../chunk-QT4EOLBO.js';
|
|
2
|
+
export { THEME_DARK, THEME_LIGHT, darkTheme, generateDarkColors, generateDarkDataColors, generateDarkTheme, generateLightColors, generateLightDataColors, generateLightTheme, getTheme, getTypography, lightTheme } from '../chunk-OYZEJO3U.js';
|
package/dist/types/index.d.cts
CHANGED
|
@@ -300,13 +300,13 @@ interface MapStyleSpec {
|
|
|
300
300
|
interface MapProps extends BaseMapProps {
|
|
301
301
|
/** Map style URL or style spec object */
|
|
302
302
|
style?: string | MapStyleSpec;
|
|
303
|
-
/**
|
|
303
|
+
/** Center [lng, lat]; a later change moves the map */
|
|
304
304
|
center?: LngLat;
|
|
305
|
-
/**
|
|
305
|
+
/** Zoom level (0-24); a later change moves the map */
|
|
306
306
|
zoom?: number;
|
|
307
|
-
/**
|
|
307
|
+
/** Bearing/rotation in degrees; a later change moves the map */
|
|
308
308
|
bearing?: number;
|
|
309
|
-
/**
|
|
309
|
+
/** Pitch/tilt in degrees; a later change moves the map */
|
|
310
310
|
pitch?: number;
|
|
311
311
|
/** Fit map to these bounds on load */
|
|
312
312
|
bounds?: BoundsArray;
|
|
@@ -651,6 +651,11 @@ interface MarkerProps {
|
|
|
651
651
|
id?: string;
|
|
652
652
|
/** Marker coordinates [lng, lat] */
|
|
653
653
|
coordinates: LngLat;
|
|
654
|
+
/**
|
|
655
|
+
* Accessible name read by screen readers, e.g. "Ferry Building".
|
|
656
|
+
* Without it every default marker is announced as a generic "Map marker".
|
|
657
|
+
*/
|
|
658
|
+
label?: string;
|
|
654
659
|
/** Marker color (default Heritage Teal; init-only: MapLibre bakes it into the marker element at creation) */
|
|
655
660
|
color?: string;
|
|
656
661
|
/** Custom anchor point (init-only: cannot change after marker creation) */
|
package/dist/types/index.d.ts
CHANGED
|
@@ -300,13 +300,13 @@ interface MapStyleSpec {
|
|
|
300
300
|
interface MapProps extends BaseMapProps {
|
|
301
301
|
/** Map style URL or style spec object */
|
|
302
302
|
style?: string | MapStyleSpec;
|
|
303
|
-
/**
|
|
303
|
+
/** Center [lng, lat]; a later change moves the map */
|
|
304
304
|
center?: LngLat;
|
|
305
|
-
/**
|
|
305
|
+
/** Zoom level (0-24); a later change moves the map */
|
|
306
306
|
zoom?: number;
|
|
307
|
-
/**
|
|
307
|
+
/** Bearing/rotation in degrees; a later change moves the map */
|
|
308
308
|
bearing?: number;
|
|
309
|
-
/**
|
|
309
|
+
/** Pitch/tilt in degrees; a later change moves the map */
|
|
310
310
|
pitch?: number;
|
|
311
311
|
/** Fit map to these bounds on load */
|
|
312
312
|
bounds?: BoundsArray;
|
|
@@ -651,6 +651,11 @@ interface MarkerProps {
|
|
|
651
651
|
id?: string;
|
|
652
652
|
/** Marker coordinates [lng, lat] */
|
|
653
653
|
coordinates: LngLat;
|
|
654
|
+
/**
|
|
655
|
+
* Accessible name read by screen readers, e.g. "Ferry Building".
|
|
656
|
+
* Without it every default marker is announced as a generic "Map marker".
|
|
657
|
+
*/
|
|
658
|
+
label?: string;
|
|
654
659
|
/** Marker color (default Heritage Teal; init-only: MapLibre bakes it into the marker element at creation) */
|
|
655
660
|
color?: string;
|
|
656
661
|
/** Custom anchor point (init-only: cannot change after marker creation) */
|
package/dist/utils/index.cjs
CHANGED
|
@@ -520,7 +520,8 @@ function generateLightDataColors() {
|
|
|
520
520
|
neutral: themeTokens.ch.grey02,
|
|
521
521
|
// One teal ramp (Shallows, Accent Teal, Heritage Teal); no red in it, since
|
|
522
522
|
// red means a problem in v2.5
|
|
523
|
-
heatmapRamp: ["rgba(216, 237, 237, 0)", themeTokens.ch.accentTeal100, themeTokens.ch.accentTeal, themeTokens.ch.heritageTeal]
|
|
523
|
+
heatmapRamp: ["rgba(216, 237, 237, 0)", themeTokens.ch.accentTeal100, themeTokens.ch.accentTeal, themeTokens.ch.heritageTeal],
|
|
524
|
+
status: { ...themeTokens.dataStatusColors.light }
|
|
524
525
|
};
|
|
525
526
|
}
|
|
526
527
|
function generateDarkDataColors() {
|
|
@@ -549,7 +550,8 @@ function generateDarkDataColors() {
|
|
|
549
550
|
themeTokens.colors.red[400],
|
|
550
551
|
themeTokens.colors.red[500],
|
|
551
552
|
themeTokens.colors.red[600]
|
|
552
|
-
]
|
|
553
|
+
],
|
|
554
|
+
status: { ...themeTokens.dataStatusColors.dark }
|
|
553
555
|
};
|
|
554
556
|
}
|
|
555
557
|
function getTypography() {
|
|
@@ -3018,6 +3020,32 @@ function applyMarkerChildProtection(element) {
|
|
|
3018
3020
|
style.setProperty("transition", "none", "important");
|
|
3019
3021
|
style.setProperty("animation", "none", "important");
|
|
3020
3022
|
}
|
|
3023
|
+
var MANAGED_TABINDEX = "data-marker-tabindex";
|
|
3024
|
+
function applyMarkerAccessibility(element, { label, clickable = false, draggable = false, custom = false }) {
|
|
3025
|
+
const name = label?.trim();
|
|
3026
|
+
if (name) element.setAttribute("aria-label", name);
|
|
3027
|
+
else if (custom) element.removeAttribute("aria-label");
|
|
3028
|
+
if (!custom || name || clickable) {
|
|
3029
|
+
element.setAttribute("role", clickable || draggable && !custom ? "button" : "img");
|
|
3030
|
+
} else {
|
|
3031
|
+
element.removeAttribute("role");
|
|
3032
|
+
}
|
|
3033
|
+
if (clickable) {
|
|
3034
|
+
if (!element.hasAttribute("tabindex")) {
|
|
3035
|
+
element.setAttribute("tabindex", "0");
|
|
3036
|
+
element.setAttribute(MANAGED_TABINDEX, "");
|
|
3037
|
+
}
|
|
3038
|
+
} else if (element.hasAttribute(MANAGED_TABINDEX)) {
|
|
3039
|
+
element.removeAttribute("tabindex");
|
|
3040
|
+
element.removeAttribute(MANAGED_TABINDEX);
|
|
3041
|
+
}
|
|
3042
|
+
}
|
|
3043
|
+
function handleMarkerKeydown(event) {
|
|
3044
|
+
if (event.key !== "Enter" && event.key !== " ") return;
|
|
3045
|
+
if (event.target !== event.currentTarget) return;
|
|
3046
|
+
event.preventDefault();
|
|
3047
|
+
event.currentTarget.click();
|
|
3048
|
+
}
|
|
3021
3049
|
|
|
3022
3050
|
// src/utils/popup.ts
|
|
3023
3051
|
function normalizePadding(padding) {
|
|
@@ -3097,6 +3125,7 @@ function resolveDeckInterleaved(map, requested) {
|
|
|
3097
3125
|
exports.DEFAULT_SIMPLIFICATION_THRESHOLDS = DEFAULT_SIMPLIFICATION_THRESHOLDS;
|
|
3098
3126
|
exports.KEYBOARD_CONTROLS = KEYBOARD_CONTROLS;
|
|
3099
3127
|
exports.MARKER_PROTECTION_CLASS = MARKER_PROTECTION_CLASS;
|
|
3128
|
+
exports.applyMarkerAccessibility = applyMarkerAccessibility;
|
|
3100
3129
|
exports.applyMarkerChildProtection = applyMarkerChildProtection;
|
|
3101
3130
|
exports.applyMarkerProtection = applyMarkerProtection;
|
|
3102
3131
|
exports.boundsToPolygon = boundsToPolygon;
|
|
@@ -3177,6 +3206,7 @@ exports.getSelectionStyle = getSelectionStyle;
|
|
|
3177
3206
|
exports.getSimplificationToleranceForZoom = getSimplificationToleranceForZoom;
|
|
3178
3207
|
exports.getSimplifiedFeaturesForZoom = getSimplifiedFeaturesForZoom;
|
|
3179
3208
|
exports.groupFeaturesByProperty = groupFeaturesByProperty;
|
|
3209
|
+
exports.handleMarkerKeydown = handleMarkerKeydown;
|
|
3180
3210
|
exports.isClusterFeature = isClusterFeature;
|
|
3181
3211
|
exports.isValidBounds = isValidBounds;
|
|
3182
3212
|
exports.isValidLatitude = isValidLatitude;
|
package/dist/utils/index.d.cts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export { C as ClusterCircleStyleOptions, a as ClusterExpandOptions, b as ClusterExpansionResult, c as ClusterFeatureProperties, d as ClusterLayerStyles, e as ClusterMapBoundsExpander, f as ClusterMapExpander, g as ClusterMapReader, h as ClusterTextStyleOptions, i as ClusterableGeoJSONSource, j as ColorExpression, k as CoordinateValidationResult, D as DEFAULT_SIMPLIFICATION_THRESHOLDS, l as DeckHostMap, m as DynamicLODOptions, n as DynamicLODState, E as ExtrusionHeightOptions, F as FeatureGroup, o as FilterExpression, p as FilterOperator, q as FilterValue, G as GenerateLODOptions, r as GeoJSONFingerprint, s as GroupFeaturesOptions, K as KEYBOARD_CONTROLS, L as LODData, t as LODDataWithSimplification, u as LoadGeoJSONOptions, v as LoadGeoJSONResult, w as LotFillStyleOptions, x as LotOutlineStyleOptions, M as MARKER_PROTECTION_CLASS, y as MapLibreWorkerApi, N as NumberExpression, P as PaintProps,
|
|
1
|
+
export { C as ClusterCircleStyleOptions, a as ClusterExpandOptions, b as ClusterExpansionResult, c as ClusterFeatureProperties, d as ClusterLayerStyles, e as ClusterMapBoundsExpander, f as ClusterMapExpander, g as ClusterMapReader, h as ClusterTextStyleOptions, i as ClusterableGeoJSONSource, j as ColorExpression, k as CoordinateValidationResult, D as DEFAULT_SIMPLIFICATION_THRESHOLDS, l as DeckHostMap, m as DynamicLODOptions, n as DynamicLODState, E as ExtrusionHeightOptions, F as FeatureGroup, o as FilterExpression, p as FilterOperator, q as FilterValue, G as GenerateLODOptions, r as GeoJSONFingerprint, s as GroupFeaturesOptions, K as KEYBOARD_CONTROLS, L as LODData, t as LODDataWithSimplification, u as LoadGeoJSONOptions, v as LoadGeoJSONResult, w as LotFillStyleOptions, x as LotOutlineStyleOptions, M as MARKER_PROTECTION_CLASS, y as MapLibreWorkerApi, z as MarkerAccessibilityOptions, N as NumberExpression, P as PaintProps, A as PaintPropsDiff, S as SimplificationStats, B as SimplificationThreshold, U as UnclusteredPointStyleOptions, V as ValidationResult, H as applyMarkerAccessibility, I as applyMarkerChildProtection, J as applyMarkerProtection, O as boundsToPolygon, Q as calculateBounds, R as calculateCentroid, T as calculateZoomThresholds, W as clampLatitude, X as combineBounds, Y as countFeaturesByType, Z as createCategoricalColorExpression, _ as createCircleStyle, $ as createClusterCirclePaint, a0 as createClusterStyles, a1 as createClusterTextLayout, a2 as createContinuousColorExpression, a3 as createDynamicLODManager, a4 as createExtrusionHeightExpression, a5 as createExtrusionStyle, a6 as createFillStyle, a7 as createGeoJSONFingerprint, a8 as createHeatmapStyle, a9 as createHoverExpression, aa as createInteractiveExpression, ab as createInteractiveStatusColorExpression, ac as createLineStyle, ad as createLotFillStyle, ae as createLotOutlineStyle, af as createSelectionExpression, ag as createStatusColorExpression, ah as createZoomExpression, ai as decimalToDMS, aj as deepEqual, ak as ensureValidCoordinates, al as expandCluster, am as expandClusterToBounds, an as extendBounds, ao as filterByGeometryType, ap as filterEqual, aq as fingerprintEqual, ar as formatArea, as as formatBearing, at as formatBounds, au as formatCoordinates, av as formatDistance, aw as formatFeatureProperties, ax as formatLabel, ay as formatPitch, az as formatPropertyValue, aA as formatScale, aB as formatZoom, aC as generateBoundingPolygon, aD as generateConvexHull, aE as generateFeatureCollectionDescription, aF as generateFeatureTable, aG as generateKeyboardControlsDescription, aH as generateLODData, aI as generateLODDataWithSimplification, aJ as generateMapDescription, aK as generateMarkerList, aL as generateMarkersDescription, aM as generateMoveAnnouncement, aN as geoJSONEqual, aO as getChangedPaintProps, aP as getClusterBounds, aQ as getClusterChildren, aR as getClusterExpansionZoom, aS as getClusterLeaves, aT as getGridNavigationIndex, aU as getHighlightStyle, aV as getSelectionStyle, aW as getSimplificationToleranceForZoom, aX as getSimplifiedFeaturesForZoom, aY as groupFeaturesByProperty, aZ as handleMarkerKeydown, a_ as isClusterFeature, a$ as isValidBounds, b0 as isValidLatitude, b1 as isValidLongitude, b2 as loadGeoJSON, b3 as normalizeLongitude, b4 as paintPropsEqual, b5 as removeMarkerProtection, b6 as resetWorkerUrlWarning, b7 as resolveDeckInterleaved, b8 as serializeFilter, b9 as simplifyFeature, ba as simplifyFeatureCollection, bb as simplifyFeatureCollectionWithStats, bc as simplifyPolygon, bd as supportsDeckInterleaving, be as validateBoundsArray, bf as validateCoordinates, bg as validateGeoJSON, bh as warnIfWorkerUrlMissing, bi as zoomToScale } from '../deck-CQDQQlcb.cjs';
|
|
2
2
|
export { B as BuildRTreeIndexOptions, a as BuildSpatialIndexOptions, I as IdleViewportManagerOptions, b as IdleViewportResult, P as PanVelocity, c as PredictiveViewportResult, Q as QuerySpatialIndexOptions, d as QueryStats, R as RTreeIndex, e as RTreeItem, f as RTreeQueryStats, S as SpatialIndex, V as ViewportManagedDataOptions, g as ViewportManagedResult, h as buildRTreeIndex, i as buildSpatialIndex, j as createIdleViewportManager, k as createPredictiveViewportManager, l as createRTreeViewportManager, m as createViewportManager, n as createViewportQuery, q as queryByBounds, o as queryByBoundsWithStats, p as queryRTreeByBounds, r as queryRTreeByBoundsWithStats } from '../spatial-pNn2rgAH.cjs';
|
|
3
3
|
import '../data-DCyEqgN0.cjs';
|
|
4
|
-
import '../generator-
|
|
4
|
+
import '../generator-DmozEcaK.cjs';
|
|
5
|
+
import '@classic-homes/theme-tokens';
|
|
5
6
|
import 'rbush';
|
|
6
7
|
|
|
7
8
|
/**
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export { C as ClusterCircleStyleOptions, a as ClusterExpandOptions, b as ClusterExpansionResult, c as ClusterFeatureProperties, d as ClusterLayerStyles, e as ClusterMapBoundsExpander, f as ClusterMapExpander, g as ClusterMapReader, h as ClusterTextStyleOptions, i as ClusterableGeoJSONSource, j as ColorExpression, k as CoordinateValidationResult, D as DEFAULT_SIMPLIFICATION_THRESHOLDS, l as DeckHostMap, m as DynamicLODOptions, n as DynamicLODState, E as ExtrusionHeightOptions, F as FeatureGroup, o as FilterExpression, p as FilterOperator, q as FilterValue, G as GenerateLODOptions, r as GeoJSONFingerprint, s as GroupFeaturesOptions, K as KEYBOARD_CONTROLS, L as LODData, t as LODDataWithSimplification, u as LoadGeoJSONOptions, v as LoadGeoJSONResult, w as LotFillStyleOptions, x as LotOutlineStyleOptions, M as MARKER_PROTECTION_CLASS, y as MapLibreWorkerApi, N as NumberExpression, P as PaintProps,
|
|
1
|
+
export { C as ClusterCircleStyleOptions, a as ClusterExpandOptions, b as ClusterExpansionResult, c as ClusterFeatureProperties, d as ClusterLayerStyles, e as ClusterMapBoundsExpander, f as ClusterMapExpander, g as ClusterMapReader, h as ClusterTextStyleOptions, i as ClusterableGeoJSONSource, j as ColorExpression, k as CoordinateValidationResult, D as DEFAULT_SIMPLIFICATION_THRESHOLDS, l as DeckHostMap, m as DynamicLODOptions, n as DynamicLODState, E as ExtrusionHeightOptions, F as FeatureGroup, o as FilterExpression, p as FilterOperator, q as FilterValue, G as GenerateLODOptions, r as GeoJSONFingerprint, s as GroupFeaturesOptions, K as KEYBOARD_CONTROLS, L as LODData, t as LODDataWithSimplification, u as LoadGeoJSONOptions, v as LoadGeoJSONResult, w as LotFillStyleOptions, x as LotOutlineStyleOptions, M as MARKER_PROTECTION_CLASS, y as MapLibreWorkerApi, z as MarkerAccessibilityOptions, N as NumberExpression, P as PaintProps, A as PaintPropsDiff, S as SimplificationStats, B as SimplificationThreshold, U as UnclusteredPointStyleOptions, V as ValidationResult, H as applyMarkerAccessibility, I as applyMarkerChildProtection, J as applyMarkerProtection, O as boundsToPolygon, Q as calculateBounds, R as calculateCentroid, T as calculateZoomThresholds, W as clampLatitude, X as combineBounds, Y as countFeaturesByType, Z as createCategoricalColorExpression, _ as createCircleStyle, $ as createClusterCirclePaint, a0 as createClusterStyles, a1 as createClusterTextLayout, a2 as createContinuousColorExpression, a3 as createDynamicLODManager, a4 as createExtrusionHeightExpression, a5 as createExtrusionStyle, a6 as createFillStyle, a7 as createGeoJSONFingerprint, a8 as createHeatmapStyle, a9 as createHoverExpression, aa as createInteractiveExpression, ab as createInteractiveStatusColorExpression, ac as createLineStyle, ad as createLotFillStyle, ae as createLotOutlineStyle, af as createSelectionExpression, ag as createStatusColorExpression, ah as createZoomExpression, ai as decimalToDMS, aj as deepEqual, ak as ensureValidCoordinates, al as expandCluster, am as expandClusterToBounds, an as extendBounds, ao as filterByGeometryType, ap as filterEqual, aq as fingerprintEqual, ar as formatArea, as as formatBearing, at as formatBounds, au as formatCoordinates, av as formatDistance, aw as formatFeatureProperties, ax as formatLabel, ay as formatPitch, az as formatPropertyValue, aA as formatScale, aB as formatZoom, aC as generateBoundingPolygon, aD as generateConvexHull, aE as generateFeatureCollectionDescription, aF as generateFeatureTable, aG as generateKeyboardControlsDescription, aH as generateLODData, aI as generateLODDataWithSimplification, aJ as generateMapDescription, aK as generateMarkerList, aL as generateMarkersDescription, aM as generateMoveAnnouncement, aN as geoJSONEqual, aO as getChangedPaintProps, aP as getClusterBounds, aQ as getClusterChildren, aR as getClusterExpansionZoom, aS as getClusterLeaves, aT as getGridNavigationIndex, aU as getHighlightStyle, aV as getSelectionStyle, aW as getSimplificationToleranceForZoom, aX as getSimplifiedFeaturesForZoom, aY as groupFeaturesByProperty, aZ as handleMarkerKeydown, a_ as isClusterFeature, a$ as isValidBounds, b0 as isValidLatitude, b1 as isValidLongitude, b2 as loadGeoJSON, b3 as normalizeLongitude, b4 as paintPropsEqual, b5 as removeMarkerProtection, b6 as resetWorkerUrlWarning, b7 as resolveDeckInterleaved, b8 as serializeFilter, b9 as simplifyFeature, ba as simplifyFeatureCollection, bb as simplifyFeatureCollectionWithStats, bc as simplifyPolygon, bd as supportsDeckInterleaving, be as validateBoundsArray, bf as validateCoordinates, bg as validateGeoJSON, bh as warnIfWorkerUrlMissing, bi as zoomToScale } from '../deck-C9WgQFqv.js';
|
|
2
2
|
export { B as BuildRTreeIndexOptions, a as BuildSpatialIndexOptions, I as IdleViewportManagerOptions, b as IdleViewportResult, P as PanVelocity, c as PredictiveViewportResult, Q as QuerySpatialIndexOptions, d as QueryStats, R as RTreeIndex, e as RTreeItem, f as RTreeQueryStats, S as SpatialIndex, V as ViewportManagedDataOptions, g as ViewportManagedResult, h as buildRTreeIndex, i as buildSpatialIndex, j as createIdleViewportManager, k as createPredictiveViewportManager, l as createRTreeViewportManager, m as createViewportManager, n as createViewportQuery, q as queryByBounds, o as queryByBoundsWithStats, p as queryRTreeByBounds, r as queryRTreeByBoundsWithStats } from '../spatial-Df48Jj9D.js';
|
|
3
3
|
import '../data-DCyEqgN0.js';
|
|
4
|
-
import '../generator-
|
|
4
|
+
import '../generator-DmozEcaK.js';
|
|
5
|
+
import '@classic-homes/theme-tokens';
|
|
5
6
|
import 'rbush';
|
|
6
7
|
|
|
7
8
|
/**
|
package/dist/utils/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { DEFAULT_SIMPLIFICATION_THRESHOLDS, KEYBOARD_CONTROLS, MARKER_PROTECTION_CLASS, applyMarkerChildProtection, applyMarkerProtection, boundsToPolygon, buildRTreeIndex, buildSpatialIndex, calculateBounds, calculateCentroid, calculateZoomThresholds, clampLatitude, combineBounds, countFeaturesByType, createCategoricalColorExpression, createCircleStyle, createClusterCirclePaint, createClusterStyles, createClusterTextLayout, createContinuousColorExpression, createDynamicLODManager, createExtrusionHeightExpression, createExtrusionStyle, createFillStyle, createGeoJSONFingerprint, createHeatmapStyle, createHoverExpression, createIdleViewportManager, createInteractiveExpression, createInteractiveStatusColorExpression, createLineStyle, createLotFillStyle, createLotOutlineStyle, createPredictiveViewportManager, createRTreeViewportManager, createSelectionExpression, createStatusColorExpression, createViewportManager, createViewportQuery, createZoomExpression, decimalToDMS, deepEqual, ensureValidCoordinates, expandCluster, expandClusterToBounds, extendBounds, filterByGeometryType, filterEqual, fingerprintEqual, formatArea, formatBearing, formatBounds, formatCoordinates, formatDistance, formatFeatureProperties, formatLabel, formatPitch, formatPropertyValue, formatScale, formatZoom, generateBoundingPolygon, generateConvexHull, generateFeatureCollectionDescription, generateFeatureTable, generateKeyboardControlsDescription, generateLODData, generateLODDataWithSimplification, generateMapDescription, generateMarkerList, generateMarkersDescription, generateMoveAnnouncement, geoJSONEqual, getChangedPaintProps, getClusterBounds, getClusterChildren, getClusterExpansionZoom, getClusterLeaves, getGridNavigationIndex, getHighlightStyle, getSelectionStyle, getSimplificationToleranceForZoom, getSimplifiedFeaturesForZoom, groupFeaturesByProperty, isClusterFeature, isValidBounds, isValidLatitude, isValidLongitude, loadGeoJSON, normalizeLongitude, normalizePadding, paintPropsEqual, panToFitPopup, prefersReducedMotion, queryByBounds, queryByBoundsWithStats, queryRTreeByBounds, queryRTreeByBoundsWithStats, removeMarkerProtection, resetWorkerUrlWarning, resolveDeckInterleaved, serializeFilter, simplifyFeature, simplifyFeatureCollection, simplifyFeatureCollectionWithStats, simplifyPolygon, supportsDeckInterleaving, validateBoundsArray, validateCoordinates, validateGeoJSON, warnIfWorkerUrlMissing, zoomToScale } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { DEFAULT_SIMPLIFICATION_THRESHOLDS, KEYBOARD_CONTROLS, MARKER_PROTECTION_CLASS, applyMarkerAccessibility, applyMarkerChildProtection, applyMarkerProtection, boundsToPolygon, buildRTreeIndex, buildSpatialIndex, calculateBounds, calculateCentroid, calculateZoomThresholds, clampLatitude, combineBounds, countFeaturesByType, createCategoricalColorExpression, createCircleStyle, createClusterCirclePaint, createClusterStyles, createClusterTextLayout, createContinuousColorExpression, createDynamicLODManager, createExtrusionHeightExpression, createExtrusionStyle, createFillStyle, createGeoJSONFingerprint, createHeatmapStyle, createHoverExpression, createIdleViewportManager, createInteractiveExpression, createInteractiveStatusColorExpression, createLineStyle, createLotFillStyle, createLotOutlineStyle, createPredictiveViewportManager, createRTreeViewportManager, createSelectionExpression, createStatusColorExpression, createViewportManager, createViewportQuery, createZoomExpression, decimalToDMS, deepEqual, ensureValidCoordinates, expandCluster, expandClusterToBounds, extendBounds, filterByGeometryType, filterEqual, fingerprintEqual, formatArea, formatBearing, formatBounds, formatCoordinates, formatDistance, formatFeatureProperties, formatLabel, formatPitch, formatPropertyValue, formatScale, formatZoom, generateBoundingPolygon, generateConvexHull, generateFeatureCollectionDescription, generateFeatureTable, generateKeyboardControlsDescription, generateLODData, generateLODDataWithSimplification, generateMapDescription, generateMarkerList, generateMarkersDescription, generateMoveAnnouncement, geoJSONEqual, getChangedPaintProps, getClusterBounds, getClusterChildren, getClusterExpansionZoom, getClusterLeaves, getGridNavigationIndex, getHighlightStyle, getSelectionStyle, getSimplificationToleranceForZoom, getSimplifiedFeaturesForZoom, groupFeaturesByProperty, handleMarkerKeydown, isClusterFeature, isValidBounds, isValidLatitude, isValidLongitude, loadGeoJSON, normalizeLongitude, normalizePadding, paintPropsEqual, panToFitPopup, prefersReducedMotion, queryByBounds, queryByBoundsWithStats, queryRTreeByBounds, queryRTreeByBoundsWithStats, removeMarkerProtection, resetWorkerUrlWarning, resolveDeckInterleaved, serializeFilter, simplifyFeature, simplifyFeatureCollection, simplifyFeatureCollectionWithStats, simplifyPolygon, supportsDeckInterleaving, validateBoundsArray, validateCoordinates, validateGeoJSON, warnIfWorkerUrlMissing, zoomToScale } from '../chunk-VMBWIYOW.js';
|
|
2
|
+
import '../chunk-OYZEJO3U.js';
|