@rnmapbox/maps 10.3.0 → 10.3.2-rc.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/android/src/main/java/com/rnmapbox/rnmbx/RNMBXPackage.kt +4 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/annotation/RNMBXMarkerView.kt +8 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/annotation/RNMBXMarkerViewContent.kt +9 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/annotation/RNMBXMarkerViewContentManager.kt +7 -1
- package/android/src/main/java/com/rnmapbox/rnmbx/components/annotation/RNMBXMarkerViewManager.kt +14 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXCamera.kt +3 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXCameraManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXVIewportManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/images/RNMBXImageManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/images/RNMBXImagesManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/location/RNMBXCustomLocationProviderManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/location/RNMBXNativeUserLocationManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapView.kt +13 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt +6 -1
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/RNMBXStyleFactory.kt +748 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/RNMBXStyleImportManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXBackgroundLayerManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXCircleLayerManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXFillExtrusionLayerManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXFillLayerManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXHeatmapLayerManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXHillshadeLayerManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXLineLayerManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXModelLayerManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXRasterLayerManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXSkyLayerManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXSymbolLayerManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/light/RNMBXLightManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/model/RNMBXModelsManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/rain/RNMBXRain.kt +83 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/rain/RNMBXRainManager.kt +40 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/snow/RNMBXSnow.kt +66 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/snow/RNMBXSnowManager.kt +40 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXImageSourceManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXRasterDemSourceManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXRasterSource.kt +1 -1
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXRasterSourceManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXShapeSource.kt +8 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXShapeSourceManager.kt +11 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXVectorSourceManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/terrain/RNMBXTerrainManager.kt +6 -0
- package/ios/RNMBX/RNMBXAtmosphereComponentView.mm +2 -1
- package/ios/RNMBX/RNMBXBackgroundLayerComponentView.mm +2 -1
- package/ios/RNMBX/RNMBXBridgeManager.h +8 -0
- package/ios/RNMBX/RNMBXBridgeManager.m +16 -0
- package/ios/RNMBX/RNMBXCamera.swift +5 -2
- package/ios/RNMBX/RNMBXCircleLayerComponentView.mm +2 -1
- package/ios/RNMBX/RNMBXFillExtrusionLayerComponentView.mm +2 -1
- package/ios/RNMBX/RNMBXFillLayerComponentView.mm +2 -1
- package/ios/RNMBX/RNMBXHeatmapLayerComponentView.mm +2 -1
- package/ios/RNMBX/RNMBXHillshadeLayerComponentView.mm +2 -1
- package/ios/RNMBX/RNMBXImageModule.h +1 -0
- package/ios/RNMBX/RNMBXImageModule.mm +15 -2
- package/ios/RNMBX/RNMBXImageQueue.swift +9 -1
- package/ios/RNMBX/RNMBXImages.swift +4 -0
- package/ios/RNMBX/RNMBXImagesComponentView.mm +2 -1
- package/ios/RNMBX/RNMBXLightComponentView.mm +2 -1
- package/ios/RNMBX/RNMBXLineLayerComponentView.mm +2 -1
- package/ios/RNMBX/RNMBXMapView.swift +16 -0
- package/ios/RNMBX/RNMBXMapViewComponentView.mm +10 -0
- package/ios/RNMBX/RNMBXModelLayerComponentView.mm +2 -1
- package/ios/RNMBX/RNMBXRain.swift +92 -0
- package/ios/RNMBX/RNMBXRainComponentView.h +14 -0
- package/ios/RNMBX/RNMBXRainComponentView.mm +80 -0
- package/ios/RNMBX/RNMBXRasterLayerComponentView.mm +2 -1
- package/ios/RNMBX/RNMBXRasterParticleLayerComponentView.mm +2 -1
- package/ios/RNMBX/RNMBXShapeSource.swift +5 -0
- package/ios/RNMBX/RNMBXShapeSourceComponentView.mm +1 -0
- package/ios/RNMBX/RNMBXSkyLayerComponentView.mm +2 -1
- package/ios/RNMBX/RNMBXSnow.swift +76 -0
- package/ios/RNMBX/RNMBXSnowComponentView.h +14 -0
- package/ios/RNMBX/RNMBXSnowComponentView.mm +80 -0
- package/ios/RNMBX/RNMBXStyle.swift +477 -9
- package/ios/RNMBX/RNMBXStyleValue.swift +7 -1
- package/ios/RNMBX/RNMBXSymbolLayerComponentView.mm +2 -1
- package/ios/RNMBX/RNMBXTerrainComponentView.mm +2 -1
- package/lib/commonjs/plugin/build/withMapbox.d.ts +1 -1
- package/lib/commonjs/plugin/install.md +2 -2
- package/lib/commonjs/plugin/src/withMapbox.ts +2 -2
- package/lib/module/Mapbox.native.js +2 -1
- package/lib/module/Mapbox.native.js.map +1 -1
- package/lib/module/components/AbstractLayer.js.map +1 -1
- package/lib/module/components/Annotation.js.map +1 -1
- package/lib/module/components/Callout.js.map +1 -1
- package/lib/module/components/Image.js.map +1 -1
- package/lib/module/components/Images.js.map +1 -1
- package/lib/module/components/MapView.js.map +1 -1
- package/lib/module/components/MarkerView.js +6 -2
- package/lib/module/components/MarkerView.js.map +1 -1
- package/lib/module/components/PointAnnotation.js +11 -4
- package/lib/module/components/PointAnnotation.js.map +1 -1
- package/lib/module/components/Rain.js +19 -0
- package/lib/module/components/Rain.js.map +1 -0
- package/lib/module/components/ShapeSource.js +1 -0
- package/lib/module/components/ShapeSource.js.map +1 -1
- package/lib/module/components/Snow.js +19 -0
- package/lib/module/components/Snow.js.map +1 -0
- package/lib/module/components/SymbolLayer.js.map +1 -1
- package/lib/module/components/UserLocation.js.map +1 -1
- package/lib/module/components/VectorSource.js.map +1 -1
- package/lib/module/specs/RNMBXCameraNativeComponent.ts +3 -3
- package/lib/module/specs/RNMBXCustomLocationProviderNativeComponent.ts +1 -1
- package/lib/module/specs/RNMBXImageSourceNativeComponent.ts +1 -1
- package/lib/module/specs/RNMBXMapViewNativeComponent.ts +5 -4
- package/lib/module/specs/RNMBXMarkerViewNativeComponent.ts +2 -2
- package/lib/module/specs/RNMBXModelLayerNativeComponent.ts +2 -2
- package/lib/module/specs/RNMBXModelsNativeComponent.ts +1 -1
- package/lib/module/specs/RNMBXNativeUserLocationNativeComponent.ts +1 -1
- package/lib/module/specs/RNMBXRainNativeComponent.ts +13 -0
- package/lib/module/specs/RNMBXRasterArraySourceNativeComponent.ts +1 -1
- package/lib/module/specs/RNMBXRasterDemSourceNativeComponent.ts +1 -1
- package/lib/module/specs/RNMBXRasterSourceNativeComponent.ts +1 -1
- package/lib/module/specs/RNMBXShapeSourceNativeComponent.ts +4 -3
- package/lib/module/specs/RNMBXSnowNativeComponent.ts +13 -0
- package/lib/module/specs/RNMBXVectorSourceNativeComponent.ts +2 -2
- package/lib/module/utils/index.js.map +1 -1
- package/lib/module/utils/styleMap.js +26 -0
- package/lib/module/utils/styleMap.js.map +1 -1
- package/lib/module/web/components/Camera.js.map +1 -1
- package/lib/typescript/jest.config.d.ts +3 -3
- package/lib/typescript/jest.config.d.ts.map +1 -1
- package/lib/typescript/plugin/src/withMapbox.d.ts +1 -1
- package/lib/typescript/plugin/src/withMapbox.d.ts.map +1 -1
- package/lib/typescript/scripts/autogenHelpers/examplesJsonSchema.d.ts +1 -1
- package/lib/typescript/scripts/autogenHelpers/examplesJsonSchema.d.ts.map +1 -1
- package/lib/typescript/scripts/autogenHelpers/generateCodeWithEjs.d.mts +71 -2
- package/lib/typescript/scripts/autogenHelpers/generateCodeWithEjs.d.mts.map +1 -1
- package/lib/typescript/scripts/autogenHelpers/globals.d.mts +1 -1
- package/lib/typescript/scripts/autogenHelpers/globals.d.mts.map +1 -1
- package/lib/typescript/src/Mapbox.native.d.ts +3 -1
- package/lib/typescript/src/Mapbox.native.d.ts.map +1 -1
- package/lib/typescript/src/components/AbstractLayer.d.ts +2 -2
- package/lib/typescript/src/components/AbstractLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/AbstractSource.d.ts +1 -1
- package/lib/typescript/src/components/AbstractSource.d.ts.map +1 -1
- package/lib/typescript/src/components/Annotation.d.ts +4 -4
- package/lib/typescript/src/components/Annotation.d.ts.map +1 -1
- package/lib/typescript/src/components/Callout.d.ts +5 -5
- package/lib/typescript/src/components/Callout.d.ts.map +1 -1
- package/lib/typescript/src/components/Camera.d.ts +1 -1
- package/lib/typescript/src/components/Camera.d.ts.map +1 -1
- package/lib/typescript/src/components/CameraGestureObserver.d.ts +1 -1
- package/lib/typescript/src/components/CameraGestureObserver.d.ts.map +1 -1
- package/lib/typescript/src/components/CircleLayer.d.ts +1 -1
- package/lib/typescript/src/components/CircleLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/CustomLocationProvider.d.ts +1 -1
- package/lib/typescript/src/components/CustomLocationProvider.d.ts.map +1 -1
- package/lib/typescript/src/components/FillExtrusionLayer.d.ts +1 -1
- package/lib/typescript/src/components/FillExtrusionLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/HeadingIndicator.d.ts +1 -1
- package/lib/typescript/src/components/HeadingIndicator.d.ts.map +1 -1
- package/lib/typescript/src/components/HillshadeLayer.d.ts +1 -1
- package/lib/typescript/src/components/HillshadeLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/Image.d.ts +1 -1
- package/lib/typescript/src/components/Image.d.ts.map +1 -1
- package/lib/typescript/src/components/ImageSource.d.ts +1 -1
- package/lib/typescript/src/components/ImageSource.d.ts.map +1 -1
- package/lib/typescript/src/components/Images.d.ts +2 -2
- package/lib/typescript/src/components/Images.d.ts.map +1 -1
- package/lib/typescript/src/components/LineLayer.d.ts +1 -1
- package/lib/typescript/src/components/LineLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/MapView.d.ts +5 -1
- package/lib/typescript/src/components/MapView.d.ts.map +1 -1
- package/lib/typescript/src/components/MarkerView.d.ts +1 -1
- package/lib/typescript/src/components/MarkerView.d.ts.map +1 -1
- package/lib/typescript/src/components/ModelLayer.d.ts +1 -1
- package/lib/typescript/src/components/ModelLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/NativeBridgeComponent.d.ts +1 -1
- package/lib/typescript/src/components/NativeBridgeComponent.d.ts.map +1 -1
- package/lib/typescript/src/components/PointAnnotation.d.ts +3 -3
- package/lib/typescript/src/components/PointAnnotation.d.ts.map +1 -1
- package/lib/typescript/src/components/Rain.d.ts +17 -0
- package/lib/typescript/src/components/Rain.d.ts.map +1 -0
- package/lib/typescript/src/components/RasterArraySource.d.ts +1 -1
- package/lib/typescript/src/components/RasterArraySource.d.ts.map +1 -1
- package/lib/typescript/src/components/RasterLayer.d.ts +1 -1
- package/lib/typescript/src/components/RasterLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/RasterParticleLayer.d.ts +1 -1
- package/lib/typescript/src/components/RasterParticleLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/RasterSource.d.ts +1 -1
- package/lib/typescript/src/components/RasterSource.d.ts.map +1 -1
- package/lib/typescript/src/components/ShapeSource.d.ts +8 -3
- package/lib/typescript/src/components/ShapeSource.d.ts.map +1 -1
- package/lib/typescript/src/components/SkyLayer.d.ts +1 -1
- package/lib/typescript/src/components/SkyLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/Snow.d.ts +8 -0
- package/lib/typescript/src/components/Snow.d.ts.map +1 -0
- package/lib/typescript/src/components/SymbolLayer.d.ts +1 -1
- package/lib/typescript/src/components/SymbolLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/UserLocation.d.ts +1 -1
- package/lib/typescript/src/components/UserLocation.d.ts.map +1 -1
- package/lib/typescript/src/components/VectorSource.d.ts +2 -2
- package/lib/typescript/src/components/VectorSource.d.ts.map +1 -1
- package/lib/typescript/src/modules/location/locationManager.d.ts +1 -1
- package/lib/typescript/src/modules/location/locationManager.d.ts.map +1 -1
- package/lib/typescript/src/modules/offline/offlineManager.d.ts +1 -1
- package/lib/typescript/src/modules/offline/offlineManager.d.ts.map +1 -1
- package/lib/typescript/src/shapeAnimators/ChangeLineOffsetsShapeAnimator.d.ts +1 -1
- package/lib/typescript/src/shapeAnimators/ChangeLineOffsetsShapeAnimator.d.ts.map +1 -1
- package/lib/typescript/src/shapeAnimators/MovePointShapeAnimator.d.ts +2 -2
- package/lib/typescript/src/shapeAnimators/MovePointShapeAnimator.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXCameraNativeComponent.d.ts +1 -1
- package/lib/typescript/src/specs/RNMBXCameraNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXCustomLocationProviderNativeComponent.d.ts +1 -1
- package/lib/typescript/src/specs/RNMBXCustomLocationProviderNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXImageSourceNativeComponent.d.ts +1 -1
- package/lib/typescript/src/specs/RNMBXImageSourceNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXMapViewNativeComponent.d.ts +2 -1
- package/lib/typescript/src/specs/RNMBXMapViewNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXMarkerViewNativeComponent.d.ts +2 -2
- package/lib/typescript/src/specs/RNMBXMarkerViewNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXModelLayerNativeComponent.d.ts +2 -2
- package/lib/typescript/src/specs/RNMBXModelLayerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXModelsNativeComponent.d.ts +1 -1
- package/lib/typescript/src/specs/RNMBXModelsNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXNativeUserLocationNativeComponent.d.ts +1 -1
- package/lib/typescript/src/specs/RNMBXNativeUserLocationNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXRainNativeComponent.d.ts +8 -0
- package/lib/typescript/src/specs/RNMBXRainNativeComponent.d.ts.map +1 -0
- package/lib/typescript/src/specs/RNMBXRasterArraySourceNativeComponent.d.ts +1 -1
- package/lib/typescript/src/specs/RNMBXRasterArraySourceNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXRasterDemSourceNativeComponent.d.ts +1 -1
- package/lib/typescript/src/specs/RNMBXRasterDemSourceNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXRasterSourceNativeComponent.d.ts +1 -1
- package/lib/typescript/src/specs/RNMBXRasterSourceNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXShapeSourceNativeComponent.d.ts +2 -1
- package/lib/typescript/src/specs/RNMBXShapeSourceNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXSnowNativeComponent.d.ts +8 -0
- package/lib/typescript/src/specs/RNMBXSnowNativeComponent.d.ts.map +1 -0
- package/lib/typescript/src/specs/RNMBXVectorSourceNativeComponent.d.ts +1 -1
- package/lib/typescript/src/specs/RNMBXVectorSourceNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/types/index.d.ts +2 -2
- package/lib/typescript/src/types/index.d.ts.map +1 -1
- package/lib/typescript/src/utils/Logger.d.ts +1 -1
- package/lib/typescript/src/utils/Logger.d.ts.map +1 -1
- package/lib/typescript/src/utils/MapboxStyles.d.ts +202 -2
- package/lib/typescript/src/utils/MapboxStyles.d.ts.map +1 -1
- package/lib/typescript/src/utils/StyleValue.d.ts +1 -1
- package/lib/typescript/src/utils/StyleValue.d.ts.map +1 -1
- package/lib/typescript/src/utils/index.d.ts +2 -2
- package/lib/typescript/src/utils/index.d.ts.map +1 -1
- package/lib/typescript/src/utils/nativeRef.d.ts +1 -1
- package/lib/typescript/src/utils/nativeRef.d.ts.map +1 -1
- package/lib/typescript/src/utils/styleMap.d.ts.map +1 -1
- package/lib/typescript/src/web/components/Camera.d.ts +3 -3
- package/lib/typescript/src/web/components/Camera.d.ts.map +1 -1
- package/package.json +12 -3
- package/plugin/build/withMapbox.d.ts +1 -1
- package/plugin/install.md +2 -2
- package/plugin/src/withMapbox.ts +2 -2
- package/src/Mapbox.native.ts +3 -1
- package/src/components/AbstractLayer.tsx +2 -2
- package/src/components/AbstractSource.tsx +1 -1
- package/src/components/Annotation.tsx +4 -4
- package/src/components/Callout.tsx +3 -3
- package/src/components/Camera.tsx +1 -1
- package/src/components/CameraGestureObserver.tsx +1 -1
- package/src/components/CircleLayer.tsx +1 -1
- package/src/components/CustomLocationProvider.tsx +1 -1
- package/src/components/FillExtrusionLayer.tsx +1 -1
- package/src/components/HeadingIndicator.tsx +1 -1
- package/src/components/HillshadeLayer.tsx +1 -1
- package/src/components/Image.tsx +1 -1
- package/src/components/ImageSource.tsx +1 -1
- package/src/components/Images.tsx +6 -3
- package/src/components/LineLayer.tsx +1 -1
- package/src/components/MapView.tsx +10 -5
- package/src/components/MarkerView.tsx +10 -3
- package/src/components/ModelLayer.tsx +1 -1
- package/src/components/NativeBridgeComponent.tsx +1 -1
- package/src/components/PointAnnotation.tsx +18 -5
- package/src/components/Rain.tsx +31 -0
- package/src/components/RasterArraySource.tsx +1 -1
- package/src/components/RasterLayer.tsx +1 -1
- package/src/components/RasterParticleLayer.tsx +1 -1
- package/src/components/RasterSource.tsx +1 -1
- package/src/components/ShapeSource.tsx +11 -4
- package/src/components/SkyLayer.tsx +1 -1
- package/src/components/Snow.tsx +22 -0
- package/src/components/SymbolLayer.tsx +1 -1
- package/src/components/UserLocation.tsx +2 -2
- package/src/components/VectorSource.tsx +2 -2
- package/src/modules/location/locationManager.ts +3 -3
- package/src/modules/offline/offlineManager.ts +1 -1
- package/src/shapeAnimators/ChangeLineOffsetsShapeAnimator.ts +1 -1
- package/src/shapeAnimators/MovePointShapeAnimator.ts +2 -2
- package/src/specs/RNMBXCameraNativeComponent.ts +3 -3
- package/src/specs/RNMBXCustomLocationProviderNativeComponent.ts +1 -1
- package/src/specs/RNMBXImageSourceNativeComponent.ts +1 -1
- package/src/specs/RNMBXMapViewNativeComponent.ts +5 -4
- package/src/specs/RNMBXMarkerViewNativeComponent.ts +2 -2
- package/src/specs/RNMBXModelLayerNativeComponent.ts +2 -2
- package/src/specs/RNMBXModelsNativeComponent.ts +1 -1
- package/src/specs/RNMBXNativeUserLocationNativeComponent.ts +1 -1
- package/src/specs/RNMBXRainNativeComponent.ts +13 -0
- package/src/specs/RNMBXRasterArraySourceNativeComponent.ts +1 -1
- package/src/specs/RNMBXRasterDemSourceNativeComponent.ts +1 -1
- package/src/specs/RNMBXRasterSourceNativeComponent.ts +1 -1
- package/src/specs/RNMBXShapeSourceNativeComponent.ts +4 -3
- package/src/specs/RNMBXSnowNativeComponent.ts +13 -0
- package/src/specs/RNMBXVectorSourceNativeComponent.ts +2 -2
- package/src/types/index.ts +2 -2
- package/src/utils/Logger.ts +1 -1
- package/src/utils/MapboxStyles.ts +222 -1
- package/src/utils/StyleValue.ts +1 -1
- package/src/utils/index.ts +3 -3
- package/src/utils/nativeRef.ts +1 -1
- package/src/utils/styleMap.ts +28 -0
- package/src/web/components/Camera.tsx +8 -4
|
@@ -3,7 +3,7 @@ import type { HostComponent, ViewProps } from 'react-native';
|
|
|
3
3
|
import { Double } from 'react-native/Libraries/Types/CodegenTypes';
|
|
4
4
|
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
5
5
|
|
|
6
|
-
import { UnsafeMixed } from './codegenUtils';
|
|
6
|
+
import { type UnsafeMixed } from './codegenUtils';
|
|
7
7
|
|
|
8
8
|
export interface NativeProps extends ViewProps {
|
|
9
9
|
id: UnsafeMixed<string>;
|
|
@@ -3,7 +3,7 @@ import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNati
|
|
|
3
3
|
// @ts-ignore - CI environment type resolution issue for CodegenTypes
|
|
4
4
|
import { Double } from 'react-native/Libraries/Types/CodegenTypes';
|
|
5
5
|
|
|
6
|
-
import { UnsafeMixed } from './codegenUtils';
|
|
6
|
+
import { type UnsafeMixed } from './codegenUtils';
|
|
7
7
|
|
|
8
8
|
export interface NativeProps extends ViewProps {
|
|
9
9
|
id: UnsafeMixed<string>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { HostComponent, ViewProps } from 'react-native';
|
|
2
2
|
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
3
3
|
import {
|
|
4
|
-
DirectEventHandler,
|
|
5
|
-
Double,
|
|
6
|
-
Int32,
|
|
4
|
+
type DirectEventHandler,
|
|
5
|
+
type Double,
|
|
6
|
+
type Int32,
|
|
7
7
|
// @ts-ignore - CI environment type resolution issue for CodegenTypes
|
|
8
8
|
} from 'react-native/Libraries/Types/CodegenTypes';
|
|
9
9
|
|
|
@@ -21,6 +21,7 @@ export interface NativeProps extends ViewProps {
|
|
|
21
21
|
clusterMaxZoomLevel: UnsafeMixed<Double>;
|
|
22
22
|
clusterProperties: UnsafeMixed<any>;
|
|
23
23
|
maxZoomLevel: UnsafeMixed<Double>;
|
|
24
|
+
minZoomLevel: UnsafeMixed<Double>;
|
|
24
25
|
buffer: UnsafeMixed<Double>;
|
|
25
26
|
tolerance: UnsafeMixed<Double>;
|
|
26
27
|
lineMetrics: UnsafeMixed<boolean>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { HostComponent, ViewProps } from 'react-native';
|
|
2
|
+
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
3
|
+
|
|
4
|
+
import type { UnsafeMixed } from './codegenUtils';
|
|
5
|
+
|
|
6
|
+
export interface NativeProps extends ViewProps {
|
|
7
|
+
reactStyle: UnsafeMixed<any>;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
// @ts-ignore-error - Codegen requires single cast but TypeScript prefers double cast
|
|
11
|
+
export default codegenNativeComponent<NativeProps>(
|
|
12
|
+
'RNMBXSnow',
|
|
13
|
+
) as HostComponent<NativeProps>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { HostComponent, ViewProps } from 'react-native';
|
|
2
2
|
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
3
3
|
import {
|
|
4
|
-
DirectEventHandler,
|
|
5
|
-
Double,
|
|
4
|
+
type DirectEventHandler,
|
|
5
|
+
type Double,
|
|
6
6
|
// @ts-ignore - CI environment type resolution issue for CodegenTypes
|
|
7
7
|
} from 'react-native/Libraries/Types/CodegenTypes';
|
|
8
8
|
|
package/src/types/index.ts
CHANGED
package/src/utils/Logger.ts
CHANGED
|
@@ -767,6 +767,20 @@ export interface LineLayerStyleProps {
|
|
|
767
767
|
* @requires lineZOffset
|
|
768
768
|
*/
|
|
769
769
|
lineCrossSlope?: Value<number>;
|
|
770
|
+
/**
|
|
771
|
+
* Controls how much the elevation of lines with `lineElevationReference` set to `sea` scales with terrain exaggeration. A value of 0 keeps the line at a fixed altitude above sea level. A value of 1 scales the elevation proportionally with terrain exaggeration.
|
|
772
|
+
*
|
|
773
|
+
* @requires lineZOffset
|
|
774
|
+
*/
|
|
775
|
+
lineElevationGroundScale?: Value<
|
|
776
|
+
number,
|
|
777
|
+
['zoom', 'feature', 'line-progress']
|
|
778
|
+
>;
|
|
779
|
+
|
|
780
|
+
/**
|
|
781
|
+
* The transition affecting any changes to this layer’s lineElevationGroundScale property.
|
|
782
|
+
*/
|
|
783
|
+
lineElevationGroundScaleTransition?: Transition;
|
|
770
784
|
/**
|
|
771
785
|
* Controls the transition progress between the image variants of linePattern. Zero means the first variant is used, one is the second, and in between they are blended together. Both images should be the same size and have the same type (either raster or vector).
|
|
772
786
|
*
|
|
@@ -795,7 +809,10 @@ export interface LineLayerStyleProps {
|
|
|
795
809
|
*
|
|
796
810
|
* @requires lights
|
|
797
811
|
*/
|
|
798
|
-
lineEmissiveStrength?: Value<
|
|
812
|
+
lineEmissiveStrength?: Value<
|
|
813
|
+
number,
|
|
814
|
+
['zoom', 'measure-light', 'line-progress']
|
|
815
|
+
>;
|
|
799
816
|
|
|
800
817
|
/**
|
|
801
818
|
* The transition affecting any changes to this layer’s lineEmissiveStrength property.
|
|
@@ -1348,6 +1365,18 @@ export interface SymbolLayerStyleProps {
|
|
|
1348
1365
|
* Increase or reduce the saturation of the symbol icon.
|
|
1349
1366
|
*/
|
|
1350
1367
|
iconColorSaturation?: Value<number>;
|
|
1368
|
+
/**
|
|
1369
|
+
* Increase or reduce the contrast of the symbol icon.
|
|
1370
|
+
*/
|
|
1371
|
+
iconColorContrast?: Value<number>;
|
|
1372
|
+
/**
|
|
1373
|
+
* Increase or reduce the brightness of the symbols. The value is the minimum brightness.
|
|
1374
|
+
*/
|
|
1375
|
+
iconColorBrightnessMin?: Value<number>;
|
|
1376
|
+
/**
|
|
1377
|
+
* Increase or reduce the brightness of the symbols. The value is the maximum brightness.
|
|
1378
|
+
*/
|
|
1379
|
+
iconColorBrightnessMax?: Value<number>;
|
|
1351
1380
|
/**
|
|
1352
1381
|
* Specifies an uniform elevation from the ground, in meters.
|
|
1353
1382
|
*/
|
|
@@ -1812,6 +1841,10 @@ export interface FillExtrusionLayerStyleProps {
|
|
|
1812
1841
|
* The transition affecting any changes to this layer’s fillExtrusionLineWidth property.
|
|
1813
1842
|
*/
|
|
1814
1843
|
fillExtrusionLineWidthTransition?: Transition;
|
|
1844
|
+
/**
|
|
1845
|
+
* Enable/Disable shadow casting for this layer
|
|
1846
|
+
*/
|
|
1847
|
+
fillExtrusionCastShadows?: boolean;
|
|
1815
1848
|
}
|
|
1816
1849
|
export interface RasterLayerStyleProps {
|
|
1817
1850
|
/**
|
|
@@ -2033,6 +2066,17 @@ export interface HillshadeLayerStyleProps {
|
|
|
2033
2066
|
* The transition affecting any changes to this layer’s hillshadeAccentColor property.
|
|
2034
2067
|
*/
|
|
2035
2068
|
hillshadeAccentColorTransition?: Transition;
|
|
2069
|
+
/**
|
|
2070
|
+
* Controls the intensity of light emitted on the source features.
|
|
2071
|
+
*
|
|
2072
|
+
* @requires lights
|
|
2073
|
+
*/
|
|
2074
|
+
hillshadeEmissiveStrength?: Value<number, ['zoom', 'measure-light']>;
|
|
2075
|
+
|
|
2076
|
+
/**
|
|
2077
|
+
* The transition affecting any changes to this layer’s hillshadeEmissiveStrength property.
|
|
2078
|
+
*/
|
|
2079
|
+
hillshadeEmissiveStrengthTransition?: Transition;
|
|
2036
2080
|
}
|
|
2037
2081
|
export interface ModelLayerStyleProps {
|
|
2038
2082
|
/**
|
|
@@ -2365,6 +2409,181 @@ export interface AtmosphereLayerStyleProps {
|
|
|
2365
2409
|
*/
|
|
2366
2410
|
verticalRangeTransition?: Transition;
|
|
2367
2411
|
}
|
|
2412
|
+
export interface SnowLayerStyleProps {
|
|
2413
|
+
/**
|
|
2414
|
+
* Snow particles density. Controls the overall particles number.
|
|
2415
|
+
*/
|
|
2416
|
+
density?: Value<number, ['zoom', 'measure-light']>;
|
|
2417
|
+
|
|
2418
|
+
/**
|
|
2419
|
+
* The transition affecting any changes to this layer’s density property.
|
|
2420
|
+
*/
|
|
2421
|
+
densityTransition?: Transition;
|
|
2422
|
+
/**
|
|
2423
|
+
* Snow particles movement factor. Controls the overall particles movement speed.
|
|
2424
|
+
*/
|
|
2425
|
+
intensity?: Value<number, ['zoom', 'measure-light']>;
|
|
2426
|
+
|
|
2427
|
+
/**
|
|
2428
|
+
* The transition affecting any changes to this layer’s intensity property.
|
|
2429
|
+
*/
|
|
2430
|
+
intensityTransition?: Transition;
|
|
2431
|
+
/**
|
|
2432
|
+
* Snow particles color.
|
|
2433
|
+
*/
|
|
2434
|
+
color?: Value<string, ['zoom', 'measure-light']>;
|
|
2435
|
+
|
|
2436
|
+
/**
|
|
2437
|
+
* The transition affecting any changes to this layer’s color property.
|
|
2438
|
+
*/
|
|
2439
|
+
colorTransition?: Transition;
|
|
2440
|
+
/**
|
|
2441
|
+
* Snow particles opacity.
|
|
2442
|
+
*/
|
|
2443
|
+
opacity?: Value<number, ['zoom', 'measure-light']>;
|
|
2444
|
+
|
|
2445
|
+
/**
|
|
2446
|
+
* The transition affecting any changes to this layer’s opacity property.
|
|
2447
|
+
*/
|
|
2448
|
+
opacityTransition?: Transition;
|
|
2449
|
+
/**
|
|
2450
|
+
* Snow vignette screenSpace effect. Adds snow tint to screen corners
|
|
2451
|
+
*/
|
|
2452
|
+
vignette?: Value<number, ['zoom', 'measure-light']>;
|
|
2453
|
+
|
|
2454
|
+
/**
|
|
2455
|
+
* The transition affecting any changes to this layer’s vignette property.
|
|
2456
|
+
*/
|
|
2457
|
+
vignetteTransition?: Transition;
|
|
2458
|
+
/**
|
|
2459
|
+
* Snow vignette screenSpace corners tint color.
|
|
2460
|
+
*/
|
|
2461
|
+
vignetteColor?: Value<string, ['zoom', 'measure-light']>;
|
|
2462
|
+
|
|
2463
|
+
/**
|
|
2464
|
+
* The transition affecting any changes to this layer’s vignetteColor property.
|
|
2465
|
+
*/
|
|
2466
|
+
vignetteColorTransition?: Transition;
|
|
2467
|
+
/**
|
|
2468
|
+
* Thinning factor of snow particles from center. 0 no thinning. 1 maximal central area thinning.
|
|
2469
|
+
*/
|
|
2470
|
+
centerThinning?: Value<number, ['zoom', 'measure-light']>;
|
|
2471
|
+
|
|
2472
|
+
/**
|
|
2473
|
+
* The transition affecting any changes to this layer’s centerThinning property.
|
|
2474
|
+
*/
|
|
2475
|
+
centerThinningTransition?: Transition;
|
|
2476
|
+
/**
|
|
2477
|
+
* Main snow particles direction. Azimuth and polar angles
|
|
2478
|
+
*/
|
|
2479
|
+
direction?: Value<number[], ['zoom', 'measure-light']>;
|
|
2480
|
+
|
|
2481
|
+
/**
|
|
2482
|
+
* The transition affecting any changes to this layer’s direction property.
|
|
2483
|
+
*/
|
|
2484
|
+
directionTransition?: Transition;
|
|
2485
|
+
/**
|
|
2486
|
+
* Snow flake particle size. Correlates with individual particle screen size
|
|
2487
|
+
*/
|
|
2488
|
+
flakeSize?: Value<number, ['zoom', 'measure-light']>;
|
|
2489
|
+
|
|
2490
|
+
/**
|
|
2491
|
+
* The transition affecting any changes to this layer’s flakeSize property.
|
|
2492
|
+
*/
|
|
2493
|
+
flakeSizeTransition?: Transition;
|
|
2494
|
+
}
|
|
2495
|
+
export interface RainLayerStyleProps {
|
|
2496
|
+
/**
|
|
2497
|
+
* Rain particles density. Controls the overall screen density of the rain.
|
|
2498
|
+
*/
|
|
2499
|
+
density?: Value<number, ['zoom', 'measure-light']>;
|
|
2500
|
+
|
|
2501
|
+
/**
|
|
2502
|
+
* The transition affecting any changes to this layer’s density property.
|
|
2503
|
+
*/
|
|
2504
|
+
densityTransition?: Transition;
|
|
2505
|
+
/**
|
|
2506
|
+
* Rain particles movement factor. Controls the overall rain particles speed
|
|
2507
|
+
*/
|
|
2508
|
+
intensity?: Value<number, ['zoom', 'measure-light']>;
|
|
2509
|
+
|
|
2510
|
+
/**
|
|
2511
|
+
* The transition affecting any changes to this layer’s intensity property.
|
|
2512
|
+
*/
|
|
2513
|
+
intensityTransition?: Transition;
|
|
2514
|
+
/**
|
|
2515
|
+
* Individual rain particle dorplets color.
|
|
2516
|
+
*/
|
|
2517
|
+
color?: Value<string, ['zoom', 'measure-light']>;
|
|
2518
|
+
|
|
2519
|
+
/**
|
|
2520
|
+
* The transition affecting any changes to this layer’s color property.
|
|
2521
|
+
*/
|
|
2522
|
+
colorTransition?: Transition;
|
|
2523
|
+
/**
|
|
2524
|
+
* Rain particles opacity.
|
|
2525
|
+
*/
|
|
2526
|
+
opacity?: Value<number, ['zoom', 'measure-light']>;
|
|
2527
|
+
|
|
2528
|
+
/**
|
|
2529
|
+
* The transition affecting any changes to this layer’s opacity property.
|
|
2530
|
+
*/
|
|
2531
|
+
opacityTransition?: Transition;
|
|
2532
|
+
/**
|
|
2533
|
+
* ScreenSpace vignette rain tinting effect intensity.
|
|
2534
|
+
*/
|
|
2535
|
+
vignette?: Value<number, ['zoom', 'measure-light']>;
|
|
2536
|
+
|
|
2537
|
+
/**
|
|
2538
|
+
* The transition affecting any changes to this layer’s vignette property.
|
|
2539
|
+
*/
|
|
2540
|
+
vignetteTransition?: Transition;
|
|
2541
|
+
/**
|
|
2542
|
+
* Rain vignette screenSpace corners tint color.
|
|
2543
|
+
*/
|
|
2544
|
+
vignetteColor?: Value<string, ['zoom', 'measure-light']>;
|
|
2545
|
+
|
|
2546
|
+
/**
|
|
2547
|
+
* The transition affecting any changes to this layer’s vignetteColor property.
|
|
2548
|
+
*/
|
|
2549
|
+
vignetteColorTransition?: Transition;
|
|
2550
|
+
/**
|
|
2551
|
+
* Thinning factor of rain particles from center. 0 no thinning. 1 maximal central area thinning.
|
|
2552
|
+
*/
|
|
2553
|
+
centerThinning?: Value<number, ['zoom', 'measure-light']>;
|
|
2554
|
+
|
|
2555
|
+
/**
|
|
2556
|
+
* The transition affecting any changes to this layer’s centerThinning property.
|
|
2557
|
+
*/
|
|
2558
|
+
centerThinningTransition?: Transition;
|
|
2559
|
+
/**
|
|
2560
|
+
* Main rain particles direction. Azimuth and polar angles.
|
|
2561
|
+
*/
|
|
2562
|
+
direction?: Value<number[], ['zoom', 'measure-light']>;
|
|
2563
|
+
|
|
2564
|
+
/**
|
|
2565
|
+
* The transition affecting any changes to this layer’s direction property.
|
|
2566
|
+
*/
|
|
2567
|
+
directionTransition?: Transition;
|
|
2568
|
+
/**
|
|
2569
|
+
* Rain droplet size. x normal to direction, y along direction
|
|
2570
|
+
*/
|
|
2571
|
+
dropletSize?: Value<number[], ['zoom', 'measure-light']>;
|
|
2572
|
+
|
|
2573
|
+
/**
|
|
2574
|
+
* The transition affecting any changes to this layer’s dropletSize property.
|
|
2575
|
+
*/
|
|
2576
|
+
dropletSizeTransition?: Transition;
|
|
2577
|
+
/**
|
|
2578
|
+
* Rain particles screenSpace distortion strength.
|
|
2579
|
+
*/
|
|
2580
|
+
distortionStrength?: Value<number, ['zoom', 'measure-light']>;
|
|
2581
|
+
|
|
2582
|
+
/**
|
|
2583
|
+
* The transition affecting any changes to this layer’s distortionStrength property.
|
|
2584
|
+
*/
|
|
2585
|
+
distortionStrengthTransition?: Transition;
|
|
2586
|
+
}
|
|
2368
2587
|
export interface TerrainLayerStyleProps {
|
|
2369
2588
|
/**
|
|
2370
2589
|
* Exaggerates the elevation of the terrain by multiplying the data from the DEM with this value.
|
|
@@ -2389,4 +2608,6 @@ export type AllLayerStyleProps =
|
|
|
2389
2608
|
| SkyLayerStyleProps
|
|
2390
2609
|
| LightLayerStyleProps
|
|
2391
2610
|
| AtmosphereLayerStyleProps
|
|
2611
|
+
| SnowLayerStyleProps
|
|
2612
|
+
| RainLayerStyleProps
|
|
2392
2613
|
| TerrainLayerStyleProps;
|
package/src/utils/StyleValue.ts
CHANGED
|
@@ -4,7 +4,7 @@ import BridgeValue, {
|
|
|
4
4
|
type RawValueType,
|
|
5
5
|
type StyleValueJSON,
|
|
6
6
|
} from './BridgeValue';
|
|
7
|
-
import { AllLayerStyleProps } from './MapboxStyles';
|
|
7
|
+
import { type AllLayerStyleProps } from './MapboxStyles';
|
|
8
8
|
import { getStyleType } from './styleMap';
|
|
9
9
|
|
|
10
10
|
export type StyleValue = {
|
package/src/utils/index.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
findNodeHandle,
|
|
4
4
|
Platform,
|
|
5
5
|
Image,
|
|
6
|
-
ImageSourcePropType,
|
|
7
|
-
TurboModule,
|
|
6
|
+
type ImageSourcePropType,
|
|
7
|
+
type TurboModule,
|
|
8
8
|
} from 'react-native';
|
|
9
9
|
|
|
10
10
|
export function isAndroid(): boolean {
|
package/src/utils/nativeRef.ts
CHANGED
package/src/utils/styleMap.ts
CHANGED
|
@@ -73,6 +73,8 @@ const styleMap = {
|
|
|
73
73
|
lineZOffset: StyleTypes.Constant,
|
|
74
74
|
lineElevationReference: StyleTypes.Enum,
|
|
75
75
|
lineCrossSlope: StyleTypes.Constant,
|
|
76
|
+
lineElevationGroundScale: StyleTypes.Constant,
|
|
77
|
+
lineElevationGroundScaleTransition: StyleTypes.Transition,
|
|
76
78
|
linePatternCrossFade: StyleTypes.Constant,
|
|
77
79
|
lineTrimFadeRange: StyleTypes.Constant,
|
|
78
80
|
lineTrimColor: StyleTypes.Color,
|
|
@@ -161,6 +163,9 @@ const styleMap = {
|
|
|
161
163
|
textOcclusionOpacity: StyleTypes.Constant,
|
|
162
164
|
textOcclusionOpacityTransition: StyleTypes.Transition,
|
|
163
165
|
iconColorSaturation: StyleTypes.Constant,
|
|
166
|
+
iconColorContrast: StyleTypes.Constant,
|
|
167
|
+
iconColorBrightnessMin: StyleTypes.Constant,
|
|
168
|
+
iconColorBrightnessMax: StyleTypes.Constant,
|
|
164
169
|
symbolZOffset: StyleTypes.Constant,
|
|
165
170
|
symbolZOffsetTransition: StyleTypes.Transition,
|
|
166
171
|
|
|
@@ -243,6 +248,7 @@ const styleMap = {
|
|
|
243
248
|
fillExtrusionEmissiveStrengthTransition: StyleTypes.Transition,
|
|
244
249
|
fillExtrusionLineWidth: StyleTypes.Constant,
|
|
245
250
|
fillExtrusionLineWidthTransition: StyleTypes.Transition,
|
|
251
|
+
fillExtrusionCastShadows: StyleTypes.Constant,
|
|
246
252
|
|
|
247
253
|
rasterOpacity: StyleTypes.Constant,
|
|
248
254
|
rasterOpacityTransition: StyleTypes.Transition,
|
|
@@ -289,6 +295,8 @@ const styleMap = {
|
|
|
289
295
|
hillshadeHighlightColorTransition: StyleTypes.Transition,
|
|
290
296
|
hillshadeAccentColor: StyleTypes.Color,
|
|
291
297
|
hillshadeAccentColorTransition: StyleTypes.Transition,
|
|
298
|
+
hillshadeEmissiveStrength: StyleTypes.Constant,
|
|
299
|
+
hillshadeEmissiveStrengthTransition: StyleTypes.Transition,
|
|
292
300
|
|
|
293
301
|
modelAllowDensityReduction: StyleTypes.Constant,
|
|
294
302
|
modelId: StyleTypes.Constant,
|
|
@@ -357,6 +365,26 @@ const styleMap = {
|
|
|
357
365
|
verticalRange: StyleTypes.Constant,
|
|
358
366
|
verticalRangeTransition: StyleTypes.Transition,
|
|
359
367
|
|
|
368
|
+
density: StyleTypes.Constant,
|
|
369
|
+
densityTransition: StyleTypes.Transition,
|
|
370
|
+
opacity: StyleTypes.Constant,
|
|
371
|
+
opacityTransition: StyleTypes.Transition,
|
|
372
|
+
vignette: StyleTypes.Constant,
|
|
373
|
+
vignetteTransition: StyleTypes.Transition,
|
|
374
|
+
vignetteColor: StyleTypes.Color,
|
|
375
|
+
vignetteColorTransition: StyleTypes.Transition,
|
|
376
|
+
centerThinning: StyleTypes.Constant,
|
|
377
|
+
centerThinningTransition: StyleTypes.Transition,
|
|
378
|
+
direction: StyleTypes.Constant,
|
|
379
|
+
directionTransition: StyleTypes.Transition,
|
|
380
|
+
flakeSize: StyleTypes.Constant,
|
|
381
|
+
flakeSizeTransition: StyleTypes.Transition,
|
|
382
|
+
|
|
383
|
+
dropletSize: StyleTypes.Constant,
|
|
384
|
+
dropletSizeTransition: StyleTypes.Transition,
|
|
385
|
+
distortionStrength: StyleTypes.Constant,
|
|
386
|
+
distortionStrengthTransition: StyleTypes.Transition,
|
|
387
|
+
|
|
360
388
|
exaggeration: StyleTypes.Constant,
|
|
361
389
|
|
|
362
390
|
color: StyleTypes.Color,
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import { Component, ContextType } from 'react';
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { Component, type ContextType } from 'react';
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
type CameraProps,
|
|
5
|
+
type CameraStop,
|
|
6
|
+
type CameraRef,
|
|
7
|
+
} from '../../components/Camera';
|
|
8
|
+
import { type Position } from '../../types/Position';
|
|
5
9
|
import MapContext from '../MapContext';
|
|
6
10
|
|
|
7
11
|
function isArray<T>(value: T | ArrayLike<T>): value is ArrayLike<T> {
|