@aguacerowx/react-native 0.0.3 → 0.0.6
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 +51 -6
- package/android/build/.transforms/78b892a9dae44f36e51ff0649e9c6e36/transformed/classes/classes_dex/classes.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/WeatherFrameProcessorModule.dex +0 -0
- package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
- package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_fragment_shader.glsl.flat +0 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +1 -1
- 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/WeatherFrameProcessorModule.class +0 -0
- package/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/fragment_shader.glsl +16 -2
- 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/WeatherFrameProcessorModule.class +0 -0
- package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayer$VertexInfo.class.uniqueId0 +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayer.class.uniqueId1 +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayerView.class.uniqueId2 +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayer.java +9 -51
- package/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayerView.java +8 -2
- package/android/src/main/java/com/aguacerowx/reactnative/GridRenderManager.java +15 -14
- package/android/src/main/java/com/aguacerowx/reactnative/WeatherFrameProcessorModule.java +15 -0
- package/android/src/main/res/raw/fragment_shader.glsl +13 -2
- package/ios/GridRenderLayer.swift +62 -0
- package/ios/GridRenderLayerManager.mm +140 -0
- package/ios/aguacerowx-react-native.podspec +29 -0
- package/lib/commonjs/README.md +61 -0
- package/lib/commonjs/android/build/generated/source/buildConfig/debug/com/aguacerowx/reactnative/BuildConfig.java +10 -0
- package/lib/commonjs/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +8 -0
- package/lib/commonjs/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
- package/lib/commonjs/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
- package/lib/commonjs/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -0
- 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 +4 -0
- 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 +5 -0
- package/lib/commonjs/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
- package/lib/commonjs/android/build/intermediates/incremental/mergeDebugAssets/merger.xml +2 -0
- package/lib/commonjs/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
- package/lib/commonjs/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -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 +6 -0
- package/lib/commonjs/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +8 -0
- package/lib/commonjs/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +8 -0
- package/lib/commonjs/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
- package/lib/commonjs/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
- package/lib/commonjs/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_fragment_shader.glsl +13 -0
- package/lib/commonjs/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_vertex_shader.glsl +13 -0
- package/lib/commonjs/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/fragment_shader.glsl +101 -0
- package/lib/commonjs/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/vertex_shader.glsl +20 -0
- 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 +5 -0
- package/lib/commonjs/android/build/outputs/logs/manifest-merger-debug-report.txt +17 -0
- package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayer$VertexInfo.class.uniqueId0 +0 -0
- package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayer.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/previous-compilation-data.bin +0 -0
- package/lib/commonjs/android/build.gradle +85 -0
- package/lib/commonjs/android/src/main/AndroidManifest.xml +7 -0
- package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/AguaceroPackage.java +34 -0
- package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayer.java +597 -0
- package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayerView.java +293 -0
- package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/GridRenderManager.java +112 -0
- package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/InspectorModule.java +64 -0
- package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/ShaderUtils.java +107 -0
- package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/WeatherFrameProcessorModule.java +166 -0
- package/lib/commonjs/android/src/main/res/raw/debug_fragment_shader.glsl +13 -0
- package/lib/commonjs/android/src/main/res/raw/debug_vertex_shader.glsl +13 -0
- package/lib/commonjs/android/src/main/res/raw/fragment_shader.glsl +98 -0
- package/lib/commonjs/android/src/main/res/raw/vertex_shader.glsl +20 -0
- package/lib/commonjs/babel.config.js +7 -0
- package/lib/commonjs/babel.config.js.map +1 -0
- package/lib/commonjs/index.js +20 -0
- package/lib/commonjs/index.js.map +1 -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 +972 -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 +73 -0
- package/lib/commonjs/react-native-builder-bob.config.js +13 -0
- package/lib/commonjs/react-native-builder-bob.config.js.map +1 -0
- package/lib/commonjs/src/AguaceroContext.js +11 -0
- package/lib/commonjs/src/AguaceroContext.js.map +1 -0
- package/lib/commonjs/src/GridRenderLayer.js +159 -0
- package/lib/commonjs/src/GridRenderLayer.js.map +1 -0
- package/lib/commonjs/src/GridRenderLayerNativeComponent.js +11 -0
- package/lib/commonjs/src/GridRenderLayerNativeComponent.js.map +1 -0
- package/lib/commonjs/src/MapManager.js +164 -0
- package/lib/commonjs/src/MapManager.js.map +1 -0
- package/lib/commonjs/src/MapRegistry.js +36 -0
- package/lib/commonjs/src/MapRegistry.js.map +1 -0
- package/lib/commonjs/src/StyleApplicator.js +262 -0
- package/lib/commonjs/src/StyleApplicator.js.map +1 -0
- package/lib/commonjs/src/WeatherLayerManager.js +731 -0
- package/lib/commonjs/src/WeatherLayerManager.js.map +1 -0
- package/lib/commonjs/tsconfig.json +24 -0
- package/lib/module/README.md +61 -0
- package/lib/module/android/build/generated/source/buildConfig/debug/com/aguacerowx/reactnative/BuildConfig.java +10 -0
- package/lib/module/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +8 -0
- package/lib/module/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
- package/lib/module/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
- package/lib/module/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -0
- 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 +4 -0
- 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 +5 -0
- package/lib/module/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
- package/lib/module/android/build/intermediates/incremental/mergeDebugAssets/merger.xml +2 -0
- package/lib/module/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
- package/lib/module/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
- 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 +6 -0
- package/lib/module/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +8 -0
- package/lib/module/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +8 -0
- package/lib/module/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
- package/lib/module/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
- package/lib/module/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_fragment_shader.glsl +13 -0
- package/lib/module/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_vertex_shader.glsl +13 -0
- package/lib/module/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/fragment_shader.glsl +101 -0
- package/lib/module/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/vertex_shader.glsl +20 -0
- 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 +5 -0
- package/lib/module/android/build/outputs/logs/manifest-merger-debug-report.txt +17 -0
- package/lib/module/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayer$VertexInfo.class.uniqueId0 +0 -0
- package/lib/module/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayer.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/previous-compilation-data.bin +0 -0
- package/lib/module/android/build.gradle +85 -0
- package/lib/module/android/src/main/AndroidManifest.xml +7 -0
- package/lib/module/android/src/main/java/com/aguacerowx/reactnative/AguaceroPackage.java +34 -0
- package/lib/module/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayer.java +597 -0
- package/lib/module/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayerView.java +293 -0
- package/lib/module/android/src/main/java/com/aguacerowx/reactnative/GridRenderManager.java +112 -0
- package/lib/module/android/src/main/java/com/aguacerowx/reactnative/InspectorModule.java +64 -0
- package/lib/module/android/src/main/java/com/aguacerowx/reactnative/ShaderUtils.java +107 -0
- package/lib/module/android/src/main/java/com/aguacerowx/reactnative/WeatherFrameProcessorModule.java +166 -0
- package/lib/module/android/src/main/res/raw/debug_fragment_shader.glsl +13 -0
- package/lib/module/android/src/main/res/raw/debug_vertex_shader.glsl +13 -0
- package/lib/module/android/src/main/res/raw/fragment_shader.glsl +98 -0
- package/lib/module/android/src/main/res/raw/vertex_shader.glsl +20 -0
- package/lib/module/babel.config.js +5 -0
- package/lib/module/babel.config.js.map +1 -0
- package/lib/module/index.js +3 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/lib/commonjs/README.md +61 -0
- package/lib/module/lib/commonjs/android/build.gradle +85 -0
- package/lib/module/lib/commonjs/android/src/main/AndroidManifest.xml +7 -0
- package/lib/module/lib/commonjs/babel.config.js +7 -0
- package/lib/module/lib/commonjs/babel.config.js.map +1 -0
- package/lib/module/lib/commonjs/index.js +20 -0
- package/lib/module/lib/commonjs/index.js.map +1 -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 +976 -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 +73 -0
- package/lib/module/lib/commonjs/react-native-builder-bob.config.js +13 -0
- package/lib/module/lib/commonjs/react-native-builder-bob.config.js.map +1 -0
- package/lib/module/lib/commonjs/src/AguaceroContext.js +15 -0
- package/lib/module/lib/commonjs/src/AguaceroContext.js.map +1 -0
- package/lib/module/lib/commonjs/src/GridRenderLayer.js +182 -0
- package/lib/module/lib/commonjs/src/GridRenderLayer.js.map +1 -0
- package/lib/module/lib/commonjs/src/GridRenderLayerNativeComponent.js +15 -0
- package/lib/module/lib/commonjs/src/GridRenderLayerNativeComponent.js.map +1 -0
- package/lib/module/lib/commonjs/src/MapManager.js +187 -0
- package/lib/module/lib/commonjs/src/MapManager.js.map +1 -0
- package/lib/module/lib/commonjs/src/MapRegistry.js +36 -0
- package/lib/module/lib/commonjs/src/MapRegistry.js.map +1 -0
- package/lib/module/lib/commonjs/src/StyleApplicator.js +286 -0
- package/lib/module/lib/commonjs/src/StyleApplicator.js.map +1 -0
- package/lib/module/lib/commonjs/src/WeatherLayerManager.js +750 -0
- package/lib/module/lib/commonjs/src/WeatherLayerManager.js.map +1 -0
- package/lib/module/lib/commonjs/tsconfig.json +24 -0
- 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 +964 -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 +73 -0
- package/lib/module/react-native-builder-bob.config.js +11 -0
- package/lib/module/react-native-builder-bob.config.js.map +1 -0
- package/lib/module/src/AguaceroContext.js +5 -0
- package/lib/module/src/AguaceroContext.js.map +1 -0
- package/lib/module/src/GridRenderLayer.js +152 -0
- package/lib/module/src/GridRenderLayer.js.map +1 -0
- package/lib/module/src/GridRenderLayerNativeComponent.js +5 -0
- package/lib/module/src/GridRenderLayerNativeComponent.js.map +1 -0
- package/lib/module/src/MapManager.js +155 -0
- package/lib/module/src/MapManager.js.map +1 -0
- package/lib/module/src/MapRegistry.js +30 -0
- package/lib/module/src/MapRegistry.js.map +1 -0
- package/lib/module/src/StyleApplicator.js +255 -0
- package/lib/module/src/StyleApplicator.js.map +1 -0
- package/lib/module/src/WeatherLayerManager.js +724 -0
- package/lib/module/src/WeatherLayerManager.js.map +1 -0
- package/lib/module/tsconfig.json +24 -0
- package/lib/typescript/babel.config.d.ts +3 -0
- package/lib/typescript/babel.config.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +3 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/react-native-builder-bob.config.d.ts +6 -0
- package/lib/typescript/react-native-builder-bob.config.d.ts.map +1 -0
- package/lib/typescript/src/AguaceroContext.d.ts +2 -0
- package/lib/typescript/src/AguaceroContext.d.ts.map +1 -0
- package/lib/typescript/src/GridRenderLayer.d.ts +2 -0
- package/lib/typescript/src/GridRenderLayer.d.ts.map +1 -0
- package/lib/typescript/src/GridRenderLayerNativeComponent.d.ts +12 -0
- package/lib/typescript/src/GridRenderLayerNativeComponent.d.ts.map +1 -0
- package/lib/typescript/src/MapManager.d.ts +8 -0
- package/lib/typescript/src/MapManager.d.ts.map +1 -0
- package/lib/typescript/src/MapRegistry.d.ts +12 -0
- package/lib/typescript/src/MapRegistry.d.ts.map +1 -0
- package/lib/typescript/src/StyleApplicator.d.ts +4 -0
- package/lib/typescript/src/StyleApplicator.d.ts.map +1 -0
- package/lib/typescript/src/WeatherLayerManager.d.ts +2 -0
- package/lib/typescript/src/WeatherLayerManager.d.ts.map +1 -0
- package/package.json +56 -18
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/WeatherFrameProcessorModule.class.uniqueId1 +0 -0
- package/src/AguaceroContext.js +0 -4
- package/src/GridRenderLayer.js +0 -121
- package/src/MapManager.js +0 -158
- package/src/MapRegistry.js +0 -35
- package/src/StyleApplicator.js +0 -241
- package/src/WeatherLayerManager.js +0 -754
- /package/{android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/AguaceroPackage.class.uniqueId0 → lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/AguaceroPackage.class} +0 -0
package/README.md
CHANGED
|
@@ -1,16 +1,61 @@
|
|
|
1
|
+
# @aguacerowx/react-native
|
|
2
|
+
|
|
3
|
+
Welcome to the official React Native SDK for AguaceroWX.
|
|
4
|
+
|
|
1
5
|
## Installation
|
|
2
6
|
```bash
|
|
3
7
|
npm install @aguacerowx/react-native
|
|
4
8
|
```
|
|
5
9
|
|
|
6
|
-
###
|
|
10
|
+
### Important Prerequisite: Mapbox SDK v11
|
|
11
|
+
|
|
12
|
+
This library is built on top of `@rnmapbox/maps` and requires the Mapbox Maps SDK v11 for both iOS and Android. You must perform the following manual setup steps to configure your project correctly.
|
|
13
|
+
|
|
14
|
+
## iOS Setup
|
|
15
|
+
|
|
16
|
+
You must explicitly enable Mapbox SDK v11 in your iOS project.
|
|
17
|
+
|
|
18
|
+
### Modify your Podfile
|
|
19
|
+
|
|
20
|
+
Open your project's `ios/Podfile` and add the following lines near the top of the file. This tells the `@rnmapbox/maps` library to use a v11 version of the native SDK.
|
|
21
|
+
```ruby
|
|
22
|
+
# Add these lines near the top of your ios/Podfile
|
|
23
|
+
require_relative '../node_modules/@rnmapbox/maps/scripts/mapbox-rb'
|
|
24
|
+
$RNMapboxMapsVersion = '~> 11.0' # This enforces Mapbox SDK v11
|
|
25
|
+
use_mapbox_maps!
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Install Pods
|
|
29
|
+
|
|
30
|
+
After saving the Podfile, navigate to your `ios` directory in the terminal and run a fresh pod installation.
|
|
31
|
+
```bash
|
|
32
|
+
cd ios
|
|
33
|
+
pod install
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Android Setup
|
|
37
|
+
|
|
38
|
+
Android requires configuration for Mapbox credentials and an additional native dependency.
|
|
39
|
+
|
|
40
|
+
### Configure Mapbox Credentials
|
|
41
|
+
|
|
42
|
+
You will need a secret token with `DOWNLOADS:READ` scope and a public token.
|
|
43
|
+
|
|
44
|
+
In your `android/gradle.properties` file, add your secret token:
|
|
45
|
+
```properties
|
|
46
|
+
# android/gradle.properties
|
|
47
|
+
MAPBOX_DOWNLOADS_TOKEN=sk.xxxxxxxxxx
|
|
48
|
+
```
|
|
7
49
|
|
|
8
|
-
|
|
50
|
+
In your `android/app/build.gradle` file, add your public token inside the `defaultConfig` block:
|
|
9
51
|
```groovy
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
52
|
+
// android/app/build.gradle
|
|
53
|
+
android {
|
|
54
|
+
defaultConfig {
|
|
55
|
+
// ... other configs
|
|
56
|
+
buildConfigField "String", "MAPBOX_ACCESS_TOKEN", "\"pk.xxxxxxxxxx\""
|
|
57
|
+
}
|
|
13
58
|
}
|
|
14
59
|
```
|
|
15
60
|
|
|
16
|
-
|
|
61
|
+
After completing these steps, your application should be correctly configured to use the library. For more detailed information or troubleshooting, please refer to the official `@rnmapbox/maps` documentation.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
#Wed Nov 12 01:09:08 EST 2025
|
|
2
2
|
com.aguacerowx.reactnative.aguacerowx_react-native-main-6\:/raw/fragment_shader.glsl=C\:\\Users\\my41m\\aguacero\\ReactNativeApp\\node_modules\\@aguacerowx\\react-native\\android\\build\\intermediates\\packaged_res\\debug\\packageDebugResources\\raw\\fragment_shader.glsl
|
|
3
3
|
com.aguacerowx.reactnative.aguacerowx_react-native-main-6\:/raw/debug_vertex_shader.glsl=C\:\\Users\\my41m\\aguacero\\ReactNativeApp\\node_modules\\@aguacerowx\\react-native\\android\\build\\intermediates\\packaged_res\\debug\\packageDebugResources\\raw\\debug_vertex_shader.glsl
|
|
4
4
|
com.aguacerowx.reactnative.aguacerowx_react-native-main-6\:/raw/vertex_shader.glsl=C\:\\Users\\my41m\\aguacero\\ReactNativeApp\\node_modules\\@aguacerowx\\react-native\\android\\build\\intermediates\\packaged_res\\debug\\packageDebugResources\\raw\\vertex_shader.glsl
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -13,6 +13,10 @@ uniform vec2 u_data_range;
|
|
|
13
13
|
uniform vec2 u_texture_size;
|
|
14
14
|
uniform int u_smoothing;
|
|
15
15
|
|
|
16
|
+
// --- START OF FIX: Add the new uniform ---
|
|
17
|
+
uniform int u_scale_type; // 0 for linear, 1 for sqrt
|
|
18
|
+
// --- END OF FIX ---
|
|
19
|
+
|
|
16
20
|
// Custom bilinear filtering that respects NaN boundaries
|
|
17
21
|
float sampleDataTextureSmooth(vec2 uv) {
|
|
18
22
|
float missing_in_texture_range = u_missing_quantized + 128.0;
|
|
@@ -68,9 +72,19 @@ void main() {
|
|
|
68
72
|
discard;
|
|
69
73
|
}
|
|
70
74
|
|
|
71
|
-
//
|
|
75
|
+
// --- START OF FIX: Implement two-step dequantization ---
|
|
76
|
+
// Step 1: Standard linear dequantization
|
|
72
77
|
float quantized_value = value_in_texture - 128.0;
|
|
73
|
-
float
|
|
78
|
+
float intermediate_value = quantized_value * u_scale + u_offset;
|
|
79
|
+
float raw_value = intermediate_value; // Default to linear
|
|
80
|
+
|
|
81
|
+
// Step 2: Apply non-linear inverse scaling if specified
|
|
82
|
+
if (u_scale_type == 1) { // 1 represents 'sqrt'
|
|
83
|
+
// Square the intermediate value while preserving its sign
|
|
84
|
+
raw_value = intermediate_value * abs(intermediate_value);
|
|
85
|
+
}
|
|
86
|
+
// --- END OF FIX ---
|
|
87
|
+
|
|
74
88
|
|
|
75
89
|
// If the data is below the specified minimum range, make it invisible.
|
|
76
90
|
if (raw_value < u_data_range.x) {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/android/build.gradle
CHANGED
|
@@ -32,7 +32,8 @@ public class GridRenderLayer implements CustomLayerHost {
|
|
|
32
32
|
|
|
33
33
|
// Uniform and Attribute locations
|
|
34
34
|
private int uMatrix, uDataTexture, uColormapTexture, uOpacity, uDataRange,
|
|
35
|
-
uScale, uOffset, uMissingQuantized, uTextureSize, uConversionType, uSmoothing
|
|
35
|
+
uScale, uOffset, uMissingQuantized, uTextureSize, uConversionType, uSmoothing,
|
|
36
|
+
uScaleType;
|
|
36
37
|
private int aPosition, aTexCoord;
|
|
37
38
|
|
|
38
39
|
// GPU-side resource IDs
|
|
@@ -52,6 +53,7 @@ public class GridRenderLayer implements CustomLayerHost {
|
|
|
52
53
|
private int textureHeight = 0;
|
|
53
54
|
private int conversionType = 0;
|
|
54
55
|
private boolean smoothingEnabled = true;
|
|
56
|
+
private int scaleType = 0;
|
|
55
57
|
private boolean textureParametersDirty = true;
|
|
56
58
|
|
|
57
59
|
// Pending data buffers for thread-safe uploads
|
|
@@ -59,6 +61,7 @@ public class GridRenderLayer implements CustomLayerHost {
|
|
|
59
61
|
private ByteBuffer pendingDataBuffer = null;
|
|
60
62
|
private int pendingNx = 0, pendingNy = 0;
|
|
61
63
|
private float pendingScale = 1.0f, pendingOffset = 0.0f, pendingMissing = 127.0f;
|
|
64
|
+
private int pendingScaleType = 0;
|
|
62
65
|
private ByteBuffer pendingColormapBuffer = null;
|
|
63
66
|
private FloatBuffer pendingVertexBuffer = null;
|
|
64
67
|
private ShortBuffer pendingIndexBuffer = null;
|
|
@@ -115,6 +118,7 @@ public class GridRenderLayer implements CustomLayerHost {
|
|
|
115
118
|
uTextureSize = GLES20.glGetUniformLocation(program, "u_texture_size");
|
|
116
119
|
uConversionType = GLES20.glGetUniformLocation(program, "u_conversion_type");
|
|
117
120
|
uSmoothing = GLES20.glGetUniformLocation(program, "u_smoothing");
|
|
121
|
+
uScaleType = GLES20.glGetUniformLocation(program, "u_scale_type");
|
|
118
122
|
aPosition = GLES20.glGetAttribLocation(program, "a_position");
|
|
119
123
|
aTexCoord = GLES20.glGetAttribLocation(program, "a_texCoord");
|
|
120
124
|
}
|
|
@@ -149,6 +153,7 @@ public class GridRenderLayer implements CustomLayerHost {
|
|
|
149
153
|
this.scale = pendingScale;
|
|
150
154
|
this.offset = pendingOffset;
|
|
151
155
|
this.missingQuantized = pendingMissing;
|
|
156
|
+
this.scaleType = pendingScaleType;
|
|
152
157
|
|
|
153
158
|
if (dataTextureId == 0) {
|
|
154
159
|
int[] t = new int[1];
|
|
@@ -228,6 +233,7 @@ public class GridRenderLayer implements CustomLayerHost {
|
|
|
228
233
|
GLES20.glUniform2f(uTextureSize, (float) textureWidth, (float) textureHeight);
|
|
229
234
|
GLES20.glUniform1i(uConversionType, conversionType);
|
|
230
235
|
GLES20.glUniform1i(uSmoothing, smoothingEnabled ? 1 : 0);
|
|
236
|
+
GLES20.glUniform1i(uScaleType, this.scaleType);
|
|
231
237
|
|
|
232
238
|
GLES20.glActiveTexture(GLES20.GL_TEXTURE0);
|
|
233
239
|
GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, dataTextureId);
|
|
@@ -281,58 +287,9 @@ public class GridRenderLayer implements CustomLayerHost {
|
|
|
281
287
|
this.textureParametersDirty = true;
|
|
282
288
|
}
|
|
283
289
|
}
|
|
284
|
-
|
|
285
|
-
public void updateDataTextureFromFile(String filePath, int nx, int ny, float scale, float offset, float missing) {
|
|
286
|
-
Log.d(TAG, "Starting texture update from file: " + filePath);
|
|
287
|
-
|
|
288
|
-
// This whole block runs on a background thread thanks to React Native,
|
|
289
|
-
// so file I/O and decompression are safe here.
|
|
290
|
-
File file = new File(filePath);
|
|
291
|
-
if (!file.exists()) {
|
|
292
|
-
Log.e(TAG, "File not found for texture update: " + filePath);
|
|
293
|
-
return;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
try (FileInputStream fis = new FileInputStream(file)) {
|
|
297
|
-
// 1. Read the compressed file into a byte array
|
|
298
|
-
byte[] compressedData = new byte[(int) file.length()];
|
|
299
|
-
fis.read(compressedData);
|
|
300
|
-
|
|
301
|
-
// 2. Decompress using the zstd-jni library
|
|
302
|
-
// NOTE: The decompressed size needs to be known. We assume it's the grid size.
|
|
303
|
-
// If your encoding is different, you may need to adjust this.
|
|
304
|
-
long decompressedSize = (long) nx * ny;
|
|
305
|
-
byte[] decompressedDeltas = Zstd.decompress(compressedData, (int) decompressedSize);
|
|
306
|
-
|
|
307
|
-
// 3. Reconstruct delta-encoded data (Ported from your AguaceroCore.js)
|
|
308
|
-
byte[] reconstructedData = new byte[decompressedDeltas.length];
|
|
309
|
-
if (decompressedDeltas.length > 0) {
|
|
310
|
-
// First value is absolute
|
|
311
|
-
reconstructedData[0] = decompressedDeltas[0];
|
|
312
|
-
// Subsequent values are deltas
|
|
313
|
-
for (int i = 1; i < decompressedDeltas.length; i++) {
|
|
314
|
-
reconstructedData[i] = (byte) (reconstructedData[i - 1] + decompressedDeltas[i]);
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
// 4. Transform for GPU texture format (signed to unsigned)
|
|
319
|
-
byte[] textureData = new byte[reconstructedData.length];
|
|
320
|
-
for (int i = 0; i < reconstructedData.length; i++) {
|
|
321
|
-
textureData[i] = (byte) (reconstructedData[i] + 128);
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
// 5. Queue the final data for OpenGL using your existing thread-safe mechanism
|
|
325
|
-
updateDataTexture(textureData, nx, ny, scale, offset, missing);
|
|
326
|
-
Log.d(TAG, "Successfully queued texture data from file: " + filePath);
|
|
327
|
-
|
|
328
|
-
} catch (IOException e) {
|
|
329
|
-
Log.e(TAG, "Failed to read or decompress file: " + filePath, e);
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
|
|
333
290
|
|
|
334
291
|
// This existing method is now used by both the old JS path and our new native path
|
|
335
|
-
public void updateDataTexture(byte[] bytes, int nx, int ny, float scale, float offset, float missing) {
|
|
292
|
+
public void updateDataTexture(byte[] bytes, int nx, int ny, float scale, float offset, float missing, String scaleType) {
|
|
336
293
|
ByteBuffer dataBuffer = ByteBuffer.allocateDirect(bytes.length);
|
|
337
294
|
dataBuffer.put(bytes);
|
|
338
295
|
dataBuffer.position(0);
|
|
@@ -343,6 +300,7 @@ public class GridRenderLayer implements CustomLayerHost {
|
|
|
343
300
|
this.pendingScale = scale;
|
|
344
301
|
this.pendingOffset = offset;
|
|
345
302
|
this.pendingMissing = missing;
|
|
303
|
+
this.pendingScaleType = "sqrt".equals(scaleType) ? 1 : 0;
|
|
346
304
|
}
|
|
347
305
|
}
|
|
348
306
|
|
|
@@ -38,13 +38,18 @@ public class GridRenderLayerView extends FrameLayout {
|
|
|
38
38
|
private static float lastDataScale = 1.0f;
|
|
39
39
|
private static float lastDataOffset = 0.0f;
|
|
40
40
|
private static float lastDataMissing = 127.0f;
|
|
41
|
+
private static String lastDataScaleType = "linear";
|
|
41
42
|
|
|
42
43
|
public GridRenderLayerView(@NonNull ThemedReactContext context) {
|
|
43
44
|
super(context);
|
|
44
45
|
this.gridLayerImplementation = new GridRenderLayer(context);
|
|
45
46
|
}
|
|
47
|
+
|
|
48
|
+
public static String getLastDataScaleType() {
|
|
49
|
+
return lastDataScaleType;
|
|
50
|
+
}
|
|
46
51
|
|
|
47
|
-
public void updateDataTexture(String dataFilePathOrBase64, int nx, int ny, float scale, float offset, float missing) {
|
|
52
|
+
public void updateDataTexture(String dataFilePathOrBase64, int nx, int ny, float scale, float offset, float missing, String scaleType) {
|
|
48
53
|
if (dataFilePathOrBase64 == null) {
|
|
49
54
|
Log.e(TAG, "❌ [View] Data from manager is null!");
|
|
50
55
|
return;
|
|
@@ -78,8 +83,9 @@ public class GridRenderLayerView extends FrameLayout {
|
|
|
78
83
|
lastDataScale = scale;
|
|
79
84
|
lastDataOffset = offset;
|
|
80
85
|
lastDataMissing = missing;
|
|
86
|
+
lastDataScaleType = scaleType; // FIX: Update the cached scaleType
|
|
81
87
|
|
|
82
|
-
gridLayerImplementation.updateDataTexture(finalTextureBytes, nx, ny, scale, offset, missing);
|
|
88
|
+
gridLayerImplementation.updateDataTexture(finalTextureBytes, nx, ny, scale, offset, missing, scaleType);
|
|
83
89
|
triggerRepaint();
|
|
84
90
|
|
|
85
91
|
} catch (Exception e) {
|
|
@@ -8,6 +8,7 @@ import com.facebook.react.bridge.ReadableMap;
|
|
|
8
8
|
import com.facebook.react.uimanager.SimpleViewManager;
|
|
9
9
|
import com.facebook.react.uimanager.ThemedReactContext;
|
|
10
10
|
import com.facebook.react.uimanager.annotations.ReactProp;
|
|
11
|
+
import android.util.Log;
|
|
11
12
|
|
|
12
13
|
import java.util.Map;
|
|
13
14
|
import java.util.HashMap;
|
|
@@ -71,16 +72,16 @@ public class GridRenderManager extends SimpleViewManager<GridRenderLayerView> {
|
|
|
71
72
|
@Override
|
|
72
73
|
public void receiveCommand(@NonNull GridRenderLayerView view, int commandId, @Nullable ReadableArray args) {
|
|
73
74
|
switch (commandId) {
|
|
74
|
-
case COMMAND_UPDATE_DATA_TEXTURE:
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
75
|
+
case COMMAND_UPDATE_DATA_TEXTURE:
|
|
76
|
+
String data = args.getString(0);
|
|
77
|
+
int nx = args.getInt(1);
|
|
78
|
+
int ny = args.getInt(2);
|
|
79
|
+
float scale = (float) args.getDouble(3);
|
|
80
|
+
float offset = (float) args.getDouble(4);
|
|
81
|
+
float missing = (float) args.getDouble(5);
|
|
82
|
+
String scaleType = args.getString(6);
|
|
83
|
+
|
|
84
|
+
view.updateDataTexture(data, nx, ny, scale, offset, missing, scaleType);
|
|
84
85
|
break;
|
|
85
86
|
|
|
86
87
|
case COMMAND_UPDATE_COLORMAP_TEXTURE:
|
|
@@ -100,10 +101,10 @@ public class GridRenderManager extends SimpleViewManager<GridRenderLayerView> {
|
|
|
100
101
|
|
|
101
102
|
case COMMAND_UPDATE_DATA_PARAMETERS:
|
|
102
103
|
if (args != null && args.size() >= 3) {
|
|
103
|
-
float
|
|
104
|
-
float
|
|
105
|
-
float
|
|
106
|
-
view.updateDataParameters(
|
|
104
|
+
float scaleParam = (float) args.getDouble(0);
|
|
105
|
+
float offsetParam = (float) args.getDouble(1);
|
|
106
|
+
float missingParam = (float) args.getDouble(2);
|
|
107
|
+
view.updateDataParameters(scaleParam, offsetParam, missingParam);
|
|
107
108
|
}
|
|
108
109
|
break;
|
|
109
110
|
}
|
|
@@ -13,6 +13,7 @@ import com.facebook.react.bridge.ReactMethod;
|
|
|
13
13
|
import com.facebook.react.bridge.ReadableMap;
|
|
14
14
|
import com.facebook.react.bridge.WritableMap;
|
|
15
15
|
import com.facebook.react.modules.network.OkHttpClientProvider;
|
|
16
|
+
import android.util.Log;
|
|
16
17
|
|
|
17
18
|
import org.json.JSONObject;
|
|
18
19
|
|
|
@@ -108,9 +109,20 @@ public class WeatherFrameProcessorModule extends ReactContextBaseJavaModule {
|
|
|
108
109
|
|
|
109
110
|
// The rest of your logic remains the same
|
|
110
111
|
JSONObject jsonResponse = new JSONObject(responseString);
|
|
112
|
+
if (!jsonResponse.has("data") || !jsonResponse.has("encoding")) {
|
|
113
|
+
// If the core keys are missing, the response is invalid. Log it and fail.
|
|
114
|
+
throw new IOException("Invalid API response. 'data' or 'encoding' key is missing. Response: " + responseString);
|
|
115
|
+
}
|
|
116
|
+
|
|
111
117
|
String b64CompressedData = jsonResponse.getString("data");
|
|
112
118
|
JSONObject encoding = jsonResponse.getJSONObject("encoding");
|
|
113
119
|
|
|
120
|
+
|
|
121
|
+
if (!encoding.has("scale") || !encoding.has("offset") || !encoding.has("missing_quantized")) {
|
|
122
|
+
// If the encoding object is missing required values, fail with a clear error.
|
|
123
|
+
throw new IOException("Invalid 'encoding' object in API response. Required keys are missing. Response: " + responseString);
|
|
124
|
+
}
|
|
125
|
+
|
|
114
126
|
byte[] compressedData = Base64.decode(b64CompressedData, Base64.DEFAULT);
|
|
115
127
|
|
|
116
128
|
File cacheDir = reactContext.getCacheDir();
|
|
@@ -128,6 +140,9 @@ public class WeatherFrameProcessorModule extends ReactContextBaseJavaModule {
|
|
|
128
140
|
responseMap.putDouble("scale", encoding.getDouble("scale"));
|
|
129
141
|
responseMap.putDouble("offset", encoding.getDouble("offset"));
|
|
130
142
|
responseMap.putDouble("missing", encoding.getDouble("missing_quantized"));
|
|
143
|
+
if (encoding.has("scale_type")) {
|
|
144
|
+
responseMap.putString("scaleType", encoding.getString("scale_type"));
|
|
145
|
+
}
|
|
131
146
|
responseMap.putString("dataAsBase64", b64CompressedData);
|
|
132
147
|
|
|
133
148
|
callback.invoke(null, responseMap);
|
|
@@ -13,6 +13,10 @@ uniform vec2 u_data_range;
|
|
|
13
13
|
uniform vec2 u_texture_size;
|
|
14
14
|
uniform int u_smoothing;
|
|
15
15
|
|
|
16
|
+
// --- START OF FIX: Add the new uniform ---
|
|
17
|
+
uniform int u_scale_type; // 0 for linear, 1 for sqrt
|
|
18
|
+
// --- END OF FIX ---
|
|
19
|
+
|
|
16
20
|
// Custom bilinear filtering that respects NaN boundaries
|
|
17
21
|
float sampleDataTextureSmooth(vec2 uv) {
|
|
18
22
|
float missing_in_texture_range = u_missing_quantized + 128.0;
|
|
@@ -68,9 +72,16 @@ void main() {
|
|
|
68
72
|
discard;
|
|
69
73
|
}
|
|
70
74
|
|
|
71
|
-
//
|
|
75
|
+
// Step 1: Standard linear dequantization
|
|
72
76
|
float quantized_value = value_in_texture - 128.0;
|
|
73
|
-
float
|
|
77
|
+
float intermediate_value = quantized_value * u_scale + u_offset;
|
|
78
|
+
float raw_value = intermediate_value; // Default to linear
|
|
79
|
+
|
|
80
|
+
// Step 2: Apply non-linear inverse scaling if specified
|
|
81
|
+
if (u_scale_type == 1) { // 1 represents 'sqrt'
|
|
82
|
+
// Square the intermediate value while preserving its sign
|
|
83
|
+
raw_value = intermediate_value * abs(intermediate_value);
|
|
84
|
+
}
|
|
74
85
|
|
|
75
86
|
// If the data is below the specified minimum range, make it invisible.
|
|
76
87
|
if (raw_value < u_data_range.x) {
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// packages/react-native/ios/GridRenderLayer.swift
|
|
2
|
+
|
|
3
|
+
import Foundation
|
|
4
|
+
import UIKit
|
|
5
|
+
|
|
6
|
+
// The class must be `public` to be visible outside of the SDK module.
|
|
7
|
+
// `@objc` exposes this class to the Objective-C runtime.
|
|
8
|
+
@objc(GridRenderLayer)
|
|
9
|
+
public class GridRenderLayer: UIView {
|
|
10
|
+
|
|
11
|
+
// ---- Properties ----
|
|
12
|
+
// These properties must also be `@objc public` so the React Native
|
|
13
|
+
// framework can set them from the props defined in the manager.
|
|
14
|
+
@objc public var opacity: Float = 1.0
|
|
15
|
+
@objc public var dataRange: NSArray = []
|
|
16
|
+
@objc public var belowID: NSString = ""
|
|
17
|
+
@objc public var smoothing: Bool = true
|
|
18
|
+
|
|
19
|
+
// ---- Initializers ----
|
|
20
|
+
override public init(frame: CGRect) {
|
|
21
|
+
super.init(frame: frame)
|
|
22
|
+
// For testing, make the view highly visible to confirm it has rendered.
|
|
23
|
+
self.backgroundColor = UIColor.systemTeal
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
required public init?(coder: NSCoder) {
|
|
27
|
+
fatalError("init(coder:) has not been implemented")
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// ---- Custom Methods ----
|
|
31
|
+
// These are the functions that will be called by the Objective-C++ Manager.
|
|
32
|
+
// They must be `public` and exposed to Objective-C with `@objc`.
|
|
33
|
+
//
|
|
34
|
+
// NOTE: Objective-C will see this Swift function:
|
|
35
|
+
// func updateGeometry(corners: [String: Any], gridDef: [String: Any])
|
|
36
|
+
// as this Objective-C selector:
|
|
37
|
+
// - (void)updateGeometryWithCorners:(NSDictionary *)corners gridDef:(NSDictionary *)gridDef;
|
|
38
|
+
|
|
39
|
+
@objc
|
|
40
|
+
public func updateGeometry(corners: [String: Any], gridDef: [String: Any]) {
|
|
41
|
+
NSLog("[AguaceroSDK] Swift: updateGeometry called successfully.")
|
|
42
|
+
// Your actual rendering logic goes here.
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@objc
|
|
46
|
+
public func updateDataTexture(data: String, nx: NSNumber, ny: NSNumber, scale: NSNumber, offset: NSNumber, missing: NSNumber) {
|
|
47
|
+
NSLog("[AguaceroSDK] Swift: updateDataTexture called successfully.")
|
|
48
|
+
// Your actual rendering logic goes here.
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@objc
|
|
52
|
+
public func updateColormapTexture(colormapAsBase64: String) {
|
|
53
|
+
NSLog("[AguaceroSDK] Swift: updateColormapTexture called successfully.")
|
|
54
|
+
// Your actual rendering logic goes here.
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@objc
|
|
58
|
+
public func updateDataParameters(scale: NSNumber, offset: NSNumber, missing: NSNumber) {
|
|
59
|
+
NSLog("[AguaceroSDK] Swift: updateDataParameters called successfully.")
|
|
60
|
+
// Your actual rendering logic goes here.
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
#import <React/RCTViewManager.h>
|
|
2
|
+
#import <React/RCTUIManager.h>
|
|
3
|
+
#import <React/RCTLog.h>
|
|
4
|
+
|
|
5
|
+
// This import uses the module name from your podspec `aguacerowx-react-native` -> `aguacerowx_react_native`).
|
|
6
|
+
#import <aguacerowx_react_native/aguacerowx_react_native-Swift.h>
|
|
7
|
+
|
|
8
|
+
@interface GridRenderLayerManager : RCTViewManager
|
|
9
|
+
@end
|
|
10
|
+
|
|
11
|
+
@implementation GridRenderLayerManager
|
|
12
|
+
|
|
13
|
+
- (instancetype)init
|
|
14
|
+
{
|
|
15
|
+
self = [super init];
|
|
16
|
+
if (self) {
|
|
17
|
+
RCTLogInfo(@"🔵 [GridRenderLayerManager] INIT CALLED");
|
|
18
|
+
NSLog(@"🔵 [GridRenderLayerManager] ✅✅✅ GridRenderLayerManager INITIALIZED ✅✅✅");
|
|
19
|
+
}
|
|
20
|
+
return self;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
+ (void)load
|
|
24
|
+
{
|
|
25
|
+
RCTLogInfo(@"🔵 [GridRenderLayerManager] CLASS LOAD CALLED");
|
|
26
|
+
NSLog(@"🔵 [GridRenderLayerManager] Class is being loaded into runtime");
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// Export the module - this is what registers "GridRenderLayer" with React Native
|
|
30
|
+
RCT_EXPORT_MODULE(GridRenderLayerManager)
|
|
31
|
+
|
|
32
|
+
+ (BOOL)requiresMainQueueSetup
|
|
33
|
+
{
|
|
34
|
+
RCTLogInfo(@"🔵 [GridRenderLayerManager] requiresMainQueueSetup called - returning YES");
|
|
35
|
+
return YES;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// This creates the actual view
|
|
39
|
+
- (UIView *)view
|
|
40
|
+
{
|
|
41
|
+
RCTLogInfo(@"🔵 [GridRenderLayerManager] view() method called - creating GridRenderLayer instance");
|
|
42
|
+
NSLog(@"🔵 [GridRenderLayerManager] Creating new GridRenderLayer view");
|
|
43
|
+
|
|
44
|
+
GridRenderLayer *gridView = [[GridRenderLayer alloc] init];
|
|
45
|
+
NSLog(@"🔵 [GridRenderLayerManager] GridRenderLayer created: %@", gridView);
|
|
46
|
+
|
|
47
|
+
return gridView;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// Export properties
|
|
51
|
+
RCT_EXPORT_VIEW_PROPERTY(opacity, float)
|
|
52
|
+
RCT_EXPORT_VIEW_PROPERTY(dataRange, NSArray)
|
|
53
|
+
RCT_EXPORT_VIEW_PROPERTY(belowID, NSString)
|
|
54
|
+
RCT_EXPORT_VIEW_PROPERTY(smoothing, BOOL)
|
|
55
|
+
|
|
56
|
+
// Log when properties are set
|
|
57
|
+
- (void)setBridge:(RCTBridge *)bridge
|
|
58
|
+
{
|
|
59
|
+
[super setBridge:bridge];
|
|
60
|
+
RCTLogInfo(@"🔵 [GridRenderLayerManager] Bridge set: %@", bridge);
|
|
61
|
+
NSLog(@"🔵 [GridRenderLayerManager] Bridge connected successfully");
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// Export commands for Fabric
|
|
65
|
+
RCT_EXPORT_VIEW_MANAGER_COMMAND(updateGeometry, {
|
|
66
|
+
RCTLogInfo(@"🟢 [GridRenderLayerManager] updateGeometry command received");
|
|
67
|
+
NSLog(@"🟢 [GridRenderLayerManager] updateGeometry - node: %@, args: %@", node, args);
|
|
68
|
+
|
|
69
|
+
[self.bridge.uiManager addUIBlock:^(__unused RCTUIManager *uiManager, NSDictionary<NSNumber *, UIView *> *viewRegistry) {
|
|
70
|
+
UIView *view = viewRegistry[node];
|
|
71
|
+
NSLog(@"🟢 [GridRenderLayerManager] updateGeometry - found view: %@", view);
|
|
72
|
+
|
|
73
|
+
if (![view isKindOfClass:[GridRenderLayer class]]) {
|
|
74
|
+
RCTLogError(@"🔴 [GridRenderLayerManager] ERROR: Expected GridRenderLayer but got: %@", [view class]);
|
|
75
|
+
} else {
|
|
76
|
+
NSDictionary *corners = args[0];
|
|
77
|
+
NSDictionary *gridDef = args[1];
|
|
78
|
+
NSLog(@"🟢 [GridRenderLayerManager] updateGeometry - calling Swift method with corners: %@, gridDef: %@", corners, gridDef);
|
|
79
|
+
[(GridRenderLayer *)view updateGeometryWithCorners:corners gridDef:gridDef];
|
|
80
|
+
}
|
|
81
|
+
}];
|
|
82
|
+
})
|
|
83
|
+
|
|
84
|
+
RCT_EXPORT_VIEW_MANAGER_COMMAND(updateDataTexture, {
|
|
85
|
+
RCTLogInfo(@"🟢 [GridRenderLayerManager] updateDataTexture command received");
|
|
86
|
+
NSLog(@"🟢 [GridRenderLayerManager] updateDataTexture - node: %@, args count: %lu", node, (unsigned long)[args count]);
|
|
87
|
+
|
|
88
|
+
[self.bridge.uiManager addUIBlock:^(__unused RCTUIManager *uiManager, NSDictionary<NSNumber *, UIView *> *viewRegistry) {
|
|
89
|
+
UIView *view = viewRegistry[node];
|
|
90
|
+
if ([view isKindOfClass:[GridRenderLayer class]]) {
|
|
91
|
+
NSString *data = args[0];
|
|
92
|
+
NSNumber *nx = args[1];
|
|
93
|
+
NSNumber *ny = args[2];
|
|
94
|
+
NSNumber *scale = args[3];
|
|
95
|
+
NSNumber *offset = args[4];
|
|
96
|
+
NSNumber *missing = args[5];
|
|
97
|
+
NSLog(@"🟢 [GridRenderLayerManager] updateDataTexture - calling Swift method");
|
|
98
|
+
[(GridRenderLayer *)view updateDataTextureWithData:data nx:nx ny:ny scale:scale offset:offset missing:missing];
|
|
99
|
+
} else {
|
|
100
|
+
RCTLogError(@"🔴 [GridRenderLayerManager] updateDataTexture - wrong view type: %@", [view class]);
|
|
101
|
+
}
|
|
102
|
+
}];
|
|
103
|
+
})
|
|
104
|
+
|
|
105
|
+
RCT_EXPORT_VIEW_MANAGER_COMMAND(updateColormapTexture, {
|
|
106
|
+
RCTLogInfo(@"🟢 [GridRenderLayerManager] updateColormapTexture command received");
|
|
107
|
+
[self.bridge.uiManager addUIBlock:^(__unused RCTUIManager *uiManager, NSDictionary<NSNumber *, UIView *> *viewRegistry) {
|
|
108
|
+
UIView *view = viewRegistry[node];
|
|
109
|
+
if ([view isKindOfClass:[GridRenderLayer class]]) {
|
|
110
|
+
NSString *colormapAsBase64 = args[0];
|
|
111
|
+
[(GridRenderLayer *)view updateColormapTextureWithColormapAsBase64:colormapAsBase64];
|
|
112
|
+
}
|
|
113
|
+
}];
|
|
114
|
+
})
|
|
115
|
+
|
|
116
|
+
RCT_EXPORT_VIEW_MANAGER_COMMAND(updateDataParameters, {
|
|
117
|
+
RCTLogInfo(@"🟢 [GridRenderLayerManager] updateDataParameters command received");
|
|
118
|
+
[self.bridge.uiManager addUIBlock:^(__unused RCTUIManager *uiManager, NSDictionary<NSNumber *, UIView *> *viewRegistry) {
|
|
119
|
+
UIView *view = viewRegistry[node];
|
|
120
|
+
if ([view isKindOfClass:[GridRenderLayer class]]) {
|
|
121
|
+
NSNumber *scale = args[0];
|
|
122
|
+
NSNumber *offset = args[1];
|
|
123
|
+
NSNumber *missing = args[2];
|
|
124
|
+
[(GridRenderLayer *)view updateDataParametersWithScale:scale offset:offset missing:missing];
|
|
125
|
+
}
|
|
126
|
+
}];
|
|
127
|
+
})
|
|
128
|
+
|
|
129
|
+
// Override to log module constants
|
|
130
|
+
- (NSDictionary *)constantsToExport
|
|
131
|
+
{
|
|
132
|
+
NSDictionary *constants = @{
|
|
133
|
+
@"ComponentName": @"GridRenderLayer",
|
|
134
|
+
@"ModuleName": @"GridRenderLayerManager"
|
|
135
|
+
};
|
|
136
|
+
RCTLogInfo(@"🔵 [GridRenderLayerManager] constantsToExport: %@", constants);
|
|
137
|
+
return constants;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
@end
|