@geops/rvf-mobility-web-component 0.1.128 → 0.1.129
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/CHANGELOG.md +7 -0
- package/dist/index.js +22 -1
- package/package.json +11 -4
- package/.fixpackrc +0 -21
- package/.github/CODEOWNERS +0 -37
- package/.github/workflows/conventional-pr-title.yml +0 -36
- package/.husky/commit-msg +0 -1
- package/.husky/post-checkout +0 -1
- package/.husky/post-merge +0 -1
- package/.husky/post-rebase +0 -1
- package/.husky/pre-commit +0 -1
- package/.lintstagedrc.js +0 -13
- package/.nvmrc +0 -1
- package/.prettierrc.js +0 -3
- package/.vscode/settings.json +0 -2
- package/Logo.svg +0 -10
- package/__mocks__/dataurl.js +0 -11
- package/__mocks__/mapbox-gl.js +0 -19
- package/commitlint.config.cjs +0 -1
- package/doc/.eslintrc.json +0 -3
- package/doc/.fixpackrc +0 -21
- package/doc/.prettierrc +0 -1
- package/doc/README.md +0 -14
- package/doc/next.config.mjs +0 -8
- package/doc/package.json +0 -44
- package/doc/postcss.config.mjs +0 -8
- package/doc/public/ExportMenu-HGGM7Z53.js +0 -229
- package/doc/public/README.md +0 -1
- package/doc/public/chunk-5TBO732O.js +0 -1
- package/doc/public/chunk-7SZT7G2L.js +0 -3
- package/doc/public/chunk-AOWOBR67.js +0 -37
- package/doc/public/chunk-CZ6RUAVW.js +0 -3
- package/doc/public/chunk-FK6H3RFT.js +0 -1
- package/doc/public/chunk-L5TSFF6Q.js +0 -6
- package/doc/public/chunk-W5KNTEOZ.js +0 -1
- package/doc/public/deflate-7Y7TJOU7.js +0 -1
- package/doc/public/html2canvas-HSPYX66M.js +0 -28
- package/doc/public/index.es-LIBYYWEU.js +0 -23
- package/doc/public/jpeg-IRWWL5ZF.js +0 -1
- package/doc/public/lerc-NVL4MKRG.js +0 -6
- package/doc/public/lzw-EHQHNZB6.js +0 -1
- package/doc/public/packbits-PQSBS4GQ.js +0 -1
- package/doc/public/purify.es-4R37HRTQ.js +0 -7
- package/doc/public/raw-OK63VTT6.js +0 -1
- package/doc/public/webimage-DLGKDXZD.js +0 -1
- package/doc/public/zstd-JFJYRN7P.js +0 -1
- package/doc/src/app/components/GeopsAPIKeyLink.tsx +0 -6
- package/doc/src/app/components/GeopsAPIsLink.tsx +0 -6
- package/doc/src/app/components/GeopsMapsAPILink.tsx +0 -8
- package/doc/src/app/components/GeopsMobility.tsx +0 -23
- package/doc/src/app/components/GeopsMobilityDoc.tsx +0 -39
- package/doc/src/app/components/GeopsMobilitySearch.tsx +0 -22
- package/doc/src/app/components/GeopsMobilitySearchDoc.tsx +0 -33
- package/doc/src/app/components/GeopsRealtimeAPILink.tsx +0 -10
- package/doc/src/app/components/GeopsStopsAPILink.tsx +0 -8
- package/doc/src/app/components/Link.tsx +0 -9
- package/doc/src/app/components/WebComponentDoc.tsx +0 -284
- package/doc/src/app/favicon.ico +0 -0
- package/doc/src/app/geops-mobility/page.tsx +0 -11
- package/doc/src/app/geops-mobility-search/page.tsx +0 -11
- package/doc/src/app/globals.css +0 -58
- package/doc/src/app/hooks/useAttrFromUrlParams.ts +0 -21
- package/doc/src/app/hooks/useIsFullScreen.ts +0 -14
- package/doc/src/app/hooks/usePublicKey.ts +0 -19
- package/doc/src/app/layout.tsx +0 -53
- package/doc/src/app/page.tsx +0 -86
- package/doc/src/geops-ui.ts +0 -3
- package/doc/tsconfig.json +0 -41
- package/docutils.js +0 -417
- package/eslint.config.mjs +0 -34
- package/favicon.ico +0 -0
- package/fonts/source-sans-3/source-sans-3-v15-latin-500.ttf +0 -0
- package/fonts/source-sans-3/source-sans-3-v15-latin-500.woff2 +0 -0
- package/fonts/source-sans-3/source-sans-3-v15-latin-600.ttf +0 -0
- package/fonts/source-sans-3/source-sans-3-v15-latin-600.woff2 +0 -0
- package/fonts/source-sans-3/source-sans-3-v15-latin-700.ttf +0 -0
- package/fonts/source-sans-3/source-sans-3-v15-latin-700.woff2 +0 -0
- package/fonts/source-sans-3/source-sans-3-v15-latin-regular.ttf +0 -0
- package/fonts/source-sans-3/source-sans-3-v15-latin-regular.woff2 +0 -0
- package/global.d.ts +0 -9
- package/iframe.html +0 -233
- package/index.html +0 -147
- package/index.js +0 -4343
- package/input.css +0 -59
- package/jest-setup.js +0 -13
- package/jest.config.js +0 -17
- package/notifications.html +0 -144
- package/scripts/build.mjs +0 -15
- package/scripts/dev.mjs +0 -27
- package/search.html +0 -122
- package/src/BaseLayer/BaseLayer.tsx +0 -61
- package/src/BaseLayer/index.tsx +0 -1
- package/src/Copyright/Copyright.tsx +0 -51
- package/src/Copyright/index.tsx +0 -1
- package/src/DebugDeparture/DebugDeparture.tsx +0 -120
- package/src/DebugDeparture/index.tsx +0 -1
- package/src/DebugStop/DebugStop.tsx +0 -47
- package/src/DebugStop/index.tsx +0 -1
- package/src/Departure/Departure.tsx +0 -57
- package/src/Departure/index.tsx +0 -1
- package/src/EmbedNavigation/DragPanWarning.ts +0 -133
- package/src/EmbedNavigation/EmbedNavigation.tsx +0 -89
- package/src/EmbedNavigation/index.js +0 -1
- package/src/EmbedNavigation/index.tsx +0 -1
- package/src/ExportMenu/ExportMenu.tsx +0 -114
- package/src/ExportMenu/index.tsx +0 -1
- package/src/ExportMenuButton/ExportMenuButton.tsx +0 -33
- package/src/ExportMenuButton/index.tsx +0 -1
- package/src/FeatureDetails/FeatureDetails.tsx +0 -62
- package/src/FeatureDetails/index.ts +0 -1
- package/src/FeaturesInfosListener/FeaturesInfosListener.tsx +0 -142
- package/src/FeaturesInfosListener/index.tsx +0 -1
- package/src/GeolocationButton/GeolocationButton.tsx +0 -78
- package/src/GeolocationButton/index.tsx +0 -1
- package/src/I18n/I18n.tsx +0 -38
- package/src/I18n/index.tsx +0 -1
- package/src/LayerTree/LayerTree.tsx +0 -58
- package/src/LayerTree/TreeItem/TreeItem.tsx +0 -153
- package/src/LayerTree/TreeItem/index.tsx +0 -1
- package/src/LayerTree/index.tsx +0 -1
- package/src/LayerTree/layersTreeContext.ts +0 -4
- package/src/LayerTree/layersTreeReducer.ts +0 -158
- package/src/LayerTreeButton/LayerTreeButton.tsx +0 -33
- package/src/LayerTreeButton/index.tsx +0 -1
- package/src/LayerTreeMenu/LayerTreeMenu.tsx +0 -147
- package/src/LayerTreeMenu/index.tsx +0 -1
- package/src/LayoutState/LayoutState.tsx +0 -380
- package/src/LayoutState/index.tsx +0 -1
- package/src/LinesNetworkPlanDetails/LinesNetworkPlanDetails.tsx +0 -274
- package/src/LinesNetworkPlanDetails/index.tsx +0 -1
- package/src/LinesNetworkPlanLayer/LinesNetworkPlanLayer.tsx +0 -51
- package/src/LinesNetworkPlanLayer/index.tsx +0 -1
- package/src/LinesNetworkPlanLayerHighlight/LinesNetworkPlanLayerHighlight.tsx +0 -59
- package/src/LinesNetworkPlanLayerHighlight/index.tsx +0 -1
- package/src/Map/Map.tsx +0 -166
- package/src/Map/index.tsx +0 -1
- package/src/MapDispatchEvents/MapDispatchEvents.tsx +0 -87
- package/src/MapDispatchEvents/index.tsx +0 -1
- package/src/MapLayout/MapLayout.tsx +0 -172
- package/src/MapLayout/index.tsx +0 -1
- package/src/MapsetLayer/MapsetLayer.tsx +0 -111
- package/src/MapsetLayer/index.tsx +0 -1
- package/src/MobilityMap/MobilityMap.tsx +0 -338
- package/src/MobilityMap/MobilityMapAttributes.test.ts +0 -59
- package/src/MobilityMap/MobilityMapAttributes.ts +0 -381
- package/src/MobilityMap/MobilityMapEvents.ts +0 -53
- package/src/MobilityMap/index.css +0 -0
- package/src/MobilityMap/index.tsx +0 -2
- package/src/MobilityNotifications/MobilityNotifications.tsx +0 -153
- package/src/MobilityNotifications/MobilityNotificationsAttributes.test.ts +0 -35
- package/src/MobilityNotifications/MobilityNotificationsAttributes.ts +0 -53
- package/src/MobilityNotifications/index.ts +0 -2
- package/src/MobilitySearch/MobilitySearch.tsx +0 -35
- package/src/MobilitySearch/MobilitySearchAttributes.test.ts +0 -21
- package/src/MobilitySearch/MobilitySearchAttributes.ts +0 -87
- package/src/MobilitySearch/MobilitySearchEvents.ts +0 -21
- package/src/MobilitySearch/index.ts +0 -2
- package/src/NotificationDetails/NotificationDetails.tsx +0 -309
- package/src/NotificationDetails/index.ts +0 -1
- package/src/NotificationsLayer/NotificationsLayer.tsx +0 -124
- package/src/NotificationsLayer/index.tsx +0 -1
- package/src/Overlay/Overlay.tsx +0 -61
- package/src/Overlay/index.tsx +0 -1
- package/src/OverlayContent/OverlayContent.tsx +0 -88
- package/src/OverlayContent/index.ts +0 -1
- package/src/OverlayDetails/OverlayDetails.tsx +0 -93
- package/src/OverlayDetails/index.ts +0 -1
- package/src/OverlayDetailsFooter/OverlayDetailsFooter.tsx +0 -50
- package/src/OverlayDetailsFooter/index.tsx +0 -1
- package/src/OverlayDetailsHeader/OverlayDetailsHeader.tsx +0 -30
- package/src/OverlayDetailsHeader/index.ts +0 -1
- package/src/OverlayFooter/OverlayFooter.tsx +0 -42
- package/src/OverlayFooter/index.tsx +0 -1
- package/src/OverlayHeader/OverlayHeader.tsx +0 -44
- package/src/OverlayHeader/index.tsx +0 -1
- package/src/Permalink/Permalink.tsx +0 -89
- package/src/Permalink/index.tsx +0 -1
- package/src/PermalinkInput/PermalinkInput.tsx +0 -33
- package/src/PermalinkInput/index.tsx +0 -1
- package/src/RealtimeLayer/RealtimeLayer.tsx +0 -299
- package/src/RealtimeLayer/index.tsx +0 -1
- package/src/RouteDestination/RouteDestination.test.tsx +0 -13
- package/src/RouteDestination/RouteDestination.tsx +0 -15
- package/src/RouteDestination/index.tsx +0 -1
- package/src/RouteFollowingButton/RouteFollowingButton.tsx +0 -30
- package/src/RouteFollowingButton/index.tsx +0 -1
- package/src/RouteIcon/RouteIcon.tsx +0 -99
- package/src/RouteIcon/index.tsx +0 -1
- package/src/RouteIdentifier/RouteIdentifer.tsx +0 -36
- package/src/RouteIdentifier/index.tsx +0 -1
- package/src/RouteInfos/RouteInfos.tsx +0 -26
- package/src/RouteInfos/index.tsx +0 -1
- package/src/RouteSchedule/RouteSchedule.tsx +0 -59
- package/src/RouteSchedule/firstStation.png +0 -0
- package/src/RouteSchedule/index.tsx +0 -1
- package/src/RouteSchedule/lastStation.png +0 -0
- package/src/RouteSchedule/line.png +0 -0
- package/src/RouteSchedule/station.png +0 -0
- package/src/RouteScheduleFooter/RouteScheduleFooter.tsx +0 -46
- package/src/RouteScheduleFooter/index.tsx +0 -1
- package/src/RouteScheduleHeader/RouteScheduleHeader.tsx +0 -23
- package/src/RouteScheduleHeader/index.tsx +0 -1
- package/src/RouteStop/RouteStop.tsx +0 -108
- package/src/RouteStop/index.tsx +0 -1
- package/src/RouteStopDelay/RouteStopDelay.tsx +0 -37
- package/src/RouteStopDelay/index.tsx +0 -1
- package/src/RouteStopName/RouteStopName.tsx +0 -24
- package/src/RouteStopName/index.tsx +0 -1
- package/src/RouteStopPlatform/RouteStopPlatform.tsx +0 -27
- package/src/RouteStopPlatform/index.tsx +0 -1
- package/src/RouteStopProgress/RouteStopProgress.tsx +0 -100
- package/src/RouteStopProgress/index.tsx +0 -1
- package/src/RouteStopServices/RouteStopServices.tsx +0 -26
- package/src/RouteStopServices/index.tsx +0 -1
- package/src/RouteStopStation/RouteStopStation.tsx +0 -38
- package/src/RouteStopStation/index.tsx +0 -1
- package/src/RouteStopTime/RouteStopTime.tsx +0 -35
- package/src/RouteStopTime/index.tsx +0 -1
- package/src/RvfButton/RvfButton.tsx +0 -57
- package/src/RvfButton/index.tsx +0 -1
- package/src/RvfCheckbox/RvfCheckbox.tsx +0 -31
- package/src/RvfCheckbox/index.tsx +0 -1
- package/src/RvfCopyright/RvfCopyright.tsx +0 -36
- package/src/RvfCopyright/index.tsx +0 -1
- package/src/RvfFeatureDetails/RvfFeatureDetails.tsx +0 -46
- package/src/RvfFeatureDetails/RvfLineNetworkDetails/RvfLineNetworkDetails.tsx +0 -292
- package/src/RvfFeatureDetails/RvfLineNetworkDetails/index.js +0 -1
- package/src/RvfFeatureDetails/RvfNotificationDetails/RvfNotificationDetails.tsx +0 -36
- package/src/RvfFeatureDetails/RvfNotificationDetails/index.ts +0 -1
- package/src/RvfFeatureDetails/RvfSellingPointDetails/RvfSellingPointDetails.tsx +0 -50
- package/src/RvfFeatureDetails/RvfSellingPointDetails/index.js +0 -1
- package/src/RvfFeatureDetails/RvfSharedMobilityDetail/FloatingVehiclesDetails/FloatingVehiclesDetails.tsx +0 -74
- package/src/RvfFeatureDetails/RvfSharedMobilityDetail/FloatingVehiclesDetails/index.tsx +0 -1
- package/src/RvfFeatureDetails/RvfSharedMobilityDetail/RvfSharedMobilityDetails.tsx +0 -134
- package/src/RvfFeatureDetails/RvfSharedMobilityDetail/StationDetails/StationDetails.tsx +0 -84
- package/src/RvfFeatureDetails/RvfSharedMobilityDetail/StationDetails/index.tsx +0 -1
- package/src/RvfFeatureDetails/RvfSharedMobilityDetail/index.tsx +0 -1
- package/src/RvfFeatureDetails/index.tsx +0 -1
- package/src/RvfIconButton/RvfIconButton.tsx +0 -49
- package/src/RvfIconButton/index.tsx +0 -1
- package/src/RvfInputCopy/RvfInputCopy.tsx +0 -67
- package/src/RvfInputCopy/index.tsx +0 -1
- package/src/RvfLink/RvfLink.tsx +0 -54
- package/src/RvfLink/index.tsx +0 -1
- package/src/RvfMainLinkButton/RvfMainLinkButton.tsx +0 -62
- package/src/RvfMainLinkButton/index.tsx +0 -1
- package/src/RvfMapLayout/RvfMapLayout.tsx +0 -202
- package/src/RvfMapLayout/index.tsx +0 -1
- package/src/RvfMobilityMap/RvfMobilityMap.tsx +0 -58
- package/src/RvfMobilityMap/index.css +0 -13
- package/src/RvfMobilityMap/index.tsx +0 -1
- package/src/RvfModal/RvfModal.tsx +0 -53
- package/src/RvfModal/index.tsx +0 -1
- package/src/RvfOpenStrikeNotification/RvfOpenStrikeNotification.tsx +0 -120
- package/src/RvfOpenStrikeNotification/index.tsx +0 -1
- package/src/RvfOverlayHeader/RvfOverlayHeader.tsx +0 -43
- package/src/RvfOverlayHeader/index.tsx +0 -1
- package/src/RvfPoisLayer/RvfPoisLayer.tsx +0 -48
- package/src/RvfPoisLayer/index.tsx +0 -1
- package/src/RvfRadioButton/RvfRadioButton.tsx +0 -16
- package/src/RvfRadioButton/index.tsx +0 -1
- package/src/RvfRealtimeLayer/RvfRealtimeLayer.tsx +0 -77
- package/src/RvfRealtimeLayer/index.tsx +0 -1
- package/src/RvfRouteIcon/RvfRouteIcon.tsx +0 -10
- package/src/RvfRouteIcon/index.tsx +0 -1
- package/src/RvfSearch/RvfSearch.tsx +0 -34
- package/src/RvfSearch/index.tsx +0 -1
- package/src/RvfSelect/RvfSelect.tsx +0 -24
- package/src/RvfSelect/index.tsx +0 -1
- package/src/RvfSelectedFeatureHighlightLayer/RvfSelectedFeatureHighlightLayer.tsx +0 -101
- package/src/RvfSelectedFeatureHighlightLayer/index.tsx +0 -1
- package/src/RvfSellingPointsLayer/RvfSellingPointsLayer.tsx +0 -67
- package/src/RvfSellingPointsLayer/index.tsx +0 -1
- package/src/RvfSharedMobilityLayerGroup/RvfSharedMobilityLayerGroup.tsx +0 -479
- package/src/RvfSharedMobilityLayerGroup/index.tsx +0 -1
- package/src/RvfStationsLayer/RvfStationsLayer.tsx +0 -19
- package/src/RvfStationsLayer/index.tsx +0 -1
- package/src/RvfTarifZonenLayer/RvfTarifZonenLayer.tsx +0 -48
- package/src/RvfTarifZonenLayer/index.tsx +0 -1
- package/src/ScaleLine/ScaleLine.tsx +0 -52
- package/src/ScaleLine/index.css +0 -6
- package/src/ScaleLine/index.tsx +0 -1
- package/src/ScrollableHandler/ScrollableHandler.tsx +0 -66
- package/src/ScrollableHandler/index.tsx +0 -1
- package/src/Search/Search.tsx +0 -50
- package/src/Search/SearchBase.tsx +0 -187
- package/src/Search/SearchHeadless.tsx +0 -79
- package/src/Search/index.tsx +0 -3
- package/src/SearchButton/SearchButton.tsx +0 -33
- package/src/SearchButton/index.tsx +0 -1
- package/src/SearchLinesResult/SearchLinesResult.tsx +0 -43
- package/src/SearchLinesResult/index.tsx +0 -1
- package/src/SearchLinesResults/SearchLinesResults.tsx +0 -106
- package/src/SearchLinesResults/index.tsx +0 -1
- package/src/SearchLnpStopsResult/SearchLnpStopsResult.tsx +0 -42
- package/src/SearchLnpStopsResult/index.tsx +0 -1
- package/src/SearchLnpStopsResults/SearchLnpStopsResults.tsx +0 -106
- package/src/SearchLnpStopsResults/index.tsx +0 -1
- package/src/SearchResult/SearchResult.tsx +0 -25
- package/src/SearchResult/index.tsx +0 -1
- package/src/SearchResults/SearchResults.tsx +0 -81
- package/src/SearchResults/index.tsx +0 -1
- package/src/SearchResultsHeader/SearchResultsHeader.tsx +0 -36
- package/src/SearchResultsHeader/index.tsx +0 -1
- package/src/SearchStopsResult/SearchStopsResult.tsx +0 -43
- package/src/SearchStopsResult/index.tsx +0 -1
- package/src/SearchStopsResults/SearchStopsResults.tsx +0 -101
- package/src/SearchStopsResults/index.tsx +0 -1
- package/src/SearchTrainsResult/SearchTrainsResult.tsx +0 -42
- package/src/SearchTrainsResult/index.tsx +0 -1
- package/src/SearchTrainsResults/SearchTrainsResults.tsx +0 -106
- package/src/SearchTrainsResults/index.tsx +0 -1
- package/src/ShadowOverflow/ShadowOverflow.tsx +0 -28
- package/src/ShadowOverflow/index.tsx +0 -1
- package/src/ShareMenu/ShareMenu.tsx +0 -43
- package/src/ShareMenu/index.tsx +0 -1
- package/src/ShareMenuButton/ShareMenuButton.tsx +0 -34
- package/src/ShareMenuButton/index.tsx +0 -1
- package/src/SingleClickListener/SingleClickListener.tsx +0 -164
- package/src/SingleClickListener/index.tsx +0 -1
- package/src/SituationDetails/SituationDetails.tsx +0 -370
- package/src/SituationDetails/index.ts +0 -1
- package/src/Station/Station.tsx +0 -50
- package/src/Station/index.tsx +0 -1
- package/src/StationHeader/StationHeader.tsx +0 -32
- package/src/StationHeader/index.tsx +0 -1
- package/src/StationName/StationName.tsx +0 -21
- package/src/StationName/index.tsx +0 -1
- package/src/StationServices/StationServices.tsx +0 -80
- package/src/StationServices/index.tsx +0 -1
- package/src/StationsLayer/StationsLayer.tsx +0 -53
- package/src/StationsLayer/index.tsx +0 -1
- package/src/StopsSearch/StopsSearch.tsx +0 -344
- package/src/StopsSearch/index.tsx +0 -1
- package/src/WindowMessageListener/WindowMessageListener.tsx +0 -74
- package/src/WindowMessageListener/index.tsx +0 -1
- package/src/ZoomButtons/ZoomButtons.tsx +0 -80
- package/src/ZoomButtons/index.tsx +0 -1
- package/src/icons/Airport/Airport.tsx +0 -17
- package/src/icons/Airport/airport-14-svgrepo-com.svg +0 -1
- package/src/icons/Airport/index.tsx +0 -1
- package/src/icons/ArrowDown/ArrowDown.tsx +0 -22
- package/src/icons/ArrowDown/down-open.svg +0 -1
- package/src/icons/ArrowDown/index.tsx +0 -1
- package/src/icons/ArrowRight/ArrowRight.tsx +0 -19
- package/src/icons/ArrowRight/arrow-right.svg +0 -1
- package/src/icons/ArrowRight/index.tsx +0 -1
- package/src/icons/ArrowUp/ArrowUp.tsx +0 -22
- package/src/icons/ArrowUp/index.tsx +0 -1
- package/src/icons/ArrowUp/up-open.svg +0 -1
- package/src/icons/ArrowUpRight/ArrowUpRight.tsx +0 -35
- package/src/icons/ArrowUpRight/index.tsx +0 -1
- package/src/icons/ArrowUpRight/up-open.svg +0 -1
- package/src/icons/Automat/Automat.tsx +0 -8
- package/src/icons/Automat/index.tsx +0 -1
- package/src/icons/Automat/rvf_automat.svg +0 -1
- package/src/icons/BarAndRestaurants/BarAndRestaurants.tsx +0 -17
- package/src/icons/BarAndRestaurants/food-restaurant-svgrepo-com.svg +0 -1
- package/src/icons/BarAndRestaurants/index.tsx +0 -1
- package/src/icons/Bathroom/Bathroom.tsx +0 -59
- package/src/icons/Bathroom/bathroom-restroom-svgrepo-com.svg +0 -1
- package/src/icons/Bathroom/index.tsx +0 -1
- package/src/icons/Bike/Bike.tsx +0 -8
- package/src/icons/Bike/index.tsx +0 -1
- package/src/icons/Bike/rvf_shared_bike.svg +0 -1
- package/src/icons/BikeStorage/BikeStorage.tsx +0 -17
- package/src/icons/BikeStorage/index.tsx +0 -1
- package/src/icons/BikeStorage/parking-bicycle-14-svgrepo-com.svg +0 -1
- package/src/icons/Cancel/Cancel.tsx +0 -21
- package/src/icons/Cancel/cancel.svg +0 -1
- package/src/icons/Cancel/index.tsx +0 -1
- package/src/icons/Car/Car.tsx +0 -8
- package/src/icons/Car/index.tsx +0 -1
- package/src/icons/Car/rvf_shared_car.svg +0 -1
- package/src/icons/CargoBike/CargoBike.tsx +0 -8
- package/src/icons/CargoBike/index.tsx +0 -1
- package/src/icons/CargoBike/rvf_shared_cargo_bike.svg +0 -1
- package/src/icons/Copy/Copy.tsx +0 -25
- package/src/icons/Copy/index.tsx +0 -1
- package/src/icons/Doc/Doc.tsx +0 -19
- package/src/icons/Doc/doc.svg +0 -1
- package/src/icons/Doc/index.tsx +0 -1
- package/src/icons/DownOpen/DownOpen.tsx +0 -24
- package/src/icons/DownOpen/down-open.svg +0 -1
- package/src/icons/DownOpen/index.tsx +0 -1
- package/src/icons/Download/Download.tsx +0 -20
- package/src/icons/Download/download.svg +0 -1
- package/src/icons/Download/index.tsx +0 -1
- package/src/icons/Ebike/Ebike.tsx +0 -8
- package/src/icons/Ebike/index.tsx +0 -1
- package/src/icons/Ebike/rvf_shared_e-bike.svg +0 -1
- package/src/icons/Elevator/Elevator.tsx +0 -16
- package/src/icons/Elevator/elevator-svgrepo-com.svg +0 -1
- package/src/icons/Elevator/index.tsx +0 -1
- package/src/icons/Email/Email.tsx +0 -19
- package/src/icons/Email/email.svg +0 -1
- package/src/icons/Email/index.tsx +0 -1
- package/src/icons/FilePdf/FilePdf.tsx +0 -19
- package/src/icons/FilePdf/file-pdf.svg +0 -1
- package/src/icons/FilePdf/index.tsx +0 -1
- package/src/icons/Geolocation/Geolocation.tsx +0 -19
- package/src/icons/Geolocation/index.tsx +0 -1
- package/src/icons/Geolocation/location.svg +0 -1
- package/src/icons/Image/Image.tsx +0 -24
- package/src/icons/Image/index.tsx +0 -1
- package/src/icons/InPerson/InPerson.tsx +0 -8
- package/src/icons/InPerson/index.tsx +0 -1
- package/src/icons/InPerson/rvf_persoenlich.svg +0 -1
- package/src/icons/Menu/Menu.tsx +0 -32
- package/src/icons/Menu/index.tsx +0 -1
- package/src/icons/Menu/menu.svg +0 -1
- package/src/icons/Minus/Minus.tsx +0 -19
- package/src/icons/Minus/index.tsx +0 -1
- package/src/icons/Minus/minus-grey.svg +0 -1
- package/src/icons/Minus/minus.svg +0 -1
- package/src/icons/NoRealtime/NoRealtime.tsx +0 -44
- package/src/icons/NoRealtime/index.tsx +0 -1
- package/src/icons/NoRealtime/norealtime.svg +0 -1
- package/src/icons/Ok/ok-grey.svg +0 -1
- package/src/icons/Ok/ok.svg +0 -1
- package/src/icons/Plus/Plus.tsx +0 -19
- package/src/icons/Plus/index.tsx +0 -1
- package/src/icons/Plus/plus.svg +0 -1
- package/src/icons/Police/Police.tsx +0 -20
- package/src/icons/Police/index.tsx +0 -1
- package/src/icons/Police/polizia.png +0 -0
- package/src/icons/README.md +0 -52
- package/src/icons/Ride/Ride.tsx +0 -8
- package/src/icons/Ride/index.tsx +0 -1
- package/src/icons/Ride/rvf_shared_ride.svg +0 -1
- package/src/icons/Scooter/Scooter.tsx +0 -8
- package/src/icons/Scooter/index.tsx +0 -1
- package/src/icons/Scooter/rvf_shared_scooter.svg +0 -1
- package/src/icons/Search/Search.tsx +0 -38
- package/src/icons/Search/index.tsx +0 -1
- package/src/icons/Search/search.svg +0 -1
- package/src/icons/Share/Share.tsx +0 -24
- package/src/icons/Share/index.tsx +0 -1
- package/src/icons/Stack/Stack.tsx +0 -24
- package/src/icons/Stack/index.tsx +0 -1
- package/src/icons/TouchFingers/TouchFingers.tsx +0 -20
- package/src/icons/TouchFingers/index.tsx +0 -1
- package/src/icons/Tracking/Tracking.tsx +0 -29
- package/src/icons/Tracking/airport-14-svgrepo-com.svg +0 -1
- package/src/icons/Tracking/index.tsx +0 -1
- package/src/icons/Video/Video.tsx +0 -8
- package/src/icons/Video/index.tsx +0 -1
- package/src/icons/Video/rvf_video.svg +0 -1
- package/src/icons/WaitingAreas/WaitingAreas.tsx +0 -16
- package/src/icons/WaitingAreas/highway-rest-area-svgrepo-com.svg +0 -1
- package/src/icons/WaitingAreas/index.tsx +0 -1
- package/src/icons/WaitingAreas/wheelchair-svgrepo-com.svg +0 -1
- package/src/icons/Warning/Warning.tsx +0 -56
- package/src/icons/Warning/exported_features_20251029101203.kml +0 -20
- package/src/icons/Warning/index.tsx +0 -1
- package/src/icons/Warning/info-achtung-kreisrot-rot.svg +0 -1
- package/src/icons/WheelChair/WheelChair.tsx +0 -16
- package/src/icons/WheelChair/disabili.png +0 -0
- package/src/icons/WheelChair/index.tsx +0 -1
- package/src/icons/WheelChair/wheelchair-svgrepo-com.svg +0 -1
- package/src/icons/disruption-type-banner.xcf +0 -0
- package/src/icons/rvf_shared_ride_2.svg +0 -1
- package/src/icons/sbb_add_stop.png +0 -0
- package/src/icons/sbb_add_stop.svg +0 -1
- package/src/icons/sbb_alternative.png +0 -0
- package/src/icons/sbb_alternative.svg +0 -1
- package/src/icons/sbb_cancellation.png +0 -0
- package/src/icons/sbb_cancellation.svg +0 -1
- package/src/icons/sbb_construction.png +0 -0
- package/src/icons/sbb_construction.svg +0 -1
- package/src/icons/sbb_construction_banner.png +0 -0
- package/src/icons/sbb_delay.png +0 -0
- package/src/icons/sbb_delay.svg +0 -1
- package/src/icons/sbb_disruption.png +0 -0
- package/src/icons/sbb_disruption.svg +0 -1
- package/src/icons/sbb_disruption_banner.png +0 -0
- package/src/icons/sbb_info.png +0 -0
- package/src/icons/sbb_info.svg +0 -1
- package/src/icons/sbb_missed_connection.png +0 -0
- package/src/icons/sbb_missed_connection.svg +0 -1
- package/src/icons/sbb_missed_connection_banner.png +0 -0
- package/src/icons/sbb_platform_change.png +0 -0
- package/src/icons/sbb_platform_change.svg +0 -1
- package/src/icons/sbb_replacementbus.png +0 -0
- package/src/icons/sbb_replacementbus.svg +0 -1
- package/src/icons/sbb_replacementbus_banner.png +0 -0
- package/src/icons/sbb_reroute.png +0 -0
- package/src/icons/sbb_reroute.svg +0 -1
- package/src/icons/warning-banner.png +0 -0
- package/src/icons/warning-banner.xcf +0 -0
- package/src/icons/warning.png +0 -0
- package/src/index.tsx +0 -44
- package/src/indexDoc.ts +0 -35
- package/src/logos/00_RegioRad_Stuttgart.svg +0 -1
- package/src/logos/01_Call_a_bike.svg +0 -1
- package/src/logos/03_KVV_nextbike.svg +0 -1
- package/src/logos/05_VrnNextbike.svg +0 -1
- package/src/logos/2em_carsharing.svg +0 -1
- package/src/logos/CarSharing-Renningen.png +0 -0
- package/src/logos/aubonne-basel-pickebike.svg +0 -1
- package/src/logos/br_logo.svg +0 -1
- package/src/logos/callabike_logo.png +0 -0
- package/src/logos/carsharing_stadtmobil_karlsruhe_rhein_neckar.svg +0 -1
- package/src/logos/compte-mobilite.png +0 -0
- package/src/logos/deer.svg +0 -1
- package/src/logos/donkey_republic.png +0 -0
- package/src/logos/edrive_carsharing.svg +0 -1
- package/src/logos/flinkster_logo.png +0 -0
- package/src/logos/gruene-flotte-logo-1.svg +0 -1
- package/src/logos/gruene_flotte_logo.png +0 -0
- package/src/logos/lasten_velo_freiburg.png +0 -0
- package/src/logos/lie_mobil.svg +0 -1
- package/src/logos/logo-einfach-mobil-ortenau.png +0 -0
- package/src/logos/logo-red.svg +0 -1
- package/src/logos/logo_frelo_web_rgb.png +0 -0
- package/src/logos/logo_teilauto.png +0 -0
- package/src/logos/mein_konrad.svg +0 -1
- package/src/logos/mit_fahr_punkt.png +0 -0
- package/src/logos/natur_energie_logo.png +0 -0
- package/src/logos/natur_energie_logo.xcf +0 -0
- package/src/logos/publibike_logo.svg +0 -1
- package/src/logos/share-birrer.svg +0 -1
- package/src/logos/stadtmobil_suedbaden.svg +0 -1
- package/src/logos/stadtwerke_tauberfranken.png +0 -0
- package/src/logos/teilauto_biberach.png +0 -0
- package/src/logos/velospot_fribourg.png +0 -0
- package/src/logos/yoio_logo.png +0 -0
- package/src/logos/zeag_carsharing.png +0 -0
- package/src/logos/zeo_carsharing.png +0 -0
- package/src/logos/zeus_logo.png +0 -0
- package/src/logos/zeus_logo.xcf +0 -0
- package/src/ui/Button/Button.tsx +0 -64
- package/src/ui/Button/index.tsx +0 -1
- package/src/ui/Checkbox/Checkbox.tsx +0 -32
- package/src/ui/Checkbox/index.tsx +0 -1
- package/src/ui/IconButton/IconButton.tsx +0 -64
- package/src/ui/IconButton/index.tsx +0 -1
- package/src/ui/Input/Input.tsx +0 -24
- package/src/ui/Input/index.tsx +0 -1
- package/src/ui/InputCopy/InputCopy.tsx +0 -97
- package/src/ui/InputCopy/index.tsx +0 -1
- package/src/ui/InputSearch/InputSearch.tsx +0 -106
- package/src/ui/InputSearch/index.tsx +0 -1
- package/src/ui/Link/Link.tsx +0 -49
- package/src/ui/Link/index.tsx +0 -1
- package/src/ui/Select/Select.tsx +0 -24
- package/src/ui/Select/index.tsx +0 -1
- package/src/utils/MobilityEvent.ts +0 -22
- package/src/utils/applyInitialLayerVisibility.ts +0 -48
- package/src/utils/centerOnVehicle.ts +0 -58
- package/src/utils/constants.ts +0 -242
- package/src/utils/exportPdf.ts +0 -671
- package/src/utils/fullTrajectoryStyle.ts +0 -53
- package/src/utils/getAllLayers.ts +0 -26
- package/src/utils/getBgColor.ts +0 -20
- package/src/utils/getDelayColor.test.ts +0 -23
- package/src/utils/getDelayColor.ts +0 -23
- package/src/utils/getDelayColorForVehicle.test.ts +0 -47
- package/src/utils/getDelayColorForVehicle.ts +0 -27
- package/src/utils/getDelayString.test.ts +0 -25
- package/src/utils/getDelayString.ts +0 -28
- package/src/utils/getDelayTextForVehicle.test.ts +0 -32
- package/src/utils/getDelayTextForVehicle.ts +0 -25
- package/src/utils/getFullTrajectoryAndFit.ts +0 -41
- package/src/utils/getHoursAndMinutes.test.ts +0 -15
- package/src/utils/getHoursAndMinutes.ts +0 -22
- package/src/utils/getLayersAsFlatArray.ts +0 -22
- package/src/utils/getLinkByDevice.ts +0 -23
- package/src/utils/getMainColorForVehicle.test.ts +0 -25
- package/src/utils/getMainColorForVehicle.ts +0 -54
- package/src/utils/getPermalinkParameters.ts +0 -35
- package/src/utils/getRadius.ts +0 -46
- package/src/utils/getStopStatus.test.ts +0 -105
- package/src/utils/getStopStatus.ts +0 -171
- package/src/utils/getTextColor.ts +0 -10
- package/src/utils/getTextColorForVehicle.ts +0 -31
- package/src/utils/getTextFontForVehicle.test.ts +0 -7
- package/src/utils/getTextFontForVehicle.tsx +0 -17
- package/src/utils/getTextForVehicle.test.ts +0 -17
- package/src/utils/getTextForVehicle.ts +0 -25
- package/src/utils/getUrlFromTemplate.test.ts +0 -23
- package/src/utils/getUrlFromTemplate.ts +0 -47
- package/src/utils/highlightLinesNetworkPlan.ts +0 -25
- package/src/utils/hooks/useDebug.tsx +0 -11
- package/src/utils/hooks/useDeparture.tsx +0 -24
- package/src/utils/hooks/useFit.tsx +0 -57
- package/src/utils/hooks/useFitOnFeatures.tsx +0 -77
- package/src/utils/hooks/useI18n.tsx +0 -23
- package/src/utils/hooks/useInitialLayersVisiblity.tsx +0 -58
- package/src/utils/hooks/useInitialPermalink.tsx +0 -93
- package/src/utils/hooks/useLayerConfig.tsx +0 -17
- package/src/utils/hooks/useLayersConfig.tsx +0 -49
- package/src/utils/hooks/useLnp.tsx +0 -146
- package/src/utils/hooks/useMapContext.tsx +0 -166
- package/src/utils/hooks/useMocoSituation.tsx +0 -62
- package/src/utils/hooks/useParams.ts +0 -5
- package/src/utils/hooks/usePermalink.tsx +0 -25
- package/src/utils/hooks/useRealtimeDepartures.tsx +0 -45
- package/src/utils/hooks/useRealtimeRenderedTrajectory.tsx +0 -42
- package/src/utils/hooks/useRealtimeStation.tsx +0 -39
- package/src/utils/hooks/useRealtimeStopSequences.tsx +0 -43
- package/src/utils/hooks/useRealtimeTrainsByRouteIdentifier.tsx +0 -72
- package/src/utils/hooks/useRouteStop.tsx +0 -40
- package/src/utils/hooks/useRvfContext.tsx +0 -46
- package/src/utils/hooks/useScrollTo.tsx +0 -36
- package/src/utils/hooks/useSearchLines.tsx +0 -34
- package/src/utils/hooks/useSearchLnpStops.tsx +0 -38
- package/src/utils/hooks/useSearchStops.tsx +0 -85
- package/src/utils/hooks/useSearchTrains.tsx +0 -83
- package/src/utils/hooks/useZoom.tsx +0 -44
- package/src/utils/mergePublications.test.ts +0 -91
- package/src/utils/mergePublications.ts +0 -52
- package/src/utils/realtimeRVFStyle.ts +0 -523
- package/src/utils/sharingGraphqlUtils.ts +0 -320
- package/src/utils/sharingStylesUtils.ts +0 -222
- package/src/utils/sharingWFSUtils.ts +0 -116
- package/src/utils/translations.ts +0 -252
- package/src/utils/translationsReasons.ts +0 -716
- package/tailwind.config.mjs +0 -95
- package/testNotification.json +0 -115
- package/tsconfig.json +0 -12
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import mergePublications from "./mergePublications";
|
|
2
|
-
|
|
3
|
-
import type { PublicationType } from "mobility-toolbox-js/types";
|
|
4
|
-
|
|
5
|
-
describe("mergePublications", () => {
|
|
6
|
-
it("should merge publications with same publication windows and textual contents", () => {
|
|
7
|
-
const publications = [
|
|
8
|
-
{
|
|
9
|
-
publicationLines: [
|
|
10
|
-
{
|
|
11
|
-
category: "DISRUPTION",
|
|
12
|
-
hasIcon: true,
|
|
13
|
-
lines: [
|
|
14
|
-
{
|
|
15
|
-
name: "510",
|
|
16
|
-
operatorRef: "SBG",
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
name: "510",
|
|
20
|
-
operatorRef: "SBG",
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
name: "510",
|
|
24
|
-
operatorRef: "SBG",
|
|
25
|
-
},
|
|
26
|
-
],
|
|
27
|
-
mot: "BUS",
|
|
28
|
-
},
|
|
29
|
-
],
|
|
30
|
-
publicationStops: [],
|
|
31
|
-
publicationWindows: [],
|
|
32
|
-
serviceCondition: "DIVERTED",
|
|
33
|
-
serviceConditionGroup: "CHANGES",
|
|
34
|
-
severity: "NORMAL",
|
|
35
|
-
severityGroup: "NORMAL",
|
|
36
|
-
textualContentLarge: null,
|
|
37
|
-
textualContentMedium: {
|
|
38
|
-
de: {
|
|
39
|
-
consequence: "",
|
|
40
|
-
description:
|
|
41
|
-
"Zwischen <b>Denzlingen Mattenbühl</b> und <b>Denzlingen Bahnhof</b> kommt es vom <b>26. Februar 2026 ab 08:00 Uhr bis auf Weiteres</b> zu <b>einer Umleitung und Haltausfällen</b> wegen einer Baumaßnahme. Betroffen <b>sind die Linien 510 und 512</b>. Es kommt zu folgenden Änderungen:<br>\n <b>Umleitung Linie 510</b>: Die Haltestellen Denzlingen Gewerbegebiet bis Denzlingen Mattenbühl werden nicht bedient. <br><br>Die Änderungen sind in der elektronischen Fahrplanauskunft EFA hinterlegt.",
|
|
42
|
-
durationText: "",
|
|
43
|
-
reason: "",
|
|
44
|
-
recommendation: "",
|
|
45
|
-
summary:
|
|
46
|
-
"Linien 510 und 512: Umleitung und Haltentfall wegen einer Baumaßnahme",
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
publicationLines: [
|
|
52
|
-
{
|
|
53
|
-
category: "DISRUPTION",
|
|
54
|
-
hasIcon: true,
|
|
55
|
-
lines: [
|
|
56
|
-
{
|
|
57
|
-
name: "512",
|
|
58
|
-
operatorRef: "SBG",
|
|
59
|
-
},
|
|
60
|
-
],
|
|
61
|
-
mot: "BUS",
|
|
62
|
-
},
|
|
63
|
-
],
|
|
64
|
-
publicationStops: [],
|
|
65
|
-
publicationWindows: [],
|
|
66
|
-
serviceCondition: "DIVERTED",
|
|
67
|
-
serviceConditionGroup: "CHANGES",
|
|
68
|
-
severity: "NORMAL",
|
|
69
|
-
severityGroup: "NORMAL",
|
|
70
|
-
textualContentLarge: null,
|
|
71
|
-
textualContentMedium: {
|
|
72
|
-
de: {
|
|
73
|
-
consequence: "",
|
|
74
|
-
description:
|
|
75
|
-
"Zwischen <b>Denzlingen Mattenbühl</b> und <b>Denzlingen Bahnhof</b> kommt es vom <b>26. Februar 2026 ab 08:00 Uhr bis auf Weiteres</b> zu <b>einer Umleitung und Haltausfällen</b> wegen einer Baumaßnahme. Betroffen <b>sind die Linien 510 und 512</b>. Es kommt zu folgenden Änderungen:<br>\n <b>Umleitung Linie 510</b>: Die Haltestellen Denzlingen Gewerbegebiet bis Denzlingen Mattenbühl werden nicht bedient. <br><br>Die Änderungen sind in der elektronischen Fahrplanauskunft EFA hinterlegt.",
|
|
76
|
-
durationText: "",
|
|
77
|
-
reason: "",
|
|
78
|
-
recommendation: "",
|
|
79
|
-
summary:
|
|
80
|
-
"Linien 510 und 512: Umleitung und Haltentfall wegen einer Baumaßnahme",
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
] as PublicationType[];
|
|
85
|
-
const merged = mergePublications(publications);
|
|
86
|
-
expect(merged).toHaveLength(1);
|
|
87
|
-
expect(merged[0].publicationLines).toHaveLength(2);
|
|
88
|
-
expect(merged[0].publicationLines?.[0].lines[0].name).toBe("510");
|
|
89
|
-
expect(merged[0].publicationLines?.[1].lines[0].name).toBe("512");
|
|
90
|
-
});
|
|
91
|
-
});
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import type { PublicationType } from "mobility-toolbox-js/types";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* When imported from external source, some publication have the same publication
|
|
5
|
-
* windows and the same textualContents but only differs the lines or stations.
|
|
6
|
-
* In that case we merge them (lines and stops) to avoid duplicates in the display.
|
|
7
|
-
* TODO fixes this in backend oder import
|
|
8
|
-
*/
|
|
9
|
-
const mergePublications = (
|
|
10
|
-
publications: PublicationType[] = [],
|
|
11
|
-
): PublicationType[] => {
|
|
12
|
-
const mergedPublications: PublicationType[] = [];
|
|
13
|
-
try {
|
|
14
|
-
publications.forEach((publication) => {
|
|
15
|
-
const publicationsWindowsStr = JSON.stringify(
|
|
16
|
-
publication.publicationWindows,
|
|
17
|
-
);
|
|
18
|
-
const textualContentStr = JSON.stringify(publication.textualContents);
|
|
19
|
-
|
|
20
|
-
// Find a previous identical publication
|
|
21
|
-
const identicalPublication = mergedPublications.find((p) => {
|
|
22
|
-
return (
|
|
23
|
-
p.severity === publication.severity &&
|
|
24
|
-
p.serviceCondition === publication.serviceCondition &&
|
|
25
|
-
JSON.stringify(p.publicationWindows) === publicationsWindowsStr &&
|
|
26
|
-
JSON.stringify(p.textualContents) === textualContentStr
|
|
27
|
-
);
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
if (identicalPublication) {
|
|
31
|
-
// We move the lines and stops on the same publication to display them together and avoid duplicates
|
|
32
|
-
identicalPublication.publicationLines = [
|
|
33
|
-
...(identicalPublication.publicationLines || []),
|
|
34
|
-
...(publication.publicationLines || []),
|
|
35
|
-
];
|
|
36
|
-
identicalPublication.publicationStops = [
|
|
37
|
-
...(identicalPublication.publicationStops || []),
|
|
38
|
-
...(publication.publicationStops || []),
|
|
39
|
-
];
|
|
40
|
-
return false;
|
|
41
|
-
}
|
|
42
|
-
mergedPublications.push(publication);
|
|
43
|
-
});
|
|
44
|
-
} catch (error) {
|
|
45
|
-
// JSON parsing could failed, we log the error and return the non merged
|
|
46
|
-
// publications to avoid breaking the display
|
|
47
|
-
console.error("Error merging publications", error);
|
|
48
|
-
return publications;
|
|
49
|
-
}
|
|
50
|
-
return mergedPublications;
|
|
51
|
-
};
|
|
52
|
-
export default mergePublications;
|
|
@@ -1,523 +0,0 @@
|
|
|
1
|
-
import { createCanvas } from "mobility-toolbox-js/ol";
|
|
2
|
-
|
|
3
|
-
import noRealtime from "../icons/NoRealtime/norealtime.svg";
|
|
4
|
-
|
|
5
|
-
import type {
|
|
6
|
-
AnyCanvasContext,
|
|
7
|
-
RealtimeStyleFunction,
|
|
8
|
-
RealtimeStyleOptions,
|
|
9
|
-
RealtimeTrajectory,
|
|
10
|
-
StyleCache,
|
|
11
|
-
ViewState,
|
|
12
|
-
} from "mobility-toolbox-js/types";
|
|
13
|
-
const cacheNoRealtime: StyleCache = {};
|
|
14
|
-
|
|
15
|
-
const image = new Image(42, 42); // Using optional size for image
|
|
16
|
-
// image.onload = () => {
|
|
17
|
-
// [1, 2, 3].forEach((pixelRatio) => {
|
|
18
|
-
// const canvas = createCanvas(42, 42);
|
|
19
|
-
// const ctx = canvas.getContext("2d") as CanvasRenderingContext2D;
|
|
20
|
-
// if (!ctx) {
|
|
21
|
-
// return null;
|
|
22
|
-
// }
|
|
23
|
-
// ctx.drawImage(image, 0, 0, 16 * pixelRatio, 16 * pixelRatio);
|
|
24
|
-
// cacheNoRealtime[`${pixelRatio}`] = canvas;
|
|
25
|
-
// });
|
|
26
|
-
// };
|
|
27
|
-
// Draw when image has loaded
|
|
28
|
-
image.src = noRealtime;
|
|
29
|
-
|
|
30
|
-
export const getNoRealtimeCanvas = (radius, pixelRatio) => {
|
|
31
|
-
let size = 16;
|
|
32
|
-
if (radius > size) {
|
|
33
|
-
size = 22;
|
|
34
|
-
}
|
|
35
|
-
const key = `${size},${pixelRatio}`;
|
|
36
|
-
if (!cacheNoRealtime[key]) {
|
|
37
|
-
const canvas = createCanvas(size * pixelRatio, size * pixelRatio);
|
|
38
|
-
const ctx = canvas.getContext("2d") as CanvasRenderingContext2D;
|
|
39
|
-
if (!ctx) {
|
|
40
|
-
return null;
|
|
41
|
-
}
|
|
42
|
-
ctx.drawImage(image, 0, 0, size * pixelRatio, size * pixelRatio);
|
|
43
|
-
cacheNoRealtime[key] = canvas;
|
|
44
|
-
}
|
|
45
|
-
return cacheNoRealtime[key];
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
const cacheDelayBg: StyleCache = {};
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Draw circle delay background
|
|
52
|
-
*
|
|
53
|
-
* @private
|
|
54
|
-
*/
|
|
55
|
-
export const getDelayBgCanvas = (
|
|
56
|
-
origin: number,
|
|
57
|
-
radius: number,
|
|
58
|
-
color: string,
|
|
59
|
-
) => {
|
|
60
|
-
const key = `${origin}, ${radius}, ${color}`;
|
|
61
|
-
if (!cacheDelayBg[key]) {
|
|
62
|
-
const canvas = createCanvas(origin * 2, origin * 2);
|
|
63
|
-
if (canvas) {
|
|
64
|
-
const ctx = canvas.getContext("2d") as AnyCanvasContext;
|
|
65
|
-
if (!ctx) {
|
|
66
|
-
return null;
|
|
67
|
-
}
|
|
68
|
-
ctx.beginPath();
|
|
69
|
-
ctx.arc(origin, origin, radius, 0, 2 * Math.PI, false);
|
|
70
|
-
ctx.fillStyle = color;
|
|
71
|
-
ctx.filter = "blur(1px)";
|
|
72
|
-
ctx.fill();
|
|
73
|
-
cacheDelayBg[key] = canvas;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
return cacheDelayBg[key];
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
const cacheDelayText: StyleCache = {};
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Draw delay text
|
|
83
|
-
*
|
|
84
|
-
* @private
|
|
85
|
-
*/
|
|
86
|
-
export const getDelayTextCanvas = (
|
|
87
|
-
text: string,
|
|
88
|
-
fontSize: number,
|
|
89
|
-
font: string,
|
|
90
|
-
delayColor: string,
|
|
91
|
-
delayOutlineColor = "#000",
|
|
92
|
-
pixelRatio = 1,
|
|
93
|
-
) => {
|
|
94
|
-
const key = `${text}, ${font}, ${delayColor}, ${delayOutlineColor}, ${pixelRatio}`;
|
|
95
|
-
if (!cacheDelayText[key]) {
|
|
96
|
-
const canvas = createCanvas(
|
|
97
|
-
Math.ceil(text.length * fontSize),
|
|
98
|
-
Math.ceil(fontSize + 8 * pixelRatio),
|
|
99
|
-
);
|
|
100
|
-
if (canvas) {
|
|
101
|
-
const ctx = canvas.getContext("2d") as CanvasRenderingContext2D;
|
|
102
|
-
if (!ctx) {
|
|
103
|
-
return null;
|
|
104
|
-
}
|
|
105
|
-
ctx.font = font;
|
|
106
|
-
ctx.textAlign = "left";
|
|
107
|
-
ctx.textBaseline = "middle";
|
|
108
|
-
ctx.font = font;
|
|
109
|
-
ctx.fillStyle = delayColor;
|
|
110
|
-
ctx.strokeStyle = delayOutlineColor;
|
|
111
|
-
ctx.lineWidth = 1.5 * pixelRatio;
|
|
112
|
-
ctx.strokeText(text, 0, fontSize);
|
|
113
|
-
ctx.fillText(text, 0, fontSize);
|
|
114
|
-
cacheDelayText[key] = canvas;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
return cacheDelayText[key];
|
|
118
|
-
};
|
|
119
|
-
|
|
120
|
-
const cacheCircle: StyleCache = {};
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* Draw colored circle with black border
|
|
124
|
-
*
|
|
125
|
-
* @private
|
|
126
|
-
*/
|
|
127
|
-
export const getCircleCanvas = (
|
|
128
|
-
origin: number,
|
|
129
|
-
radius: number,
|
|
130
|
-
color: string,
|
|
131
|
-
hasStroke: boolean,
|
|
132
|
-
hasDash: boolean,
|
|
133
|
-
pixelRatio: number,
|
|
134
|
-
) => {
|
|
135
|
-
const key = `${origin}, ${radius}, ${color}, ${hasStroke}, ${hasDash}, ${pixelRatio}`;
|
|
136
|
-
if (!cacheCircle[key]) {
|
|
137
|
-
const canvas = createCanvas(origin * 2, origin * 2);
|
|
138
|
-
if (canvas) {
|
|
139
|
-
const ctx = canvas.getContext("2d") as AnyCanvasContext;
|
|
140
|
-
if (!ctx) {
|
|
141
|
-
return null;
|
|
142
|
-
}
|
|
143
|
-
ctx.fillStyle = color;
|
|
144
|
-
|
|
145
|
-
if (hasStroke) {
|
|
146
|
-
ctx.lineWidth = 1 * pixelRatio;
|
|
147
|
-
ctx.strokeStyle = "#000000";
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
ctx.beginPath();
|
|
151
|
-
ctx.arc(origin, origin, radius, 0, 2 * Math.PI, false);
|
|
152
|
-
ctx.fill();
|
|
153
|
-
|
|
154
|
-
if (hasDash) {
|
|
155
|
-
ctx.setLineDash([5, 3]);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
if (hasStroke) {
|
|
159
|
-
ctx.stroke();
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
cacheCircle[key] = canvas;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
return cacheCircle[key];
|
|
166
|
-
};
|
|
167
|
-
|
|
168
|
-
const cacheText: StyleCache = {};
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* Draw text in the circle
|
|
172
|
-
*
|
|
173
|
-
* @private
|
|
174
|
-
*/
|
|
175
|
-
export const getTextCanvas = (
|
|
176
|
-
trajectory: RealtimeTrajectory,
|
|
177
|
-
viewState: ViewState,
|
|
178
|
-
text: string,
|
|
179
|
-
origin: number,
|
|
180
|
-
textSize: number,
|
|
181
|
-
fillColor: string,
|
|
182
|
-
strokeColor: string,
|
|
183
|
-
hasStroke: boolean,
|
|
184
|
-
pixelRatio: number,
|
|
185
|
-
getTextFont: (
|
|
186
|
-
trajectory: RealtimeTrajectory,
|
|
187
|
-
viewState: ViewState,
|
|
188
|
-
fontSize: number,
|
|
189
|
-
text?: string,
|
|
190
|
-
) => string,
|
|
191
|
-
) => {
|
|
192
|
-
const key = `${text}, ${origin}, ${textSize}, ${fillColor},${strokeColor}, ${hasStroke}, ${pixelRatio}`;
|
|
193
|
-
if (!cacheText[key]) {
|
|
194
|
-
const canvas = createCanvas(origin * 2, origin * 2);
|
|
195
|
-
if (canvas) {
|
|
196
|
-
const ctx = canvas.getContext("2d") as AnyCanvasContext;
|
|
197
|
-
if (!ctx) {
|
|
198
|
-
return null;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
// Draw a stroke to the text only if a provider provides realtime but we don't use it.
|
|
202
|
-
if (hasStroke) {
|
|
203
|
-
ctx.save();
|
|
204
|
-
ctx.textBaseline = "middle";
|
|
205
|
-
ctx.textAlign = "center";
|
|
206
|
-
ctx.font = getTextFont(trajectory, viewState, textSize + 2, text);
|
|
207
|
-
ctx.strokeStyle = strokeColor;
|
|
208
|
-
ctx.strokeText(text, origin, origin);
|
|
209
|
-
ctx.restore();
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
// Draw a text
|
|
213
|
-
ctx.textBaseline = "middle";
|
|
214
|
-
ctx.textAlign = "center";
|
|
215
|
-
ctx.fillStyle = fillColor;
|
|
216
|
-
ctx.font = getTextFont(trajectory, viewState, textSize, text);
|
|
217
|
-
ctx.strokeStyle = strokeColor;
|
|
218
|
-
ctx.strokeText(text, origin, origin);
|
|
219
|
-
ctx.fillText(text, origin, origin);
|
|
220
|
-
|
|
221
|
-
cacheText[key] = canvas;
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
return cacheText[key];
|
|
225
|
-
};
|
|
226
|
-
|
|
227
|
-
const cache: StyleCache = {};
|
|
228
|
-
|
|
229
|
-
/**
|
|
230
|
-
* A tracker style that take in account the delay.
|
|
231
|
-
*
|
|
232
|
-
* @param {RealtimeTrajectory} trajectory The trajectory to render.
|
|
233
|
-
* @param {ViewState} viewState The view state of the map.
|
|
234
|
-
* @param {RealtimeStyleOptions} options Some options to change the rendering
|
|
235
|
-
* @return a canvas
|
|
236
|
-
* @private
|
|
237
|
-
*/
|
|
238
|
-
const realtimeRVFStyle: RealtimeStyleFunction = (
|
|
239
|
-
trajectory: RealtimeTrajectory,
|
|
240
|
-
viewState: ViewState,
|
|
241
|
-
options: RealtimeStyleOptions,
|
|
242
|
-
) => {
|
|
243
|
-
const {
|
|
244
|
-
delayDisplay = 300000,
|
|
245
|
-
delayOutlineColor = "#000",
|
|
246
|
-
getColor = () => {
|
|
247
|
-
return "#000";
|
|
248
|
-
},
|
|
249
|
-
getDelayColor = () => {
|
|
250
|
-
return "#000";
|
|
251
|
-
},
|
|
252
|
-
getDelayFont = (traj, viewStat, fontSize: number) => {
|
|
253
|
-
return `bold ${fontSize}px arial, sans-serif`;
|
|
254
|
-
},
|
|
255
|
-
getDelayText = () => {
|
|
256
|
-
return null;
|
|
257
|
-
},
|
|
258
|
-
getMaxRadiusForStrokeAndDelay = () => {
|
|
259
|
-
return 7;
|
|
260
|
-
},
|
|
261
|
-
getMaxRadiusForText = () => {
|
|
262
|
-
return 10;
|
|
263
|
-
},
|
|
264
|
-
getRadius = () => {
|
|
265
|
-
return 0;
|
|
266
|
-
},
|
|
267
|
-
getText = (traj: RealtimeTrajectory) => {
|
|
268
|
-
return traj?.properties?.line?.name || "I";
|
|
269
|
-
},
|
|
270
|
-
getTextColor = () => {
|
|
271
|
-
return "#000";
|
|
272
|
-
},
|
|
273
|
-
getTextFont = (traj, viewStat, fontSize: number) => {
|
|
274
|
-
return `bold ${fontSize}px arial, sans-serif`;
|
|
275
|
-
},
|
|
276
|
-
getTextSize = () => {
|
|
277
|
-
return 14;
|
|
278
|
-
},
|
|
279
|
-
hoverVehicleId,
|
|
280
|
-
selectedVehicleId,
|
|
281
|
-
useDelayStyle,
|
|
282
|
-
} = options;
|
|
283
|
-
|
|
284
|
-
const { pixelRatio = 1 } = viewState;
|
|
285
|
-
const { type } = trajectory.properties;
|
|
286
|
-
const {
|
|
287
|
-
delay,
|
|
288
|
-
has_realtime_journey: hasRealtimeJourney,
|
|
289
|
-
line,
|
|
290
|
-
operator_provides_realtime_journey: operatorProvidesRealtime,
|
|
291
|
-
state,
|
|
292
|
-
train_id: id,
|
|
293
|
-
} = trajectory.properties;
|
|
294
|
-
let { color, name, text_color: textColor } = line || {};
|
|
295
|
-
|
|
296
|
-
name = getText(trajectory, viewState);
|
|
297
|
-
|
|
298
|
-
const cancelled = state === "JOURNEY_CANCELLED";
|
|
299
|
-
|
|
300
|
-
if (!name) {
|
|
301
|
-
name = "I";
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
textColor = getTextColor(trajectory, viewState);
|
|
305
|
-
color = getColor(trajectory, viewState);
|
|
306
|
-
|
|
307
|
-
if (color && !color.startsWith("#")) {
|
|
308
|
-
color = `#${color}`;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
if (!textColor.startsWith("#")) {
|
|
312
|
-
textColor = `#${textColor}`;
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
const hover = !!(hoverVehicleId && hoverVehicleId === id);
|
|
316
|
-
const selected = !!(selectedVehicleId && selectedVehicleId === id);
|
|
317
|
-
|
|
318
|
-
// Calcul the radius of the circle
|
|
319
|
-
let radius = getRadius(trajectory, viewState) * pixelRatio;
|
|
320
|
-
const isDisplayStrokeAndDelay =
|
|
321
|
-
radius >= getMaxRadiusForStrokeAndDelay() * pixelRatio;
|
|
322
|
-
|
|
323
|
-
if (hover || selected) {
|
|
324
|
-
radius = isDisplayStrokeAndDelay
|
|
325
|
-
? radius + 5 * pixelRatio
|
|
326
|
-
: 14 * pixelRatio;
|
|
327
|
-
}
|
|
328
|
-
const isDisplayText = radius > getMaxRadiusForText() * pixelRatio;
|
|
329
|
-
|
|
330
|
-
// Optimize the cache key, very important in high zoom level
|
|
331
|
-
let key = `${radius}${hover || selected}${hasRealtimeJourney}`;
|
|
332
|
-
|
|
333
|
-
if (useDelayStyle) {
|
|
334
|
-
key += `${operatorProvidesRealtime}${delay}${cancelled}`;
|
|
335
|
-
} else {
|
|
336
|
-
key += `${color || type}`;
|
|
337
|
-
|
|
338
|
-
if (isDisplayStrokeAndDelay) {
|
|
339
|
-
key += `${cancelled}${delay}`;
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
if (isDisplayText) {
|
|
344
|
-
key += `${name}${textColor}`;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
if (!cache[key]) {
|
|
348
|
-
if (radius === 0) {
|
|
349
|
-
return null;
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
const margin = 1 * pixelRatio;
|
|
353
|
-
const radiusDelay = radius + 2 * pixelRatio;
|
|
354
|
-
const markerSize = radius * 2;
|
|
355
|
-
const size = radiusDelay * 2 + margin * 2;
|
|
356
|
-
const origin = size / 2;
|
|
357
|
-
|
|
358
|
-
// Draw circle delay background
|
|
359
|
-
let delayBg = null;
|
|
360
|
-
if (isDisplayStrokeAndDelay && delay !== null) {
|
|
361
|
-
delayBg = getDelayBgCanvas(
|
|
362
|
-
origin,
|
|
363
|
-
radiusDelay,
|
|
364
|
-
getDelayColor(trajectory, viewState, delay, cancelled),
|
|
365
|
-
);
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
// Show delay if feature is hovered or if delay is above 5mins.
|
|
369
|
-
let delayText = null;
|
|
370
|
-
let fontSize = 0;
|
|
371
|
-
if (
|
|
372
|
-
isDisplayStrokeAndDelay &&
|
|
373
|
-
(hover || (delay || 0) >= delayDisplay || cancelled)
|
|
374
|
-
) {
|
|
375
|
-
// Draw delay text
|
|
376
|
-
fontSize =
|
|
377
|
-
Math.max(
|
|
378
|
-
cancelled ? 19 : 14,
|
|
379
|
-
Math.min(cancelled ? 19 : 17, radius * 1.2),
|
|
380
|
-
) * pixelRatio;
|
|
381
|
-
const text = getDelayText(trajectory, viewState, delay, cancelled);
|
|
382
|
-
|
|
383
|
-
if (text) {
|
|
384
|
-
delayText = getDelayTextCanvas(
|
|
385
|
-
text,
|
|
386
|
-
fontSize,
|
|
387
|
-
getDelayFont(
|
|
388
|
-
trajectory,
|
|
389
|
-
viewState,
|
|
390
|
-
hover || viewState.zoom >= 13 ? fontSize : 0,
|
|
391
|
-
text,
|
|
392
|
-
), // Only display delay labels on zoom 13+
|
|
393
|
-
getDelayColor(trajectory, viewState, delay, cancelled, true),
|
|
394
|
-
delayOutlineColor,
|
|
395
|
-
pixelRatio,
|
|
396
|
-
);
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
let realtimeIconCanvas = null;
|
|
401
|
-
|
|
402
|
-
// Draw colored circle with black border
|
|
403
|
-
let circleFillColor;
|
|
404
|
-
if (useDelayStyle) {
|
|
405
|
-
circleFillColor = getDelayColor(trajectory, viewState, delay, cancelled);
|
|
406
|
-
} else {
|
|
407
|
-
circleFillColor = color || getColor(trajectory, viewState);
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
const hasStroke = isDisplayStrokeAndDelay || hover || selected;
|
|
411
|
-
|
|
412
|
-
const hasDash =
|
|
413
|
-
!!isDisplayStrokeAndDelay &&
|
|
414
|
-
!!useDelayStyle &&
|
|
415
|
-
delay === null &&
|
|
416
|
-
operatorProvidesRealtime === "yes";
|
|
417
|
-
|
|
418
|
-
const hasNoRealtimeIcon =
|
|
419
|
-
!!hasStroke && isDisplayText && !hasRealtimeJourney && !cancelled;
|
|
420
|
-
|
|
421
|
-
if (hasNoRealtimeIcon) {
|
|
422
|
-
realtimeIconCanvas = getNoRealtimeCanvas(radius, pixelRatio);
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
const circle = getCircleCanvas(
|
|
426
|
-
origin,
|
|
427
|
-
radius,
|
|
428
|
-
circleFillColor,
|
|
429
|
-
hasStroke,
|
|
430
|
-
hasDash,
|
|
431
|
-
pixelRatio,
|
|
432
|
-
);
|
|
433
|
-
|
|
434
|
-
// Create the canvas
|
|
435
|
-
const extraWidth =
|
|
436
|
-
delayText?.width ||
|
|
437
|
-
(hasNoRealtimeIcon && realtimeIconCanvas.width / 2) ||
|
|
438
|
-
0;
|
|
439
|
-
const extraHeight =
|
|
440
|
-
(hasNoRealtimeIcon && realtimeIconCanvas.height / 2) || 0;
|
|
441
|
-
const width = size + extraWidth * 2;
|
|
442
|
-
const height = size + extraHeight * 2;
|
|
443
|
-
const canvas = createCanvas(width, height);
|
|
444
|
-
if (canvas) {
|
|
445
|
-
const ctx = canvas.getContext("2d") as CanvasRenderingContext2D;
|
|
446
|
-
if (!ctx) {
|
|
447
|
-
return null;
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
// The renderTrajectories will center the image on the vehicle positions.
|
|
451
|
-
const originX = extraWidth;
|
|
452
|
-
const originY = extraHeight;
|
|
453
|
-
|
|
454
|
-
if (delayBg) {
|
|
455
|
-
ctx.drawImage(delayBg, originX, originY);
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
if (circle) {
|
|
459
|
-
ctx.drawImage(circle, originX, originY);
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
// Draw text in the circle
|
|
463
|
-
let circleText = null;
|
|
464
|
-
if (isDisplayText) {
|
|
465
|
-
const fontSize2 = Math.max(radius, 10);
|
|
466
|
-
const textSize = getTextSize(
|
|
467
|
-
trajectory,
|
|
468
|
-
viewState,
|
|
469
|
-
ctx,
|
|
470
|
-
markerSize,
|
|
471
|
-
name,
|
|
472
|
-
fontSize2,
|
|
473
|
-
getTextFont(trajectory, viewState, fontSize2, name),
|
|
474
|
-
);
|
|
475
|
-
const textColor2 = !useDelayStyle
|
|
476
|
-
? textColor || getTextColor(trajectory, viewState)
|
|
477
|
-
: "#000000";
|
|
478
|
-
const hasStroke2 =
|
|
479
|
-
!!useDelayStyle &&
|
|
480
|
-
delay === null &&
|
|
481
|
-
operatorProvidesRealtime === "yes";
|
|
482
|
-
|
|
483
|
-
circleText = getTextCanvas(
|
|
484
|
-
trajectory,
|
|
485
|
-
viewState,
|
|
486
|
-
name,
|
|
487
|
-
origin,
|
|
488
|
-
textSize,
|
|
489
|
-
textColor2,
|
|
490
|
-
circleFillColor,
|
|
491
|
-
hasStroke2,
|
|
492
|
-
pixelRatio,
|
|
493
|
-
getTextFont,
|
|
494
|
-
);
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
if (circleText) {
|
|
498
|
-
ctx.drawImage(circleText, originX, originY);
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
if (delayText) {
|
|
502
|
-
ctx.drawImage(
|
|
503
|
-
delayText,
|
|
504
|
-
originX + Math.ceil(origin + radiusDelay) + margin,
|
|
505
|
-
originY + Math.ceil(origin - fontSize),
|
|
506
|
-
);
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
if (hasNoRealtimeIcon) {
|
|
510
|
-
ctx.drawImage(
|
|
511
|
-
realtimeIconCanvas,
|
|
512
|
-
originX - realtimeIconCanvas.width / 4,
|
|
513
|
-
originY - realtimeIconCanvas.height / 4,
|
|
514
|
-
);
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
cache[key] = canvas;
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
return cache[key];
|
|
522
|
-
};
|
|
523
|
-
export default realtimeRVFStyle;
|