@octostar/map-component 0.2.11 → 0.2.13
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/index.cjs +1515 -819
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1516 -820
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -0
- package/dist/types/components/cursor-coordinates-overlay.d.ts +13 -0
- package/dist/types/components/cursor-coordinates-overlay.d.ts.map +1 -0
- package/dist/types/components/debug-sidebar.d.ts.map +1 -1
- package/dist/types/components/map-drop-zone.d.ts +7 -1
- package/dist/types/components/map-drop-zone.d.ts.map +1 -1
- package/dist/types/components/map-editor-canvas.d.ts.map +1 -1
- package/dist/types/lib/deep-clone.d.ts +22 -0
- package/dist/types/lib/deep-clone.d.ts.map +1 -0
- package/dist/types/lib/draw-render-gate.d.ts +10 -0
- package/dist/types/lib/draw-render-gate.d.ts.map +1 -0
- package/dist/types/lib/geojson-crs.d.ts +10 -0
- package/dist/types/lib/geojson-crs.d.ts.map +1 -0
- package/dist/types/lib/geojson-reproject.d.ts +15 -0
- package/dist/types/lib/geojson-reproject.d.ts.map +1 -0
- package/dist/types/lib/geojson-serialize.d.ts +21 -0
- package/dist/types/lib/geojson-serialize.d.ts.map +1 -0
- package/dist/types/lib/geometry-equals.d.ts +15 -0
- package/dist/types/lib/geometry-equals.d.ts.map +1 -0
- package/dist/types/lib/ingest-client.d.ts +25 -0
- package/dist/types/lib/ingest-client.d.ts.map +1 -0
- package/dist/types/lib/ingest-pipeline.d.ts +74 -0
- package/dist/types/lib/ingest-pipeline.d.ts.map +1 -0
- package/dist/types/lib/ingest.worker.d.ts +2 -0
- package/dist/types/lib/ingest.worker.d.ts.map +1 -0
- package/dist/types/lib/map-editor-api.d.ts +5 -0
- package/dist/types/lib/map-editor-api.d.ts.map +1 -1
- package/dist/types/lib/perf-log.d.ts +3 -0
- package/dist/types/lib/perf-log.d.ts.map +1 -0
- package/dist/types/lib/raf-coalescer.d.ts +29 -0
- package/dist/types/lib/raf-coalescer.d.ts.map +1 -0
- package/dist/types/lib/selection-diff.d.ts +91 -0
- package/dist/types/lib/selection-diff.d.ts.map +1 -0
- package/dist/types/lib/selection-hit-test.d.ts +55 -0
- package/dist/types/lib/selection-hit-test.d.ts.map +1 -0
- package/dist/types/lib/selection-spatial-index.d.ts +63 -0
- package/dist/types/lib/selection-spatial-index.d.ts.map +1 -0
- package/dist/types/lib/temporal-ingest.d.ts +53 -0
- package/dist/types/lib/temporal-ingest.d.ts.map +1 -0
- package/dist/types/lib/temporal-normalize.d.ts +11 -0
- package/dist/types/lib/temporal-normalize.d.ts.map +1 -0
- package/dist/types/lib/timeline-diff.d.ts +43 -0
- package/dist/types/lib/timeline-diff.d.ts.map +1 -0
- package/dist/types/lib/timeline-store.d.ts +1 -9
- package/dist/types/lib/timeline-store.d.ts.map +1 -1
- package/package.json +5 -4
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import Flatbush from 'flatbush';
|
|
2
|
+
/**
|
|
3
|
+
* Static packed R-tree (flatbush) over a feature array's bounding boxes, so
|
|
4
|
+
* a selection gesture queries O(log n + k) candidates instead of scanning —
|
|
5
|
+
* and re-deriving the bbox of — every feature per gesture.
|
|
6
|
+
*
|
|
7
|
+
* Bounds semantics are shared with the hit-test prefilter and are exactly
|
|
8
|
+
* conservative w.r.t. the turf predicates: raw coordinates, no ±360
|
|
9
|
+
* antimeridian normalization (deliberately unlike `visible-feature-count.ts`,
|
|
10
|
+
* which wants geographic truth for counting). NaN coordinates never extend
|
|
11
|
+
* bounds; features with no finite bounds (empty coordinates, all-NaN,
|
|
12
|
+
* GeometryCollection) are omitted from the tree — exactly the features the
|
|
13
|
+
* linear prefilter could never pass.
|
|
14
|
+
*
|
|
15
|
+
* Invalidation is array identity: read-only layer mutations are copy-on-write
|
|
16
|
+
* (`readOnlyFeatures.current.set(layerId, newArray)` — see
|
|
17
|
+
* read-only-feature-index.ts), so a WeakMap keyed by the array itself caches
|
|
18
|
+
* one index per snapshot and garbage-collects with dropped layers. Draw
|
|
19
|
+
* features get no index: `draw.getAll()` returns a fresh array per call, so
|
|
20
|
+
* an index would never cache-hit (and the draw set is small).
|
|
21
|
+
*/
|
|
22
|
+
export interface Bounds {
|
|
23
|
+
minLng: number;
|
|
24
|
+
minLat: number;
|
|
25
|
+
maxLng: number;
|
|
26
|
+
maxLat: number;
|
|
27
|
+
}
|
|
28
|
+
/** Recursive min/max walk; positions are leaf arrays whose first element is
|
|
29
|
+
* a number. NaN coordinates fail every comparison and simply don't extend
|
|
30
|
+
* the bounds. No spread anywhere — rings can exceed 100k positions. */
|
|
31
|
+
export declare function extendBounds(bounds: Bounds, coords: unknown): void;
|
|
32
|
+
export declare function computeBounds(coords: unknown): Bounds;
|
|
33
|
+
/** Strict inequalities: touching bboxes fall through to the exact test.
|
|
34
|
+
* Flatbush's inclusive search overlap is the exact complement. */
|
|
35
|
+
export declare function boundsDisjoint(a: Bounds, b: Bounds): boolean;
|
|
36
|
+
export declare function pointInBounds(lng: number, lat: number, b: Bounds): boolean;
|
|
37
|
+
export interface GroupSpatialIndex {
|
|
38
|
+
/** null when no feature produced finite bounds (flatbush needs numItems > 0). */
|
|
39
|
+
tree: Flatbush | null;
|
|
40
|
+
/** Tree item i → position in the original feature array (ascending by construction). */
|
|
41
|
+
positions: number[];
|
|
42
|
+
/** features.length at build time — defensive mismatch check before use. */
|
|
43
|
+
size: number;
|
|
44
|
+
}
|
|
45
|
+
export declare function buildGroupSpatialIndex(features: readonly GeoJSON.Feature[]): GroupSpatialIndex;
|
|
46
|
+
/**
|
|
47
|
+
* WeakMap-cached per array identity (the copy-on-write invalidation
|
|
48
|
+
* contract). Returns undefined when the build throws (cyclic coordinates, a
|
|
49
|
+
* throwing getter) — the caller falls back to the linear scan. The failure
|
|
50
|
+
* is cached too, so a pathological layer pays the failed bounds walk once
|
|
51
|
+
* per snapshot, not once per gesture. Deliberately NOT a null-tree sentinel:
|
|
52
|
+
* `tree: null` means "no indexable features" and yields zero candidates,
|
|
53
|
+
* which would silently make the whole group unselectable.
|
|
54
|
+
*/
|
|
55
|
+
export declare function getGroupSpatialIndex(features: readonly GeoJSON.Feature[]): GroupSpatialIndex | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Candidate positions (original-array order, ascending) whose boxes overlap
|
|
58
|
+
* `bounds` inclusively. Ascending original positions ARE within-group
|
|
59
|
+
* encounter order, which keeps the hit-test's result order byte-identical
|
|
60
|
+
* to the linear scan it replaces.
|
|
61
|
+
*/
|
|
62
|
+
export declare function queryCandidatePositions(index: GroupSpatialIndex, bounds: Bounds): number[];
|
|
63
|
+
//# sourceMappingURL=selection-spatial-index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selection-spatial-index.d.ts","sourceRoot":"","sources":["../../../client/src/lib/selection-spatial-index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAIhC;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,MAAM,WAAW,MAAM;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;wEAEwE;AACxE,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI,CAYlE;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,CAIrD;AAED;mEACmE;AACnE,wBAAgB,cAAc,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAE5D;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAE1E;AAED,MAAM,WAAW,iBAAiB;IAChC,iFAAiF;IACjF,IAAI,EAAE,QAAQ,GAAG,IAAI,CAAC;IACtB,wFAAwF;IACxF,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,2EAA2E;IAC3E,IAAI,EAAE,MAAM,CAAC;CACd;AAED,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,SAAS,OAAO,CAAC,OAAO,EAAE,GAAG,iBAAiB,CA2B9F;AAKD;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,SAAS,OAAO,CAAC,OAAO,EAAE,GACnC,iBAAiB,GAAG,SAAS,CAa/B;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAM1F"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export interface PreparedLayerFeatures {
|
|
2
|
+
/** Always a fresh array — array identity keys cache invalidation (see selection-spatial-index.ts). */
|
|
3
|
+
features: GeoJSON.Feature[];
|
|
4
|
+
/** String id per feature, same order as `features`. */
|
|
5
|
+
featureIds: string[];
|
|
6
|
+
/** True when at least one feature carries a parseable start or end date. */
|
|
7
|
+
hasTemporal: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Assign string ids and normalize temporal properties for features headed
|
|
11
|
+
* into a read-only layer store.
|
|
12
|
+
*
|
|
13
|
+
* Contract (pinned by tests, byte-compatible with the former inline loops):
|
|
14
|
+
* - id: truthy ids are String()-coerced; falsy ids (missing, '', 0) get a
|
|
15
|
+
* UUID — the `uuid-fallback` quirk shared with the ingest pipeline.
|
|
16
|
+
* - features with no temporal property keys are shallow-copied with the id
|
|
17
|
+
* only; their `properties` object is passed through by reference.
|
|
18
|
+
* - features with temporal keys are rewritten with ISO-string-or-null
|
|
19
|
+
* `startDate`/`endDate` — even when every candidate value fails to parse
|
|
20
|
+
* (garbage dates yield explicit nulls, and do not set `hasTemporal`).
|
|
21
|
+
*
|
|
22
|
+
* Fast path: a feature that already carries a truthy string id and no
|
|
23
|
+
* temporal keys needs neither the id rewrite nor the property rewrite, so it
|
|
24
|
+
* is passed through by reference instead of shallow-copied — at 48k features
|
|
25
|
+
* this removes the dominant allocation cost of a host-API push. The shallow
|
|
26
|
+
* copy never protected callers anyway (`properties`/`geometry` were always
|
|
27
|
+
* shared by reference); the standing contract stays: don't mutate features
|
|
28
|
+
* after handing them to a host API. That now covers `id` too — the one field
|
|
29
|
+
* the old copy did shield: a host that reassigns `f.id` after handover
|
|
30
|
+
* desyncs the stored feature from `layer.featureIds` and from undo
|
|
31
|
+
* snapshots, which hold these same references. The RETURNED ARRAY is still
|
|
32
|
+
* always fresh, so array-identity cache invalidation is unaffected.
|
|
33
|
+
*/
|
|
34
|
+
export declare function prepareFeaturesForLayer(input: readonly GeoJSON.Feature[], caller?: string): PreparedLayerFeatures;
|
|
35
|
+
export interface TimelineScanEntry {
|
|
36
|
+
id: string;
|
|
37
|
+
startDate: Date | null;
|
|
38
|
+
endDate: Date | null;
|
|
39
|
+
layerId: string;
|
|
40
|
+
}
|
|
41
|
+
export interface TimelineScanOutput {
|
|
42
|
+
temporal: TimelineScanEntry[];
|
|
43
|
+
untimedIds: string[];
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Classify features for the timeline store: parseable start/end dates land in
|
|
47
|
+
* `out.temporal` (with `resolveLayerId(featureId)` attached), everything else
|
|
48
|
+
* — no temporal keys, or nothing parseable — lands in `out.untimedIds`.
|
|
49
|
+
* Accumulates into `out` so callers can scan several sources into one result.
|
|
50
|
+
* Returns true when this call contributed at least one temporal entry.
|
|
51
|
+
*/
|
|
52
|
+
export declare function scanTemporalFeatures(features: readonly GeoJSON.Feature[], resolveLayerId: (featureId: string) => string, out: TimelineScanOutput): boolean;
|
|
53
|
+
//# sourceMappingURL=temporal-ingest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"temporal-ingest.d.ts","sourceRoot":"","sources":["../../../client/src/lib/temporal-ingest.ts"],"names":[],"mappings":"AAUA,MAAM,WAAW,qBAAqB;IACpC,sGAAsG;IACtG,QAAQ,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC;IAC5B,uDAAuD;IACvD,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,4EAA4E;IAC5E,WAAW,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,SAAS,OAAO,CAAC,OAAO,EAAE,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,qBAAqB,CAuDjH;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IACvB,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,SAAS,OAAO,CAAC,OAAO,EAAE,EACpC,cAAc,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,EAC7C,GAAG,EAAE,kBAAkB,GACtB,OAAO,CAuBT"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare function parseDate(value: unknown): Date | null;
|
|
2
|
+
/**
|
|
3
|
+
* Quick check for temporal property values without expensive Date parsing.
|
|
4
|
+
* Use this to short-circuit before calling normalizeTemporalProperties.
|
|
5
|
+
*/
|
|
6
|
+
export declare function hasAnyTemporalValue(properties: Record<string, unknown>): boolean;
|
|
7
|
+
export declare function normalizeTemporalProperties(properties: Record<string, unknown>): {
|
|
8
|
+
startDate: Date | null;
|
|
9
|
+
endDate: Date | null;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=temporal-normalize.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"temporal-normalize.d.ts","sourceRoot":"","sources":["../../../client/src/lib/temporal-normalize.ts"],"names":[],"mappings":"AAGA,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,GAAG,IAAI,CAQrD;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAShF;AAED,wBAAgB,2BAA2B,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;IAChF,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IACvB,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;CACtB,CAqBA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { GeoJSONSourceDiff } from 'maplibre-gl';
|
|
2
|
+
import { type SelectionPaintCache, type UpdatableGeoJSONSource } from './selection-diff';
|
|
3
|
+
/**
|
|
4
|
+
* Minimal GeoJSON source diff for timeline-visibility changes.
|
|
5
|
+
*
|
|
6
|
+
* Timeline filtering never adds or removes features from the source — the
|
|
7
|
+
* full sync paints hidden features with `stroke-opacity: 0`,
|
|
8
|
+
* `fill-opacity: 0`, `isTimelineHidden: 1` (labels derive `text-opacity`
|
|
9
|
+
* from `stroke-opacity`, radius/stroke-width paint cases read
|
|
10
|
+
* `isTimelineHidden`). So a scrub/playback tick only needs to flip those
|
|
11
|
+
* three properties on the features whose hidden-state toggled, via
|
|
12
|
+
* `updateData`. The scan below is still O(present-features) per tick (a Set
|
|
13
|
+
* iteration + lookups); only the diff handed to the GPU is O(toggled) — the
|
|
14
|
+
* win over the full rebuild is skipping restyle + setData, not the scan. If
|
|
15
|
+
* the scan ever profiles hot, it can be driven from
|
|
16
|
+
* `hiddenIds ∪ appliedHiddenIds` (the caller already receives `hiddenIds`).
|
|
17
|
+
*/
|
|
18
|
+
export type TimelinePaintCache = Pick<SelectionPaintCache, 'presentIds' | 'appliedHiddenIds' | 'visibleStrokeOpacityById' | 'visibleFillOpacityById'>;
|
|
19
|
+
/**
|
|
20
|
+
* Diff between the painted hidden set and the next visible set (null means
|
|
21
|
+
* no filter — everything visible). Show entries restore the recorded
|
|
22
|
+
* as-if-visible opacities, so features hidden for other reasons (3D-only)
|
|
23
|
+
* round-trip back to 0. Returns the diff (null when nothing toggles) and
|
|
24
|
+
* the full next hidden set for the caller to store on success.
|
|
25
|
+
*/
|
|
26
|
+
export declare function buildTimelineVisibilityDiff(cache: TimelinePaintCache, nextVisibleSet: ReadonlySet<string> | null): {
|
|
27
|
+
diff: GeoJSONSourceDiff | null;
|
|
28
|
+
nextHiddenIds: Set<string>;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Apply a timeline-visibility change to the source as an updateData diff.
|
|
32
|
+
* Returns false when the caller must fall back to a full sync — no cache,
|
|
33
|
+
* non-updatable cache (duplicate painted ids), missing source, or a
|
|
34
|
+
* synchronous updateData throw (the cache is then left untouched; the full
|
|
35
|
+
* sync rebuilds it). Async updateData failures are pre-empted by the
|
|
36
|
+
* `updatable` gate, exactly like the selection fast path. On success the
|
|
37
|
+
* cache's applied hidden set is advanced to the painted state.
|
|
38
|
+
*/
|
|
39
|
+
export declare function applyTimelineFastPath(cache: SelectionPaintCache | null, nextVisibleSet: ReadonlySet<string> | null, source: UpdatableGeoJSONSource | null | undefined): {
|
|
40
|
+
applied: boolean;
|
|
41
|
+
toggled: number;
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=timeline-diff.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline-diff.d.ts","sourceRoot":"","sources":["../../../client/src/lib/timeline-diff.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,OAAO,EAGL,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC5B,MAAM,kBAAkB,CAAC;AAE1B;;;;;;;;;;;;;;GAcG;AAEH,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,mBAAmB,EACnB,YAAY,GAAG,kBAAkB,GAAG,0BAA0B,GAAG,wBAAwB,CAC1F,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,kBAAkB,EACzB,cAAc,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,IAAI,GACzC;IAAE,IAAI,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAAC,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAAE,CA4BhE;AAED;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,mBAAmB,GAAG,IAAI,EACjC,cAAc,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,IAAI,EAC1C,MAAM,EAAE,sBAAsB,GAAG,IAAI,GAAG,SAAS,GAChD;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAYvC"}
|
|
@@ -29,15 +29,7 @@ export interface TimelineState {
|
|
|
29
29
|
advancePlayhead: () => boolean;
|
|
30
30
|
reset: () => void;
|
|
31
31
|
}
|
|
32
|
-
|
|
33
|
-
* Quick check for temporal property values without expensive Date parsing.
|
|
34
|
-
* Use this to short-circuit before calling normalizeTemporalProperties.
|
|
35
|
-
*/
|
|
36
|
-
export declare function hasAnyTemporalValue(properties: Record<string, unknown>): boolean;
|
|
37
|
-
export declare function normalizeTemporalProperties(properties: Record<string, unknown>): {
|
|
38
|
-
startDate: Date | null;
|
|
39
|
-
endDate: Date | null;
|
|
40
|
-
};
|
|
32
|
+
export { hasAnyTemporalValue, normalizeTemporalProperties } from './temporal-normalize';
|
|
41
33
|
export declare function isFeatureInRange(feature: TemporalFeature, rangeStart: Date | null, rangeEnd: Date | null): boolean;
|
|
42
34
|
export type TimelineStoreApi = StoreApi<TimelineState>;
|
|
43
35
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|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AE,OAAO,KAAK,IAAI,CAAC;IACvC,gBAAgB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,eAAe,EAAE,MAAM,OAAO,CAAC;IAC/B,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED,OAAO,EAAE,mBAAmB,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AAExF,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,eAAe,EACxB,UAAU,EAAE,IAAI,GAAG,IAAI,EACvB,QAAQ,EAAE,IAAI,GAAG,IAAI,GACpB,OAAO,CAQT;AA2LD,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAC;AAEvD;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,IAAI,gBAAgB,CAEtD;AAED;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,kDAA+C,CAAC;AAEjF;;;GAGG;AACH,wBAAgB,mBAAmB,IAAI,gBAAgB,CAMtD;AAID;;;;GAIG;AACH,wBAAgB,gBAAgB,IAAI,aAAa,CAAC;AAClD,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,CAAC,GAAG,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octostar/map-component",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"description": "MapLibre-based map editor component",
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
"clsx": "^2.1.1",
|
|
57
57
|
"date-fns": "^3.6.0",
|
|
58
58
|
"dayjs": "^1.11.19",
|
|
59
|
+
"flatbush": "^3.3.1",
|
|
59
60
|
"lucide-react": "^0.453.0",
|
|
60
61
|
"maplibre-gl": "^5.14.0",
|
|
61
62
|
"proj4": "^2.20.2",
|
|
@@ -99,6 +100,8 @@
|
|
|
99
100
|
"@tailwindcss/typography": "^0.5.15",
|
|
100
101
|
"@tailwindcss/vite": "^4.1.3",
|
|
101
102
|
"@tanstack/react-query": "^5.60.5",
|
|
103
|
+
"@testing-library/dom": "^10.4.0",
|
|
104
|
+
"@testing-library/react": "^16.1.0",
|
|
102
105
|
"@types/connect-pg-simple": "^7.0.3",
|
|
103
106
|
"@types/express": "4.17.21",
|
|
104
107
|
"@types/express-session": "^1.18.0",
|
|
@@ -124,6 +127,7 @@
|
|
|
124
127
|
"express-session": "^1.18.1",
|
|
125
128
|
"framer-motion": "^11.13.1",
|
|
126
129
|
"input-otp": "^1.4.2",
|
|
130
|
+
"jsdom": "^25.0.1",
|
|
127
131
|
"memorystore": "^1.6.7",
|
|
128
132
|
"nanoid": "^5.0.9",
|
|
129
133
|
"next-themes": "^0.4.6",
|
|
@@ -147,9 +151,6 @@
|
|
|
147
151
|
"vaul": "^1.1.2",
|
|
148
152
|
"vite": "^5.4.20",
|
|
149
153
|
"vitest": "^2.1.9",
|
|
150
|
-
"@testing-library/dom": "^10.4.0",
|
|
151
|
-
"@testing-library/react": "^16.1.0",
|
|
152
|
-
"jsdom": "^25.0.1",
|
|
153
154
|
"wouter": "^3.3.5",
|
|
154
155
|
"ws": "^8.18.0",
|
|
155
156
|
"zod": "^3.24.2",
|