@webquark/core 1.1.0-dev.2 → 1.1.0-dev.3
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/cjs/{Leaflet.GoogleMutant-BCs2oiE0.js → Leaflet.GoogleMutant-i4bYl6qy.js} +1 -2
- package/dist/cjs/{action.props-hpMla743.js → action.props-CkEZpMY6.js} +1 -1
- package/dist/cjs/{chevron-up-B76247zT.js → chevron-up-Dysp_9UJ.js} +2 -2
- package/dist/cjs/{index-Vzfd3Ljg.js → index-B7ex88C2.js} +61 -20
- package/dist/cjs/leaflet-maplibre-gl-BJKExsns.js +1031 -0
- package/dist/{esm/leaflet-src-BeeM-7Ku.js → cjs/leaflet-src-mrRg-Srs.js} +38 -7
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/q-alert.cjs.entry.js +1 -1
- package/dist/cjs/q-avatar.cjs.entry.js +1 -1
- package/dist/cjs/q-button_2.cjs.entry.js +2 -2
- package/dist/cjs/q-card.cjs.entry.js +1 -1
- package/dist/cjs/q-carousel.cjs.entry.js +1 -1
- package/dist/cjs/q-chip.cjs.entry.js +2 -2
- package/dist/cjs/q-conversation-bubble.cjs.entry.js +1 -1
- package/dist/cjs/q-data-table.cjs.entry.js +2 -2
- package/dist/cjs/q-dialog.cjs.entry.js +1 -1
- package/dist/cjs/q-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/q-form.cjs.entry.js +1 -1
- package/dist/cjs/q-icon.cjs.entry.js +1 -1
- package/dist/cjs/q-input_2.cjs.entry.js +2 -2
- package/dist/cjs/q-link.cjs.entry.js +2 -2
- package/dist/cjs/q-map.cjs.entry.js +184 -122
- package/dist/cjs/q-navbar.cjs.entry.js +1 -1
- package/dist/cjs/q-pagination.cjs.entry.js +1 -1
- package/dist/cjs/q-panel.cjs.entry.js +1 -1
- package/dist/cjs/q-quantity-selector.cjs.entry.js +1 -1
- package/dist/cjs/q-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/q-reel.cjs.entry.js +1 -1
- package/dist/cjs/q-scrollable.cjs.entry.js +1 -1
- package/dist/cjs/q-sidepanel.cjs.entry.js +18 -15
- package/dist/cjs/q-step-diagram-item.cjs.entry.js +1 -1
- package/dist/cjs/q-step-diagram.cjs.entry.js +1 -1
- package/dist/cjs/q-syntax-box.cjs.entry.js +4 -4
- package/dist/cjs/q-tabs.cjs.entry.js +1 -1
- package/dist/cjs/q-textarea.cjs.entry.js +1 -1
- package/dist/cjs/q-thumbnail.cjs.entry.js +1 -1
- package/dist/cjs/q-toast.cjs.entry.js +1 -1
- package/dist/cjs/q-toggle.cjs.entry.js +1 -1
- package/dist/cjs/q-toolbar.cjs.entry.js +1 -1
- package/dist/cjs/webquark.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/inputs/input/input.css +13 -0
- package/dist/collection/components/layout/sidepanel/internals/nav-items.js +5 -2
- package/dist/collection/components/layout/sidepanel/sidepanel.css +23 -0
- package/dist/collection/components/layout/sidepanel/sidepanel.js +1 -0
- package/dist/components/index.js +1 -1
- package/dist/components/{p-BnmIFx4N.js → p-7oXL29Gu.js} +1 -1
- package/dist/components/{p-DAl7U6Ms.js → p-BygmcFxM.js} +1 -1
- package/dist/components/{p-B6NJEaqd.js → p-C8fq-feq.js} +1 -1
- package/dist/components/p-CFuqfXuv.js +9 -0
- package/dist/components/{p-Dnud2v8F.js → p-CQofbR9q.js} +1 -1
- package/dist/components/p-CVtof65h.js +1 -0
- package/dist/components/{p-DcsB8P_Y.js → p-Czf3kP0S.js} +1 -1
- package/dist/components/p-DYMWBqU1.js +5 -0
- package/dist/components/{p-DH-PVHhr.js → p-DuX-9GOi.js} +1 -1
- package/dist/components/{p-B6g9Pj3f.js → p-I81wUKud.js} +1 -1
- package/dist/components/{p-CDktnDug.js → p-g9vOVxQ4.js} +2 -2
- package/dist/components/{p-C7yQ3tON.js → p-vv3X99Ji.js} +1 -1
- package/dist/components/q-alert.js +1 -1
- package/dist/components/q-avatar.js +1 -1
- package/dist/components/q-button.js +1 -1
- package/dist/components/q-card.js +1 -1
- package/dist/components/q-carousel.js +1 -1
- package/dist/components/q-chip.js +1 -1
- package/dist/components/q-conversation-bubble.js +1 -1
- package/dist/components/q-data-table.js +1 -1
- package/dist/components/q-dialog.js +1 -1
- package/dist/components/q-dropdown.js +1 -1
- package/dist/components/q-form.js +1 -1
- package/dist/components/q-icon.js +1 -1
- package/dist/components/q-input.js +1 -1
- package/dist/components/q-link.js +1 -1
- package/dist/components/q-map.js +1 -1
- package/dist/components/q-navbar.js +1 -1
- package/dist/components/q-pagination.js +1 -1
- package/dist/components/q-panel.js +1 -1
- package/dist/components/q-progress.js +1 -1
- package/dist/components/q-quantity-selector.js +1 -1
- package/dist/components/q-radio-group.js +1 -1
- package/dist/components/q-reel.js +1 -1
- package/dist/components/q-scrollable.js +1 -1
- package/dist/components/q-sidepanel.js +5 -5
- package/dist/components/q-step-diagram-item.js +1 -1
- package/dist/components/q-step-diagram.js +1 -1
- package/dist/components/q-syntax-box.js +4 -4
- package/dist/components/q-tabs.js +1 -1
- package/dist/components/q-textarea.js +1 -1
- package/dist/components/q-thumbnail.js +1 -1
- package/dist/components/q-toast.js +1 -1
- package/dist/components/q-toggle.js +1 -1
- package/dist/components/q-toolbar.js +1 -1
- package/dist/components/q-tooltip.js +1 -1
- package/dist/esm/{Leaflet.GoogleMutant-BlvymWLE.js → Leaflet.GoogleMutant-MpxOb4Jm.js} +1 -2
- package/dist/esm/{action.props-BJWXy1Ec.js → action.props-CJoxGHR7.js} +1 -1
- package/dist/esm/{chevron-up-CDktnDug.js → chevron-up-g9vOVxQ4.js} +2 -2
- package/dist/esm/{index-DweBlExe.js → index-VFWyFa-_.js} +61 -20
- package/dist/esm/leaflet-maplibre-gl-BVDAAs7w.js +1026 -0
- package/dist/{cjs/leaflet-src-B0ls4IKq.js → esm/leaflet-src-DYMWBqU1.js} +33 -8
- package/dist/esm/loader.js +2 -2
- package/dist/esm/q-alert.entry.js +1 -1
- package/dist/esm/q-avatar.entry.js +1 -1
- package/dist/esm/q-button_2.entry.js +2 -2
- package/dist/esm/q-card.entry.js +1 -1
- package/dist/esm/q-carousel.entry.js +1 -1
- package/dist/esm/q-chip.entry.js +2 -2
- package/dist/esm/q-conversation-bubble.entry.js +1 -1
- package/dist/esm/q-data-table.entry.js +2 -2
- package/dist/esm/q-dialog.entry.js +1 -1
- package/dist/esm/q-dropdown.entry.js +1 -1
- package/dist/esm/q-form.entry.js +1 -1
- package/dist/esm/q-icon.entry.js +1 -1
- package/dist/esm/q-input_2.entry.js +2 -2
- package/dist/esm/q-link.entry.js +2 -2
- package/dist/esm/q-map.entry.js +184 -122
- package/dist/esm/q-navbar.entry.js +1 -1
- package/dist/esm/q-pagination.entry.js +1 -1
- package/dist/esm/q-panel.entry.js +1 -1
- package/dist/esm/q-quantity-selector.entry.js +1 -1
- package/dist/esm/q-radio-group.entry.js +1 -1
- package/dist/esm/q-reel.entry.js +1 -1
- package/dist/esm/q-scrollable.entry.js +1 -1
- package/dist/esm/q-sidepanel.entry.js +18 -15
- package/dist/esm/q-step-diagram-item.entry.js +1 -1
- package/dist/esm/q-step-diagram.entry.js +1 -1
- package/dist/esm/q-syntax-box.entry.js +4 -4
- package/dist/esm/q-tabs.entry.js +1 -1
- package/dist/esm/q-textarea.entry.js +1 -1
- package/dist/esm/q-thumbnail.entry.js +1 -1
- package/dist/esm/q-toast.entry.js +1 -1
- package/dist/esm/q-toggle.entry.js +1 -1
- package/dist/esm/q-toolbar.entry.js +1 -1
- package/dist/esm/webquark.js +3 -3
- package/dist/loader/index.d.ts +1 -1
- package/dist/playground/build/{p-53a5c493.entry.js → p-0053ec76.entry.js} +1 -1
- package/dist/playground/build/{p-de7364cd.entry.js → p-0363c0e6.entry.js} +1 -1
- package/dist/{webquark/p-35c9fa4d.entry.js → playground/build/p-0e3dbe01.entry.js} +1 -1
- package/dist/{webquark/p-d22a876a.entry.js → playground/build/p-13329777.entry.js} +1 -1
- package/dist/playground/build/{p-2f0bbb67.entry.js → p-1c9a82b8.entry.js} +1 -1
- package/dist/{webquark/p-c64be717.entry.js → playground/build/p-2e2b3ca9.entry.js} +1 -1
- package/dist/playground/build/{p-dac913f9.entry.js → p-316a92e2.entry.js} +1 -1
- package/dist/{webquark/p-94eba9a9.entry.js → playground/build/p-38b92be6.entry.js} +1 -1
- package/dist/playground/build/{p-06813183.entry.js → p-41421759.entry.js} +1 -1
- package/dist/playground/build/{p-d142bb86.entry.js → p-42831108.entry.js} +1 -1
- package/dist/{webquark/p-7c9d705e.entry.js → playground/build/p-50ca27f7.entry.js} +1 -1
- package/dist/playground/build/{p-4f8ee3f7.entry.js → p-5c08aa94.entry.js} +1 -1
- package/dist/{webquark/p-4b38c28f.entry.js → playground/build/p-611ef3e0.entry.js} +1 -1
- package/dist/playground/build/{p-8ff218f7.entry.js → p-684292dd.entry.js} +1 -1
- package/dist/{webquark/p-bc7d7cbf.entry.js → playground/build/p-6c0bc4b9.entry.js} +3 -3
- package/dist/playground/build/{p-09d43469.entry.js → p-7081c96b.entry.js} +1 -1
- package/dist/playground/build/{p-e354a398.entry.js → p-789eb3c9.entry.js} +1 -1
- package/dist/playground/build/{p-f1ab576a.entry.js → p-8077aa3f.entry.js} +1 -1
- package/dist/playground/build/{p-7be7478a.entry.js → p-885572ee.entry.js} +1 -1
- package/dist/playground/build/p-8ada8fc6.entry.js +1 -0
- package/dist/{webquark/p-721d2479.entry.js → playground/build/p-8d0aa5a7.entry.js} +1 -1
- package/dist/{webquark/p-c4016e61.entry.js → playground/build/p-8ec7d250.entry.js} +1 -1
- package/dist/{webquark/p-256d199a.entry.js → playground/build/p-9978ae38.entry.js} +1 -1
- package/dist/playground/build/p-CFuqfXuv.js +9 -0
- package/dist/playground/build/p-DYMWBqU1.js +5 -0
- package/dist/playground/build/p-DoS2fiWw.js +1 -0
- package/dist/playground/build/p-DuX-9GOi.js +1 -0
- package/dist/playground/build/p-VFWyFa-_.js +3 -0
- package/dist/playground/build/{p-bc0a0428.entry.js → p-b5066051.entry.js} +1 -1
- package/dist/playground/build/p-b99541cd.entry.js +1 -0
- package/dist/playground/build/{p-dabaddcb.entry.js → p-ca1a1d25.entry.js} +1 -1
- package/dist/{webquark/p-a2a3135f.entry.js → playground/build/p-d837603c.entry.js} +1 -1
- package/dist/playground/build/{p-d691a1aa.entry.js → p-e0e6b68f.entry.js} +1 -1
- package/dist/playground/build/{p-a0861b0e.entry.js → p-e15e6d76.entry.js} +1 -1
- package/dist/{webquark/p-3e4d2d19.entry.js → playground/build/p-e272dd45.entry.js} +1 -1
- package/dist/playground/build/{p-31d62bd0.entry.js → p-e8003179.entry.js} +1 -1
- package/dist/playground/build/p-e974c1f8.entry.js +13 -0
- package/dist/{webquark/p-CDktnDug.js → playground/build/p-g9vOVxQ4.js} +2 -2
- package/dist/playground/build/webquark.esm.js +1 -1
- package/dist/types/components/layout/sidepanel/sidepanel.d.ts +1 -0
- package/dist/types/components/layout/sidepanel/sidepanel.types.d.ts +4 -0
- package/dist/types/stencil-public-runtime.d.ts +73 -55
- package/dist/webquark/{p-53a5c493.entry.js → p-0053ec76.entry.js} +1 -1
- package/dist/webquark/{p-de7364cd.entry.js → p-0363c0e6.entry.js} +1 -1
- package/dist/{playground/build/p-35c9fa4d.entry.js → webquark/p-0e3dbe01.entry.js} +1 -1
- package/dist/{playground/build/p-d22a876a.entry.js → webquark/p-13329777.entry.js} +1 -1
- package/dist/webquark/{p-2f0bbb67.entry.js → p-1c9a82b8.entry.js} +1 -1
- package/dist/{playground/build/p-c64be717.entry.js → webquark/p-2e2b3ca9.entry.js} +1 -1
- package/dist/webquark/{p-dac913f9.entry.js → p-316a92e2.entry.js} +1 -1
- package/dist/{playground/build/p-94eba9a9.entry.js → webquark/p-38b92be6.entry.js} +1 -1
- package/dist/webquark/{p-06813183.entry.js → p-41421759.entry.js} +1 -1
- package/dist/webquark/{p-d142bb86.entry.js → p-42831108.entry.js} +1 -1
- package/dist/{playground/build/p-7c9d705e.entry.js → webquark/p-50ca27f7.entry.js} +1 -1
- package/dist/webquark/{p-4f8ee3f7.entry.js → p-5c08aa94.entry.js} +1 -1
- package/dist/{playground/build/p-4b38c28f.entry.js → webquark/p-611ef3e0.entry.js} +1 -1
- package/dist/webquark/{p-8ff218f7.entry.js → p-684292dd.entry.js} +1 -1
- package/dist/{playground/build/p-bc7d7cbf.entry.js → webquark/p-6c0bc4b9.entry.js} +3 -3
- package/dist/webquark/{p-09d43469.entry.js → p-7081c96b.entry.js} +1 -1
- package/dist/webquark/{p-e354a398.entry.js → p-789eb3c9.entry.js} +1 -1
- package/dist/webquark/{p-f1ab576a.entry.js → p-8077aa3f.entry.js} +1 -1
- package/dist/webquark/{p-7be7478a.entry.js → p-885572ee.entry.js} +1 -1
- package/dist/webquark/p-8ada8fc6.entry.js +1 -0
- package/dist/{playground/build/p-721d2479.entry.js → webquark/p-8d0aa5a7.entry.js} +1 -1
- package/dist/{playground/build/p-c4016e61.entry.js → webquark/p-8ec7d250.entry.js} +1 -1
- package/dist/{playground/build/p-256d199a.entry.js → webquark/p-9978ae38.entry.js} +1 -1
- package/dist/webquark/p-CFuqfXuv.js +9 -0
- package/dist/webquark/p-DYMWBqU1.js +5 -0
- package/dist/webquark/p-DoS2fiWw.js +1 -0
- package/dist/webquark/p-DuX-9GOi.js +1 -0
- package/dist/webquark/p-VFWyFa-_.js +3 -0
- package/dist/webquark/{p-bc0a0428.entry.js → p-b5066051.entry.js} +1 -1
- package/dist/webquark/p-b99541cd.entry.js +1 -0
- package/dist/webquark/{p-dabaddcb.entry.js → p-ca1a1d25.entry.js} +1 -1
- package/dist/{playground/build/p-a2a3135f.entry.js → webquark/p-d837603c.entry.js} +1 -1
- package/dist/webquark/{p-d691a1aa.entry.js → p-e0e6b68f.entry.js} +1 -1
- package/dist/webquark/{p-a0861b0e.entry.js → p-e15e6d76.entry.js} +1 -1
- package/dist/{playground/build/p-3e4d2d19.entry.js → webquark/p-e272dd45.entry.js} +1 -1
- package/dist/webquark/{p-31d62bd0.entry.js → p-e8003179.entry.js} +1 -1
- package/dist/webquark/p-e974c1f8.entry.js +13 -0
- package/dist/{playground/build/p-CDktnDug.js → webquark/p-g9vOVxQ4.js} +2 -2
- package/dist/webquark/webquark.esm.js +1 -1
- package/package.json +14 -14
- package/dist/cjs/leaflet-maplibre-gl-RCEffFEM.js +0 -434
- package/dist/cjs/leaflet-src-BX4jwTf5.js +0 -33
- package/dist/components/p-2bWqVyTo.js +0 -1
- package/dist/components/p-BEBDDqVT.js +0 -1
- package/dist/components/p-BeeM-7Ku.js +0 -5
- package/dist/components/p-QHgICI4w.js +0 -1
- package/dist/esm/leaflet-maplibre-gl-Cgb-1z8Q.js +0 -432
- package/dist/esm/leaflet-src-BR13bdVA.js +0 -30
- package/dist/playground/build/p-2bWqVyTo.js +0 -1
- package/dist/playground/build/p-7c4e6512.entry.js +0 -1
- package/dist/playground/build/p-BEBDDqVT.js +0 -1
- package/dist/playground/build/p-BeeM-7Ku.js +0 -5
- package/dist/playground/build/p-DNFGt02p.js +0 -1
- package/dist/playground/build/p-DweBlExe.js +0 -2
- package/dist/playground/build/p-Dxs6LLBG.js +0 -1
- package/dist/playground/build/p-a7b90eef.entry.js +0 -13
- package/dist/playground/build/p-e298fb31.entry.js +0 -1
- package/dist/webquark/p-2bWqVyTo.js +0 -1
- package/dist/webquark/p-7c4e6512.entry.js +0 -1
- package/dist/webquark/p-BEBDDqVT.js +0 -1
- package/dist/webquark/p-BeeM-7Ku.js +0 -5
- package/dist/webquark/p-DNFGt02p.js +0 -1
- package/dist/webquark/p-DweBlExe.js +0 -2
- package/dist/webquark/p-Dxs6LLBG.js +0 -1
- package/dist/webquark/p-a7b90eef.entry.js +0 -13
- package/dist/webquark/p-e298fb31.entry.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-B7ex88C2.js');
|
|
4
4
|
var map_types = require('./map.types-DNrz8rJh.js');
|
|
5
5
|
|
|
6
6
|
function isTilePreloadBufferRelevant(requestedProvider, activeProvider) {
|
|
@@ -492,7 +492,7 @@ async function importGoogleMutantConstructor(leaflet) {
|
|
|
492
492
|
const previousGoogleMutantFactory = factoryHost.googleMutant;
|
|
493
493
|
globals.L = leaflet;
|
|
494
494
|
try {
|
|
495
|
-
const module = await Promise.resolve().then(function () { return require('./Leaflet.GoogleMutant-
|
|
495
|
+
const module = await Promise.resolve().then(function () { return require('./Leaflet.GoogleMutant-i4bYl6qy.js'); });
|
|
496
496
|
if (typeof module.default !== 'function') {
|
|
497
497
|
throw new Error('QMap: GoogleMutant did not expose its default constructor.');
|
|
498
498
|
}
|
|
@@ -526,7 +526,7 @@ async function importMapLibreLayerFactory(leaflet) {
|
|
|
526
526
|
if (typeof window === 'undefined') {
|
|
527
527
|
throw new Error('QMap: the vector provider is only available in a browser environment.');
|
|
528
528
|
}
|
|
529
|
-
await Promise.resolve().then(function () { return require('./leaflet-maplibre-gl-
|
|
529
|
+
await Promise.resolve().then(function () { return require('./leaflet-maplibre-gl-BJKExsns.js'); });
|
|
530
530
|
const factory = leaflet.maplibreGL;
|
|
531
531
|
if (typeof factory !== 'function') {
|
|
532
532
|
throw new Error('QMap: MapLibre did not register its Leaflet layer factory.');
|
|
@@ -942,7 +942,12 @@ const defaultOptions = {
|
|
|
942
942
|
map: props => props // props => ({sum: props.my_value})
|
|
943
943
|
};
|
|
944
944
|
|
|
945
|
-
|
|
945
|
+
// Int32 encoding of source coords in [0, 1]: (coord - 0.5) * SCALE in [-2^29, 2^29].
|
|
946
|
+
// Keeps every stored value AND sqDist subtractions inside V8's 31-bit SMI fast path.
|
|
947
|
+
const SCALE = 0x40000000; // 2^30
|
|
948
|
+
const INV_SCALE = 1 / SCALE;
|
|
949
|
+
const encode = c => (c - 0.5) * SCALE;
|
|
950
|
+
const decode = v => v * INV_SCALE + 0.5;
|
|
946
951
|
|
|
947
952
|
const OFFSET_ZOOM = 2;
|
|
948
953
|
const OFFSET_ID = 3;
|
|
@@ -952,9 +957,11 @@ const OFFSET_PROP = 6;
|
|
|
952
957
|
|
|
953
958
|
class Supercluster {
|
|
954
959
|
constructor(options) {
|
|
955
|
-
this.options = Object.assign(Object.create(defaultOptions), options);
|
|
956
|
-
|
|
957
|
-
|
|
960
|
+
const opts = this.options = Object.assign(Object.create(defaultOptions), options);
|
|
961
|
+
opts.maxZoom = Math.min(opts.maxZoom, 30);
|
|
962
|
+
opts.minZoom = Math.min(opts.minZoom, opts.maxZoom);
|
|
963
|
+
this.trees = new Array(opts.maxZoom + 1);
|
|
964
|
+
this.stride = opts.reduce ? 7 : 6;
|
|
958
965
|
this.clusterProps = [];
|
|
959
966
|
}
|
|
960
967
|
|
|
@@ -963,44 +970,94 @@ class Supercluster {
|
|
|
963
970
|
|
|
964
971
|
if (log) console.time('total time');
|
|
965
972
|
|
|
966
|
-
const
|
|
973
|
+
const notProcessed = maxZoom + 1; // sentinel for "not yet processed at any zoom"
|
|
974
|
+
const timerId = `z${notProcessed}: ${points.length} points`;
|
|
967
975
|
if (log) console.time(timerId);
|
|
968
976
|
|
|
969
|
-
|
|
977
|
+
const stride = this.stride;
|
|
978
|
+
|
|
979
|
+
// MultiPoint features expand into one internal point per coordinate, so count first
|
|
980
|
+
let numPoints = points.length;
|
|
981
|
+
for (const p of points) {
|
|
982
|
+
const g = p.geometry;
|
|
983
|
+
if (g && g.type === 'MultiPoint') numPoints += g.coordinates.length - 1;
|
|
984
|
+
}
|
|
985
|
+
this.numPoints = numPoints;
|
|
986
|
+
|
|
987
|
+
// retain only per-point fields used by output paths; drop the GeoJSON wrappers
|
|
988
|
+
const props = this.props = new Array(numPoints);
|
|
989
|
+
// original Float64 mercator coords for drift-free single-point output
|
|
990
|
+
const coords = this.coords = new Float64Array(numPoints * 2);
|
|
991
|
+
let ids = null;
|
|
970
992
|
|
|
971
993
|
// generate a cluster object for each point and index input points into a KD-tree
|
|
972
|
-
const data =
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
994
|
+
const data = new Int32Array(numPoints * stride);
|
|
995
|
+
let w = 0;
|
|
996
|
+
let i = 0; // index of the individual point (multiple per MultiPoint feature)
|
|
997
|
+
for (const p of points) {
|
|
998
|
+
const g = p.geometry;
|
|
999
|
+
if (!g) { // keep the slot so point indices stay aligned with input features
|
|
1000
|
+
i++;
|
|
1001
|
+
continue;
|
|
1002
|
+
}
|
|
1003
|
+
const cs = g.coordinates;
|
|
1004
|
+
const multi = g.type === 'MultiPoint';
|
|
1005
|
+
|
|
1006
|
+
for (let c = 0, n = multi ? cs.length : 1; c < n; c++, i++) {
|
|
1007
|
+
const [lng, lat] = multi ? cs[c] : cs;
|
|
1008
|
+
const px = lngX(lng);
|
|
1009
|
+
const py = latY(lat);
|
|
1010
|
+
coords[2 * i] = px;
|
|
1011
|
+
coords[2 * i + 1] = py;
|
|
1012
|
+
// store internal point/cluster data in flat typed arrays for performance
|
|
1013
|
+
data[w] = encode(px);
|
|
1014
|
+
data[w + 1] = encode(py);
|
|
1015
|
+
data[w + OFFSET_ZOOM] = notProcessed;
|
|
1016
|
+
data[w + OFFSET_ID] = i;
|
|
1017
|
+
data[w + OFFSET_PARENT] = -1;
|
|
1018
|
+
data[w + OFFSET_NUM] = 1;
|
|
1019
|
+
props[i] = p.properties;
|
|
1020
|
+
if (p.id !== undefined) {
|
|
1021
|
+
if (!ids) ids = new Array(numPoints);
|
|
1022
|
+
ids[i] = p.id;
|
|
1023
|
+
}
|
|
1024
|
+
w += stride;
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
this.ids = ids;
|
|
1028
|
+
let prev = w === data.length ? data : data.subarray(0, w);
|
|
1029
|
+
let prevNum = w / stride;
|
|
1030
|
+
this.trees[maxZoom + 1] = this._createTree(prev, prevNum);
|
|
992
1031
|
|
|
993
1032
|
if (log) console.timeEnd(timerId);
|
|
994
1033
|
|
|
995
1034
|
// cluster points on max zoom, then cluster the results on previous zoom, etc.;
|
|
996
1035
|
// results in a cluster hierarchy across zoom levels
|
|
1036
|
+
let recycled = null;
|
|
997
1037
|
for (let z = maxZoom; z >= minZoom; z--) {
|
|
998
|
-
const now =
|
|
999
|
-
|
|
1000
|
-
//
|
|
1001
|
-
|
|
1038
|
+
const now = performance.now();
|
|
1039
|
+
|
|
1040
|
+
// allocate a tight Int32 slab for this zoom; output is strictly <= input length.
|
|
1041
|
+
// on a plateau zoom prev/prevNum don't advance, so the slab is the right size
|
|
1042
|
+
// for the next iteration too — carry it forward instead of re-allocating.
|
|
1043
|
+
const out = recycled || new Int32Array(prevNum * stride);
|
|
1044
|
+
recycled = null;
|
|
1045
|
+
const written = this._cluster(prev, prevNum, z, out);
|
|
1046
|
+
|
|
1047
|
+
if (written === prevNum) {
|
|
1048
|
+
// No clusters formed: output coords are bit-identical to input. Reuse the
|
|
1049
|
+
// parent tree (same coords, same order) and recycle the out slab — its
|
|
1050
|
+
// only differences vs prev are OFFSET_ZOOM mutations that query paths
|
|
1051
|
+
// don't read, and _cluster overwrites every slot it uses on next call.
|
|
1052
|
+
this.trees[z] = this.trees[z + 1];
|
|
1053
|
+
recycled = out;
|
|
1054
|
+
} else {
|
|
1055
|
+
this.trees[z] = this._createTree(out, written);
|
|
1056
|
+
prev = out;
|
|
1057
|
+
prevNum = written;
|
|
1058
|
+
}
|
|
1002
1059
|
|
|
1003
|
-
if (log) console.log(
|
|
1060
|
+
if (log) console.log(`z${z}: ${this.trees[z].numItems} clusters in ${(performance.now() - now).toFixed(2)}ms`);
|
|
1004
1061
|
}
|
|
1005
1062
|
|
|
1006
1063
|
if (log) console.timeEnd('total time');
|
|
@@ -1024,13 +1081,10 @@ class Supercluster {
|
|
|
1024
1081
|
}
|
|
1025
1082
|
|
|
1026
1083
|
const tree = this.trees[this._limitZoom(zoom)];
|
|
1027
|
-
const ids = tree.range(lngX(minLng), latY(maxLat), lngX(maxLng), latY(minLat));
|
|
1084
|
+
const ids = tree.range(encode(lngX(minLng)), encode(latY(maxLat)), encode(lngX(maxLng)), encode(latY(minLat)));
|
|
1028
1085
|
const data = tree.data;
|
|
1029
1086
|
const clusters = [];
|
|
1030
|
-
for (const id of ids)
|
|
1031
|
-
const k = this.stride * id;
|
|
1032
|
-
clusters.push(data[k + OFFSET_NUM] > 1 ? getClusterJSON(data, k, this.clusterProps) : this.points[data[k + OFFSET_ID]]);
|
|
1033
|
-
}
|
|
1087
|
+
for (const id of ids) clusters.push(this._featureJSON(data, this.stride * id));
|
|
1034
1088
|
return clusters;
|
|
1035
1089
|
}
|
|
1036
1090
|
|
|
@@ -1043,18 +1097,16 @@ class Supercluster {
|
|
|
1043
1097
|
if (!tree) throw new Error(errorMsg);
|
|
1044
1098
|
|
|
1045
1099
|
const data = tree.data;
|
|
1046
|
-
if (originId
|
|
1100
|
+
if (originId >= tree.numItems) throw new Error(errorMsg);
|
|
1047
1101
|
|
|
1048
1102
|
const r = this.options.radius / (this.options.extent * Math.pow(2, originZoom - 1));
|
|
1049
1103
|
const x = data[originId * this.stride];
|
|
1050
1104
|
const y = data[originId * this.stride + 1];
|
|
1051
|
-
const ids = tree.within(x, y, r);
|
|
1105
|
+
const ids = tree.within(x, y, r * SCALE);
|
|
1052
1106
|
const children = [];
|
|
1053
1107
|
for (const id of ids) {
|
|
1054
1108
|
const k = id * this.stride;
|
|
1055
|
-
if (data[k + OFFSET_PARENT] === clusterId)
|
|
1056
|
-
children.push(data[k + OFFSET_NUM] > 1 ? getClusterJSON(data, k, this.clusterProps) : this.points[data[k + OFFSET_ID]]);
|
|
1057
|
-
}
|
|
1109
|
+
if (data[k + OFFSET_PARENT] === clusterId) children.push(this._featureJSON(data, k));
|
|
1058
1110
|
}
|
|
1059
1111
|
|
|
1060
1112
|
if (children.length === 0) throw new Error(errorMsg);
|
|
@@ -1073,30 +1125,38 @@ class Supercluster {
|
|
|
1073
1125
|
}
|
|
1074
1126
|
|
|
1075
1127
|
getTile(z, x, y) {
|
|
1128
|
+
return this._getTile(z, x, y, false);
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
// Same tiles as getTile, but with each feature's coords inline (`type: 4`, `x`/`y`) instead of
|
|
1132
|
+
// wrapped in a nested `geometry` array — the shape geojson-vt's getTileRaw produces.
|
|
1133
|
+
getTileRaw(z, x, y) {
|
|
1134
|
+
return this._getTile(z, x, y, true);
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
_getTile(z, x, y, raw) {
|
|
1076
1138
|
const tree = this.trees[this._limitZoom(z)];
|
|
1077
1139
|
const z2 = Math.pow(2, z);
|
|
1078
1140
|
const {extent, radius} = this.options;
|
|
1079
1141
|
const p = radius / extent;
|
|
1080
|
-
const top = (y - p) / z2;
|
|
1081
|
-
const bottom = (y + 1 + p) / z2;
|
|
1142
|
+
const top = encode((y - p) / z2);
|
|
1143
|
+
const bottom = encode((y + 1 + p) / z2);
|
|
1082
1144
|
|
|
1083
|
-
const tile = {
|
|
1084
|
-
features: []
|
|
1085
|
-
};
|
|
1145
|
+
const tile = {features: []};
|
|
1086
1146
|
|
|
1087
1147
|
this._addTileFeatures(
|
|
1088
|
-
tree.range((x - p) / z2, top, (x + 1 + p) / z2, bottom),
|
|
1089
|
-
tree.data, x, y, z2, tile);
|
|
1148
|
+
tree.range(encode((x - p) / z2), top, encode((x + 1 + p) / z2), bottom),
|
|
1149
|
+
tree.data, x, y, z2, tile, raw);
|
|
1090
1150
|
|
|
1091
1151
|
if (x === 0) {
|
|
1092
1152
|
this._addTileFeatures(
|
|
1093
|
-
tree.range(1 - p / z2, top, 1, bottom),
|
|
1094
|
-
tree.data, z2, y, z2, tile);
|
|
1153
|
+
tree.range(encode(1 - p / z2), top, encode(1), bottom),
|
|
1154
|
+
tree.data, z2, y, z2, tile, raw);
|
|
1095
1155
|
}
|
|
1096
1156
|
if (x === z2 - 1) {
|
|
1097
1157
|
this._addTileFeatures(
|
|
1098
|
-
tree.range(0, top, p / z2, bottom),
|
|
1099
|
-
tree.data, -1, y, z2, tile);
|
|
1158
|
+
tree.range(encode(0), top, encode(p / z2), bottom),
|
|
1159
|
+
tree.data, -1, y, z2, tile, raw);
|
|
1100
1160
|
}
|
|
1101
1161
|
|
|
1102
1162
|
return tile.features.length ? tile : null;
|
|
@@ -1141,15 +1201,16 @@ class Supercluster {
|
|
|
1141
1201
|
return skipped;
|
|
1142
1202
|
}
|
|
1143
1203
|
|
|
1144
|
-
_createTree(data) {
|
|
1145
|
-
const tree = new KDBush(
|
|
1146
|
-
|
|
1204
|
+
_createTree(data, numItems) {
|
|
1205
|
+
const tree = new KDBush(numItems, this.options.nodeSize, Int32Array);
|
|
1206
|
+
const stride = this.stride;
|
|
1207
|
+
for (let i = 0; i < numItems; i++) tree.add(data[i * stride], data[i * stride + 1]);
|
|
1147
1208
|
tree.finish();
|
|
1148
1209
|
tree.data = data;
|
|
1149
1210
|
return tree;
|
|
1150
1211
|
}
|
|
1151
1212
|
|
|
1152
|
-
_addTileFeatures(ids, data, x, y, z2, tile) {
|
|
1213
|
+
_addTileFeatures(ids, data, x, y, z2, tile, raw) {
|
|
1153
1214
|
for (const i of ids) {
|
|
1154
1215
|
const k = i * this.stride;
|
|
1155
1216
|
const isCluster = data[k + OFFSET_NUM] > 1;
|
|
@@ -1157,35 +1218,23 @@ class Supercluster {
|
|
|
1157
1218
|
let tags, px, py;
|
|
1158
1219
|
if (isCluster) {
|
|
1159
1220
|
tags = getClusterProperties(data, k, this.clusterProps);
|
|
1160
|
-
px = data[k];
|
|
1161
|
-
py = data[k + 1];
|
|
1221
|
+
px = decode(data[k]);
|
|
1222
|
+
py = decode(data[k + 1]);
|
|
1162
1223
|
} else {
|
|
1163
|
-
const
|
|
1164
|
-
tags =
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
py = latY(lat);
|
|
1224
|
+
const origIndex = data[k + OFFSET_ID];
|
|
1225
|
+
tags = this.props[origIndex];
|
|
1226
|
+
px = this.coords[2 * origIndex];
|
|
1227
|
+
py = this.coords[2 * origIndex + 1];
|
|
1168
1228
|
}
|
|
1169
1229
|
|
|
1170
|
-
const
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
Math.round(this.options.extent * (px * z2 - x)),
|
|
1174
|
-
Math.round(this.options.extent * (py * z2 - y))
|
|
1175
|
-
]],
|
|
1176
|
-
tags
|
|
1177
|
-
};
|
|
1178
|
-
|
|
1179
|
-
// assign id
|
|
1180
|
-
let id;
|
|
1181
|
-
if (isCluster || this.options.generateId) {
|
|
1182
|
-
// optionally generate id for points
|
|
1183
|
-
id = data[k + OFFSET_ID];
|
|
1184
|
-
} else {
|
|
1185
|
-
// keep id if already assigned
|
|
1186
|
-
id = this.points[data[k + OFFSET_ID]].id;
|
|
1187
|
-
}
|
|
1230
|
+
const tx = Math.round(this.options.extent * (px * z2 - x));
|
|
1231
|
+
const ty = Math.round(this.options.extent * (py * z2 - y));
|
|
1232
|
+
const f = raw ? {type: 4, x: tx, y: ty, tags} : {type: 1, geometry: [[tx, ty]], tags};
|
|
1188
1233
|
|
|
1234
|
+
// assign id: cluster id, generated point id, or original input id
|
|
1235
|
+
const origIndex = data[k + OFFSET_ID];
|
|
1236
|
+
const id = isCluster || this.options.generateId ? origIndex :
|
|
1237
|
+
this.ids ? this.ids[origIndex] : undefined;
|
|
1189
1238
|
if (id !== undefined) f.id = id;
|
|
1190
1239
|
|
|
1191
1240
|
tile.features.push(f);
|
|
@@ -1196,15 +1245,18 @@ class Supercluster {
|
|
|
1196
1245
|
return Math.max(this.options.minZoom, Math.min(Math.floor(+z), this.options.maxZoom + 1));
|
|
1197
1246
|
}
|
|
1198
1247
|
|
|
1199
|
-
_cluster(
|
|
1200
|
-
const {radius, extent, reduce, minPoints} = this.options;
|
|
1201
|
-
const r = radius / (extent *
|
|
1202
|
-
const
|
|
1203
|
-
const
|
|
1248
|
+
_cluster(data, numItems, zoom, out) {
|
|
1249
|
+
const {radius, extent, reduce, minPoints, maxZoom} = this.options;
|
|
1250
|
+
const r = radius / (extent * (1 << zoom)) * SCALE;
|
|
1251
|
+
const notProcessed = maxZoom + 1;
|
|
1252
|
+
const tree = this.trees[zoom + 1];
|
|
1204
1253
|
const stride = this.stride;
|
|
1254
|
+
const limit = numItems * stride;
|
|
1255
|
+
const neighborIds = new Uint32Array(numItems);
|
|
1256
|
+
let cursor = 0;
|
|
1205
1257
|
|
|
1206
1258
|
// loop through each point
|
|
1207
|
-
for (let i = 0; i <
|
|
1259
|
+
for (let i = 0; i < limit; i += stride) {
|
|
1208
1260
|
// if we've already visited the point at this zoom level, skip it
|
|
1209
1261
|
if (data[i + OFFSET_ZOOM] <= zoom) continue;
|
|
1210
1262
|
data[i + OFFSET_ZOOM] = zoom;
|
|
@@ -1212,14 +1264,14 @@ class Supercluster {
|
|
|
1212
1264
|
// find all nearby points
|
|
1213
1265
|
const x = data[i];
|
|
1214
1266
|
const y = data[i + 1];
|
|
1215
|
-
const
|
|
1267
|
+
const neighborCount = tree.withinInto(x, y, r, neighborIds);
|
|
1216
1268
|
|
|
1217
1269
|
const numPointsOrigin = data[i + OFFSET_NUM];
|
|
1218
1270
|
let numPoints = numPointsOrigin;
|
|
1219
1271
|
|
|
1220
1272
|
// count the number of points in a potential cluster
|
|
1221
|
-
for (
|
|
1222
|
-
const k =
|
|
1273
|
+
for (let n = 0; n < neighborCount; n++) {
|
|
1274
|
+
const k = neighborIds[n] * stride;
|
|
1223
1275
|
// filter out neighbors that are already processed
|
|
1224
1276
|
if (data[k + OFFSET_ZOOM] > zoom) numPoints += data[k + OFFSET_NUM];
|
|
1225
1277
|
}
|
|
@@ -1233,10 +1285,10 @@ class Supercluster {
|
|
|
1233
1285
|
let clusterPropIndex = -1;
|
|
1234
1286
|
|
|
1235
1287
|
// encode both zoom and point index on which the cluster originated -- offset by total length of features
|
|
1236
|
-
const id = ((i / stride | 0) << 5) + (zoom + 1) + this.
|
|
1288
|
+
const id = ((i / stride | 0) << 5) + (zoom + 1) + this.numPoints;
|
|
1237
1289
|
|
|
1238
|
-
for (
|
|
1239
|
-
const k =
|
|
1290
|
+
for (let n = 0; n < neighborCount; n++) {
|
|
1291
|
+
const k = neighborIds[n] * stride;
|
|
1240
1292
|
|
|
1241
1293
|
if (data[k + OFFSET_ZOOM] <= zoom) continue;
|
|
1242
1294
|
data[k + OFFSET_ZOOM] = zoom; // save the zoom (so it doesn't get processed twice)
|
|
@@ -1258,34 +1310,55 @@ class Supercluster {
|
|
|
1258
1310
|
}
|
|
1259
1311
|
|
|
1260
1312
|
data[i + OFFSET_PARENT] = id;
|
|
1261
|
-
|
|
1262
|
-
|
|
1313
|
+
out[cursor] = wx / numPoints;
|
|
1314
|
+
out[cursor + 1] = wy / numPoints;
|
|
1315
|
+
out[cursor + OFFSET_ZOOM] = notProcessed;
|
|
1316
|
+
out[cursor + OFFSET_ID] = id;
|
|
1317
|
+
out[cursor + OFFSET_PARENT] = -1;
|
|
1318
|
+
out[cursor + OFFSET_NUM] = numPoints;
|
|
1319
|
+
if (reduce) out[cursor + OFFSET_PROP] = clusterPropIndex;
|
|
1320
|
+
cursor += stride;
|
|
1263
1321
|
|
|
1264
1322
|
} else { // left points as unclustered
|
|
1265
|
-
for (let j = 0; j < stride; j++)
|
|
1323
|
+
for (let j = 0; j < stride; j++) out[cursor + j] = data[i + j];
|
|
1324
|
+
cursor += stride;
|
|
1266
1325
|
|
|
1267
1326
|
if (numPoints > 1) {
|
|
1268
|
-
for (
|
|
1269
|
-
const k =
|
|
1327
|
+
for (let n = 0; n < neighborCount; n++) {
|
|
1328
|
+
const k = neighborIds[n] * stride;
|
|
1270
1329
|
if (data[k + OFFSET_ZOOM] <= zoom) continue;
|
|
1271
1330
|
data[k + OFFSET_ZOOM] = zoom;
|
|
1272
|
-
for (let j = 0; j < stride; j++)
|
|
1331
|
+
for (let j = 0; j < stride; j++) out[cursor + j] = data[k + j];
|
|
1332
|
+
cursor += stride;
|
|
1273
1333
|
}
|
|
1274
1334
|
}
|
|
1275
1335
|
}
|
|
1276
1336
|
}
|
|
1277
1337
|
|
|
1278
|
-
return
|
|
1338
|
+
return cursor / stride;
|
|
1279
1339
|
}
|
|
1280
1340
|
|
|
1281
1341
|
// get index of the point from which the cluster originated
|
|
1282
1342
|
_getOriginId(clusterId) {
|
|
1283
|
-
return (clusterId - this.
|
|
1343
|
+
return (clusterId - this.numPoints) >> 5;
|
|
1284
1344
|
}
|
|
1285
1345
|
|
|
1286
1346
|
// get zoom of the point from which the cluster originated
|
|
1287
1347
|
_getOriginZoom(clusterId) {
|
|
1288
|
-
return (clusterId - this.
|
|
1348
|
+
return (clusterId - this.numPoints) % 32;
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
_featureJSON(data, k) {
|
|
1352
|
+
const i = data[k + OFFSET_ID];
|
|
1353
|
+
const isCluster = data[k + OFFSET_NUM] > 1;
|
|
1354
|
+
const id = isCluster ? i : this.ids ? this.ids[i] : undefined;
|
|
1355
|
+
const properties = isCluster ? getClusterProperties(data, k, this.clusterProps) : this.props[i];
|
|
1356
|
+
const coordinates = isCluster ?
|
|
1357
|
+
[xLng(decode(data[k])), yLat(decode(data[k + 1]))] :
|
|
1358
|
+
[xLng(this.coords[2 * i]), yLat(this.coords[2 * i + 1])];
|
|
1359
|
+
const f = {type: 'Feature', properties, geometry: {type: 'Point', coordinates}};
|
|
1360
|
+
if (id !== undefined) f.id = id;
|
|
1361
|
+
return f;
|
|
1289
1362
|
}
|
|
1290
1363
|
|
|
1291
1364
|
_map(data, i, clone) {
|
|
@@ -1293,24 +1366,12 @@ class Supercluster {
|
|
|
1293
1366
|
const props = this.clusterProps[data[i + OFFSET_PROP]];
|
|
1294
1367
|
return clone ? Object.assign({}, props) : props;
|
|
1295
1368
|
}
|
|
1296
|
-
const original = this.
|
|
1369
|
+
const original = this.props[data[i + OFFSET_ID]];
|
|
1297
1370
|
const result = this.options.map(original);
|
|
1298
1371
|
return clone && result === original ? Object.assign({}, result) : result;
|
|
1299
1372
|
}
|
|
1300
1373
|
}
|
|
1301
1374
|
|
|
1302
|
-
function getClusterJSON(data, i, clusterProps) {
|
|
1303
|
-
return {
|
|
1304
|
-
type: 'Feature',
|
|
1305
|
-
id: data[i + OFFSET_ID],
|
|
1306
|
-
properties: getClusterProperties(data, i, clusterProps),
|
|
1307
|
-
geometry: {
|
|
1308
|
-
type: 'Point',
|
|
1309
|
-
coordinates: [xLng(data[i]), yLat(data[i + 1])]
|
|
1310
|
-
}
|
|
1311
|
-
};
|
|
1312
|
-
}
|
|
1313
|
-
|
|
1314
1375
|
function getClusterProperties(data, i, clusterProps) {
|
|
1315
1376
|
const count = data[i + OFFSET_NUM];
|
|
1316
1377
|
const abbrev =
|
|
@@ -1318,11 +1379,12 @@ function getClusterProperties(data, i, clusterProps) {
|
|
|
1318
1379
|
count >= 1000 ? `${Math.round(count / 100) / 10 }k` : count;
|
|
1319
1380
|
const propIndex = data[i + OFFSET_PROP];
|
|
1320
1381
|
const properties = propIndex === -1 ? {} : Object.assign({}, clusterProps[propIndex]);
|
|
1382
|
+
|
|
1321
1383
|
return Object.assign(properties, {
|
|
1322
1384
|
cluster: true,
|
|
1323
|
-
cluster_id: data[i + OFFSET_ID],
|
|
1324
|
-
point_count: count,
|
|
1325
|
-
point_count_abbreviated: abbrev
|
|
1385
|
+
'cluster_id': data[i + OFFSET_ID],
|
|
1386
|
+
'point_count': count,
|
|
1387
|
+
'point_count_abbreviated': abbrev
|
|
1326
1388
|
});
|
|
1327
1389
|
}
|
|
1328
1390
|
|
|
@@ -2847,7 +2909,7 @@ const QMap = class {
|
|
|
2847
2909
|
const token = ++this.initializationToken;
|
|
2848
2910
|
this.setProviderStatus('initializing', undefined, false, true);
|
|
2849
2911
|
try {
|
|
2850
|
-
const leaflet = this.leaflet ?? (await Promise.resolve().then(function () { return require('./leaflet-src-
|
|
2912
|
+
const leaflet = this.leaflet ?? (await Promise.resolve().then(function () { return require('./leaflet-src-mrRg-Srs.js'); }).then(function (n) { return n.LeafletModule; }));
|
|
2851
2913
|
this.leaflet = leaflet;
|
|
2852
2914
|
if (token !== this.initializationToken || !this.canvas || !this.connected || !this.el.isConnected)
|
|
2853
2915
|
return;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-B7ex88C2.js');
|
|
4
4
|
|
|
5
5
|
const paginationCss = () => `:host{display:block;min-width:0;color:var(--q-pagination-fg, var(--q-fg-muted, #9ca3af));font-family:var(--q-font-family, inherit);font-size:var(--q-pagination-font-size, var(--q-font-size-sm, 0.8125rem));font-weight:var(--q-pagination-font-weight, 600)}.pagination{display:flex;flex:1 1 auto;align-items:center;justify-content:space-between;gap:var(--q-pagination-gap, 12px);box-sizing:border-box;width:100%;min-width:0}.summary{min-width:0}.controls{display:inline-flex;flex:0 0 auto;align-items:center;gap:var(--q-pagination-controls-gap, 8px)}.page-button{box-sizing:border-box;min-height:var(--q-pagination-button-height, 30px);padding:var(--q-pagination-button-padding, 5px 8px);color:var(--q-pagination-button-fg, var(--q-fg-base, #f9fafb));border:var(--q-pagination-button-border, 1px solid var(--q-border-color, #374151));border-radius:var(--q-pagination-button-radius, var(--q-radius-sm, 4px));background:var(--q-pagination-button-bg, transparent);font:inherit;cursor:pointer;transition:background-color 150ms ease, border-color 150ms ease, color 150ms ease}.page-button:hover:not(:disabled){color:var(--q-pagination-button-hover-fg, var(--q-color-primary, #60a5fa));border-color:var(--q-pagination-button-hover-border, var(--q-color-primary, #60a5fa));background:var( --q-pagination-button-hover-bg, color-mix(in srgb, var(--q-fg-base, #f9fafb) 8%, transparent) )}.page-button:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:2px}.page-button:disabled{opacity:0.45;cursor:not-allowed}.page-count{min-width:var(--q-pagination-page-count-width, 48px);text-align:center}@media (max-width: 480px){.pagination{align-items:flex-start;flex-direction:column}.controls{align-self:flex-end}}`;
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-B7ex88C2.js');
|
|
4
4
|
var dom = require('./dom-Dk77oFF6.js');
|
|
5
5
|
|
|
6
6
|
const panelCss = () => `:host{display:block;min-width:0;min-height:0;box-sizing:border-box}:host([full-height]){height:100%}.panel{display:flex;flex-direction:column;min-width:0;min-height:0;width:100%;height:auto;box-sizing:border-box;overflow:hidden;color:var(--q-panel-fg, var(--q-fg-base, #f9fafb));font-family:var(--q-font-family, inherit)}.panel.is-full-height{height:100%}.variant-plain{background:transparent;border:0}.variant-surface{background:var(--q-panel-bg, var(--q-bg-surface-1, #1f2937))}.variant-bordered{background:var(--q-panel-bg, var(--q-bg-surface-1, #1f2937));border:var(--q-panel-border, var(--q-border, 1px solid var(--q-border-color, #374151)));border-radius:var(--q-panel-radius, var(--q-radius-md, 7px))}.panel.has-no-borders{border:0}.panel-header,.panel-footer{flex:0 0 auto;display:block;padding:var(--q-panel-header-padding, var(--q-padding-lg, 16px));background:var(--q-panel-header-bg, transparent);z-index:1}.panel-header{border-bottom:var(--q-panel-divider, 1px solid transparent)}.panel-footer{border-top:var(--q-panel-divider, 1px solid transparent)}.uses-sticky-scroll{overflow:auto}.uses-sticky-scroll .panel-body{overflow:visible}.uses-sticky-scroll.has-sticky-header .panel-header{position:sticky;top:0}.uses-sticky-scroll.has-sticky-footer .panel-footer{position:sticky;bottom:0}.panel-header.is-hidden,.panel-footer.is-hidden{display:none}.panel-body{flex:1 1 auto;min-width:0;min-height:0;box-sizing:border-box}.is-scrollable .panel-body{overflow:auto}.padding-none .panel-body{padding:0}.padding-sm .panel-body{padding:var(--q-panel-padding-sm, var(--q-padding-sm, 4px))}.padding-md .panel-body{padding:var(--q-panel-padding-md, var(--q-padding-md, 9px))}.padding-lg .panel-body{padding:var(--q-panel-padding-lg, var(--q-padding-lg, 16px))}`;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-B7ex88C2.js');
|
|
4
4
|
var dom = require('./dom-Dk77oFF6.js');
|
|
5
5
|
|
|
6
6
|
const reelCss = () => `:host{display:block;box-sizing:border-box;width:100%}.reel-container{display:grid;box-sizing:border-box}.layout-grid{grid-gap:var(--q-reel-gap, 16px);grid-template-columns:var(--q-reel-columns-mobile, repeat(auto-fill, minmax(140px, 1fr)))}@media (min-width: 768px){.layout-grid{grid-template-columns:var(--q-reel-columns-desktop, repeat(auto-fill, minmax(220px, 1fr)))}}.layout-carousel{display:flex;flex-direction:row;overflow-x:auto;scroll-behavior:smooth;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;gap:var(--q-reel-gap, 16px);padding-bottom:8px}.layout-carousel::-webkit-scrollbar{height:6px}.layout-carousel::-webkit-scrollbar-track{background:var(--q-bg-surface-1, #1f2937);border-radius:3px}.layout-carousel::-webkit-scrollbar-thumb{background:var(--q-bg-surface-3, #4b5563);border-radius:3px}.layout-carousel ::slotted(q-thumbnail){flex:0 0 auto;scroll-snap-align:start}.lightbox-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;background:var(--q-bg-overlay, rgba(0, 0, 0, 0.85));z-index:9999;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:40px;animation:fade-in var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1))}.lightbox-close{position:absolute;top:20px;right:20px;background:rgba(0, 0, 0, 0.5);background:var(--q-reel-lightbox-btn-bg, rgba(0, 0, 0, 0.5));border:1px solid rgba(255, 255, 255, 0.2);border:var(--q-reel-lightbox-btn-border, 1px solid rgba(255, 255, 255, 0.2));border-radius:50%;width:40px;height:40px;color:#ffffff;color:var(--q-reel-lightbox-btn-color, #ffffff);display:flex;align-items:center;justify-content:center;cursor:pointer;outline:none;z-index:10000;transition:background var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1))}.lightbox-close:hover{background:rgba(255, 255, 255, 0.2);background:var(--q-reel-lightbox-btn-hover-bg, rgba(255, 255, 255, 0.2))}.lightbox-close:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:2px}.lightbox-close svg{width:20px;height:20px}.lightbox-prev,.lightbox-next{position:absolute;top:50%;transform:translateY(-50%);background:rgba(0, 0, 0, 0.5);background:var(--q-reel-lightbox-btn-bg, rgba(0, 0, 0, 0.5));border:1px solid rgba(255, 255, 255, 0.2);border:var(--q-reel-lightbox-btn-border, 1px solid rgba(255, 255, 255, 0.2));border-radius:50%;width:44px;height:44px;color:#ffffff;color:var(--q-reel-lightbox-btn-color, #ffffff);display:flex;align-items:center;justify-content:center;cursor:pointer;outline:none;z-index:10000;transition:background var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1)), transform var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1))}.lightbox-prev{left:20px}.lightbox-next{right:20px}.lightbox-prev:hover,.lightbox-next:hover{background:rgba(255, 255, 255, 0.2);background:var(--q-reel-lightbox-btn-hover-bg, rgba(255, 255, 255, 0.2))}.lightbox-prev:focus-visible,.lightbox-next:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:2px}.lightbox-prev svg,.lightbox-next svg{width:24px;height:24px}.lightbox-content{position:relative;max-width:var(--q-lightbox-max-size, 85%);max-height:var(--q-lightbox-max-size, 85%);display:flex;flex-direction:column;align-items:center;z-index:9999}.lightbox-media{max-width:100%;max-height:80vh;border-radius:var(--q-radius-lg, 11px);border:1px solid rgba(255, 255, 255, 0.15);object-fit:contain;box-shadow:0 20px 45px rgba(0, 0, 0, 0.6)}.lightbox-caption{margin-top:16px;font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-base, 0.9rem);font-weight:var(--q-font-weight-bold, 600);color:#ffffff;background:rgba(0, 0, 0, 0.7);padding:8px 16px;border-radius:var(--q-radius-md, 8px);text-align:center;border:1px solid rgba(255, 255, 255, 0.1)}@keyframes fade-in{from{opacity:0}to{opacity:1}}`;
|