@aguacerowx/react-native 0.0.8 → 0.0.12
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 +60 -60
- package/android/build.gradle +83 -84
- package/android/src/main/AndroidManifest.xml +6 -6
- package/android/src/main/java/com/aguacerowx/reactnative/AguaceroPackage.java +33 -33
- package/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayer.java +611 -607
- package/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayerView.java +299 -297
- package/android/src/main/java/com/aguacerowx/reactnative/GridRenderManager.java +117 -117
- package/android/src/main/java/com/aguacerowx/reactnative/InspectorModule.java +71 -63
- package/android/src/main/java/com/aguacerowx/reactnative/ShaderUtils.java +106 -106
- package/android/src/main/java/com/aguacerowx/reactnative/WeatherFrameProcessorModule.java +151 -165
- package/android/src/main/java/com/facebook/react/viewmanagers/.gitkeep +0 -0
- package/android/src/main/java/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.java +0 -0
- package/android/src/main/java/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.java +0 -0
- package/android/src/main/res/raw/debug_fragment_shader.glsl +12 -12
- package/android/src/main/res/raw/debug_vertex_shader.glsl +12 -12
- package/android/src/main/res/raw/fragment_shader.glsl +97 -97
- package/android/src/main/res/raw/vertex_shader.glsl +19 -19
- package/index.js +1 -1
- package/ios/AguaceroPackage.m +19 -0
- package/ios/FragmentUniforms.swift +14 -0
- package/ios/GridRenderLayer.swift +962 -62
- package/ios/GridRenderLayerBridge.swift +30 -0
- package/ios/GridRenderLayerManager.mm +145 -139
- package/ios/GridRenderLayerView.h +23 -0
- package/ios/GridRenderLayerView.m +199 -0
- package/ios/InspectorDataCache.swift +66 -0
- package/ios/InspectorModule.m +10 -0
- package/ios/InspectorModule.swift +64 -0
- package/ios/Shaders.metal +131 -0
- package/ios/WeatherFrameProcessorModule.m +16 -0
- package/ios/WeatherFrameProcessorModule.swift +104 -0
- package/ios/aguacerowx-react-native.podspec +36 -28
- package/ios/generated/.gitkeep +0 -0
- package/ios/generated/AguaceroWxReactNativeSpec-generated.mm +0 -0
- package/ios/generated/AguaceroWxReactNativeSpec.h +0 -0
- package/lib/commonjs/README.md +60 -60
- package/lib/commonjs/android/build.gradle +83 -84
- package/lib/commonjs/android/src/main/AndroidManifest.xml +6 -6
- package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/AguaceroPackage.java +33 -33
- package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayer.java +611 -607
- package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayerView.java +299 -297
- package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/GridRenderManager.java +117 -117
- package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/InspectorModule.java +71 -63
- package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/ShaderUtils.java +106 -106
- package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/WeatherFrameProcessorModule.java +151 -165
- package/lib/commonjs/android/src/main/java/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.java +0 -0
- package/lib/commonjs/android/src/main/java/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.java +0 -0
- package/lib/commonjs/android/src/main/res/raw/debug_fragment_shader.glsl +12 -12
- package/lib/commonjs/android/src/main/res/raw/debug_vertex_shader.glsl +12 -12
- package/lib/commonjs/android/src/main/res/raw/fragment_shader.glsl +97 -97
- package/lib/commonjs/android/src/main/res/raw/vertex_shader.glsl +19 -19
- package/lib/commonjs/babel.config.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/ios/AguaceroPackage.m +19 -0
- package/lib/commonjs/ios/FragmentUniforms.swift +14 -0
- package/lib/commonjs/ios/GridRenderLayer.swift +962 -0
- package/lib/commonjs/ios/GridRenderLayerBridge.swift +30 -0
- package/lib/commonjs/ios/GridRenderLayerManager.mm +146 -0
- package/lib/commonjs/ios/GridRenderLayerView.h +23 -0
- package/lib/commonjs/ios/GridRenderLayerView.m +199 -0
- package/lib/commonjs/ios/InspectorDataCache.swift +66 -0
- package/lib/commonjs/ios/InspectorModule.m +10 -0
- package/lib/commonjs/ios/InspectorModule.swift +64 -0
- package/lib/commonjs/ios/Shaders.metal +131 -0
- package/lib/commonjs/ios/WeatherFrameProcessorModule.m +16 -0
- package/lib/commonjs/ios/WeatherFrameProcessorModule.swift +104 -0
- package/lib/commonjs/ios/aguacerowx-react-native.podspec +37 -0
- package/lib/commonjs/ios/generated/AguaceroWxReactNativeSpec-generated.mm +0 -0
- package/lib/commonjs/ios/generated/AguaceroWxReactNativeSpec.h +0 -0
- package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/AguaceroCore.js +1003 -0
- package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/AguaceroCore.js.map +1 -0
- package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/coordinate_configs.js +381 -0
- package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/coordinate_configs.js.map +1 -0
- package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/default-colormaps.js +1229 -0
- package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/default-colormaps.js.map +1 -0
- package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/dictionaries.js +4023 -0
- package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/dictionaries.js.map +1 -0
- package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/events.js +38 -0
- package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/events.js.map +1 -0
- package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/fill-layer-worker.js +30 -0
- package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/fill-layer-worker.js.map +1 -0
- package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/getBundleId.js +27 -0
- package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/getBundleId.js.map +1 -0
- package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/index.js +47 -0
- package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/index.js.map +1 -0
- package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/map-styles.js +301 -0
- package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/map-styles.js.map +1 -0
- package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/unitConversions.js +126 -0
- package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/unitConversions.js.map +1 -0
- package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/package.json +48 -0
- package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/AguaceroCore.js +1029 -0
- package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/AguaceroCore.js.map +1 -0
- package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/coordinate_configs.js +381 -0
- package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/coordinate_configs.js.map +1 -0
- package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/default-colormaps.js +1229 -0
- package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/default-colormaps.js.map +1 -0
- package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/dictionaries.js +4023 -0
- package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/dictionaries.js.map +1 -0
- package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/events.js +38 -0
- package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/events.js.map +1 -0
- package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/fill-layer-worker.js +30 -0
- package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/fill-layer-worker.js.map +1 -0
- package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/getBundleId.js +27 -0
- package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/getBundleId.js.map +1 -0
- package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/index.js +41 -0
- package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/index.js.map +1 -0
- package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/map-styles.js +301 -0
- package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/map-styles.js.map +1 -0
- package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/unitConversions.js +126 -0
- package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/unitConversions.js.map +1 -0
- package/lib/commonjs/package.json +71 -73
- package/lib/commonjs/react-native-builder-bob.config.js.map +1 -1
- package/lib/commonjs/src/AguaceroContext.js.map +1 -1
- package/lib/commonjs/src/GridRenderLayer.js +32 -7
- package/lib/commonjs/src/GridRenderLayer.js.map +1 -1
- package/lib/commonjs/src/GridRenderLayerNativeComponent.js.map +1 -1
- package/lib/commonjs/src/MapManager.js +1 -4
- package/lib/commonjs/src/MapManager.js.map +1 -1
- package/lib/commonjs/src/MapRegistry.js.map +1 -1
- package/lib/commonjs/src/StyleApplicator.js +6 -6
- package/lib/commonjs/src/StyleApplicator.js.map +1 -1
- package/lib/commonjs/src/WeatherLayerManager.js +238 -212
- package/lib/commonjs/src/WeatherLayerManager.js.map +1 -1
- package/lib/commonjs/tsconfig.json +23 -23
- package/lib/module/README.md +60 -60
- package/lib/module/android/build.gradle +83 -84
- package/lib/module/android/src/main/AndroidManifest.xml +6 -6
- package/lib/module/android/src/main/java/com/aguacerowx/reactnative/AguaceroPackage.java +33 -33
- package/lib/module/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayer.java +611 -607
- package/lib/module/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayerView.java +299 -297
- package/lib/module/android/src/main/java/com/aguacerowx/reactnative/GridRenderManager.java +117 -117
- package/lib/module/android/src/main/java/com/aguacerowx/reactnative/InspectorModule.java +71 -63
- package/lib/module/android/src/main/java/com/aguacerowx/reactnative/ShaderUtils.java +106 -106
- package/lib/module/android/src/main/java/com/aguacerowx/reactnative/WeatherFrameProcessorModule.java +151 -165
- package/lib/module/android/src/main/java/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.java +0 -0
- package/lib/module/android/src/main/java/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.java +0 -0
- package/lib/module/android/src/main/res/raw/debug_fragment_shader.glsl +12 -12
- package/lib/module/android/src/main/res/raw/debug_vertex_shader.glsl +12 -12
- package/lib/module/android/src/main/res/raw/fragment_shader.glsl +97 -97
- package/lib/module/android/src/main/res/raw/vertex_shader.glsl +19 -19
- package/lib/module/babel.config.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/ios/AguaceroPackage.m +19 -0
- package/lib/module/ios/FragmentUniforms.swift +14 -0
- package/lib/module/ios/GridRenderLayer.swift +962 -0
- package/lib/module/ios/GridRenderLayerBridge.swift +30 -0
- package/lib/module/ios/GridRenderLayerManager.mm +146 -0
- package/lib/module/ios/GridRenderLayerView.h +23 -0
- package/lib/module/ios/GridRenderLayerView.m +199 -0
- package/lib/module/ios/InspectorDataCache.swift +66 -0
- package/lib/module/ios/InspectorModule.m +10 -0
- package/lib/module/ios/InspectorModule.swift +64 -0
- package/lib/module/ios/Shaders.metal +131 -0
- package/lib/module/ios/WeatherFrameProcessorModule.m +16 -0
- package/lib/module/ios/WeatherFrameProcessorModule.swift +104 -0
- package/lib/module/ios/aguacerowx-react-native.podspec +37 -0
- package/lib/module/ios/generated/AguaceroWxReactNativeSpec-generated.mm +0 -0
- package/lib/module/ios/generated/AguaceroWxReactNativeSpec.h +0 -0
- package/lib/module/lib/commonjs/README.md +60 -60
- package/lib/module/lib/commonjs/android/build.gradle +83 -84
- package/lib/module/lib/commonjs/android/src/main/AndroidManifest.xml +6 -6
- package/lib/module/lib/commonjs/babel.config.js.map +1 -1
- package/lib/module/lib/commonjs/index.js.map +1 -1
- package/lib/module/lib/commonjs/ios/AguaceroPackage.m +19 -0
- package/lib/module/lib/commonjs/ios/FragmentUniforms.swift +14 -0
- package/lib/module/lib/commonjs/ios/GridRenderLayer.swift +962 -0
- package/lib/module/lib/commonjs/ios/GridRenderLayerBridge.swift +30 -0
- package/lib/module/lib/commonjs/ios/GridRenderLayerManager.mm +146 -0
- package/lib/module/lib/commonjs/ios/GridRenderLayerView.h +23 -0
- package/lib/module/lib/commonjs/ios/GridRenderLayerView.m +199 -0
- package/lib/module/lib/commonjs/ios/InspectorDataCache.swift +66 -0
- package/lib/module/lib/commonjs/ios/InspectorModule.m +10 -0
- package/lib/module/lib/commonjs/ios/InspectorModule.swift +64 -0
- package/lib/module/lib/commonjs/ios/Shaders.metal +131 -0
- package/lib/module/lib/commonjs/ios/WeatherFrameProcessorModule.m +16 -0
- package/lib/module/lib/commonjs/ios/WeatherFrameProcessorModule.swift +104 -0
- package/lib/module/lib/commonjs/ios/aguacerowx-react-native.podspec +37 -0
- package/lib/module/lib/commonjs/ios/generated/AguaceroWxReactNativeSpec-generated.mm +0 -0
- package/lib/module/lib/commonjs/ios/generated/AguaceroWxReactNativeSpec.h +0 -0
- package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/AguaceroCore.js +1003 -0
- package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/AguaceroCore.js.map +1 -0
- package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/coordinate_configs.js +381 -0
- package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/coordinate_configs.js.map +1 -0
- package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/default-colormaps.js +1229 -0
- package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/default-colormaps.js.map +1 -0
- package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/dictionaries.js +4023 -0
- package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/dictionaries.js.map +1 -0
- package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/events.js +38 -0
- package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/events.js.map +1 -0
- package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/fill-layer-worker.js +30 -0
- package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/fill-layer-worker.js.map +1 -0
- package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/getBundleId.js +27 -0
- package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/getBundleId.js.map +1 -0
- package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/index.js +47 -0
- package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/index.js.map +1 -0
- package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/map-styles.js +301 -0
- package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/map-styles.js.map +1 -0
- package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/unitConversions.js +126 -0
- package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/unitConversions.js.map +1 -0
- package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/package.json +48 -0
- package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/AguaceroCore.js +1033 -0
- package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/AguaceroCore.js.map +1 -0
- package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/coordinate_configs.js +381 -0
- package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/coordinate_configs.js.map +1 -0
- package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/default-colormaps.js +1229 -0
- package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/default-colormaps.js.map +1 -0
- package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/dictionaries.js +4023 -0
- package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/dictionaries.js.map +1 -0
- package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/events.js +38 -0
- package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/events.js.map +1 -0
- package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/fill-layer-worker.js +30 -0
- package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/fill-layer-worker.js.map +1 -0
- package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/getBundleId.js +27 -0
- package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/getBundleId.js.map +1 -0
- package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/index.js +41 -0
- package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/index.js.map +1 -0
- package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/map-styles.js +301 -0
- package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/map-styles.js.map +1 -0
- package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/unitConversions.js +126 -0
- package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/unitConversions.js.map +1 -0
- package/lib/module/lib/commonjs/package.json +71 -73
- package/lib/module/lib/commonjs/react-native-builder-bob.config.js.map +1 -1
- package/lib/module/lib/commonjs/src/AguaceroContext.js.map +1 -1
- package/lib/module/lib/commonjs/src/GridRenderLayer.js +32 -7
- package/lib/module/lib/commonjs/src/GridRenderLayer.js.map +1 -1
- package/lib/module/lib/commonjs/src/GridRenderLayerNativeComponent.js.map +1 -1
- package/lib/module/lib/commonjs/src/MapManager.js +1 -4
- package/lib/module/lib/commonjs/src/MapManager.js.map +1 -1
- package/lib/module/lib/commonjs/src/MapRegistry.js.map +1 -1
- package/lib/module/lib/commonjs/src/StyleApplicator.js +6 -6
- package/lib/module/lib/commonjs/src/StyleApplicator.js.map +1 -1
- package/lib/module/lib/commonjs/src/WeatherLayerManager.js +238 -212
- package/lib/module/lib/commonjs/src/WeatherLayerManager.js.map +1 -1
- package/lib/module/lib/commonjs/tsconfig.json +23 -23
- package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/AguaceroCore.js +1003 -0
- package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/AguaceroCore.js.map +1 -0
- package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/coordinate_configs.js +381 -0
- package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/coordinate_configs.js.map +1 -0
- package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/default-colormaps.js +1229 -0
- package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/default-colormaps.js.map +1 -0
- package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/dictionaries.js +4023 -0
- package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/dictionaries.js.map +1 -0
- package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/events.js +38 -0
- package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/events.js.map +1 -0
- package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/fill-layer-worker.js +30 -0
- package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/fill-layer-worker.js.map +1 -0
- package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/getBundleId.js +27 -0
- package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/getBundleId.js.map +1 -0
- package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/index.js +47 -0
- package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/index.js.map +1 -0
- package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/map-styles.js +301 -0
- package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/map-styles.js.map +1 -0
- package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/unitConversions.js +126 -0
- package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/unitConversions.js.map +1 -0
- package/lib/module/node_modules/@aguacerowx/javascript-sdk/package.json +48 -0
- package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/AguaceroCore.js +1021 -0
- package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/AguaceroCore.js.map +1 -0
- package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/coordinate_configs.js +375 -0
- package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/coordinate_configs.js.map +1 -0
- package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/default-colormaps.js +1223 -0
- package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/default-colormaps.js.map +1 -0
- package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/dictionaries.js +4017 -0
- package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/dictionaries.js.map +1 -0
- package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/events.js +31 -0
- package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/events.js.map +1 -0
- package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/fill-layer-worker.js +29 -0
- package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/fill-layer-worker.js.map +1 -0
- package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/getBundleId.js +21 -0
- package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/getBundleId.js.map +1 -0
- package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/index.js +12 -0
- package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/index.js.map +1 -0
- package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/map-styles.js +295 -0
- package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/map-styles.js.map +1 -0
- package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/unitConversions.js +119 -0
- package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/unitConversions.js.map +1 -0
- package/lib/module/package.json +71 -73
- package/lib/module/react-native-builder-bob.config.js.map +1 -1
- package/lib/module/src/AguaceroContext.js.map +1 -1
- package/lib/module/src/GridRenderLayer.js +32 -7
- package/lib/module/src/GridRenderLayer.js.map +1 -1
- package/lib/module/src/GridRenderLayerNativeComponent.js.map +1 -1
- package/lib/module/src/MapManager.js +1 -4
- package/lib/module/src/MapManager.js.map +1 -1
- package/lib/module/src/MapRegistry.js.map +1 -1
- package/lib/module/src/StyleApplicator.js +6 -6
- package/lib/module/src/StyleApplicator.js.map +1 -1
- package/lib/module/src/WeatherLayerManager.js +239 -213
- package/lib/module/src/WeatherLayerManager.js.map +1 -1
- package/lib/module/tsconfig.json +23 -23
- package/lib/typescript/src/GridRenderLayer.d.ts.map +1 -1
- package/lib/typescript/src/MapManager.d.ts.map +1 -1
- package/lib/typescript/src/WeatherLayerManager.d.ts.map +1 -1
- package/package.json +71 -73
- package/src/AguaceroContext.js +4 -0
- package/src/GridRenderLayer.js +205 -0
- package/src/GridRenderLayerNativeComponent.ts +16 -0
- package/src/MapManager.js +156 -0
- package/src/MapRegistry.js +35 -0
- package/src/StyleApplicator.js +241 -0
- package/src/WeatherLayerManager.js +873 -0
- package/android/build/.transforms/78b892a9dae44f36e51ff0649e9c6e36/results.bin +0 -1
- package/android/build/.transforms/78b892a9dae44f36e51ff0649e9c6e36/transformed/classes/classes_dex/classes.dex +0 -0
- package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/results.bin +0 -1
- package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/AguaceroPackage.dex +0 -0
- package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/BuildConfig.dex +0 -0
- package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.dex +0 -0
- package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/GridRenderLayer.dex +0 -0
- package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/GridRenderLayerView.dex +0 -0
- package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/GridRenderManager.dex +0 -0
- package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/InspectorModule.dex +0 -0
- package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/ShaderUtils.dex +0 -0
- package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/WeatherFrameProcessorModule.dex +0 -0
- package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
- package/android/build/generated/source/buildConfig/debug/com/aguacerowx/reactnative/BuildConfig.java +0 -10
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +0 -8
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +0 -18
- package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +0 -6
- package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +0 -1
- package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +0 -4
- package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_fragment_shader.glsl.flat +0 -0
- package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_vertex_shader.glsl.flat +0 -0
- package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_fragment_shader.glsl.flat +0 -0
- package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_vertex_shader.glsl.flat +0 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +0 -5
- package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +0 -2
- package/android/build/intermediates/incremental/mergeDebugAssets/merger.xml +0 -2
- package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +0 -2
- package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +0 -2
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/BuildConfig.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/InspectorModule.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
- package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +0 -6
- package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +0 -8
- package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +0 -8
- package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +0 -1
- package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +0 -1
- package/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_fragment_shader.glsl +0 -13
- package/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_vertex_shader.glsl +0 -13
- package/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/fragment_shader.glsl +0 -98
- package/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/vertex_shader.glsl +0 -20
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/BuildConfig.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/InspectorModule.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
- package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +0 -5
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +0 -17
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/AguaceroPackage.class.uniqueId1 +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayerView.class.uniqueId2 +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderManager.class.uniqueId3 +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/InspectorModule.class.uniqueId0 +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/lib/commonjs/android/build/generated/source/buildConfig/debug/com/aguacerowx/reactnative/BuildConfig.java +0 -10
- package/lib/commonjs/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +0 -8
- package/lib/commonjs/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +0 -18
- package/lib/commonjs/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +0 -6
- package/lib/commonjs/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +0 -1
- package/lib/commonjs/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
- package/lib/commonjs/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
- package/lib/commonjs/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +0 -4
- package/lib/commonjs/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_fragment_shader.glsl.flat +0 -0
- package/lib/commonjs/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_vertex_shader.glsl.flat +0 -0
- package/lib/commonjs/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_fragment_shader.glsl.flat +0 -0
- package/lib/commonjs/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_vertex_shader.glsl.flat +0 -0
- package/lib/commonjs/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +0 -5
- package/lib/commonjs/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +0 -2
- package/lib/commonjs/android/build/intermediates/incremental/mergeDebugAssets/merger.xml +0 -2
- package/lib/commonjs/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +0 -2
- package/lib/commonjs/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +0 -2
- package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
- package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/BuildConfig.class +0 -0
- package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
- package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
- package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
- package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
- package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/InspectorModule.class +0 -0
- package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
- package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
- package/lib/commonjs/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +0 -6
- package/lib/commonjs/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +0 -8
- package/lib/commonjs/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +0 -8
- package/lib/commonjs/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +0 -1
- package/lib/commonjs/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +0 -1
- package/lib/commonjs/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_fragment_shader.glsl +0 -13
- package/lib/commonjs/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_vertex_shader.glsl +0 -13
- package/lib/commonjs/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/fragment_shader.glsl +0 -98
- package/lib/commonjs/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/vertex_shader.glsl +0 -20
- package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
- package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/BuildConfig.class +0 -0
- package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
- package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
- package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
- package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
- package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/InspectorModule.class +0 -0
- package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
- package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
- package/lib/commonjs/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
- package/lib/commonjs/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +0 -5
- package/lib/commonjs/android/build/outputs/logs/manifest-merger-debug-report.txt +0 -17
- package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/AguaceroPackage.class.uniqueId1 +0 -0
- package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayerView.class.uniqueId2 +0 -0
- package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderManager.class.uniqueId3 +0 -0
- package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/InspectorModule.class.uniqueId0 +0 -0
- package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/lib/module/android/build/generated/source/buildConfig/debug/com/aguacerowx/reactnative/BuildConfig.java +0 -10
- package/lib/module/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +0 -8
- package/lib/module/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +0 -18
- package/lib/module/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +0 -6
- package/lib/module/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +0 -1
- package/lib/module/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
- package/lib/module/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
- package/lib/module/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +0 -4
- package/lib/module/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_fragment_shader.glsl.flat +0 -0
- package/lib/module/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_vertex_shader.glsl.flat +0 -0
- package/lib/module/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_fragment_shader.glsl.flat +0 -0
- package/lib/module/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_vertex_shader.glsl.flat +0 -0
- package/lib/module/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +0 -5
- package/lib/module/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +0 -2
- package/lib/module/android/build/intermediates/incremental/mergeDebugAssets/merger.xml +0 -2
- package/lib/module/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +0 -2
- package/lib/module/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +0 -2
- package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
- package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/BuildConfig.class +0 -0
- package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
- package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
- package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
- package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
- package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/InspectorModule.class +0 -0
- package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
- package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
- package/lib/module/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +0 -6
- package/lib/module/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +0 -8
- package/lib/module/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +0 -8
- package/lib/module/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +0 -1
- package/lib/module/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +0 -1
- package/lib/module/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_fragment_shader.glsl +0 -13
- package/lib/module/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_vertex_shader.glsl +0 -13
- package/lib/module/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/fragment_shader.glsl +0 -98
- package/lib/module/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/vertex_shader.glsl +0 -20
- package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
- package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/BuildConfig.class +0 -0
- package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
- package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
- package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
- package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
- package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/InspectorModule.class +0 -0
- package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
- package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
- package/lib/module/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
- package/lib/module/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +0 -5
- package/lib/module/android/build/outputs/logs/manifest-merger-debug-report.txt +0 -17
- package/lib/module/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/AguaceroPackage.class.uniqueId1 +0 -0
- package/lib/module/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayerView.class.uniqueId2 +0 -0
- package/lib/module/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderManager.class.uniqueId3 +0 -0
- package/lib/module/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/InspectorModule.class.uniqueId0 +0 -0
- package/lib/module/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
|
@@ -14,13 +14,19 @@ var _MapRegistry = require("./MapRegistry");
|
|
|
14
14
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
15
15
|
// packages/react-native/src/WeatherLayerManager.js
|
|
16
16
|
|
|
17
|
+
console.log("--- Aguacero Native Module Initial State Check ---");
|
|
18
|
+
console.log("All NativeModules:", Object.keys(_reactNative.NativeModules));
|
|
19
|
+
console.log("WeatherFrameProcessorModule available?:", !!_reactNative.NativeModules.WeatherFrameProcessorModule);
|
|
20
|
+
console.log("InspectorModule available?:", !!_reactNative.NativeModules.InspectorModule);
|
|
21
|
+
console.log("GridRenderLayerManager available?:", !!_reactNative.NativeModules.GridRenderLayerManager);
|
|
22
|
+
console.log("-------------------------------------------------");
|
|
17
23
|
const {
|
|
18
24
|
WeatherFrameProcessorModule,
|
|
19
25
|
InspectorModule
|
|
20
26
|
} = _reactNative.NativeModules;
|
|
21
27
|
|
|
22
|
-
/**
|
|
23
|
-
* A helper function to generate the raw RGBA byte buffer for the colormap texture.
|
|
28
|
+
/**
|
|
29
|
+
* A helper function to generate the raw RGBA byte buffer for the colormap texture.
|
|
24
30
|
*/
|
|
25
31
|
const _generateColormapBytes = colormap => {
|
|
26
32
|
const width = 256;
|
|
@@ -95,6 +101,7 @@ const WeatherLayerManager = exports.WeatherLayerManager = /*#__PURE__*/(0, _reac
|
|
|
95
101
|
|
|
96
102
|
// Track if we've done the initial load
|
|
97
103
|
const hasInitialLoad = (0, _react.useRef)(false);
|
|
104
|
+
const hasPreloadedRef = (0, _react.useRef)(false);
|
|
98
105
|
|
|
99
106
|
// Track the last state we processed to avoid redundant updates
|
|
100
107
|
const lastProcessedState = (0, _react.useRef)(null);
|
|
@@ -136,6 +143,12 @@ const WeatherLayerManager = exports.WeatherLayerManager = /*#__PURE__*/(0, _reac
|
|
|
136
143
|
};
|
|
137
144
|
}, [core]);
|
|
138
145
|
const preloadAllFramesToDisk = state => {
|
|
146
|
+
if (hasPreloadedRef.current) {
|
|
147
|
+
console.log('✅ [Preload] Gating preload; already initiated for this dataset.');
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
hasPreloadedRef.current = true;
|
|
151
|
+
console.log('🚀 [Preload] Initiating parallel preload for new dataset...');
|
|
139
152
|
const {
|
|
140
153
|
isMRMS,
|
|
141
154
|
model,
|
|
@@ -144,13 +157,49 @@ const WeatherLayerManager = exports.WeatherLayerManager = /*#__PURE__*/(0, _reac
|
|
|
144
157
|
variable,
|
|
145
158
|
units,
|
|
146
159
|
availableHours,
|
|
147
|
-
availableTimestamps
|
|
160
|
+
availableTimestamps,
|
|
161
|
+
forecastHour,
|
|
162
|
+
mrmsTimestamp
|
|
148
163
|
} = state;
|
|
164
|
+
if (!cachedGeometry.current || !cachedColormap.current) {
|
|
165
|
+
const gridModel = isMRMS ? 'mrms' : model;
|
|
166
|
+
const {
|
|
167
|
+
corners,
|
|
168
|
+
gridDef
|
|
169
|
+
} = core._getGridCornersAndDef(gridModel);
|
|
170
|
+
gridLayerRef.current.updateGeometry(corners, gridDef);
|
|
171
|
+
cachedGeometry.current = {
|
|
172
|
+
model: gridModel,
|
|
173
|
+
variable
|
|
174
|
+
};
|
|
175
|
+
const {
|
|
176
|
+
colormap,
|
|
177
|
+
baseUnit
|
|
178
|
+
} = core._getColormapForVariable(variable);
|
|
179
|
+
const toUnit = core._getTargetUnit(baseUnit, units);
|
|
180
|
+
const finalColormap = core._convertColormapUnits(colormap, baseUnit, toUnit);
|
|
181
|
+
const dataRange = [finalColormap[0], finalColormap[finalColormap.length - 2]];
|
|
182
|
+
const colormapBytes = _generateColormapBytes(finalColormap);
|
|
183
|
+
const colormapAsBase64 = (0, _base64Js.fromByteArray)(colormapBytes);
|
|
184
|
+
gridLayerRef.current.updateColormapTexture(colormapAsBase64);
|
|
185
|
+
cachedColormap.current = {
|
|
186
|
+
key: `${variable}-${units}`
|
|
187
|
+
};
|
|
188
|
+
cachedDataRange.current = dataRange;
|
|
189
|
+
setRenderProps({
|
|
190
|
+
opacity: state.opacity,
|
|
191
|
+
dataRange: dataRange
|
|
192
|
+
});
|
|
193
|
+
hasInitialLoad.current = true;
|
|
194
|
+
}
|
|
149
195
|
const allFrames = isMRMS ? availableTimestamps : availableHours;
|
|
150
196
|
if (!allFrames || allFrames.length === 0) {
|
|
151
197
|
console.warn('🟡 [preloadAllFramesToDisk] No frames available to download.');
|
|
152
198
|
return;
|
|
153
199
|
}
|
|
200
|
+
const currentFrame = isMRMS ? mrmsTimestamp : forecastHour;
|
|
201
|
+
const prioritizedFrames = [currentFrame, ...allFrames.filter(frame => frame !== currentFrame)];
|
|
202
|
+
console.log(`[Preload] Prioritizing frame: ${currentFrame}. Total frames: ${prioritizedFrames.length}`);
|
|
154
203
|
const {
|
|
155
204
|
corners,
|
|
156
205
|
gridDef
|
|
@@ -159,14 +208,10 @@ const WeatherLayerManager = exports.WeatherLayerManager = /*#__PURE__*/(0, _reac
|
|
|
159
208
|
nx,
|
|
160
209
|
ny
|
|
161
210
|
} = gridDef.grid_params;
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
let errorCount = 0;
|
|
165
|
-
for (const frame of allFrames) {
|
|
166
|
-
const cacheKey = isMRMS ? `mrms-${frame}-${variable}-${units}` : `${model}-${date}-${run}-${frame}-${variable}-${units}`;
|
|
211
|
+
prioritizedFrames.forEach((frame, index) => {
|
|
212
|
+
const cacheKey = isMRMS ? `mrms-${frame}-${variable}` : `${model}-${date}-${run}-${frame}-${variable}`;
|
|
167
213
|
if (preloadedDataCache.current.has(cacheKey)) {
|
|
168
|
-
|
|
169
|
-
continue;
|
|
214
|
+
return; // Use 'return' here as it's a forEach loop
|
|
170
215
|
}
|
|
171
216
|
let resourcePath;
|
|
172
217
|
if (isMRMS) {
|
|
@@ -184,39 +229,97 @@ const WeatherLayerManager = exports.WeatherLayerManager = /*#__PURE__*/(0, _reac
|
|
|
184
229
|
apiKey: core.apiKey,
|
|
185
230
|
bundleId: core.bundleId
|
|
186
231
|
};
|
|
187
|
-
WeatherFrameProcessorModule.processFrame(options
|
|
188
|
-
if (
|
|
189
|
-
|
|
190
|
-
console.warn(`⚠️ [preloadAllFramesToDisk] Failed frame ${frame}:`, error || "No filePath");
|
|
232
|
+
WeatherFrameProcessorModule.processFrame(options).then(result => {
|
|
233
|
+
if (!result || !result.filePath) {
|
|
234
|
+
console.warn(`⚠️ [preloadAllFramesToDisk] Failed frame ${frame}: No filePath`);
|
|
191
235
|
return;
|
|
192
236
|
}
|
|
193
|
-
|
|
194
|
-
|
|
237
|
+
const {
|
|
238
|
+
baseUnit
|
|
239
|
+
} = core._getColormapForVariable(variable);
|
|
240
|
+
const toUnit = core._getTargetUnit(baseUnit, units);
|
|
241
|
+
let dataScale = result.scale;
|
|
242
|
+
let dataOffset = result.offset;
|
|
243
|
+
|
|
244
|
+
// Calculate converted values for immediate use
|
|
245
|
+
let convertedScale = dataScale;
|
|
246
|
+
let convertedOffset = dataOffset;
|
|
247
|
+
if (baseUnit !== toUnit) {
|
|
248
|
+
const conversionFunc = (0, _javascriptSdk.getUnitConversionFunction)(baseUnit, toUnit);
|
|
249
|
+
if (conversionFunc) {
|
|
250
|
+
if (result.scaleType === 'sqrt') {
|
|
251
|
+
const physicalAtOffset = dataOffset * dataOffset;
|
|
252
|
+
const physicalAtOffsetPlusScale = (dataOffset + dataScale) * (dataOffset + dataScale);
|
|
253
|
+
const convertedPhysicalAtOffset = conversionFunc(physicalAtOffset);
|
|
254
|
+
const convertedPhysicalAtOffsetPlusScale = conversionFunc(physicalAtOffsetPlusScale);
|
|
255
|
+
convertedOffset = Math.sqrt(Math.abs(convertedPhysicalAtOffset)) * Math.sign(convertedPhysicalAtOffset);
|
|
256
|
+
const newOffsetPlusScale = Math.sqrt(Math.abs(convertedPhysicalAtOffsetPlusScale)) * Math.sign(convertedPhysicalAtOffsetPlusScale);
|
|
257
|
+
convertedScale = newOffsetPlusScale - convertedOffset;
|
|
258
|
+
} else {
|
|
259
|
+
convertedOffset = conversionFunc(dataOffset);
|
|
260
|
+
const convertedOffsetPlusScale = conversionFunc(dataOffset + dataScale);
|
|
261
|
+
convertedScale = convertedOffsetPlusScale - convertedOffset;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
// Store with ORIGINAL values for unit conversion later
|
|
267
|
+
const frameData = {
|
|
195
268
|
filePath: result.filePath,
|
|
196
269
|
nx,
|
|
197
270
|
ny,
|
|
198
|
-
scale:
|
|
199
|
-
|
|
271
|
+
scale: convertedScale,
|
|
272
|
+
// Current converted values
|
|
273
|
+
offset: convertedOffset,
|
|
200
274
|
missing: result.missing,
|
|
201
275
|
corners,
|
|
202
276
|
gridDef,
|
|
203
277
|
scaleType: result.scaleType,
|
|
204
278
|
originalScale: result.scale,
|
|
205
|
-
//
|
|
206
|
-
originalOffset: result.offset //
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
if (
|
|
211
|
-
console.log(`🎯 [
|
|
212
|
-
|
|
279
|
+
// CRITICAL: Always original
|
|
280
|
+
originalOffset: result.offset // CRITICAL: Always original
|
|
281
|
+
};
|
|
282
|
+
preloadedDataCache.current.set(cacheKey, frameData);
|
|
283
|
+
const isCurrentFrame = index === 0;
|
|
284
|
+
if (isCurrentFrame) {
|
|
285
|
+
console.log(`🎯 [Preload] Using FAST LANE to process and draw current frame (${frame}) immediately.`);
|
|
286
|
+
gridLayerRef.current.updateDataTextureFromFile(frameData.filePath, frameData.nx, frameData.ny, frameData.scale, frameData.offset, frameData.missing, frameData.scaleType);
|
|
287
|
+
currentGridDataRef.current = {
|
|
288
|
+
nx: frameData.nx,
|
|
289
|
+
ny: frameData.ny,
|
|
290
|
+
scale: frameData.scale,
|
|
291
|
+
offset: frameData.offset,
|
|
292
|
+
missing: frameData.missing,
|
|
293
|
+
gridDef: frameData.gridDef,
|
|
294
|
+
variable: variable,
|
|
295
|
+
units: units
|
|
296
|
+
};
|
|
297
|
+
} else {
|
|
298
|
+
if (_reactNative.Platform.OS === 'ios' && gridLayerRef.current.primeGpuCache) {
|
|
299
|
+
const frameInfoForGpu = {
|
|
300
|
+
[cacheKey]: {
|
|
301
|
+
filePath: frameData.filePath,
|
|
302
|
+
nx: frameData.nx,
|
|
303
|
+
ny: frameData.ny,
|
|
304
|
+
scale: frameData.scale,
|
|
305
|
+
// Current converted scale
|
|
306
|
+
offset: frameData.offset,
|
|
307
|
+
// Current converted offset
|
|
308
|
+
missing: frameData.missing,
|
|
309
|
+
scaleType: frameData.scaleType || 'linear',
|
|
310
|
+
originalScale: frameData.originalScale,
|
|
311
|
+
// ADD THIS
|
|
312
|
+
originalOffset: frameData.originalOffset // ADD THIS
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
gridLayerRef.current.primeGpuCache(frameInfoForGpu);
|
|
316
|
+
}
|
|
213
317
|
}
|
|
318
|
+
}).catch(error => {
|
|
319
|
+
console.warn(`⚠️ [preloadAllFramesToDisk] Failed frame ${frame}:`, error);
|
|
214
320
|
});
|
|
215
|
-
}
|
|
321
|
+
});
|
|
216
322
|
};
|
|
217
|
-
|
|
218
|
-
// In WeatherLayerManager.js - Add extensive logging throughout
|
|
219
|
-
|
|
220
323
|
const updateGPUWithCachedData = state => {
|
|
221
324
|
const {
|
|
222
325
|
model,
|
|
@@ -228,16 +331,41 @@ const WeatherLayerManager = exports.WeatherLayerManager = /*#__PURE__*/(0, _reac
|
|
|
228
331
|
isMRMS,
|
|
229
332
|
mrmsTimestamp
|
|
230
333
|
} = state;
|
|
231
|
-
const cacheKey = isMRMS ? `mrms-${mrmsTimestamp}-${variable}
|
|
334
|
+
const cacheKey = isMRMS ? `mrms-${mrmsTimestamp}-${variable}` : `${model}-${date}-${run}-${forecastHour}-${variable}`;
|
|
335
|
+
if (_reactNative.Platform.OS === 'ios' && gridLayerRef.current.setActiveFrame) {
|
|
336
|
+
// Get the cached data BEFORE calling setActiveFrame
|
|
337
|
+
const cachedData = preloadedDataCache.current.get(cacheKey);
|
|
338
|
+
if (cachedData) {
|
|
339
|
+
currentGridDataRef.current = {
|
|
340
|
+
nx: cachedData.nx,
|
|
341
|
+
ny: cachedData.ny,
|
|
342
|
+
scale: cachedData.scale,
|
|
343
|
+
offset: cachedData.offset,
|
|
344
|
+
missing: cachedData.missing,
|
|
345
|
+
gridDef: cachedData.gridDef,
|
|
346
|
+
variable: variable,
|
|
347
|
+
units: units,
|
|
348
|
+
scaleType: cachedData.scaleType
|
|
349
|
+
};
|
|
350
|
+
console.log('📱 [iOS] Updated currentGridDataRef for inspector:', {
|
|
351
|
+
scale: cachedData.scale,
|
|
352
|
+
offset: cachedData.offset,
|
|
353
|
+
scaleType: cachedData.scaleType // ADD THIS
|
|
354
|
+
});
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
// Now call setActiveFrame (which will async update the native cache)
|
|
358
|
+
gridLayerRef.current.setActiveFrame(cacheKey);
|
|
359
|
+
return true;
|
|
360
|
+
}
|
|
232
361
|
const cachedData = preloadedDataCache.current.get(cacheKey);
|
|
233
362
|
if (!cachedData) {
|
|
234
363
|
const timeKey = isMRMS ? `timestamp ${mrmsTimestamp}` : `hour +${forecastHour}`;
|
|
235
|
-
console.
|
|
236
|
-
console.error('❌ [updateGPUWithCachedData] Available keys:', Array.from(preloadedDataCache.current.keys()));
|
|
364
|
+
console.log(`⏳ [updateGPUWithCachedData] Frame not ready yet for ${timeKey}. Still preloading...`); // CHANGED
|
|
237
365
|
return false;
|
|
238
366
|
}
|
|
239
367
|
if (!gridLayerRef.current) {
|
|
240
|
-
console.
|
|
368
|
+
console.warn(`⚠️ [updateGPUWithCachedData] GridLayer ref not available`); // CHANGED
|
|
241
369
|
return false;
|
|
242
370
|
}
|
|
243
371
|
if (!cachedGeometry.current || cachedGeometry.current.model !== (isMRMS ? 'mrms' : model) || cachedGeometry.current.variable !== variable) {
|
|
@@ -343,8 +471,6 @@ const WeatherLayerManager = exports.WeatherLayerManager = /*#__PURE__*/(0, _reac
|
|
|
343
471
|
i,
|
|
344
472
|
j
|
|
345
473
|
} = gridIndices;
|
|
346
|
-
|
|
347
|
-
// The native module uses the cached scale/offset which we update via updateDataParameters
|
|
348
474
|
const value = await InspectorModule.getValueAtGridIndex(i, j);
|
|
349
475
|
if (value === null) {
|
|
350
476
|
return null;
|
|
@@ -354,10 +480,12 @@ const WeatherLayerManager = exports.WeatherLayerManager = /*#__PURE__*/(0, _reac
|
|
|
354
480
|
baseUnit
|
|
355
481
|
} = core._getColormapForVariable(core.state.variable);
|
|
356
482
|
const displayUnit = core._getTargetUnit(baseUnit, core.state.units);
|
|
357
|
-
|
|
358
|
-
// Get the converted colormap to check min threshold
|
|
359
483
|
const finalColormap = core._convertColormapUnits(colormap, baseUnit, displayUnit);
|
|
360
|
-
const minThreshold = finalColormap[0];
|
|
484
|
+
const minThreshold = finalColormap[0];
|
|
485
|
+
if (value < minThreshold) {
|
|
486
|
+
console.log('🔍 [Inspector] Rejected: below threshold'); // ADD THIS LOG
|
|
487
|
+
return null;
|
|
488
|
+
}
|
|
361
489
|
|
|
362
490
|
// Filter out values below the minimum threshold (matching shader behavior)
|
|
363
491
|
if (value < minThreshold) {
|
|
@@ -425,7 +553,7 @@ const WeatherLayerManager = exports.WeatherLayerManager = /*#__PURE__*/(0, _reac
|
|
|
425
553
|
run,
|
|
426
554
|
forecastHour
|
|
427
555
|
} = newState;
|
|
428
|
-
const oldCacheKey = isMRMS ? `mrms-${mrmsTimestamp}-${variable}
|
|
556
|
+
const oldCacheKey = isMRMS ? `mrms-${mrmsTimestamp}-${variable}` : `${model}-${date}-${run}-${forecastHour}-${variable}`;
|
|
429
557
|
const cachedData = preloadedDataCache.current.get(oldCacheKey);
|
|
430
558
|
if (cachedData && cachedData.originalScale !== undefined && cachedData.originalOffset !== undefined) {
|
|
431
559
|
const {
|
|
@@ -435,42 +563,83 @@ const WeatherLayerManager = exports.WeatherLayerManager = /*#__PURE__*/(0, _reac
|
|
|
435
563
|
let dataScale = cachedData.originalScale;
|
|
436
564
|
let dataOffset = cachedData.originalOffset;
|
|
437
565
|
if (baseUnit !== toUnit) {
|
|
438
|
-
const conversionFunc = (0, _javascriptSdk.getUnitConversionFunction)(baseUnit, toUnit);
|
|
566
|
+
const conversionFunc = (0, _javascriptSdk.getUnitConversionFunction)(baseUnit, toUnit);
|
|
567
|
+
console.log('🔧 [Unit Conversion] Conversion function exists:', !!conversionFunc);
|
|
439
568
|
if (conversionFunc) {
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
569
|
+
if (cachedData.scaleType === 'sqrt') {
|
|
570
|
+
// Calculate what the physical values would be at offset and offset+scale
|
|
571
|
+
const physicalAtOffset = dataOffset * dataOffset;
|
|
572
|
+
const physicalAtOffsetPlusScale = (dataOffset + dataScale) * (dataOffset + dataScale);
|
|
573
|
+
|
|
574
|
+
// Convert these physical values to the new unit
|
|
575
|
+
const convertedPhysicalAtOffset = conversionFunc(physicalAtOffset);
|
|
576
|
+
const convertedPhysicalAtOffsetPlusScale = conversionFunc(physicalAtOffsetPlusScale);
|
|
577
|
+
|
|
578
|
+
// Take sqrt to get back to intermediate values
|
|
579
|
+
const newOffset = Math.sqrt(Math.abs(convertedPhysicalAtOffset)) * Math.sign(convertedPhysicalAtOffset);
|
|
580
|
+
const newOffsetPlusScale = Math.sqrt(Math.abs(convertedPhysicalAtOffsetPlusScale)) * Math.sign(convertedPhysicalAtOffsetPlusScale);
|
|
581
|
+
dataScale = newOffsetPlusScale - newOffset;
|
|
582
|
+
dataOffset = newOffset;
|
|
583
|
+
} else {
|
|
584
|
+
const convertedOffset = conversionFunc(dataOffset);
|
|
585
|
+
const convertedOffsetPlusScale = conversionFunc(dataOffset + dataScale);
|
|
586
|
+
dataScale = convertedOffsetPlusScale - convertedOffset;
|
|
587
|
+
dataOffset = convertedOffset;
|
|
588
|
+
}
|
|
444
589
|
}
|
|
445
590
|
}
|
|
446
591
|
|
|
447
|
-
//
|
|
592
|
+
// Update the colormap AND data range
|
|
593
|
+
const {
|
|
594
|
+
colormap
|
|
595
|
+
} = core._getColormapForVariable(variable);
|
|
596
|
+
const finalColormap = core._convertColormapUnits(colormap, baseUnit, toUnit);
|
|
597
|
+
const dataRange = [finalColormap[0], finalColormap[finalColormap.length - 2]];
|
|
598
|
+
const colormapBytes = _generateColormapBytes(finalColormap);
|
|
599
|
+
const colormapAsBase64 = (0, _base64Js.fromByteArray)(colormapBytes);
|
|
600
|
+
gridLayerRef.current.updateColormapTexture(colormapAsBase64);
|
|
601
|
+
cachedColormap.current = {
|
|
602
|
+
key: `${variable}-${units}`
|
|
603
|
+
};
|
|
604
|
+
cachedDataRange.current = dataRange;
|
|
605
|
+
setRenderProps(prev => ({
|
|
606
|
+
...prev,
|
|
607
|
+
dataRange,
|
|
608
|
+
opacity: newState.opacity
|
|
609
|
+
}));
|
|
448
610
|
if (gridLayerRef.current && gridLayerRef.current.updateDataParameters) {
|
|
449
|
-
|
|
450
|
-
}
|
|
611
|
+
const scaleTypeValue = cachedData.scaleType === 'sqrt' ? 1 : 0; // Convert to number
|
|
451
612
|
|
|
452
|
-
|
|
453
|
-
|
|
613
|
+
console.log('🔄 [Unit Conversion] Calling updateDataParameters with:', {
|
|
614
|
+
scale: dataScale,
|
|
615
|
+
offset: dataOffset,
|
|
616
|
+
missing: cachedData.missing,
|
|
617
|
+
scaleType: scaleTypeValue
|
|
618
|
+
});
|
|
619
|
+
gridLayerRef.current.updateDataParameters(dataScale, dataOffset, cachedData.missing, scaleTypeValue); // Pass scaleType
|
|
620
|
+
}
|
|
621
|
+
const newCacheKey = isMRMS ? `mrms-${mrmsTimestamp}-${variable}` : `${model}-${date}-${run}-${forecastHour}-${variable}`;
|
|
454
622
|
preloadedDataCache.current.set(newCacheKey, {
|
|
455
623
|
...cachedData,
|
|
456
624
|
scale: dataScale,
|
|
457
625
|
offset: dataOffset
|
|
458
626
|
});
|
|
627
|
+
} else {
|
|
628
|
+
console.warn('⚠️ [Unit Conversion] No cached data found for key:', oldCacheKey);
|
|
459
629
|
}
|
|
460
630
|
previousStateRef.current = newState;
|
|
461
|
-
if (newState.opacity !== renderProps.opacity) {
|
|
462
|
-
setRenderProps(prev => ({
|
|
463
|
-
...prev,
|
|
464
|
-
opacity: newState.opacity
|
|
465
|
-
}));
|
|
466
|
-
}
|
|
467
631
|
return;
|
|
468
632
|
}
|
|
469
633
|
const needsFullLoad = !hasInitialLoad.current || newState.model !== previousStateRef.current.model || newState.isMRMS !== previousStateRef.current.isMRMS || newState.variable !== previousStateRef.current.variable || newState.date !== previousStateRef.current.date || newState.run !== previousStateRef.current.run;
|
|
470
634
|
if (needsFullLoad) {
|
|
471
635
|
if (gridLayerRef.current) {
|
|
472
636
|
gridLayerRef.current.clear();
|
|
637
|
+
// --- OPTIMIZATION: Clear the native GPU cache on iOS ---
|
|
638
|
+
if (_reactNative.Platform.OS === 'ios' && gridLayerRef.current.clearGpuCache) {
|
|
639
|
+
gridLayerRef.current.clearGpuCache();
|
|
640
|
+
}
|
|
473
641
|
}
|
|
642
|
+
hasPreloadedRef.current = false;
|
|
474
643
|
preloadedDataCache.current.clear();
|
|
475
644
|
cachedGeometry.current = null;
|
|
476
645
|
cachedColormap.current = null;
|
|
@@ -482,166 +651,23 @@ const WeatherLayerManager = exports.WeatherLayerManager = /*#__PURE__*/(0, _reac
|
|
|
482
651
|
previousStateRef.current = newState;
|
|
483
652
|
return;
|
|
484
653
|
}
|
|
485
|
-
|
|
486
|
-
const {
|
|
487
|
-
model,
|
|
488
|
-
date,
|
|
489
|
-
run,
|
|
490
|
-
forecastHour,
|
|
491
|
-
variable,
|
|
492
|
-
units,
|
|
493
|
-
isMRMS,
|
|
494
|
-
mrmsTimestamp
|
|
495
|
-
} = newState;
|
|
496
|
-
const gridModel = isMRMS ? 'mrms' : model;
|
|
497
|
-
const {
|
|
498
|
-
corners,
|
|
499
|
-
gridDef
|
|
500
|
-
} = core._getGridCornersAndDef(gridModel);
|
|
501
|
-
const {
|
|
502
|
-
nx,
|
|
503
|
-
ny
|
|
504
|
-
} = gridDef.grid_params;
|
|
505
|
-
let resourcePath;
|
|
506
|
-
if (isMRMS) {
|
|
507
|
-
if (!mrmsTimestamp) {
|
|
508
|
-
previousStateRef.current = newState;
|
|
509
|
-
return;
|
|
510
|
-
}
|
|
511
|
-
const mrmsDate = new Date(mrmsTimestamp * 1000);
|
|
512
|
-
const y = mrmsDate.getUTCFullYear();
|
|
513
|
-
const m = (mrmsDate.getUTCMonth() + 1).toString().padStart(2, '0');
|
|
514
|
-
const d = mrmsDate.getUTCDate().toString().padStart(2, '0');
|
|
515
|
-
resourcePath = `/grids/mrms/${y}${m}${d}/${mrmsTimestamp}/0/${variable}/0`;
|
|
516
|
-
} else {
|
|
517
|
-
resourcePath = `/grids/${model}/${date}/${run}/${forecastHour}/${variable}/0`;
|
|
518
|
-
}
|
|
519
|
-
const url = `${core.baseGridUrl}${resourcePath}?apiKey=${core.apiKey}`;
|
|
520
|
-
const options = {
|
|
521
|
-
url,
|
|
522
|
-
apiKey: core.apiKey,
|
|
523
|
-
bundleId: core.bundleId
|
|
524
|
-
};
|
|
525
|
-
const result = await new Promise((resolve, reject) => {
|
|
526
|
-
WeatherFrameProcessorModule.processFrame(options, (error, res) => {
|
|
527
|
-
if (error) {
|
|
528
|
-
resolve(null);
|
|
529
|
-
} else {
|
|
530
|
-
resolve(res);
|
|
531
|
-
}
|
|
532
|
-
});
|
|
533
|
-
});
|
|
534
|
-
if (!result) {
|
|
535
|
-
hasInitialLoad.current = true;
|
|
536
|
-
previousStateRef.current = newState;
|
|
537
|
-
preloadAllFramesToDisk(newState);
|
|
538
|
-
return;
|
|
539
|
-
}
|
|
540
|
-
if (result && gridLayerRef.current) {
|
|
541
|
-
gridLayerRef.current.updateGeometry(corners, gridDef);
|
|
542
|
-
cachedGeometry.current = {
|
|
543
|
-
model: gridModel,
|
|
544
|
-
variable
|
|
545
|
-
};
|
|
546
|
-
const {
|
|
547
|
-
colormap,
|
|
548
|
-
baseUnit
|
|
549
|
-
} = core._getColormapForVariable(variable);
|
|
550
|
-
const toUnit = core._getTargetUnit(baseUnit, units);
|
|
551
|
-
let dataScale = result.scale;
|
|
552
|
-
let dataOffset = result.offset;
|
|
553
|
-
|
|
554
|
-
// Store original scale/offset for unit conversion later
|
|
555
|
-
const originalScale = result.scale;
|
|
556
|
-
const originalOffset = result.offset;
|
|
557
|
-
if (baseUnit !== toUnit) {
|
|
558
|
-
const conversionFunc = (0, _javascriptSdk.getUnitConversionFunction)(baseUnit, toUnit);
|
|
559
|
-
if (conversionFunc) {
|
|
560
|
-
const convertedOffset = conversionFunc(dataOffset);
|
|
561
|
-
const convertedOffsetPlusScale = conversionFunc(dataOffset + dataScale);
|
|
562
|
-
dataScale = convertedOffsetPlusScale - convertedOffset;
|
|
563
|
-
dataOffset = convertedOffset;
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
if (result.dataAsBase64) {
|
|
567
|
-
const binaryString = atob(result.dataAsBase64);
|
|
568
|
-
const uint8Array = new Uint8Array(binaryString.length);
|
|
569
|
-
for (let i = 0; i < binaryString.length; i++) {
|
|
570
|
-
uint8Array[i] = binaryString.charCodeAt(i);
|
|
571
|
-
}
|
|
572
|
-
currentGridDataRef.current = {
|
|
573
|
-
data: uint8Array,
|
|
574
|
-
nx,
|
|
575
|
-
ny,
|
|
576
|
-
scale: dataScale,
|
|
577
|
-
offset: dataOffset,
|
|
578
|
-
missing: result.missing,
|
|
579
|
-
gridDef: gridDef,
|
|
580
|
-
variable: variable,
|
|
581
|
-
units: units
|
|
582
|
-
};
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
// Now upload to GPU
|
|
586
|
-
if (result.filePath) {
|
|
587
|
-
gridLayerRef.current.updateDataTextureFromFile(result.filePath, nx, ny, dataScale, dataOffset, result.missing, result.scaleType);
|
|
588
|
-
} else if (result.dataAsBase64) {
|
|
589
|
-
gridLayerRef.current.updateDataTexture(result.dataAsBase64, nx, ny, dataScale, dataOffset, result.missing, result.scaleType);
|
|
590
|
-
}
|
|
591
|
-
const finalColormap = core._convertColormapUnits(colormap, baseUnit, toUnit);
|
|
592
|
-
const dataRange = [finalColormap[0], finalColormap[finalColormap.length - 2]];
|
|
593
|
-
const colormapBytes = _generateColormapBytes(finalColormap);
|
|
594
|
-
const colormapAsBase64 = (0, _base64Js.fromByteArray)(colormapBytes);
|
|
595
|
-
gridLayerRef.current.updateColormapTexture(colormapAsBase64);
|
|
596
|
-
cachedColormap.current = {
|
|
597
|
-
key: `${variable}-${units}`
|
|
598
|
-
};
|
|
599
|
-
cachedDataRange.current = dataRange;
|
|
600
|
-
setRenderProps({
|
|
601
|
-
opacity: newState.opacity,
|
|
602
|
-
dataRange: dataRange
|
|
603
|
-
});
|
|
604
|
-
hasInitialLoad.current = true;
|
|
605
|
-
const cacheKey = isMRMS ? `mrms-${mrmsTimestamp}-${variable}-${units}` : `${model}-${date}-${run}-${forecastHour}-${variable}-${units}`;
|
|
606
|
-
const dataToCache = {
|
|
607
|
-
nx,
|
|
608
|
-
ny,
|
|
609
|
-
scale: dataScale,
|
|
610
|
-
offset: dataOffset,
|
|
611
|
-
originalScale: originalScale,
|
|
612
|
-
// Store original for unit conversion
|
|
613
|
-
originalOffset: originalOffset,
|
|
614
|
-
// Store original for unit conversion
|
|
615
|
-
missing: result.missing,
|
|
616
|
-
corners,
|
|
617
|
-
gridDef
|
|
618
|
-
};
|
|
619
|
-
if (result.filePath) dataToCache.filePath = result.filePath;
|
|
620
|
-
if (result.dataAsBase64) dataToCache.dataAsBase64 = result.dataAsBase64;
|
|
621
|
-
if (result.scaleType) dataToCache.scaleType = result.scaleType;
|
|
622
|
-
preloadedDataCache.current.set(cacheKey, dataToCache);
|
|
623
|
-
preloadAllFramesToDisk(newState);
|
|
624
|
-
}
|
|
625
|
-
} catch (error) {
|
|
626
|
-
console.error("❌❌❌ [handleStateChange] CRITICAL ERROR:", error);
|
|
627
|
-
console.error("❌ [handleStateChange] Stack:", error.stack);
|
|
628
|
-
}
|
|
654
|
+
preloadAllFramesToDisk(newState);
|
|
629
655
|
} else if (newState.forecastHour !== previousStateRef.current.forecastHour || newState.isMRMS && newState.mrmsTimestamp !== previousStateRef.current.mrmsTimestamp) {
|
|
630
656
|
const success = updateGPUWithCachedData(newState);
|
|
631
657
|
if (!success) {
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
658
|
+
// CHANGED: Don't error, just log and wait for preload
|
|
659
|
+
const timeKey = newState.isMRMS ? `timestamp ${newState.mrmsTimestamp}` : `hour +${newState.forecastHour}`;
|
|
660
|
+
console.log(`⏳ [handleStateChange] Frame ${timeKey} not ready yet, waiting for preload...`);
|
|
661
|
+
// Don't clear the layer - keep showing the previous frame until new one is ready
|
|
662
|
+
// The preload will eventually complete and trigger a re-render
|
|
663
|
+
} else {
|
|
664
|
+
// Only update inspector cache when we successfully loaded new data
|
|
665
|
+
if (newState.opacity !== renderProps.opacity) {
|
|
666
|
+
setRenderProps(prev => ({
|
|
667
|
+
...prev,
|
|
668
|
+
opacity: newState.opacity
|
|
669
|
+
}));
|
|
637
670
|
}
|
|
638
|
-
currentGridDataRef.current = null; // ADD THIS LINE - Clear inspector cache when no data
|
|
639
|
-
}
|
|
640
|
-
if (newState.opacity !== renderProps.opacity) {
|
|
641
|
-
setRenderProps(prev => ({
|
|
642
|
-
...prev,
|
|
643
|
-
opacity: newState.opacity
|
|
644
|
-
}));
|
|
645
671
|
}
|
|
646
672
|
}
|
|
647
673
|
previousStateRef.current = newState;
|