@maplibre/maplibre-react-native 10.0.0-beta.2 → 10.0.0-beta.21
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/README.md +12 -56
- package/android/build.gradle +120 -50
- package/android/gradle.properties +15 -0
- package/android/src/main/AndroidManifest.xml +4 -2
- package/android/src/main/AndroidManifestNew.xml +5 -0
- package/android/src/main/java/org/maplibre/reactnative/MLRNPackage.java +0 -5
- package/android/src/main/java/org/maplibre/reactnative/components/camera/MLRNCamera.java +37 -48
- package/android/src/main/java/org/maplibre/reactnative/components/location/LocationComponentManager.java +16 -9
- package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapView.java +11 -13
- package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapViewManager.java +4 -11
- package/android/src/main/java/org/maplibre/reactnative/components/styles/MLRNStyle.java +1 -4
- package/android/src/main/java/org/maplibre/reactnative/components/styles/MLRNStyleFactory.java +10 -11
- package/android/src/main/java/org/maplibre/reactnative/components/styles/sources/MLRNShapeSource.java +0 -66
- package/android/src/main/java/org/maplibre/reactnative/components/styles/sources/MLRNShapeSourceManager.java +0 -28
- package/android/src/main/java/org/maplibre/reactnative/location/LocationManager.java +7 -11
- package/android/src/main/java/org/maplibre/reactnative/location/engine/DefaultLocationEngineProvider.java +18 -0
- package/android/src/main/java/org/maplibre/reactnative/location/engine/LocationEngineProvidable.java +9 -0
- package/android/src/main/java/org/maplibre/reactnative/modules/MLRNModule.java +27 -148
- package/android/src/main/java/org/maplibre/reactnative/modules/MLRNOfflineModule.java +1 -3
- package/android/src/main/java/org/maplibre/reactnative/utils/GeoJSONUtils.java +123 -18
- package/android/src/main/location-engine-default/org/maplibre/reactnative/location/engine/LocationEngineProvider.java +12 -0
- package/android/src/main/location-engine-google/org/maplibre/reactnative/location/engine/GoogleLocationEngineImpl.java +151 -0
- package/android/src/main/location-engine-google/org/maplibre/reactnative/location/engine/GoogleLocationEngineProvider.java +24 -0
- package/android/src/main/location-engine-google/org/maplibre/reactnative/location/engine/LocationEngineProvider.java +12 -0
- package/app.plugin.js +1 -1
- package/ios/MLRN/MLRNBackgroundLayer.h +0 -1
- package/ios/MLRN/MLRNCamera.m +6 -7
- package/ios/MLRN/MLRNFillExtrusionLayer.h +0 -1
- package/ios/MLRN/MLRNFillLayer.h +0 -1
- package/ios/MLRN/MLRNFillLayer.m +1 -0
- package/ios/MLRN/MLRNLineLayer.h +0 -1
- package/ios/MLRN/MLRNMapView.h +1 -1
- package/ios/MLRN/MLRNMapView.m +7 -7
- package/ios/MLRN/MLRNMapViewManager.m +1 -1
- package/ios/MLRN/MLRNModule.m +8 -139
- package/ios/MLRN/MLRNRasterLayer.h +0 -1
- package/ios/MLRN/MLRNShapeSource.h +0 -11
- package/ios/MLRN/MLRNShapeSource.m +0 -38
- package/ios/MLRN/MLRNShapeSourceManager.m +0 -68
- package/ios/MLRN/MLRNStyle.m +0 -40
- package/ios/MLRN/MLRNSymbolLayer.h +1 -7
- package/ios/MLRN/MLRNSymbolLayer.m +1 -89
- package/ios/MLRN/MLRNSymbolLayerManager.m +0 -1
- package/lib/commonjs/MLRNModule.js +7 -5
- package/lib/commonjs/MLRNModule.js.map +1 -1
- package/lib/commonjs/MapLibreRN.js +74 -68
- package/lib/commonjs/MapLibreRN.js.map +1 -1
- package/lib/commonjs/components/Annotation.js +7 -9
- package/lib/commonjs/components/Annotation.js.map +1 -1
- package/lib/commonjs/components/BackgroundLayer.js +6 -8
- package/lib/commonjs/components/BackgroundLayer.js.map +1 -1
- package/lib/commonjs/components/Callout.js +2 -2
- package/lib/commonjs/components/Callout.js.map +1 -1
- package/lib/commonjs/components/Camera.js +111 -63
- package/lib/commonjs/components/Camera.js.map +1 -1
- package/lib/commonjs/components/CircleLayer.js +6 -8
- package/lib/commonjs/components/CircleLayer.js.map +1 -1
- package/lib/commonjs/components/FillExtrusionLayer.js +6 -8
- package/lib/commonjs/components/FillExtrusionLayer.js.map +1 -1
- package/lib/commonjs/components/FillLayer.js +6 -8
- package/lib/commonjs/components/FillLayer.js.map +1 -1
- package/lib/commonjs/components/HeadingIndicator.js +4 -4
- package/lib/commonjs/components/HeadingIndicator.js.map +1 -1
- package/lib/commonjs/components/HeatmapLayer.js +6 -8
- package/lib/commonjs/components/HeatmapLayer.js.map +1 -1
- package/lib/commonjs/components/ImageSource.js +4 -5
- package/lib/commonjs/components/ImageSource.js.map +1 -1
- package/lib/commonjs/components/Images.js +3 -7
- package/lib/commonjs/components/Images.js.map +1 -1
- package/lib/commonjs/components/Light.js +4 -6
- package/lib/commonjs/components/Light.js.map +1 -1
- package/lib/commonjs/components/LineLayer.js +6 -8
- package/lib/commonjs/components/LineLayer.js.map +1 -1
- package/lib/commonjs/components/MapView.js +69 -83
- package/lib/commonjs/components/MapView.js.map +1 -1
- package/lib/commonjs/components/MarkerView.js +4 -5
- package/lib/commonjs/components/MarkerView.js.map +1 -1
- package/lib/commonjs/components/NativeUserLocation.js +2 -2
- package/lib/commonjs/components/NativeUserLocation.js.map +1 -1
- package/lib/commonjs/components/PointAnnotation.js +7 -10
- package/lib/commonjs/components/PointAnnotation.js.map +1 -1
- package/lib/commonjs/components/RasterLayer.js +6 -8
- package/lib/commonjs/components/RasterLayer.js.map +1 -1
- package/lib/commonjs/components/RasterSource.js +8 -10
- package/lib/commonjs/components/RasterSource.js.map +1 -1
- package/lib/commonjs/components/ShapeSource.js +11 -45
- package/lib/commonjs/components/ShapeSource.js.map +1 -1
- package/lib/commonjs/components/SymbolLayer.js +8 -24
- package/lib/commonjs/components/SymbolLayer.js.map +1 -1
- package/lib/commonjs/components/UserLocation.js +21 -23
- package/lib/commonjs/components/UserLocation.js.map +1 -1
- package/lib/commonjs/components/VectorSource.js +9 -21
- package/lib/commonjs/components/VectorSource.js.map +1 -1
- package/lib/commonjs/hooks/useAbstractLayer.js +1 -1
- package/lib/commonjs/hooks/useAbstractLayer.js.map +1 -1
- package/lib/commonjs/hooks/useAbstractSource.js +1 -1
- package/lib/commonjs/hooks/useAbstractSource.js.map +1 -1
- package/lib/commonjs/hooks/useNativeBridge.js +2 -2
- package/lib/commonjs/hooks/useNativeBridge.js.map +1 -1
- package/lib/commonjs/hooks/useOnce.js +2 -2
- package/lib/commonjs/hooks/useOnce.js.map +1 -1
- package/lib/commonjs/index.js +3 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/modules/location/{locationManager.js → LocationManager.js} +10 -10
- package/lib/commonjs/modules/location/LocationManager.js.map +1 -0
- package/lib/commonjs/modules/offline/OfflineCreatePackOptions.js +2 -2
- package/lib/commonjs/modules/offline/OfflineCreatePackOptions.js.map +1 -1
- package/lib/commonjs/modules/offline/{offlineManager.js → OfflineManager.js} +34 -36
- package/lib/commonjs/modules/offline/OfflineManager.js.map +1 -0
- package/lib/commonjs/modules/offline/OfflinePack.js +2 -2
- package/lib/commonjs/modules/offline/OfflinePack.js.map +1 -1
- package/lib/commonjs/modules/snapshot/{snapshotManager.js → SnapshotManager.js} +12 -14
- package/lib/commonjs/modules/snapshot/SnapshotManager.js.map +1 -0
- package/lib/commonjs/modules/snapshot/SnapshotOptions.js +3 -4
- package/lib/commonjs/modules/snapshot/SnapshotOptions.js.map +1 -1
- package/lib/commonjs/plugin/MapLibrePluginProps.js +2 -0
- package/lib/commonjs/plugin/MapLibrePluginProps.js.map +1 -0
- package/lib/commonjs/plugin/android.js +41 -0
- package/lib/commonjs/plugin/android.js.map +1 -0
- package/lib/commonjs/plugin/ios.js +131 -0
- package/lib/commonjs/plugin/ios.js.map +1 -0
- package/lib/commonjs/plugin/withMapLibre.js +31 -0
- package/lib/commonjs/plugin/withMapLibre.js.map +1 -0
- package/lib/commonjs/types/MapLibreRNStyles.js +6 -0
- package/lib/commonjs/types/MapLibreRNStyles.js.map +1 -0
- package/lib/commonjs/utils/BridgeValue.js +2 -2
- package/lib/commonjs/utils/BridgeValue.js.map +1 -1
- package/lib/commonjs/utils/Logger.js +2 -2
- package/lib/commonjs/utils/Logger.js.map +1 -1
- package/lib/commonjs/utils/StyleValue.js +4 -5
- package/lib/commonjs/utils/StyleValue.js.map +1 -1
- package/lib/commonjs/utils/animated/AbstractAnimatedCoordinates.js +2 -2
- package/lib/commonjs/utils/animated/AbstractAnimatedCoordinates.js.map +1 -1
- package/lib/commonjs/utils/animated/Animated.js +29 -31
- package/lib/commonjs/utils/animated/Animated.js.map +1 -1
- package/lib/commonjs/utils/animated/AnimatedCoordinatesArray.js +4 -5
- package/lib/commonjs/utils/animated/AnimatedCoordinatesArray.js.map +1 -1
- package/lib/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.js +2 -2
- package/lib/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.js.map +1 -1
- package/lib/commonjs/utils/animated/AnimatedPoint.js +1 -2
- package/lib/commonjs/utils/animated/AnimatedPoint.js.map +1 -1
- package/lib/commonjs/utils/animated/AnimatedRouteCoordinatesArray.js +4 -4
- package/lib/commonjs/utils/animated/AnimatedRouteCoordinatesArray.js.map +1 -1
- package/lib/commonjs/utils/animated/AnimatedShape.js +2 -2
- package/lib/commonjs/utils/animated/AnimatedShape.js.map +1 -1
- package/lib/commonjs/utils/getStylePropertyType.js +252 -0
- package/lib/commonjs/utils/getStylePropertyType.js.map +1 -0
- package/lib/module/MLRNModule.js +3 -2
- package/lib/module/MLRNModule.js.map +1 -1
- package/lib/module/MapLibreRN.js +40 -32
- package/lib/module/MapLibreRN.js.map +1 -1
- package/lib/module/components/Annotation.js +5 -6
- package/lib/module/components/Annotation.js.map +1 -1
- package/lib/module/components/BackgroundLayer.js +4 -6
- package/lib/module/components/BackgroundLayer.js.map +1 -1
- package/lib/module/components/Callout.js +2 -3
- package/lib/module/components/Callout.js.map +1 -1
- package/lib/module/components/Camera.js +112 -64
- package/lib/module/components/Camera.js.map +1 -1
- package/lib/module/components/CircleLayer.js +4 -6
- package/lib/module/components/CircleLayer.js.map +1 -1
- package/lib/module/components/FillExtrusionLayer.js +4 -6
- package/lib/module/components/FillExtrusionLayer.js.map +1 -1
- package/lib/module/components/FillLayer.js +4 -6
- package/lib/module/components/FillLayer.js.map +1 -1
- package/lib/module/components/HeadingIndicator.js +2 -3
- package/lib/module/components/HeadingIndicator.js.map +1 -1
- package/lib/module/components/HeatmapLayer.js +4 -6
- package/lib/module/components/HeatmapLayer.js.map +1 -1
- package/lib/module/components/ImageSource.js +2 -3
- package/lib/module/components/ImageSource.js.map +1 -1
- package/lib/module/components/Images.js +3 -8
- package/lib/module/components/Images.js.map +1 -1
- package/lib/module/components/Light.js +2 -4
- package/lib/module/components/Light.js.map +1 -1
- package/lib/module/components/LineLayer.js +4 -6
- package/lib/module/components/LineLayer.js.map +1 -1
- package/lib/module/components/MapView.js +65 -79
- package/lib/module/components/MapView.js.map +1 -1
- package/lib/module/components/MarkerView.js +2 -3
- package/lib/module/components/MarkerView.js.map +1 -1
- package/lib/module/components/NativeUserLocation.js +1 -2
- package/lib/module/components/NativeUserLocation.js.map +1 -1
- package/lib/module/components/PointAnnotation.js +5 -7
- package/lib/module/components/PointAnnotation.js.map +1 -1
- package/lib/module/components/RasterLayer.js +4 -6
- package/lib/module/components/RasterLayer.js.map +1 -1
- package/lib/module/components/RasterSource.js +5 -7
- package/lib/module/components/RasterSource.js.map +1 -1
- package/lib/module/components/ShapeSource.js +9 -42
- package/lib/module/components/ShapeSource.js.map +1 -1
- package/lib/module/components/SymbolLayer.js +7 -23
- package/lib/module/components/SymbolLayer.js.map +1 -1
- package/lib/module/components/UserLocation.js +14 -15
- package/lib/module/components/UserLocation.js.map +1 -1
- package/lib/module/components/VectorSource.js +6 -17
- package/lib/module/components/VectorSource.js.map +1 -1
- package/lib/module/hooks/useAbstractLayer.js +1 -1
- package/lib/module/hooks/useAbstractLayer.js.map +1 -1
- package/lib/module/hooks/useAbstractSource.js +1 -1
- package/lib/module/hooks/useAbstractSource.js.map +1 -1
- package/lib/module/hooks/useNativeBridge.js +1 -2
- package/lib/module/hooks/useNativeBridge.js.map +1 -1
- package/lib/module/hooks/useNativeRef.js.map +1 -1
- package/lib/module/hooks/useOnce.js +1 -2
- package/lib/module/hooks/useOnce.js.map +1 -1
- package/lib/module/index.js +4 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/modules/location/{locationManager.js → LocationManager.js} +10 -9
- package/lib/module/modules/location/LocationManager.js.map +1 -0
- package/lib/module/modules/offline/OfflineCreatePackOptions.js +1 -2
- package/lib/module/modules/offline/OfflineCreatePackOptions.js.map +1 -1
- package/lib/module/modules/offline/{offlineManager.js → OfflineManager.js} +30 -30
- package/lib/module/modules/offline/OfflineManager.js.map +1 -0
- package/lib/module/modules/offline/OfflinePack.js +1 -2
- package/lib/module/modules/offline/OfflinePack.js.map +1 -1
- package/lib/module/modules/snapshot/{snapshotManager.js → SnapshotManager.js} +10 -10
- package/lib/module/modules/snapshot/{snapshotManager.js.map → SnapshotManager.js.map} +1 -1
- package/lib/module/modules/snapshot/SnapshotOptions.js +2 -3
- package/lib/module/modules/snapshot/SnapshotOptions.js.map +1 -1
- package/lib/module/plugin/MapLibrePluginProps.js +2 -0
- package/lib/module/plugin/MapLibrePluginProps.js.map +1 -0
- package/lib/module/plugin/android.js +34 -0
- package/lib/module/plugin/android.js.map +1 -0
- package/lib/module/plugin/ios.js +123 -0
- package/lib/module/plugin/ios.js.map +1 -0
- package/lib/module/plugin/withMapLibre.js +27 -0
- package/lib/module/plugin/withMapLibre.js.map +1 -0
- package/lib/module/types/MapLibreRNStyles.js +4 -0
- package/lib/module/types/MapLibreRNStyles.js.map +1 -0
- package/lib/module/utils/BridgeValue.js +1 -1
- package/lib/module/utils/BridgeValue.js.map +1 -1
- package/lib/module/utils/Logger.js +1 -2
- package/lib/module/utils/Logger.js.map +1 -1
- package/lib/module/utils/StyleValue.js +3 -3
- package/lib/module/utils/StyleValue.js.map +1 -1
- package/lib/module/utils/animated/AbstractAnimatedCoordinates.js +1 -2
- package/lib/module/utils/animated/AbstractAnimatedCoordinates.js.map +1 -1
- package/lib/module/utils/animated/Animated.js +14 -15
- package/lib/module/utils/animated/Animated.js.map +1 -1
- package/lib/module/utils/animated/AnimatedCoordinatesArray.js +2 -3
- package/lib/module/utils/animated/AnimatedCoordinatesArray.js.map +1 -1
- package/lib/module/utils/animated/AnimatedExtractCoordinateFromArray.js +1 -1
- package/lib/module/utils/animated/AnimatedExtractCoordinateFromArray.js.map +1 -1
- package/lib/module/utils/animated/AnimatedPoint.js +0 -1
- package/lib/module/utils/animated/AnimatedPoint.js.map +1 -1
- package/lib/module/utils/animated/AnimatedRouteCoordinatesArray.js +2 -2
- package/lib/module/utils/animated/AnimatedRouteCoordinatesArray.js.map +1 -1
- package/lib/module/utils/animated/AnimatedShape.js +1 -2
- package/lib/module/utils/animated/AnimatedShape.js.map +1 -1
- package/lib/module/utils/getStylePropertyType.js +248 -0
- package/lib/module/utils/getStylePropertyType.js.map +1 -0
- package/lib/typescript/commonjs/src/MLRNModule.d.ts +3 -7
- package/lib/typescript/commonjs/src/MLRNModule.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/MapLibreRN.d.ts +44 -34
- package/lib/typescript/commonjs/src/MapLibreRN.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Annotation.d.ts +6 -6
- package/lib/typescript/commonjs/src/components/Annotation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/BackgroundLayer.d.ts +3 -5
- package/lib/typescript/commonjs/src/components/BackgroundLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Callout.d.ts +3 -4
- package/lib/typescript/commonjs/src/components/Callout.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Camera.d.ts +4 -4
- package/lib/typescript/commonjs/src/components/Camera.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/CircleLayer.d.ts +3 -5
- package/lib/typescript/commonjs/src/components/CircleLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/FillExtrusionLayer.d.ts +3 -5
- package/lib/typescript/commonjs/src/components/FillExtrusionLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/FillLayer.d.ts +3 -5
- package/lib/typescript/commonjs/src/components/FillLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/HeadingIndicator.d.ts +2 -3
- package/lib/typescript/commonjs/src/components/HeadingIndicator.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/HeatmapLayer.d.ts +3 -5
- package/lib/typescript/commonjs/src/components/HeatmapLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/ImageSource.d.ts +3 -4
- package/lib/typescript/commonjs/src/components/ImageSource.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Images.d.ts +5 -5
- package/lib/typescript/commonjs/src/components/Images.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Light.d.ts +4 -5
- package/lib/typescript/commonjs/src/components/Light.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/LineLayer.d.ts +3 -5
- package/lib/typescript/commonjs/src/components/LineLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/MapView.d.ts +12 -16
- package/lib/typescript/commonjs/src/components/MapView.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/MarkerView.d.ts +3 -3
- package/lib/typescript/commonjs/src/components/MarkerView.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/NativeUserLocation.d.ts +2 -3
- package/lib/typescript/commonjs/src/components/NativeUserLocation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/PointAnnotation.d.ts +7 -8
- package/lib/typescript/commonjs/src/components/PointAnnotation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/RasterLayer.d.ts +3 -5
- package/lib/typescript/commonjs/src/components/RasterLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/RasterSource.d.ts +4 -4
- package/lib/typescript/commonjs/src/components/RasterSource.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/ShapeSource.d.ts +8 -16
- package/lib/typescript/commonjs/src/components/ShapeSource.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/SymbolLayer.d.ts +3 -10
- package/lib/typescript/commonjs/src/components/SymbolLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/UserLocation.d.ts +6 -6
- package/lib/typescript/commonjs/src/components/UserLocation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/VectorSource.d.ts +4 -8
- package/lib/typescript/commonjs/src/components/VectorSource.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/hooks/useAbstractLayer.d.ts +5 -4
- package/lib/typescript/commonjs/src/hooks/useAbstractLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/hooks/useAbstractSource.d.ts +4 -3
- package/lib/typescript/commonjs/src/hooks/useAbstractSource.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/hooks/useNativeBridge.d.ts +5 -5
- package/lib/typescript/commonjs/src/hooks/useNativeBridge.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/hooks/useNativeRef.d.ts +2 -2
- package/lib/typescript/commonjs/src/hooks/useNativeRef.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/hooks/useOnce.d.ts +1 -2
- package/lib/typescript/commonjs/src/hooks/useOnce.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/location/LocationManager.d.ts +33 -0
- package/lib/typescript/commonjs/src/modules/location/LocationManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/offline/OfflineCreatePackOptions.d.ts +1 -2
- package/lib/typescript/commonjs/src/modules/offline/OfflineCreatePackOptions.d.ts.map +1 -1
- package/lib/typescript/{module/src/modules/offline/offlineManager.d.ts → commonjs/src/modules/offline/OfflineManager.d.ts} +27 -37
- package/lib/typescript/commonjs/src/modules/offline/OfflineManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/offline/OfflinePack.d.ts +3 -4
- package/lib/typescript/commonjs/src/modules/offline/OfflinePack.d.ts.map +1 -1
- package/lib/typescript/{module/src/modules/snapshot/snapshotManager.d.ts → commonjs/src/modules/snapshot/SnapshotManager.d.ts} +9 -9
- package/lib/typescript/commonjs/src/modules/snapshot/SnapshotManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/snapshot/SnapshotOptions.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/snapshot/SnapshotOptions.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/plugin/MapLibrePluginProps.d.ts +77 -0
- package/lib/typescript/commonjs/src/plugin/MapLibrePluginProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/plugin/android.d.ts +16 -0
- package/lib/typescript/commonjs/src/plugin/android.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/plugin/ios.d.ts +17 -0
- package/lib/typescript/commonjs/src/plugin/ios.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/plugin/withMapLibre.d.ts +5 -0
- package/lib/typescript/commonjs/src/plugin/withMapLibre.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/MapLibreRNStyles.d.ts +960 -0
- package/lib/typescript/commonjs/src/types/MapLibreRNStyles.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/BridgeValue.d.ts +1 -1
- package/lib/typescript/commonjs/src/utils/BridgeValue.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/Logger.d.ts +2 -2
- package/lib/typescript/commonjs/src/utils/Logger.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/StyleValue.d.ts +2 -2
- package/lib/typescript/commonjs/src/utils/StyleValue.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AbstractAnimatedCoordinates.d.ts +2 -2
- package/lib/typescript/commonjs/src/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/animated/Animated.d.ts +19 -19
- package/lib/typescript/commonjs/src/utils/animated/Animated.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedCoordinatesArray.d.ts +3 -3
- package/lib/typescript/commonjs/src/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedPoint.d.ts +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedPoint.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts +2 -2
- package/lib/typescript/commonjs/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedShape.d.ts +5 -5
- package/lib/typescript/commonjs/src/utils/animated/AnimatedShape.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/filterUtils.d.ts +1 -1
- package/lib/typescript/commonjs/src/utils/filterUtils.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/getStylePropertyType.d.ts +35 -0
- package/lib/typescript/commonjs/src/utils/getStylePropertyType.d.ts.map +1 -0
- package/lib/typescript/module/src/MLRNModule.d.ts +3 -7
- package/lib/typescript/module/src/MLRNModule.d.ts.map +1 -1
- package/lib/typescript/module/src/MapLibreRN.d.ts +44 -34
- package/lib/typescript/module/src/MapLibreRN.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Annotation.d.ts +6 -6
- package/lib/typescript/module/src/components/Annotation.d.ts.map +1 -1
- package/lib/typescript/module/src/components/BackgroundLayer.d.ts +3 -5
- package/lib/typescript/module/src/components/BackgroundLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Callout.d.ts +3 -4
- package/lib/typescript/module/src/components/Callout.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Camera.d.ts +4 -4
- package/lib/typescript/module/src/components/Camera.d.ts.map +1 -1
- package/lib/typescript/module/src/components/CircleLayer.d.ts +3 -5
- package/lib/typescript/module/src/components/CircleLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/FillExtrusionLayer.d.ts +3 -5
- package/lib/typescript/module/src/components/FillExtrusionLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/FillLayer.d.ts +3 -5
- package/lib/typescript/module/src/components/FillLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/HeadingIndicator.d.ts +2 -3
- package/lib/typescript/module/src/components/HeadingIndicator.d.ts.map +1 -1
- package/lib/typescript/module/src/components/HeatmapLayer.d.ts +3 -5
- package/lib/typescript/module/src/components/HeatmapLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/ImageSource.d.ts +3 -4
- package/lib/typescript/module/src/components/ImageSource.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Images.d.ts +5 -5
- package/lib/typescript/module/src/components/Images.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Light.d.ts +4 -5
- package/lib/typescript/module/src/components/Light.d.ts.map +1 -1
- package/lib/typescript/module/src/components/LineLayer.d.ts +3 -5
- package/lib/typescript/module/src/components/LineLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/MapView.d.ts +12 -16
- package/lib/typescript/module/src/components/MapView.d.ts.map +1 -1
- package/lib/typescript/module/src/components/MarkerView.d.ts +3 -3
- package/lib/typescript/module/src/components/MarkerView.d.ts.map +1 -1
- package/lib/typescript/module/src/components/NativeUserLocation.d.ts +2 -3
- package/lib/typescript/module/src/components/NativeUserLocation.d.ts.map +1 -1
- package/lib/typescript/module/src/components/PointAnnotation.d.ts +7 -8
- package/lib/typescript/module/src/components/PointAnnotation.d.ts.map +1 -1
- package/lib/typescript/module/src/components/RasterLayer.d.ts +3 -5
- package/lib/typescript/module/src/components/RasterLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/RasterSource.d.ts +4 -4
- package/lib/typescript/module/src/components/RasterSource.d.ts.map +1 -1
- package/lib/typescript/module/src/components/ShapeSource.d.ts +8 -16
- package/lib/typescript/module/src/components/ShapeSource.d.ts.map +1 -1
- package/lib/typescript/module/src/components/SymbolLayer.d.ts +3 -10
- package/lib/typescript/module/src/components/SymbolLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/UserLocation.d.ts +6 -6
- package/lib/typescript/module/src/components/UserLocation.d.ts.map +1 -1
- package/lib/typescript/module/src/components/VectorSource.d.ts +4 -8
- package/lib/typescript/module/src/components/VectorSource.d.ts.map +1 -1
- package/lib/typescript/module/src/hooks/useAbstractLayer.d.ts +5 -4
- package/lib/typescript/module/src/hooks/useAbstractLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/hooks/useAbstractSource.d.ts +4 -3
- package/lib/typescript/module/src/hooks/useAbstractSource.d.ts.map +1 -1
- package/lib/typescript/module/src/hooks/useNativeBridge.d.ts +5 -5
- package/lib/typescript/module/src/hooks/useNativeBridge.d.ts.map +1 -1
- package/lib/typescript/module/src/hooks/useNativeRef.d.ts +2 -2
- package/lib/typescript/module/src/hooks/useNativeRef.d.ts.map +1 -1
- package/lib/typescript/module/src/hooks/useOnce.d.ts +1 -2
- package/lib/typescript/module/src/hooks/useOnce.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +3 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/location/LocationManager.d.ts +33 -0
- package/lib/typescript/module/src/modules/location/LocationManager.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/offline/OfflineCreatePackOptions.d.ts +1 -2
- package/lib/typescript/module/src/modules/offline/OfflineCreatePackOptions.d.ts.map +1 -1
- package/lib/typescript/{commonjs/src/modules/offline/offlineManager.d.ts → module/src/modules/offline/OfflineManager.d.ts} +27 -37
- package/lib/typescript/module/src/modules/offline/OfflineManager.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/offline/OfflinePack.d.ts +3 -4
- package/lib/typescript/module/src/modules/offline/OfflinePack.d.ts.map +1 -1
- package/lib/typescript/{commonjs/src/modules/snapshot/snapshotManager.d.ts → module/src/modules/snapshot/SnapshotManager.d.ts} +9 -9
- package/lib/typescript/module/src/modules/snapshot/SnapshotManager.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/snapshot/SnapshotOptions.d.ts +1 -1
- package/lib/typescript/module/src/modules/snapshot/SnapshotOptions.d.ts.map +1 -1
- package/lib/typescript/module/src/plugin/MapLibrePluginProps.d.ts +77 -0
- package/lib/typescript/module/src/plugin/MapLibrePluginProps.d.ts.map +1 -0
- package/lib/typescript/module/src/plugin/android.d.ts +16 -0
- package/lib/typescript/module/src/plugin/android.d.ts.map +1 -0
- package/lib/typescript/module/src/plugin/ios.d.ts +17 -0
- package/lib/typescript/module/src/plugin/ios.d.ts.map +1 -0
- package/lib/typescript/module/src/plugin/withMapLibre.d.ts +5 -0
- package/lib/typescript/module/src/plugin/withMapLibre.d.ts.map +1 -0
- package/lib/typescript/module/src/types/MapLibreRNStyles.d.ts +960 -0
- package/lib/typescript/module/src/types/MapLibreRNStyles.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/BridgeValue.d.ts +1 -1
- package/lib/typescript/module/src/utils/BridgeValue.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/Logger.d.ts +2 -2
- package/lib/typescript/module/src/utils/Logger.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/StyleValue.d.ts +2 -2
- package/lib/typescript/module/src/utils/StyleValue.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/animated/AbstractAnimatedCoordinates.d.ts +2 -2
- package/lib/typescript/module/src/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/animated/Animated.d.ts +19 -19
- package/lib/typescript/module/src/utils/animated/Animated.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/animated/AnimatedCoordinatesArray.d.ts +3 -3
- package/lib/typescript/module/src/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts +1 -1
- package/lib/typescript/module/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/animated/AnimatedPoint.d.ts +1 -1
- package/lib/typescript/module/src/utils/animated/AnimatedPoint.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts +2 -2
- package/lib/typescript/module/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/animated/AnimatedShape.d.ts +5 -5
- package/lib/typescript/module/src/utils/animated/AnimatedShape.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/filterUtils.d.ts +1 -1
- package/lib/typescript/module/src/utils/filterUtils.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/getStylePropertyType.d.ts +35 -0
- package/lib/typescript/module/src/utils/getStylePropertyType.d.ts.map +1 -0
- package/maplibre-react-native.podspec +15 -14
- package/package.json +17 -14
- package/src/MLRNModule.ts +24 -10
- package/src/MapLibreRN.ts +66 -49
- package/src/components/Annotation.tsx +12 -14
- package/src/components/BackgroundLayer.tsx +7 -9
- package/src/components/Callout.tsx +8 -10
- package/src/components/Camera.tsx +154 -78
- package/src/components/CircleLayer.tsx +7 -9
- package/src/components/FillExtrusionLayer.tsx +7 -9
- package/src/components/FillLayer.tsx +7 -9
- package/src/components/HeadingIndicator.tsx +2 -6
- package/src/components/HeatmapLayer.tsx +7 -9
- package/src/components/ImageSource.tsx +4 -6
- package/src/components/Images.tsx +8 -19
- package/src/components/Light.tsx +5 -7
- package/src/components/LineLayer.tsx +7 -9
- package/src/components/MapView.tsx +85 -105
- package/src/components/MarkerView.tsx +4 -6
- package/src/components/NativeUserLocation.tsx +1 -4
- package/src/components/PointAnnotation.tsx +10 -11
- package/src/components/RasterLayer.tsx +7 -9
- package/src/components/RasterSource.tsx +7 -9
- package/src/components/ShapeSource.tsx +22 -95
- package/src/components/SymbolLayer.tsx +12 -41
- package/src/components/UserLocation.tsx +21 -22
- package/src/components/VectorSource.tsx +12 -35
- package/src/hooks/useAbstractLayer.ts +8 -8
- package/src/hooks/useAbstractSource.ts +6 -6
- package/src/hooks/useNativeBridge.ts +9 -6
- package/src/hooks/useNativeRef.ts +2 -2
- package/src/hooks/useOnce.ts +3 -3
- package/src/index.ts +3 -0
- package/src/modules/location/{locationManager.ts → LocationManager.ts} +16 -15
- package/src/modules/offline/OfflineCreatePackOptions.ts +1 -3
- package/src/modules/offline/{offlineManager.ts → OfflineManager.ts} +32 -45
- package/src/modules/offline/OfflinePack.ts +3 -5
- package/src/modules/snapshot/{snapshotManager.ts → SnapshotManager.ts} +9 -9
- package/src/modules/snapshot/SnapshotOptions.ts +2 -4
- package/src/plugin/MapLibrePluginProps.ts +83 -0
- package/src/plugin/android.ts +64 -0
- package/src/plugin/ios.ts +166 -0
- package/src/plugin/withMapLibre.ts +30 -0
- package/src/{utils/MapLibreRNStyles.d.ts → types/MapLibreRNStyles.ts} +86 -406
- package/src/utils/BridgeValue.ts +1 -1
- package/src/utils/Logger.ts +1 -3
- package/src/utils/StyleValue.ts +6 -5
- package/src/utils/animated/AbstractAnimatedCoordinates.ts +3 -3
- package/src/utils/animated/Animated.ts +23 -21
- package/src/utils/animated/AnimatedCoordinatesArray.ts +3 -4
- package/src/utils/animated/AnimatedExtractCoordinateFromArray.ts +1 -1
- package/src/utils/animated/AnimatedPoint.ts +0 -2
- package/src/utils/animated/AnimatedRouteCoordinatesArray.ts +3 -2
- package/src/utils/animated/AnimatedShape.ts +4 -6
- package/src/utils/filterUtils.ts +1 -1
- package/src/utils/getStylePropertyType.ts +265 -0
- package/android/src/main/res/values/strings.xml +0 -3
- package/lib/commonjs/components/Style.js +0 -266
- package/lib/commonjs/components/Style.js.map +0 -1
- package/lib/commonjs/modules/location/locationManager.js.map +0 -1
- package/lib/commonjs/modules/offline/offlineManager.js.map +0 -1
- package/lib/commonjs/modules/snapshot/snapshotManager.js.map +0 -1
- package/lib/commonjs/types/StyleURL.js +0 -11
- package/lib/commonjs/types/StyleURL.js.map +0 -1
- package/lib/commonjs/utils/MapLibreRNStyles.d.js +0 -181
- package/lib/commonjs/utils/MapLibreRNStyles.d.js.map +0 -1
- package/lib/commonjs/utils/deprecation.js +0 -31
- package/lib/commonjs/utils/deprecation.js.map +0 -1
- package/lib/commonjs/utils/styleMap.js +0 -255
- package/lib/commonjs/utils/styleMap.js.map +0 -1
- package/lib/module/components/Style.js +0 -261
- package/lib/module/components/Style.js.map +0 -1
- package/lib/module/modules/location/locationManager.js.map +0 -1
- package/lib/module/modules/offline/offlineManager.js.map +0 -1
- package/lib/module/types/StyleURL.js +0 -7
- package/lib/module/types/StyleURL.js.map +0 -1
- package/lib/module/utils/MapLibreRNStyles.d.js +0 -180
- package/lib/module/utils/MapLibreRNStyles.d.js.map +0 -1
- package/lib/module/utils/deprecation.js +0 -27
- package/lib/module/utils/deprecation.js.map +0 -1
- package/lib/module/utils/styleMap.js +0 -249
- package/lib/module/utils/styleMap.js.map +0 -1
- package/lib/typescript/commonjs/jest.config.d.ts +0 -2
- package/lib/typescript/commonjs/jest.config.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/Style.d.ts +0 -81
- package/lib/typescript/commonjs/src/components/Style.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/location/locationManager.d.ts +0 -64
- package/lib/typescript/commonjs/src/modules/location/locationManager.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/offline/offlineManager.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/snapshot/snapshotManager.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/StyleURL.d.ts +0 -4
- package/lib/typescript/commonjs/src/types/StyleURL.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/deprecation.d.ts +0 -6
- package/lib/typescript/commonjs/src/utils/deprecation.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/styleMap.d.ts +0 -231
- package/lib/typescript/commonjs/src/utils/styleMap.d.ts.map +0 -1
- package/lib/typescript/module/jest.config.d.ts +0 -2
- package/lib/typescript/module/jest.config.d.ts.map +0 -1
- package/lib/typescript/module/src/components/Style.d.ts +0 -81
- package/lib/typescript/module/src/components/Style.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/location/locationManager.d.ts +0 -64
- package/lib/typescript/module/src/modules/location/locationManager.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/offline/offlineManager.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/snapshot/snapshotManager.d.ts.map +0 -1
- package/lib/typescript/module/src/types/StyleURL.d.ts +0 -4
- package/lib/typescript/module/src/types/StyleURL.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/deprecation.d.ts +0 -6
- package/lib/typescript/module/src/utils/deprecation.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/styleMap.d.ts +0 -231
- package/lib/typescript/module/src/utils/styleMap.d.ts.map +0 -1
- package/plugin/build/withMapLibre.d.ts +0 -12
- package/plugin/build/withMapLibre.js +0 -148
- package/src/components/Style.tsx +0 -371
- package/src/types/StyleURL.ts +0 -3
- package/src/utils/deprecation.ts +0 -31
- package/src/utils/styleMap.ts +0 -265
|
@@ -3,14 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.SnapshotManager = void 0;
|
|
7
7
|
var _reactNative = require("react-native");
|
|
8
|
-
var _SnapshotOptions =
|
|
9
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8
|
+
var _SnapshotOptions = require("./SnapshotOptions.js");
|
|
10
9
|
const MLRNSnapshotModule = _reactNative.NativeModules.MLRNSnapshotModule;
|
|
11
10
|
|
|
12
11
|
/**
|
|
13
|
-
* The
|
|
12
|
+
* The SnapshotManager generates static raster images of the map.
|
|
14
13
|
* Each snapshot image depicts a portion of a map defined by an SnapshotOptions object you provide.
|
|
15
14
|
* The snapshotter generates the snapshot asynchronous.
|
|
16
15
|
*/
|
|
@@ -21,46 +20,45 @@ class SnapshotManager {
|
|
|
21
20
|
* @example
|
|
22
21
|
*
|
|
23
22
|
* // creates a temp file png of base map
|
|
24
|
-
* const uri = await
|
|
23
|
+
* const uri = await SnapshotManager.takeSnap({
|
|
25
24
|
* centerCoordinate: [-74.126410, 40.797968],
|
|
26
25
|
* width: width,
|
|
27
26
|
* height: height,
|
|
28
27
|
* zoomLevel: 12,
|
|
29
28
|
* pitch: 30,
|
|
30
29
|
* heading: 20,
|
|
31
|
-
* styleURL:
|
|
30
|
+
* styleURL: StyleURL.Default,
|
|
32
31
|
* writeToDisk: true, // Create a temporary file
|
|
33
32
|
* });
|
|
34
33
|
*
|
|
35
34
|
* // creates base64 png of base map without logo
|
|
36
|
-
* const uri = await
|
|
35
|
+
* const uri = await SnapshotManager.takeSnap({
|
|
37
36
|
* centerCoordinate: [-74.126410, 40.797968],
|
|
38
37
|
* width: width,
|
|
39
38
|
* height: height,
|
|
40
39
|
* zoomLevel: 12,
|
|
41
40
|
* pitch: 30,
|
|
42
41
|
* heading: 20,
|
|
43
|
-
* styleURL:
|
|
42
|
+
* styleURL: StyleURL.Default,
|
|
44
43
|
* withLogo: false, // Disable Mapbox logo (Android only)
|
|
45
44
|
* });
|
|
46
45
|
*
|
|
47
46
|
* // creates snapshot with bounds
|
|
48
|
-
* const uri = await
|
|
47
|
+
* const uri = await SnapshotManager.takeSnap({
|
|
49
48
|
* bounds: [[-74.126410, 40.797968], [-74.143727, 40.772177]],
|
|
50
49
|
* width: width,
|
|
51
50
|
* height: height,
|
|
52
|
-
* styleURL:
|
|
51
|
+
* styleURL: StyleURL.Default,
|
|
53
52
|
* });
|
|
54
53
|
*
|
|
55
54
|
* @param {SnapshotOptions} options Snapshot options for create a static image of the base map
|
|
56
55
|
* @return {Promise}
|
|
57
56
|
*/
|
|
58
57
|
async takeSnap(options = {}) {
|
|
59
|
-
const snapshotOptions = new _SnapshotOptions.
|
|
58
|
+
const snapshotOptions = new _SnapshotOptions.SnapshotOptions(options);
|
|
60
59
|
const uri = await MLRNSnapshotModule.takeSnap(snapshotOptions);
|
|
61
60
|
return uri;
|
|
62
61
|
}
|
|
63
62
|
}
|
|
64
|
-
const snapshotManager = new SnapshotManager();
|
|
65
|
-
|
|
66
|
-
//# sourceMappingURL=snapshotManager.js.map
|
|
63
|
+
const snapshotManager = exports.SnapshotManager = new SnapshotManager();
|
|
64
|
+
//# sourceMappingURL=SnapshotManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_SnapshotOptions","MLRNSnapshotModule","NativeModules","SnapshotManager","takeSnap","options","snapshotOptions","SnapshotOptions","uri","snapshotManager","exports"],"sourceRoot":"../../../../src","sources":["modules/snapshot/SnapshotManager.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,gBAAA,GAAAD,OAAA;AAEA,MAAME,kBAAkB,GAAGC,0BAAa,CAACD,kBAAkB;;AAE3D;AACA;AACA;AACA;AACA;AACA,MAAME,eAAe,CAAC;EACpB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAMC,QAAQA,CAACC,OAA6B,GAAG,CAAC,CAAC,EAAmB;IAClE,MAAMC,eAAe,GAAG,IAAIC,gCAAe,CAACF,OAAO,CAAC;IAEpD,MAAMG,GAAG,GAAG,MAAMP,kBAAkB,CAACG,QAAQ,CAACE,eAAe,CAAC;IAC9D,OAAOE,GAAG;EACZ;AACF;AAEA,MAAMC,eAAe,GAAAC,OAAA,CAAAP,eAAA,GAAG,IAAIA,eAAe,CAAC,CAAC","ignoreList":[]}
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.SnapshotOptions = void 0;
|
|
7
7
|
var _helpers = require("@turf/helpers");
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _index = require("../../utils/index.js");
|
|
10
|
-
const
|
|
10
|
+
const MLRNModule = _reactNative.NativeModules.MLRNModule;
|
|
11
11
|
class SnapshotOptions {
|
|
12
12
|
constructor(options) {
|
|
13
13
|
if (!options.centerCoordinate && !options.bounds) {
|
|
14
14
|
throw new Error("Center coordinate or bounds must be supplied in order to take a snapshot");
|
|
15
15
|
}
|
|
16
|
-
this.styleURL = options.styleURL ||
|
|
16
|
+
this.styleURL = options.styleURL || MLRNModule.StyleURL.Default;
|
|
17
17
|
this.heading = options.heading || 0.0;
|
|
18
18
|
this.pitch = options.pitch || 0.0;
|
|
19
19
|
this.zoomLevel = options.zoomLevel || 16.0;
|
|
@@ -54,5 +54,4 @@ class SnapshotOptions {
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
exports.SnapshotOptions = SnapshotOptions;
|
|
57
|
-
var _default = exports.default = SnapshotOptions;
|
|
58
57
|
//# sourceMappingURL=SnapshotOptions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_helpers","require","_reactNative","_index","
|
|
1
|
+
{"version":3,"names":["_helpers","require","_reactNative","_index","MLRNModule","NativeModules","SnapshotOptions","constructor","options","centerCoordinate","bounds","Error","styleURL","StyleURL","Default","heading","pitch","zoomLevel","width","height","writeToDisk","withLogo","undefined","_createCenterCoordPoint","_createBoundsCollection","toJSON","toJSONString","point","features","bound","push","featureCollection","exports"],"sourceRoot":"../../../../src","sources":["modules/snapshot/SnapshotOptions.ts"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,MAAA,GAAAF,OAAA;AAEA,MAAMG,UAAU,GAAGC,0BAAa,CAACD,UAAU;AA4BpC,MAAME,eAAe,CAAC;EAY3BC,WAAWA,CAACC,OAA6B,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AW,EAAE,IAAI,CAACA,WAAW;MAC7BX,gBAAgB,EAAE,IAAI,CAACA,gBAAgB;MACvCC,MAAM,EAAE,IAAI,CAACA,MAAM;MACnBW,QAAQ,EAAE,IAAI,CAACA;IACjB,CAAC;EACH;EAEAE,uBAAuBA,CAACd,gBAAkC,EAAU;IAClE,OAAO,IAAAiB,mBAAY,EAAC,IAAAC,cAAK,EAAClB,gBAAgB,CAAC,CAAC;EAC9C;EAEAe,uBAAuBA,CAACd,MAA0B,EAAU;IAC1D,MAAMkB,QAAQ,GAAG,EAAE;IAEnB,KAAK,MAAMC,KAAK,IAAInB,MAAM,EAAE;MAC1BkB,QAAQ,CAACE,IAAI,CAAC,IAAAH,cAAK,EAACE,KAAK,CAAC,CAAC;IAC7B;IAEA,OAAO,IAAAH,mBAAY,EAAC,IAAAK,0BAAiB,EAACH,QAAQ,CAAC,CAAC;EAClD;AACF;AAACI,OAAA,CAAA1B,eAAA,GAAAA,eAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["plugin/MapLibrePluginProps.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.withGradleProperties = exports.mergeGradleProperties = exports.getGradleProperties = exports.android = void 0;
|
|
7
|
+
var _configPlugins = require("@expo/config-plugins");
|
|
8
|
+
const getGradleProperties = props => {
|
|
9
|
+
return Object.entries(props?.android || {}).reduce((properties, [key, value]) => {
|
|
10
|
+
if (key && value) {
|
|
11
|
+
properties.push({
|
|
12
|
+
type: "property",
|
|
13
|
+
key: `org.maplibre.reactnative.${key}`,
|
|
14
|
+
value: value.toString()
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
return properties;
|
|
18
|
+
}, []);
|
|
19
|
+
};
|
|
20
|
+
exports.getGradleProperties = getGradleProperties;
|
|
21
|
+
const mergeGradleProperties = (oldProperties, newProperties) => {
|
|
22
|
+
const newPropertiesKeys = newProperties.map(({
|
|
23
|
+
key
|
|
24
|
+
}) => key);
|
|
25
|
+
const merged = oldProperties.filter(item => !(item.type === "property" && newPropertiesKeys.includes(item.key)));
|
|
26
|
+
merged.push(...newProperties);
|
|
27
|
+
return merged;
|
|
28
|
+
};
|
|
29
|
+
exports.mergeGradleProperties = mergeGradleProperties;
|
|
30
|
+
const withGradleProperties = (config, props) => {
|
|
31
|
+
const gradleProperties = getGradleProperties(props);
|
|
32
|
+
return (0, _configPlugins.withGradleProperties)(config, c => {
|
|
33
|
+
c.modResults = mergeGradleProperties(c.modResults, gradleProperties);
|
|
34
|
+
return c;
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
exports.withGradleProperties = withGradleProperties;
|
|
38
|
+
const android = exports.android = {
|
|
39
|
+
withGradleProperties
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=android.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_configPlugins","require","getGradleProperties","props","Object","entries","android","reduce","properties","key","value","push","type","toString","exports","mergeGradleProperties","oldProperties","newProperties","newPropertiesKeys","map","merged","filter","item","includes","withGradleProperties","config","gradleProperties","withGradlePropertiesExpo","c","modResults"],"sourceRoot":"../../../src","sources":["plugin/android.ts"],"mappings":";;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AAcO,MAAMC,mBAAmB,GAC9BC,KAA0B,IACP;EACnB,OAAOC,MAAM,CAACC,OAAO,CAACF,KAAK,EAAEG,OAAO,IAAI,CAAC,CAAC,CAAC,CAACC,MAAM,CAChD,CAACC,UAAU,EAAE,CAACC,GAAG,EAAEC,KAAK,CAAC,KAAK;IAC5B,IAAID,GAAG,IAAIC,KAAK,EAAE;MAChBF,UAAU,CAACG,IAAI,CAAC;QACdC,IAAI,EAAE,UAAU;QAChBH,GAAG,EAA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.applyPodfileGlobalVariables = void 0;
|
|
7
|
+
exports.applyPodfilePostInstall = applyPodfilePostInstall;
|
|
8
|
+
exports.withPodfileGlobalVariables = exports.ios = void 0;
|
|
9
|
+
var _configPlugins = require("@expo/config-plugins");
|
|
10
|
+
var _generateCode = require("@expo/config-plugins/build/utils/generateCode");
|
|
11
|
+
const TAG_PREFIX = `@maplibre/maplibre-react-native`;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Only the post-install block is required, the post installer block is used for SPM (Swift Package Manager) which Expo
|
|
15
|
+
* doesn't currently support.
|
|
16
|
+
*/
|
|
17
|
+
function applyPodfilePostInstall(contents) {
|
|
18
|
+
const result = (0, _generateCode.mergeContents)({
|
|
19
|
+
tag: `${TAG_PREFIX}:post-install`,
|
|
20
|
+
src: contents,
|
|
21
|
+
newSrc: ` $MLRN.post_install(installer)`,
|
|
22
|
+
anchor: /post_install do \|installer\|/,
|
|
23
|
+
offset: 1,
|
|
24
|
+
comment: "#"
|
|
25
|
+
});
|
|
26
|
+
if (result.didMerge || result.didClear) {
|
|
27
|
+
return result.contents;
|
|
28
|
+
}
|
|
29
|
+
return contents;
|
|
30
|
+
}
|
|
31
|
+
const withPodfilePostInstall = config => {
|
|
32
|
+
return (0, _configPlugins.withPodfile)(config, c => {
|
|
33
|
+
c.modResults.contents = applyPodfilePostInstall(c.modResults.contents);
|
|
34
|
+
return c;
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
const applyPodfileGlobalVariables = (contents, props) => {
|
|
38
|
+
const tag = `${TAG_PREFIX}:global-variables`;
|
|
39
|
+
const globalVariables = [];
|
|
40
|
+
if (props?.ios?.nativeVersion) {
|
|
41
|
+
globalVariables.push(`$MLRN_NATIVE_VERSION = "${props.ios.nativeVersion}"`);
|
|
42
|
+
}
|
|
43
|
+
if (props?.ios?.spmSpec) {
|
|
44
|
+
globalVariables.push(`$MLRN_SPM_SPEC = ${props.ios.spmSpec}`);
|
|
45
|
+
}
|
|
46
|
+
if (globalVariables.length > 0) {
|
|
47
|
+
return (0, _generateCode.mergeContents)({
|
|
48
|
+
tag,
|
|
49
|
+
src: contents,
|
|
50
|
+
newSrc: globalVariables.join("\n"),
|
|
51
|
+
anchor: /target .+ do/,
|
|
52
|
+
offset: 0,
|
|
53
|
+
comment: "#"
|
|
54
|
+
}).contents;
|
|
55
|
+
}
|
|
56
|
+
const modified = (0, _generateCode.removeGeneratedContents)(contents, tag);
|
|
57
|
+
return modified ?? contents;
|
|
58
|
+
};
|
|
59
|
+
exports.applyPodfileGlobalVariables = applyPodfileGlobalVariables;
|
|
60
|
+
const withPodfileGlobalVariables = (config, props) => {
|
|
61
|
+
return (0, _configPlugins.withPodfile)(config, c => {
|
|
62
|
+
c.modResults.contents = applyPodfileGlobalVariables(c.modResults.contents, props);
|
|
63
|
+
return c;
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Exclude building for arm64 on simulator devices in the pbxproj project.
|
|
69
|
+
* Without this, production builds targeting simulators will fail.
|
|
70
|
+
*/
|
|
71
|
+
exports.withPodfileGlobalVariables = withPodfileGlobalVariables;
|
|
72
|
+
function setExcludedArchitectures(project) {
|
|
73
|
+
const configurations = project.pbxXCBuildConfigurationSection();
|
|
74
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
75
|
+
// @ts-ignore
|
|
76
|
+
for (const {
|
|
77
|
+
name,
|
|
78
|
+
buildSettings
|
|
79
|
+
} of Object.values(configurations || {})) {
|
|
80
|
+
// Guessing that this is the best way to emulate Xcode.
|
|
81
|
+
// Using `project.addToBuildSettings` modifies too many targets.
|
|
82
|
+
if (name === "Release" && typeof buildSettings?.PRODUCT_NAME !== "undefined") {
|
|
83
|
+
buildSettings['"EXCLUDED_ARCHS[sdk=iphonesimulator*]"'] = '"arm64"';
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return project;
|
|
87
|
+
}
|
|
88
|
+
const withoutSignatures = config => {
|
|
89
|
+
return (0, _configPlugins.withXcodeProject)(config, async c => {
|
|
90
|
+
c.modResults.addBuildPhase([], "PBXShellScriptBuildPhase", "Remove signature files (Xcode workaround)", null, {
|
|
91
|
+
shellPath: "/bin/sh",
|
|
92
|
+
shellScript: `
|
|
93
|
+
echo "Remove signature files (Xcode workaround)";
|
|
94
|
+
rm -rf "$CONFIGURATION_BUILD_DIR/MapLibre.xcframework-ios.signature";
|
|
95
|
+
`
|
|
96
|
+
});
|
|
97
|
+
return c;
|
|
98
|
+
});
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Set the Debug Information Format to DWARF with dSYM File during EAS Build for Managed App
|
|
103
|
+
* https://github.com/expo/eas-cli/issues/968
|
|
104
|
+
*
|
|
105
|
+
* Set `artifactPath` in `eas.json`:
|
|
106
|
+
* ```json
|
|
107
|
+
* "ios": {
|
|
108
|
+
* "artifactPath": "ios/build/*"
|
|
109
|
+
* }
|
|
110
|
+
* ```
|
|
111
|
+
*/
|
|
112
|
+
const withDwarfDsym = config => {
|
|
113
|
+
return (0, _configPlugins.withXcodeProject)(config, async c => {
|
|
114
|
+
c.modResults.debugInformationFormat = "dwarf-with-dsym";
|
|
115
|
+
return c;
|
|
116
|
+
});
|
|
117
|
+
};
|
|
118
|
+
const withExcludedSimulatorArchitectures = config => {
|
|
119
|
+
return (0, _configPlugins.withXcodeProject)(config, c => {
|
|
120
|
+
c.modResults = setExcludedArchitectures(c.modResults);
|
|
121
|
+
return c;
|
|
122
|
+
});
|
|
123
|
+
};
|
|
124
|
+
const ios = exports.ios = {
|
|
125
|
+
withPodfilePostInstall,
|
|
126
|
+
withPodfileGlobalVariables,
|
|
127
|
+
withoutSignatures,
|
|
128
|
+
withDwarfDsym,
|
|
129
|
+
withExcludedSimulatorArchitectures
|
|
130
|
+
};
|
|
131
|
+
//# sourceMappingURL=ios.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_configPlugins","require","_generateCode","TAG_PREFIX","applyPodfilePostInstall","contents","result","mergeContents","tag","src","newSrc","anchor","offset","comment","didMerge","didClear","withPodfilePostInstall","config","withPodfile","c","modResults","applyPodfileGlobalVariables","props","globalVariables","ios","nativeVersion","push","spmSpec","length","join","modified","removeGeneratedContents","exports","withPodfileGlobalVariables","setExcludedArchitectures","project","configurations","pbxXCBuildConfigurationSection","name","buildSettings","Object","values","PRODUCT_NAME","withoutSignatures","withXcodeProject","addBuildPhase","shellPath","shellScript","withDwarfDsym","debugInformationFormat","withExcludedSimulatorArchitectures"],"sourceRoot":"../../../src","sources":["plugin/ios.ts"],"mappings":";;;;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AAMA,IAAAC,aAAA,GAAAD,OAAA;AAOA,MAAME,UAAU,GAAG,iCAAiC;;AAEpD;AACA;AACA;AACA;AACO,SAASC,uBAAuBA,CAACC,QAAgB,EAAU;EAChE,MAAMC,MAAM,GAAG,IAAAC,2BAAa,EAAC;IAC3BC,GAAG,EAAE,GAAGL,UAAU,eAAe;IACjCM,GAAG,EAAEJ,QAAQ;IACbK,MAAM,EAAE,mCAAmC;IAC3CC,MAAM,EAAE,+BAA+B;IACvCC,MAAM,EAAE,CAAC;IACTC,OAAO,EAAE;EACX,CAAC,CAAC;EAEF,IAAIP,MAAM,CAACQ,QAAQ,IAAIR,MAAM,CAACS,QAAQ,EAAE;IACtC,OAAOT,MAAM,CAACD,QAAQ;EACxB;EAEA,OAAOA,QAAQ;AACjB;AAEA,MAAMW,sBAAoC,GAAIC,MAAM,IAAK;EACvD,OAAO,IAAAC,0BAAW,EAACD,MAAM,EAAGE,CAAC,IAAK;IAChCA,CAAC,CAACC,UAAU,CAACf,QAAQ,GAAGD,uBAAuB,CAACe,CAAC,CAACC,UAAU,CAACf,QAAQ,CAAC;IAEtE,OAAOc,CAAC;EACV,CAAC,CAAC;AACJ,CAAC;AAEM,MAAME,2BAA2B,GAAGA,CACzChB,QAAgB,EAChBiB,KAA0B,KACf;EACX,MA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tBiB,0BAA0B;EAC1BU,iBAAiB;EACjBK,aAAa;EACbE;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _configPlugins = require("@expo/config-plugins");
|
|
8
|
+
var _android = require("./android.js");
|
|
9
|
+
var _ios = require("./ios.js");
|
|
10
|
+
let pkg = {
|
|
11
|
+
name: "@maplibre/maplibre-react-native"
|
|
12
|
+
};
|
|
13
|
+
try {
|
|
14
|
+
pkg = require("@maplibre/maplibre-react-native/package.json");
|
|
15
|
+
} catch {
|
|
16
|
+
// empty catch block
|
|
17
|
+
}
|
|
18
|
+
const withMapLibre = (config, props) => {
|
|
19
|
+
// Android
|
|
20
|
+
config = _android.android.withGradleProperties(config, props);
|
|
21
|
+
|
|
22
|
+
// iOS
|
|
23
|
+
config = _ios.ios.withExcludedSimulatorArchitectures(config);
|
|
24
|
+
config = _ios.ios.withDwarfDsym(config);
|
|
25
|
+
config = _ios.ios.withoutSignatures(config);
|
|
26
|
+
config = _ios.ios.withPodfileGlobalVariables(config, props);
|
|
27
|
+
config = _ios.ios.withPodfilePostInstall(config);
|
|
28
|
+
return config;
|
|
29
|
+
};
|
|
30
|
+
var _default = exports.default = (0, _configPlugins.createRunOncePlugin)(withMapLibre, pkg.name, pkg.version);
|
|
31
|
+
//# sourceMappingURL=withMapLibre.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_configPlugins","require","_android","_ios","pkg","name","withMapLibre","config","props","android","withGradleProperties","ios","withExcludedSimulatorArchitectures","withDwarfDsym","withoutSignatures","withPodfileGlobalVariables","withPodfilePostInstall","_default","exports","default","createRunOncePlugin","version"],"sourceRoot":"../../../src","sources":["plugin/withMapLibre.ts"],"mappings":";;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AAGA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,IAAA,GAAAF,OAAA;AAEA,IAAIG,GAAuC,GAAG;EAC5CC,IAAI,EAAE;AACR,CAAC;AACD,IAAI;EACFD,GAAG,GAAGH,OAAO,CAAC,8CAA8C,CAAC;AAC/D,CAAC,CAAC,MAAM;EACN;AAAA;AAGF,MAAMK,YAA+C,GAAGA,CAACC,MAAM,EAAEC,KAAK,KAAK;EACzE;EACAD,MAAM,GAAGE,gBAAO,CAACC,oBAAoB,CAACH,MAAM,EAAEC,KAAK,CAAC;;EAEpD;EACAD,MAAM,GAAGI,QAAG,CAACC,kCAAkC,CAACL,MAAM,CAAC;EACvDA,MAAM,GAAGI,QAAG,CAACE,aAAa,CAACN,MAAM,CAAC;EAClCA,MAAM,GAAGI,QAAG,CAACG,iBAAiB,CAACP,MAAM,CAAC;EACtCA,MAAM,GAAGI,QAAG,CAACI,0BAA0B,CAACR,MAAM,EAAEC,KAAK,CAAC;EACtDD,MAAM,GAAGI,QAAG,CAACK,sBAAsB,CAACT,MAAM,CAAC;EAE3C,OAAOA,MAAM;AACf,CAAC;AAAC,IAAAU,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEa,IAAAC,kCAAmB,EAACd,YAAY,EAAEF,GAAG,CAACC,IAAI,EAAED,GAAG,CAACiB,OAAO,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/MapLibreRNStyles.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.BridgeValue = void 0;
|
|
7
7
|
var _index = require("./index.js");
|
|
8
8
|
class BridgeValue {
|
|
9
9
|
constructor(rawValue) {
|
|
@@ -55,5 +55,5 @@ class BridgeValue {
|
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
exports.
|
|
58
|
+
exports.BridgeValue = BridgeValue;
|
|
59
59
|
//# sourceMappingURL=BridgeValue.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_index","require","BridgeValue","constructor","rawValue","type","Array","isArray","isBoolean","isNumber","isString","Error","value","innerRawValue","bridgeValue","push","toJSON","Object","entries","map","key","formatter","exports"
|
|
1
|
+
{"version":3,"names":["_index","require","BridgeValue","constructor","rawValue","type","Array","isArray","isBoolean","isNumber","isString","Error","value","innerRawValue","bridgeValue","push","toJSON","Object","entries","map","key","formatter","exports"],"sourceRoot":"../../../src","sources":["utils/BridgeValue.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAkBO,MAAMC,WAAW,CAAC;EAGvBC,WAAWA,CAACC,QAAsB,EAAE;IAClC,IAAI,CAACA,QAAQ,GAAGA,QAAQ;EAC1B;EAEA,IAAIC,IAAIA,CAAA,EAAoB;IAC1B,IAAIC,KAAK,CAACC,OAAO,CAAC,IAAI,CAACH,QAAQ,CAAC,EAAE;MAChC,OAAO,OAAO;IAChB;IACA,IAAI,IAAAI,gBAAS,EAAC,IAAI,CAACJ,QAAQ,CAAC,EAAE;MAC5B,OAAO,SAAS;IAClB;IACA,IAAI,IAAAK,eAAQ,EAAC,IAAI,CAACL,QAAQ,CAAC,EAAE;MAC3B,OAAO,QAAQ;IACjB;IACA,IAAI,IAAAM,eAAQ,EAAC,IAAI,CAACN,QAAQ,CAAC,EAAE;MAC3B,OAAO,QAAQ;IACjB;IACA,IAAI,IAAI,CAACA,QAAQ,IAAI,OAAO,IAAI,CAACA,QAAQ,KAAK,QAAQ,EAAE;MACtD,OAAO,SAAS;IAClB;IACA,MAAM,IAAIO,KAAK,CACb,WAAW,IAAI,CAACP,QAAQ,gDAC1B,CAAC;EACH;EAEA,IAAIQ,KAAKA,CAAA,EAGQ;IACf,MAAM;MAAEP;IAAK,CAAC,GAAG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
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.Logger = void 0;
|
|
7
7
|
var _reactNative = require("react-native");
|
|
8
8
|
const MLRNLogging = _reactNative.NativeModules.MLRNLogging;
|
|
9
9
|
class Logger {
|
|
@@ -112,5 +112,5 @@ class Logger {
|
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
|
|
115
|
+
exports.Logger = Logger;
|
|
116
116
|
//# sourceMappingURL=Logger.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","MLRNLogging","NativeModules","Logger","instance","sharedInstance","constructor","loggerEmitter","NativeEventEmitter","startedCount","logCallback","subscription","setLogCallback","setLogLevel","level","start","subscribe","stop","unsubscribe","addListener","log","onLog","remove","effectiveLevel","message","tag","startsWith","console","error","warn","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","MLRNLogging","NativeModules","Logger","instance","sharedInstance","constructor","loggerEmitter","NativeEventEmitter","startedCount","logCallback","subscription","setLogCallback","setLogLevel","level","start","subscribe","stop","unsubscribe","addListener","log","onLog","remove","effectiveLevel","message","tag","startsWith","console","error","warn","exports"],"sourceRoot":"../../../src","sources":["utils/Logger.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAKA,MAAMC,WAAW,GAAGC,0BAAa,CAACD,WAAW;AAWtC,MAAME,MAAM,CAAC;EAClB,OAAOC,QAAQ,GAAkB,IAAI;EAErC,OAAOC,cAAcA,CAAA,EAAW;IAC9B,IAAI,IAAI,CAACD,QAAQ,KAAK,IAAI,EAAE;MAC1B,IAAI,CAACA,QAAQ,GAAG,IAAID,MAAM,CAAC,CAAC;IAC9B;IACA,OAAO,IAAI,CAACC,QAAQ;EACtB;EAOAE,WAAWA,CAAA,EAAG;IACZ,IAAI,CAACC,aAAa,GAAG,IAAIC,+BAAkB,CAACP,WAAW,CAAC;IACxD,IAAI,CAACQ,YAAY,GAAG,CAAC;IACrB,IAAI,CAACC,WA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S,EAAE;MACvB,IACEW,GAAG,KAAK,kBAAkB,IAC1BD,OAAO,CAACE,UAAU,CAAC,mDAAmD,CAAC,EACvE;QACA;QACA,OAAO,MAAM;MACf;IACF;IACA,OAAOZ,KAAK;EACd;EAEAO,KAAKA,CAACD,GAAQ,EAAQ;IACpB,IAAI,CAAC,IAAI,CAACV,WAAW,IAAI,CAAC,IAAI,CAACA,WAAW,CAACU,GAAG,CAAC,EAAE;MAC/C,MAAM;QAAEI;MAAQ,CAAC,GAAGJ,GAAG;MACvB,MAAMN,KAAK,GAAG,IAAI,CAACS,cAAc,CAACH,GAAG,CAAC;MACtC,IAAIN,KAAK,KAAK,OAAO,EAAE;QACrBa,OAAO,CAACC,KAAK,CAAC,gBAAgB,EAAEJ,OAAO,EAAEJ,GAAG,CAAC;MAC/C,CAAC,MAAM,IAAIN,KAAK,KAAK,SAAS,EAAE;QAC9Ba,OAAO,CAACE,IAAI,CAAC,kBAAkB,EAAEL,OAAO,EAAEJ,GAAG,CAAC;MAChD,CAAC,MAAM;QACLO,OAAO,CAACP,GAAG,CAAC,aAAaN,KAAK,GAAG,EAAEU,OAAO,EAAEJ,GAAG,CAAC;MAClD;IACF;EACF;AACF;AAACU,OAAA,CAAA3B,MAAA,GAAAA,MAAA","ignoreList":[]}
|
|
@@ -5,9 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.transformStyle = transformStyle;
|
|
7
7
|
var _reactNative = require("react-native");
|
|
8
|
-
var _BridgeValue =
|
|
9
|
-
var
|
|
10
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8
|
+
var _BridgeValue = require("./BridgeValue.js");
|
|
9
|
+
var _getStylePropertyType = require("./getStylePropertyType.js");
|
|
11
10
|
function transformStyle(style) {
|
|
12
11
|
if (!style) {
|
|
13
12
|
return undefined;
|
|
@@ -15,7 +14,7 @@ function transformStyle(style) {
|
|
|
15
14
|
const nativeStyle = {};
|
|
16
15
|
const styleProps = Object.keys(style);
|
|
17
16
|
for (const styleProp of styleProps) {
|
|
18
|
-
const styleType = (0,
|
|
17
|
+
const styleType = (0, _getStylePropertyType.getStylePropertyType)(styleProp);
|
|
19
18
|
let rawStyle = style[styleProp];
|
|
20
19
|
if (styleType === "color" && typeof rawStyle === "string") {
|
|
21
20
|
const color = (0, _reactNative.processColor)(rawStyle);
|
|
@@ -28,7 +27,7 @@ function transformStyle(style) {
|
|
|
28
27
|
} else if (styleType === "image" && typeof rawStyle === "number") {
|
|
29
28
|
rawStyle = _reactNative.Image.resolveAssetSource(rawStyle) || {};
|
|
30
29
|
}
|
|
31
|
-
const bridgeValue = new _BridgeValue.
|
|
30
|
+
const bridgeValue = new _BridgeValue.BridgeValue(rawStyle);
|
|
32
31
|
nativeStyle[styleProp] = {
|
|
33
32
|
styletype: styleType,
|
|
34
33
|
stylevalue: bridgeValue.toJSON()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_BridgeValue","
|
|
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,wDAAwDJ,QAAQ,+BAClE,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":[]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.AbstractAnimatedCoordinates = void 0;
|
|
7
7
|
var _reactNative = require("react-native");
|
|
8
8
|
// see
|
|
9
9
|
// https://github.com/facebook/react-native/blob/master/Libraries/Animated/src/nodes/AnimatedWithChildren.js
|
|
@@ -91,5 +91,5 @@ class AbstractAnimatedCoordinates extends AnimatedWithChildren {
|
|
|
91
91
|
return this.onGetValue(this.onCalculate(this.state, this.progressValue.__getValue()));
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
|
|
94
|
+
exports.AbstractAnimatedCoordinates = AbstractAnimatedCoordinates;
|
|
95
95
|
//# sourceMappingURL=AbstractAnimatedCoordinates.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","AnimatedWithChildren","Object","getPrototypeOf","Animated","ValueXY","__DEV__","name","console","error","defaultConfig","useNativeDriver","AbstractAnimatedCoordinates","constructor","coords","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","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","AnimatedWithChildren","Object","getPrototypeOf","Animated","ValueXY","__DEV__","name","console","error","defaultConfig","useNativeDriver","AbstractAnimatedCoordinates","constructor","coords","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;AACA;AACA,MAAMC,oBAAoB,GAAGC,MAAM,CAACC,cAAc,CAACC,qBAAQ,CAACC,OAAO,CAAC;AACpE,IAAIC,OAAO,EAAE;EACX,IAAIL,oBAAoB,CAACM,IAAI,KAAK,sBAAsB,EAAE;IACxDC,OAAO,CAACC,KAAK,CACX,2EACF,CAAC;EACH;AACF;AAIA,MAAMC,aAAa,GAAG;EACpBC,eAAe,EAAE;AACnB,CAAC;AAEM,MAAeC,2BAA2B,SAEvCX,oBAAoB,CAAC;EAC7BY,WAAWA,CAACC,MAA6B,EAAE;IACzC,KAAK,CAAC,CAAC;IAEP,IAAI,CAACC,KAAK,GAAG,IAAI,CAACC,cAAc,CAACF,MAAM,CAAC;E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EACbd,qBAAQ,CAAC+B,MAAM,CAACjB,aAAa,EAAE;MAC7B,GAAGR,aAAa;MAChB,GAAGU,MAAM;MACTU,OAAO,EAAE;IACX,CAAC,CAAC,EACFV,MACF,CAAC;EACH;EAEAiB,MAAMA,CACJjB,MAA2E,EAC9C;IAC7B,MAAMF,aAAa,GAAG,IAAId,qBAAQ,CAACgC,KAAK,CAAC,GAAG,CAAC;IAC7C,OAAO,IAAI,CAACnB,OAAO,CACjBC,aAAa,EACbd,qBAAQ,CAACiC,MAAM,CAACnB,aAAa,EAAE;MAC7B,GAAGR,aAAa;MAChB,GAAGU,MAAM;MACTU,OAAO,EAAE;IACX,CAAC,CAAC,EACFV,MACF,CAAC;EACH;EAEAkB,KAAKA,CACHlB,MAA0E,EAC7C;IAC7B,MAAMF,aAAa,GAAG,IAAId,qBAAQ,CAACgC,KAAK,CAAC,GAAG,CAAC;IAC7C,OAAO,IAAI,CAACnB,OAAO,CACjBC,aAAa,EACbd,qBAAQ,CAACkC,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;IACA,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":[]}
|
|
@@ -3,45 +3,43 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.AnimatedShapeSource = exports.Animated = void 0;
|
|
7
7
|
var _reactNative = require("react-native");
|
|
8
|
-
var _AnimatedCoordinatesArray =
|
|
9
|
-
var _AnimatedExtractCoordinateFromArray =
|
|
10
|
-
var _AnimatedRouteCoordinatesArray =
|
|
11
|
-
var _AnimatedShape =
|
|
12
|
-
var _BackgroundLayer =
|
|
13
|
-
var _CircleLayer =
|
|
14
|
-
var _FillExtrusionLayer =
|
|
15
|
-
var _FillLayer =
|
|
16
|
-
var _ImageSource =
|
|
17
|
-
var _LineLayer =
|
|
18
|
-
var _RasterLayer =
|
|
19
|
-
var _ShapeSource =
|
|
20
|
-
var _SymbolLayer =
|
|
21
|
-
|
|
22
|
-
const Animated = {
|
|
8
|
+
var _AnimatedCoordinatesArray = require("./AnimatedCoordinatesArray.js");
|
|
9
|
+
var _AnimatedExtractCoordinateFromArray = require("./AnimatedExtractCoordinateFromArray.js");
|
|
10
|
+
var _AnimatedRouteCoordinatesArray = require("./AnimatedRouteCoordinatesArray.js");
|
|
11
|
+
var _AnimatedShape = require("./AnimatedShape.js");
|
|
12
|
+
var _BackgroundLayer = require("../../components/BackgroundLayer.js");
|
|
13
|
+
var _CircleLayer = require("../../components/CircleLayer.js");
|
|
14
|
+
var _FillExtrusionLayer = require("../../components/FillExtrusionLayer.js");
|
|
15
|
+
var _FillLayer = require("../../components/FillLayer.js");
|
|
16
|
+
var _ImageSource = require("../../components/ImageSource.js");
|
|
17
|
+
var _LineLayer = require("../../components/LineLayer.js");
|
|
18
|
+
var _RasterLayer = require("../../components/RasterLayer.js");
|
|
19
|
+
var _ShapeSource = require("../../components/ShapeSource.js");
|
|
20
|
+
var _SymbolLayer = require("../../components/SymbolLayer.js");
|
|
21
|
+
const Animated = exports.Animated = {
|
|
23
22
|
// sources
|
|
24
|
-
ShapeSource: _reactNative.Animated.createAnimatedComponent(_ShapeSource.
|
|
25
|
-
ImageSource: _reactNative.Animated.createAnimatedComponent(_ImageSource.
|
|
23
|
+
ShapeSource: _reactNative.Animated.createAnimatedComponent(_ShapeSource.ShapeSource),
|
|
24
|
+
ImageSource: _reactNative.Animated.createAnimatedComponent(_ImageSource.ImageSource),
|
|
26
25
|
// layers
|
|
27
|
-
FillLayer: _reactNative.Animated.createAnimatedComponent(_FillLayer.
|
|
28
|
-
FillExtrusionLayer: _reactNative.Animated.createAnimatedComponent(_FillExtrusionLayer.
|
|
29
|
-
LineLayer: _reactNative.Animated.createAnimatedComponent(_LineLayer.
|
|
30
|
-
CircleLayer: _reactNative.Animated.createAnimatedComponent(_CircleLayer.
|
|
31
|
-
SymbolLayer: _reactNative.Animated.createAnimatedComponent(_SymbolLayer.
|
|
32
|
-
RasterLayer: _reactNative.Animated.createAnimatedComponent(_RasterLayer.
|
|
33
|
-
BackgroundLayer: _reactNative.Animated.createAnimatedComponent(_BackgroundLayer.
|
|
26
|
+
FillLayer: _reactNative.Animated.createAnimatedComponent(_FillLayer.FillLayer),
|
|
27
|
+
FillExtrusionLayer: _reactNative.Animated.createAnimatedComponent(_FillExtrusionLayer.FillExtrusionLayer),
|
|
28
|
+
LineLayer: _reactNative.Animated.createAnimatedComponent(_LineLayer.LineLayer),
|
|
29
|
+
CircleLayer: _reactNative.Animated.createAnimatedComponent(_CircleLayer.CircleLayer),
|
|
30
|
+
SymbolLayer: _reactNative.Animated.createAnimatedComponent(_SymbolLayer.SymbolLayer),
|
|
31
|
+
RasterLayer: _reactNative.Animated.createAnimatedComponent(_RasterLayer.RasterLayer),
|
|
32
|
+
BackgroundLayer: _reactNative.Animated.createAnimatedComponent(_BackgroundLayer.BackgroundLayer),
|
|
34
33
|
// values
|
|
35
|
-
CoordinatesArray: _AnimatedCoordinatesArray.
|
|
36
|
-
RouteCoordinatesArray: _AnimatedRouteCoordinatesArray.
|
|
37
|
-
Shape: _AnimatedShape.
|
|
38
|
-
ExtractCoordinateFromArray: _AnimatedExtractCoordinateFromArray.
|
|
34
|
+
CoordinatesArray: _AnimatedCoordinatesArray.AnimatedCoordinatesArray,
|
|
35
|
+
RouteCoordinatesArray: _AnimatedRouteCoordinatesArray.AnimatedRouteCoordinatesArray,
|
|
36
|
+
Shape: _AnimatedShape.AnimatedShape,
|
|
37
|
+
ExtractCoordinateFromArray: _AnimatedExtractCoordinateFromArray.AnimatedExtractCoordinateFromArray
|
|
39
38
|
};
|
|
40
39
|
/**
|
|
41
40
|
* Manual typing is required for AnimatedShapeSource because the
|
|
42
41
|
* following error:
|
|
43
42
|
* `Type instantiation is excessively deep and possibly infinite.ts(2589)`
|
|
44
43
|
*/
|
|
45
|
-
const AnimatedShapeSource = exports.AnimatedShapeSource = _reactNative.Animated.createAnimatedComponent(_ShapeSource.
|
|
46
|
-
var _default = exports.default = Animated;
|
|
44
|
+
const AnimatedShapeSource = exports.AnimatedShapeSource = _reactNative.Animated.createAnimatedComponent(_ShapeSource.ShapeSource);
|
|
47
45
|
//# sourceMappingURL=Animated.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_AnimatedCoordinatesArray","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_AnimatedCoordinatesArray","_AnimatedExtractCoordinateFromArray","_AnimatedRouteCoordinatesArray","_AnimatedShape","_BackgroundLayer","_CircleLayer","_FillExtrusionLayer","_FillLayer","_ImageSource","_LineLayer","_RasterLayer","_ShapeSource","_SymbolLayer","Animated","exports","ShapeSource","RNAnimated","createAnimatedComponent","ImageSource","FillLayer","FillExtrusionLayer","LineLayer","CircleLayer","SymbolLayer","RasterLayer","BackgroundLayer","CoordinatesArray","AnimatedCoordinatesArray","RouteCoordinatesArray","AnimatedRouteCoordinatesArray","Shape","AnimatedShape","ExtractCoordinateFromArray","AnimatedExtractCoordinateFromArray","AnimatedShapeSource"],"sourceRoot":"../../../../src","sources":["utils/animated/Animated.ts"],"mappings":";;;;;;AAKA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,yBAAA,GAAAD,OAAA;AACA,IAAAE,mCAAA,GAAAF,OAAA;AACA,IAAAG,8BAAA,GAAAH,OAAA;AACA,IAAAI,c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|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
var _AbstractAnimatedCoordinates =
|
|
8
|
-
|
|
9
|
-
class AnimatedCoordinatesArray extends _AbstractAnimatedCoordinates.default {
|
|
6
|
+
exports.AnimatedCoordinatesArray = void 0;
|
|
7
|
+
var _AbstractAnimatedCoordinates = require("./AbstractAnimatedCoordinates.js");
|
|
8
|
+
class AnimatedCoordinatesArray extends _AbstractAnimatedCoordinates.AbstractAnimatedCoordinates {
|
|
10
9
|
/**
|
|
11
10
|
* Subclasses can override to calculate initial state
|
|
12
11
|
*
|
|
@@ -88,5 +87,5 @@ class AnimatedCoordinatesArray extends _AbstractAnimatedCoordinates.default {
|
|
|
88
87
|
};
|
|
89
88
|
}
|
|
90
89
|
}
|
|
91
|
-
|
|
90
|
+
exports.AnimatedCoordinatesArray = AnimatedCoordinatesArray;
|
|
92
91
|
//# sourceMappingURL=AnimatedCoordinatesArray.js.map
|