@aguacerowx/react-native 0.0.52 → 0.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/android/src/main/cpp/satellite_ktx_jni.cpp +6 -1
- package/android/src/main/java/com/aguacerowx/reactnative/NexradRadarLayerView.java +14 -2
- package/android/src/main/java/com/aguacerowx/reactnative/SatelliteLayer.java +121 -1
- package/android/src/main/java/com/aguacerowx/reactnative/SatelliteLayerView.java +556 -392
- package/android/src/main/java/com/aguacerowx/reactnative/WeatherFrameProcessorModule.java +77 -0
- package/index.js +1 -1
- package/ios/SatelliteLayerView.swift +517 -517
- package/ios/WeatherFrameProcessorModule.m +19 -15
- package/ios/WeatherFrameProcessorModule.swift +65 -0
- package/lib/commonjs/AguaceroContext.js +0 -4
- package/lib/commonjs/AguaceroContext.js.map +1 -1
- package/lib/commonjs/GridRenderLayer.js +62 -76
- package/lib/commonjs/GridRenderLayer.js.map +1 -1
- package/lib/commonjs/MapManager.js +110 -224
- package/lib/commonjs/MapManager.js.map +1 -1
- package/lib/commonjs/MapRegistry.js +21 -33
- package/lib/commonjs/MapRegistry.js.map +1 -1
- package/lib/commonjs/NexradRadarLayer.android.js +28 -100
- package/lib/commonjs/NexradRadarLayer.android.js.map +1 -1
- package/lib/commonjs/NexradRadarLayer.ios.js +26 -97
- package/lib/commonjs/NexradRadarLayer.ios.js.map +1 -1
- package/lib/commonjs/NexradSitesMapLayer.js +41 -61
- package/lib/commonjs/NexradSitesMapLayer.js.map +1 -1
- package/lib/commonjs/SatelliteLayer.android.js +26 -38
- package/lib/commonjs/SatelliteLayer.android.js.map +1 -1
- package/lib/commonjs/SatelliteLayer.ios.js +30 -42
- package/lib/commonjs/SatelliteLayer.ios.js.map +1 -1
- package/lib/commonjs/StyleApplicator.js +129 -175
- package/lib/commonjs/StyleApplicator.js.map +1 -1
- package/lib/commonjs/WeatherLayerManager.js +996 -1627
- package/lib/commonjs/WeatherLayerManager.js.map +1 -1
- package/lib/commonjs/aguaceroCoreDebugHooks.js +58 -130
- package/lib/commonjs/aguaceroCoreDebugHooks.js.map +1 -1
- package/lib/commonjs/aguaceroRnDebug.js +147 -287
- package/lib/commonjs/aguaceroRnDebug.js.map +1 -1
- package/lib/commonjs/cdnAuthenticatedFetch.js +104 -0
- package/lib/commonjs/cdnAuthenticatedFetch.js.map +1 -0
- package/lib/commonjs/dispatchViewManagerCommandCompat.js +51 -88
- package/lib/commonjs/dispatchViewManagerCommandCompat.js.map +1 -1
- package/lib/commonjs/gridCdnAuth.js +41 -50
- package/lib/commonjs/gridCdnAuth.js.map +1 -1
- package/lib/commonjs/index.js +51 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/nexrad/nexradAndroidController.js +851 -863
- package/lib/commonjs/nexrad/nexradAndroidController.js.map +1 -1
- package/lib/commonjs/nexrad/nexradCrossSectionSampleAtLatLon.bundled.js +62 -85
- package/lib/commonjs/nexrad/nexradCrossSectionSampleAtLatLon.bundled.js.map +1 -1
- package/lib/commonjs/nexrad/nexradDiag.js +32 -148
- package/lib/commonjs/nexrad/nexradDiag.js.map +1 -1
- package/lib/commonjs/nexrad/nexradLevel2Keys.js +261 -0
- package/lib/commonjs/nexrad/nexradLevel2Keys.js.map +1 -0
- package/lib/commonjs/nexrad/nexradLutBuild.js +64 -111
- package/lib/commonjs/nexrad/nexradLutBuild.js.map +1 -1
- package/lib/commonjs/nexrad/nexradMapboxFrameOpts.bundled.js +136 -164
- package/lib/commonjs/nexrad/nexradMapboxFrameOpts.bundled.js.map +1 -1
- package/lib/commonjs/nexrad/nexradSdkImports.js +51 -0
- package/lib/commonjs/nexrad/nexradSdkImports.js.map +1 -0
- package/lib/commonjs/nexrad/radarArchiveCore.bundled.js +2848 -4455
- package/lib/commonjs/nexrad/radarArchiveCore.bundled.js.map +1 -1
- package/lib/commonjs/nexrad/radarDecode.worker.bundled.js +445 -648
- package/lib/commonjs/nexrad/radarDecode.worker.bundled.js.map +1 -1
- package/lib/commonjs/nexrad/radarFrameGpuMatch.bundled.js +52 -68
- package/lib/commonjs/nexrad/radarFrameGpuMatch.bundled.js.map +1 -1
- package/lib/commonjs/nexradNativeCommandIds.js +24 -0
- package/lib/commonjs/nexradNativeCommandIds.js.map +1 -0
- package/lib/commonjs/nws/NwsAlertsOverlay.android.js.map +1 -1
- package/lib/commonjs/nws/NwsAlertsOverlay.ios.js.map +1 -1
- package/lib/commonjs/nws/NwsAlertsOverlay.js +3 -3
- package/lib/commonjs/nws/NwsAlertsOverlay.js.map +1 -1
- package/lib/commonjs/nws/NwsAlertsOverlay.native.js +235 -361
- package/lib/commonjs/nws/NwsAlertsOverlay.native.js.map +1 -1
- package/lib/commonjs/nws/eventSourceRnPolyfill.js +92 -146
- package/lib/commonjs/nws/eventSourceRnPolyfill.js.map +1 -1
- package/lib/commonjs/nws/nwsAndroidConstants.js +2 -8
- package/lib/commonjs/nws/nwsAndroidConstants.js.map +1 -1
- package/lib/commonjs/satellite/satelliteAndroidController.js +122 -199
- package/lib/commonjs/satellite/satelliteAndroidController.js.map +1 -1
- package/lib/commonjs/satelliteBridgeDiag.js +3 -13
- package/lib/commonjs/satelliteBridgeDiag.js.map +1 -1
- package/lib/commonjs/satelliteRnDebug.js +160 -0
- package/lib/commonjs/satelliteRnDebug.js.map +1 -0
- package/lib/module/AguaceroContext.js +2 -7
- package/lib/module/AguaceroContext.js.map +1 -1
- package/lib/module/GridRenderLayer.js +66 -80
- package/lib/module/GridRenderLayer.js.map +1 -1
- package/lib/module/MapManager.js +125 -239
- package/lib/module/MapManager.js.map +1 -1
- package/lib/module/MapRegistry.js +21 -33
- package/lib/module/MapRegistry.js.map +1 -1
- package/lib/module/NexradRadarLayer.android.js +32 -104
- package/lib/module/NexradRadarLayer.android.js.map +1 -1
- package/lib/module/NexradRadarLayer.ios.js +30 -101
- package/lib/module/NexradRadarLayer.ios.js.map +1 -1
- package/lib/module/NexradSitesMapLayer.js +44 -63
- package/lib/module/NexradSitesMapLayer.js.map +1 -1
- package/lib/module/SatelliteLayer.android.js +32 -44
- package/lib/module/SatelliteLayer.android.js.map +1 -1
- package/lib/module/SatelliteLayer.ios.js +36 -48
- package/lib/module/SatelliteLayer.ios.js.map +1 -1
- package/lib/module/StyleApplicator.js +144 -191
- package/lib/module/StyleApplicator.js.map +1 -1
- package/lib/module/WeatherLayerManager.js +1024 -1655
- package/lib/module/WeatherLayerManager.js.map +1 -1
- package/lib/module/aguaceroCoreDebugHooks.js +59 -130
- package/lib/module/aguaceroCoreDebugHooks.js.map +1 -1
- package/lib/module/aguaceroRnDebug.js +151 -291
- package/lib/module/aguaceroRnDebug.js.map +1 -1
- package/lib/module/cdnAuthenticatedFetch.js +97 -0
- package/lib/module/cdnAuthenticatedFetch.js.map +1 -0
- package/lib/module/dispatchViewManagerCommandCompat.js +52 -90
- package/lib/module/dispatchViewManagerCommandCompat.js.map +1 -1
- package/lib/module/gridCdnAuth.js +38 -50
- package/lib/module/gridCdnAuth.js.map +1 -1
- package/lib/module/index.js +9 -6
- package/lib/module/index.js.map +1 -1
- package/lib/module/nexrad/nexradAndroidController.js +865 -876
- package/lib/module/nexrad/nexradAndroidController.js.map +1 -1
- package/lib/module/nexrad/nexradCrossSectionSampleAtLatLon.bundled.js +62 -85
- package/lib/module/nexrad/nexradCrossSectionSampleAtLatLon.bundled.js.map +1 -1
- package/lib/module/nexrad/nexradDiag.js +31 -145
- package/lib/module/nexrad/nexradDiag.js.map +1 -1
- package/lib/module/nexrad/nexradLevel2Keys.js +245 -0
- package/lib/module/nexrad/nexradLevel2Keys.js.map +1 -0
- package/lib/module/nexrad/nexradLutBuild.js +64 -110
- package/lib/module/nexrad/nexradLutBuild.js.map +1 -1
- package/lib/module/nexrad/nexradMapboxFrameOpts.bundled.js +136 -163
- package/lib/module/nexrad/nexradMapboxFrameOpts.bundled.js.map +1 -1
- package/lib/module/nexrad/nexradSdkImports.js +4 -0
- package/lib/module/nexrad/nexradSdkImports.js.map +1 -0
- package/lib/module/nexrad/radarArchiveCore.bundled.js +2839 -4448
- package/lib/module/nexrad/radarArchiveCore.bundled.js.map +1 -1
- package/lib/module/nexrad/radarDecode.worker.bundled.js +445 -648
- package/lib/module/nexrad/radarDecode.worker.bundled.js.map +1 -1
- package/lib/module/nexrad/radarFrameGpuMatch.bundled.js +50 -66
- package/lib/module/nexrad/radarFrameGpuMatch.bundled.js.map +1 -1
- package/lib/module/nexradNativeCommandIds.js +18 -0
- package/lib/module/nexradNativeCommandIds.js.map +1 -0
- package/lib/module/nws/NwsAlertsOverlay.android.js +1 -1
- package/lib/module/nws/NwsAlertsOverlay.android.js.map +1 -1
- package/lib/module/nws/NwsAlertsOverlay.ios.js +1 -1
- package/lib/module/nws/NwsAlertsOverlay.ios.js.map +1 -1
- package/lib/module/nws/NwsAlertsOverlay.js +5 -5
- package/lib/module/nws/NwsAlertsOverlay.js.map +1 -1
- package/lib/module/nws/NwsAlertsOverlay.native.js +248 -373
- package/lib/module/nws/NwsAlertsOverlay.native.js.map +1 -1
- package/lib/module/nws/eventSourceRnPolyfill.js +92 -146
- package/lib/module/nws/eventSourceRnPolyfill.js.map +1 -1
- package/lib/module/nws/nwsAndroidConstants.js +2 -8
- package/lib/module/nws/nwsAndroidConstants.js.map +1 -1
- package/lib/module/satellite/satelliteAndroidController.js +125 -202
- package/lib/module/satellite/satelliteAndroidController.js.map +1 -1
- package/lib/module/satelliteBridgeDiag.js +3 -13
- package/lib/module/satelliteBridgeDiag.js.map +1 -1
- package/lib/module/satelliteRnDebug.js +148 -0
- package/lib/module/satelliteRnDebug.js.map +1 -0
- package/lib/typescript/AguaceroContext.d.ts +0 -4
- package/lib/typescript/AguaceroContext.d.ts.map +1 -1
- package/lib/typescript/GridRenderLayer.d.ts.map +1 -1
- package/lib/typescript/MapManager.d.ts +0 -12
- package/lib/typescript/MapManager.d.ts.map +1 -1
- package/lib/typescript/MapRegistry.d.ts +10 -12
- package/lib/typescript/MapRegistry.d.ts.map +1 -1
- package/lib/typescript/NexradRadarLayer.android.d.ts.map +1 -1
- package/lib/typescript/NexradRadarLayer.ios.d.ts.map +1 -1
- package/lib/typescript/NexradSitesMapLayer.d.ts +4 -10
- package/lib/typescript/NexradSitesMapLayer.d.ts.map +1 -1
- package/lib/typescript/SatelliteLayer.android.d.ts.map +1 -1
- package/lib/typescript/SatelliteLayer.ios.d.ts.map +1 -1
- package/lib/typescript/StyleApplicator.d.ts +1 -1
- package/lib/typescript/StyleApplicator.d.ts.map +1 -1
- package/lib/typescript/WeatherLayerManager.d.ts.map +1 -1
- package/lib/typescript/aguaceroCoreDebugHooks.d.ts +2 -9
- package/lib/typescript/aguaceroCoreDebugHooks.d.ts.map +1 -1
- package/lib/typescript/aguaceroRnDebug.d.ts +47 -66
- package/lib/typescript/aguaceroRnDebug.d.ts.map +1 -1
- package/lib/typescript/cdnAuthenticatedFetch.d.ts +10 -0
- package/lib/typescript/cdnAuthenticatedFetch.d.ts.map +1 -0
- package/lib/typescript/dispatchViewManagerCommandCompat.d.ts +1 -17
- package/lib/typescript/dispatchViewManagerCommandCompat.d.ts.map +1 -1
- package/lib/typescript/gridCdnAuth.d.ts +16 -21
- package/lib/typescript/gridCdnAuth.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +2 -0
- package/lib/typescript/nexrad/nexradAndroidController.d.ts +39 -89
- package/lib/typescript/nexrad/nexradAndroidController.d.ts.map +1 -1
- package/lib/typescript/nexrad/nexradCrossSectionSampleAtLatLon.bundled.d.ts +2 -1
- package/lib/typescript/nexrad/nexradCrossSectionSampleAtLatLon.bundled.d.ts.map +1 -1
- package/lib/typescript/nexrad/nexradDiag.d.ts +13 -101
- package/lib/typescript/nexrad/nexradDiag.d.ts.map +1 -1
- package/lib/typescript/nexrad/nexradLevel2Keys.d.ts +36 -0
- package/lib/typescript/nexrad/nexradLevel2Keys.d.ts.map +1 -0
- package/lib/typescript/nexrad/nexradLutBuild.d.ts +3 -10
- package/lib/typescript/nexrad/nexradLutBuild.d.ts.map +1 -1
- package/lib/typescript/nexrad/nexradMapboxFrameOpts.bundled.d.ts +4 -3
- package/lib/typescript/nexrad/nexradMapboxFrameOpts.bundled.d.ts.map +1 -1
- package/lib/typescript/nexrad/nexradSdkImports.d.ts +2 -0
- package/lib/typescript/nexrad/nexradSdkImports.d.ts.map +1 -0
- package/lib/typescript/nexrad/radarArchiveCore.bundled.d.ts +12 -7
- package/lib/typescript/nexrad/radarArchiveCore.bundled.d.ts.map +1 -1
- package/lib/typescript/nexrad/radarDecode.worker.bundled.d.ts +20 -20
- package/lib/typescript/nexrad/radarDecode.worker.bundled.d.ts.map +1 -1
- package/lib/typescript/nexrad/radarFrameGpuMatch.bundled.d.ts +4 -3
- package/lib/typescript/nexrad/radarFrameGpuMatch.bundled.d.ts.map +1 -1
- package/lib/typescript/nexradNativeCommandIds.d.ts +2 -0
- package/lib/typescript/nexradNativeCommandIds.d.ts.map +1 -0
- package/lib/typescript/nws/NwsAlertsOverlay.native.d.ts +6 -17
- package/lib/typescript/nws/NwsAlertsOverlay.native.d.ts.map +1 -1
- package/lib/typescript/nws/eventSourceRnPolyfill.d.ts +0 -3
- package/lib/typescript/nws/eventSourceRnPolyfill.d.ts.map +1 -1
- package/lib/typescript/nws/nwsAndroidConstants.d.ts +0 -5
- package/lib/typescript/nws/nwsAndroidConstants.d.ts.map +1 -1
- package/lib/typescript/satellite/satelliteAndroidController.d.ts +9 -47
- package/lib/typescript/satellite/satelliteAndroidController.d.ts.map +1 -1
- package/lib/typescript/satelliteBridgeDiag.d.ts +1 -5
- package/lib/typescript/satelliteBridgeDiag.d.ts.map +1 -1
- package/lib/typescript/satelliteRnDebug.d.ts +75 -0
- package/lib/typescript/satelliteRnDebug.d.ts.map +1 -0
- package/package.json +75 -74
- package/src/AguaceroContext.js +1 -7
- package/src/GridRenderLayer.js +1 -128
- package/src/MapManager.js +1 -277
- package/src/MapRegistry.js +1 -56
- package/src/NexradRadarLayer.android.js +1 -121
- package/src/NexradRadarLayer.ios.js +1 -115
- package/src/NexradSitesMapLayer.js +1 -75
- package/src/SatelliteLayer.android.js +1 -63
- package/src/SatelliteLayer.ios.js +1 -70
- package/src/StyleApplicator.js +1 -241
- package/src/WeatherLayerManager.js +1 -2025
- package/src/aguaceroCoreDebugHooks.js +1 -142
- package/src/aguaceroRnDebug.js +1 -335
- package/src/cdnAuthenticatedFetch.js +1 -0
- package/src/dispatchViewManagerCommandCompat.js +1 -100
- package/src/gridCdnAuth.js +1 -56
- package/src/index.js +1 -19
- package/src/nexrad/nexradAndroidController.js +1 -1078
- package/src/nexrad/nexradCrossSectionSampleAtLatLon.bundled.js +1 -91
- package/src/nexrad/nexradDiag.js +1 -150
- package/src/nexrad/nexradLevel2Keys.js +1 -0
- package/src/nexrad/nexradLutBuild.js +1 -126
- package/src/nexrad/nexradMapboxFrameOpts.bundled.js +1 -245
- package/src/nexrad/nexradSdkImports.js +1 -0
- package/src/nexrad/radarArchiveCore.bundled.js +1 -7085
- package/src/nexrad/radarDecode.worker.bundled.js +1 -813
- package/src/nexrad/radarFrameGpuMatch.bundled.js +1 -79
- package/src/nexradNativeCommandIds.js +1 -0
- package/src/nws/NwsAlertsOverlay.android.js +1 -1
- package/src/nws/NwsAlertsOverlay.ios.js +1 -1
- package/src/nws/NwsAlertsOverlay.js +1 -7
- package/src/nws/NwsAlertsOverlay.native.js +1 -463
- package/src/nws/eventSourceRnPolyfill.js +7 -193
- package/src/nws/nwsAndroidConstants.js +1 -8
- package/src/satellite/satelliteAndroidController.js +1 -245
- package/src/satelliteBridgeDiag.js +1 -15
- package/src/satelliteRnDebug.js +1 -0
- package/lib/commonjs/nexrad/nexradNativeCommandIds.js +0 -51
- package/lib/commonjs/nexrad/nexradNativeCommandIds.js.map +0 -1
- package/lib/module/nexrad/nexradNativeCommandIds.js +0 -44
- package/lib/module/nexrad/nexradNativeCommandIds.js.map +0 -1
- package/lib/typescript/nexrad/nexradNativeCommandIds.d.ts +0 -9
- package/lib/typescript/nexrad/nexradNativeCommandIds.d.ts.map +0 -1
- package/src/nexrad/nexradNativeCommandIds.js +0 -44
- /package/lib/commonjs/{nexrad/nexradSitesUs.json → nexradSitesUs.json} +0 -0
- /package/lib/module/{nexrad/nexradSitesUs.json → nexradSitesUs.json} +0 -0
- /package/src/{nexrad/nexradSitesUs.json → nexradSitesUs.json} +0 -0
|
@@ -1,118 +1,46 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { StyleSheet, UIManager, findNodeHandle } from
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import n, { forwardRef as s, useImperativeHandle as c, useRef as m } from "react";
|
|
2
|
+
import { StyleSheet as t, UIManager as u, findNodeHandle as p } from "react-native";
|
|
3
|
+
import i from "./NexradRadarLayerNativeComponent";
|
|
4
|
+
import { resolveNexradCommandId as x } from "./nexradNativeCommandIds";
|
|
5
|
+
const N = "NexradRadarLayer";
|
|
6
|
+
function l(r, o, a = []) {
|
|
7
|
+
const e = x(o),
|
|
8
|
+
d = p(r.current);
|
|
9
|
+
return e != null && d != null ? (u.dispatchViewManagerCommand(d, e, a), !0) : (__DEV__ && console.warn(`[Aguacero][NexradRadarLayer] ${o} blocked`, {
|
|
10
|
+
commandId: e,
|
|
11
|
+
hasHandle: d != null,
|
|
12
|
+
hasRef: r.current != null,
|
|
13
|
+
component: N
|
|
14
|
+
}), !1);
|
|
9
15
|
}
|
|
10
|
-
export const NexradRadarLayer = /*#__PURE__*/
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
uploadNexradFrame(
|
|
14
|
-
|
|
15
|
-
const id = getCommandId('uploadNexradFrame');
|
|
16
|
-
const handle = findNodeHandle(nativeRef.current);
|
|
17
|
-
if (id != null && handle != null) {
|
|
18
|
-
UIManager.dispatchViewManagerCommand(handle, id, [json]);
|
|
19
|
-
bridge.end({
|
|
20
|
-
jsonChars: typeof json === 'string' ? json.length : 0,
|
|
21
|
-
ok: true
|
|
22
|
-
});
|
|
23
|
-
} else {
|
|
24
|
-
bridge.end({
|
|
25
|
-
jsonChars: typeof json === 'string' ? json.length : 0,
|
|
26
|
-
ok: false,
|
|
27
|
-
commandId: id,
|
|
28
|
-
hasHandle: handle != null,
|
|
29
|
-
hasRef: nativeRef.current != null
|
|
30
|
-
});
|
|
31
|
-
nexradDiag('bridge.uploadNexradFrameBlocked', {
|
|
32
|
-
commandId: id,
|
|
33
|
-
hasHandle: handle != null,
|
|
34
|
-
hasRef: nativeRef.current != null
|
|
35
|
-
});
|
|
36
|
-
}
|
|
16
|
+
export const NexradRadarLayer = /*#__PURE__*/s((r, o) => {
|
|
17
|
+
const a = m(null);
|
|
18
|
+
return c(o, () => ({
|
|
19
|
+
uploadNexradFrame(e) {
|
|
20
|
+
l(a, "uploadNexradFrame", [e]);
|
|
37
21
|
},
|
|
38
|
-
uploadNexradStyleOnly(
|
|
39
|
-
|
|
40
|
-
const id = getCommandId('uploadNexradStyleOnly');
|
|
41
|
-
const handle = findNodeHandle(nativeRef.current);
|
|
42
|
-
if (id != null && handle != null) {
|
|
43
|
-
UIManager.dispatchViewManagerCommand(handle, id, [json]);
|
|
44
|
-
bridge.end({
|
|
45
|
-
jsonChars: typeof json === 'string' ? json.length : 0,
|
|
46
|
-
ok: true
|
|
47
|
-
});
|
|
48
|
-
} else {
|
|
49
|
-
bridge.end({
|
|
50
|
-
jsonChars: typeof json === 'string' ? json.length : 0,
|
|
51
|
-
ok: false,
|
|
52
|
-
commandId: id,
|
|
53
|
-
hasHandle: handle != null
|
|
54
|
-
});
|
|
55
|
-
nexradDiag('bridge.uploadNexradStyleOnlyBlocked', {
|
|
56
|
-
commandId: id,
|
|
57
|
-
hasHandle: handle != null
|
|
58
|
-
});
|
|
59
|
-
}
|
|
22
|
+
uploadNexradStyleOnly(e) {
|
|
23
|
+
l(a, "uploadNexradStyleOnly", [e]);
|
|
60
24
|
},
|
|
61
25
|
clearNexrad() {
|
|
62
|
-
|
|
63
|
-
const id = getCommandId('clearNexrad');
|
|
64
|
-
const handle = findNodeHandle(nativeRef.current);
|
|
65
|
-
if (id != null && handle != null) {
|
|
66
|
-
UIManager.dispatchViewManagerCommand(handle, id, []);
|
|
67
|
-
bridge.end({
|
|
68
|
-
ok: true
|
|
69
|
-
});
|
|
70
|
-
} else {
|
|
71
|
-
bridge.end({
|
|
72
|
-
ok: false,
|
|
73
|
-
commandId: id,
|
|
74
|
-
hasHandle: handle != null
|
|
75
|
-
});
|
|
76
|
-
}
|
|
26
|
+
l(a, "clearNexrad", []);
|
|
77
27
|
},
|
|
78
|
-
activateNexradCachedFrame(
|
|
79
|
-
|
|
80
|
-
const id = getCommandId('activateNexradCachedFrame');
|
|
81
|
-
const handle = findNodeHandle(nativeRef.current);
|
|
82
|
-
if (id != null && handle != null && typeof nativeGpuCacheKey === 'string') {
|
|
83
|
-
UIManager.dispatchViewManagerCommand(handle, id, [nativeGpuCacheKey]);
|
|
84
|
-
bridge.end({
|
|
85
|
-
keyLen: nativeGpuCacheKey.length,
|
|
86
|
-
ok: true
|
|
87
|
-
});
|
|
88
|
-
} else {
|
|
89
|
-
bridge.end({
|
|
90
|
-
keyLen: typeof nativeGpuCacheKey === 'string' ? nativeGpuCacheKey.length : 0,
|
|
91
|
-
ok: false,
|
|
92
|
-
commandId: id,
|
|
93
|
-
hasHandle: handle != null
|
|
94
|
-
});
|
|
95
|
-
nexradDiag('bridge.activateNexradCachedFrameBlocked', {
|
|
96
|
-
commandId: id,
|
|
97
|
-
hasHandle: handle != null,
|
|
98
|
-
keyType: typeof nativeGpuCacheKey
|
|
99
|
-
});
|
|
100
|
-
}
|
|
28
|
+
activateNexradCachedFrame(e) {
|
|
29
|
+
typeof e == "string" && l(a, "activateNexradCachedFrame", [e]);
|
|
101
30
|
}
|
|
102
|
-
}))
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
style: styles.overlay,
|
|
31
|
+
})), /*#__PURE__*/n.createElement(i, {
|
|
32
|
+
ref: a,
|
|
33
|
+
belowID: r.belowID,
|
|
34
|
+
style: f.overlay,
|
|
107
35
|
pointerEvents: "none",
|
|
108
|
-
collapsable:
|
|
36
|
+
collapsable: !1
|
|
109
37
|
});
|
|
110
38
|
});
|
|
111
|
-
const
|
|
39
|
+
const f = t.create({
|
|
112
40
|
overlay: {
|
|
113
|
-
...
|
|
41
|
+
...t.absoluteFillObject
|
|
114
42
|
}
|
|
115
43
|
});
|
|
116
|
-
NexradRadarLayer.displayName =
|
|
44
|
+
NexradRadarLayer.displayName = "NexradRadarLayer";
|
|
117
45
|
export default NexradRadarLayer;
|
|
118
46
|
//# sourceMappingURL=NexradRadarLayer.android.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["n","forwardRef","s","useImperativeHandle","c","useRef","m","StyleSheet","t","UIManager","u","findNodeHandle","p","i","resolveNexradCommandId","x","N","l","r","o","a","e","d","current","dispatchViewManagerCommand","__DEV__","console","warn","commandId","hasHandle","hasRef","component","NexradRadarLayer","uploadNexradFrame","uploadNexradStyleOnly","clearNexrad","activateNexradCachedFrame","createElement","ref","belowID","style","f","overlay","pointerEvents","collapsable","create","absoluteFillObject","displayName"],"sourceRoot":"..\\..\\src","sources":["NexradRadarLayer.android.js"],"mappings":"AAAA,OAAOA,CAAC,IAAEC,UAAU,IAAIC,CAAC,EAACC,mBAAmB,IAAIC,CAAC,EAACC,MAAM,IAAIC,CAAC,QAAK,OAAO;AAAC,SAAOC,UAAU,IAAIC,CAAC,EAACC,SAAS,IAAIC,CAAC,EAACC,cAAc,IAAIC,CAAC,QAAK,cAAc;AAAC,OAAOC,CAAC,MAAK,mCAAmC;AAAC,SAAOC,sBAAsB,IAAIC,CAAC,QAAK,0BAA0B;AAAC,MAAMC,CAAC,GAAC,kBAAkB;AAAC,SAASC,CAACA,CAACC,CAAC,EAACC,CAAC,EAACC,CAAC,GAAC,EAAE,EAAC;EAAC,MAAMC,CAAC,GAACN,CAAC,CAACI,CAAC,C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AO;IAACC,KAAK,EAACC,CAAC,CAACC,OAAO;IAACC,aAAa,EAAC,MAAM;IAACC,WAAW,EAAC,CAAC;EAAC,CAAC,CAAC;AAAA,CAAC,CAAC;AAAC,MAAMH,CAAC,GAACjC,CAAC,CAACqC,MAAM,CAAC;EAACH,OAAO,EAAC;IAAC,GAAGlC,CAAC,CAACsC;EAAkB;AAAC,CAAC,CAAC;AAACd,gBAAgB,CAACe,WAAW,GAAC,kBAAkB;AAAC,eAAef,gBAAgB","ignoreList":[]}
|
|
@@ -1,114 +1,43 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { StyleSheet, UIManager, findNodeHandle } from
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
});
|
|
19
|
-
} else {
|
|
20
|
-
bridge.end({
|
|
21
|
-
jsonChars: typeof json === 'string' ? json.length : 0,
|
|
22
|
-
ok: false,
|
|
23
|
-
commandId: id,
|
|
24
|
-
hasHandle: handle != null,
|
|
25
|
-
hasRef: nativeRef.current != null
|
|
26
|
-
});
|
|
27
|
-
nexradDiag('bridge.uploadNexradFrameBlocked', {
|
|
28
|
-
commandId: id,
|
|
29
|
-
hasHandle: handle != null,
|
|
30
|
-
hasRef: nativeRef.current != null
|
|
31
|
-
});
|
|
32
|
-
}
|
|
1
|
+
import n, { forwardRef as s, useImperativeHandle as c, useRef as m } from "react";
|
|
2
|
+
import { StyleSheet as t, UIManager as u, findNodeHandle as p } from "react-native";
|
|
3
|
+
import i from "./NexradRadarLayerNativeComponent";
|
|
4
|
+
import { resolveNexradCommandId as x } from "./nexradNativeCommandIds";
|
|
5
|
+
function l(o, r, a = []) {
|
|
6
|
+
const e = x(r),
|
|
7
|
+
d = p(o.current);
|
|
8
|
+
return e != null && d != null ? (u.dispatchViewManagerCommand(d, e, a), !0) : (__DEV__ && console.warn(`[Aguacero][NexradRadarLayer] ${r} blocked`, {
|
|
9
|
+
commandId: e,
|
|
10
|
+
hasHandle: d != null
|
|
11
|
+
}), !1);
|
|
12
|
+
}
|
|
13
|
+
export const NexradRadarLayer = /*#__PURE__*/s((o, r) => {
|
|
14
|
+
const a = m(null);
|
|
15
|
+
return c(r, () => ({
|
|
16
|
+
uploadNexradFrame(e) {
|
|
17
|
+
l(a, "uploadNexradFrame", [e]);
|
|
33
18
|
},
|
|
34
|
-
uploadNexradStyleOnly(
|
|
35
|
-
|
|
36
|
-
const id = resolveNexradCommandId('uploadNexradStyleOnly');
|
|
37
|
-
const handle = findNodeHandle(nativeRef.current);
|
|
38
|
-
if (id != null && handle != null) {
|
|
39
|
-
UIManager.dispatchViewManagerCommand(handle, id, [json]);
|
|
40
|
-
bridge.end({
|
|
41
|
-
jsonChars: typeof json === 'string' ? json.length : 0,
|
|
42
|
-
ok: true
|
|
43
|
-
});
|
|
44
|
-
} else {
|
|
45
|
-
bridge.end({
|
|
46
|
-
jsonChars: typeof json === 'string' ? json.length : 0,
|
|
47
|
-
ok: false,
|
|
48
|
-
commandId: id,
|
|
49
|
-
hasHandle: handle != null
|
|
50
|
-
});
|
|
51
|
-
nexradDiag('bridge.uploadNexradStyleOnlyBlocked', {
|
|
52
|
-
commandId: id,
|
|
53
|
-
hasHandle: handle != null
|
|
54
|
-
});
|
|
55
|
-
}
|
|
19
|
+
uploadNexradStyleOnly(e) {
|
|
20
|
+
l(a, "uploadNexradStyleOnly", [e]);
|
|
56
21
|
},
|
|
57
22
|
clearNexrad() {
|
|
58
|
-
|
|
59
|
-
const id = resolveNexradCommandId('clearNexrad');
|
|
60
|
-
const handle = findNodeHandle(nativeRef.current);
|
|
61
|
-
if (id != null && handle != null) {
|
|
62
|
-
UIManager.dispatchViewManagerCommand(handle, id, []);
|
|
63
|
-
bridge.end({
|
|
64
|
-
ok: true
|
|
65
|
-
});
|
|
66
|
-
} else {
|
|
67
|
-
bridge.end({
|
|
68
|
-
ok: false,
|
|
69
|
-
commandId: id,
|
|
70
|
-
hasHandle: handle != null
|
|
71
|
-
});
|
|
72
|
-
}
|
|
23
|
+
l(a, "clearNexrad", []);
|
|
73
24
|
},
|
|
74
|
-
activateNexradCachedFrame(
|
|
75
|
-
|
|
76
|
-
const id = resolveNexradCommandId('activateNexradCachedFrame');
|
|
77
|
-
const handle = findNodeHandle(nativeRef.current);
|
|
78
|
-
if (id != null && handle != null && typeof nativeGpuCacheKey === 'string') {
|
|
79
|
-
UIManager.dispatchViewManagerCommand(handle, id, [nativeGpuCacheKey]);
|
|
80
|
-
bridge.end({
|
|
81
|
-
keyLen: nativeGpuCacheKey.length,
|
|
82
|
-
ok: true
|
|
83
|
-
});
|
|
84
|
-
} else {
|
|
85
|
-
bridge.end({
|
|
86
|
-
keyLen: typeof nativeGpuCacheKey === 'string' ? nativeGpuCacheKey.length : 0,
|
|
87
|
-
ok: false,
|
|
88
|
-
commandId: id,
|
|
89
|
-
hasHandle: handle != null
|
|
90
|
-
});
|
|
91
|
-
nexradDiag('bridge.activateNexradCachedFrameBlocked', {
|
|
92
|
-
commandId: id,
|
|
93
|
-
hasHandle: handle != null,
|
|
94
|
-
keyType: typeof nativeGpuCacheKey
|
|
95
|
-
});
|
|
96
|
-
}
|
|
25
|
+
activateNexradCachedFrame(e) {
|
|
26
|
+
typeof e == "string" && l(a, "activateNexradCachedFrame", [e]);
|
|
97
27
|
}
|
|
98
|
-
}))
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
style: styles.overlay,
|
|
28
|
+
})), /*#__PURE__*/n.createElement(i, {
|
|
29
|
+
ref: a,
|
|
30
|
+
belowID: o.belowID,
|
|
31
|
+
style: N.overlay,
|
|
103
32
|
pointerEvents: "none",
|
|
104
|
-
collapsable:
|
|
33
|
+
collapsable: !1
|
|
105
34
|
});
|
|
106
35
|
});
|
|
107
|
-
const
|
|
36
|
+
const N = t.create({
|
|
108
37
|
overlay: {
|
|
109
|
-
...
|
|
38
|
+
...t.absoluteFillObject
|
|
110
39
|
}
|
|
111
40
|
});
|
|
112
|
-
NexradRadarLayer.displayName =
|
|
41
|
+
NexradRadarLayer.displayName = "NexradRadarLayer";
|
|
113
42
|
export default NexradRadarLayer;
|
|
114
43
|
//# sourceMappingURL=NexradRadarLayer.ios.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["n","forwardRef","s","useImperativeHandle","c","useRef","m","StyleSheet","t","UIManager","u","findNodeHandle","p","i","resolveNexradCommandId","x","l","o","r","a","e","d","current","dispatchViewManagerCommand","__DEV__","console","warn","commandId","hasHandle","NexradRadarLayer","uploadNexradFrame","uploadNexradStyleOnly","clearNexrad","activateNexradCachedFrame","createElement","ref","belowID","style","N","overlay","pointerEvents","collapsable","create","absoluteFillObject","displayName"],"sourceRoot":"..\\..\\src","sources":["NexradRadarLayer.ios.js"],"mappings":"AAAA,OAAOA,CAAC,IAAEC,UAAU,IAAIC,CAAC,EAACC,mBAAmB,IAAIC,CAAC,EAACC,MAAM,IAAIC,CAAC,QAAK,OAAO;AAAC,SAAOC,UAAU,IAAIC,CAAC,EAACC,SAAS,IAAIC,CAAC,EAACC,cAAc,IAAIC,CAAC,QAAK,cAAc;AAAC,OAAOC,CAAC,MAAK,mCAAmC;AAAC,SAAOC,sBAAsB,IAAIC,CAAC,QAAK,0BAA0B;AAAC,SAASC,CAACA,CAACC,CAAC,EAACC,CAAC,EAACC,CAAC,GAAC,EAAE,EAAC;EAAC,MAAMC,CAAC,GAACL,CAAC,CAACG,CAAC,CAAC;IAACG,CAAC,GAACT,CAAC,CAACK,CAAC,CAACK,OAAO,CAAC;EAAC,OAAOF,CAAC,IAAE,IAAI,IAAEC,CAAC,IAAE,IAAI,IAAEX,CAAC,CAACa,0BAA0B,CAACF,CAAC,EAACD,CAAC,EAACD,CAAC,CAAC,EAAC,CAAC,C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,kBAAkB;AAAC,eAAef,gBAAgB","ignoreList":[]}
|
|
@@ -1,85 +1,66 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
if (!item) continue;
|
|
21
|
-
const lon = Number(item.lon ?? item.lng ?? item.longitude);
|
|
22
|
-
const lat = Number(item.lat ?? item.latitude);
|
|
23
|
-
const id = String(item.id ?? item.station ?? '').toUpperCase();
|
|
24
|
-
if (!id || !Number.isFinite(lat) || !Number.isFinite(lon)) continue;
|
|
25
|
-
features.push({
|
|
26
|
-
type: 'Feature',
|
|
1
|
+
import c from "react";
|
|
2
|
+
import l from "@rnmapbox/maps";
|
|
3
|
+
import f from "./nexradSitesUs.json";
|
|
4
|
+
const p = "aguacero-nexrad-sites-src",
|
|
5
|
+
y = "aguacero-nexrad-sites-circles";
|
|
6
|
+
function d() {
|
|
7
|
+
const i = f?.sites;
|
|
8
|
+
if (!Array.isArray(i)) return {
|
|
9
|
+
type: "FeatureCollection",
|
|
10
|
+
features: []
|
|
11
|
+
};
|
|
12
|
+
const r = [];
|
|
13
|
+
for (const e of i) {
|
|
14
|
+
if (!e) continue;
|
|
15
|
+
const o = Number(e.lon ?? e.lng ?? e.longitude),
|
|
16
|
+
n = Number(e.lat ?? e.latitude),
|
|
17
|
+
t = String(e.id ?? e.station ?? "").toUpperCase();
|
|
18
|
+
!t || !Number.isFinite(n) || !Number.isFinite(o) || r.push({
|
|
19
|
+
type: "Feature",
|
|
27
20
|
geometry: {
|
|
28
|
-
type:
|
|
29
|
-
coordinates: [
|
|
21
|
+
type: "Point",
|
|
22
|
+
coordinates: [o, n]
|
|
30
23
|
},
|
|
31
24
|
properties: {
|
|
32
|
-
id,
|
|
33
|
-
name:
|
|
25
|
+
id: t,
|
|
26
|
+
name: t
|
|
34
27
|
}
|
|
35
28
|
});
|
|
36
29
|
}
|
|
37
30
|
return {
|
|
38
|
-
type:
|
|
39
|
-
features
|
|
31
|
+
type: "FeatureCollection",
|
|
32
|
+
features: r
|
|
40
33
|
};
|
|
41
34
|
}
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* @param {object} props
|
|
46
|
-
* @param {boolean} props.visible
|
|
47
|
-
* @param {(siteId: string) => void} [props.onSelectSite]
|
|
48
|
-
* @param {string} [props.belowLayerID] - Optional style layer id to insert under (e.g. weather anchor).
|
|
49
|
-
*/
|
|
35
|
+
const u = d();
|
|
50
36
|
export function NexradSitesMapLayer({
|
|
51
|
-
visible,
|
|
52
|
-
onSelectSite,
|
|
53
|
-
belowLayerID
|
|
37
|
+
visible: i,
|
|
38
|
+
onSelectSite: r,
|
|
39
|
+
belowLayerID: e
|
|
54
40
|
}) {
|
|
55
|
-
const
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
onSelectSite(String(id));
|
|
61
|
-
}
|
|
41
|
+
const o = n => {
|
|
42
|
+
const t = n?.features,
|
|
43
|
+
s = Array.isArray(t) && t.length > 0 ? t[0] : null,
|
|
44
|
+
a = s?.properties?.id ?? s?.properties?.name;
|
|
45
|
+
a && typeof r == "function" && r(String(a));
|
|
62
46
|
};
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
id: SOURCE_ID,
|
|
68
|
-
shape: NEXRAD_SITES_FEATURE_COLLECTION,
|
|
69
|
-
onPress: handlePress,
|
|
47
|
+
return !i || !u.features.length ? null : /*#__PURE__*/c.createElement(l.ShapeSource, {
|
|
48
|
+
id: p,
|
|
49
|
+
shape: u,
|
|
50
|
+
onPress: o,
|
|
70
51
|
hitbox: {
|
|
71
52
|
width: 44,
|
|
72
53
|
height: 44
|
|
73
54
|
}
|
|
74
|
-
}, /*#__PURE__*/
|
|
75
|
-
id:
|
|
76
|
-
belowLayerID:
|
|
55
|
+
}, /*#__PURE__*/c.createElement(l.CircleLayer, {
|
|
56
|
+
id: y,
|
|
57
|
+
belowLayerID: e,
|
|
77
58
|
style: {
|
|
78
59
|
circleRadius: 5,
|
|
79
|
-
circleColor:
|
|
60
|
+
circleColor: "#3b82f6",
|
|
80
61
|
circleStrokeWidth: 1,
|
|
81
|
-
circleStrokeColor:
|
|
82
|
-
circleOpacity:
|
|
62
|
+
circleStrokeColor: "#ffffff",
|
|
63
|
+
circleOpacity: .95
|
|
83
64
|
}
|
|
84
65
|
}));
|
|
85
66
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["c","l","f","p","y","d","i","sites","Array","isArray","type","features","r","e","o","Number","lon","lng","longitude","n","lat","latitude","t","String","id","station","toUpperCase","isFinite","push","geometry","coordinates","properties","name","u","NexradSitesMapLayer","visible","onSelectSite","belowLayerID","s","length","a","createElement","ShapeSource","shape","onPress","hitbox","width","height","CircleLayer","style","circleRadius","circleColor","circleStrokeWidth","circleStrokeColor","circleOpacity"],"sourceRoot":"..\\..\\src","sources":["NexradSitesMapLayer.js"],"mappings":"AAAA,OAAOA,CAAC,MAAK,OAAO;AAAC,OAAOC,CAAC,MAAK,gBAAgB;AAAC,OAAOC,CAAC,MAAK,sBAAsB;AAAC,MAAMC,CAAC,GAAC,2BAA2B;EAACC,CAAC,GAAC,+BAA+B;AAAC,SAASC,CAACA,CAAA,EAAE;EAAC,MAAMC,CAAC,GAACJ,CAAC,EAAEK,KAAK;EAAC,IAAG,CAACC,KAAK,CAACC,OAAO,CAACH,CAAC,CAAC,EAAC,OAAM;IAACI,IAAI,EAAC,mBAAmB;IAACC,QAAQ,EAAC;EAAE,CAAC;EAAC,MAAMC,CAAC,GAAC,EAAE;EAAC,KAAI,MAAMC,CAAC,IAAIP,CAAC,EAAC;IAAC,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IAAEc,CAAC,EAAEP,UAAU,EAAEC,IAAI;IAACQ,CAAC,IAAE,OAAO5B,CAAC,IAAE,UAAU,IAAEA,CAAC,CAACW,MAAM,CAACiB,CAAC,CAAC,CAAC;EAAA,CAAC;EAAC,OAAM,CAAClC,CAAC,IAAE,CAAC2B,CAAC,CAACtB,QAAQ,CAAC4B,MAAM,GAAC,IAAI,gBAACvC,CAAC,CAACyC,aAAa,CAACxC,CAAC,CAACyC,WAAW,EAAC;IAAClB,EAAE,EAACrB,CAAC;IAACwC,KAAK,EAACV,CAAC;IAACW,OAAO,EAAC9B,CAAC;IAAC+B,MAAM,EAAC;MAACC,KAAK,EAAC,EAAE;MAACC,MAAM,EAAC;IAAE;EAAC,CAAC,eAAC/C,CAAC,CAACyC,aAAa,CAACxC,CAAC,CAAC+C,WAAW,EAAC;IAACxB,EAAE,EAACpB,CAAC;IAACiC,YAAY,EAACxB,CAAC;IAACoC,KAAK,EAAC;MAACC,YAAY,EAAC,CAAC;MAACC,WAAW,EAAC,SAAS;MAACC,iBAAiB,EAAC,CAAC;MAACC,iBAAiB,EAAC,SAAS;MAACC,aAAa,EAAC;IAAG;EAAC,CAAC,CAAC,CAAC;AAAA","ignoreList":[]}
|
|
@@ -1,57 +1,45 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { StyleSheet } from
|
|
3
|
-
import
|
|
4
|
-
import { dispatchViewManagerCommandCompat } from
|
|
5
|
-
import { satBridgeWarn } from
|
|
6
|
-
const
|
|
7
|
-
function
|
|
8
|
-
|
|
1
|
+
import s, { forwardRef as S, useImperativeHandle as y, useRef as d } from "react";
|
|
2
|
+
import { StyleSheet as o } from "react-native";
|
|
3
|
+
import p from "./SatelliteLayerNativeComponent";
|
|
4
|
+
import { dispatchViewManagerCommandCompat as l } from "./dispatchViewManagerCommandCompat";
|
|
5
|
+
import { satBridgeWarn as a } from "./satelliteBridgeDiag";
|
|
6
|
+
const i = "SatelliteLayer";
|
|
7
|
+
function r(n) {
|
|
8
|
+
a(`SatelliteLayer:${n}:dispatch-failed`, {});
|
|
9
9
|
}
|
|
10
|
-
export const SatelliteLayer = /*#__PURE__*/
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
syncSatellite(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
});
|
|
18
|
-
const ok = dispatchViewManagerCommandCompat(nativeRef, NATIVE_COMPONENT_NAME, 'syncSatellite', [json]);
|
|
19
|
-
if (!ok) warnFailed('syncSatellite');
|
|
10
|
+
export const SatelliteLayer = /*#__PURE__*/S((n, c) => {
|
|
11
|
+
const t = d(null);
|
|
12
|
+
return y(c, () => ({
|
|
13
|
+
syncSatellite(e) {
|
|
14
|
+
typeof e == "string" && (a("SatelliteLayer.syncSatellite called", {
|
|
15
|
+
jsonChars: e.length
|
|
16
|
+
}), l(t, i, "syncSatellite", [e]) || r("syncSatellite"));
|
|
20
17
|
},
|
|
21
18
|
clearSatellite() {
|
|
22
|
-
|
|
23
|
-
const ok = dispatchViewManagerCommandCompat(nativeRef, NATIVE_COMPONENT_NAME, 'clearSatellite', []);
|
|
24
|
-
if (!ok) warnFailed('clearSatellite');
|
|
19
|
+
a("SatelliteLayer.clearSatellite called", {}), l(t, i, "clearSatellite", []) || r("clearSatellite");
|
|
25
20
|
},
|
|
26
|
-
activateSatelliteCachedUnix(
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
});
|
|
31
|
-
const ok = dispatchViewManagerCommandCompat(nativeRef, NATIVE_COMPONENT_NAME, 'activateSatelliteCachedUnix', [unix]);
|
|
32
|
-
if (!ok) warnFailed('activateSatelliteCachedUnix');
|
|
21
|
+
activateSatelliteCachedUnix(e) {
|
|
22
|
+
typeof e == "number" && (a("SatelliteLayer.activateSatelliteCachedUnix called", {
|
|
23
|
+
unix: e
|
|
24
|
+
}), l(t, i, "activateSatelliteCachedUnix", [e]) || r("activateSatelliteCachedUnix"));
|
|
33
25
|
},
|
|
34
|
-
updateSatelliteStyle(
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
});
|
|
39
|
-
const ok = dispatchViewManagerCommandCompat(nativeRef, NATIVE_COMPONENT_NAME, 'updateSatelliteStyle', [json]);
|
|
40
|
-
if (!ok) warnFailed('updateSatelliteStyle');
|
|
26
|
+
updateSatelliteStyle(e) {
|
|
27
|
+
typeof e == "string" && (a("SatelliteLayer.updateSatelliteStyle called", {
|
|
28
|
+
jsonChars: e.length
|
|
29
|
+
}), l(t, i, "updateSatelliteStyle", [e]) || r("updateSatelliteStyle"));
|
|
41
30
|
}
|
|
42
|
-
}))
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
style: styles.overlay,
|
|
31
|
+
})), /*#__PURE__*/s.createElement(p, {
|
|
32
|
+
ref: t,
|
|
33
|
+
belowID: n.belowID,
|
|
34
|
+
style: f.overlay,
|
|
47
35
|
pointerEvents: "none",
|
|
48
|
-
collapsable:
|
|
36
|
+
collapsable: !1
|
|
49
37
|
});
|
|
50
38
|
});
|
|
51
|
-
SatelliteLayer.displayName =
|
|
52
|
-
const
|
|
39
|
+
SatelliteLayer.displayName = "SatelliteLayer";
|
|
40
|
+
const f = o.create({
|
|
53
41
|
overlay: {
|
|
54
|
-
...
|
|
42
|
+
...o.absoluteFillObject
|
|
55
43
|
}
|
|
56
44
|
});
|
|
57
45
|
export default SatelliteLayer;
|