@expofp/floorplan 3.20.1 → 3.21.1
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/browser/{Button-CIZNx2Hf.js → Button-DyYB6xKN.js} +44 -44
- package/dist/browser/{CookieConsent--EI50p11.js → CookieConsent-PGzI3yHO.js} +9 -9
- package/dist/browser/{Debug-DtMm5o9u.js → Debug-COmrk222.js} +10 -10
- package/dist/browser/{Demo-BMSC5fdk.js → Demo-oeV20zP1.js} +13 -13
- package/dist/browser/{Free-Do_QMejO.js → Free-CegScEga.js} +15 -15
- package/dist/browser/{Gallery-BHLCmnEc.js → Gallery-_lawSGqx.js} +10 -10
- package/dist/browser/{GpsLoader-BLsWZXdW.js → GpsLoader-ClIbEGYM.js} +30 -30
- package/dist/browser/{KioskStore-jS1TwgN_.js → KioskStore-f0DC16TK.js} +19 -19
- package/dist/browser/{MaplibreAdapter-DL2Eccgl.js → MaplibreAdapter-DeUL0xOU.js} +136 -136
- package/dist/browser/{ModalContainer-BH3_FY8L.js → ModalContainer-DLBgX5QP.js} +18 -18
- package/dist/browser/{PermissionNotice-DogwVOoE.js → PermissionNotice-BAsy6jo0.js} +8 -8
- package/dist/browser/{SetKioskMode-DwMcZijX.js → SetKioskMode-BfVNX_MG.js} +22 -22
- package/dist/browser/{TouchHand-Doeqs0E3.js → ShowKiosk-B1C0a6oU.js} +36 -19
- package/dist/browser/{ViewerMenuPanel-BnWeuS-8.js → ViewerMenuPanel-D7HWRHcc.js} +24 -24
- package/dist/browser/{add-debug-secret-listener-D3GtCWlI.js → add-debug-secret-listener-DVydJSza.js} +1 -1
- package/dist/browser/{adopt-global-settings-CDO6Yd7V.js → adopt-global-settings-BP7jeIs4.js} +9 -9
- package/dist/browser/{boolean-editor--PMvGWEn.js → boolean-editor-lXQibdbw.js} +9 -9
- package/dist/browser/{bootIntercom-DxfIF_sW.js → bootIntercom-g4N9mYqN.js} +3 -3
- package/dist/browser/{booth-by-xy--9mTRkTY.js → booth-by-xy-DtDEluxt.js} +308 -308
- package/dist/browser/bundle.json +65 -68
- package/dist/browser/{classnames-Duuo2rUI.js → classnames-D1H49Ylw.js} +2 -2
- package/dist/browser/{client-BX7F8QOZ.js → client-DJyhHF20.js} +4 -4
- package/dist/browser/components-DrPsXyP7.js +6545 -0
- package/dist/browser/{debug-overlay-B166CKCv.js → debug-overlay-2-3s8Atk.js} +10 -10
- package/dist/browser/{debug-ui-CrsuXGk4.js → debug-ui-Dadmy3yG.js} +6 -6
- package/dist/browser/{dist-CgBtJWGC.js → dist-Ch11tk4A.js} +5 -5
- package/dist/browser/{dist-BjiRCtsQ.js → dist-CoV6SEDf.js} +6 -6
- package/dist/browser/{dist-CAR5poKe.js → dist-DpyoGiMq.js} +3 -3
- package/dist/browser/{efp-debug-init-BMGbxMsu.js → efp-debug-init-NTJ55pbo.js} +3 -3
- package/dist/browser/{enum-editor-DD9JifW9.js → enum-editor-P8k6CxpK.js} +4 -4
- package/dist/browser/{es5-CCTpVkpP.js → es5-BNAXdIXy.js} +2 -2
- package/dist/browser/{event-not-found-DtlT5Hh-.js → event-not-found-zrxmY-4I.js} +1 -1
- package/dist/browser/{exports-hPDvqzk3.js → exports-Cmt6qLmi.js} +1 -1
- package/dist/browser/{favicon--j8SyHo_.js → favicon-BcvdcBjJ.js} +1 -1
- package/dist/browser/{fetch-retry.umd-CZC1W2Gf.js → fetch-retry.umd-CwLHs7gm.js} +2 -2
- package/dist/browser/{flex-DaxUvwbX.js → flex-CZxVZLiS.js} +5 -5
- package/dist/browser/{floorplan.loader-Cen3hDqa.js → floorplan.loader-CVqPWtRR.js} +10 -10
- package/dist/browser/{floorplan.ready-Maien7uA.js → floorplan.ready-Cku02kNV.js} +181 -181
- package/dist/browser/{fuse-C37D7Zj6.js → fuse-DAKoh9Sn.js} +2 -2
- package/dist/browser/{i18n-C5VNVGQf.js → i18n-oXBjISpK.js} +5 -5
- package/dist/browser/index.js +14 -14
- package/dist/browser/{index.module-CEA0H5Wh.js → index.module-DV0zb8y6.js} +4 -4
- package/dist/browser/{integrateKiosk-BE9ZijAG.js → integrateKiosk-BtlbXjk8.js} +5 -5
- package/dist/browser/{is-webview-BUh67H5d.js → is-webview-CDAwTE_T.js} +1 -1
- package/dist/browser/{jsx-runtime-C946KOms.js → jsx-runtime-C_M9qBpc.js} +2 -2
- package/dist/browser/{kiosk-record-BEg-XaFq.js → kiosk-record-5DWijpUq.js} +1 -1
- package/dist/browser/{lib-BJ1Uu6yE.js → lib-DVQm4XG_.js} +3 -3
- package/dist/browser/{loadImage-Lr7CwFPh.js → loadImage-Dkh3AoGR.js} +4 -4
- package/dist/browser/{logDeviceInfo-BJWoZ99e.js → logDeviceInfo-Ccvah0yg.js} +9 -9
- package/dist/browser/{main-DY7IWVq5.js → main-B88omsdI.js} +1 -1
- package/dist/browser/{mobx-CAg5WZgv.js → mobx-DdJZvHEB.js} +4 -4
- package/dist/browser/{optional-boolean-editor-BeZFATCA.js → optional-boolean-editor-9UNagXL6.js} +3 -3
- package/dist/browser/{optional-enum-editor-BiAxn1K1.js → optional-enum-editor-WnN344M7.js} +4 -4
- package/dist/browser/{optional-string-editor-B58lWztJ.js → optional-string-editor-BixGVxIr.js} +4 -4
- package/dist/browser/{particles.min-BO14VwHE.js → particles.min-DJy8aIR6.js} +2 -2
- package/dist/browser/{react-Br12TYQz.js → react-DsyxxgJv.js} +2 -2
- package/dist/browser/{react-dom-kVWZ1ldt.js → react-dom-BXP4j1KL.js} +3 -3
- package/dist/browser/{rolldown-runtime-Bs00Jj73.js → rolldown-runtime-foRd1umF.js} +1 -1
- package/dist/browser/{select-CWOn05Ap.js → select-Cn_RP7hP.js} +10 -10
- package/dist/browser/{settings-B5J5hSk2.js → settings-Jt3zjfc9.js} +2 -2
- package/dist/browser/{settings-item-CdrDg3ew.js → settings-item-BdWruI_d.js} +6 -6
- package/dist/browser/{store-aK-vSfy0.js → store-BEkesuqa.js} +5305 -5308
- package/dist/browser/{string-editor-D8Zlo9Fd.js → string-editor-Cz5tHqIH.js} +4 -4
- package/dist/browser/{text-field-Ds1ozOk9.js → text-field-CiqRIQkJ.js} +5 -5
- package/dist/browser/{theme-BQn7lM2P.js → theme-w6xowkim.js} +8 -8
- package/dist/browser/{ui-CBMxjdUy.js → ui-CpE8-iDh.js} +8 -8
- package/dist/browser/{useRenderTarget-CZMpeOh9.js → useRenderTarget-CseUnJfL.js} +5 -5
- package/dist/esm/components/AlertContainer.d.ts +1 -1
- package/dist/esm/components/AlertContainer.js +1 -1
- package/dist/esm/components/AutocompleteContainer.d.ts +2 -2
- package/dist/esm/components/AutocompleteContainer.js +1 -1
- package/dist/esm/components/CookieConsent.js +1 -1
- package/dist/esm/components/DownloadListContainer.d.ts +1 -1
- package/dist/esm/components/DownloadListContainer.js +1 -1
- package/dist/esm/components/EntityItemContainer.d.ts +1 -1
- package/dist/esm/components/EntityItemContainer.js +1 -1
- package/dist/esm/components/EntityList.js +1 -1
- package/dist/esm/components/Event.js +1 -1
- package/dist/esm/components/EventBadgeContainer.d.ts +1 -1
- package/dist/esm/components/EventBadgeContainer.js +1 -1
- package/dist/esm/components/Exhibitor.js +1 -1
- package/dist/esm/components/HeatmapLegendContainer.d.ts +1 -1
- package/dist/esm/components/HeatmapLegendContainer.js +1 -1
- package/dist/esm/components/HighlightTextContainer.js +1 -1
- package/dist/esm/components/Kiosk/KioskStore.d.ts +1 -1
- package/dist/esm/components/Kiosk/SetKiosk/Confirm/ConfirmDialog.js +1 -1
- package/dist/esm/components/Kiosk/SetKiosk/SetKioskComponent.js +1 -1
- package/dist/esm/components/Kiosk/SetKiosk/SetKioskForm.js +1 -1
- package/dist/esm/components/Kiosk/SetKiosk/types.d.ts +1 -2
- package/dist/esm/components/Kiosk/ShowKiosk.js +1 -1
- package/dist/esm/components/LanguageRowContainer.js +1 -1
- package/dist/esm/components/Layout.d.ts +1 -1
- package/dist/esm/components/Layout.js +1 -1
- package/dist/esm/components/LevelBadgeContainer.d.ts +1 -1
- package/dist/esm/components/LevelBadgeContainer.js +1 -1
- package/dist/esm/components/LevelSelectorContainer.js +1 -1
- package/dist/esm/components/List.js +1 -1
- package/dist/esm/components/Map/Map.js +1 -1
- package/dist/esm/components/MapControlsContainer.js +1 -1
- package/dist/esm/components/Menu.js +1 -1
- package/dist/esm/components/MobileToggleButtonContainer.js +1 -1
- package/dist/esm/components/ModalContainer.d.ts +6 -6
- package/dist/esm/components/ModalContainer.js +1 -1
- package/dist/esm/components/MultiSelectGroupsContainer.d.ts +1 -1
- package/dist/esm/components/MultiSelectGroupsContainer.js +1 -1
- package/dist/esm/components/OverlayGripContainer.js +1 -1
- package/dist/esm/components/RebookingNotesContainer.d.ts +1 -1
- package/dist/esm/components/RebookingNotesContainer.js +1 -1
- package/dist/esm/components/RebookingRadioGroupContainer.d.ts +1 -1
- package/dist/esm/components/RebookingRadioGroupContainer.js +1 -1
- package/dist/esm/components/RoutePlanner/RoutePlannerStopItem.js +1 -1
- package/dist/esm/components/ScrollableRowContainer.d.ts +1 -1
- package/dist/esm/components/ScrollableRowContainer.js +1 -1
- package/dist/esm/components/ShareContainer.js +1 -1
- package/dist/esm/components/ShowMoreButtonContainer.d.ts +1 -1
- package/dist/esm/components/ShowMoreButtonContainer.js +1 -1
- package/dist/esm/components/SidebarActionsContainer.d.ts +1 -1
- package/dist/esm/components/SidebarActionsContainer.js +1 -1
- package/dist/esm/components/SimpleRowContainer.d.ts +1 -1
- package/dist/esm/components/SimpleRowContainer.js +1 -1
- package/dist/esm/components/Wayfinding.js +1 -1
- package/dist/esm/components/WayfindingFloorSelectorContainer.d.ts +1 -1
- package/dist/esm/components/WayfindingFloorSelectorContainer.js +1 -1
- package/dist/esm/components/WayfindingTemplate.d.ts +2 -2
- package/dist/esm/components/WayfindingTemplate.js +1 -1
- package/dist/esm/components/gps/GpsPermissionRequest.js +1 -1
- package/dist/esm/components/heatmap-legend-ticks.d.ts +1 -1
- package/dist/esm/components/index.d.ts +38 -38
- package/dist/esm/components/index.js +1 -1
- package/dist/esm/renderer/RendererService.d.ts +13 -1
- package/dist/esm/renderer/RendererService.js +1 -1
- package/package.json +10 -25
- package/dist/browser/ShowKiosk-BycLuCIL.js +0 -33
- package/dist/browser/components-DIKAAFoZ.js +0 -6546
- package/dist/esm/storybook/contexts/ResponsiveClassContext.d.ts +0 -3
- package/dist/esm/storybook/contexts/ResponsiveClassContext.js +0 -1
- package/dist/esm/storybook/decorators/StoryWrapper.d.ts +0 -5
- package/dist/esm/storybook/decorators/StoryWrapper.js +0 -1
- package/dist/esm/storybook/decorators/WithResize.d.ts +0 -4
- package/dist/esm/storybook/decorators/WithResize.js +0 -1
- package/dist/esm/storybook/store/index.stub.d.ts +0 -24
- package/dist/esm/storybook/store/index.stub.js +0 -1
- package/dist/esm/ui/Alert/Alert.d.ts +0 -20
- package/dist/esm/ui/Alert/Alert.js +0 -1
- package/dist/esm/ui/Alert/index.d.ts +0 -3
- package/dist/esm/ui/Alert/index.js +0 -1
- package/dist/esm/ui/Autocomplete/Autocomplete.d.ts +0 -21
- package/dist/esm/ui/Autocomplete/Autocomplete.js +0 -1
- package/dist/esm/ui/Autocomplete/index.d.ts +0 -3
- package/dist/esm/ui/Autocomplete/index.js +0 -1
- package/dist/esm/ui/Badge/Badge.d.ts +0 -14
- package/dist/esm/ui/Badge/Badge.js +0 -1
- package/dist/esm/ui/Badge/index.d.ts +0 -3
- package/dist/esm/ui/Badge/index.js +0 -1
- package/dist/esm/ui/Button/Button.d.ts +0 -24
- package/dist/esm/ui/Button/Button.js +0 -1
- package/dist/esm/ui/Button/index.d.ts +0 -3
- package/dist/esm/ui/Button/index.js +0 -1
- package/dist/esm/ui/Checkbox/Checkbox.d.ts +0 -19
- package/dist/esm/ui/Checkbox/Checkbox.js +0 -1
- package/dist/esm/ui/Checkbox/index.d.ts +0 -3
- package/dist/esm/ui/Checkbox/index.js +0 -1
- package/dist/esm/ui/CheckboxButton/CheckboxButton.d.ts +0 -12
- package/dist/esm/ui/CheckboxButton/CheckboxButton.js +0 -1
- package/dist/esm/ui/CheckboxButton/index.d.ts +0 -3
- package/dist/esm/ui/CheckboxButton/index.js +0 -1
- package/dist/esm/ui/DownloadList/DownloadList.d.ts +0 -15
- package/dist/esm/ui/DownloadList/DownloadList.js +0 -1
- package/dist/esm/ui/DownloadList/index.d.ts +0 -3
- package/dist/esm/ui/DownloadList/index.js +0 -1
- package/dist/esm/ui/Draggable/Draggable.d.ts +0 -9
- package/dist/esm/ui/Draggable/Draggable.js +0 -1
- package/dist/esm/ui/Draggable/index.d.ts +0 -3
- package/dist/esm/ui/Draggable/index.js +0 -1
- package/dist/esm/ui/EntityItem/EntityItem.d.ts +0 -46
- package/dist/esm/ui/EntityItem/EntityItem.js +0 -1
- package/dist/esm/ui/EntityItem/index.d.ts +0 -3
- package/dist/esm/ui/EntityItem/index.js +0 -1
- package/dist/esm/ui/EventBadge/EventBadge.d.ts +0 -13
- package/dist/esm/ui/EventBadge/EventBadge.js +0 -1
- package/dist/esm/ui/EventBadge/index.d.ts +0 -3
- package/dist/esm/ui/EventBadge/index.js +0 -1
- package/dist/esm/ui/HeatmapLegend/HeatmapLegend.d.ts +0 -15
- package/dist/esm/ui/HeatmapLegend/HeatmapLegend.js +0 -1
- package/dist/esm/ui/HeatmapLegend/index.d.ts +0 -3
- package/dist/esm/ui/HeatmapLegend/index.js +0 -1
- package/dist/esm/ui/HighlightText/HighlightText.d.ts +0 -7
- package/dist/esm/ui/HighlightText/HighlightText.js +0 -1
- package/dist/esm/ui/HighlightText/index.d.ts +0 -2
- package/dist/esm/ui/HighlightText/index.js +0 -1
- package/dist/esm/ui/LevelBadge/LevelBadge.d.ts +0 -9
- package/dist/esm/ui/LevelBadge/LevelBadge.js +0 -1
- package/dist/esm/ui/LevelBadge/index.d.ts +0 -3
- package/dist/esm/ui/LevelBadge/index.js +0 -1
- package/dist/esm/ui/LevelSelector/LevelSelector.d.ts +0 -19
- package/dist/esm/ui/LevelSelector/LevelSelector.js +0 -1
- package/dist/esm/ui/LevelSelector/index.d.ts +0 -3
- package/dist/esm/ui/LevelSelector/index.js +0 -1
- package/dist/esm/ui/MapControls/MapControls.d.ts +0 -33
- package/dist/esm/ui/MapControls/MapControls.js +0 -1
- package/dist/esm/ui/MapControls/index.d.ts +0 -3
- package/dist/esm/ui/MapControls/index.js +0 -1
- package/dist/esm/ui/MobileToggleButton/MobileToggleButton.d.ts +0 -12
- package/dist/esm/ui/MobileToggleButton/MobileToggleButton.js +0 -1
- package/dist/esm/ui/MobileToggleButton/index.d.ts +0 -3
- package/dist/esm/ui/MobileToggleButton/index.js +0 -1
- package/dist/esm/ui/Modal/Modal.d.ts +0 -34
- package/dist/esm/ui/Modal/Modal.js +0 -1
- package/dist/esm/ui/Modal/index.d.ts +0 -3
- package/dist/esm/ui/Modal/index.js +0 -1
- package/dist/esm/ui/MultiSelectGroups/MultiSelectGroups.d.ts +0 -37
- package/dist/esm/ui/MultiSelectGroups/MultiSelectGroups.js +0 -1
- package/dist/esm/ui/MultiSelectGroups/index.d.ts +0 -3
- package/dist/esm/ui/MultiSelectGroups/index.js +0 -1
- package/dist/esm/ui/OverlayGrip/OverlayGrip.d.ts +0 -11
- package/dist/esm/ui/OverlayGrip/OverlayGrip.js +0 -1
- package/dist/esm/ui/OverlayGrip/index.d.ts +0 -3
- package/dist/esm/ui/OverlayGrip/index.js +0 -1
- package/dist/esm/ui/PermissionNotice/PermissionNotice.d.ts +0 -16
- package/dist/esm/ui/PermissionNotice/PermissionNotice.js +0 -1
- package/dist/esm/ui/PermissionNotice/index.d.ts +0 -3
- package/dist/esm/ui/PermissionNotice/index.js +0 -1
- package/dist/esm/ui/Radio/Radio.d.ts +0 -15
- package/dist/esm/ui/Radio/Radio.js +0 -1
- package/dist/esm/ui/Radio/index.d.ts +0 -3
- package/dist/esm/ui/Radio/index.js +0 -1
- package/dist/esm/ui/RebookingNotes/RebookingNotes.d.ts +0 -11
- package/dist/esm/ui/RebookingNotes/RebookingNotes.js +0 -1
- package/dist/esm/ui/RebookingNotes/index.d.ts +0 -3
- package/dist/esm/ui/RebookingNotes/index.js +0 -1
- package/dist/esm/ui/RebookingRadioGroup/RebookingRadioGroup.d.ts +0 -17
- package/dist/esm/ui/RebookingRadioGroup/RebookingRadioGroup.js +0 -1
- package/dist/esm/ui/RebookingRadioGroup/index.d.ts +0 -3
- package/dist/esm/ui/RebookingRadioGroup/index.js +0 -1
- package/dist/esm/ui/ScrollableRow/ScrollableRow.d.ts +0 -21
- package/dist/esm/ui/ScrollableRow/ScrollableRow.js +0 -1
- package/dist/esm/ui/ScrollableRow/index.d.ts +0 -3
- package/dist/esm/ui/ScrollableRow/index.js +0 -1
- package/dist/esm/ui/Share/Share.d.ts +0 -22
- package/dist/esm/ui/Share/Share.js +0 -1
- package/dist/esm/ui/Share/index.d.ts +0 -3
- package/dist/esm/ui/Share/index.js +0 -1
- package/dist/esm/ui/ShowMoreButton/ShowMoreButton.d.ts +0 -11
- package/dist/esm/ui/ShowMoreButton/ShowMoreButton.js +0 -1
- package/dist/esm/ui/ShowMoreButton/index.d.ts +0 -3
- package/dist/esm/ui/ShowMoreButton/index.js +0 -1
- package/dist/esm/ui/SidebarActions/SidebarActions.d.ts +0 -26
- package/dist/esm/ui/SidebarActions/SidebarActions.js +0 -1
- package/dist/esm/ui/SidebarActions/index.d.ts +0 -3
- package/dist/esm/ui/SidebarActions/index.js +0 -1
- package/dist/esm/ui/SimpleRow/SimpleRow.d.ts +0 -15
- package/dist/esm/ui/SimpleRow/SimpleRow.js +0 -1
- package/dist/esm/ui/SimpleRow/index.d.ts +0 -3
- package/dist/esm/ui/SimpleRow/index.js +0 -1
- package/dist/esm/ui/Spinner/Spinner.d.ts +0 -9
- package/dist/esm/ui/Spinner/Spinner.js +0 -1
- package/dist/esm/ui/Spinner/index.d.ts +0 -3
- package/dist/esm/ui/Spinner/index.js +0 -1
- package/dist/esm/ui/ToggleButton/ToggleButton.d.ts +0 -17
- package/dist/esm/ui/ToggleButton/ToggleButton.js +0 -1
- package/dist/esm/ui/ToggleButton/index.d.ts +0 -3
- package/dist/esm/ui/ToggleButton/index.js +0 -1
- package/dist/esm/ui/ToggleSwitch/ToggleSwitch.d.ts +0 -12
- package/dist/esm/ui/ToggleSwitch/ToggleSwitch.js +0 -1
- package/dist/esm/ui/ToggleSwitch/index.d.ts +0 -3
- package/dist/esm/ui/ToggleSwitch/index.js +0 -1
- package/dist/esm/ui/TouchHand/TouchHand.d.ts +0 -5
- package/dist/esm/ui/TouchHand/TouchHand.js +0 -1
- package/dist/esm/ui/TouchHand/index.d.ts +0 -2
- package/dist/esm/ui/TouchHand/index.js +0 -1
- package/dist/esm/ui/WayfindingFloorSelector/WayfindingFloorSelector.d.ts +0 -24
- package/dist/esm/ui/WayfindingFloorSelector/WayfindingFloorSelector.js +0 -1
- package/dist/esm/ui/WayfindingFloorSelector/index.d.ts +0 -3
- package/dist/esm/ui/WayfindingFloorSelector/index.js +0 -1
- package/dist/esm/ui/shared/hooks/useOnClickOutside.d.ts +0 -14
- package/dist/esm/ui/shared/hooks/useOnClickOutside.js +0 -1
- package/dist/esm/ui/shared/hooks/useOnEscape.d.ts +0 -14
- package/dist/esm/ui/shared/hooks/useOnEscape.js +0 -1
- package/dist/esm/ui/shared/interactive.d.ts +0 -2
- package/dist/esm/ui/shared/interactive.js +0 -1
|
@@ -1,80 +1,80 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
e.SENTRY_RELEASE = { id: "3.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.21.1" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
|
6
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "265d3395-df91-4819-b9ef-beb8a32c0241", e._sentryDebugIdIdentifier = "sentry-dbid-265d3395-df91-4819-b9ef-beb8a32c0241");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e } from "./rolldown-runtime-
|
|
10
|
-
import { A as t, v as n } from "./i18n-
|
|
11
|
-
import { t as r } from "./react-
|
|
12
|
-
import { r as i, t as a } from "./loadImage-
|
|
13
|
-
import { At as o,
|
|
9
|
+
import { r as e } from "./rolldown-runtime-foRd1umF.js";
|
|
10
|
+
import { A as t, v as n } from "./i18n-oXBjISpK.js";
|
|
11
|
+
import { t as r } from "./react-DsyxxgJv.js";
|
|
12
|
+
import { r as i, t as a } from "./loadImage-Dkh3AoGR.js";
|
|
13
|
+
import { At as o, Ct as s, D as c, Dt as l, E as u, Et as d, It as f, Jt as p, Mt as m, Nt as h, O as g, Ot as _, Pt as v, T as y, Vt as b, a as x, an as S, c as C, cn as w, dn as T, dt as E, fn as D, gn as O, ht as k, in as A, k as ee, kt as j, ln as M, mn as N, mt as te, on as P, pn as F, s as I, t as L, tn as R, un as ne, ut as z, v as re, wt as B, xt as ie, yt as ae, zt as V } from "./store-BEkesuqa.js";
|
|
14
14
|
//#region src/components/Map/traffic/trafficLayers.ts
|
|
15
|
-
var
|
|
16
|
-
function
|
|
15
|
+
var oe = "traffic_route", se = "traffic_route_stop", ce = "traffic_vehicles", le = "build_route_lines", ue = "build_route_dots", de = 5;
|
|
16
|
+
function fe() {
|
|
17
17
|
let e = [];
|
|
18
|
-
for (let t = 0; t <
|
|
19
|
-
name:
|
|
18
|
+
for (let t = 0; t < de; t++) e.push({
|
|
19
|
+
name: pe(t),
|
|
20
20
|
children: []
|
|
21
21
|
}), e.push({
|
|
22
|
-
name:
|
|
22
|
+
name: me(t),
|
|
23
23
|
children: [],
|
|
24
24
|
interactive: !0
|
|
25
25
|
});
|
|
26
26
|
return e.push({
|
|
27
|
-
name:
|
|
27
|
+
name: ce,
|
|
28
28
|
children: [],
|
|
29
29
|
interactive: !0
|
|
30
30
|
}), e.push({
|
|
31
|
-
name:
|
|
31
|
+
name: le,
|
|
32
32
|
children: []
|
|
33
33
|
}), e.push({
|
|
34
|
-
name:
|
|
34
|
+
name: ue,
|
|
35
35
|
children: [],
|
|
36
36
|
interactive: !0
|
|
37
37
|
}), e;
|
|
38
38
|
}
|
|
39
|
+
function pe(e) {
|
|
40
|
+
return `${oe}_${e + 1}`;
|
|
41
|
+
}
|
|
39
42
|
function me(e) {
|
|
40
43
|
return `${se}_${e + 1}`;
|
|
41
44
|
}
|
|
42
|
-
function he(
|
|
43
|
-
return
|
|
45
|
+
function he() {
|
|
46
|
+
return RegExp(`^${oe}_\\d+$`);
|
|
44
47
|
}
|
|
45
48
|
function ge() {
|
|
46
49
|
return RegExp(`^${se}_\\d+$`);
|
|
47
50
|
}
|
|
48
|
-
function _e() {
|
|
49
|
-
return RegExp(`^${ce}_\\d+$`);
|
|
50
|
-
}
|
|
51
51
|
//#endregion
|
|
52
52
|
//#region src/components/Map/drawing/config/config-booth-badge-eligibility.ts
|
|
53
|
-
var
|
|
54
|
-
function
|
|
53
|
+
var _e = /* @__PURE__ */ e(S(), 1);
|
|
54
|
+
function ve(e) {
|
|
55
55
|
return e.hideExhibitorBoothNumber || e.hideBoothBadges || !e.hasExhibitors ? !1 : e.noLabels || !e.hideLogoInBooth && e.hasLogoInBooth;
|
|
56
56
|
}
|
|
57
57
|
//#endregion
|
|
58
58
|
//#region src/components/Map/drawing/config/config-booth-badge.ts
|
|
59
|
-
var
|
|
60
|
-
function
|
|
61
|
-
return e.length <=
|
|
59
|
+
var ye = .5, be = .3, xe = 15, Se = 24, Ce = 30, we = 12, Te = .8, Ee = document.createElement("canvas").getContext("2d");
|
|
60
|
+
function De(e) {
|
|
61
|
+
return e.length <= xe ? e : e.slice(0, xe - 1) + "…";
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Oe(e) {
|
|
64
64
|
var t, n;
|
|
65
65
|
if (!((t = e.paths) != null && t.length)) return [];
|
|
66
66
|
let r = ((n = e.layer) == null ? void 0 : n.name) || "", i = [];
|
|
67
|
-
for (let t of e.paths) for (let e of
|
|
67
|
+
for (let t of e.paths) for (let e of R(t.index, r)) i.push(e);
|
|
68
68
|
return i;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
let t =
|
|
72
|
-
return t.length ?
|
|
70
|
+
function ke(e) {
|
|
71
|
+
let t = Oe(e);
|
|
72
|
+
return t.length ? w.fromPoints(t.flat().map(([e, t]) => ({
|
|
73
73
|
x: e,
|
|
74
74
|
y: t
|
|
75
75
|
}))) : null;
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function Ae(e) {
|
|
78
78
|
let t = [], n = [];
|
|
79
79
|
for (let r of e) {
|
|
80
80
|
let e = t.length;
|
|
@@ -93,16 +93,16 @@ function je(e) {
|
|
|
93
93
|
e + 2
|
|
94
94
|
]);
|
|
95
95
|
}
|
|
96
|
-
return new
|
|
96
|
+
return new T(t, n);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function H(e, t, n) {
|
|
99
99
|
return n.containsPoint({
|
|
100
100
|
x: e,
|
|
101
101
|
y: t
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
if (!e.length || !
|
|
104
|
+
function je(e, t, n, r, i, a, o, s) {
|
|
105
|
+
if (!e.length || !H(n, r, t)) return o;
|
|
106
106
|
let c = {
|
|
107
107
|
x: n,
|
|
108
108
|
y: r
|
|
@@ -110,30 +110,30 @@ function Me(e, t, n, r, i, a, o, s) {
|
|
|
110
110
|
for (let e = 0; e < 10; e++) {
|
|
111
111
|
let e = (l + u) / 2, o = i * e, d = a * e;
|
|
112
112
|
[
|
|
113
|
-
|
|
113
|
+
F({
|
|
114
114
|
x: n + o,
|
|
115
115
|
y: r
|
|
116
116
|
}, s, c),
|
|
117
|
-
|
|
117
|
+
F({
|
|
118
118
|
x: n,
|
|
119
119
|
y: r + d
|
|
120
120
|
}, s, c),
|
|
121
|
-
|
|
121
|
+
F({
|
|
122
122
|
x: n + o,
|
|
123
123
|
y: r + d
|
|
124
124
|
}, s, c)
|
|
125
|
-
].every((e) =>
|
|
125
|
+
].every((e) => H(e.x, e.y, t)) ? l = e : u = e;
|
|
126
126
|
}
|
|
127
127
|
return l;
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function Me(e) {
|
|
130
130
|
var t;
|
|
131
|
-
return (t =
|
|
131
|
+
return (t = ke(e)) == null ? e.rect : t;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function Ne(e, t, n, r, i, a) {
|
|
134
134
|
var o;
|
|
135
135
|
if (t.length) {
|
|
136
|
-
let o =
|
|
136
|
+
let o = Me(e), s = {
|
|
137
137
|
x: i > 0 ? o.min.x : o.max.x,
|
|
138
138
|
y: a > 0 ? o.min.y : o.max.y
|
|
139
139
|
}, c = /* @__PURE__ */ new Set(), l = null, u = Infinity;
|
|
@@ -142,7 +142,7 @@ function Pe(e, t, n, r, i, a) {
|
|
|
142
142
|
if (c.has(e)) continue;
|
|
143
143
|
c.add(e);
|
|
144
144
|
let o = t[0] + r * i, d = t[1] + r * a;
|
|
145
|
-
if (
|
|
145
|
+
if (H(o, d, n)) {
|
|
146
146
|
let e = Math.abs(o - s.x) + Math.abs(d - s.y);
|
|
147
147
|
e < u && (u = e, l = {
|
|
148
148
|
x: o,
|
|
@@ -153,7 +153,7 @@ function Pe(e, t, n, r, i, a) {
|
|
|
153
153
|
if (l) return l;
|
|
154
154
|
}
|
|
155
155
|
let s = i > 0 ? e.rect.min.x + r : e.rect.max.x - r, c = a > 0 ? e.rect.min.y + r : e.rect.max.y - r, l = (o = e.rotate) == null ? 0 : o;
|
|
156
|
-
return l ?
|
|
156
|
+
return l ? F({
|
|
157
157
|
x: s,
|
|
158
158
|
y: c
|
|
159
159
|
}, l, e.rect.center) : {
|
|
@@ -161,89 +161,89 @@ function Pe(e, t, n, r, i, a) {
|
|
|
161
161
|
y: c
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function U(e) {
|
|
165
165
|
return e && e !== "none" ? e : void 0;
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function Pe(e) {
|
|
168
168
|
var t;
|
|
169
|
-
let n =
|
|
170
|
-
return ((t = e.paths) == null ? void 0 : t.length) > 1 &&
|
|
169
|
+
let n = U(e.borderColor) || U(O.boothBorderColor) || O.colors.booths.default;
|
|
170
|
+
return ((t = e.paths) == null ? void 0 : t.length) > 1 && U(e.paths[e.paths.length - 1].color) || n;
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function Fe(e, t) {
|
|
173
173
|
var r;
|
|
174
|
-
let i =
|
|
175
|
-
|
|
176
|
-
let
|
|
177
|
-
let t = e ?
|
|
178
|
-
return Math.min(t > 0 ? t *
|
|
179
|
-
}, S =
|
|
180
|
-
let e =
|
|
181
|
-
|
|
182
|
-
let n = x(
|
|
183
|
-
|
|
174
|
+
let i = De(t.title || t.name), a = Pe(t), o = re((0, _e.default)(a).hex()), s = window.devicePixelRatio || 1, c = te();
|
|
175
|
+
Ee.font = b(Ce, c);
|
|
176
|
+
let u = Ee.measureText(i).width, f = Math.ceil(u + we * 2), p = (t.borderWidth || L.borderWidth) / 2, h = f * Te, g = 54 * Te, v = t.rect.size.width, y = t.rect.size.height, x = (e) => {
|
|
177
|
+
let t = e ? y : v, n = e ? v : y;
|
|
178
|
+
return Math.min(t > 0 ? t * ye / h : Infinity, n > 0 ? n * be / g : Infinity);
|
|
179
|
+
}, S = Oe(t), w = Ae(S), T = (r = t.rotate) == null ? 0 : r, E = 0, D, O, A, ee = () => {
|
|
180
|
+
let e = Ne(t, S, w, p, E === 0 || E === 3 ? 1 : -1, E === 0 || E === 1 ? 1 : -1);
|
|
181
|
+
D = e.x, O = e.y;
|
|
182
|
+
let n = x(E === 1 || E === 3);
|
|
183
|
+
A = je(S, w, D, O, h, g, n, T);
|
|
184
184
|
};
|
|
185
|
-
|
|
186
|
-
let
|
|
185
|
+
ee();
|
|
186
|
+
let j = (e, t) => {
|
|
187
187
|
let n = e / 2, r = t / 2;
|
|
188
|
-
return new ne(
|
|
189
|
-
x:
|
|
190
|
-
y:
|
|
191
|
-
},
|
|
192
|
-
x:
|
|
193
|
-
y:
|
|
188
|
+
return new ne(F({
|
|
189
|
+
x: D + n,
|
|
190
|
+
y: O + r
|
|
191
|
+
}, T, {
|
|
192
|
+
x: D,
|
|
193
|
+
y: O
|
|
194
194
|
}), {
|
|
195
195
|
x: e,
|
|
196
196
|
y: t
|
|
197
|
-
},
|
|
198
|
-
},
|
|
199
|
-
let t = Math.min(e,
|
|
200
|
-
return
|
|
201
|
-
},
|
|
202
|
-
|
|
203
|
-
let I =
|
|
197
|
+
}, T);
|
|
198
|
+
}, M = (e) => {
|
|
199
|
+
let t = Math.min(e, A);
|
|
200
|
+
return j(h * t, g * t);
|
|
201
|
+
}, N = k(c, e.fontUrls), P = d(j(1, 1), a);
|
|
202
|
+
P.hidden = !0, P.dim = !t.skipDim && void 0;
|
|
203
|
+
let I = l(_([[i], []], o, 0, [N, N]), j(1, 1), [0, 0], {
|
|
204
204
|
horizontal: "center",
|
|
205
205
|
vertical: "center"
|
|
206
206
|
});
|
|
207
207
|
I.hidden = !0, I.dim = !t.skipDim && void 0;
|
|
208
|
-
let
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
})),
|
|
208
|
+
let R = () => !!(t.layer && !t.layer.visible), z = [];
|
|
209
|
+
z.push(n(() => t.skipDim, (t) => {
|
|
210
|
+
P.dim = !t && void 0, I.dim = !t && void 0, e.update(P, I);
|
|
211
|
+
})), z.push(n(() => {
|
|
212
212
|
var e, n;
|
|
213
213
|
return (e = (n = t.layer) == null ? void 0 : n.visible) == null || e;
|
|
214
214
|
}, (t) => {
|
|
215
|
-
|
|
215
|
+
P.hidden = !t, I.hidden = !t, e.update(P, I);
|
|
216
216
|
}));
|
|
217
|
-
let
|
|
218
|
-
|
|
219
|
-
},
|
|
220
|
-
let t = Math.min(e,
|
|
221
|
-
I.lines[0].fontSize =
|
|
217
|
+
let B = (e) => {
|
|
218
|
+
P.shape = m(M(e)), P.hidden = R();
|
|
219
|
+
}, V = (e) => {
|
|
220
|
+
let t = Math.min(e, A);
|
|
221
|
+
I.lines[0].fontSize = Se / s * t, I.bounds = m(M(e)), I.hidden = R();
|
|
222
222
|
};
|
|
223
|
-
return e.onPtScale(`badge-bg-${t.id}`, (e) => (
|
|
224
|
-
|
|
225
|
-
let n =
|
|
226
|
-
n !== void 0 && (
|
|
223
|
+
return e.onPtScale(`badge-bg-${t.id}`, (e) => (B(e), P)), e.onPtScale(`badge-text-${t.id}`, (e) => (V(e), I)), z.push(n(() => C.mapSettings, ({ roll: n }) => {
|
|
224
|
+
ae(n == null ? 0 : n) && e.onRoll(`badge-roll-${t.id}`, (t) => {
|
|
225
|
+
let n = ie(t, T);
|
|
226
|
+
n !== void 0 && (T += n, E = (E + (n > 0 ? 1 : 3)) % 4, ee(), B(e.scale), V(e.scale), e.update(P, I));
|
|
227
227
|
});
|
|
228
228
|
}, { fireImmediately: !0 })), {
|
|
229
|
-
bg:
|
|
229
|
+
bg: P,
|
|
230
230
|
text: I,
|
|
231
231
|
dispose: () => {
|
|
232
|
-
|
|
232
|
+
z.forEach((e) => e()), z.length = 0;
|
|
233
233
|
}
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function Ie(e, t, n) {
|
|
237
237
|
let r = [], i = [], a = [];
|
|
238
|
-
for (let t of n) if (t instanceof
|
|
238
|
+
for (let t of n) if (t instanceof p && ve({
|
|
239
239
|
hideExhibitorBoothNumber: A.hideExhibitorBoothNumber,
|
|
240
240
|
hideBoothBadges: A.hideBoothBadges,
|
|
241
|
-
hideLogoInBooth:
|
|
241
|
+
hideLogoInBooth: C.hideLogoInBooth,
|
|
242
242
|
noLabels: t.noLabels,
|
|
243
243
|
hasExhibitors: t.exhibitors.length > 0,
|
|
244
244
|
hasLogoInBooth: t.exhibitors.some((e) => e.logoInBooth && e.logo)
|
|
245
245
|
})) {
|
|
246
|
-
let { bg: n, text: o, dispose: s } =
|
|
246
|
+
let { bg: n, text: o, dispose: s } = Fe(e, t);
|
|
247
247
|
r.push(n), i.push(o), a.push(s);
|
|
248
248
|
}
|
|
249
249
|
let o = () => {
|
|
@@ -268,10 +268,10 @@ function Le(e, t, n) {
|
|
|
268
268
|
}
|
|
269
269
|
//#endregion
|
|
270
270
|
//#region src/components/Map/drawing/config/config-markers.ts
|
|
271
|
-
var
|
|
272
|
-
function
|
|
273
|
-
let t = [], r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = [], o = e.scene.rootLayer.children.find((e) => e.name ===
|
|
274
|
-
async function
|
|
271
|
+
var Le = "_selected", Re = "markers";
|
|
272
|
+
function ze(e) {
|
|
273
|
+
let t = [], r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = [], o = e.scene.rootLayer.children.find((e) => e.name === Re);
|
|
274
|
+
async function c(e) {
|
|
275
275
|
let t = [];
|
|
276
276
|
e.forEach((e) => {
|
|
277
277
|
let { name: n, content: i, width: a, height: o, scale: s } = e;
|
|
@@ -291,109 +291,109 @@ function Be(e) {
|
|
|
291
291
|
t.push(l), c.src = i, c.crossOrigin = "anonymous";
|
|
292
292
|
}), await Promise.all(t);
|
|
293
293
|
}
|
|
294
|
-
let
|
|
294
|
+
let l = (e) => `marker-ptScaleHandlers-${e.id}`, u = (e) => `marker-rollHandlers-${e.id}`, d = (t, n) => {
|
|
295
295
|
e.onPtScale(n, (e) => {
|
|
296
296
|
let { center: n, rotation: r } = t.bounds, { width: i, height: a } = t.source;
|
|
297
|
-
return t.bounds =
|
|
297
|
+
return t.bounds = m(v(n.x, n.y, i, a, e, r)), t;
|
|
298
298
|
});
|
|
299
299
|
}, f = (t, n) => {
|
|
300
300
|
e.onRoll(n, (e) => (t.bounds.rotation = e, t));
|
|
301
301
|
};
|
|
302
|
-
function
|
|
303
|
-
let t =
|
|
302
|
+
function p() {
|
|
303
|
+
let t = I.routeStore.markersData.markers;
|
|
304
304
|
if (!t.length) return;
|
|
305
305
|
a = [];
|
|
306
|
-
let n = e.scale,
|
|
306
|
+
let n = e.scale, c = N(e.angle);
|
|
307
307
|
t.forEach((e) => {
|
|
308
308
|
var t, o;
|
|
309
|
-
let
|
|
310
|
-
if (!
|
|
311
|
-
let
|
|
309
|
+
let l = r.get(e.icon);
|
|
310
|
+
if (!l) return;
|
|
311
|
+
let u = l.scale || window.devicePixelRatio, d = e.icon;
|
|
312
312
|
if (!i.has(d)) {
|
|
313
|
-
let e =
|
|
313
|
+
let e = V(l.img, l.width, l.height, u);
|
|
314
314
|
i.set(d, e);
|
|
315
315
|
}
|
|
316
316
|
let f = i.get(d), p = r.get(e.selectedIcon), m = e.selectedIcon;
|
|
317
317
|
if (!i.has(m)) {
|
|
318
|
-
let e =
|
|
318
|
+
let e = V(p.img, p.width, p.height, u);
|
|
319
319
|
i.set(m, e);
|
|
320
320
|
}
|
|
321
|
-
let h = i.get(m), g = (t = (o =
|
|
321
|
+
let h = i.get(m), g = (t = (o = x.findLayer(e.z)) == null ? void 0 : o.visible) == null || t, _ = v(e.x, e.y, f.width, f.height, n, c), y = v(e.x, e.y, h.width, h.height, n, c), b;
|
|
322
322
|
switch (e.position) {
|
|
323
323
|
case "lefttop":
|
|
324
|
-
|
|
324
|
+
b = [0, 0];
|
|
325
325
|
break;
|
|
326
326
|
case "centertop":
|
|
327
|
-
|
|
327
|
+
b = [.5, 0];
|
|
328
328
|
break;
|
|
329
329
|
case "centerbottom":
|
|
330
|
-
|
|
330
|
+
b = [.5, 1];
|
|
331
331
|
break;
|
|
332
|
-
default:
|
|
332
|
+
default: b = [.5, .5];
|
|
333
333
|
}
|
|
334
|
-
let
|
|
335
|
-
...
|
|
334
|
+
let S = {
|
|
335
|
+
...s(f, _, {
|
|
336
336
|
hidden: !g,
|
|
337
|
-
origin:
|
|
337
|
+
origin: b
|
|
338
338
|
}),
|
|
339
339
|
id: e.id,
|
|
340
|
-
scale:
|
|
341
|
-
},
|
|
342
|
-
...
|
|
340
|
+
scale: u
|
|
341
|
+
}, C = {
|
|
342
|
+
...s(h, y, {
|
|
343
343
|
hidden: !(g && e.active),
|
|
344
|
-
origin:
|
|
344
|
+
origin: b
|
|
345
345
|
}),
|
|
346
|
-
id: `${e.id}${
|
|
347
|
-
scale:
|
|
346
|
+
id: `${e.id}${Le}`,
|
|
347
|
+
scale: u
|
|
348
348
|
};
|
|
349
|
-
a.push(
|
|
349
|
+
a.push(S, C);
|
|
350
350
|
}), o.children = a, a.forEach((e) => {
|
|
351
|
-
d(e,
|
|
351
|
+
d(e, l(e)), f(e, u(e));
|
|
352
352
|
});
|
|
353
353
|
}
|
|
354
354
|
function h() {
|
|
355
355
|
a.forEach((t) => {
|
|
356
|
-
e.ptScaleRegistry.unregisterByName(
|
|
356
|
+
e.ptScaleRegistry.unregisterByName(l(t)), e.rollRegistry.unregisterByName(u(t));
|
|
357
357
|
}), o.children = [], a = [];
|
|
358
358
|
}
|
|
359
359
|
function g() {
|
|
360
|
-
let e =
|
|
360
|
+
let e = I.routeStore.markersData.markers;
|
|
361
361
|
e.length && e.forEach((e) => {
|
|
362
362
|
var t, n;
|
|
363
|
-
let r = a.find((t) => t.id === e.id), i = a.find((t) => t.id === `${e.id}${
|
|
363
|
+
let r = a.find((t) => t.id === e.id), i = a.find((t) => t.id === `${e.id}${Le}`);
|
|
364
364
|
if (!r) return;
|
|
365
|
-
let o = (t = (n =
|
|
365
|
+
let o = (t = (n = x.findLayer(e.z)) == null ? void 0 : n.visible) == null || t;
|
|
366
366
|
e.active ? (r.hidden = !0, i.hidden = !(o && e.active)) : (r.hidden = !o, i.hidden = !0);
|
|
367
367
|
});
|
|
368
368
|
}
|
|
369
|
-
return t.push(n(() => [
|
|
370
|
-
if (!
|
|
369
|
+
return t.push(n(() => [I.routeStore.selectedMarkers, I.layerStore.visible], () => {
|
|
370
|
+
if (!I.routeStore.markersData.markers.length) {
|
|
371
371
|
h(), e.update(o);
|
|
372
372
|
return;
|
|
373
373
|
}
|
|
374
374
|
g(), e.update(...a);
|
|
375
|
-
})), t.push(n(() =>
|
|
376
|
-
|
|
377
|
-
|
|
375
|
+
})), t.push(n(() => I.routeStore.markersData.markers, () => {
|
|
376
|
+
c(I.routeStore.markersData.icons).then(() => {
|
|
377
|
+
p(), e.update(o);
|
|
378
378
|
});
|
|
379
379
|
}, { fireImmediately: !0 })), function() {
|
|
380
380
|
t.forEach((e) => e()), t.length = 0;
|
|
381
381
|
};
|
|
382
382
|
}
|
|
383
|
-
function
|
|
384
|
-
for (let r of
|
|
385
|
-
let i =
|
|
383
|
+
function Be(e, t, n) {
|
|
384
|
+
for (let r of I.routeStore.markersData.markers) {
|
|
385
|
+
let i = I.routeStore.markersData.icons.find((e) => e.name === r.icon);
|
|
386
386
|
if (!i) continue;
|
|
387
387
|
let a = i.width * n * devicePixelRatio, o = i.height * n * devicePixelRatio;
|
|
388
|
-
if (
|
|
389
|
-
let e =
|
|
388
|
+
if (Ve(e, t, r.x, r.y, a, o)) {
|
|
389
|
+
let e = I.layerStore.findLayer(r.z);
|
|
390
390
|
if (!e || e && e.visible) return r;
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
393
|
return null;
|
|
394
394
|
}
|
|
395
|
-
function
|
|
396
|
-
return
|
|
395
|
+
function Ve(e, t, n, r, i, a) {
|
|
396
|
+
return w.fromCenter({
|
|
397
397
|
x: n,
|
|
398
398
|
y: r
|
|
399
399
|
}, {
|
|
@@ -406,32 +406,32 @@ function He(e, t, n, r, i, a) {
|
|
|
406
406
|
}
|
|
407
407
|
//#endregion
|
|
408
408
|
//#region src/components/Map/drawing/config/config-all.ts
|
|
409
|
-
function
|
|
410
|
-
let { defaultLayer: t } =
|
|
409
|
+
function He(e) {
|
|
410
|
+
let { defaultLayer: t } = I.layerStore, { layers: n } = I.layerStore;
|
|
411
411
|
if (t) {
|
|
412
412
|
let e = [...n], r = n.indexOf(t);
|
|
413
413
|
e.splice(r, 1), n = [t, ...e];
|
|
414
414
|
}
|
|
415
|
-
let r = n.filter((e) => !e.rootParent).map((t) =>
|
|
415
|
+
let r = n.filter((e) => !e.rootParent).map((t) => E(t, e));
|
|
416
416
|
return Promise.all(r).then((t) => {
|
|
417
|
-
let n =
|
|
417
|
+
let n = B(g, [], {
|
|
418
418
|
dim: !1,
|
|
419
419
|
interactive: !0
|
|
420
|
-
}), r =
|
|
421
|
-
for (let e of t.flat())
|
|
422
|
-
let { layer: p, cleanup: m } =
|
|
420
|
+
}), r = B(c, [], { dim: !1 }), i = B(Re, []), a = B(ee, [], { dim: !1 }), o = B(u, [], { dim: !1 }), s = B(y, [], { dim: !1 }), l = [], d = [];
|
|
421
|
+
for (let e of t.flat()) f(e.name) ? (e.dim = !1, d.push(e)) : l.push(e);
|
|
422
|
+
let { layer: p, cleanup: m } = Ie(e, "root", I.boothStore.booths);
|
|
423
423
|
return {
|
|
424
424
|
layers: [
|
|
425
|
-
...
|
|
425
|
+
...l,
|
|
426
426
|
...p ? [p] : [],
|
|
427
|
-
...
|
|
428
|
-
...
|
|
427
|
+
...d,
|
|
428
|
+
...fe(),
|
|
429
429
|
i,
|
|
430
430
|
a,
|
|
431
431
|
r,
|
|
432
432
|
o,
|
|
433
433
|
n,
|
|
434
|
-
|
|
434
|
+
s
|
|
435
435
|
],
|
|
436
436
|
cleanup: m
|
|
437
437
|
};
|
|
@@ -439,7 +439,7 @@ function Ue(e) {
|
|
|
439
439
|
}
|
|
440
440
|
//#endregion
|
|
441
441
|
//#region src/components/Map/traffic/UpdateQueue.ts
|
|
442
|
-
var
|
|
442
|
+
var W = /* @__PURE__ */ e(r(), 1), Ue = class {
|
|
443
443
|
constructor() {
|
|
444
444
|
this.queue = [], this.isProcessing = !1, this.rafId = null, this.CHUNK_SIZE = 100, this.TIME_BUDGET = 4;
|
|
445
445
|
}
|
|
@@ -481,7 +481,7 @@ var U = /* @__PURE__ */ e(r(), 1), We = class {
|
|
|
481
481
|
destroy() {
|
|
482
482
|
this.rafId !== null && (cancelAnimationFrame(this.rafId), this.rafId = null), this.queue = [], this.isProcessing = !1;
|
|
483
483
|
}
|
|
484
|
-
},
|
|
484
|
+
}, G = 49, We = `hsl(257, 76%, ${G}%)`, Ge = `hsl(339.903, 82%, ${G}%)`, Ke = `hsl(257, 76%, ${Math.round(G * 1.82)}%)`, K = 4, qe = K, Je = "U", Ye = "R", Xe = "S", Ze = "P", Qe = class {
|
|
485
485
|
constructor() {
|
|
486
486
|
this._state = [[]], this.index = 0, this.pointHashSet = /* @__PURE__ */ new Set(), this.locked = !1, this.storageKey = "expofp_build_route_state", this._selected = 0;
|
|
487
487
|
}
|
|
@@ -520,10 +520,10 @@ var U = /* @__PURE__ */ e(r(), 1), We = class {
|
|
|
520
520
|
instruct() {
|
|
521
521
|
this.log(`How to Build a Route:
|
|
522
522
|
Add Point: Click on the map.
|
|
523
|
-
Apply Smoothing: Press ${
|
|
524
|
-
Apply Simplification: Press ${
|
|
525
|
-
Undo: Press ${
|
|
526
|
-
Enable/Disable Preview: Press ${
|
|
523
|
+
Apply Smoothing: Press ${Ye}.
|
|
524
|
+
Apply Simplification: Press ${Xe}.
|
|
525
|
+
Undo: Press ${Je}.
|
|
526
|
+
Enable/Disable Preview: Press ${Ze}.
|
|
527
527
|
`, 16);
|
|
528
528
|
}
|
|
529
529
|
applyChaikinSmoothing(e, t, n) {
|
|
@@ -585,7 +585,7 @@ Enable/Disable Preview: Press ${Qe}.
|
|
|
585
585
|
let r = e.x, i = e.y, a = t.x, o = t.y, s = n.x, c = n.y;
|
|
586
586
|
return Math.abs((c - o) * r - (s - a) * i + s * o - c * a) / (Math.sqrt((c - o) ** 2 + (s - a) ** 2) || 1e-10);
|
|
587
587
|
}, r = (e, t, n, r) => {
|
|
588
|
-
let i =
|
|
588
|
+
let i = M({
|
|
589
589
|
p0: e,
|
|
590
590
|
p1: t
|
|
591
591
|
}, {
|
|
@@ -623,24 +623,24 @@ Enable/Disable Preview: Press ${Qe}.
|
|
|
623
623
|
this._selected = Math.max(0, Math.min(e, this.points.length - 1));
|
|
624
624
|
}
|
|
625
625
|
};
|
|
626
|
-
function
|
|
627
|
-
let n = (0,
|
|
626
|
+
function $e({ enabled: e, rendererService: t }) {
|
|
627
|
+
let n = (0, W.useRef)(!1), r = (0, W.useRef)(), i = (0, W.useMemo)(() => h(K, We), []), a = (0, W.useMemo)(() => h(K, Ge), []), s = (0, W.useMemo)(() => new Qe(), []), c = (0, W.useRef)(new Ue()), l = (0, W.useMemo)(() => {
|
|
628
628
|
if (!t.scene) return {};
|
|
629
629
|
let e = t.scene.rootLayer.children;
|
|
630
630
|
return {
|
|
631
|
-
linesLayer: e.find((e) => e.name ===
|
|
632
|
-
pointsLayer: e.find((e) => e.name ===
|
|
631
|
+
linesLayer: e.find((e) => e.name === le),
|
|
632
|
+
pointsLayer: e.find((e) => e.name === ue)
|
|
633
633
|
};
|
|
634
|
-
}, [t.scene]),
|
|
635
|
-
if (!(t != null && t.renderer) || !
|
|
636
|
-
let { linesLayer: e, pointsLayer:
|
|
637
|
-
if (!e || !
|
|
638
|
-
let u =
|
|
639
|
-
d ?
|
|
640
|
-
let
|
|
634
|
+
}, [t.scene]), u = (0, W.useCallback)(() => {
|
|
635
|
+
if (!(t != null && t.renderer) || !l || !i || !a) return;
|
|
636
|
+
let { linesLayer: e, pointsLayer: o } = l;
|
|
637
|
+
if (!e || !o) return;
|
|
638
|
+
let u = s.points, d = n.current;
|
|
639
|
+
d ? o.children.length = 0 : o.children = u.map(({ x: e, y: t }, n) => {
|
|
640
|
+
let o = n == s.selected ? a : i;
|
|
641
641
|
return {
|
|
642
|
-
source:
|
|
643
|
-
bounds:
|
|
642
|
+
source: o,
|
|
643
|
+
bounds: m(v(e, t, o.width, o.height, r.current))
|
|
644
644
|
};
|
|
645
645
|
});
|
|
646
646
|
let f = [];
|
|
@@ -648,81 +648,81 @@ function et({ enabled: e, rendererService: t }) {
|
|
|
648
648
|
let t = u[e - 1], n = u[e];
|
|
649
649
|
f.push({
|
|
650
650
|
points: [t, n],
|
|
651
|
-
color: d ?
|
|
652
|
-
width:
|
|
651
|
+
color: d ? We : Ke,
|
|
652
|
+
width: qe
|
|
653
653
|
});
|
|
654
654
|
}
|
|
655
|
-
f.length ? e.children = f : e.children.length = 0,
|
|
655
|
+
f.length ? e.children = f : e.children.length = 0, c.current.add(() => t.update(o, e)), s.instruct(), s.log(JSON.stringify(s.points));
|
|
656
656
|
}, [
|
|
657
657
|
t,
|
|
658
|
-
|
|
659
|
-
|
|
658
|
+
s,
|
|
659
|
+
l,
|
|
660
660
|
i,
|
|
661
661
|
a
|
|
662
|
-
]),
|
|
662
|
+
]), d = (0, W.useCallback)((e) => {
|
|
663
663
|
let t = e.key.toUpperCase();
|
|
664
|
-
|
|
664
|
+
s.execute(() => {
|
|
665
665
|
switch (t) {
|
|
666
|
+
case Je:
|
|
667
|
+
e.preventDefault(), s.undo(), n.current = !1, u();
|
|
668
|
+
break;
|
|
666
669
|
case Ye:
|
|
667
|
-
e.preventDefault(),
|
|
670
|
+
e.preventDefault(), s.applySmoothing(), n.current = !1, u();
|
|
668
671
|
break;
|
|
669
672
|
case Xe:
|
|
670
|
-
e.preventDefault(),
|
|
673
|
+
e.preventDefault(), s.applySimplification(), n.current = !1, u();
|
|
671
674
|
break;
|
|
672
675
|
case Ze:
|
|
673
|
-
e.preventDefault(),
|
|
674
|
-
break;
|
|
675
|
-
case Qe:
|
|
676
|
-
e.preventDefault(), n.current = !n.current, l();
|
|
676
|
+
e.preventDefault(), n.current = !n.current, u();
|
|
677
677
|
break;
|
|
678
678
|
}
|
|
679
679
|
});
|
|
680
|
-
}, [
|
|
681
|
-
if (!
|
|
682
|
-
let { pointsLayer: i } =
|
|
683
|
-
i && (r.current = e,
|
|
680
|
+
}, [s, u]), f = (0, W.useCallback)(({ ptScale: e, sceneId: n }) => {
|
|
681
|
+
if (!j(n) || !(t != null && t.renderer) || !l) return;
|
|
682
|
+
let { pointsLayer: i } = l;
|
|
683
|
+
i && (r.current = e, s.execute(() => {
|
|
684
684
|
let e = i.children, n = [];
|
|
685
|
-
for (let t of e) t.bounds =
|
|
686
|
-
|
|
685
|
+
for (let t of e) t.bounds = m(v(t.bounds.center.x, t.bounds.center.y, t.source.width, t.source.height, r.current)), n.push(t);
|
|
686
|
+
c.current.add(() => t.update(...n));
|
|
687
687
|
}));
|
|
688
688
|
}, [
|
|
689
689
|
t,
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
]),
|
|
693
|
-
|
|
694
|
-
let { point: t } =
|
|
695
|
-
|
|
690
|
+
l,
|
|
691
|
+
s
|
|
692
|
+
]), p = (0, W.useCallback)(({ data: e }) => {
|
|
693
|
+
s.execute(() => {
|
|
694
|
+
let { point: t } = o(e);
|
|
695
|
+
s.add({
|
|
696
696
|
x: t.x,
|
|
697
697
|
y: t.y
|
|
698
|
-
}),
|
|
698
|
+
}), s.select(s.points.length - 1), u();
|
|
699
699
|
});
|
|
700
|
-
}, [
|
|
701
|
-
(0,
|
|
700
|
+
}, [s, u]);
|
|
701
|
+
(0, W.useEffect)(() => {
|
|
702
702
|
let n = t.renderer;
|
|
703
|
-
if (!(!e || !n)) return r.current = t.scale,
|
|
704
|
-
|
|
705
|
-
}), n.events.addEventListener("pointer:click",
|
|
706
|
-
window.removeEventListener("keyup",
|
|
703
|
+
if (!(!e || !n)) return r.current = t.scale, s.execute(() => {
|
|
704
|
+
s.restore(), u();
|
|
705
|
+
}), n.events.addEventListener("pointer:click", p), n.events.addEventListener("viewport:ptscale", f), window.addEventListener("keyup", d), () => {
|
|
706
|
+
window.removeEventListener("keyup", d), n.events.removeEventListener("pointer:click", p), n.events.removeEventListener("viewport:ptscale", f), c.current.destroy();
|
|
707
707
|
};
|
|
708
708
|
}, [
|
|
709
709
|
e,
|
|
710
710
|
t,
|
|
711
|
-
|
|
712
|
-
|
|
711
|
+
s,
|
|
712
|
+
u,
|
|
713
|
+
p,
|
|
713
714
|
f,
|
|
714
|
-
d
|
|
715
|
-
u
|
|
715
|
+
d
|
|
716
716
|
]);
|
|
717
717
|
}
|
|
718
718
|
//#endregion
|
|
719
719
|
//#region src/components/Map/traffic/useManageTraffic.ts
|
|
720
|
-
var
|
|
721
|
-
function
|
|
722
|
-
let o = (0,
|
|
723
|
-
(0,
|
|
724
|
-
let
|
|
725
|
-
async function
|
|
720
|
+
var et = 2, tt = et * 3.5, q = et * 12, nt = q * .7, rt = 8, it = "transport_locations", at = 150, ot = "#a4aab6", st = 1e3, ct = 2e4, lt = 500;
|
|
721
|
+
function ut({ permission: e, rendererService: n, dataJsonUrl: r, websocketUrl: i }) {
|
|
722
|
+
let o = (0, W.useRef)(window.devicePixelRatio), s = (0, W.useRef)(/* @__PURE__ */ new Map()), c = (0, W.useRef)(/* @__PURE__ */ new Map()), l = (0, W.useRef)(), u = (0, W.useRef)(), d = (0, W.useRef)(performance.now()), f = (0, W.useRef)(1), p = (0, W.useRef)(new Ue()), h = (0, W.useRef)(/* @__PURE__ */ new Map()), g = (0, W.useRef)(), _ = (0, W.useRef)(st), y = (0, W.useRef)(/* @__PURE__ */ new Map()), b = (0, W.useRef)();
|
|
723
|
+
(0, W.useEffect)(() => {
|
|
724
|
+
let x;
|
|
725
|
+
async function S() {
|
|
726
726
|
if (!(!e || !n.scene)) try {
|
|
727
727
|
let e;
|
|
728
728
|
try {
|
|
@@ -736,81 +736,81 @@ function lt({ permission: e, rendererService: n, dataJsonUrl: r, websocketUrl: i
|
|
|
736
736
|
console.warn("useManageTraffic failed to get JSON", e);
|
|
737
737
|
}
|
|
738
738
|
if (!e || e != null && e.disabled || e != null && e.error) return;
|
|
739
|
-
o.current =
|
|
740
|
-
let i = new Map(e.routes.map(({ id: e, color: t }) => [e, t])), l = n.scene.rootLayer.children,
|
|
739
|
+
o.current = dt(n.scale);
|
|
740
|
+
let i = new Map(e.routes.map(({ id: e, color: t }) => [e, t])), l = n.scene.rootLayer.children, _ = /* @__PURE__ */ new Map();
|
|
741
741
|
i.forEach((e) => {
|
|
742
|
-
|
|
742
|
+
_.set(e, mt({
|
|
743
743
|
radius: tt,
|
|
744
744
|
color: e,
|
|
745
745
|
scale: window.devicePixelRatio
|
|
746
746
|
}));
|
|
747
747
|
});
|
|
748
|
-
let b =
|
|
749
|
-
e.routes.slice(0,
|
|
748
|
+
let b = he(), S = l.filter((e) => b.test(e.name)), w = ge(), E = l.filter((e) => w.test(e.name));
|
|
749
|
+
e.routes.slice(0, S.length).forEach(({ id: e, color: t, path: r, stops: i, hiddenPoints: a }, s) => {
|
|
750
750
|
h.current.set(e, r);
|
|
751
|
-
let c =
|
|
751
|
+
let c = S[s];
|
|
752
752
|
if (c) {
|
|
753
753
|
var l;
|
|
754
|
-
let e = new Map((l = a == null ? void 0 : a.map((e) => [
|
|
754
|
+
let e = new Map((l = a == null ? void 0 : a.map((e) => [X(e), e])) == null ? [] : l);
|
|
755
755
|
for (let n = 1; n < r.length; n++) {
|
|
756
756
|
let i = r[n - 1], a = r[n];
|
|
757
|
-
e.has(
|
|
757
|
+
e.has(X(i)) || e.has(X(a)) || c.children.push({
|
|
758
758
|
points: [i, a],
|
|
759
759
|
color: t,
|
|
760
|
-
width:
|
|
760
|
+
width: et
|
|
761
761
|
});
|
|
762
762
|
}
|
|
763
|
-
c.children.length &&
|
|
763
|
+
c.children.length && p.current.add(() => n.update(c));
|
|
764
764
|
}
|
|
765
|
-
let u =
|
|
765
|
+
let u = E[s];
|
|
766
766
|
if (u && i != null && i.length) {
|
|
767
|
-
let e =
|
|
767
|
+
let e = _.get(t);
|
|
768
768
|
i.forEach((t) => {
|
|
769
769
|
u.children.push({
|
|
770
770
|
source: e,
|
|
771
|
-
bounds:
|
|
771
|
+
bounds: m(v(t.x, t.y, e.width, e.height, o.current))
|
|
772
772
|
});
|
|
773
|
-
}), u.children.length &&
|
|
773
|
+
}), u.children.length && p.current.add(() => n.update(u));
|
|
774
774
|
}
|
|
775
775
|
});
|
|
776
|
-
let
|
|
777
|
-
|
|
776
|
+
let D = l.find((e) => e.name === ce), O = /* @__PURE__ */ new Map();
|
|
777
|
+
g.current = (e) => {
|
|
778
778
|
try {
|
|
779
|
-
let { ptScale: t, sceneId: r } =
|
|
780
|
-
if (!
|
|
781
|
-
o.current =
|
|
779
|
+
let { ptScale: t, sceneId: r } = ft(e);
|
|
780
|
+
if (!j(r)) return;
|
|
781
|
+
o.current = dt(t);
|
|
782
782
|
let i = [];
|
|
783
|
-
for (let e of
|
|
783
|
+
for (let e of E) {
|
|
784
784
|
let t = e.children;
|
|
785
|
-
for (let e of t) e.bounds =
|
|
785
|
+
for (let e of t) e.bounds = m(v(e.bounds.center.x, e.bounds.center.y, e.source.width, e.source.height, o.current, e.bounds.rotation)), i.push(e);
|
|
786
786
|
}
|
|
787
787
|
let a = [...s.current.values()];
|
|
788
|
-
for (let e of a) e.bounds =
|
|
789
|
-
|
|
788
|
+
for (let e of a) e.bounds = m(v(e.bounds.center.x, e.bounds.center.y, e.source.width, e.source.height, o.current, e.bounds.rotation));
|
|
789
|
+
p.current.add(() => n.update(...i, ...a));
|
|
790
790
|
} catch (e) {
|
|
791
791
|
console.error("ptscale", e);
|
|
792
792
|
}
|
|
793
|
-
}, n.renderer.events.addEventListener("viewport:ptscale",
|
|
793
|
+
}, n.renderer.events.addEventListener("viewport:ptscale", g.current), x = requestAnimationFrame(() => {
|
|
794
794
|
var e;
|
|
795
|
-
(e =
|
|
795
|
+
(e = g.current) == null || e.call(g, n.scale);
|
|
796
796
|
}), i.forEach((e, t) => {
|
|
797
|
-
|
|
797
|
+
O.set(t, ht({
|
|
798
798
|
id: t,
|
|
799
799
|
width: q,
|
|
800
800
|
height: q,
|
|
801
801
|
color: e,
|
|
802
802
|
scale: window.devicePixelRatio
|
|
803
803
|
}));
|
|
804
|
-
}),
|
|
804
|
+
}), O.set(ot, ht({
|
|
805
805
|
id: "orphan",
|
|
806
806
|
width: q,
|
|
807
807
|
height: q,
|
|
808
|
-
color:
|
|
808
|
+
color: ot,
|
|
809
809
|
scale: window.devicePixelRatio
|
|
810
810
|
}));
|
|
811
|
-
let
|
|
811
|
+
let k = null;
|
|
812
812
|
try {
|
|
813
|
-
|
|
813
|
+
k = V(await a(`${t}icons/bus-white.svg`), nt, nt, window.devicePixelRatio);
|
|
814
814
|
} catch (e) {
|
|
815
815
|
console.error(e);
|
|
816
816
|
}
|
|
@@ -821,41 +821,41 @@ function lt({ permission: e, rendererService: n, dataJsonUrl: r, websocketUrl: i
|
|
|
821
821
|
if (r.type !== it) return;
|
|
822
822
|
let i = e.timeStamp || performance.now();
|
|
823
823
|
f.current = Math.round(i - d.current), d.current = i;
|
|
824
|
-
let a = Math.max((t = f.current) == null ?
|
|
824
|
+
let a = Math.max((t = f.current) == null ? lt : t, lt), l = c.current, u = s.current, g = D.children, _ = p.current, b = !1;
|
|
825
825
|
r.data.forEach(({ id: e, x: t, y: r, route_id: i, hidden: s }) => {
|
|
826
826
|
if (l.has(e)) {
|
|
827
827
|
var c;
|
|
828
828
|
(c = l.get(e)) == null || c(), l.delete(e);
|
|
829
829
|
}
|
|
830
|
-
if (s && u.has(e) && u.has(
|
|
830
|
+
if (s && u.has(e) && u.has(J(e))) {
|
|
831
831
|
let t = u.get(e);
|
|
832
832
|
t.hidden = !0;
|
|
833
|
-
let r = u.get(
|
|
833
|
+
let r = u.get(J(e));
|
|
834
834
|
r.hidden = !0, _.add(() => n.update(t, r));
|
|
835
835
|
return;
|
|
836
836
|
}
|
|
837
837
|
if (y.current.set(e, performance.now()), !u.has(e)) {
|
|
838
|
-
let n =
|
|
838
|
+
let n = O.get(i) || O.get(ot), a = {
|
|
839
839
|
id: e,
|
|
840
840
|
source: n,
|
|
841
|
-
bounds:
|
|
841
|
+
bounds: m(v(t, r, n.width, n.height, o.current, 0))
|
|
842
842
|
};
|
|
843
|
-
if (u.set(e, a),
|
|
844
|
-
let n =
|
|
843
|
+
if (u.set(e, a), k) {
|
|
844
|
+
let n = J(e), i = {
|
|
845
845
|
id: n,
|
|
846
|
-
source:
|
|
847
|
-
bounds:
|
|
846
|
+
source: k,
|
|
847
|
+
bounds: m(v(t, r, k.width, k.height, o.current, 0))
|
|
848
848
|
};
|
|
849
|
-
|
|
849
|
+
k.setAttribute("id", n), u.set(n, i), g.push(a, i);
|
|
850
850
|
} else g.push(a);
|
|
851
|
-
|
|
851
|
+
b = !0;
|
|
852
852
|
return;
|
|
853
853
|
}
|
|
854
|
-
let d = u.get(e), f = u.get(
|
|
854
|
+
let d = u.get(e), f = u.get(J(e)), p = d.bounds.center, x = bt(p, {
|
|
855
855
|
x: t,
|
|
856
856
|
y: r
|
|
857
857
|
}, h.current.get(i));
|
|
858
|
-
if (
|
|
858
|
+
if (x.reduce((e, t, n) => n === 0 ? e : e + gt(x[n - 1], t), 0) >= at || document.hidden) _t({
|
|
859
859
|
rendererService: n,
|
|
860
860
|
updateQueue: _,
|
|
861
861
|
vehicle: d,
|
|
@@ -863,14 +863,14 @@ function lt({ permission: e, rendererService: n, dataJsonUrl: r, websocketUrl: i
|
|
|
863
863
|
x: t,
|
|
864
864
|
y: r,
|
|
865
865
|
scale: o.current,
|
|
866
|
-
angle:
|
|
866
|
+
angle: pt(d.bounds.center, {
|
|
867
867
|
x: t,
|
|
868
868
|
y: r
|
|
869
869
|
})
|
|
870
870
|
});
|
|
871
871
|
else {
|
|
872
|
-
let t =
|
|
873
|
-
|
|
872
|
+
let t = xt(x, a, (e) => {
|
|
873
|
+
_t({
|
|
874
874
|
rendererService: n,
|
|
875
875
|
updateQueue: _,
|
|
876
876
|
vehicle: d,
|
|
@@ -883,42 +883,42 @@ function lt({ permission: e, rendererService: n, dataJsonUrl: r, websocketUrl: i
|
|
|
883
883
|
});
|
|
884
884
|
l.set(e, t);
|
|
885
885
|
}
|
|
886
|
-
}),
|
|
886
|
+
}), b && _.add(() => n.update(D));
|
|
887
887
|
} catch (e) {
|
|
888
888
|
console.error("handleSocketMessage", e);
|
|
889
889
|
}
|
|
890
|
-
},
|
|
890
|
+
}, C(), T(e.config ? (Number(e.config.vehicle_inactive_interval) || 20) * 1e3 : ct);
|
|
891
891
|
} catch (e) {
|
|
892
892
|
console.warn(e);
|
|
893
893
|
}
|
|
894
894
|
}
|
|
895
|
-
|
|
896
|
-
function
|
|
895
|
+
S();
|
|
896
|
+
function C() {
|
|
897
897
|
var e, t;
|
|
898
898
|
((e = l.current) == null ? void 0 : e.readyState) === WebSocket.OPEN || ((t = l.current) == null ? void 0 : t.readyState) === WebSocket.CONNECTING || (l.current = new WebSocket(i), l.current.onmessage = u.current, l.current.onopen = () => {
|
|
899
|
-
|
|
899
|
+
_.current = st;
|
|
900
900
|
}, l.current.onclose = () => {
|
|
901
|
-
navigator.onLine && (setTimeout(
|
|
901
|
+
navigator.onLine && (setTimeout(C, _.current), _.current = Math.min(_.current * 2, 3e4));
|
|
902
902
|
});
|
|
903
903
|
}
|
|
904
|
-
function
|
|
905
|
-
|
|
904
|
+
function w() {
|
|
905
|
+
C();
|
|
906
906
|
}
|
|
907
|
-
window.addEventListener("online",
|
|
908
|
-
function
|
|
907
|
+
window.addEventListener("online", w);
|
|
908
|
+
function T(e) {
|
|
909
909
|
clearInterval(b.current), b.current = window.setInterval(() => {
|
|
910
910
|
let t = performance.now(), r = [], i = [];
|
|
911
911
|
y.current.forEach((n, a) => {
|
|
912
912
|
if (t - n < e) return;
|
|
913
913
|
let o = s.current.get(a);
|
|
914
914
|
o && (o.hidden = !0, i.push(o), r.push(a));
|
|
915
|
-
let c =
|
|
915
|
+
let c = J(a), l = s.current.get(c);
|
|
916
916
|
l && (l.hidden = !0, i.push(l), r.push(c));
|
|
917
|
-
}), i.length &&
|
|
917
|
+
}), i.length && p.current.add(() => n.update(...i)), r.forEach((e) => y.current.delete(e));
|
|
918
918
|
}, e);
|
|
919
919
|
}
|
|
920
920
|
return () => {
|
|
921
|
-
|
|
921
|
+
g.current && n.renderer && n.renderer.events.removeEventListener("viewport:ptscale", g.current), x !== void 0 && cancelAnimationFrame(x), c.current.forEach((e) => e == null ? void 0 : e()), c.current.clear(), s.current.clear(), p.current.destroy(), window.removeEventListener("online", w), clearInterval(b.current);
|
|
922
922
|
};
|
|
923
923
|
}, [
|
|
924
924
|
e,
|
|
@@ -927,22 +927,22 @@ function lt({ permission: e, rendererService: n, dataJsonUrl: r, websocketUrl: i
|
|
|
927
927
|
i
|
|
928
928
|
]);
|
|
929
929
|
}
|
|
930
|
-
function
|
|
930
|
+
function dt(e) {
|
|
931
931
|
return Math.min(e || window.devicePixelRatio, rt);
|
|
932
932
|
}
|
|
933
|
-
function
|
|
933
|
+
function ft(e) {
|
|
934
934
|
return typeof e == "number" ? { ptScale: e } : e;
|
|
935
935
|
}
|
|
936
|
-
function
|
|
937
|
-
return
|
|
936
|
+
function pt(e, t) {
|
|
937
|
+
return P(e, t);
|
|
938
938
|
}
|
|
939
|
-
function
|
|
939
|
+
function mt({ radius: e, scale: t, color: n }) {
|
|
940
940
|
let r = document.createElement("canvas"), i = r.getContext("2d");
|
|
941
941
|
i.imageSmoothingEnabled = !1;
|
|
942
942
|
let a = Math.ceil(e * 2 * t), o = a / 2, s = e * .78, c = e * .33;
|
|
943
943
|
return r.width = a, r.height = a, i.translate(o, o), i.scale(t, t), i.beginPath(), i.arc(0, 0, e, 0, 2 * Math.PI), i.fillStyle = "#FFFFFF", i.fill(), i.beginPath(), i.arc(0, 0, s, 0, 2 * Math.PI), i.fillStyle = n, i.fill(), i.beginPath(), i.arc(0, 0, c, 0, 2 * Math.PI), i.fillStyle = "#FFFFFF", i.fill(), r;
|
|
944
944
|
}
|
|
945
|
-
function
|
|
945
|
+
function ht({ id: e, width: t, height: n, color: r, scale: i }) {
|
|
946
946
|
let a = 2 * i, o = t / 2 * i, s = n * i, c = .01, l = s * .6, u = s, d = 8 * i, f = u + a + l / 2 + d * 2, p = o * 2 + l + a + d * 2, m = document.createElement("canvas");
|
|
947
947
|
m.setAttribute("id", e), m.width = f, m.height = p;
|
|
948
948
|
let h = m.getContext("2d"), g = f / 2, _ = p / 2;
|
|
@@ -950,28 +950,28 @@ function mt({ id: e, width: t, height: n, color: r, scale: i }) {
|
|
|
950
950
|
let v = g, y = _ - u / 2 + o, b = y + l;
|
|
951
951
|
return h.shadowColor = "rgba(16, 24, 40, 0.2)", h.shadowBlur = d / 2, h.beginPath(), h.arc(v, y, o, Math.PI, 0, !1), h.bezierCurveTo(v + o, y + s * .3, v + c * o, b, v, b), h.bezierCurveTo(v - c * o, b, v - o, y + s * .3, v - o, y), h.closePath(), h.fillStyle = r, h.fill(), h.strokeStyle = "#FFFFFF", h.lineWidth = a, h.stroke(), h.restore(), m;
|
|
952
952
|
}
|
|
953
|
-
function
|
|
954
|
-
return
|
|
953
|
+
function gt(e, t) {
|
|
954
|
+
return D(e, t);
|
|
955
955
|
}
|
|
956
|
-
function
|
|
956
|
+
function J(e) {
|
|
957
957
|
return `${e}_finery`;
|
|
958
958
|
}
|
|
959
|
-
function
|
|
960
|
-
n.bounds =
|
|
959
|
+
function _t({ rendererService: e, updateQueue: t, vehicle: n, vehicleFinery: r, x: i, y: a, scale: o, angle: s }) {
|
|
960
|
+
n.bounds = m(v(i, a, n.source.width, n.source.height, o, s)), n.hidden = !1, r ? (r.bounds = m(v(i, a, r.source.width, r.source.height, o, N(e.angle))), r.hidden = !1, t.add(() => e.update(r, n))) : t.add(() => e.update(n));
|
|
961
961
|
}
|
|
962
|
-
function
|
|
962
|
+
function Y(e, t, n) {
|
|
963
963
|
return {
|
|
964
964
|
x: e.x + (t.x - e.x) * n,
|
|
965
965
|
y: e.y + (t.y - e.y) * n
|
|
966
966
|
};
|
|
967
967
|
}
|
|
968
|
-
function
|
|
968
|
+
function vt(e, t) {
|
|
969
969
|
let n = Infinity, r = {
|
|
970
970
|
index: 0,
|
|
971
971
|
t: 0
|
|
972
972
|
};
|
|
973
973
|
for (let i = 0; i < t.length - 1; i++) {
|
|
974
|
-
let a = t[i], o = t[i + 1], s = o.x - a.x, c = o.y - a.y, l = s * s + c * c, u = l ? ((e.x - a.x) * s + (e.y - a.y) * c) / l : 0, d = Math.max(0, Math.min(1, u)), f =
|
|
974
|
+
let a = t[i], o = t[i + 1], s = o.x - a.x, c = o.y - a.y, l = s * s + c * c, u = l ? ((e.x - a.x) * s + (e.y - a.y) * c) / l : 0, d = Math.max(0, Math.min(1, u)), f = gt(e, Y(a, o, d));
|
|
975
975
|
f < n && (n = f, r = {
|
|
976
976
|
index: i,
|
|
977
977
|
t: d
|
|
@@ -979,26 +979,26 @@ function _t(e, t) {
|
|
|
979
979
|
}
|
|
980
980
|
return r;
|
|
981
981
|
}
|
|
982
|
-
function
|
|
983
|
-
let r =
|
|
982
|
+
function yt(e, t, n) {
|
|
983
|
+
let r = gt(e, t), i = Math.max(2, Math.ceil(r / n) + 1), a = [];
|
|
984
984
|
for (let n = 0; n < i; n++) {
|
|
985
|
-
let r =
|
|
985
|
+
let r = Y(e, t, n / (i - 1));
|
|
986
986
|
a.push(r);
|
|
987
987
|
}
|
|
988
988
|
return a;
|
|
989
989
|
}
|
|
990
|
-
function
|
|
991
|
-
if (!n || !n.length) return
|
|
992
|
-
let r =
|
|
993
|
-
r.index + 1 < n.length ? o(
|
|
990
|
+
function bt(e, t, n) {
|
|
991
|
+
if (!n || !n.length) return yt(e, t, 10);
|
|
992
|
+
let r = vt(e, n), i = vt(t, n), a = [], o = (e) => a.push(e);
|
|
993
|
+
r.index + 1 < n.length ? o(Y(n[r.index], n[r.index + 1], r.t)) : o(n[r.index]);
|
|
994
994
|
for (let e = r.index + 1; e <= i.index && e < n.length; e++) o(n[e]);
|
|
995
|
-
return i.index + 1 < n.length ? o(
|
|
995
|
+
return i.index + 1 < n.length ? o(Y(n[i.index], n[i.index + 1], i.t)) : o(n[i.index]), a;
|
|
996
996
|
}
|
|
997
|
-
function
|
|
997
|
+
function xt(e, t, n, r) {
|
|
998
998
|
if (e.length < 2) return () => {};
|
|
999
999
|
let i = null, a, o = [], s = 0;
|
|
1000
1000
|
for (let t = 0; t < e.length - 1; t++) {
|
|
1001
|
-
let n =
|
|
1001
|
+
let n = D(e[t], e[t + 1]);
|
|
1002
1002
|
o.push(n), s += n;
|
|
1003
1003
|
}
|
|
1004
1004
|
let c = (l) => {
|
|
@@ -1010,14 +1010,14 @@ function bt(e, t, n, r) {
|
|
|
1010
1010
|
n({
|
|
1011
1011
|
x: h.x + (g.x - h.x) * v,
|
|
1012
1012
|
y: h.y + (g.y - h.y) * v,
|
|
1013
|
-
angle:
|
|
1013
|
+
angle: P(h, g)
|
|
1014
1014
|
}), d < 1 ? a = requestAnimationFrame(c) : r && r();
|
|
1015
1015
|
};
|
|
1016
1016
|
return a = requestAnimationFrame(c), () => {
|
|
1017
1017
|
a && cancelAnimationFrame(a);
|
|
1018
1018
|
};
|
|
1019
1019
|
}
|
|
1020
|
-
function
|
|
1020
|
+
function X(e) {
|
|
1021
1021
|
return `${e.x},${e.y}`;
|
|
1022
1022
|
}
|
|
1023
1023
|
//#endregion
|
|
@@ -1074,7 +1074,7 @@ function Dt(e) {
|
|
|
1074
1074
|
//#region src/components/Map/booth-by-xy.ts
|
|
1075
1075
|
var Z = [], Q = /* @__PURE__ */ new Map(), $ = null, Ot = [];
|
|
1076
1076
|
function kt() {
|
|
1077
|
-
let e =
|
|
1077
|
+
let e = L.booths.filter((e) => e.visible && e.rect && e.rect.size.width > 0 && e.rect.size.height > 0);
|
|
1078
1078
|
if (Z = [], $ = null, Q = /* @__PURE__ */ new Map(), Ot = e.filter((e) => e.paths), !e.length) return;
|
|
1079
1079
|
let t = [], n = Infinity, r = Infinity, a = -Infinity, o = -Infinity;
|
|
1080
1080
|
for (let i of e) {
|
|
@@ -1085,7 +1085,7 @@ function kt() {
|
|
|
1085
1085
|
bounds: s
|
|
1086
1086
|
}), s.min.x < n && (n = s.min.x), s.min.y < r && (r = s.min.y), s.max.x > a && (a = s.max.x), s.max.y > o && (o = s.max.y);
|
|
1087
1087
|
}
|
|
1088
|
-
let s =
|
|
1088
|
+
let s = w.fromMinMax({
|
|
1089
1089
|
x: n,
|
|
1090
1090
|
y: r
|
|
1091
1091
|
}, {
|
|
@@ -1093,15 +1093,15 @@ function kt() {
|
|
|
1093
1093
|
y: o
|
|
1094
1094
|
}), c = Math.ceil(s.size.width / 2), l = Math.ceil(s.size.height / 2);
|
|
1095
1095
|
for (let e = 0; e < 2; e++) for (let n = 0; n < 2; n++) {
|
|
1096
|
-
let r = new
|
|
1096
|
+
let r = new w(s.min.x + e * c, s.min.y + n * l, c, l);
|
|
1097
1097
|
Z.push(r), Q.set(r, t.filter((e) => r.intersects(e.bounds)));
|
|
1098
1098
|
}
|
|
1099
1099
|
i.log("hover segmentToHitAreas", Q);
|
|
1100
1100
|
}
|
|
1101
1101
|
n(() => [
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1102
|
+
L.booths,
|
|
1103
|
+
x.loaded,
|
|
1104
|
+
x.visible
|
|
1105
1105
|
], () => kt());
|
|
1106
1106
|
function At(e, t) {
|
|
1107
1107
|
let n = {
|
|
@@ -1114,12 +1114,12 @@ function At(e, t) {
|
|
|
1114
1114
|
let e = i.filter((e) => e.booth.visible && e.shape.containsPoint(n));
|
|
1115
1115
|
if (e.length) return (e.length > 1 ? e.sort((e, t) => e.booth.rect.area - t.booth.rect.area)[0] : e[0]).booth;
|
|
1116
1116
|
}
|
|
1117
|
-
for (let e of Ot) if (e.visible) for (let t of e.paths) for (let r of
|
|
1117
|
+
for (let e of Ot) if (e.visible) for (let t of e.paths) for (let r of R(t.index, x.mode === z.Default ? "" : e.layer.name)) {
|
|
1118
1118
|
let t = r.map((e) => ({
|
|
1119
1119
|
x: e[0],
|
|
1120
1120
|
y: e[1]
|
|
1121
1121
|
}));
|
|
1122
|
-
if (
|
|
1122
|
+
if (T.fromConvexRing(t).containsPoint(n)) return e;
|
|
1123
1123
|
}
|
|
1124
1124
|
return null;
|
|
1125
1125
|
}
|
|
@@ -1127,4 +1127,4 @@ function jt(e, t) {
|
|
|
1127
1127
|
return At(e, t);
|
|
1128
1128
|
}
|
|
1129
1129
|
//#endregion
|
|
1130
|
-
export {
|
|
1130
|
+
export { ut as a, ze as c, Tt as i, Be as l, St as n, $e as o, wt as r, He as s, jt as t };
|