@classic-homes/maps-core 0.5.3 → 0.6.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-ASIFMIU7.js → chunk-BWZMIFZI.js} +21 -1
- package/dist/index.cjs +21 -0
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/{marker-Dd8fHiBI.d.cts → marker-5KqXgC2u.d.cts} +9 -1
- package/dist/{marker-CGdmHmft.d.ts → marker-Dqz53Ym7.d.ts} +9 -1
- package/dist/route/index.cjs +7 -2
- package/dist/route/index.js +8 -3
- package/dist/utils/index.cjs +21 -0
- package/dist/utils/index.d.cts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +1 -1
- package/package.json +1 -1
- package/src/styles/layer-manager.css +1 -5
- package/src/styles/popup.css +1 -3
|
@@ -420,6 +420,26 @@ function generateMoveAnnouncement(center, zoom, action) {
|
|
|
420
420
|
return `Map moved to ${Math.abs(lat).toFixed(2)} ${latDir}, ${Math.abs(lng).toFixed(2)} ${lngDir} at zoom ${zoom.toFixed(1)}`;
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
+
function getGridNavigationIndex(key, index, count, columns) {
|
|
424
|
+
if (count <= 0) return null;
|
|
425
|
+
const cols = Math.max(1, Math.floor(columns));
|
|
426
|
+
switch (key) {
|
|
427
|
+
case "ArrowRight":
|
|
428
|
+
return (index + 1) % count;
|
|
429
|
+
case "ArrowLeft":
|
|
430
|
+
return (index - 1 + count) % count;
|
|
431
|
+
case "ArrowDown":
|
|
432
|
+
return index + cols < count ? index + cols : index;
|
|
433
|
+
case "ArrowUp":
|
|
434
|
+
return index - cols >= 0 ? index - cols : index;
|
|
435
|
+
case "Home":
|
|
436
|
+
return 0;
|
|
437
|
+
case "End":
|
|
438
|
+
return count - 1;
|
|
439
|
+
default:
|
|
440
|
+
return null;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
423
443
|
|
|
424
444
|
// src/utils/styles.ts
|
|
425
445
|
function createFillStyle(options) {
|
|
@@ -2830,4 +2850,4 @@ function panToFitPopup(map, popup, padding) {
|
|
|
2830
2850
|
}
|
|
2831
2851
|
}
|
|
2832
2852
|
|
|
2833
|
-
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, getHighlightStyle, getSelectionStyle, getSimplificationToleranceForZoom, getSimplifiedFeaturesForZoom, groupFeaturesByProperty, isClusterFeature, isValidBounds, isValidLatitude, isValidLongitude, loadGeoJSON, normalizeLongitude, normalizePadding, paintPropsEqual, panToFitPopup, prefersReducedMotion, queryByBounds, queryByBoundsWithStats, queryRTreeByBounds, queryRTreeByBoundsWithStats, removeMarkerProtection, serializeFilter, simplifyFeature, simplifyFeatureCollection, simplifyFeatureCollectionWithStats, simplifyPolygon, validateBoundsArray, validateCoordinates, validateGeoJSON, zoomToScale };
|
|
2853
|
+
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, serializeFilter, simplifyFeature, simplifyFeatureCollection, simplifyFeatureCollectionWithStats, simplifyPolygon, validateBoundsArray, validateCoordinates, validateGeoJSON, zoomToScale };
|
package/dist/index.cjs
CHANGED
|
@@ -958,6 +958,26 @@ function generateMoveAnnouncement(center, zoom, action) {
|
|
|
958
958
|
return `Map moved to ${Math.abs(lat).toFixed(2)} ${latDir}, ${Math.abs(lng).toFixed(2)} ${lngDir} at zoom ${zoom.toFixed(1)}`;
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
|
+
function getGridNavigationIndex(key, index, count, columns) {
|
|
962
|
+
if (count <= 0) return null;
|
|
963
|
+
const cols = Math.max(1, Math.floor(columns));
|
|
964
|
+
switch (key) {
|
|
965
|
+
case "ArrowRight":
|
|
966
|
+
return (index + 1) % count;
|
|
967
|
+
case "ArrowLeft":
|
|
968
|
+
return (index - 1 + count) % count;
|
|
969
|
+
case "ArrowDown":
|
|
970
|
+
return index + cols < count ? index + cols : index;
|
|
971
|
+
case "ArrowUp":
|
|
972
|
+
return index - cols >= 0 ? index - cols : index;
|
|
973
|
+
case "Home":
|
|
974
|
+
return 0;
|
|
975
|
+
case "End":
|
|
976
|
+
return count - 1;
|
|
977
|
+
default:
|
|
978
|
+
return null;
|
|
979
|
+
}
|
|
980
|
+
}
|
|
961
981
|
|
|
962
982
|
// src/utils/styles.ts
|
|
963
983
|
function createFillStyle(options) {
|
|
@@ -4687,6 +4707,7 @@ exports.getClusterChildren = getClusterChildren;
|
|
|
4687
4707
|
exports.getClusterExpansionZoom = getClusterExpansionZoom;
|
|
4688
4708
|
exports.getClusterLeaves = getClusterLeaves;
|
|
4689
4709
|
exports.getContrastTextColor = getContrastTextColor;
|
|
4710
|
+
exports.getGridNavigationIndex = getGridNavigationIndex;
|
|
4690
4711
|
exports.getHighlightStyle = getHighlightStyle;
|
|
4691
4712
|
exports.getLayerCategories = getLayerCategories;
|
|
4692
4713
|
exports.getLayerStatesArray = getLayerStatesArray;
|
package/dist/index.d.cts
CHANGED
|
@@ -4,7 +4,7 @@ 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, 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 DynamicLODOptions, m as DynamicLODState, E as ExtrusionHeightOptions, F as FeatureGroup, n as FilterExpression, o as FilterOperator, p as FilterValue, G as GenerateLODOptions, q as GeoJSONFingerprint, r as GroupFeaturesOptions, K as KEYBOARD_CONTROLS, L as LODData, s as LODDataWithSimplification, t as LoadGeoJSONOptions, u as LoadGeoJSONResult, v as LotFillStyleOptions, w as LotOutlineStyleOptions, M as MARKER_PROTECTION_CLASS, N as NumberExpression, P as PaintProps, x as PaintPropsDiff, S as SimplificationStats, y as SimplificationThreshold, U as UnclusteredPointStyleOptions, V as ValidationResult, z as applyMarkerChildProtection, A as applyMarkerProtection, B as boundsToPolygon, H as calculateBounds, I as calculateCentroid, J as calculateZoomThresholds, O as clampLatitude, Q as combineBounds, R as countFeaturesByType, T as createCategoricalColorExpression, W as createCircleStyle, X as createClusterCirclePaint, Y as createClusterStyles, Z as createClusterTextLayout, _ as createContinuousColorExpression, $ as createDynamicLODManager, a0 as createExtrusionHeightExpression, a1 as createExtrusionStyle, a2 as createFillStyle, a3 as createGeoJSONFingerprint, a4 as createHeatmapStyle, a5 as createHoverExpression, a6 as createInteractiveExpression, a7 as createInteractiveStatusColorExpression, a8 as createLineStyle, a9 as createLotFillStyle, aa as createLotOutlineStyle, ab as createSelectionExpression, ac as createStatusColorExpression, ad as createZoomExpression, ae as decimalToDMS, af as deepEqual, ag as ensureValidCoordinates, ah as expandCluster, ai as expandClusterToBounds, aj as extendBounds, ak as filterByGeometryType, al as filterEqual, am as fingerprintEqual, an as formatArea, ao as formatBearing, ap as formatBounds, aq as formatCoordinates, ar as formatDistance, as as formatFeatureProperties, at as formatLabel, au as formatPitch, av as formatPropertyValue, aw as formatScale, ax as formatZoom, ay as generateBoundingPolygon, az as generateConvexHull, aA as generateFeatureCollectionDescription, aB as generateFeatureTable, aC as generateKeyboardControlsDescription, aD as generateLODData, aE as generateLODDataWithSimplification, aF as generateMapDescription, aG as generateMarkerList, aH as generateMarkersDescription, aI as generateMoveAnnouncement, aJ as geoJSONEqual, aK as getChangedPaintProps, aL as getClusterBounds, aM as getClusterChildren, aN as getClusterExpansionZoom, aO as getClusterLeaves, aP as
|
|
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 DynamicLODOptions, m as DynamicLODState, E as ExtrusionHeightOptions, F as FeatureGroup, n as FilterExpression, o as FilterOperator, p as FilterValue, G as GenerateLODOptions, q as GeoJSONFingerprint, r as GroupFeaturesOptions, K as KEYBOARD_CONTROLS, L as LODData, s as LODDataWithSimplification, t as LoadGeoJSONOptions, u as LoadGeoJSONResult, v as LotFillStyleOptions, w as LotOutlineStyleOptions, M as MARKER_PROTECTION_CLASS, N as NumberExpression, P as PaintProps, x as PaintPropsDiff, S as SimplificationStats, y as SimplificationThreshold, U as UnclusteredPointStyleOptions, V as ValidationResult, z as applyMarkerChildProtection, A as applyMarkerProtection, B as boundsToPolygon, H as calculateBounds, I as calculateCentroid, J as calculateZoomThresholds, O as clampLatitude, Q as combineBounds, R as countFeaturesByType, T as createCategoricalColorExpression, W as createCircleStyle, X as createClusterCirclePaint, Y as createClusterStyles, Z as createClusterTextLayout, _ as createContinuousColorExpression, $ as createDynamicLODManager, a0 as createExtrusionHeightExpression, a1 as createExtrusionStyle, a2 as createFillStyle, a3 as createGeoJSONFingerprint, a4 as createHeatmapStyle, a5 as createHoverExpression, a6 as createInteractiveExpression, a7 as createInteractiveStatusColorExpression, a8 as createLineStyle, a9 as createLotFillStyle, aa as createLotOutlineStyle, ab as createSelectionExpression, ac as createStatusColorExpression, ad as createZoomExpression, ae as decimalToDMS, af as deepEqual, ag as ensureValidCoordinates, ah as expandCluster, ai as expandClusterToBounds, aj as extendBounds, ak as filterByGeometryType, al as filterEqual, am as fingerprintEqual, an as formatArea, ao as formatBearing, ap as formatBounds, aq as formatCoordinates, ar as formatDistance, as as formatFeatureProperties, at as formatLabel, au as formatPitch, av as formatPropertyValue, aw as formatScale, ax as formatZoom, ay as generateBoundingPolygon, az as generateConvexHull, aA as generateFeatureCollectionDescription, aB as generateFeatureTable, aC as generateKeyboardControlsDescription, aD as generateLODData, aE as generateLODDataWithSimplification, aF as generateMapDescription, aG as generateMarkerList, aH as generateMarkersDescription, aI as generateMoveAnnouncement, aJ as geoJSONEqual, aK as getChangedPaintProps, aL as getClusterBounds, aM as getClusterChildren, aN as getClusterExpansionZoom, aO as getClusterLeaves, aP as getGridNavigationIndex, aQ as getHighlightStyle, aR as getSelectionStyle, aS as getSimplificationToleranceForZoom, aT as getSimplifiedFeaturesForZoom, aU as groupFeaturesByProperty, aV as isClusterFeature, aW as isValidBounds, aX as isValidLatitude, aY as isValidLongitude, aZ as loadGeoJSON, a_ as normalizeLongitude, a$ as paintPropsEqual, b0 as removeMarkerProtection, b1 as serializeFilter, b2 as simplifyFeature, b3 as simplifyFeatureCollection, b4 as simplifyFeatureCollectionWithStats, b5 as simplifyPolygon, b6 as validateBoundsArray, b7 as validateCoordinates, b8 as validateGeoJSON, b9 as zoomToScale } from './marker-5KqXgC2u.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
9
|
import 'rbush';
|
|
10
10
|
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ 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, 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 DynamicLODOptions, m as DynamicLODState, E as ExtrusionHeightOptions, F as FeatureGroup, n as FilterExpression, o as FilterOperator, p as FilterValue, G as GenerateLODOptions, q as GeoJSONFingerprint, r as GroupFeaturesOptions, K as KEYBOARD_CONTROLS, L as LODData, s as LODDataWithSimplification, t as LoadGeoJSONOptions, u as LoadGeoJSONResult, v as LotFillStyleOptions, w as LotOutlineStyleOptions, M as MARKER_PROTECTION_CLASS, N as NumberExpression, P as PaintProps, x as PaintPropsDiff, S as SimplificationStats, y as SimplificationThreshold, U as UnclusteredPointStyleOptions, V as ValidationResult, z as applyMarkerChildProtection, A as applyMarkerProtection, B as boundsToPolygon, H as calculateBounds, I as calculateCentroid, J as calculateZoomThresholds, O as clampLatitude, Q as combineBounds, R as countFeaturesByType, T as createCategoricalColorExpression, W as createCircleStyle, X as createClusterCirclePaint, Y as createClusterStyles, Z as createClusterTextLayout, _ as createContinuousColorExpression, $ as createDynamicLODManager, a0 as createExtrusionHeightExpression, a1 as createExtrusionStyle, a2 as createFillStyle, a3 as createGeoJSONFingerprint, a4 as createHeatmapStyle, a5 as createHoverExpression, a6 as createInteractiveExpression, a7 as createInteractiveStatusColorExpression, a8 as createLineStyle, a9 as createLotFillStyle, aa as createLotOutlineStyle, ab as createSelectionExpression, ac as createStatusColorExpression, ad as createZoomExpression, ae as decimalToDMS, af as deepEqual, ag as ensureValidCoordinates, ah as expandCluster, ai as expandClusterToBounds, aj as extendBounds, ak as filterByGeometryType, al as filterEqual, am as fingerprintEqual, an as formatArea, ao as formatBearing, ap as formatBounds, aq as formatCoordinates, ar as formatDistance, as as formatFeatureProperties, at as formatLabel, au as formatPitch, av as formatPropertyValue, aw as formatScale, ax as formatZoom, ay as generateBoundingPolygon, az as generateConvexHull, aA as generateFeatureCollectionDescription, aB as generateFeatureTable, aC as generateKeyboardControlsDescription, aD as generateLODData, aE as generateLODDataWithSimplification, aF as generateMapDescription, aG as generateMarkerList, aH as generateMarkersDescription, aI as generateMoveAnnouncement, aJ as geoJSONEqual, aK as getChangedPaintProps, aL as getClusterBounds, aM as getClusterChildren, aN as getClusterExpansionZoom, aO as getClusterLeaves, aP as
|
|
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 DynamicLODOptions, m as DynamicLODState, E as ExtrusionHeightOptions, F as FeatureGroup, n as FilterExpression, o as FilterOperator, p as FilterValue, G as GenerateLODOptions, q as GeoJSONFingerprint, r as GroupFeaturesOptions, K as KEYBOARD_CONTROLS, L as LODData, s as LODDataWithSimplification, t as LoadGeoJSONOptions, u as LoadGeoJSONResult, v as LotFillStyleOptions, w as LotOutlineStyleOptions, M as MARKER_PROTECTION_CLASS, N as NumberExpression, P as PaintProps, x as PaintPropsDiff, S as SimplificationStats, y as SimplificationThreshold, U as UnclusteredPointStyleOptions, V as ValidationResult, z as applyMarkerChildProtection, A as applyMarkerProtection, B as boundsToPolygon, H as calculateBounds, I as calculateCentroid, J as calculateZoomThresholds, O as clampLatitude, Q as combineBounds, R as countFeaturesByType, T as createCategoricalColorExpression, W as createCircleStyle, X as createClusterCirclePaint, Y as createClusterStyles, Z as createClusterTextLayout, _ as createContinuousColorExpression, $ as createDynamicLODManager, a0 as createExtrusionHeightExpression, a1 as createExtrusionStyle, a2 as createFillStyle, a3 as createGeoJSONFingerprint, a4 as createHeatmapStyle, a5 as createHoverExpression, a6 as createInteractiveExpression, a7 as createInteractiveStatusColorExpression, a8 as createLineStyle, a9 as createLotFillStyle, aa as createLotOutlineStyle, ab as createSelectionExpression, ac as createStatusColorExpression, ad as createZoomExpression, ae as decimalToDMS, af as deepEqual, ag as ensureValidCoordinates, ah as expandCluster, ai as expandClusterToBounds, aj as extendBounds, ak as filterByGeometryType, al as filterEqual, am as fingerprintEqual, an as formatArea, ao as formatBearing, ap as formatBounds, aq as formatCoordinates, ar as formatDistance, as as formatFeatureProperties, at as formatLabel, au as formatPitch, av as formatPropertyValue, aw as formatScale, ax as formatZoom, ay as generateBoundingPolygon, az as generateConvexHull, aA as generateFeatureCollectionDescription, aB as generateFeatureTable, aC as generateKeyboardControlsDescription, aD as generateLODData, aE as generateLODDataWithSimplification, aF as generateMapDescription, aG as generateMarkerList, aH as generateMarkersDescription, aI as generateMoveAnnouncement, aJ as geoJSONEqual, aK as getChangedPaintProps, aL as getClusterBounds, aM as getClusterChildren, aN as getClusterExpansionZoom, aO as getClusterLeaves, aP as getGridNavigationIndex, aQ as getHighlightStyle, aR as getSelectionStyle, aS as getSimplificationToleranceForZoom, aT as getSimplifiedFeaturesForZoom, aU as groupFeaturesByProperty, aV as isClusterFeature, aW as isValidBounds, aX as isValidLatitude, aY as isValidLongitude, aZ as loadGeoJSON, a_ as normalizeLongitude, a$ as paintPropsEqual, b0 as removeMarkerProtection, b1 as serializeFilter, b2 as simplifyFeature, b3 as simplifyFeatureCollection, b4 as simplifyFeatureCollectionWithStats, b5 as simplifyPolygon, b6 as validateBoundsArray, b7 as validateCoordinates, b8 as validateGeoJSON, b9 as zoomToScale } from './marker-Dqz53Ym7.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
9
|
import 'rbush';
|
|
10
10
|
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { lightBasicStyle, darkBasicStyle } from './chunk-6WMCIBJJ.js';
|
|
2
2
|
export { darkBasicStyle, generateBasicStyle, generateVectorStyle, getBasicStyle, lightBasicStyle } from './chunk-6WMCIBJJ.js';
|
|
3
|
-
import { createCategoricalColorExpression } from './chunk-
|
|
4
|
-
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, getHighlightStyle, getSelectionStyle, getSimplificationToleranceForZoom, getSimplifiedFeaturesForZoom, groupFeaturesByProperty, isClusterFeature, isValidBounds, isValidLatitude, isValidLongitude, loadGeoJSON, normalizeLongitude, paintPropsEqual, queryByBounds, queryByBoundsWithStats, queryRTreeByBounds, queryRTreeByBoundsWithStats, removeMarkerProtection, serializeFilter, simplifyFeature, simplifyFeatureCollection, simplifyFeatureCollectionWithStats, simplifyPolygon, validateBoundsArray, validateCoordinates, validateGeoJSON, zoomToScale } from './chunk-
|
|
3
|
+
import { createCategoricalColorExpression } from './chunk-BWZMIFZI.js';
|
|
4
|
+
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, paintPropsEqual, queryByBounds, queryByBoundsWithStats, queryRTreeByBounds, queryRTreeByBoundsWithStats, removeMarkerProtection, serializeFilter, simplifyFeature, simplifyFeatureCollection, simplifyFeatureCollectionWithStats, simplifyPolygon, validateBoundsArray, validateCoordinates, validateGeoJSON, zoomToScale } from './chunk-BWZMIFZI.js';
|
|
5
5
|
export { THEME_DARK, THEME_LIGHT, darkTheme, generateDarkColors, generateDarkDataColors, generateDarkTheme, generateLightColors, generateLightDataColors, generateLightTheme, getTheme, getTypography, lightTheme } from './chunk-ZGUACUEF.js';
|
|
6
6
|
import { getContrastTextColor as getContrastTextColor$1 } from '@classic-homes/theme-tokens/contrast';
|
|
7
7
|
import { colors } from '@classic-homes/theme-tokens';
|
|
@@ -68,6 +68,14 @@ declare function generateMarkerList(markers: MarkerData[]): string;
|
|
|
68
68
|
* Generate live region announcement for map changes
|
|
69
69
|
*/
|
|
70
70
|
declare function generateMoveAnnouncement(center: LngLat, zoom: number, action: 'pan' | 'zoom' | 'move'): string;
|
|
71
|
+
/**
|
|
72
|
+
* Next focus index for arrow-key navigation through a grid of options laid out
|
|
73
|
+
* row by row (a radiogroup of thumbnails, for example). Left/Right step one
|
|
74
|
+
* option and wrap, Up/Down step one row and stop at the edges, Home/End jump to
|
|
75
|
+
* the first/last option. Returns null for any other key, so the caller can let
|
|
76
|
+
* it through.
|
|
77
|
+
*/
|
|
78
|
+
declare function getGridNavigationIndex(key: string, index: number, count: number, columns: number): number | null;
|
|
71
79
|
|
|
72
80
|
/**
|
|
73
81
|
* Style utilities for map layers
|
|
@@ -1487,4 +1495,4 @@ declare function removeMarkerProtection(element: HTMLElement): void;
|
|
|
1487
1495
|
*/
|
|
1488
1496
|
declare function applyMarkerChildProtection(element: HTMLElement): void;
|
|
1489
1497
|
|
|
1490
|
-
export { createDynamicLODManager as $, applyMarkerProtection as A, boundsToPolygon as B, type ClusterCircleStyleOptions as C, DEFAULT_SIMPLIFICATION_THRESHOLDS as D, type ExtrusionHeightOptions as E, type FeatureGroup as F, type GenerateLODOptions as G, calculateBounds as H, calculateCentroid as I, calculateZoomThresholds as J, KEYBOARD_CONTROLS as K, type LODData as L, MARKER_PROTECTION_CLASS as M, type NumberExpression as N, clampLatitude as O, type PaintProps as P, combineBounds as Q, countFeaturesByType as R, type SimplificationStats as S, createCategoricalColorExpression as T, type UnclusteredPointStyleOptions as U, type ValidationResult as V, createCircleStyle as W, createClusterCirclePaint as X, createClusterStyles as Y, createClusterTextLayout as Z, createContinuousColorExpression as _, type ClusterExpandOptions as a,
|
|
1498
|
+
export { createDynamicLODManager as $, applyMarkerProtection as A, boundsToPolygon as B, type ClusterCircleStyleOptions as C, DEFAULT_SIMPLIFICATION_THRESHOLDS as D, type ExtrusionHeightOptions as E, type FeatureGroup as F, type GenerateLODOptions as G, calculateBounds as H, calculateCentroid as I, calculateZoomThresholds as J, KEYBOARD_CONTROLS as K, type LODData as L, MARKER_PROTECTION_CLASS as M, type NumberExpression as N, clampLatitude as O, type PaintProps as P, combineBounds as Q, countFeaturesByType as R, type SimplificationStats as S, createCategoricalColorExpression as T, type UnclusteredPointStyleOptions as U, type ValidationResult as V, createCircleStyle as W, createClusterCirclePaint as X, createClusterStyles as Y, createClusterTextLayout as Z, createContinuousColorExpression as _, type ClusterExpandOptions as a, paintPropsEqual as a$, createExtrusionHeightExpression as a0, createExtrusionStyle as a1, createFillStyle as a2, createGeoJSONFingerprint as a3, createHeatmapStyle as a4, createHoverExpression as a5, createInteractiveExpression as a6, createInteractiveStatusColorExpression as a7, createLineStyle as a8, createLotFillStyle as a9, generateFeatureCollectionDescription as aA, generateFeatureTable as aB, generateKeyboardControlsDescription as aC, generateLODData as aD, generateLODDataWithSimplification as aE, generateMapDescription as aF, generateMarkerList as aG, generateMarkersDescription as aH, generateMoveAnnouncement as aI, geoJSONEqual as aJ, getChangedPaintProps as aK, getClusterBounds as aL, getClusterChildren as aM, getClusterExpansionZoom as aN, getClusterLeaves as aO, getGridNavigationIndex as aP, getHighlightStyle as aQ, getSelectionStyle as aR, getSimplificationToleranceForZoom as aS, getSimplifiedFeaturesForZoom as aT, groupFeaturesByProperty as aU, isClusterFeature as aV, isValidBounds as aW, isValidLatitude as aX, isValidLongitude as aY, loadGeoJSON as aZ, normalizeLongitude as a_, createLotOutlineStyle as aa, createSelectionExpression as ab, createStatusColorExpression as ac, createZoomExpression as ad, decimalToDMS as ae, deepEqual as af, ensureValidCoordinates as ag, expandCluster as ah, expandClusterToBounds as ai, extendBounds as aj, filterByGeometryType as ak, filterEqual as al, fingerprintEqual as am, formatArea as an, formatBearing as ao, formatBounds as ap, formatCoordinates as aq, formatDistance as ar, formatFeatureProperties as as, formatLabel as at, formatPitch as au, formatPropertyValue as av, formatScale as aw, formatZoom as ax, generateBoundingPolygon as ay, generateConvexHull as az, type ClusterExpansionResult as b, removeMarkerProtection as b0, serializeFilter as b1, simplifyFeature as b2, simplifyFeatureCollection as b3, simplifyFeatureCollectionWithStats as b4, simplifyPolygon as b5, validateBoundsArray as b6, validateCoordinates as b7, validateGeoJSON as b8, zoomToScale as b9, 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 DynamicLODOptions as l, type DynamicLODState as m, type FilterExpression as n, type FilterOperator as o, type FilterValue as p, type GeoJSONFingerprint as q, type GroupFeaturesOptions as r, type LODDataWithSimplification as s, type LoadGeoJSONOptions as t, type LoadGeoJSONResult as u, type LotFillStyleOptions as v, type LotOutlineStyleOptions as w, type PaintPropsDiff as x, type SimplificationThreshold as y, applyMarkerChildProtection as z };
|
|
@@ -68,6 +68,14 @@ declare function generateMarkerList(markers: MarkerData[]): string;
|
|
|
68
68
|
* Generate live region announcement for map changes
|
|
69
69
|
*/
|
|
70
70
|
declare function generateMoveAnnouncement(center: LngLat, zoom: number, action: 'pan' | 'zoom' | 'move'): string;
|
|
71
|
+
/**
|
|
72
|
+
* Next focus index for arrow-key navigation through a grid of options laid out
|
|
73
|
+
* row by row (a radiogroup of thumbnails, for example). Left/Right step one
|
|
74
|
+
* option and wrap, Up/Down step one row and stop at the edges, Home/End jump to
|
|
75
|
+
* the first/last option. Returns null for any other key, so the caller can let
|
|
76
|
+
* it through.
|
|
77
|
+
*/
|
|
78
|
+
declare function getGridNavigationIndex(key: string, index: number, count: number, columns: number): number | null;
|
|
71
79
|
|
|
72
80
|
/**
|
|
73
81
|
* Style utilities for map layers
|
|
@@ -1487,4 +1495,4 @@ declare function removeMarkerProtection(element: HTMLElement): void;
|
|
|
1487
1495
|
*/
|
|
1488
1496
|
declare function applyMarkerChildProtection(element: HTMLElement): void;
|
|
1489
1497
|
|
|
1490
|
-
export { createDynamicLODManager as $, applyMarkerProtection as A, boundsToPolygon as B, type ClusterCircleStyleOptions as C, DEFAULT_SIMPLIFICATION_THRESHOLDS as D, type ExtrusionHeightOptions as E, type FeatureGroup as F, type GenerateLODOptions as G, calculateBounds as H, calculateCentroid as I, calculateZoomThresholds as J, KEYBOARD_CONTROLS as K, type LODData as L, MARKER_PROTECTION_CLASS as M, type NumberExpression as N, clampLatitude as O, type PaintProps as P, combineBounds as Q, countFeaturesByType as R, type SimplificationStats as S, createCategoricalColorExpression as T, type UnclusteredPointStyleOptions as U, type ValidationResult as V, createCircleStyle as W, createClusterCirclePaint as X, createClusterStyles as Y, createClusterTextLayout as Z, createContinuousColorExpression as _, type ClusterExpandOptions as a,
|
|
1498
|
+
export { createDynamicLODManager as $, applyMarkerProtection as A, boundsToPolygon as B, type ClusterCircleStyleOptions as C, DEFAULT_SIMPLIFICATION_THRESHOLDS as D, type ExtrusionHeightOptions as E, type FeatureGroup as F, type GenerateLODOptions as G, calculateBounds as H, calculateCentroid as I, calculateZoomThresholds as J, KEYBOARD_CONTROLS as K, type LODData as L, MARKER_PROTECTION_CLASS as M, type NumberExpression as N, clampLatitude as O, type PaintProps as P, combineBounds as Q, countFeaturesByType as R, type SimplificationStats as S, createCategoricalColorExpression as T, type UnclusteredPointStyleOptions as U, type ValidationResult as V, createCircleStyle as W, createClusterCirclePaint as X, createClusterStyles as Y, createClusterTextLayout as Z, createContinuousColorExpression as _, type ClusterExpandOptions as a, paintPropsEqual as a$, createExtrusionHeightExpression as a0, createExtrusionStyle as a1, createFillStyle as a2, createGeoJSONFingerprint as a3, createHeatmapStyle as a4, createHoverExpression as a5, createInteractiveExpression as a6, createInteractiveStatusColorExpression as a7, createLineStyle as a8, createLotFillStyle as a9, generateFeatureCollectionDescription as aA, generateFeatureTable as aB, generateKeyboardControlsDescription as aC, generateLODData as aD, generateLODDataWithSimplification as aE, generateMapDescription as aF, generateMarkerList as aG, generateMarkersDescription as aH, generateMoveAnnouncement as aI, geoJSONEqual as aJ, getChangedPaintProps as aK, getClusterBounds as aL, getClusterChildren as aM, getClusterExpansionZoom as aN, getClusterLeaves as aO, getGridNavigationIndex as aP, getHighlightStyle as aQ, getSelectionStyle as aR, getSimplificationToleranceForZoom as aS, getSimplifiedFeaturesForZoom as aT, groupFeaturesByProperty as aU, isClusterFeature as aV, isValidBounds as aW, isValidLatitude as aX, isValidLongitude as aY, loadGeoJSON as aZ, normalizeLongitude as a_, createLotOutlineStyle as aa, createSelectionExpression as ab, createStatusColorExpression as ac, createZoomExpression as ad, decimalToDMS as ae, deepEqual as af, ensureValidCoordinates as ag, expandCluster as ah, expandClusterToBounds as ai, extendBounds as aj, filterByGeometryType as ak, filterEqual as al, fingerprintEqual as am, formatArea as an, formatBearing as ao, formatBounds as ap, formatCoordinates as aq, formatDistance as ar, formatFeatureProperties as as, formatLabel as at, formatPitch as au, formatPropertyValue as av, formatScale as aw, formatZoom as ax, generateBoundingPolygon as ay, generateConvexHull as az, type ClusterExpansionResult as b, removeMarkerProtection as b0, serializeFilter as b1, simplifyFeature as b2, simplifyFeatureCollection as b3, simplifyFeatureCollectionWithStats as b4, simplifyPolygon as b5, validateBoundsArray as b6, validateCoordinates as b7, validateGeoJSON as b8, zoomToScale as b9, 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 DynamicLODOptions as l, type DynamicLODState as m, type FilterExpression as n, type FilterOperator as o, type FilterValue as p, type GeoJSONFingerprint as q, type GroupFeaturesOptions as r, type LODDataWithSimplification as s, type LoadGeoJSONOptions as t, type LoadGeoJSONResult as u, type LotFillStyleOptions as v, type LotOutlineStyleOptions as w, type PaintPropsDiff as x, type SimplificationThreshold as y, applyMarkerChildProtection as z };
|
package/dist/route/index.cjs
CHANGED
|
@@ -153,10 +153,15 @@ var GOOGLE_MAX_LEG_STOPS = GOOGLE_MAX_WAYPOINTS + 1;
|
|
|
153
153
|
var GOOGLE_DIR_BASE = "https://www.google.com/maps/dir/?api=1";
|
|
154
154
|
var GOOGLE_SEARCH_BASE = "https://www.google.com/maps/search/?api=1";
|
|
155
155
|
var APPLE_BASE = "https://maps.apple.com/";
|
|
156
|
+
var COORD_DECIMALS = 7;
|
|
157
|
+
function formatCoord(value) {
|
|
158
|
+
const fixed = value.toFixed(COORD_DECIMALS).replace(/\.?0+$/, "");
|
|
159
|
+
return fixed === "-0" ? "0" : fixed;
|
|
160
|
+
}
|
|
156
161
|
function encodeTarget(target) {
|
|
157
162
|
const coords = target.coords;
|
|
158
|
-
if (
|
|
159
|
-
return `${coords.lat},${coords.lng}`;
|
|
163
|
+
if (isValidLatLng(coords)) {
|
|
164
|
+
return `${formatCoord(coords.lat)},${formatCoord(coords.lng)}`;
|
|
160
165
|
}
|
|
161
166
|
if (target.address && target.address.trim()) {
|
|
162
167
|
return encodeURIComponent(target.address.trim());
|
package/dist/route/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isFiniteNumber } from '../chunk-OPYY37LA.js';
|
|
1
|
+
import { isFiniteNumber, isValidLatLng } from '../chunk-OPYY37LA.js';
|
|
2
2
|
export { fromLngLat, isFiniteNumber, isValidLatLng, toLngLat } from '../chunk-OPYY37LA.js';
|
|
3
3
|
|
|
4
4
|
// src/route/geo.ts
|
|
@@ -138,10 +138,15 @@ var GOOGLE_MAX_LEG_STOPS = GOOGLE_MAX_WAYPOINTS + 1;
|
|
|
138
138
|
var GOOGLE_DIR_BASE = "https://www.google.com/maps/dir/?api=1";
|
|
139
139
|
var GOOGLE_SEARCH_BASE = "https://www.google.com/maps/search/?api=1";
|
|
140
140
|
var APPLE_BASE = "https://maps.apple.com/";
|
|
141
|
+
var COORD_DECIMALS = 7;
|
|
142
|
+
function formatCoord(value) {
|
|
143
|
+
const fixed = value.toFixed(COORD_DECIMALS).replace(/\.?0+$/, "");
|
|
144
|
+
return fixed === "-0" ? "0" : fixed;
|
|
145
|
+
}
|
|
141
146
|
function encodeTarget(target) {
|
|
142
147
|
const coords = target.coords;
|
|
143
|
-
if (
|
|
144
|
-
return `${coords.lat},${coords.lng}`;
|
|
148
|
+
if (isValidLatLng(coords)) {
|
|
149
|
+
return `${formatCoord(coords.lat)},${formatCoord(coords.lng)}`;
|
|
145
150
|
}
|
|
146
151
|
if (target.address && target.address.trim()) {
|
|
147
152
|
return encodeURIComponent(target.address.trim());
|
package/dist/utils/index.cjs
CHANGED
|
@@ -426,6 +426,26 @@ function generateMoveAnnouncement(center, zoom, action) {
|
|
|
426
426
|
return `Map moved to ${Math.abs(lat).toFixed(2)} ${latDir}, ${Math.abs(lng).toFixed(2)} ${lngDir} at zoom ${zoom.toFixed(1)}`;
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
|
+
function getGridNavigationIndex(key, index, count, columns) {
|
|
430
|
+
if (count <= 0) return null;
|
|
431
|
+
const cols = Math.max(1, Math.floor(columns));
|
|
432
|
+
switch (key) {
|
|
433
|
+
case "ArrowRight":
|
|
434
|
+
return (index + 1) % count;
|
|
435
|
+
case "ArrowLeft":
|
|
436
|
+
return (index - 1 + count) % count;
|
|
437
|
+
case "ArrowDown":
|
|
438
|
+
return index + cols < count ? index + cols : index;
|
|
439
|
+
case "ArrowUp":
|
|
440
|
+
return index - cols >= 0 ? index - cols : index;
|
|
441
|
+
case "Home":
|
|
442
|
+
return 0;
|
|
443
|
+
case "End":
|
|
444
|
+
return count - 1;
|
|
445
|
+
default:
|
|
446
|
+
return null;
|
|
447
|
+
}
|
|
448
|
+
}
|
|
429
449
|
var THEME_LIGHT = "classic-light";
|
|
430
450
|
var THEME_DARK = "classic-dark";
|
|
431
451
|
function generateLightColors() {
|
|
@@ -3058,6 +3078,7 @@ exports.getClusterBounds = getClusterBounds;
|
|
|
3058
3078
|
exports.getClusterChildren = getClusterChildren;
|
|
3059
3079
|
exports.getClusterExpansionZoom = getClusterExpansionZoom;
|
|
3060
3080
|
exports.getClusterLeaves = getClusterLeaves;
|
|
3081
|
+
exports.getGridNavigationIndex = getGridNavigationIndex;
|
|
3061
3082
|
exports.getHighlightStyle = getHighlightStyle;
|
|
3062
3083
|
exports.getSelectionStyle = getSelectionStyle;
|
|
3063
3084
|
exports.getSimplificationToleranceForZoom = getSimplificationToleranceForZoom;
|
package/dist/utils/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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 DynamicLODOptions, m as DynamicLODState, E as ExtrusionHeightOptions, F as FeatureGroup, n as FilterExpression, o as FilterOperator, p as FilterValue, G as GenerateLODOptions, q as GeoJSONFingerprint, r as GroupFeaturesOptions, K as KEYBOARD_CONTROLS, L as LODData, s as LODDataWithSimplification, t as LoadGeoJSONOptions, u as LoadGeoJSONResult, v as LotFillStyleOptions, w as LotOutlineStyleOptions, M as MARKER_PROTECTION_CLASS, N as NumberExpression, P as PaintProps, x as PaintPropsDiff, S as SimplificationStats, y as SimplificationThreshold, U as UnclusteredPointStyleOptions, V as ValidationResult, z as applyMarkerChildProtection, A as applyMarkerProtection, B as boundsToPolygon, H as calculateBounds, I as calculateCentroid, J as calculateZoomThresholds, O as clampLatitude, Q as combineBounds, R as countFeaturesByType, T as createCategoricalColorExpression, W as createCircleStyle, X as createClusterCirclePaint, Y as createClusterStyles, Z as createClusterTextLayout, _ as createContinuousColorExpression, $ as createDynamicLODManager, a0 as createExtrusionHeightExpression, a1 as createExtrusionStyle, a2 as createFillStyle, a3 as createGeoJSONFingerprint, a4 as createHeatmapStyle, a5 as createHoverExpression, a6 as createInteractiveExpression, a7 as createInteractiveStatusColorExpression, a8 as createLineStyle, a9 as createLotFillStyle, aa as createLotOutlineStyle, ab as createSelectionExpression, ac as createStatusColorExpression, ad as createZoomExpression, ae as decimalToDMS, af as deepEqual, ag as ensureValidCoordinates, ah as expandCluster, ai as expandClusterToBounds, aj as extendBounds, ak as filterByGeometryType, al as filterEqual, am as fingerprintEqual, an as formatArea, ao as formatBearing, ap as formatBounds, aq as formatCoordinates, ar as formatDistance, as as formatFeatureProperties, at as formatLabel, au as formatPitch, av as formatPropertyValue, aw as formatScale, ax as formatZoom, ay as generateBoundingPolygon, az as generateConvexHull, aA as generateFeatureCollectionDescription, aB as generateFeatureTable, aC as generateKeyboardControlsDescription, aD as generateLODData, aE as generateLODDataWithSimplification, aF as generateMapDescription, aG as generateMarkerList, aH as generateMarkersDescription, aI as generateMoveAnnouncement, aJ as geoJSONEqual, aK as getChangedPaintProps, aL as getClusterBounds, aM as getClusterChildren, aN as getClusterExpansionZoom, aO as getClusterLeaves, aP as
|
|
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 DynamicLODOptions, m as DynamicLODState, E as ExtrusionHeightOptions, F as FeatureGroup, n as FilterExpression, o as FilterOperator, p as FilterValue, G as GenerateLODOptions, q as GeoJSONFingerprint, r as GroupFeaturesOptions, K as KEYBOARD_CONTROLS, L as LODData, s as LODDataWithSimplification, t as LoadGeoJSONOptions, u as LoadGeoJSONResult, v as LotFillStyleOptions, w as LotOutlineStyleOptions, M as MARKER_PROTECTION_CLASS, N as NumberExpression, P as PaintProps, x as PaintPropsDiff, S as SimplificationStats, y as SimplificationThreshold, U as UnclusteredPointStyleOptions, V as ValidationResult, z as applyMarkerChildProtection, A as applyMarkerProtection, B as boundsToPolygon, H as calculateBounds, I as calculateCentroid, J as calculateZoomThresholds, O as clampLatitude, Q as combineBounds, R as countFeaturesByType, T as createCategoricalColorExpression, W as createCircleStyle, X as createClusterCirclePaint, Y as createClusterStyles, Z as createClusterTextLayout, _ as createContinuousColorExpression, $ as createDynamicLODManager, a0 as createExtrusionHeightExpression, a1 as createExtrusionStyle, a2 as createFillStyle, a3 as createGeoJSONFingerprint, a4 as createHeatmapStyle, a5 as createHoverExpression, a6 as createInteractiveExpression, a7 as createInteractiveStatusColorExpression, a8 as createLineStyle, a9 as createLotFillStyle, aa as createLotOutlineStyle, ab as createSelectionExpression, ac as createStatusColorExpression, ad as createZoomExpression, ae as decimalToDMS, af as deepEqual, ag as ensureValidCoordinates, ah as expandCluster, ai as expandClusterToBounds, aj as extendBounds, ak as filterByGeometryType, al as filterEqual, am as fingerprintEqual, an as formatArea, ao as formatBearing, ap as formatBounds, aq as formatCoordinates, ar as formatDistance, as as formatFeatureProperties, at as formatLabel, au as formatPitch, av as formatPropertyValue, aw as formatScale, ax as formatZoom, ay as generateBoundingPolygon, az as generateConvexHull, aA as generateFeatureCollectionDescription, aB as generateFeatureTable, aC as generateKeyboardControlsDescription, aD as generateLODData, aE as generateLODDataWithSimplification, aF as generateMapDescription, aG as generateMarkerList, aH as generateMarkersDescription, aI as generateMoveAnnouncement, aJ as geoJSONEqual, aK as getChangedPaintProps, aL as getClusterBounds, aM as getClusterChildren, aN as getClusterExpansionZoom, aO as getClusterLeaves, aP as getGridNavigationIndex, aQ as getHighlightStyle, aR as getSelectionStyle, aS as getSimplificationToleranceForZoom, aT as getSimplifiedFeaturesForZoom, aU as groupFeaturesByProperty, aV as isClusterFeature, aW as isValidBounds, aX as isValidLatitude, aY as isValidLongitude, aZ as loadGeoJSON, a_ as normalizeLongitude, a$ as paintPropsEqual, b0 as removeMarkerProtection, b1 as serializeFilter, b2 as simplifyFeature, b3 as simplifyFeatureCollection, b4 as simplifyFeatureCollectionWithStats, b5 as simplifyPolygon, b6 as validateBoundsArray, b7 as validateCoordinates, b8 as validateGeoJSON, b9 as zoomToScale } from '../marker-5KqXgC2u.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
4
|
import '../generator-CU9ZTZ1v.cjs';
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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 DynamicLODOptions, m as DynamicLODState, E as ExtrusionHeightOptions, F as FeatureGroup, n as FilterExpression, o as FilterOperator, p as FilterValue, G as GenerateLODOptions, q as GeoJSONFingerprint, r as GroupFeaturesOptions, K as KEYBOARD_CONTROLS, L as LODData, s as LODDataWithSimplification, t as LoadGeoJSONOptions, u as LoadGeoJSONResult, v as LotFillStyleOptions, w as LotOutlineStyleOptions, M as MARKER_PROTECTION_CLASS, N as NumberExpression, P as PaintProps, x as PaintPropsDiff, S as SimplificationStats, y as SimplificationThreshold, U as UnclusteredPointStyleOptions, V as ValidationResult, z as applyMarkerChildProtection, A as applyMarkerProtection, B as boundsToPolygon, H as calculateBounds, I as calculateCentroid, J as calculateZoomThresholds, O as clampLatitude, Q as combineBounds, R as countFeaturesByType, T as createCategoricalColorExpression, W as createCircleStyle, X as createClusterCirclePaint, Y as createClusterStyles, Z as createClusterTextLayout, _ as createContinuousColorExpression, $ as createDynamicLODManager, a0 as createExtrusionHeightExpression, a1 as createExtrusionStyle, a2 as createFillStyle, a3 as createGeoJSONFingerprint, a4 as createHeatmapStyle, a5 as createHoverExpression, a6 as createInteractiveExpression, a7 as createInteractiveStatusColorExpression, a8 as createLineStyle, a9 as createLotFillStyle, aa as createLotOutlineStyle, ab as createSelectionExpression, ac as createStatusColorExpression, ad as createZoomExpression, ae as decimalToDMS, af as deepEqual, ag as ensureValidCoordinates, ah as expandCluster, ai as expandClusterToBounds, aj as extendBounds, ak as filterByGeometryType, al as filterEqual, am as fingerprintEqual, an as formatArea, ao as formatBearing, ap as formatBounds, aq as formatCoordinates, ar as formatDistance, as as formatFeatureProperties, at as formatLabel, au as formatPitch, av as formatPropertyValue, aw as formatScale, ax as formatZoom, ay as generateBoundingPolygon, az as generateConvexHull, aA as generateFeatureCollectionDescription, aB as generateFeatureTable, aC as generateKeyboardControlsDescription, aD as generateLODData, aE as generateLODDataWithSimplification, aF as generateMapDescription, aG as generateMarkerList, aH as generateMarkersDescription, aI as generateMoveAnnouncement, aJ as geoJSONEqual, aK as getChangedPaintProps, aL as getClusterBounds, aM as getClusterChildren, aN as getClusterExpansionZoom, aO as getClusterLeaves, aP as
|
|
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 DynamicLODOptions, m as DynamicLODState, E as ExtrusionHeightOptions, F as FeatureGroup, n as FilterExpression, o as FilterOperator, p as FilterValue, G as GenerateLODOptions, q as GeoJSONFingerprint, r as GroupFeaturesOptions, K as KEYBOARD_CONTROLS, L as LODData, s as LODDataWithSimplification, t as LoadGeoJSONOptions, u as LoadGeoJSONResult, v as LotFillStyleOptions, w as LotOutlineStyleOptions, M as MARKER_PROTECTION_CLASS, N as NumberExpression, P as PaintProps, x as PaintPropsDiff, S as SimplificationStats, y as SimplificationThreshold, U as UnclusteredPointStyleOptions, V as ValidationResult, z as applyMarkerChildProtection, A as applyMarkerProtection, B as boundsToPolygon, H as calculateBounds, I as calculateCentroid, J as calculateZoomThresholds, O as clampLatitude, Q as combineBounds, R as countFeaturesByType, T as createCategoricalColorExpression, W as createCircleStyle, X as createClusterCirclePaint, Y as createClusterStyles, Z as createClusterTextLayout, _ as createContinuousColorExpression, $ as createDynamicLODManager, a0 as createExtrusionHeightExpression, a1 as createExtrusionStyle, a2 as createFillStyle, a3 as createGeoJSONFingerprint, a4 as createHeatmapStyle, a5 as createHoverExpression, a6 as createInteractiveExpression, a7 as createInteractiveStatusColorExpression, a8 as createLineStyle, a9 as createLotFillStyle, aa as createLotOutlineStyle, ab as createSelectionExpression, ac as createStatusColorExpression, ad as createZoomExpression, ae as decimalToDMS, af as deepEqual, ag as ensureValidCoordinates, ah as expandCluster, ai as expandClusterToBounds, aj as extendBounds, ak as filterByGeometryType, al as filterEqual, am as fingerprintEqual, an as formatArea, ao as formatBearing, ap as formatBounds, aq as formatCoordinates, ar as formatDistance, as as formatFeatureProperties, at as formatLabel, au as formatPitch, av as formatPropertyValue, aw as formatScale, ax as formatZoom, ay as generateBoundingPolygon, az as generateConvexHull, aA as generateFeatureCollectionDescription, aB as generateFeatureTable, aC as generateKeyboardControlsDescription, aD as generateLODData, aE as generateLODDataWithSimplification, aF as generateMapDescription, aG as generateMarkerList, aH as generateMarkersDescription, aI as generateMoveAnnouncement, aJ as geoJSONEqual, aK as getChangedPaintProps, aL as getClusterBounds, aM as getClusterChildren, aN as getClusterExpansionZoom, aO as getClusterLeaves, aP as getGridNavigationIndex, aQ as getHighlightStyle, aR as getSelectionStyle, aS as getSimplificationToleranceForZoom, aT as getSimplifiedFeaturesForZoom, aU as groupFeaturesByProperty, aV as isClusterFeature, aW as isValidBounds, aX as isValidLatitude, aY as isValidLongitude, aZ as loadGeoJSON, a_ as normalizeLongitude, a$ as paintPropsEqual, b0 as removeMarkerProtection, b1 as serializeFilter, b2 as simplifyFeature, b3 as simplifyFeatureCollection, b4 as simplifyFeatureCollectionWithStats, b5 as simplifyPolygon, b6 as validateBoundsArray, b7 as validateCoordinates, b8 as validateGeoJSON, b9 as zoomToScale } from '../marker-Dqz53Ym7.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
4
|
import '../generator-CU9ZTZ1v.js';
|
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, getHighlightStyle, getSelectionStyle, getSimplificationToleranceForZoom, getSimplifiedFeaturesForZoom, groupFeaturesByProperty, isClusterFeature, isValidBounds, isValidLatitude, isValidLongitude, loadGeoJSON, normalizeLongitude, normalizePadding, paintPropsEqual, panToFitPopup, prefersReducedMotion, queryByBounds, queryByBoundsWithStats, queryRTreeByBounds, queryRTreeByBoundsWithStats, removeMarkerProtection, serializeFilter, simplifyFeature, simplifyFeatureCollection, simplifyFeatureCollectionWithStats, simplifyPolygon, validateBoundsArray, validateCoordinates, validateGeoJSON, zoomToScale } from '../chunk-
|
|
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, serializeFilter, simplifyFeature, simplifyFeatureCollection, simplifyFeatureCollectionWithStats, simplifyPolygon, validateBoundsArray, validateCoordinates, validateGeoJSON, zoomToScale } from '../chunk-BWZMIFZI.js';
|
|
2
2
|
import '../chunk-ZGUACUEF.js';
|
package/package.json
CHANGED
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
padding: 0.5rem 0.75rem;
|
|
30
30
|
cursor: pointer;
|
|
31
31
|
border-radius: 0.375rem;
|
|
32
|
-
transition: background-color 150ms ease;
|
|
33
32
|
}
|
|
34
33
|
|
|
34
|
+
/* Hover colours snap: a colour fade under a moving pointer reads as flicker */
|
|
35
35
|
.classic-layer-category-header:hover {
|
|
36
36
|
background-color: hsl(var(--muted));
|
|
37
37
|
}
|
|
@@ -52,7 +52,6 @@
|
|
|
52
52
|
gap: 0.5rem;
|
|
53
53
|
padding: 0.5rem 0.75rem;
|
|
54
54
|
border-radius: 0.375rem;
|
|
55
|
-
transition: background-color 150ms ease;
|
|
56
55
|
}
|
|
57
56
|
|
|
58
57
|
.classic-layer-item:hover {
|
|
@@ -203,9 +202,6 @@
|
|
|
203
202
|
background: transparent;
|
|
204
203
|
color: hsl(var(--muted-foreground));
|
|
205
204
|
cursor: pointer;
|
|
206
|
-
transition:
|
|
207
|
-
background-color 150ms ease,
|
|
208
|
-
color 150ms ease;
|
|
209
205
|
}
|
|
210
206
|
|
|
211
207
|
.classic-layer-tab:hover {
|
package/src/styles/popup.css
CHANGED
|
@@ -65,9 +65,7 @@
|
|
|
65
65
|
right: 0.5rem !important;
|
|
66
66
|
top: 0.5rem !important;
|
|
67
67
|
background: transparent !important;
|
|
68
|
-
transition:
|
|
69
|
-
background-color 150ms ease,
|
|
70
|
-
color 150ms ease !important;
|
|
68
|
+
/* No colour transition: hover colours snap */
|
|
71
69
|
cursor: pointer !important;
|
|
72
70
|
}
|
|
73
71
|
|