@mapvina-com/mapvina-react-native 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +9 -0
- package/MapVinaReactNative.podspec +96 -0
- package/README.md +47 -0
- package/android/build.gradle +139 -0
- package/android/gradle.properties +16 -0
- package/android/src/main/AndroidManifest.xml +5 -0
- package/android/src/main/java/io/github/mapvina/reactnative/MLRNPackage.kt +163 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/AbstractEvent.kt +20 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/AbstractEventEmitter.kt +80 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/AbstractMapFeature.kt +13 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/annotations/callout/MLRNCallout.kt +8 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/annotations/callout/MLRNCalloutManager.kt +26 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/annotations/markerview/MLRNMarkerView.kt +245 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/annotations/markerview/MLRNMarkerViewContent.kt +46 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/annotations/markerview/MLRNMarkerViewManager.kt +104 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/annotations/markerview/MarkerViewManager.kt +143 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/annotations/pointannotation/MLRNPointAnnotation.kt +449 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/annotations/pointannotation/MLRNPointAnnotationManager.kt +133 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/camera/CameraStop.kt +223 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/camera/CameraUpdateItem.kt +100 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/camera/CameraUpdateQueue.kt +58 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/camera/MLRNCamera.kt +411 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/camera/MLRNCameraManager.kt +84 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/camera/MLRNCameraModule.kt +36 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/camera/constants/CameraEasing.kt +23 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/images/MLRNImages.kt +172 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/images/MLRNImagesManager.kt +73 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/layer/MLRNLayer.kt +370 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/layer/MLRNLayerManager.kt +105 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/layer/style/MLRNStyle.kt +60 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/layer/style/MLRNStyleFactory.kt +3057 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/layer/style/MLRNStyleValue.kt +159 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/location/LocationComponentManager.kt +174 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/location/MLRNNativeUserLocation.kt +75 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/location/MLRNNativeUserLocationManager.kt +50 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/mapview/MLRNAndroidTextureMapView.kt +25 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/mapview/MLRNAndroidTextureMapViewManager.kt +25 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/mapview/MLRNMapView.kt +1514 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/mapview/MLRNMapViewManager.kt +280 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/mapview/MLRNMapViewModule.kt +202 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/mapview/helpers/CameraChangeTracker.kt +26 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/mapview/helpers/LayerSourceInfo.kt +76 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/sources/MLRNPressableSource.kt +61 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/sources/MLRNSource.kt +198 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/sources/MLRNSourceManager.kt +69 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/sources/geojsonsource/ClusterPropertyEntry.kt +8 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/sources/geojsonsource/MLRNGeoJSONSource.kt +212 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/sources/geojsonsource/MLRNGeoJSONSourceManager.kt +159 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/sources/geojsonsource/MLRNGeoJSONSourceModule.kt +74 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/sources/imagesource/MLRNImageSource.kt +58 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/sources/imagesource/MLRNImageSourceManager.kt +38 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/sources/tilesources/MLRNPressableTileSource.kt +20 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/sources/tilesources/MLRNTileSource.kt +20 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/sources/tilesources/MLRNTileSourceManager.kt +66 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/sources/tilesources/TileSourceInterface.kt +50 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/sources/tilesources/rasterdemsource/MLRNRasterDEMSource.kt +28 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/sources/tilesources/rasterdemsource/MLRNRasterDEMSourceManager.kt +34 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/sources/tilesources/rastersource/MLRNRasterSource.kt +23 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/sources/tilesources/rastersource/MLRNRasterSourceManager.kt +26 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/sources/tilesources/vectorsource/MLRNVectorSource.kt +37 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/sources/tilesources/vectorsource/MLRNVectorSourceManager.kt +17 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/sources/tilesources/vectorsource/MLRNVectorSourceModule.kt +44 -0
- package/android/src/main/java/io/github/mapvina/reactnative/events/AbstractEvent.java +59 -0
- package/android/src/main/java/io/github/mapvina/reactnative/events/EventEmitter.java +45 -0
- package/android/src/main/java/io/github/mapvina/reactnative/events/IEvent.java +14 -0
- package/android/src/main/java/io/github/mapvina/reactnative/events/MapChangeEvent.kt +16 -0
- package/android/src/main/java/io/github/mapvina/reactnative/events/MapClickEvent.java +51 -0
- package/android/src/main/java/io/github/mapvina/reactnative/events/MapPressEvent.kt +30 -0
- package/android/src/main/java/io/github/mapvina/reactnative/events/MapPressEventWithFeatures.kt +21 -0
- package/android/src/main/java/io/github/mapvina/reactnative/events/OfflineEvent.java +25 -0
- package/android/src/main/java/io/github/mapvina/reactnative/events/PointAnnotationClickEvent.java +40 -0
- package/android/src/main/java/io/github/mapvina/reactnative/events/PointAnnotationDragEvent.java +49 -0
- package/android/src/main/java/io/github/mapvina/reactnative/events/PointAnnotationEvent.kt +32 -0
- package/android/src/main/java/io/github/mapvina/reactnative/events/constants/EventKeys.java +22 -0
- package/android/src/main/java/io/github/mapvina/reactnative/events/constants/EventTypes.java +27 -0
- package/android/src/main/java/io/github/mapvina/reactnative/location/LocationManager.kt +167 -0
- package/android/src/main/java/io/github/mapvina/reactnative/location/TrackUserLocationMode.kt +39 -0
- package/android/src/main/java/io/github/mapvina/reactnative/location/TrackUserLocationState.kt +15 -0
- package/android/src/main/java/io/github/mapvina/reactnative/location/UserLocation.kt +42 -0
- package/android/src/main/java/io/github/mapvina/reactnative/location/engine/DefaultLocationEngineProvider.kt +18 -0
- package/android/src/main/java/io/github/mapvina/reactnative/location/engine/LocationEngineProvidable.kt +8 -0
- package/android/src/main/java/io/github/mapvina/reactnative/modules/MLRNLocationModule.kt +179 -0
- package/android/src/main/java/io/github/mapvina/reactnative/modules/MLRNLogModule.kt +141 -0
- package/android/src/main/java/io/github/mapvina/reactnative/modules/MLRNNetworkModule.kt +25 -0
- package/android/src/main/java/io/github/mapvina/reactnative/modules/MLRNOfflineModule.kt +661 -0
- package/android/src/main/java/io/github/mapvina/reactnative/modules/MLRNStaticMapModule.kt +121 -0
- package/android/src/main/java/io/github/mapvina/reactnative/modules/MLRNTransformRequestModule.kt +144 -0
- package/android/src/main/java/io/github/mapvina/reactnative/modules/TransformRequestInterceptor.kt +184 -0
- package/android/src/main/java/io/github/mapvina/reactnative/utils/BitmapUtils.java +125 -0
- package/android/src/main/java/io/github/mapvina/reactnative/utils/ConvertUtils.kt +225 -0
- package/android/src/main/java/io/github/mapvina/reactnative/utils/DownloadMapImageTask.java +155 -0
- package/android/src/main/java/io/github/mapvina/reactnative/utils/DownloadedImage.java +6 -0
- package/android/src/main/java/io/github/mapvina/reactnative/utils/ExpressionParser.kt +67 -0
- package/android/src/main/java/io/github/mapvina/reactnative/utils/GeoJSONUtils.kt +368 -0
- package/android/src/main/java/io/github/mapvina/reactnative/utils/GeoViewport.java +37 -0
- package/android/src/main/java/io/github/mapvina/reactnative/utils/ImageEntry.kt +14 -0
- package/android/src/main/java/io/github/mapvina/reactnative/utils/ReactTagResolver.kt +91 -0
- package/android/src/main/java/io/github/mapvina/reactnative/utils/ResourceUtils.java +26 -0
- package/android/src/main/java/io/github/mapvina/reactnative/utils/SphericalMercator.java +68 -0
- package/android/src/main/location-engine-default/io/github/mapvina/reactnative/location/engine/LocationEngineProvider.kt +8 -0
- package/android/src/main/location-engine-google/io/github/mapvina/reactnative/location/engine/GoogleLocationEngineImpl.kt +142 -0
- package/android/src/main/location-engine-google/io/github/mapvina/reactnative/location/engine/GoogleLocationEngineProvider.kt +29 -0
- package/android/src/main/location-engine-google/io/github/mapvina/reactnative/location/engine/LocationEngineProvider.kt +8 -0
- package/android/src/main/res/drawable/empty.xml +5 -0
- package/android/src/main/res/drawable/empty_drawable.png +0 -0
- package/android/src/main/res/drawable-xxhdpi/default_marker.png +0 -0
- package/app.plugin.js +1 -0
- package/ios/components/ViewManager.h +8 -0
- package/ios/components/ViewManager.m +49 -0
- package/ios/components/annotations/callout/MLRNCallout.h +7 -0
- package/ios/components/annotations/callout/MLRNCallout.m +67 -0
- package/ios/components/annotations/callout/MLRNCalloutComponentView.h +10 -0
- package/ios/components/annotations/callout/MLRNCalloutComponentView.mm +85 -0
- package/ios/components/annotations/point-annotation/MLRNPointAnnotation.h +45 -0
- package/ios/components/annotations/point-annotation/MLRNPointAnnotation.m +319 -0
- package/ios/components/annotations/point-annotation/MLRNPointAnnotationComponentView.h +10 -0
- package/ios/components/annotations/point-annotation/MLRNPointAnnotationComponentView.mm +327 -0
- package/ios/components/camera/CameraEasing.h +8 -0
- package/ios/components/camera/CameraStop.h +22 -0
- package/ios/components/camera/CameraStop.m +75 -0
- package/ios/components/camera/CameraUpdateItem.h +11 -0
- package/ios/components/camera/CameraUpdateItem.m +167 -0
- package/ios/components/camera/CameraUpdateQueue.h +13 -0
- package/ios/components/camera/CameraUpdateQueue.m +62 -0
- package/ios/components/camera/MLRNCamera.h +26 -0
- package/ios/components/camera/MLRNCamera.m +195 -0
- package/ios/components/camera/MLRNCameraComponentView.h +10 -0
- package/ios/components/camera/MLRNCameraComponentView.mm +201 -0
- package/ios/components/camera/MLRNCameraManager.h +11 -0
- package/ios/components/camera/MLRNCameraManager.m +20 -0
- package/ios/components/camera/MLRNCameraModule.h +4 -0
- package/ios/components/camera/MLRNCameraModule.mm +101 -0
- package/ios/components/images/MLRNImageLoader.h +27 -0
- package/ios/components/images/MLRNImageLoader.m +85 -0
- package/ios/components/images/MLRNImageQueue.h +15 -0
- package/ios/components/images/MLRNImageQueue.m +48 -0
- package/ios/components/images/MLRNImageQueueOperation.h +11 -0
- package/ios/components/images/MLRNImageQueueOperation.m +138 -0
- package/ios/components/images/MLRNImages.h +26 -0
- package/ios/components/images/MLRNImages.m +189 -0
- package/ios/components/images/MLRNImagesComponentView.h +9 -0
- package/ios/components/images/MLRNImagesComponentView.mm +104 -0
- package/ios/components/images/MLRNImagesModule.h +6 -0
- package/ios/components/images/MLRNImagesModule.mm +23 -0
- package/ios/components/layer/MLRNLayer.h +54 -0
- package/ios/components/layer/MLRNLayer.m +348 -0
- package/ios/components/layer/MLRNLayerComponentView.h +9 -0
- package/ios/components/layer/MLRNLayerComponentView.mm +136 -0
- package/ios/components/layer/style/MLRNStyle.h +224 -0
- package/ios/components/layer/style/MLRNStyle.m +1627 -0
- package/ios/components/layer/style/MLRNStyleValue.h +20 -0
- package/ios/components/layer/style/MLRNStyleValue.m +172 -0
- package/ios/components/map-view/MLRNMapTouchEvent.h +18 -0
- package/ios/components/map-view/MLRNMapTouchEvent.m +78 -0
- package/ios/components/map-view/MLRNMapView.h +119 -0
- package/ios/components/map-view/MLRNMapView.m +905 -0
- package/ios/components/map-view/MLRNMapViewComponentView.h +13 -0
- package/ios/components/map-view/MLRNMapViewComponentView.mm +430 -0
- package/ios/components/map-view/MLRNMapViewManager.h +70 -0
- package/ios/components/map-view/MLRNMapViewManager.m +152 -0
- package/ios/components/map-view/MLRNMapViewModule.h +4 -0
- package/ios/components/map-view/MLRNMapViewModule.mm +248 -0
- package/ios/components/sources/MLRNSource.h +28 -0
- package/ios/components/sources/MLRNSource.m +129 -0
- package/ios/components/sources/geojson-source/MLRNGeoJSONSource.h +32 -0
- package/ios/components/sources/geojson-source/MLRNGeoJSONSource.m +146 -0
- package/ios/components/sources/geojson-source/MLRNGeoJSONSourceComponentView.h +9 -0
- package/ios/components/sources/geojson-source/MLRNGeoJSONSourceComponentView.mm +168 -0
- package/ios/components/sources/geojson-source/MLRNGeoJSONSourceModule.h +4 -0
- package/ios/components/sources/geojson-source/MLRNGeoJSONSourceModule.mm +136 -0
- package/ios/components/sources/image-source/MLRNImageSource.h +8 -0
- package/ios/components/sources/image-source/MLRNImageSource.m +41 -0
- package/ios/components/sources/image-source/MLRNImageSourceComponentView.h +9 -0
- package/ios/components/sources/image-source/MLRNImageSourceComponentView.mm +95 -0
- package/ios/components/sources/tile-sources/MLRNTileSource.h +18 -0
- package/ios/components/sources/tile-sources/MLRNTileSource.m +26 -0
- package/ios/components/sources/tile-sources/raster-dem-source/MLRNRasterDEMSource.h +10 -0
- package/ios/components/sources/tile-sources/raster-dem-source/MLRNRasterDEMSource.m +39 -0
- package/ios/components/sources/tile-sources/raster-dem-source/MLRNRasterDEMSourceComponentView.h +9 -0
- package/ios/components/sources/tile-sources/raster-dem-source/MLRNRasterDEMSourceComponentView.mm +131 -0
- package/ios/components/sources/tile-sources/raster-source/MLRNRasterSource.h +9 -0
- package/ios/components/sources/tile-sources/raster-source/MLRNRasterSource.m +31 -0
- package/ios/components/sources/tile-sources/raster-source/MLRNRasterSourceComponentView.h +9 -0
- package/ios/components/sources/tile-sources/raster-source/MLRNRasterSourceComponentView.mm +129 -0
- package/ios/components/sources/tile-sources/vector-source/MLRNVectorSource.h +11 -0
- package/ios/components/sources/tile-sources/vector-source/MLRNVectorSource.m +23 -0
- package/ios/components/sources/tile-sources/vector-source/MLRNVectorSourceComponentView.h +9 -0
- package/ios/components/sources/tile-sources/vector-source/MLRNVectorSourceComponentView.mm +162 -0
- package/ios/components/sources/tile-sources/vector-source/MLRNVectorSourceModule.h +4 -0
- package/ios/components/sources/tile-sources/vector-source/MLRNVectorSourceModule.mm +65 -0
- package/ios/components/user-location/MLRNNativeUserLocation.h +11 -0
- package/ios/components/user-location/MLRNNativeUserLocation.m +38 -0
- package/ios/components/user-location/MLRNNativeUserLocationComponentView.h +10 -0
- package/ios/components/user-location/MLRNNativeUserLocationComponentView.mm +51 -0
- package/ios/components/user-location/MLRNUserLocation.h +15 -0
- package/ios/components/user-location/MLRNUserLocation.m +36 -0
- package/ios/modules/location/MLRNLocation.h +10 -0
- package/ios/modules/location/MLRNLocation.m +26 -0
- package/ios/modules/location/MLRNLocationManager.h +20 -0
- package/ios/modules/location/MLRNLocationManager.m +167 -0
- package/ios/modules/location/MLRNLocationManagerDelegate.h +10 -0
- package/ios/modules/location/MLRNLocationModule.h +7 -0
- package/ios/modules/location/MLRNLocationModule.mm +67 -0
- package/ios/modules/logging/MLRNLogModule.h +10 -0
- package/ios/modules/logging/MLRNLogModule.mm +39 -0
- package/ios/modules/logging/MLRNLogging.h +27 -0
- package/ios/modules/logging/MLRNLogging.m +102 -0
- package/ios/modules/network/MLRNNetworkModule.h +8 -0
- package/ios/modules/network/MLRNNetworkModule.mm +18 -0
- package/ios/modules/offline/MLRNOfflineModule.h +7 -0
- package/ios/modules/offline/MLRNOfflineModule.mm +692 -0
- package/ios/modules/static-map/MLRNStaticMapModule.h +4 -0
- package/ios/modules/static-map/MLRNStaticMapModule.mm +84 -0
- package/ios/modules/transform-request/MLRNTransformRequest.h +38 -0
- package/ios/modules/transform-request/MLRNTransformRequest.m +413 -0
- package/ios/modules/transform-request/MLRNTransformRequestModule.h +9 -0
- package/ios/modules/transform-request/MLRNTransformRequestModule.mm +72 -0
- package/ios/utils/FilterParser.h +7 -0
- package/ios/utils/FilterParser.m +13 -0
- package/ios/utils/MLRNEvent.h +13 -0
- package/ios/utils/MLRNEvent.m +36 -0
- package/ios/utils/MLRNEventProtocol.h +8 -0
- package/ios/utils/MLRNEventTypes.h +12 -0
- package/ios/utils/MLRNEventTypes.m +12 -0
- package/ios/utils/MLRNFollyConvert.h +5 -0
- package/ios/utils/MLRNImageUtils.h +9 -0
- package/ios/utils/MLRNImageUtils.m +24 -0
- package/ios/utils/MLRNPropConvert.h +17 -0
- package/ios/utils/MLRNUtils.h +32 -0
- package/ios/utils/MLRNUtils.m +193 -0
- package/ios/utils/MLRNViewModuleUtils.h +35 -0
- package/ios/utils/MLRNViewModuleUtils.m +39 -0
- package/lib/commonjs/assets/heading.png +0 -0
- package/lib/commonjs/assets/heading@2x.png +0 -0
- package/lib/commonjs/assets/heading@3x.png +0 -0
- package/lib/commonjs/assets/png.d.js +2 -0
- package/lib/commonjs/assets/png.d.js.map +1 -0
- package/lib/commonjs/components/annotations/LayerAnnotation.js +59 -0
- package/lib/commonjs/components/annotations/LayerAnnotation.js.map +1 -0
- package/lib/commonjs/components/annotations/callout/Callout.js +95 -0
- package/lib/commonjs/components/annotations/callout/Callout.js.map +1 -0
- package/lib/commonjs/components/annotations/callout/CalloutNativeComponent.ts +11 -0
- package/lib/commonjs/components/annotations/marker/Marker.js +88 -0
- package/lib/commonjs/components/annotations/marker/Marker.js.map +1 -0
- package/lib/commonjs/components/annotations/marker/MarkerViewNativeComponent.ts +40 -0
- package/lib/commonjs/components/annotations/view-annotation/PointAnnotationNativeComponent.ts +59 -0
- package/lib/commonjs/components/annotations/view-annotation/ViewAnnotation.js +93 -0
- package/lib/commonjs/components/annotations/view-annotation/ViewAnnotation.js.map +1 -0
- package/lib/commonjs/components/camera/Camera.js +146 -0
- package/lib/commonjs/components/camera/Camera.js.map +1 -0
- package/lib/commonjs/components/camera/CameraNativeComponent.ts +65 -0
- package/lib/commonjs/components/camera/NativeCameraModule.js +11 -0
- package/lib/commonjs/components/camera/NativeCameraModule.js.map +1 -0
- package/lib/commonjs/components/images/Images.js +58 -0
- package/lib/commonjs/components/images/Images.js.map +1 -0
- package/lib/commonjs/components/images/ImagesNativeComponent.ts +27 -0
- package/lib/commonjs/components/images/NativeImagesModule.js +10 -0
- package/lib/commonjs/components/images/NativeImagesModule.js.map +1 -0
- package/lib/commonjs/components/layer/Layer.js +157 -0
- package/lib/commonjs/components/layer/Layer.js.map +1 -0
- package/lib/commonjs/components/layer/LayerNativeComponent.ts +43 -0
- package/lib/commonjs/components/map/AndroidTextureMapViewNativeComponent.ts +109 -0
- package/lib/commonjs/components/map/Map.js +117 -0
- package/lib/commonjs/components/map/Map.js.map +1 -0
- package/lib/commonjs/components/map/MapViewNativeComponent.ts +105 -0
- package/lib/commonjs/components/map/NativeMapViewModule.js +9 -0
- package/lib/commonjs/components/map/NativeMapViewModule.js.map +1 -0
- package/lib/commonjs/components/sources/geojson-source/GeoJSONSource.js +56 -0
- package/lib/commonjs/components/sources/geojson-source/GeoJSONSource.js.map +1 -0
- package/lib/commonjs/components/sources/geojson-source/GeoJSONSourceNativeComponent.ts +48 -0
- package/lib/commonjs/components/sources/geojson-source/NativeGeoJSONSourceModule.js +9 -0
- package/lib/commonjs/components/sources/geojson-source/NativeGeoJSONSourceModule.js.map +1 -0
- package/lib/commonjs/components/sources/image-source/ImageSource.js +33 -0
- package/lib/commonjs/components/sources/image-source/ImageSource.js.map +1 -0
- package/lib/commonjs/components/sources/image-source/ImageSourceNativeComponent.ts +31 -0
- package/lib/commonjs/components/sources/raster-dem-source/RasterDEMSource.js +31 -0
- package/lib/commonjs/components/sources/raster-dem-source/RasterDEMSource.js.map +1 -0
- package/lib/commonjs/components/sources/raster-dem-source/RasterDEMSourceNativeComponent.ts +25 -0
- package/lib/commonjs/components/sources/raster-source/RasterSource.js +32 -0
- package/lib/commonjs/components/sources/raster-source/RasterSource.js.map +1 -0
- package/lib/commonjs/components/sources/raster-source/RasterSourceNativeComponent.ts +25 -0
- package/lib/commonjs/components/sources/vector-source/NativeVectorSourceModule.js +9 -0
- package/lib/commonjs/components/sources/vector-source/NativeVectorSourceModule.js.map +1 -0
- package/lib/commonjs/components/sources/vector-source/VectorSource.js +47 -0
- package/lib/commonjs/components/sources/vector-source/VectorSource.js.map +1 -0
- package/lib/commonjs/components/sources/vector-source/VectorSourceNativeComponent.ts +45 -0
- package/lib/commonjs/components/user-location/NativeUserLocation.js +16 -0
- package/lib/commonjs/components/user-location/NativeUserLocation.js.map +1 -0
- package/lib/commonjs/components/user-location/UserLocation.js +52 -0
- package/lib/commonjs/components/user-location/UserLocation.js.map +1 -0
- package/lib/commonjs/components/user-location/UserLocationNativeComponent.ts +19 -0
- package/lib/commonjs/components/user-location/UserLocationPuck.js +63 -0
- package/lib/commonjs/components/user-location/UserLocationPuck.js.map +1 -0
- package/lib/commonjs/components/user-location/UserLocationPuckHeading.js +31 -0
- package/lib/commonjs/components/user-location/UserLocationPuckHeading.js.map +1 -0
- package/lib/commonjs/hooks/useCurrentPosition.js +34 -0
- package/lib/commonjs/hooks/useCurrentPosition.js.map +1 -0
- package/lib/commonjs/hooks/useFrozenId.js +16 -0
- package/lib/commonjs/hooks/useFrozenId.js.map +1 -0
- package/lib/commonjs/hooks/useNativeBridge.js +84 -0
- package/lib/commonjs/hooks/useNativeBridge.js.map +1 -0
- package/lib/commonjs/index.js +174 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/modules/location/LocationManager.js +98 -0
- package/lib/commonjs/modules/location/LocationManager.js.map +1 -0
- package/lib/commonjs/modules/location/NativeLocationModule.js +9 -0
- package/lib/commonjs/modules/location/NativeLocationModule.js.map +1 -0
- package/lib/commonjs/modules/log/LogManager.js +100 -0
- package/lib/commonjs/modules/log/LogManager.js.map +1 -0
- package/lib/commonjs/modules/log/NativeLogModule.js +9 -0
- package/lib/commonjs/modules/log/NativeLogModule.js.map +1 -0
- package/lib/commonjs/modules/network/NativeNetworkModule.js +9 -0
- package/lib/commonjs/modules/network/NativeNetworkModule.js.map +1 -0
- package/lib/commonjs/modules/network/NetworkManager.js +34 -0
- package/lib/commonjs/modules/network/NetworkManager.js.map +1 -0
- package/lib/commonjs/modules/offline/NativeOfflineModule.js +9 -0
- package/lib/commonjs/modules/offline/NativeOfflineModule.js.map +1 -0
- package/lib/commonjs/modules/offline/OfflineManager.js +351 -0
- package/lib/commonjs/modules/offline/OfflineManager.js.map +1 -0
- package/lib/commonjs/modules/offline/OfflinePack.js +30 -0
- package/lib/commonjs/modules/offline/OfflinePack.js.map +1 -0
- package/lib/commonjs/modules/static-map/NativeStaticMapModule.js +9 -0
- package/lib/commonjs/modules/static-map/NativeStaticMapModule.js.map +1 -0
- package/lib/commonjs/modules/static-map/StaticMapManager.js +57 -0
- package/lib/commonjs/modules/static-map/StaticMapManager.js.map +1 -0
- package/lib/commonjs/modules/transform-request/NativeTransformRequestModule.js +9 -0
- package/lib/commonjs/modules/transform-request/NativeTransformRequestModule.js.map +1 -0
- package/lib/commonjs/modules/transform-request/TransformRequestManager.js +233 -0
- package/lib/commonjs/modules/transform-request/TransformRequestManager.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/plugin/MapVinaPluginProps.js +2 -0
- package/lib/commonjs/plugin/MapVinaPluginProps.js.map +1 -0
- package/lib/commonjs/plugin/android.js +39 -0
- package/lib/commonjs/plugin/android.js.map +1 -0
- package/lib/commonjs/plugin/ios.js +91 -0
- package/lib/commonjs/plugin/ios.js.map +1 -0
- package/lib/commonjs/types/Anchor.js +67 -0
- package/lib/commonjs/types/Anchor.js.map +1 -0
- package/lib/commonjs/types/BaseProps.js +2 -0
- package/lib/commonjs/types/BaseProps.js.map +1 -0
- package/lib/commonjs/types/LngLat.js +2 -0
- package/lib/commonjs/types/LngLat.js.map +1 -0
- package/lib/commonjs/types/LngLatBounds.js +2 -0
- package/lib/commonjs/types/LngLatBounds.js.map +1 -0
- package/lib/commonjs/types/MapVinaRNStyles.js +6 -0
- package/lib/commonjs/types/MapVinaRNStyles.js.map +1 -0
- package/lib/commonjs/types/PixelPoint.js +2 -0
- package/lib/commonjs/types/PixelPoint.js.map +1 -0
- package/lib/commonjs/types/PixelPointBounds.js +2 -0
- package/lib/commonjs/types/PixelPointBounds.js.map +1 -0
- package/lib/commonjs/types/PressEvent.js +6 -0
- package/lib/commonjs/types/PressEvent.js.map +1 -0
- package/lib/commonjs/types/PressEventWithFeatures.js +6 -0
- package/lib/commonjs/types/PressEventWithFeatures.js.map +1 -0
- package/lib/commonjs/types/PressableSourceProps.js +6 -0
- package/lib/commonjs/types/PressableSourceProps.js.map +1 -0
- package/lib/commonjs/types/ViewPadding.js +2 -0
- package/lib/commonjs/types/ViewPadding.js.map +1 -0
- package/lib/commonjs/types/codegen/UnsafeMixed.js +2 -0
- package/lib/commonjs/types/codegen/UnsafeMixed.js.map +1 -0
- package/lib/commonjs/utils/BridgeValue.js +59 -0
- package/lib/commonjs/utils/BridgeValue.js.map +1 -0
- package/lib/commonjs/utils/StyleValue.js +38 -0
- package/lib/commonjs/utils/StyleValue.js.map +1 -0
- package/lib/commonjs/utils/animated/AbstractAnimatedCoordinates.js +96 -0
- package/lib/commonjs/utils/animated/AbstractAnimatedCoordinates.js.map +1 -0
- package/lib/commonjs/utils/animated/Animated.js +30 -0
- package/lib/commonjs/utils/animated/Animated.js.map +1 -0
- package/lib/commonjs/utils/animated/AnimatedCoordinatesArray.js +91 -0
- package/lib/commonjs/utils/animated/AnimatedCoordinatesArray.js.map +1 -0
- package/lib/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.js +32 -0
- package/lib/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.js.map +1 -0
- package/lib/commonjs/utils/animated/AnimatedGeoJSON.js +67 -0
- package/lib/commonjs/utils/animated/AnimatedGeoJSON.js.map +1 -0
- package/lib/commonjs/utils/animated/AnimatedPoint.js +114 -0
- package/lib/commonjs/utils/animated/AnimatedPoint.js.map +1 -0
- package/lib/commonjs/utils/animated/AnimatedRouteCoordinatesArray.js +120 -0
- package/lib/commonjs/utils/animated/AnimatedRouteCoordinatesArray.js.map +1 -0
- package/lib/commonjs/utils/convertStyleSpec.js +58 -0
- package/lib/commonjs/utils/convertStyleSpec.js.map +1 -0
- package/lib/commonjs/utils/findNodeHandle.js +16 -0
- package/lib/commonjs/utils/findNodeHandle.js.map +1 -0
- package/lib/commonjs/utils/getNativeFilter.js +16 -0
- package/lib/commonjs/utils/getNativeFilter.js.map +1 -0
- package/lib/commonjs/utils/getStylePropertyType.js +255 -0
- package/lib/commonjs/utils/getStylePropertyType.js.map +1 -0
- package/lib/commonjs/utils/index.js +68 -0
- package/lib/commonjs/utils/index.js.map +1 -0
- package/lib/module/assets/heading.png +0 -0
- package/lib/module/assets/heading@2x.png +0 -0
- package/lib/module/assets/heading@3x.png +0 -0
- package/lib/module/assets/png.d.js +2 -0
- package/lib/module/assets/png.d.js.map +1 -0
- package/lib/module/components/annotations/LayerAnnotation.js +54 -0
- package/lib/module/components/annotations/LayerAnnotation.js.map +1 -0
- package/lib/module/components/annotations/callout/Callout.js +89 -0
- package/lib/module/components/annotations/callout/Callout.js.map +1 -0
- package/lib/module/components/annotations/callout/CalloutNativeComponent.ts +11 -0
- package/lib/module/components/annotations/marker/Marker.js +82 -0
- package/lib/module/components/annotations/marker/Marker.js.map +1 -0
- package/lib/module/components/annotations/marker/MarkerViewNativeComponent.ts +40 -0
- package/lib/module/components/annotations/view-annotation/PointAnnotationNativeComponent.ts +59 -0
- package/lib/module/components/annotations/view-annotation/ViewAnnotation.js +87 -0
- package/lib/module/components/annotations/view-annotation/ViewAnnotation.js.map +1 -0
- package/lib/module/components/camera/Camera.js +141 -0
- package/lib/module/components/camera/Camera.js.map +1 -0
- package/lib/module/components/camera/CameraNativeComponent.ts +65 -0
- package/lib/module/components/camera/NativeCameraModule.js +10 -0
- package/lib/module/components/camera/NativeCameraModule.js.map +1 -0
- package/lib/module/components/images/Images.js +52 -0
- package/lib/module/components/images/Images.js.map +1 -0
- package/lib/module/components/images/ImagesNativeComponent.ts +27 -0
- package/lib/module/components/images/NativeImagesModule.js +7 -0
- package/lib/module/components/images/NativeImagesModule.js.map +1 -0
- package/lib/module/components/layer/Layer.js +151 -0
- package/lib/module/components/layer/Layer.js.map +1 -0
- package/lib/module/components/layer/LayerNativeComponent.ts +43 -0
- package/lib/module/components/map/AndroidTextureMapViewNativeComponent.ts +109 -0
- package/lib/module/components/map/Map.js +112 -0
- package/lib/module/components/map/Map.js.map +1 -0
- package/lib/module/components/map/MapViewNativeComponent.ts +105 -0
- package/lib/module/components/map/NativeMapViewModule.js +5 -0
- package/lib/module/components/map/NativeMapViewModule.js.map +1 -0
- package/lib/module/components/sources/geojson-source/GeoJSONSource.js +51 -0
- package/lib/module/components/sources/geojson-source/GeoJSONSource.js.map +1 -0
- package/lib/module/components/sources/geojson-source/GeoJSONSourceNativeComponent.ts +48 -0
- package/lib/module/components/sources/geojson-source/NativeGeoJSONSourceModule.js +5 -0
- package/lib/module/components/sources/geojson-source/NativeGeoJSONSourceModule.js.map +1 -0
- package/lib/module/components/sources/image-source/ImageSource.js +28 -0
- package/lib/module/components/sources/image-source/ImageSource.js.map +1 -0
- package/lib/module/components/sources/image-source/ImageSourceNativeComponent.ts +31 -0
- package/lib/module/components/sources/raster-dem-source/RasterDEMSource.js +26 -0
- package/lib/module/components/sources/raster-dem-source/RasterDEMSource.js.map +1 -0
- package/lib/module/components/sources/raster-dem-source/RasterDEMSourceNativeComponent.ts +25 -0
- package/lib/module/components/sources/raster-source/RasterSource.js +27 -0
- package/lib/module/components/sources/raster-source/RasterSource.js.map +1 -0
- package/lib/module/components/sources/raster-source/RasterSourceNativeComponent.ts +25 -0
- package/lib/module/components/sources/vector-source/NativeVectorSourceModule.js +5 -0
- package/lib/module/components/sources/vector-source/NativeVectorSourceModule.js.map +1 -0
- package/lib/module/components/sources/vector-source/VectorSource.js +42 -0
- package/lib/module/components/sources/vector-source/VectorSource.js.map +1 -0
- package/lib/module/components/sources/vector-source/VectorSourceNativeComponent.ts +45 -0
- package/lib/module/components/user-location/NativeUserLocation.js +10 -0
- package/lib/module/components/user-location/NativeUserLocation.js.map +1 -0
- package/lib/module/components/user-location/UserLocation.js +47 -0
- package/lib/module/components/user-location/UserLocation.js.map +1 -0
- package/lib/module/components/user-location/UserLocationNativeComponent.ts +19 -0
- package/lib/module/components/user-location/UserLocationPuck.js +59 -0
- package/lib/module/components/user-location/UserLocationPuck.js.map +1 -0
- package/lib/module/components/user-location/UserLocationPuckHeading.js +27 -0
- package/lib/module/components/user-location/UserLocationPuckHeading.js.map +1 -0
- package/lib/module/hooks/useCurrentPosition.js +30 -0
- package/lib/module/hooks/useCurrentPosition.js.map +1 -0
- package/lib/module/hooks/useFrozenId.js +12 -0
- package/lib/module/hooks/useFrozenId.js.map +1 -0
- package/lib/module/hooks/useNativeBridge.js +79 -0
- package/lib/module/hooks/useNativeBridge.js.map +1 -0
- package/lib/module/index.js +27 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/modules/location/LocationManager.js +94 -0
- package/lib/module/modules/location/LocationManager.js.map +1 -0
- package/lib/module/modules/location/NativeLocationModule.js +5 -0
- package/lib/module/modules/location/NativeLocationModule.js.map +1 -0
- package/lib/module/modules/log/LogManager.js +97 -0
- package/lib/module/modules/log/LogManager.js.map +1 -0
- package/lib/module/modules/log/NativeLogModule.js +5 -0
- package/lib/module/modules/log/NativeLogModule.js.map +1 -0
- package/lib/module/modules/network/NativeNetworkModule.js +5 -0
- package/lib/module/modules/network/NativeNetworkModule.js.map +1 -0
- package/lib/module/modules/network/NetworkManager.js +30 -0
- package/lib/module/modules/network/NetworkManager.js.map +1 -0
- package/lib/module/modules/offline/NativeOfflineModule.js +5 -0
- package/lib/module/modules/offline/NativeOfflineModule.js.map +1 -0
- package/lib/module/modules/offline/OfflineManager.js +348 -0
- package/lib/module/modules/offline/OfflineManager.js.map +1 -0
- package/lib/module/modules/offline/OfflinePack.js +24 -0
- package/lib/module/modules/offline/OfflinePack.js.map +1 -0
- package/lib/module/modules/static-map/NativeStaticMapModule.js +5 -0
- package/lib/module/modules/static-map/NativeStaticMapModule.js.map +1 -0
- package/lib/module/modules/static-map/StaticMapManager.js +53 -0
- package/lib/module/modules/static-map/StaticMapManager.js.map +1 -0
- package/lib/module/modules/transform-request/NativeTransformRequestModule.js +5 -0
- package/lib/module/modules/transform-request/NativeTransformRequestModule.js.map +1 -0
- package/lib/module/modules/transform-request/TransformRequestManager.js +230 -0
- package/lib/module/modules/transform-request/TransformRequestManager.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/plugin/MapVinaPluginProps.js +2 -0
- package/lib/module/plugin/MapVinaPluginProps.js.map +1 -0
- package/lib/module/plugin/android.js +32 -0
- package/lib/module/plugin/android.js.map +1 -0
- package/lib/module/plugin/ios.js +83 -0
- package/lib/module/plugin/ios.js.map +1 -0
- package/lib/module/types/Anchor.js +63 -0
- package/lib/module/types/Anchor.js.map +1 -0
- package/lib/module/types/BaseProps.js +2 -0
- package/lib/module/types/BaseProps.js.map +1 -0
- package/lib/module/types/LngLat.js +2 -0
- package/lib/module/types/LngLat.js.map +1 -0
- package/lib/module/types/LngLatBounds.js +2 -0
- package/lib/module/types/LngLatBounds.js.map +1 -0
- package/lib/module/types/MapVinaRNStyles.js +4 -0
- package/lib/module/types/MapVinaRNStyles.js.map +1 -0
- package/lib/module/types/PixelPoint.js +2 -0
- package/lib/module/types/PixelPoint.js.map +1 -0
- package/lib/module/types/PixelPointBounds.js +2 -0
- package/lib/module/types/PixelPointBounds.js.map +1 -0
- package/lib/module/types/PressEvent.js +4 -0
- package/lib/module/types/PressEvent.js.map +1 -0
- package/lib/module/types/PressEventWithFeatures.js +4 -0
- package/lib/module/types/PressEventWithFeatures.js.map +1 -0
- package/lib/module/types/PressableSourceProps.js +4 -0
- package/lib/module/types/PressableSourceProps.js.map +1 -0
- package/lib/module/types/ViewPadding.js +2 -0
- package/lib/module/types/ViewPadding.js.map +1 -0
- package/lib/module/types/codegen/UnsafeMixed.js +2 -0
- package/lib/module/types/codegen/UnsafeMixed.js.map +1 -0
- package/lib/module/utils/BridgeValue.js +54 -0
- package/lib/module/utils/BridgeValue.js.map +1 -0
- package/lib/module/utils/StyleValue.js +34 -0
- package/lib/module/utils/StyleValue.js.map +1 -0
- package/lib/module/utils/animated/AbstractAnimatedCoordinates.js +91 -0
- package/lib/module/utils/animated/AbstractAnimatedCoordinates.js.map +1 -0
- package/lib/module/utils/animated/Animated.js +26 -0
- package/lib/module/utils/animated/Animated.js.map +1 -0
- package/lib/module/utils/animated/AnimatedCoordinatesArray.js +86 -0
- package/lib/module/utils/animated/AnimatedCoordinatesArray.js.map +1 -0
- package/lib/module/utils/animated/AnimatedExtractCoordinateFromArray.js +27 -0
- package/lib/module/utils/animated/AnimatedExtractCoordinateFromArray.js.map +1 -0
- package/lib/module/utils/animated/AnimatedGeoJSON.js +62 -0
- package/lib/module/utils/animated/AnimatedGeoJSON.js.map +1 -0
- package/lib/module/utils/animated/AnimatedPoint.js +109 -0
- package/lib/module/utils/animated/AnimatedPoint.js.map +1 -0
- package/lib/module/utils/animated/AnimatedRouteCoordinatesArray.js +115 -0
- package/lib/module/utils/animated/AnimatedRouteCoordinatesArray.js.map +1 -0
- package/lib/module/utils/convertStyleSpec.js +53 -0
- package/lib/module/utils/convertStyleSpec.js.map +1 -0
- package/lib/module/utils/findNodeHandle.js +11 -0
- package/lib/module/utils/findNodeHandle.js.map +1 -0
- package/lib/module/utils/getNativeFilter.js +12 -0
- package/lib/module/utils/getNativeFilter.js.map +1 -0
- package/lib/module/utils/getStylePropertyType.js +251 -0
- package/lib/module/utils/getStylePropertyType.js.map +1 -0
- package/lib/module/utils/index.js +55 -0
- package/lib/module/utils/index.js.map +1 -0
- package/lib/typescript/commonjs/components/annotations/LayerAnnotation.d.ts +20 -0
- package/lib/typescript/commonjs/components/annotations/LayerAnnotation.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/annotations/callout/Callout.d.ts +35 -0
- package/lib/typescript/commonjs/components/annotations/callout/Callout.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/annotations/callout/CalloutNativeComponent.d.ts +6 -0
- package/lib/typescript/commonjs/components/annotations/callout/CalloutNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/annotations/marker/Marker.d.ts +79 -0
- package/lib/typescript/commonjs/components/annotations/marker/Marker.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/annotations/marker/MarkerViewNativeComponent.d.ts +31 -0
- package/lib/typescript/commonjs/components/annotations/marker/MarkerViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/annotations/view-annotation/PointAnnotationNativeComponent.d.ts +44 -0
- package/lib/typescript/commonjs/components/annotations/view-annotation/PointAnnotationNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/annotations/view-annotation/ViewAnnotation.d.ts +119 -0
- package/lib/typescript/commonjs/components/annotations/view-annotation/ViewAnnotation.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/camera/Camera.d.ts +217 -0
- package/lib/typescript/commonjs/components/camera/Camera.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/camera/CameraNativeComponent.d.ts +37 -0
- package/lib/typescript/commonjs/components/camera/CameraNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/camera/NativeCameraModule.d.ts +26 -0
- package/lib/typescript/commonjs/components/camera/NativeCameraModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/images/Images.d.ts +69 -0
- package/lib/typescript/commonjs/components/images/Images.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/images/ImagesNativeComponent.d.ts +17 -0
- package/lib/typescript/commonjs/components/images/ImagesNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/images/NativeImagesModule.d.ts +6 -0
- package/lib/typescript/commonjs/components/images/NativeImagesModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/layer/Layer.d.ts +172 -0
- package/lib/typescript/commonjs/components/layer/Layer.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/layer/LayerNativeComponent.d.ts +19 -0
- package/lib/typescript/commonjs/components/layer/LayerNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/map/AndroidTextureMapViewNativeComponent.d.ts +79 -0
- package/lib/typescript/commonjs/components/map/AndroidTextureMapViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/map/Map.d.ts +448 -0
- package/lib/typescript/commonjs/components/map/Map.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/map/MapViewNativeComponent.d.ts +79 -0
- package/lib/typescript/commonjs/components/map/MapViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/map/NativeMapViewModule.d.ts +31 -0
- package/lib/typescript/commonjs/components/map/NativeMapViewModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/sources/geojson-source/GeoJSONSource.d.ts +135 -0
- package/lib/typescript/commonjs/components/sources/geojson-source/GeoJSONSource.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/sources/geojson-source/GeoJSONSourceNativeComponent.d.ts +35 -0
- package/lib/typescript/commonjs/components/sources/geojson-source/GeoJSONSourceNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/sources/geojson-source/NativeGeoJSONSourceModule.d.ts +10 -0
- package/lib/typescript/commonjs/components/sources/geojson-source/NativeGeoJSONSourceModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/sources/image-source/ImageSource.d.ts +32 -0
- package/lib/typescript/commonjs/components/sources/image-source/ImageSource.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/sources/image-source/ImageSourceNativeComponent.d.ts +21 -0
- package/lib/typescript/commonjs/components/sources/image-source/ImageSourceNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/sources/raster-dem-source/RasterDEMSource.d.ts +58 -0
- package/lib/typescript/commonjs/components/sources/raster-dem-source/RasterDEMSource.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/sources/raster-dem-source/RasterDEMSourceNativeComponent.d.ts +15 -0
- package/lib/typescript/commonjs/components/sources/raster-dem-source/RasterDEMSourceNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/sources/raster-source/RasterSource.d.ts +59 -0
- package/lib/typescript/commonjs/components/sources/raster-source/RasterSource.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/sources/raster-source/RasterSourceNativeComponent.d.ts +15 -0
- package/lib/typescript/commonjs/components/sources/raster-source/RasterSourceNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/sources/vector-source/NativeVectorSourceModule.d.ts +7 -0
- package/lib/typescript/commonjs/components/sources/vector-source/NativeVectorSourceModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/sources/vector-source/VectorSource.d.ts +75 -0
- package/lib/typescript/commonjs/components/sources/vector-source/VectorSource.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/sources/vector-source/VectorSourceNativeComponent.d.ts +32 -0
- package/lib/typescript/commonjs/components/sources/vector-source/VectorSourceNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/user-location/NativeUserLocation.d.ts +27 -0
- package/lib/typescript/commonjs/components/user-location/NativeUserLocation.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/user-location/UserLocation.d.ts +31 -0
- package/lib/typescript/commonjs/components/user-location/UserLocation.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/user-location/UserLocationNativeComponent.d.ts +8 -0
- package/lib/typescript/commonjs/components/user-location/UserLocationNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/user-location/UserLocationPuck.d.ts +10 -0
- package/lib/typescript/commonjs/components/user-location/UserLocationPuck.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/user-location/UserLocationPuckHeading.d.ts +9 -0
- package/lib/typescript/commonjs/components/user-location/UserLocationPuckHeading.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/useCurrentPosition.d.ts +18 -0
- package/lib/typescript/commonjs/hooks/useCurrentPosition.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/useFrozenId.d.ts +2 -0
- package/lib/typescript/commonjs/hooks/useFrozenId.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/useNativeBridge.d.ts +21 -0
- package/lib/typescript/commonjs/hooks/useNativeBridge.d.ts.map +1 -0
- package/lib/typescript/commonjs/index.d.ts +36 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/location/LocationManager.d.ts +62 -0
- package/lib/typescript/commonjs/modules/location/LocationManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/location/NativeLocationModule.d.ts +25 -0
- package/lib/typescript/commonjs/modules/location/NativeLocationModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/log/LogManager.d.ts +46 -0
- package/lib/typescript/commonjs/modules/log/LogManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/log/NativeLogModule.d.ts +13 -0
- package/lib/typescript/commonjs/modules/log/NativeLogModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/network/NativeNetworkModule.d.ts +7 -0
- package/lib/typescript/commonjs/modules/network/NativeNetworkModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/network/NetworkManager.d.ts +24 -0
- package/lib/typescript/commonjs/modules/network/NetworkManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/offline/NativeOfflineModule.d.ts +50 -0
- package/lib/typescript/commonjs/modules/offline/NativeOfflineModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/offline/OfflineManager.d.ts +238 -0
- package/lib/typescript/commonjs/modules/offline/OfflineManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/offline/OfflinePack.d.ts +25 -0
- package/lib/typescript/commonjs/modules/offline/OfflinePack.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/static-map/NativeStaticMapModule.d.ts +19 -0
- package/lib/typescript/commonjs/modules/static-map/NativeStaticMapModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/static-map/StaticMapManager.d.ts +105 -0
- package/lib/typescript/commonjs/modules/static-map/StaticMapManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/transform-request/NativeTransformRequestModule.d.ts +15 -0
- package/lib/typescript/commonjs/modules/transform-request/NativeTransformRequestModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/transform-request/TransformRequestManager.d.ts +213 -0
- package/lib/typescript/commonjs/modules/transform-request/TransformRequestManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/plugin/MapVinaPluginProps.d.ts +78 -0
- package/lib/typescript/commonjs/plugin/MapVinaPluginProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/plugin/android.d.ts +17 -0
- package/lib/typescript/commonjs/plugin/android.d.ts.map +1 -0
- package/lib/typescript/commonjs/plugin/ios.d.ts +15 -0
- package/lib/typescript/commonjs/plugin/ios.d.ts.map +1 -0
- package/lib/typescript/commonjs/types/Anchor.d.ts +16 -0
- package/lib/typescript/commonjs/types/Anchor.d.ts.map +1 -0
- package/lib/typescript/commonjs/types/BaseProps.d.ts +7 -0
- package/lib/typescript/commonjs/types/BaseProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/types/LngLat.d.ts +5 -0
- package/lib/typescript/commonjs/types/LngLat.d.ts.map +1 -0
- package/lib/typescript/commonjs/types/LngLatBounds.d.ts +13 -0
- package/lib/typescript/commonjs/types/LngLatBounds.d.ts.map +1 -0
- package/lib/typescript/commonjs/types/MapVinaRNStyles.d.ts +1169 -0
- package/lib/typescript/commonjs/types/MapVinaRNStyles.d.ts.map +1 -0
- package/lib/typescript/commonjs/types/PixelPoint.d.ts +5 -0
- package/lib/typescript/commonjs/types/PixelPoint.d.ts.map +1 -0
- package/lib/typescript/commonjs/types/PixelPointBounds.d.ts +10 -0
- package/lib/typescript/commonjs/types/PixelPointBounds.d.ts.map +1 -0
- package/lib/typescript/commonjs/types/PressEvent.d.ts +16 -0
- package/lib/typescript/commonjs/types/PressEvent.d.ts.map +1 -0
- package/lib/typescript/commonjs/types/PressEventWithFeatures.d.ts +8 -0
- package/lib/typescript/commonjs/types/PressEventWithFeatures.d.ts.map +1 -0
- package/lib/typescript/commonjs/types/PressableSourceProps.d.ts +19 -0
- package/lib/typescript/commonjs/types/PressableSourceProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/types/ViewPadding.d.ts +10 -0
- package/lib/typescript/commonjs/types/ViewPadding.d.ts.map +1 -0
- package/lib/typescript/commonjs/types/codegen/UnsafeMixed.d.ts +10 -0
- package/lib/typescript/commonjs/types/codegen/UnsafeMixed.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/BridgeValue.d.ts +29 -0
- package/lib/typescript/commonjs/utils/BridgeValue.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/StyleValue.d.ts +10 -0
- package/lib/typescript/commonjs/utils/StyleValue.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/animated/AbstractAnimatedCoordinates.d.ts +42 -0
- package/lib/typescript/commonjs/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/animated/Animated.d.ts +21 -0
- package/lib/typescript/commonjs/utils/animated/Animated.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/animated/AnimatedCoordinatesArray.d.ts +40 -0
- package/lib/typescript/commonjs/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.d.ts +13 -0
- package/lib/typescript/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/animated/AnimatedGeoJSON.d.ts +31 -0
- package/lib/typescript/commonjs/utils/animated/AnimatedGeoJSON.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/animated/AnimatedPoint.d.ts +32 -0
- package/lib/typescript/commonjs/utils/animated/AnimatedPoint.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/animated/AnimatedRouteCoordinatesArray.d.ts +62 -0
- package/lib/typescript/commonjs/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/convertStyleSpec.d.ts +16 -0
- package/lib/typescript/commonjs/utils/convertStyleSpec.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/findNodeHandle.d.ts +3 -0
- package/lib/typescript/commonjs/utils/findNodeHandle.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/getNativeFilter.d.ts +3 -0
- package/lib/typescript/commonjs/utils/getNativeFilter.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/getStylePropertyType.d.ts +35 -0
- package/lib/typescript/commonjs/utils/getStylePropertyType.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/index.d.ts +18 -0
- package/lib/typescript/commonjs/utils/index.d.ts.map +1 -0
- package/lib/typescript/module/components/annotations/LayerAnnotation.d.ts +20 -0
- package/lib/typescript/module/components/annotations/LayerAnnotation.d.ts.map +1 -0
- package/lib/typescript/module/components/annotations/callout/Callout.d.ts +35 -0
- package/lib/typescript/module/components/annotations/callout/Callout.d.ts.map +1 -0
- package/lib/typescript/module/components/annotations/callout/CalloutNativeComponent.d.ts +6 -0
- package/lib/typescript/module/components/annotations/callout/CalloutNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/components/annotations/marker/Marker.d.ts +79 -0
- package/lib/typescript/module/components/annotations/marker/Marker.d.ts.map +1 -0
- package/lib/typescript/module/components/annotations/marker/MarkerViewNativeComponent.d.ts +31 -0
- package/lib/typescript/module/components/annotations/marker/MarkerViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/components/annotations/view-annotation/PointAnnotationNativeComponent.d.ts +44 -0
- package/lib/typescript/module/components/annotations/view-annotation/PointAnnotationNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/components/annotations/view-annotation/ViewAnnotation.d.ts +119 -0
- package/lib/typescript/module/components/annotations/view-annotation/ViewAnnotation.d.ts.map +1 -0
- package/lib/typescript/module/components/camera/Camera.d.ts +217 -0
- package/lib/typescript/module/components/camera/Camera.d.ts.map +1 -0
- package/lib/typescript/module/components/camera/CameraNativeComponent.d.ts +37 -0
- package/lib/typescript/module/components/camera/CameraNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/components/camera/NativeCameraModule.d.ts +26 -0
- package/lib/typescript/module/components/camera/NativeCameraModule.d.ts.map +1 -0
- package/lib/typescript/module/components/images/Images.d.ts +69 -0
- package/lib/typescript/module/components/images/Images.d.ts.map +1 -0
- package/lib/typescript/module/components/images/ImagesNativeComponent.d.ts +17 -0
- package/lib/typescript/module/components/images/ImagesNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/components/images/NativeImagesModule.d.ts +6 -0
- package/lib/typescript/module/components/images/NativeImagesModule.d.ts.map +1 -0
- package/lib/typescript/module/components/layer/Layer.d.ts +172 -0
- package/lib/typescript/module/components/layer/Layer.d.ts.map +1 -0
- package/lib/typescript/module/components/layer/LayerNativeComponent.d.ts +19 -0
- package/lib/typescript/module/components/layer/LayerNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/components/map/AndroidTextureMapViewNativeComponent.d.ts +79 -0
- package/lib/typescript/module/components/map/AndroidTextureMapViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/components/map/Map.d.ts +448 -0
- package/lib/typescript/module/components/map/Map.d.ts.map +1 -0
- package/lib/typescript/module/components/map/MapViewNativeComponent.d.ts +79 -0
- package/lib/typescript/module/components/map/MapViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/components/map/NativeMapViewModule.d.ts +31 -0
- package/lib/typescript/module/components/map/NativeMapViewModule.d.ts.map +1 -0
- package/lib/typescript/module/components/sources/geojson-source/GeoJSONSource.d.ts +135 -0
- package/lib/typescript/module/components/sources/geojson-source/GeoJSONSource.d.ts.map +1 -0
- package/lib/typescript/module/components/sources/geojson-source/GeoJSONSourceNativeComponent.d.ts +35 -0
- package/lib/typescript/module/components/sources/geojson-source/GeoJSONSourceNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/components/sources/geojson-source/NativeGeoJSONSourceModule.d.ts +10 -0
- package/lib/typescript/module/components/sources/geojson-source/NativeGeoJSONSourceModule.d.ts.map +1 -0
- package/lib/typescript/module/components/sources/image-source/ImageSource.d.ts +32 -0
- package/lib/typescript/module/components/sources/image-source/ImageSource.d.ts.map +1 -0
- package/lib/typescript/module/components/sources/image-source/ImageSourceNativeComponent.d.ts +21 -0
- package/lib/typescript/module/components/sources/image-source/ImageSourceNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/components/sources/raster-dem-source/RasterDEMSource.d.ts +58 -0
- package/lib/typescript/module/components/sources/raster-dem-source/RasterDEMSource.d.ts.map +1 -0
- package/lib/typescript/module/components/sources/raster-dem-source/RasterDEMSourceNativeComponent.d.ts +15 -0
- package/lib/typescript/module/components/sources/raster-dem-source/RasterDEMSourceNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/components/sources/raster-source/RasterSource.d.ts +59 -0
- package/lib/typescript/module/components/sources/raster-source/RasterSource.d.ts.map +1 -0
- package/lib/typescript/module/components/sources/raster-source/RasterSourceNativeComponent.d.ts +15 -0
- package/lib/typescript/module/components/sources/raster-source/RasterSourceNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/components/sources/vector-source/NativeVectorSourceModule.d.ts +7 -0
- package/lib/typescript/module/components/sources/vector-source/NativeVectorSourceModule.d.ts.map +1 -0
- package/lib/typescript/module/components/sources/vector-source/VectorSource.d.ts +75 -0
- package/lib/typescript/module/components/sources/vector-source/VectorSource.d.ts.map +1 -0
- package/lib/typescript/module/components/sources/vector-source/VectorSourceNativeComponent.d.ts +32 -0
- package/lib/typescript/module/components/sources/vector-source/VectorSourceNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/components/user-location/NativeUserLocation.d.ts +27 -0
- package/lib/typescript/module/components/user-location/NativeUserLocation.d.ts.map +1 -0
- package/lib/typescript/module/components/user-location/UserLocation.d.ts +31 -0
- package/lib/typescript/module/components/user-location/UserLocation.d.ts.map +1 -0
- package/lib/typescript/module/components/user-location/UserLocationNativeComponent.d.ts +8 -0
- package/lib/typescript/module/components/user-location/UserLocationNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/components/user-location/UserLocationPuck.d.ts +10 -0
- package/lib/typescript/module/components/user-location/UserLocationPuck.d.ts.map +1 -0
- package/lib/typescript/module/components/user-location/UserLocationPuckHeading.d.ts +9 -0
- package/lib/typescript/module/components/user-location/UserLocationPuckHeading.d.ts.map +1 -0
- package/lib/typescript/module/hooks/useCurrentPosition.d.ts +18 -0
- package/lib/typescript/module/hooks/useCurrentPosition.d.ts.map +1 -0
- package/lib/typescript/module/hooks/useFrozenId.d.ts +2 -0
- package/lib/typescript/module/hooks/useFrozenId.d.ts.map +1 -0
- package/lib/typescript/module/hooks/useNativeBridge.d.ts +21 -0
- package/lib/typescript/module/hooks/useNativeBridge.d.ts.map +1 -0
- package/lib/typescript/module/index.d.ts +36 -0
- package/lib/typescript/module/index.d.ts.map +1 -0
- package/lib/typescript/module/modules/location/LocationManager.d.ts +62 -0
- package/lib/typescript/module/modules/location/LocationManager.d.ts.map +1 -0
- package/lib/typescript/module/modules/location/NativeLocationModule.d.ts +25 -0
- package/lib/typescript/module/modules/location/NativeLocationModule.d.ts.map +1 -0
- package/lib/typescript/module/modules/log/LogManager.d.ts +46 -0
- package/lib/typescript/module/modules/log/LogManager.d.ts.map +1 -0
- package/lib/typescript/module/modules/log/NativeLogModule.d.ts +13 -0
- package/lib/typescript/module/modules/log/NativeLogModule.d.ts.map +1 -0
- package/lib/typescript/module/modules/network/NativeNetworkModule.d.ts +7 -0
- package/lib/typescript/module/modules/network/NativeNetworkModule.d.ts.map +1 -0
- package/lib/typescript/module/modules/network/NetworkManager.d.ts +24 -0
- package/lib/typescript/module/modules/network/NetworkManager.d.ts.map +1 -0
- package/lib/typescript/module/modules/offline/NativeOfflineModule.d.ts +50 -0
- package/lib/typescript/module/modules/offline/NativeOfflineModule.d.ts.map +1 -0
- package/lib/typescript/module/modules/offline/OfflineManager.d.ts +238 -0
- package/lib/typescript/module/modules/offline/OfflineManager.d.ts.map +1 -0
- package/lib/typescript/module/modules/offline/OfflinePack.d.ts +25 -0
- package/lib/typescript/module/modules/offline/OfflinePack.d.ts.map +1 -0
- package/lib/typescript/module/modules/static-map/NativeStaticMapModule.d.ts +19 -0
- package/lib/typescript/module/modules/static-map/NativeStaticMapModule.d.ts.map +1 -0
- package/lib/typescript/module/modules/static-map/StaticMapManager.d.ts +105 -0
- package/lib/typescript/module/modules/static-map/StaticMapManager.d.ts.map +1 -0
- package/lib/typescript/module/modules/transform-request/NativeTransformRequestModule.d.ts +15 -0
- package/lib/typescript/module/modules/transform-request/NativeTransformRequestModule.d.ts.map +1 -0
- package/lib/typescript/module/modules/transform-request/TransformRequestManager.d.ts +213 -0
- package/lib/typescript/module/modules/transform-request/TransformRequestManager.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/plugin/MapVinaPluginProps.d.ts +78 -0
- package/lib/typescript/module/plugin/MapVinaPluginProps.d.ts.map +1 -0
- package/lib/typescript/module/plugin/android.d.ts +17 -0
- package/lib/typescript/module/plugin/android.d.ts.map +1 -0
- package/lib/typescript/module/plugin/ios.d.ts +15 -0
- package/lib/typescript/module/plugin/ios.d.ts.map +1 -0
- package/lib/typescript/module/types/Anchor.d.ts +16 -0
- package/lib/typescript/module/types/Anchor.d.ts.map +1 -0
- package/lib/typescript/module/types/BaseProps.d.ts +7 -0
- package/lib/typescript/module/types/BaseProps.d.ts.map +1 -0
- package/lib/typescript/module/types/LngLat.d.ts +5 -0
- package/lib/typescript/module/types/LngLat.d.ts.map +1 -0
- package/lib/typescript/module/types/LngLatBounds.d.ts +13 -0
- package/lib/typescript/module/types/LngLatBounds.d.ts.map +1 -0
- package/lib/typescript/module/types/MapVinaRNStyles.d.ts +1169 -0
- package/lib/typescript/module/types/MapVinaRNStyles.d.ts.map +1 -0
- package/lib/typescript/module/types/PixelPoint.d.ts +5 -0
- package/lib/typescript/module/types/PixelPoint.d.ts.map +1 -0
- package/lib/typescript/module/types/PixelPointBounds.d.ts +10 -0
- package/lib/typescript/module/types/PixelPointBounds.d.ts.map +1 -0
- package/lib/typescript/module/types/PressEvent.d.ts +16 -0
- package/lib/typescript/module/types/PressEvent.d.ts.map +1 -0
- package/lib/typescript/module/types/PressEventWithFeatures.d.ts +8 -0
- package/lib/typescript/module/types/PressEventWithFeatures.d.ts.map +1 -0
- package/lib/typescript/module/types/PressableSourceProps.d.ts +19 -0
- package/lib/typescript/module/types/PressableSourceProps.d.ts.map +1 -0
- package/lib/typescript/module/types/ViewPadding.d.ts +10 -0
- package/lib/typescript/module/types/ViewPadding.d.ts.map +1 -0
- package/lib/typescript/module/types/codegen/UnsafeMixed.d.ts +10 -0
- package/lib/typescript/module/types/codegen/UnsafeMixed.d.ts.map +1 -0
- package/lib/typescript/module/utils/BridgeValue.d.ts +29 -0
- package/lib/typescript/module/utils/BridgeValue.d.ts.map +1 -0
- package/lib/typescript/module/utils/StyleValue.d.ts +10 -0
- package/lib/typescript/module/utils/StyleValue.d.ts.map +1 -0
- package/lib/typescript/module/utils/animated/AbstractAnimatedCoordinates.d.ts +42 -0
- package/lib/typescript/module/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -0
- package/lib/typescript/module/utils/animated/Animated.d.ts +21 -0
- package/lib/typescript/module/utils/animated/Animated.d.ts.map +1 -0
- package/lib/typescript/module/utils/animated/AnimatedCoordinatesArray.d.ts +40 -0
- package/lib/typescript/module/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -0
- package/lib/typescript/module/utils/animated/AnimatedExtractCoordinateFromArray.d.ts +13 -0
- package/lib/typescript/module/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -0
- package/lib/typescript/module/utils/animated/AnimatedGeoJSON.d.ts +31 -0
- package/lib/typescript/module/utils/animated/AnimatedGeoJSON.d.ts.map +1 -0
- package/lib/typescript/module/utils/animated/AnimatedPoint.d.ts +32 -0
- package/lib/typescript/module/utils/animated/AnimatedPoint.d.ts.map +1 -0
- package/lib/typescript/module/utils/animated/AnimatedRouteCoordinatesArray.d.ts +62 -0
- package/lib/typescript/module/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -0
- package/lib/typescript/module/utils/convertStyleSpec.d.ts +16 -0
- package/lib/typescript/module/utils/convertStyleSpec.d.ts.map +1 -0
- package/lib/typescript/module/utils/findNodeHandle.d.ts +3 -0
- package/lib/typescript/module/utils/findNodeHandle.d.ts.map +1 -0
- package/lib/typescript/module/utils/getNativeFilter.d.ts +3 -0
- package/lib/typescript/module/utils/getNativeFilter.d.ts.map +1 -0
- package/lib/typescript/module/utils/getStylePropertyType.d.ts +35 -0
- package/lib/typescript/module/utils/getStylePropertyType.d.ts.map +1 -0
- package/lib/typescript/module/utils/index.d.ts +18 -0
- package/lib/typescript/module/utils/index.d.ts.map +1 -0
- package/package.json +191 -0
- package/src/assets/heading.png +0 -0
- package/src/assets/heading@2x.png +0 -0
- package/src/assets/heading@3x.png +0 -0
- package/src/assets/png.d.ts +4 -0
- package/src/components/annotations/LayerAnnotation.tsx +74 -0
- package/src/components/annotations/callout/Callout.tsx +146 -0
- package/src/components/annotations/callout/CalloutNativeComponent.ts +11 -0
- package/src/components/annotations/marker/Marker.tsx +176 -0
- package/src/components/annotations/marker/MarkerViewNativeComponent.ts +40 -0
- package/src/components/annotations/view-annotation/PointAnnotationNativeComponent.ts +59 -0
- package/src/components/annotations/view-annotation/ViewAnnotation.tsx +239 -0
- package/src/components/camera/Camera.tsx +344 -0
- package/src/components/camera/CameraNativeComponent.ts +65 -0
- package/src/components/camera/NativeCameraModule.ts +38 -0
- package/src/components/images/Images.tsx +111 -0
- package/src/components/images/ImagesNativeComponent.ts +27 -0
- package/src/components/images/NativeImagesModule.ts +11 -0
- package/src/components/layer/Layer.tsx +278 -0
- package/src/components/layer/LayerNativeComponent.ts +43 -0
- package/src/components/map/AndroidTextureMapViewNativeComponent.ts +109 -0
- package/src/components/map/Map.tsx +697 -0
- package/src/components/map/MapViewNativeComponent.ts +105 -0
- package/src/components/map/NativeMapViewModule.ts +78 -0
- package/src/components/sources/geojson-source/GeoJSONSource.tsx +245 -0
- package/src/components/sources/geojson-source/GeoJSONSourceNativeComponent.ts +48 -0
- package/src/components/sources/geojson-source/NativeGeoJSONSourceModule.ts +33 -0
- package/src/components/sources/image-source/ImageSource.tsx +58 -0
- package/src/components/sources/image-source/ImageSourceNativeComponent.ts +31 -0
- package/src/components/sources/raster-dem-source/RasterDEMSource.tsx +83 -0
- package/src/components/sources/raster-dem-source/RasterDEMSourceNativeComponent.ts +25 -0
- package/src/components/sources/raster-source/RasterSource.tsx +82 -0
- package/src/components/sources/raster-source/RasterSourceNativeComponent.ts +25 -0
- package/src/components/sources/vector-source/NativeVectorSourceModule.ts +15 -0
- package/src/components/sources/vector-source/VectorSource.tsx +137 -0
- package/src/components/sources/vector-source/VectorSourceNativeComponent.ts +45 -0
- package/src/components/user-location/NativeUserLocation.tsx +31 -0
- package/src/components/user-location/UserLocation.tsx +98 -0
- package/src/components/user-location/UserLocationNativeComponent.ts +19 -0
- package/src/components/user-location/UserLocationPuck.tsx +83 -0
- package/src/components/user-location/UserLocationPuckHeading.tsx +34 -0
- package/src/hooks/useCurrentPosition.ts +53 -0
- package/src/hooks/useFrozenId.ts +13 -0
- package/src/hooks/useNativeBridge.ts +128 -0
- package/src/index.ts +119 -0
- package/src/modules/location/LocationManager.ts +174 -0
- package/src/modules/location/NativeLocationModule.ts +33 -0
- package/src/modules/log/LogManager.ts +115 -0
- package/src/modules/log/NativeLogModule.ts +16 -0
- package/src/modules/network/NativeNetworkModule.ts +8 -0
- package/src/modules/network/NetworkManager.ts +28 -0
- package/src/modules/offline/NativeOfflineModule.ts +63 -0
- package/src/modules/offline/OfflineManager.ts +428 -0
- package/src/modules/offline/OfflinePack.ts +44 -0
- package/src/modules/static-map/NativeStaticMapModule.ts +26 -0
- package/src/modules/static-map/StaticMapManager.ts +127 -0
- package/src/modules/transform-request/NativeTransformRequestModule.ts +41 -0
- package/src/modules/transform-request/TransformRequestManager.ts +304 -0
- package/src/plugin/MapVinaPluginProps.ts +84 -0
- package/src/plugin/android.ts +68 -0
- package/src/plugin/ios.ts +114 -0
- package/src/types/Anchor.ts +43 -0
- package/src/types/BaseProps.ts +6 -0
- package/src/types/LngLat.ts +4 -0
- package/src/types/LngLatBounds.ts +12 -0
- package/src/types/MapVinaRNStyles.ts +1335 -0
- package/src/types/PixelPoint.ts +4 -0
- package/src/types/PixelPointBounds.ts +9 -0
- package/src/types/PressEvent.ts +17 -0
- package/src/types/PressEventWithFeatures.ts +8 -0
- package/src/types/PressableSourceProps.ts +21 -0
- package/src/types/ViewPadding.ts +9 -0
- package/src/types/codegen/UnsafeMixed.ts +9 -0
- package/src/utils/BridgeValue.ts +90 -0
- package/src/utils/StyleValue.ts +52 -0
- package/src/utils/animated/AbstractAnimatedCoordinates.ts +145 -0
- package/src/utils/animated/Animated.ts +33 -0
- package/src/utils/animated/AnimatedCoordinatesArray.ts +114 -0
- package/src/utils/animated/AnimatedExtractCoordinateFromArray.ts +37 -0
- package/src/utils/animated/AnimatedGeoJSON.ts +90 -0
- package/src/utils/animated/AnimatedPoint.ts +153 -0
- package/src/utils/animated/AnimatedRouteCoordinatesArray.ts +155 -0
- package/src/utils/convertStyleSpec.ts +61 -0
- package/src/utils/findNodeHandle.ts +14 -0
- package/src/utils/getNativeFilter.ts +15 -0
- package/src/utils/getStylePropertyType.ts +268 -0
- package/src/utils/index.ts +105 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.transformStyle = transformStyle;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _BridgeValue = require("./BridgeValue.js");
|
|
9
|
+
var _getStylePropertyType = require("./getStylePropertyType.js");
|
|
10
|
+
function transformStyle(style) {
|
|
11
|
+
if (!style) {
|
|
12
|
+
return undefined;
|
|
13
|
+
}
|
|
14
|
+
const nativeStyle = {};
|
|
15
|
+
const styleProps = Object.keys(style);
|
|
16
|
+
for (const styleProp of styleProps) {
|
|
17
|
+
const styleType = (0, _getStylePropertyType.getStylePropertyType)(styleProp);
|
|
18
|
+
let rawStyle = style[styleProp];
|
|
19
|
+
if (styleType === "color" && typeof rawStyle === "string") {
|
|
20
|
+
const color = (0, _reactNative.processColor)(rawStyle);
|
|
21
|
+
if (color === null || color === undefined || typeof color === "symbol") {
|
|
22
|
+
console.error(`@mapvina/mapvina-react-native: Invalid color value ${rawStyle}, using #ff0000 (red) instead`);
|
|
23
|
+
rawStyle = "ff0000";
|
|
24
|
+
} else {
|
|
25
|
+
rawStyle = color;
|
|
26
|
+
}
|
|
27
|
+
} else if (styleType === "image" && typeof rawStyle === "number") {
|
|
28
|
+
rawStyle = _reactNative.Image.resolveAssetSource(rawStyle) || {};
|
|
29
|
+
}
|
|
30
|
+
const bridgeValue = new _BridgeValue.BridgeValue(rawStyle);
|
|
31
|
+
nativeStyle[styleProp] = {
|
|
32
|
+
styletype: styleType,
|
|
33
|
+
stylevalue: bridgeValue.toJSON()
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
return nativeStyle;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=StyleValue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_BridgeValue","_getStylePropertyType","transformStyle","style","undefined","nativeStyle","styleProps","Object","keys","styleProp","styleType","getStylePropertyType","rawStyle","color","processColor","console","error","Image","resolveAssetSource","bridgeValue","BridgeValue","styletype","stylevalue","toJSON"],"sourceRoot":"../../../src","sources":["utils/StyleValue.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AAKA,IAAAE,qBAAA,GAAAF,OAAA;AAQO,SAASG,cAAcA,CAC5BC,KAAgC,EACW;EAC3C,IAAI,CAACA,KAAK,EAAE;IACV,OAAOC,SAAS;EAClB;EAEA,MAAMC,WAA0C,GAAG,CAAC,CAAC;EACrD,MAAMC,UAAU,GAAGC,MAAM,CAACC,IAAI,CAACL,KAAK,CAA2B;EAC/D,KAAK,MAAMM,SAAS,IAAIH,UAAU,EAAE;IAClC,MAAMI,SAAS,GAAG,IAAAC,0CAAoB,EAACF,SAAS,CAAC;IACjD,IAAIG,QAAkC,GAAGT,KAAK,CAACM,SAAS,CAAC;IAEzD,IAAIC,SAAS,KAAK,OAAO,IAAI,OAAOE,QAAQ,KAAK,QAAQ,EAAE;MACzD,MAAMC,KAAK,GAAG,IAAAC,yBAAY,EAACF,QAAQ,CAAC;MACpC,IAAIC,KAAK,KAAK,IAAI,IAAIA,KAAK,KAAKT,SAAS,IAAI,OAAOS,KAAK,KAAK,QAAQ,EAAE;QACtEE,OAAO,CAACC,KAAK,CACX,sDAAsDJ,QAAQ,+BAChE,CAAC;QACDA,QAAQ,GAAG,QAAQ;MACrB,CAAC,MAAM;QACLA,QAAQ,GAAGC,KAAK;MAClB;IACF,CAAC,MAAM,IAAIH,SAAS,KAAK,OAAO,IAAI,OAAOE,QAAQ,KAAK,QAAQ,EAAE;MAChEA,QAAQ,GACLK,kBAAK,CAACC,kBAAkB,CAACN,QAAQ,CAAC,IAAgC,CAAC,CAAC;IACzE;IAEA,MAAMO,WAAW,GAAG,IAAIC,wBAAW,CAACR,QAAQ,CAAC;IAC7CP,WAAW,CAACI,SAAS,CAAC,GAAG;MACvBY,SAAS,EAAEX,SAAS;MACpBY,UAAU,EAAEH,WAAW,CAACI,MAAM,CAAC;IACjC,CAAC;EACH;EAEA,OAAOlB,WAAW;AACpB","ignoreList":[]}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.AbstractAnimatedCoordinates = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
const AnimatedWithChildren = Object.getPrototypeOf(_reactNative.Animated.ValueXY);
|
|
9
|
+
const defaultConfig = {
|
|
10
|
+
useNativeDriver: false
|
|
11
|
+
};
|
|
12
|
+
class AbstractAnimatedCoordinates extends AnimatedWithChildren {
|
|
13
|
+
constructor(coordinates) {
|
|
14
|
+
super();
|
|
15
|
+
this.state = this.onInitialState(coordinates);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Subclasses can override to calculate initial state
|
|
20
|
+
*
|
|
21
|
+
* @returns the state object
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Calculates state based on startingState and progress, returns a new state
|
|
26
|
+
*
|
|
27
|
+
* @param state - state object from initialState and/or from calculate
|
|
28
|
+
* @param progress - value between 0 and 1
|
|
29
|
+
* @returns next state
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Subclasses can override getValue to calculate value from state. Value is
|
|
34
|
+
* typically coordinates array, but can be anything
|
|
35
|
+
*
|
|
36
|
+
* @param state - either state from initialState and/or from calculate
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
animate(progressValue, progressAnimation, config) {
|
|
40
|
+
const onAnimationStart = animation => {
|
|
41
|
+
if (this.animation) {
|
|
42
|
+
const actProgress = this.progressValue.__getValue();
|
|
43
|
+
this.animation.stop();
|
|
44
|
+
this.state = this.onCalculate(this.state, actProgress);
|
|
45
|
+
this.progressValue.__removeChild(this);
|
|
46
|
+
this.progressValue = null;
|
|
47
|
+
this.animation = null;
|
|
48
|
+
}
|
|
49
|
+
this.progressValue = progressValue;
|
|
50
|
+
this.progressValue.__addChild(this);
|
|
51
|
+
this.animation = animation;
|
|
52
|
+
this.state = this.onStart(this.state, config.toValue);
|
|
53
|
+
};
|
|
54
|
+
const origAnimationStart = progressAnimation.start;
|
|
55
|
+
const newAnimation = progressAnimation;
|
|
56
|
+
newAnimation.start = function start(...args) {
|
|
57
|
+
onAnimationStart(progressAnimation);
|
|
58
|
+
origAnimationStart(...args);
|
|
59
|
+
};
|
|
60
|
+
return newAnimation;
|
|
61
|
+
}
|
|
62
|
+
timing(config) {
|
|
63
|
+
const progressValue = new _reactNative.Animated.Value(0.0);
|
|
64
|
+
return this.animate(progressValue, _reactNative.Animated.timing(progressValue, {
|
|
65
|
+
...defaultConfig,
|
|
66
|
+
...config,
|
|
67
|
+
toValue: 1.0
|
|
68
|
+
}), {
|
|
69
|
+
...defaultConfig,
|
|
70
|
+
...config
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
spring(config) {
|
|
74
|
+
const progressValue = new _reactNative.Animated.Value(0.0);
|
|
75
|
+
return this.animate(progressValue, _reactNative.Animated.spring(progressValue, {
|
|
76
|
+
...defaultConfig,
|
|
77
|
+
...config,
|
|
78
|
+
toValue: 1.0
|
|
79
|
+
}), config);
|
|
80
|
+
}
|
|
81
|
+
decay(config) {
|
|
82
|
+
const progressValue = new _reactNative.Animated.Value(0.0);
|
|
83
|
+
return this.animate(progressValue, _reactNative.Animated.decay(this.progressValue, {
|
|
84
|
+
...defaultConfig,
|
|
85
|
+
...config
|
|
86
|
+
}), config);
|
|
87
|
+
}
|
|
88
|
+
__getValue() {
|
|
89
|
+
if (!this.progressValue) {
|
|
90
|
+
return this.onGetValue(this.state);
|
|
91
|
+
}
|
|
92
|
+
return this.onGetValue(this.onCalculate(this.state, this.progressValue.__getValue()));
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
exports.AbstractAnimatedCoordinates = AbstractAnimatedCoordinates;
|
|
96
|
+
//# sourceMappingURL=AbstractAnimatedCoordinates.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","AnimatedWithChildren","Object","getPrototypeOf","Animated","ValueXY","defaultConfig","useNativeDriver","AbstractAnimatedCoordinates","constructor","coordinates","state","onInitialState","animate","progressValue","progressAnimation","config","onAnimationStart","animation","actProgress","__getValue","stop","onCalculate","__removeChild","__addChild","onStart","toValue","origAnimationStart","start","newAnimation","args","timing","Value","spring","decay","onGetValue","exports"],"sourceRoot":"../../../../src","sources":["utils/animated/AbstractAnimatedCoordinates.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,MAAMC,oBAAoB,GAAGC,MAAM,CAACC,cAAc,CAACC,qBAAQ,CAACC,OAAO,CAAC;AAIpE,MAAMC,aAAa,GAAG;EACpBC,eAAe,EAAE;AACnB,CAAC;AAEM,MAAeC,2BAA2B,SAGvCP,oBAAoB,CAAC;EAC7BQ,WAAWA,CAACC,WAAkC,EAAE;IAC9C,KAAK,CAAC,CAAC;IAEP,IAAI,CAACC,KAAK,GAAG,IAAI,CAACC,cAAc,CAACF,WAAW,CAAC;EAC/C;;EAEA;AACF;AACA;AACA;AACA;;EAGE;AACF;AACA;AACA;AACA;AACA;AACA;;EAGE;AACF;AACA;AACA;AACA;AACA;;EAGEG,OAAOA,CACLC,aAA6B,EAC7BC,iBAA8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AC,EACF;MACE,GAAGpB,aAAa;MAChB,GAAGU;IACL,CACF,CAAC;EACH;EAEAiB,MAAMA,CACJjB,MAEC,EAC4B;IAC7B,MAAMF,aAAa,GAAG,IAAIV,qBAAQ,CAAC4B,KAAK,CAAC,GAAG,CAAC;IAC7C,OAAO,IAAI,CAACnB,OAAO,CACjBC,aAAa,EACbV,qBAAQ,CAAC6B,MAAM,CAACnB,aAAa,EAAE;MAC7B,GAAGR,aAAa;MAChB,GAAGU,MAAM;MACTU,OAAO,EAAE;IACX,CAAC,CAAC,EACFV,MACF,CAAC;EACH;EAEAkB,KAAKA,CACHlB,MAEC,EAC4B;IAC7B,MAAMF,aAAa,GAAG,IAAIV,qBAAQ,CAAC4B,KAAK,CAAC,GAAG,CAAC;IAC7C,OAAO,IAAI,CAACnB,OAAO,CACjBC,aAAa,EACbV,qBAAQ,CAAC8B,KAAK,CAAC,IAAI,CAACpB,aAAa,EAAE;MACjC,GAAGR,aAAa;MAChB,GAAGU;IACL,CAAC,CAAC,EACFA,MACF,CAAC;EACH;EAEAI,UAAUA,CAAA,EAA0B;IAClC,IAAI,CAAC,IAAI,CAACN,aAAa,EAAE;MACvB,OAAO,IAAI,CAACqB,UAAU,CAAC,IAAI,CAACxB,KAAK,CAAC;IACpC;IAEA,OAAO,IAAI,CAACwB,UAAU,CACpB,IAAI,CAACb,WAAW,CAAC,IAAI,CAACX,KAAK,EAAE,IAAI,CAACG,aAAa,CAACM,UAAU,CAAC,CAAC,CAC9D,CAAC;EACH;AACF;AAACgB,OAAA,CAAA5B,2BAAA,GAAAA,2BAAA","ignoreList":[]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Animated = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _AnimatedCoordinatesArray = require("./AnimatedCoordinatesArray.js");
|
|
9
|
+
var _AnimatedExtractCoordinateFromArray = require("./AnimatedExtractCoordinateFromArray.js");
|
|
10
|
+
var _AnimatedGeoJSON = require("./AnimatedGeoJSON.js");
|
|
11
|
+
var _AnimatedPoint = require("./AnimatedPoint.js");
|
|
12
|
+
var _AnimatedRouteCoordinatesArray = require("./AnimatedRouteCoordinatesArray.js");
|
|
13
|
+
var _Marker = require("../../components/annotations/marker/Marker.js");
|
|
14
|
+
var _Layer = require("../../components/layer/Layer.js");
|
|
15
|
+
var _GeoJSONSource = require("../../components/sources/geojson-source/GeoJSONSource.js");
|
|
16
|
+
var _ImageSource = require("../../components/sources/image-source/ImageSource.js");
|
|
17
|
+
const Animated = exports.Animated = {
|
|
18
|
+
// Components
|
|
19
|
+
GeoJSONSource: _reactNative.Animated.createAnimatedComponent(_GeoJSONSource.GeoJSONSource),
|
|
20
|
+
ImageSource: _reactNative.Animated.createAnimatedComponent(_ImageSource.ImageSource),
|
|
21
|
+
Marker: _reactNative.Animated.createAnimatedComponent(_Marker.Marker),
|
|
22
|
+
Layer: _reactNative.Animated.createAnimatedComponent(_Layer.Layer),
|
|
23
|
+
// Values
|
|
24
|
+
Point: _AnimatedPoint.AnimatedPoint,
|
|
25
|
+
CoordinatesArray: _AnimatedCoordinatesArray.AnimatedCoordinatesArray,
|
|
26
|
+
RouteCoordinatesArray: _AnimatedRouteCoordinatesArray.AnimatedRouteCoordinatesArray,
|
|
27
|
+
GeoJSON: _AnimatedGeoJSON.AnimatedGeoJSON,
|
|
28
|
+
ExtractCoordinateFromArray: _AnimatedExtractCoordinateFromArray.AnimatedExtractCoordinateFromArray
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=Animated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_AnimatedCoordinatesArray","_AnimatedExtractCoordinateFromArray","_AnimatedGeoJSON","_AnimatedPoint","_AnimatedRouteCoordinatesArray","_Marker","_Layer","_GeoJSONSource","_ImageSource","Animated","exports","GeoJSONSource","RNAnimated","createAnimatedComponent","ImageSource","Marker","Layer","Point","AnimatedPoint","CoordinatesArray","AnimatedCoordinatesArray","RouteCoordinatesArray","AnimatedRouteCoordinatesArray","GeoJSON","AnimatedGeoJSON","ExtractCoordinateFromArray","AnimatedExtractCoordinateFromArray"],"sourceRoot":"../../../../src","sources":["utils/animated/Animated.ts"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,yBAAA,GAAAD,OAAA;AACA,IAAAE,mCAAA,GAAAF,OAAA;AACA,IAAAG,gBAAA,GAAAH,OAAA;AACA,IAAAI,cAAA,GAAAJ,OAAA;AACA,IAAAK,8BAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;AACA,IAAAQ,cAAA,GAAAR,OAAA;AACA,IAAAS,YAAA,GAAAT,OAAA;AAEO,MAAMU,QAAQ,GAAAC,OAAA,CAAAD,QAAA,GAAG;EACtB;EACAE,aAAa,EAAEC,qBAAU,CAACC,uBAAuB,CAC/CF,4BAKF,CAAC;EACDG,WAAW,EAAEF,qBAAU,CAACC,uBAAuB,CAACC,wBAAW,CAAC;EAC5DC,MAAM,EAAEH,qBAAU,CAACC,uBAAuB,CAACE,cAAM,CAAC;EAClDC,KAAK,EAAEJ,qBAAU,CAACC,uBAAuB,CAACG,YAAK,CAAC;EAEhD;EACAC,KAAK,EAAEC,4BAAa;EACpBC,gBAAgB,EAAEC,kDAAwB;EAC1CC,qBAAqB,EAAEC,4DAA6B;EACpDC,OAAO,EAAEC,gCAAe;EACxBC,0BAA0B,EAAEC;AAC9B,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.AnimatedCoordinatesArray = void 0;
|
|
7
|
+
var _AbstractAnimatedCoordinates = require("./AbstractAnimatedCoordinates.js");
|
|
8
|
+
class AnimatedCoordinatesArray extends _AbstractAnimatedCoordinates.AbstractAnimatedCoordinates {
|
|
9
|
+
/**
|
|
10
|
+
* Subclasses can override to calculate initial state
|
|
11
|
+
*
|
|
12
|
+
* @param coordinatesArray - to value from animate
|
|
13
|
+
* @returns {object} - the state object
|
|
14
|
+
*/
|
|
15
|
+
onInitialState(coordinatesArray) {
|
|
16
|
+
return {
|
|
17
|
+
coords: coordinatesArray.map(coordinates => [coordinates[0], coordinates[1]]),
|
|
18
|
+
targetCoords: []
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Subclasses can override getValue to calculate value from state. Value is
|
|
24
|
+
* typically coordinates array, but can be anything
|
|
25
|
+
*
|
|
26
|
+
* @param state - either state from initialState and/or from calculate
|
|
27
|
+
* @returns {object}
|
|
28
|
+
*/
|
|
29
|
+
onGetValue(state) {
|
|
30
|
+
return state.coords;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Calculates state based on startingState and progress, returns a new state
|
|
35
|
+
*
|
|
36
|
+
* @param state - state object from initialState and/or from calculate
|
|
37
|
+
* @param progress - value between 0 and 1
|
|
38
|
+
* @returns {object} next state
|
|
39
|
+
*/
|
|
40
|
+
onCalculate(state, progress) {
|
|
41
|
+
const {
|
|
42
|
+
coords,
|
|
43
|
+
targetCoords
|
|
44
|
+
} = state;
|
|
45
|
+
const newF = progress;
|
|
46
|
+
const origF = 1.0 - newF;
|
|
47
|
+
|
|
48
|
+
// common
|
|
49
|
+
const commonLen = Math.min(coords.length, targetCoords.length);
|
|
50
|
+
const common = coords.slice(0, commonLen).map((originalCoordinates, i) => [originalCoordinates[0] * origF + (targetCoords[i]?.[0] ?? 0) * newF, originalCoordinates[1] * origF + (targetCoords[i]?.[1] ?? 0) * newF]);
|
|
51
|
+
if (targetCoords.length > coords.length) {
|
|
52
|
+
// only in new (adding)
|
|
53
|
+
const addingOriginal = coords.length > 0 ? coords[coords.length - 1] : targetCoords[0];
|
|
54
|
+
const adding = targetCoords.slice(commonLen, targetCoords.length).map(newCoordinates => [(addingOriginal?.[0] ?? 0) * origF + newCoordinates[0] * newF, (addingOriginal?.[1] ?? 0) * origF + newCoordinates[1] * newF]);
|
|
55
|
+
return {
|
|
56
|
+
coords: [...common, ...adding],
|
|
57
|
+
targetCoords
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
if (coords.length > targetCoords.length) {
|
|
61
|
+
// only in orig (disappearing)
|
|
62
|
+
const disappearingNew = targetCoords.length > 0 ? targetCoords[targetCoords.length - 1] : coords[0];
|
|
63
|
+
const disappearing = coords.slice(commonLen, coords.length).map(originalCoordinates => [originalCoordinates[0] * origF + (disappearingNew?.[0] ?? 0) * newF, originalCoordinates[1] * origF + (disappearingNew?.[1] ?? 0) * newF]);
|
|
64
|
+
return {
|
|
65
|
+
coords: [...common, ...disappearing],
|
|
66
|
+
targetCoords
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
coords: common,
|
|
71
|
+
targetCoords
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Subclasses can override to start a new animation
|
|
77
|
+
*
|
|
78
|
+
* @param state - to value from animate
|
|
79
|
+
* @param toValue - the current coordinates array to start from
|
|
80
|
+
* @returns The state
|
|
81
|
+
*/
|
|
82
|
+
onStart(state, toValue) {
|
|
83
|
+
const targetCoords = toValue.map(coordinates => [coordinates[0], coordinates[1]]);
|
|
84
|
+
return {
|
|
85
|
+
...state,
|
|
86
|
+
targetCoords
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
exports.AnimatedCoordinatesArray = AnimatedCoordinatesArray;
|
|
91
|
+
//# sourceMappingURL=AnimatedCoordinatesArray.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_AbstractAnimatedCoordinates","require","AnimatedCoordinatesArray","AbstractAnimatedCoordinates","onInitialState","coordinatesArray","coords","map","coordinates","targetCoords","onGetValue","state","onCalculate","progress","newF","origF","commonLen","Math","min","length","common","slice","originalCoordinates","i","addingOriginal","adding","newCoordinates","disappearingNew","disappearing","onStart","toValue","exports"],"sourceRoot":"../../../../src","sources":["utils/animated/AnimatedCoordinatesArray.ts"],"mappings":";;;;;;AAAA,IAAAA,4BAAA,GAAAC,OAAA;AAUO,MAAMC,wBAAwB,SAASC,wDAA2B,CAAmB;EAC1F;AACF;AACA;AACA;AACA;AACA;EACYC,cAAcA,CACtBC,gBAAuC,EACrB;IAClB,OAAO;MACLC,MAAM,EAAED,gBAAgB,CAACE,GAAG,CAAEC,WAAW,IAAK,CAC5CA,WAAW,CAAC,CAAC,CAAC,EACdA,WAAW,CAAC,CAAC,CAAC,CACf,CAAC;MACFC,YAAY,EAAE;IAChB,CAAC;EACH;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;EACYC,UAAUA,CAACC,KAAuB,EAA8B;IACxE,OAAOA,KAAK,CAACL,MAAM;EACrB;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;EACEM,WAAWA,CAACD,KAAuB,EAAEE,QAAgB,EAAoB;IACvE,MAAM;MAAEP,MAAM;MAAEG;IAAa,CAAC,GAAGE,KAAK;IACtC,MAAMG,IAAI,GAAGD,QAAQ;IACrB,MAAME,KAAK,GAAG,GAAG,GAAGD,IAAI;;IAExB;IACA,MAAME,SAAS,GAAGC,IAAI,CAACC,GAAG,CAACZ,MAAM,CAACa,MAAM,EAAEV,YAAY,CAACU,MAAM,CAAC;IAC9D,MAAMC,MAAM,GAAGd,MAAM,CAClBe,KAAK,CAAC,CAAC,EAAEL,SAAS,CAAC,CACnBT,GAAG,CAAC,CAACe,mBAAmB,EAAEC,CAAC,KAAuB,CACjDD,mBAAmB,CAAC,CAAC,CAAC,GAAGP,KAAK,GAAG,CAACN,YAAY,CAACc,CAAC,CAAC,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GAAGP,KAAK,GAAG,CAACY,eAAe,GAAG,CAAC,CAAC,IAAI,CAAC,IAAIb,IAAI,EACnEQ,mBAAmB,CAAC,CAAC,CAAC,GAAGP,KAAK,GAAG,CAACY,eAAe,GAAG,CAAC,CAAC,IAAI,CAAC,IAAIb,IAAI,CACpE,CAAC;MACJ,OAAO;QAAER,MAAM,EAAE,CAAC,GAAGc,MAAM,EAAE,GAAGQ,YAAY,CAAC;QAAEnB;MAAa,CAAC;IAC/D;IAEA,OAAO;MAAEH,MAAM,EAAEc,MAAM;MAAEX;IAAa,CAAC;EACzC;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;EACYoB,OAAOA,CACflB,KAAuB,EACvBmB,OAA8B,EACZ;IAClB,MAAMrB,YAAY,GAAGqB,OAAO,CAACvB,GAAG,CAC7BC,WAAW,IAA0B,CAACA,WAAW,CAAC,CAAC,CAAC,EAAEA,WAAW,CAAC,CAAC,CAAC,CACvE,CAAC;IACD,OAAO;MACL,GAAGG,KAAK;MACRF;IACF,CAAC;EACH;AACF;AAACsB,OAAA,CAAA7B,wBAAA,GAAAA,wBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.AnimatedExtractCoordinateFromArray = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
const AnimatedWithChildren = Object.getPrototypeOf(_reactNative.Animated.ValueXY);
|
|
9
|
+
class AnimatedExtractCoordinateFromArray extends AnimatedWithChildren {
|
|
10
|
+
constructor(array, index) {
|
|
11
|
+
super();
|
|
12
|
+
this.array = array;
|
|
13
|
+
this.index = index;
|
|
14
|
+
}
|
|
15
|
+
__getValue() {
|
|
16
|
+
const actArray = this.array.__getValue();
|
|
17
|
+
let index = this.index;
|
|
18
|
+
if (index < 0) {
|
|
19
|
+
index += actArray.length;
|
|
20
|
+
}
|
|
21
|
+
return actArray[index];
|
|
22
|
+
}
|
|
23
|
+
__attach() {
|
|
24
|
+
this.array.__addChild(this);
|
|
25
|
+
}
|
|
26
|
+
__detach() {
|
|
27
|
+
this.array.__removeChild(this);
|
|
28
|
+
super.__detach();
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.AnimatedExtractCoordinateFromArray = AnimatedExtractCoordinateFromArray;
|
|
32
|
+
//# sourceMappingURL=AnimatedExtractCoordinateFromArray.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","AnimatedWithChildren","Object","getPrototypeOf","Animated","ValueXY","AnimatedExtractCoordinateFromArray","constructor","array","index","__getValue","actArray","length","__attach","__addChild","__detach","__removeChild","exports"],"sourceRoot":"../../../../src","sources":["utils/animated/AnimatedExtractCoordinateFromArray.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAKA,MAAMC,oBAAoB,GAAGC,MAAM,CAACC,cAAc,CAACC,qBAAQ,CAACC,OAAO,CAAC;AAE7D,MAAMC,kCAAkC,SAASL,oBAAoB,CAAC;EAI3EM,WAAWA,CAACC,KAAoC,EAAEC,KAAa,EAAE;IAC/D,KAAK,CAAC,CAAC;IACP,IAAI,CAACD,KAAK,GAAGA,KAAK;IAClB,IAAI,CAACC,KAAK,GAAGA,KAAK;EACpB;EAEAC,UAAUA,CAAA,EAAwB;IAChC,MAAMC,QAAQ,GAAG,IAAI,CAACH,KAAK,CAACE,UAAU,CAAC,CAAC;IACxC,IAAID,KAAK,GAAG,IAAI,CAACA,KAAK;IAEtB,IAAIA,KAAK,GAAG,CAAC,EAAE;MACbA,KAAK,IAAIE,QAAQ,CAACC,MAAM;IAC1B;IAEA,OAAOD,QAAQ,CAACF,KAAK,CAAC;EACxB;EAEAI,QAAQA,CAAA,EAAS;IACf,IAAI,CAACL,KAAK,CAACM,UAAU,CAAC,IAAI,CAAC;EAC7B;EAEAC,QAAQA,CAAA,EAAS;IACf,IAAI,CAACP,KAAK,CAACQ,aAAa,CAAC,IAAI,CAAC;IAC9B,KAAK,CAACD,QAAQ,CAAC,CAAC;EAClB;AACF;AAACE,OAAA,CAAAX,kCAAA,GAAAA,kCAAA","ignoreList":[]}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.AnimatedGeoJSON = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
const AnimatedWithChildren = Object.getPrototypeOf(_reactNative.Animated.ValueXY);
|
|
9
|
+
/**
|
|
10
|
+
* AnimatedGeoJSON can be used to have animated properties inside the data
|
|
11
|
+
* property
|
|
12
|
+
*
|
|
13
|
+
* Equivalent of AnimatedStyle for GeoJSON
|
|
14
|
+
* https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Animated/nodes/AnimatedStyle.js
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* <AnimatedGeoJSONSource ... data={new AnimatedGeoJSON({type:'LineString', coordinates: animatedCoords})} />
|
|
18
|
+
*/
|
|
19
|
+
class AnimatedGeoJSON extends AnimatedWithChildren {
|
|
20
|
+
constructor(valueIn) {
|
|
21
|
+
super();
|
|
22
|
+
this.geojson = valueIn;
|
|
23
|
+
}
|
|
24
|
+
walkGeoJSONAndGetValues(value) {
|
|
25
|
+
if (Array.isArray(value)) {
|
|
26
|
+
return value.map(i => this.walkGeoJSONAndGetValues(i));
|
|
27
|
+
}
|
|
28
|
+
if (value instanceof AnimatedWithChildren) {
|
|
29
|
+
return value.__getValue();
|
|
30
|
+
}
|
|
31
|
+
if (typeof value === "object") {
|
|
32
|
+
const result = {};
|
|
33
|
+
for (const key in value) {
|
|
34
|
+
result[key] = this.walkGeoJSONAndGetValues(value[key]);
|
|
35
|
+
}
|
|
36
|
+
return result;
|
|
37
|
+
}
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
walkAndProcess(value, cb) {
|
|
41
|
+
if (Array.isArray(value)) {
|
|
42
|
+
value.forEach(i => this.walkAndProcess(i, cb));
|
|
43
|
+
} else if (value instanceof AnimatedWithChildren) {
|
|
44
|
+
cb(value);
|
|
45
|
+
} else if (typeof value === "object") {
|
|
46
|
+
for (const key in value) {
|
|
47
|
+
this.walkAndProcess(value[key], cb);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
__getValue() {
|
|
52
|
+
const geojson = this.walkGeoJSONAndGetValues(this.geojson);
|
|
53
|
+
if (geojson.type === "LineString" && geojson.coordinates.length === 1) {
|
|
54
|
+
geojson.coordinates = [...geojson.coordinates, ...geojson.coordinates];
|
|
55
|
+
}
|
|
56
|
+
return geojson;
|
|
57
|
+
}
|
|
58
|
+
__attach() {
|
|
59
|
+
this.walkAndProcess(this.geojson, v => v.__addChild(this));
|
|
60
|
+
}
|
|
61
|
+
__detach() {
|
|
62
|
+
this.walkAndProcess(this.geojson, v => v.__removeChild(this));
|
|
63
|
+
super.__detach();
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
exports.AnimatedGeoJSON = AnimatedGeoJSON;
|
|
67
|
+
//# sourceMappingURL=AnimatedGeoJSON.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","AnimatedWithChildren","Object","getPrototypeOf","Animated","ValueXY","AnimatedGeoJSON","constructor","valueIn","geojson","walkGeoJSONAndGetValues","value","Array","isArray","map","i","__getValue","result","key","walkAndProcess","cb","forEach","type","coordinates","length","__attach","v","__addChild","__detach","__removeChild","exports"],"sourceRoot":"../../../../src","sources":["utils/animated/AnimatedGeoJSON.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAMA,MAAMC,oBAAoB,GAAGC,MAAM,CAACC,cAAc,CAACC,qBAAQ,CAACC,OAAO,CAAC;AAYpE;AACA;AACA;AAC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,EAAuC;IAC/C,MAAMP,OAAO,GAAG,IAAI,CAACC,uBAAuB,CAAC,IAAI,CAACD,OAAO,CAAC;IAE1D,IAAIA,OAAO,CAACa,IAAI,KAAK,YAAY,IAAIb,OAAO,CAACc,WAAW,CAACC,MAAM,KAAK,CAAC,EAAE;MACrEf,OAAO,CAACc,WAAW,GAAG,CAAC,GAAGd,OAAO,CAACc,WAAW,EAAE,GAAGd,OAAO,CAACc,WAAW,CAAC;IACxE;IAEA,OAAOd,OAAO;EAChB;EAEAgB,QAAQA,CAAA,EAAS;IACf,IAAI,CAACN,cAAc,CAAC,IAAI,CAACV,OAAO,EAAGiB,CAAC,IAAMA,CAAC,CAASC,UAAU,CAAC,IAAI,CAAC,CAAC;EACvE;EAEAC,QAAQA,CAAA,EAAS;IACf,IAAI,CAACT,cAAc,CAAC,IAAI,CAACV,OAAO,EAAGiB,CAAC,IAAMA,CAAC,CAASG,aAAa,CAAC,IAAI,CAAC,CAAC;IACxE,KAAK,CAACD,QAAQ,CAAC,CAAC;EAClB;AACF;AAACE,OAAA,CAAAxB,eAAA,GAAAA,eAAA","ignoreList":[]}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.AnimatedPoint = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
let uniqueID = 0;
|
|
9
|
+
const AnimatedWithChildren = Object.getPrototypeOf(_reactNative.Animated.ValueXY);
|
|
10
|
+
class AnimatedPoint extends AnimatedWithChildren {
|
|
11
|
+
constructor(valueIn) {
|
|
12
|
+
super();
|
|
13
|
+
const longitudeIn = valueIn?.coordinates[0] ?? 0;
|
|
14
|
+
const latitudeIn = valueIn?.coordinates[1] ?? 0;
|
|
15
|
+
if (longitudeIn instanceof _reactNative.Animated.Value) {
|
|
16
|
+
this.longitude = longitudeIn;
|
|
17
|
+
} else {
|
|
18
|
+
this.longitude = new _reactNative.Animated.Value(longitudeIn);
|
|
19
|
+
}
|
|
20
|
+
if (latitudeIn instanceof _reactNative.Animated.Value) {
|
|
21
|
+
this.latitude = latitudeIn;
|
|
22
|
+
} else {
|
|
23
|
+
this.latitude = new _reactNative.Animated.Value(latitudeIn);
|
|
24
|
+
}
|
|
25
|
+
this._lngLatListeners = {};
|
|
26
|
+
}
|
|
27
|
+
setValue(value) {
|
|
28
|
+
this.longitude.setValue(value.coordinates[0] ?? 0);
|
|
29
|
+
this.latitude.setValue(value.coordinates[1] ?? 0);
|
|
30
|
+
}
|
|
31
|
+
setOffset(offset) {
|
|
32
|
+
this.longitude.setOffset(offset.coordinates[0] ?? 0);
|
|
33
|
+
this.latitude.setOffset(offset.coordinates[1] ?? 0);
|
|
34
|
+
}
|
|
35
|
+
flattenOffset() {
|
|
36
|
+
this.longitude.flattenOffset();
|
|
37
|
+
this.latitude.flattenOffset();
|
|
38
|
+
}
|
|
39
|
+
stopAnimation(callback) {
|
|
40
|
+
this.longitude.stopAnimation();
|
|
41
|
+
this.latitude.stopAnimation();
|
|
42
|
+
if (typeof callback === "function") {
|
|
43
|
+
callback(this.__getValue());
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
addListener(callback) {
|
|
47
|
+
uniqueID += 1;
|
|
48
|
+
const id = `${uniqueID}-${Date.now()}`;
|
|
49
|
+
const completeCallback = () => {
|
|
50
|
+
if (typeof callback === "function") {
|
|
51
|
+
callback(this.__getValue());
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
this._lngLatListeners[id] = {
|
|
55
|
+
longitude: this.longitude.addListener(completeCallback),
|
|
56
|
+
latitude: this.latitude.addListener(completeCallback)
|
|
57
|
+
};
|
|
58
|
+
return id;
|
|
59
|
+
}
|
|
60
|
+
removeListener(id) {
|
|
61
|
+
const listener = this._lngLatListeners[id];
|
|
62
|
+
if (listener) {
|
|
63
|
+
this.longitude.removeListener(listener.longitude);
|
|
64
|
+
this.latitude.removeListener(listener.latitude);
|
|
65
|
+
delete this._lngLatListeners[id];
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
spring({
|
|
69
|
+
toValue,
|
|
70
|
+
...config
|
|
71
|
+
}) {
|
|
72
|
+
return _reactNative.Animated.parallel([_reactNative.Animated.spring(this.longitude, {
|
|
73
|
+
...config,
|
|
74
|
+
toValue: toValue.coordinates[0] ?? 0,
|
|
75
|
+
useNativeDriver: false
|
|
76
|
+
}), _reactNative.Animated.spring(this.latitude, {
|
|
77
|
+
...config,
|
|
78
|
+
toValue: toValue.coordinates[1] ?? 0,
|
|
79
|
+
useNativeDriver: false
|
|
80
|
+
})]);
|
|
81
|
+
}
|
|
82
|
+
timing({
|
|
83
|
+
toValue,
|
|
84
|
+
...config
|
|
85
|
+
}) {
|
|
86
|
+
return _reactNative.Animated.parallel([_reactNative.Animated.timing(this.longitude, {
|
|
87
|
+
...config,
|
|
88
|
+
toValue: toValue.coordinates[0] ?? 0,
|
|
89
|
+
useNativeDriver: false
|
|
90
|
+
}), _reactNative.Animated.timing(this.latitude, {
|
|
91
|
+
...config,
|
|
92
|
+
toValue: toValue.coordinates[1] ?? 0,
|
|
93
|
+
useNativeDriver: false
|
|
94
|
+
})]);
|
|
95
|
+
}
|
|
96
|
+
__getValue() {
|
|
97
|
+
return {
|
|
98
|
+
type: "Point",
|
|
99
|
+
coordinates: [this.longitude.__getValue(), this.latitude.__getValue()]
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
__attach() {
|
|
103
|
+
this.longitude.__addChild(this);
|
|
104
|
+
this.latitude.__addChild(this);
|
|
105
|
+
}
|
|
106
|
+
__detach() {
|
|
107
|
+
this.longitude.__removeChild(this);
|
|
108
|
+
this.latitude.__removeChild(this);
|
|
109
|
+
// @ts-ignore
|
|
110
|
+
super.__detach();
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
exports.AnimatedPoint = AnimatedPoint;
|
|
114
|
+
//# sourceMappingURL=AnimatedPoint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","uniqueID","AnimatedWithChildren","Object","getPrototypeOf","Animated","ValueXY","AnimatedPoint","constructor","valueIn","longitudeIn","coordinates","latitudeIn","Value","longitude","latitude","_lngLatListeners","setValue","value","setOffset","offset","flattenOffset","stopAnimation","callback","__getValue","addListener","id","Date","now","completeCallback","removeListener","listener","spring","toValue","config","parallel","useNativeDriver","timing","type","__attach","__addChild","__detach","__removeChild","exports"],"sourceRoot":"../../../../src","sources":["utils/animated/AnimatedPoint.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAIC,QAAQ,GAAG,CAAC;AAMhB,MAAMC,oBAAoB,GAAGC,MAAM,CAACC,cAAc,CAChDC,qBAAQ,CAACC,OACX,CAAyC;AAElC,MAAMC,aAAa,SAASL,oBAAoB,CAAC;EAMtDM,WAAWA,CAACC,OAA8B,EAAE;IAC1C,KAAK,CAAC,CAAC;IAEP,MAAMC,WAAW,GAAGD,OAAO,EAAEE,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC;IAChD,MAAMC,UAAU,GAAGH,OAAO,EAAEE,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC;IAE/C,IAAID,WAAW,YAAYL,qBAAQ,CAACQ,KAAK,EAAE;MACzC,IAAI,CAACC,SAAS,GAAGJ,WAAW;IAC9B,CAAC,MAAM;MACL,IAAI,CAACI,SAAS,GAAG,IAAIT,qBAAQ,CAACQ,KAAK,CAACH,WAAW,CAAC;IAClD;IAEA,IAAIE,UAAU,YAAYP,qBAAQ,CAACQ,KAAK,EAAE;MACxC,IAAI,CAACE,QAAQ,GAAGH,UAAU;IAC5B,CAAC,MAAM;MACL,IAAI,CAACG,QAAQ,GAAG,IAAIV,qBAAQ,CAACQ,KAAK,CAACD,UAAU,CAAC;IAChD;IAEA,IAAI,CAACI,gBAAgB,GAAG,CAAC,CAAC;EAC5B;EAEAC,QAAQA,C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AAI,CAAC;MACpCyB,eAAe,EAAE;IACnB,CAAC,CAAC,EACF/B,qBAAQ,CAACgC,MAAM,CAAC,IAAI,CAACtB,QAAQ,EAAE;MAC7B,GAAGmB,MAAM;MACTD,OAAO,EAAEA,OAAO,CAACtB,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC;MACpCyB,eAAe,EAAE;IACnB,CAAC,CAAC,CACH,CAAC;EACJ;EAEAZ,UAAUA,CAAA,EAAkB;IAC1B,OAAO;MACLc,IAAI,EAAE,OAAO;MACb3B,WAAW,EAAE,CACV,IAAI,CAACG,SAAS,CAASU,UAAU,CAAC,CAAC,EACnC,IAAI,CAACT,QAAQ,CAASS,UAAU,CAAC,CAAC;IAEvC,CAAC;EACH;EAEAe,QAAQA,CAAA,EAAS;IACd,IAAI,CAACzB,SAAS,CAAS0B,UAAU,CAAC,IAAI,CAAC;IACvC,IAAI,CAACzB,QAAQ,CAASyB,UAAU,CAAC,IAAI,CAAC;EACzC;EAEAC,QAAQA,CAAA,EAAS;IACd,IAAI,CAAC3B,SAAS,CAAS4B,aAAa,CAAC,IAAI,CAAC;IAC1C,IAAI,CAAC3B,QAAQ,CAAS2B,aAAa,CAAC,IAAI,CAAC;IAC1C;IACA,KAAK,CAACD,QAAQ,CAAC,CAAC;EAClB;AACF;AAACE,OAAA,CAAApC,aAAA,GAAAA,aAAA","ignoreList":[]}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.AnimatedRouteCoordinatesArray = void 0;
|
|
7
|
+
var _distance = require("@turf/distance");
|
|
8
|
+
var _helpers = require("@turf/helpers");
|
|
9
|
+
var _length = require("@turf/length");
|
|
10
|
+
var _nearestPointOnLine = require("@turf/nearest-point-on-line");
|
|
11
|
+
var _AbstractAnimatedCoordinates = require("./AbstractAnimatedCoordinates.js");
|
|
12
|
+
class AnimatedRouteCoordinatesArray extends _AbstractAnimatedCoordinates.AbstractAnimatedCoordinates {
|
|
13
|
+
/**
|
|
14
|
+
* Calculate initial state
|
|
15
|
+
*
|
|
16
|
+
* @param coordinatesArray -
|
|
17
|
+
* @returns {AnimatedRouteState}
|
|
18
|
+
*/
|
|
19
|
+
onInitialState(coordinatesArray) {
|
|
20
|
+
return {
|
|
21
|
+
fullRoute: coordinatesArray.map(coordinates => [coordinates[0], coordinates[1]]),
|
|
22
|
+
end: {
|
|
23
|
+
from: 0,
|
|
24
|
+
to: 0
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Calculate value from state
|
|
31
|
+
*
|
|
32
|
+
* @param state - Previous state
|
|
33
|
+
* @returns {AnimatedCoordinates[]}
|
|
34
|
+
*/
|
|
35
|
+
onGetValue(state) {
|
|
36
|
+
return state.actRoute || state.fullRoute;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Calculates state based on startingState and progress, returns a new state
|
|
41
|
+
*
|
|
42
|
+
* @param state - Previous state
|
|
43
|
+
* @param progress - Value between 0 and 1
|
|
44
|
+
* @returns {AnimatedRouteState}
|
|
45
|
+
*/
|
|
46
|
+
onCalculate(state, progress) {
|
|
47
|
+
const {
|
|
48
|
+
fullRoute,
|
|
49
|
+
end
|
|
50
|
+
} = state;
|
|
51
|
+
const currentEnd = end.from * (1.0 - progress) + progress * end.to;
|
|
52
|
+
let prevSum = 0;
|
|
53
|
+
let actSum = 0;
|
|
54
|
+
let i = fullRoute.length - 1;
|
|
55
|
+
while (actSum < currentEnd && i > 0) {
|
|
56
|
+
prevSum = actSum;
|
|
57
|
+
const start = fullRoute[i];
|
|
58
|
+
const end = fullRoute[i - 1];
|
|
59
|
+
actSum += start && end ? (0, _distance.distance)((0, _helpers.point)(start), (0, _helpers.point)(end), this.distconf) : 0;
|
|
60
|
+
i -= 1;
|
|
61
|
+
}
|
|
62
|
+
if (actSum <= currentEnd) {
|
|
63
|
+
const actRoute = [...fullRoute.slice(0, i + 1)];
|
|
64
|
+
return {
|
|
65
|
+
fullRoute,
|
|
66
|
+
end: {
|
|
67
|
+
...end,
|
|
68
|
+
current: currentEnd
|
|
69
|
+
},
|
|
70
|
+
actRoute
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
const r = (currentEnd - prevSum) / (actSum - prevSum);
|
|
74
|
+
const or = 1.0 - r;
|
|
75
|
+
const actRoute = [...fullRoute.slice(0, i + 1), [(fullRoute[i]?.[0] ?? 0) * r + (fullRoute[i + 1]?.[0] ?? 0) * or, (fullRoute[i]?.[1] ?? 0) * r + (fullRoute[i + 1]?.[1] ?? 0) * or]];
|
|
76
|
+
return {
|
|
77
|
+
fullRoute,
|
|
78
|
+
end: {
|
|
79
|
+
...end,
|
|
80
|
+
current: currentEnd
|
|
81
|
+
},
|
|
82
|
+
actRoute
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Subclasses can override to start a new animation
|
|
88
|
+
*
|
|
89
|
+
* @param state -
|
|
90
|
+
* @param toValue - to value from animate
|
|
91
|
+
* @returns {object} The state
|
|
92
|
+
*/
|
|
93
|
+
onStart(state, toValue) {
|
|
94
|
+
const {
|
|
95
|
+
fullRoute,
|
|
96
|
+
end
|
|
97
|
+
} = state;
|
|
98
|
+
const fullRouteLineString = (0, _helpers.lineString)(fullRoute);
|
|
99
|
+
let to = undefined;
|
|
100
|
+
if ("along" in toValue.end) {
|
|
101
|
+
to = (0, _length.length)(fullRouteLineString) - (0, _helpers.convertLength)(toValue.end.along, toValue.end.units);
|
|
102
|
+
} else {
|
|
103
|
+
const nearest = (0, _nearestPointOnLine.nearestPointOnLine)(fullRouteLineString, toValue.end.point);
|
|
104
|
+
to = (0, _length.length)(fullRouteLineString) - nearest.properties.location;
|
|
105
|
+
}
|
|
106
|
+
return {
|
|
107
|
+
fullRoute,
|
|
108
|
+
end: {
|
|
109
|
+
...end,
|
|
110
|
+
from: end.current ?? end.from,
|
|
111
|
+
to
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
get originalRoute() {
|
|
116
|
+
return this.state.fullRoute;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
exports.AnimatedRouteCoordinatesArray = AnimatedRouteCoordinatesArray;
|
|
120
|
+
//# sourceMappingURL=AnimatedRouteCoordinatesArray.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_distance","require","_helpers","_length","_nearestPointOnLine","_AbstractAnimatedCoordinates","AnimatedRouteCoordinatesArray","AbstractAnimatedCoordinates","onInitialState","coordinatesArray","fullRoute","map","coordinates","end","from","to","onGetValue","state","actRoute","onCalculate","progress","currentEnd","prevSum","actSum","i","length","start","distance","point","distconf","slice","current","r","or","onStart","toValue","fullRouteLineString","lineString","undefined","convertLength","along","units","nearest","nearestPointOnLine","properties","location","originalRoute","exports"],"sourceRoot":"../../../../src","sources":["utils/animated/AnimatedRouteCoordinatesArray.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAOA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AAEA,IAAAI,4BAAA,GAAAJ,OAAA;AA6BO,MAAMK,6BAA6B,SAASC,wDAA2B,CAG5E;EACA;AACF;AACA;AACA;AACA;AACA;EACYC,cAAcA,CACtBC,gBAAuC,EACnB;IACpB,OAAO;MACLC,SAAS,EAAED,gBAAgB,CAACE,GAAG,CAC5BC,WAAW,IAA0B,CAACA,WAAW,CAAC,CAAC,CAAC,EAAEA,WAAW,CAAC,CAAC,CAAC,CACvE,CAAC;MACDC,GAAG,EAAE;QAAEC,IAAI,EAAE,CAAC;QAAEC,EAAE,EAAE;MAAE;IACxB,CAAC;EACH;;EAEA;AACF;AACA;AACA;AACA;AACA;EACYC,UA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