react-native-map4d-map-dtqg 0.1.3 → 0.1.5

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.
Files changed (321) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +191 -133
  3. package/android/.gradle/8.9/checksums/checksums.lock +0 -0
  4. package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
  5. package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
  6. package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
  7. package/android/.gradle/8.9/gc.properties +0 -0
  8. package/android/.gradle/9.2.0/checksums/checksums.lock +0 -0
  9. package/android/.gradle/9.2.0/fileChanges/last-build.bin +0 -0
  10. package/android/.gradle/9.2.0/fileHashes/fileHashes.bin +0 -0
  11. package/android/.gradle/9.2.0/fileHashes/fileHashes.lock +0 -0
  12. package/android/.gradle/9.2.0/gc.properties +0 -0
  13. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  14. package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
  15. package/android/.gradle/vcs-1/gc.properties +0 -0
  16. package/android/build.gradle +60 -60
  17. package/android/src/main/AndroidManifest.xml +4 -4
  18. package/android/src/main/java/com/reactnativemap4dmap/ImageUtils.java +87 -87
  19. package/android/src/main/java/com/reactnativemap4dmap/Map4dMapModule.java +310 -298
  20. package/android/src/main/java/com/reactnativemap4dmap/Map4dMapPackage.java +35 -35
  21. package/android/src/main/java/com/reactnativemap4dmap/Map4dMapViewManager.java +31 -31
  22. package/android/src/main/java/com/reactnativemap4dmap/RMFBuilding.java +167 -167
  23. package/android/src/main/java/com/reactnativemap4dmap/RMFBuildingManager.java +121 -121
  24. package/android/src/main/java/com/reactnativemap4dmap/RMFCircle.java +105 -105
  25. package/android/src/main/java/com/reactnativemap4dmap/RMFCircleManager.java +121 -121
  26. package/android/src/main/java/com/reactnativemap4dmap/RMFDirectionsRenderer.java +502 -502
  27. package/android/src/main/java/com/reactnativemap4dmap/RMFDirectionsRendererManager.java +143 -143
  28. package/android/src/main/java/com/reactnativemap4dmap/RMFFeature.java +17 -17
  29. package/android/src/main/java/com/reactnativemap4dmap/RMFMapView.java +1172 -1172
  30. package/android/src/main/java/com/reactnativemap4dmap/RMFMapViewManager.java +231 -231
  31. package/android/src/main/java/com/reactnativemap4dmap/RMFMarker.java +412 -412
  32. package/android/src/main/java/com/reactnativemap4dmap/RMFMarkerManager.java +211 -211
  33. package/android/src/main/java/com/reactnativemap4dmap/RMFPOI.java +222 -222
  34. package/android/src/main/java/com/reactnativemap4dmap/RMFPOIManager.java +119 -119
  35. package/android/src/main/java/com/reactnativemap4dmap/RMFPolygon.java +172 -172
  36. package/android/src/main/java/com/reactnativemap4dmap/RMFPolygonManager.java +147 -147
  37. package/android/src/main/java/com/reactnativemap4dmap/RMFPolyline.java +146 -146
  38. package/android/src/main/java/com/reactnativemap4dmap/RMFPolylineManager.java +137 -137
  39. package/android/src/main/java/com/reactnativemap4dmap/RMFTileOverlay.java +95 -95
  40. package/android/src/main/java/com/reactnativemap4dmap/RMFTileOverlayManager.java +64 -64
  41. package/android/src/main/java/com/reactnativemap4dmap/SizeReportingShadowNode.java +31 -31
  42. package/android/src/main/java/com/reactnativemap4dmap/ViewAttacherGroup.java +31 -31
  43. package/android/src/main/java/com/reactnativemap4dmap/ViewChangesTracker.java +70 -70
  44. package/android/src/main/java/vn/map4d/map/annotations/RMFBitmapDescriptor.java +9 -9
  45. package/ios/Map4dMap.h +16 -7
  46. package/ios/Map4dMap.m +119 -14
  47. package/ios/Map4dMapTurbo.mm +16 -0
  48. package/ios/RCTConvert+Map4dMap.h +33 -33
  49. package/ios/RCTConvert+Map4dMap.m +112 -112
  50. package/ios/RMFCircle.h +37 -37
  51. package/ios/RMFCircle.m +100 -100
  52. package/ios/RMFCircleManager.h +18 -18
  53. package/ios/RMFCircleManager.m +127 -155
  54. package/ios/RMFCircleMap4d.h +23 -23
  55. package/ios/RMFCircleMap4d.m +13 -13
  56. package/ios/RMFCoordinate.h +22 -22
  57. package/ios/RMFCoordinate.m +13 -13
  58. package/ios/RMFDirectionsMarkerOptions.h +24 -24
  59. package/ios/RMFDirectionsMarkerOptions.m +23 -23
  60. package/ios/RMFDirectionsRenderer.h +47 -47
  61. package/ios/RMFDirectionsRenderer.m +182 -182
  62. package/ios/RMFDirectionsRendererManager.h +17 -17
  63. package/ios/RMFDirectionsRendererManager.m +86 -84
  64. package/ios/RMFDirectionsRendererMap4d.h +21 -21
  65. package/ios/RMFDirectionsRendererMap4d.m +12 -12
  66. package/ios/RMFDummyView.h +6 -6
  67. package/ios/RMFDummyView.m +12 -12
  68. package/ios/RMFEventResponse.h +39 -39
  69. package/ios/RMFEventResponse.m +98 -98
  70. package/ios/RMFIcon.h +24 -24
  71. package/ios/RMFIcon.m +35 -35
  72. package/ios/RMFMapView.h +84 -84
  73. package/ios/RMFMapView.m +376 -376
  74. package/ios/RMFMapViewManager.h +17 -17
  75. package/ios/RMFMapViewManager.m +424 -509
  76. package/ios/RMFMarker.h +57 -57
  77. package/ios/RMFMarker.m +267 -267
  78. package/ios/RMFMarkerManager.h +17 -17
  79. package/ios/RMFMarkerManager.m +128 -156
  80. package/ios/RMFMarkerMap4d.h +19 -19
  81. package/ios/RMFMarkerMap4d.m +13 -13
  82. package/ios/RMFPOI.h +38 -38
  83. package/ios/RMFPOI.m +123 -123
  84. package/ios/RMFPOIManager.h +18 -18
  85. package/ios/RMFPOIManager.m +134 -168
  86. package/ios/RMFPOIMap4d.h +22 -22
  87. package/ios/RMFPOIMap4d.m +12 -12
  88. package/ios/RMFPolygon.h +41 -41
  89. package/ios/RMFPolygon.m +106 -106
  90. package/ios/RMFPolygonManager.h +18 -18
  91. package/ios/RMFPolygonManager.m +119 -141
  92. package/ios/RMFPolygonMap4d.h +23 -23
  93. package/ios/RMFPolygonMap4d.m +15 -15
  94. package/ios/RMFPolyline.h +38 -38
  95. package/ios/RMFPolyline.m +101 -101
  96. package/ios/RMFPolylineManager.h +18 -18
  97. package/ios/RMFPolylineManager.m +117 -139
  98. package/ios/RMFPolylineMap4d.h +22 -22
  99. package/ios/RMFPolylineMap4d.m +15 -15
  100. package/ios/building/RMFBuilding.h +41 -41
  101. package/ios/building/RMFBuilding.m +104 -104
  102. package/ios/building/RMFBuildingManager.h +19 -19
  103. package/ios/building/RMFBuildingManager.m +105 -133
  104. package/ios/building/RMFBuildingMap4d.h +23 -23
  105. package/ios/building/RMFBuildingMap4d.m +15 -15
  106. package/ios/overlays/RMFTileOverlay.h +36 -36
  107. package/ios/overlays/RMFTileOverlay.m +64 -64
  108. package/ios/overlays/RMFTileOverlayManager.h +17 -17
  109. package/ios/overlays/RMFTileOverlayManager.m +27 -27
  110. package/lib/commonjs/components/MFBanDoSo/constants.js +27 -0
  111. package/lib/commonjs/components/MFBanDoSo/constants.js.map +1 -0
  112. package/lib/commonjs/components/MFBanDoSo/helpers.js +200 -0
  113. package/lib/commonjs/components/MFBanDoSo/helpers.js.map +1 -0
  114. package/lib/commonjs/components/MFBanDoSo/propTypes.js +18 -0
  115. package/lib/commonjs/components/MFBanDoSo/propTypes.js.map +1 -0
  116. package/lib/commonjs/components/MFBanDoSo/styles.js +328 -0
  117. package/lib/commonjs/components/MFBanDoSo/styles.js.map +1 -0
  118. package/lib/commonjs/components/MFBanDoSo/ui.js +220 -0
  119. package/lib/commonjs/components/MFBanDoSo/ui.js.map +1 -0
  120. package/lib/commonjs/components/MFBanDoSo.js +190 -73
  121. package/lib/commonjs/components/MFBanDoSo.js.map +1 -1
  122. package/lib/commonjs/components/MFBuilding.js +41 -98
  123. package/lib/commonjs/components/MFBuilding.js.map +1 -1
  124. package/lib/commonjs/components/MFCircle.js +40 -90
  125. package/lib/commonjs/components/MFCircle.js.map +1 -1
  126. package/lib/commonjs/components/MFDirectionsRenderer.js +47 -107
  127. package/lib/commonjs/components/MFDirectionsRenderer.js.map +1 -1
  128. package/lib/commonjs/components/MFMapView.js +119 -199
  129. package/lib/commonjs/components/MFMapView.js.map +1 -1
  130. package/lib/commonjs/components/MFMarker.js +50 -118
  131. package/lib/commonjs/components/MFMarker.js.map +1 -1
  132. package/lib/commonjs/components/MFPOI.js +37 -94
  133. package/lib/commonjs/components/MFPOI.js.map +1 -1
  134. package/lib/commonjs/components/MFPolygon.js +37 -91
  135. package/lib/commonjs/components/MFPolygon.js.map +1 -1
  136. package/lib/commonjs/components/MFPolyline.js +35 -87
  137. package/lib/commonjs/components/MFPolyline.js.map +1 -1
  138. package/lib/commonjs/components/MFTileOverlay.js +16 -24
  139. package/lib/commonjs/components/MFTileOverlay.js.map +1 -1
  140. package/lib/commonjs/components/Map4dMapView.js +1 -4
  141. package/lib/commonjs/components/Map4dMapView.js.map +1 -1
  142. package/lib/commonjs/components/extends/AreaFocusManager.js +20 -54
  143. package/lib/commonjs/components/extends/AreaFocusManager.js.map +1 -1
  144. package/lib/commonjs/components/extends/AreaFocuser.js +3 -19
  145. package/lib/commonjs/components/extends/AreaFocuser.js.map +1 -1
  146. package/lib/commonjs/components/extends/BoundHelper.js +0 -6
  147. package/lib/commonjs/components/extends/BoundHelper.js.map +1 -1
  148. package/lib/commonjs/components/extends/area/AreaFocusAreas.js +0 -37
  149. package/lib/commonjs/components/extends/area/AreaFocusAreas.js.map +1 -1
  150. package/lib/commonjs/components/extends/area/AreaFocusGeometryUtils.js +1 -35
  151. package/lib/commonjs/components/extends/area/AreaFocusGeometryUtils.js.map +1 -1
  152. package/lib/commonjs/components/extends/area/AreaFocusSession.js +0 -18
  153. package/lib/commonjs/components/extends/area/AreaFocusSession.js.map +1 -1
  154. package/lib/commonjs/components/extends/area/AreaFocusTypes.js +20 -21
  155. package/lib/commonjs/components/extends/area/AreaFocusTypes.js.map +1 -1
  156. package/lib/commonjs/components/internal/DefaultRoadmapStyle.js +1 -2
  157. package/lib/commonjs/components/internal/DefaultRoadmapStyle.js.map +1 -1
  158. package/lib/commonjs/components/internal/GeojsonStyleUtils.js +20 -31
  159. package/lib/commonjs/components/internal/GeojsonStyleUtils.js.map +1 -1
  160. package/lib/commonjs/index.js +0 -11
  161. package/lib/commonjs/index.js.map +1 -1
  162. package/lib/commonjs/native/Map4dMapNativeModule.js +10 -0
  163. package/lib/commonjs/native/Map4dMapNativeModule.js.map +1 -0
  164. package/lib/commonjs/native/NativeModuleResolver.js +35 -0
  165. package/lib/commonjs/native/NativeModuleResolver.js.map +1 -0
  166. package/lib/commonjs/native/ViewManagerCommand.js +67 -0
  167. package/lib/commonjs/native/ViewManagerCommand.js.map +1 -0
  168. package/lib/commonjs/package.json +1 -0
  169. package/lib/commonjs/specs/NativeMap4dMap.js +9 -0
  170. package/lib/commonjs/specs/NativeMap4dMap.js.map +1 -0
  171. package/lib/module/components/MFBanDoSo/constants.js +22 -0
  172. package/lib/module/components/MFBanDoSo/constants.js.map +1 -0
  173. package/lib/module/components/MFBanDoSo/helpers.js +188 -0
  174. package/lib/module/components/MFBanDoSo/helpers.js.map +1 -0
  175. package/lib/module/components/MFBanDoSo/propTypes.js +14 -0
  176. package/lib/module/components/MFBanDoSo/propTypes.js.map +1 -0
  177. package/lib/module/components/MFBanDoSo/styles.js +325 -0
  178. package/lib/module/components/MFBanDoSo/styles.js.map +1 -0
  179. package/lib/module/components/MFBanDoSo/ui.js +213 -0
  180. package/lib/module/components/MFBanDoSo/ui.js.map +1 -0
  181. package/lib/module/components/MFBanDoSo.js +192 -63
  182. package/lib/module/components/MFBanDoSo.js.map +1 -1
  183. package/lib/module/components/MFBuilding.js +43 -90
  184. package/lib/module/components/MFBuilding.js.map +1 -1
  185. package/lib/module/components/MFCircle.js +42 -82
  186. package/lib/module/components/MFCircle.js.map +1 -1
  187. package/lib/module/components/MFDirectionsRenderer.js +48 -99
  188. package/lib/module/components/MFDirectionsRenderer.js.map +1 -1
  189. package/lib/module/components/MFMapView.js +120 -188
  190. package/lib/module/components/MFMapView.js.map +1 -1
  191. package/lib/module/components/MFMarker.js +52 -109
  192. package/lib/module/components/MFMarker.js.map +1 -1
  193. package/lib/module/components/MFPOI.js +39 -86
  194. package/lib/module/components/MFPOI.js.map +1 -1
  195. package/lib/module/components/MFPolygon.js +39 -83
  196. package/lib/module/components/MFPolygon.js.map +1 -1
  197. package/lib/module/components/MFPolyline.js +37 -79
  198. package/lib/module/components/MFPolyline.js.map +1 -1
  199. package/lib/module/components/MFTileOverlay.js +19 -18
  200. package/lib/module/components/MFTileOverlay.js.map +1 -1
  201. package/lib/module/components/Map4dMapView.js +2 -0
  202. package/lib/module/components/Map4dMapView.js.map +1 -1
  203. package/lib/module/components/extends/AreaFocusManager.js +22 -48
  204. package/lib/module/components/extends/AreaFocusManager.js.map +1 -1
  205. package/lib/module/components/extends/AreaFocuser.js +5 -17
  206. package/lib/module/components/extends/AreaFocuser.js.map +1 -1
  207. package/lib/module/components/extends/BoundHelper.js +2 -5
  208. package/lib/module/components/extends/BoundHelper.js.map +1 -1
  209. package/lib/module/components/extends/area/AreaFocusAreas.js +2 -33
  210. package/lib/module/components/extends/area/AreaFocusAreas.js.map +1 -1
  211. package/lib/module/components/extends/area/AreaFocusGeometryUtils.js +2 -32
  212. package/lib/module/components/extends/area/AreaFocusGeometryUtils.js.map +1 -1
  213. package/lib/module/components/extends/area/AreaFocusSession.js +2 -17
  214. package/lib/module/components/extends/area/AreaFocusSession.js.map +1 -1
  215. package/lib/module/components/extends/area/AreaFocusTypes.js +21 -18
  216. package/lib/module/components/extends/area/AreaFocusTypes.js.map +1 -1
  217. package/lib/module/components/internal/DefaultRoadmapStyle.js +2 -0
  218. package/lib/module/components/internal/DefaultRoadmapStyle.js.map +1 -1
  219. package/lib/module/components/internal/GeojsonStyleUtils.js +21 -28
  220. package/lib/module/components/internal/GeojsonStyleUtils.js.map +1 -1
  221. package/lib/module/index.js +2 -0
  222. package/lib/module/index.js.map +1 -1
  223. package/lib/module/native/Map4dMapNativeModule.js +5 -0
  224. package/lib/module/native/Map4dMapNativeModule.js.map +1 -0
  225. package/lib/module/native/NativeModuleResolver.js +29 -0
  226. package/lib/module/native/NativeModuleResolver.js.map +1 -0
  227. package/lib/module/native/ViewManagerCommand.js +61 -0
  228. package/lib/module/native/ViewManagerCommand.js.map +1 -0
  229. package/lib/module/specs/NativeMap4dMap.js +5 -0
  230. package/lib/module/specs/NativeMap4dMap.js.map +1 -0
  231. package/lib/typescript/components/MFBanDoSo/constants.d.ts +8 -0
  232. package/lib/typescript/components/MFBanDoSo/constants.d.ts.map +1 -0
  233. package/lib/typescript/components/MFBanDoSo/helpers.d.ts +14 -0
  234. package/lib/typescript/components/MFBanDoSo/helpers.d.ts.map +1 -0
  235. package/lib/typescript/components/MFBanDoSo/propTypes.d.ts +2 -0
  236. package/lib/typescript/components/MFBanDoSo/propTypes.d.ts.map +1 -0
  237. package/lib/typescript/components/MFBanDoSo/styles.d.ts +462 -0
  238. package/lib/typescript/components/MFBanDoSo/styles.d.ts.map +1 -0
  239. package/lib/typescript/components/MFBanDoSo/ui.d.ts +30 -0
  240. package/lib/typescript/components/MFBanDoSo/ui.d.ts.map +1 -0
  241. package/lib/typescript/components/MFBanDoSo.d.ts +37 -0
  242. package/lib/typescript/components/MFBanDoSo.d.ts.map +1 -0
  243. package/lib/typescript/components/MFBuilding.d.ts +24 -0
  244. package/lib/typescript/components/MFBuilding.d.ts.map +1 -0
  245. package/lib/typescript/components/MFCircle.d.ts +24 -0
  246. package/lib/typescript/components/MFCircle.d.ts.map +1 -0
  247. package/lib/typescript/components/MFDirectionsRenderer.d.ts +19 -0
  248. package/lib/typescript/components/MFDirectionsRenderer.d.ts.map +1 -0
  249. package/lib/typescript/components/MFMapView.d.ts +66 -0
  250. package/lib/typescript/components/MFMapView.d.ts.map +1 -0
  251. package/lib/typescript/components/MFMarker.d.ts +26 -0
  252. package/lib/typescript/components/MFMarker.d.ts.map +1 -0
  253. package/lib/typescript/components/MFPOI.d.ts +24 -0
  254. package/lib/typescript/components/MFPOI.d.ts.map +1 -0
  255. package/lib/typescript/components/MFPolygon.d.ts +24 -0
  256. package/lib/typescript/components/MFPolygon.d.ts.map +1 -0
  257. package/lib/typescript/components/MFPolyline.d.ts +24 -0
  258. package/lib/typescript/components/MFPolyline.d.ts.map +1 -0
  259. package/lib/typescript/components/MFTileOverlay.d.ts +12 -0
  260. package/lib/typescript/components/MFTileOverlay.d.ts.map +1 -0
  261. package/lib/typescript/components/Map4dMapView.d.ts +2 -1
  262. package/lib/typescript/components/Map4dMapView.d.ts.map +1 -0
  263. package/lib/typescript/components/extends/AreaFocusManager.d.ts +34 -0
  264. package/lib/typescript/components/extends/AreaFocusManager.d.ts.map +1 -0
  265. package/lib/typescript/components/extends/AreaFocuser.d.ts +15 -0
  266. package/lib/typescript/components/extends/AreaFocuser.d.ts.map +1 -0
  267. package/lib/typescript/components/extends/BoundHelper.d.ts +11 -0
  268. package/lib/typescript/components/extends/BoundHelper.d.ts.map +1 -0
  269. package/lib/typescript/components/extends/area/AreaFocusAreas.d.ts +58 -0
  270. package/lib/typescript/components/extends/area/AreaFocusAreas.d.ts.map +1 -0
  271. package/lib/typescript/components/extends/area/AreaFocusGeometryUtils.d.ts +19 -0
  272. package/lib/typescript/components/extends/area/AreaFocusGeometryUtils.d.ts.map +1 -0
  273. package/lib/typescript/components/extends/area/AreaFocusSession.d.ts +14 -0
  274. package/lib/typescript/components/extends/area/AreaFocusSession.d.ts.map +1 -0
  275. package/lib/typescript/components/extends/area/AreaFocusTypes.d.ts +40 -0
  276. package/lib/typescript/components/extends/area/AreaFocusTypes.d.ts.map +1 -0
  277. package/lib/typescript/components/internal/DefaultRoadmapStyle.d.ts +820 -0
  278. package/lib/typescript/components/internal/DefaultRoadmapStyle.d.ts.map +1 -0
  279. package/lib/typescript/components/internal/GeojsonStyleUtils.d.ts +3 -0
  280. package/lib/typescript/components/internal/GeojsonStyleUtils.d.ts.map +1 -0
  281. package/lib/typescript/index.d.ts +13 -0
  282. package/lib/typescript/index.d.ts.map +1 -0
  283. package/lib/typescript/native/Map4dMapNativeModule.d.ts +2 -0
  284. package/lib/typescript/native/Map4dMapNativeModule.d.ts.map +1 -0
  285. package/lib/typescript/native/NativeModuleResolver.d.ts +3 -0
  286. package/lib/typescript/native/NativeModuleResolver.d.ts.map +1 -0
  287. package/lib/typescript/native/ViewManagerCommand.d.ts +11 -0
  288. package/lib/typescript/native/ViewManagerCommand.d.ts.map +1 -0
  289. package/package.json +168 -152
  290. package/react-native-map4d-map.podspec +20 -20
  291. package/src/components/MFBanDoSo/constants.js +32 -0
  292. package/src/components/MFBanDoSo/helpers.js +273 -0
  293. package/src/components/MFBanDoSo/propTypes.js +14 -0
  294. package/src/components/MFBanDoSo/styles.js +316 -0
  295. package/src/components/MFBanDoSo/ui.js +230 -0
  296. package/src/components/MFBanDoSo.js +314 -124
  297. package/src/components/MFBuilding.js +160 -187
  298. package/src/components/MFCircle.js +146 -173
  299. package/src/components/MFDirectionsRenderer.js +211 -237
  300. package/src/components/MFMapView.js +458 -464
  301. package/src/components/MFMarker.js +218 -246
  302. package/src/components/MFPOI.js +157 -184
  303. package/src/components/MFPolygon.js +159 -186
  304. package/src/components/MFPolyline.js +145 -172
  305. package/src/components/MFTileOverlay.js +45 -45
  306. package/src/components/Map4dMapView.tsx +26 -26
  307. package/src/components/extends/AreaFocusManager.js +196 -196
  308. package/src/components/extends/AreaFocuser.js +61 -61
  309. package/src/components/extends/BoundHelper.js +31 -31
  310. package/src/components/extends/area/AreaFocusAreas.js +164 -164
  311. package/src/components/extends/area/AreaFocusGeometryUtils.js +164 -164
  312. package/src/components/extends/area/AreaFocusSession.js +100 -100
  313. package/src/components/extends/area/AreaFocusTypes.js +36 -36
  314. package/src/components/internal/DefaultRoadmapStyle.js +3365 -3365
  315. package/src/components/internal/GeojsonStyleUtils.js +146 -143
  316. package/src/index.js +25 -25
  317. package/src/native/Map4dMapNativeModule.js +3 -0
  318. package/src/native/NativeModuleResolver.js +33 -0
  319. package/src/native/ViewManagerCommand.js +82 -0
  320. package/src/specs/NativeMap4dMap.js +12 -0
  321. package/ios/Map4dMapViewManager.m +0 -34
@@ -1,64 +1,61 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
1
+ "use strict";
2
2
 
3
3
  import PropTypes from 'prop-types';
4
4
  import React from 'react';
5
5
  import { ViewPropTypes, ColorPropType } from 'deprecated-react-native-prop-types';
6
- import { requireNativeComponent, Platform, NativeModules, findNodeHandle, processColor } from 'react-native'; // if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)
6
+ import { runViewManagerCommand } from '../native/ViewManagerCommand';
7
+ import { requireNativeComponent, findNodeHandle, processColor } from 'react-native';
7
8
 
9
+ // if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)
10
+ import { jsx as _jsx } from "react/jsx-runtime";
8
11
  const viewPropTypes = ViewPropTypes || View.propTypes;
9
- const propTypes = { ...viewPropTypes,
10
-
11
- /**
12
- * The coordinate of the center of the circle
12
+ const propTypes = {
13
+ ...viewPropTypes,
14
+ /**
15
+ * The coordinate of the center of the circle
13
16
  */
14
17
  center: PropTypes.shape({
15
- /**
16
- * Coordinates for the center of the circle.
18
+ /**
19
+ * Coordinates for the center of the circle.
17
20
  */
18
21
  latitude: PropTypes.number.isRequired,
19
22
  longitude: PropTypes.number.isRequired
20
23
  }).isRequired,
21
-
22
- /**
23
- * The radius of the circle to be drawn (in meters)
24
+ /**
25
+ * The radius of the circle to be drawn (in meters)
24
26
  */
25
27
  radius: PropTypes.number.isRequired,
26
-
27
- /**
28
- * The stroke width to use for the circle.
28
+ /**
29
+ * The stroke width to use for the circle.
29
30
  */
30
31
  strokeWidth: PropTypes.number,
31
-
32
- /**
33
- * The stroke color to use for the circle.
32
+ /**
33
+ * The stroke color to use for the circle.
34
34
  */
35
35
  strokeColor: ColorPropType,
36
-
37
- /**
38
- * The fill color to use for the circle.
36
+ /**
37
+ * The fill color to use for the circle.
39
38
  */
40
39
  fillColor: ColorPropType,
41
-
42
- /**
43
- * zIndex
40
+ /**
41
+ * zIndex
44
42
  */
45
43
  zIndex: PropTypes.number,
46
-
47
- /**
48
- * visible
44
+ /**
45
+ * visible
49
46
  */
50
47
  visible: PropTypes.bool,
51
-
52
- /**
53
- * userData
48
+ /**
49
+ * userData
54
50
  */
55
51
  userData: PropTypes.object,
56
-
57
- /**
58
- * Callback that is called when the user presses on the circle
52
+ /**
53
+ * Callback that is called when the user presses on the circle
59
54
  */
60
55
  onPress: PropTypes.func
61
- }; // const defaultProps = {
56
+ };
57
+
58
+ // const defaultProps = {
62
59
  // strokeColor: '#000',
63
60
  // strokeWidth: 1,
64
61
  // };
@@ -69,98 +66,61 @@ class MFCircle extends React.Component {
69
66
  this._onPress = this._onPress.bind(this);
70
67
  this._ref = this._ref.bind(this);
71
68
  }
72
-
73
69
  setCenter(center) {
74
70
  this._runCommand("setCenter", [center]);
75
71
  }
76
-
77
72
  setRadius(radius) {
78
73
  this._runCommand("setRadius", [radius]);
79
74
  }
80
-
81
75
  setFillColor(color) {
82
76
  this._runCommand("setFillColor", [processColor(color)]);
83
77
  }
84
-
85
78
  setStrokeColor(color) {
86
79
  this._runCommand("setStrokeColor", [processColor(color)]);
87
80
  }
88
-
89
81
  setStrokeWidth(width) {
90
82
  this._runCommand("setStrokeWidth", [width]);
91
83
  }
92
-
93
84
  setUserData(userData) {
94
85
  this._runCommand("setUserData", [userData]);
95
86
  }
96
-
97
87
  setZIndex(zIndex) {
98
88
  this._runCommand("setZIndex", [zIndex]);
99
89
  }
100
-
101
90
  setVisible(visible) {
102
91
  this._runCommand("setVisible", [visible]);
103
92
  }
104
-
105
93
  _getHandle() {
106
94
  return findNodeHandle(this.circle);
107
95
  }
108
-
109
96
  _runCommand(name, args) {
110
- switch (Platform.OS) {
111
- case 'android':
112
- NativeModules.UIManager.dispatchViewManagerCommand(this._getHandle(), this._uiManagerCommand(name), args);
113
- break;
114
-
115
- case 'ios':
116
- this._mapManagerCommand(name)(this._getHandle(), ...args);
117
-
118
- break;
119
-
120
- default:
121
- break;
122
- }
123
- }
124
-
125
- _uiManagerCommand(name) {
126
- const UIManager = NativeModules.UIManager;
127
- const componentName = "RMFCircle";
128
-
129
- if (!UIManager.getViewManagerConfig) {
130
- // RN < 0.58
131
- return UIManager[componentName].Commands[name];
132
- } // RN >= 0.58
133
-
134
-
135
- return UIManager.getViewManagerConfig(componentName).Commands[name];
136
- }
137
-
138
- _mapManagerCommand(name) {
139
- return NativeModules[`RMFCircle`][name];
97
+ return runViewManagerCommand({
98
+ componentName: 'RMFCircle',
99
+ moduleName: 'RMFCircle',
100
+ commandName: name,
101
+ args,
102
+ reactTag: this._getHandle()
103
+ });
140
104
  }
141
-
142
105
  _onPress(event) {
143
106
  event.stopPropagation();
144
-
145
107
  if (this.props.onPress) {
146
108
  this.props.onPress(event);
147
109
  }
148
110
  }
149
-
150
111
  _ref(ref) {
151
112
  this.circle = ref;
152
113
  }
153
-
154
114
  render() {
155
- return /*#__PURE__*/React.createElement(RMFCircle, _extends({}, this.props, {
115
+ return /*#__PURE__*/_jsx(RMFCircle, {
116
+ ...this.props,
156
117
  ref: this._ref,
157
118
  onPress: this._onPress
158
- }));
119
+ });
159
120
  }
160
-
161
121
  }
162
-
163
- MFCircle.propTypes = propTypes; // MFCircle.defaultProps = defaultProps;
122
+ MFCircle.propTypes = propTypes;
123
+ // MFCircle.defaultProps = defaultProps;
164
124
 
165
125
  var RMFCircle = requireNativeComponent(`RMFCircle`, MFCircle);
166
126
  export { MFCircle };
@@ -1 +1 @@
1
- {"version":3,"names":["PropTypes","React","ViewPropTypes","ColorPropType","requireNativeComponent","Platform","NativeModules","findNodeHandle","processColor","viewPropTypes","View","propTypes","center","shape","latitude","number","isRequired","longitude","radius","strokeWidth","strokeColor","fillColor","zIndex","visible","bool","userData","object","onPress","func","MFCircle","Component","constructor","props","_onPress","bind","_ref","setCenter","_runCommand","setRadius","setFillColor","color","setStrokeColor","setStrokeWidth","width","setUserData","setZIndex","setVisible","_getHandle","circle","name","args","OS","UIManager","dispatchViewManagerCommand","_uiManagerCommand","_mapManagerCommand","componentName","getViewManagerConfig","Commands","event","stopPropagation","ref","render","RMFCircle"],"sources":["MFCircle.js"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\nimport {ViewPropTypes, ColorPropType} from 'deprecated-react-native-prop-types';\nimport {\n requireNativeComponent,\n Platform,\n NativeModules,\n findNodeHandle,\n processColor\n} from 'react-native';\n\n// if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)\nconst viewPropTypes = ViewPropTypes || View.propTypes;\n\nconst propTypes = {\n ...viewPropTypes,\n\n /**\n * The coordinate of the center of the circle\n */\n center: PropTypes.shape({\n /**\n * Coordinates for the center of the circle.\n */\n latitude: PropTypes.number.isRequired,\n longitude: PropTypes.number.isRequired,\n }).isRequired,\n\n /**\n * The radius of the circle to be drawn (in meters)\n */\n radius: PropTypes.number.isRequired,\n\n /**\n * The stroke width to use for the circle.\n */\n strokeWidth: PropTypes.number,\n\n /**\n * The stroke color to use for the circle.\n */\n strokeColor: ColorPropType,\n\n /**\n * The fill color to use for the circle.\n */\n fillColor: ColorPropType,\n\n /**\n * zIndex\n */\n zIndex: PropTypes.number,\n\n /**\n * visible\n */\n visible: PropTypes.bool,\n\n /**\n * userData\n */\n userData:PropTypes.object,\n\n /**\n * Callback that is called when the user presses on the circle\n */\n onPress: PropTypes.func,\n};\n\n// const defaultProps = {\n// strokeColor: '#000',\n// strokeWidth: 1,\n// };\n\nclass MFCircle extends React.Component {\n constructor(props) {\n super(props);\n this._onPress = this._onPress.bind(this)\n this._ref = this._ref.bind(this)\n }\n\n setCenter(center) {\n this._runCommand(\"setCenter\", [center])\n }\n setRadius(radius) {\n this._runCommand(\"setRadius\", [radius])\n }\n setFillColor(color) {\n this._runCommand(\"setFillColor\", [processColor(color)])\n }\n setStrokeColor(color) {\n this._runCommand(\"setStrokeColor\", [processColor(color)])\n }\n setStrokeWidth(width) {\n this._runCommand(\"setStrokeWidth\", [width])\n }\n setUserData(userData) {\n this._runCommand(\"setUserData\", [userData])\n }\n setZIndex(zIndex) {\n this._runCommand(\"setZIndex\", [zIndex])\n }\n setVisible(visible) {\n this._runCommand(\"setVisible\", [visible])\n }\n\n _getHandle() {\n return findNodeHandle(this.circle);\n }\n\n\n _runCommand(name, args) {\n switch (Platform.OS) {\n case 'android':\n NativeModules.UIManager.dispatchViewManagerCommand(\n this._getHandle(),\n this._uiManagerCommand(name),\n args\n );\n break;\n\n case 'ios':\n this._mapManagerCommand(name)(this._getHandle(), ...args);\n break;\n\n default:\n break;\n }\n }\n\n _uiManagerCommand(name) {\n const UIManager = NativeModules.UIManager;\n const componentName = \"RMFCircle\";\n\n if (!UIManager.getViewManagerConfig) {\n // RN < 0.58\n return UIManager[componentName].Commands[name];\n }\n\n // RN >= 0.58 \n return UIManager.getViewManagerConfig(componentName).Commands[name];\n }\n \n _mapManagerCommand(name) {\n return NativeModules[`RMFCircle`][name];\n }\n\n _onPress(event) {\n event.stopPropagation();\n if (this.props.onPress) {\n this.props.onPress(event);\n }\n }\n\n _ref(ref) {\n this.circle = ref;\n }\n\n render() {\n return <RMFCircle\n {...this.props}\n ref={this._ref}\n onPress={this._onPress}\n />;\n }\n}\n\nMFCircle.propTypes = propTypes;\n// MFCircle.defaultProps = defaultProps;\n\nvar RMFCircle = requireNativeComponent(`RMFCircle`, MFCircle);\n\nexport {MFCircle}\n"],"mappings":";;AAAA,OAAOA,SAAP,MAAsB,YAAtB;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,SAAQC,aAAR,EAAuBC,aAAvB,QAA2C,oCAA3C;AACA,SACEC,sBADF,EAEEC,QAFF,EAGEC,aAHF,EAIEC,cAJF,EAKEC,YALF,QAMO,cANP,C,CAQA;;AACA,MAAMC,aAAa,GAAGP,aAAa,IAAIQ,IAAI,CAACC,SAA5C;AAEA,MAAMA,SAAS,GAAG,EAChB,GAAGF,aADa;;EAGhB;AACF;AACA;EACEG,MAAM,EAA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ACA,OAAOG,SAAS,CAACK,oBAAV,CAA+BD,aAA/B,EAA8CE,QAA9C,CAAuDT,IAAvD,CAAP;EACD;;EAEDM,kBAAkB,CAACN,IAAD,EAAO;IACvB,OAAO3C,aAAa,CAAE,WAAF,CAAb,CAA2B2C,IAA3B,CAAP;EACD;;EAEDhB,QAAQ,CAAC0B,KAAD,EAAQ;IACdA,KAAK,CAACC,eAAN;;IACE,IAAI,KAAK5B,KAAL,CAAWL,OAAf,EAAwB;MACtB,KAAKK,KAAL,CAAWL,OAAX,CAAmBgC,KAAnB;IACH;EACF;;EAEDxB,IAAI,CAAC0B,GAAD,EAAM;IACR,KAAKb,MAAL,GAAca,GAAd;EACD;;EAEDC,MAAM,GAAG;IACP,oBAAO,oBAAC,SAAD,eACD,KAAK9B,KADJ;MAEL,GAAG,EAAE,KAAKG,IAFL;MAGL,OAAO,EAAE,KAAKF;IAHT,GAAP;EAKD;;AA1FoC;;AA6FvCJ,QAAQ,CAAClB,SAAT,GAAqBA,SAArB,C,CACA;;AAEA,IAAIoD,SAAS,GAAG3D,sBAAsB,CAAE,WAAF,EAAcyB,QAAd,CAAtC;AAEA,SAAQA,QAAR"}
1
+ {"version":3,"names":["PropTypes","React","ViewPropTypes","ColorPropType","runViewManagerCommand","requireNativeComponent","findNodeHandle","processColor","jsx","_jsx","viewPropTypes","View","propTypes","center","shape","latitude","number","isRequired","longitude","radius","strokeWidth","strokeColor","fillColor","zIndex","visible","bool","userData","object","onPress","func","MFCircle","Component","constructor","props","_onPress","bind","_ref","setCenter","_runCommand","setRadius","setFillColor","color","setStrokeColor","setStrokeWidth","width","setUserData","setZIndex","setVisible","_getHandle","circle","name","args","componentName","moduleName","commandName","reactTag","event","stopPropagation","ref","render","RMFCircle"],"sourceRoot":"..\\..\\..\\src","sources":["components/MFCircle.js"],"mappings":";;AAAA,OAAOA,SAAS,MAAM,YAAY;AAClC,OAAOC,KAAK,MAAM,OAAO;AACzB,SAAQC,aAAa,EAAEC,aAAa,QAAO,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,CAACC,eAAe,CAAC,CAAC;IACrB,IAAI,IAAI,CAACxB,KAAK,CAACL,OAAO,EAAE;MACtB,IAAI,CAACK,KAAK,CAACL,OAAO,CAAC4B,KAAK,CAAC;IAC7B;EACF;EAEApB,IAAIA,CAACsB,GAAG,EAAE;IACR,IAAI,CAACT,MAAM,GAAGS,GAAG;EACnB;EAEAC,MAAMA,CAAA,EAAG;IACP,oBAAOlD,IAAA,CAACmD,SAAS;MAAA,GACX,IAAI,CAAC3B,KAAK;MACdyB,GAAG,EAAE,IAAI,CAACtB,IAAK;MACfR,OAAO,EAAE,IAAI,CAACM;IAAS,CACxB,CAAC;EACJ;AACF;AAEAJ,QAAQ,CAAClB,SAAS,GAAGA,SAAS;AAC9B;;AAEA,IAAIgD,SAAS,GAAGvD,sBAAsB,CAAC,WAAW,EAAEyB,QAAQ,CAAC;AAE7D,SAAQA,QAAQ","ignoreList":[]}
@@ -1,76 +1,67 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
1
+ "use strict";
2
2
 
3
3
  import React from 'react';
4
4
  import PropTypes from 'prop-types';
5
5
  import { ViewPropTypes, ColorPropType } from 'deprecated-react-native-prop-types';
6
- import { requireNativeComponent, Platform, Image, NativeModules, findNodeHandle, processColor } from 'react-native';
6
+ import { runViewManagerCommand } from '../native/ViewManagerCommand';
7
+ import { requireNativeComponent, Image, findNodeHandle, processColor } from 'react-native';
8
+ import { jsx as _jsx } from "react/jsx-runtime";
7
9
  const viewPropTypes = ViewPropTypes || View.propTypes;
8
- const propTypes = { ...viewPropTypes,
9
-
10
- /**
11
- * The directions to display on the map,
12
- * retrieved as an array of array of coordinates to describe the routes.
13
- * Similar to directions prop but has higher priority
10
+ const propTypes = {
11
+ ...viewPropTypes,
12
+ /**
13
+ * The directions to display on the map,
14
+ * retrieved as an array of array of coordinates to describe the routes.
15
+ * Similar to directions prop but has higher priority
14
16
  */
15
17
  routes: PropTypes.arrayOf(PropTypes.arrayOf(PropTypes.shape({
16
18
  latitude: PropTypes.number.isRequired,
17
19
  longitude: PropTypes.number.isRequired
18
20
  }))),
19
-
20
- /**
21
- * The directions to display on the map,
22
- * retrieved as a json string from Get route Map4D API (/sdk/route).
23
- * Similar to routes prop but with lower priority
21
+ /**
22
+ * The directions to display on the map,
23
+ * retrieved as a json string from Get route Map4D API (/sdk/route).
24
+ * Similar to routes prop but with lower priority
24
25
  */
25
26
  directions: PropTypes.string,
26
-
27
- /**
28
- * The index of the main route, default value is 0.
27
+ /**
28
+ * The index of the main route, default value is 0.
29
29
  */
30
30
  activedIndex: PropTypes.number,
31
-
32
- /**
33
- * The active route stroke width.
31
+ /**
32
+ * The active route stroke width.
34
33
  */
35
34
  activeStrokeWidth: PropTypes.number,
36
-
37
- /**
38
- * The active route color.
35
+ /**
36
+ * The active route color.
39
37
  */
40
38
  activeStrokeColor: ColorPropType,
41
-
42
- /**
43
- * The active route outline stroke width.
39
+ /**
40
+ * The active route outline stroke width.
44
41
  */
45
42
  activeOutlineWidth: PropTypes.number,
46
-
47
- /**
48
- * The active route outline color.
43
+ /**
44
+ * The active route outline color.
49
45
  */
50
46
  activeOutlineColor: ColorPropType,
51
-
52
- /**
53
- * The inactive route stroke width.
47
+ /**
48
+ * The inactive route stroke width.
54
49
  */
55
50
  inactiveStrokeWidth: PropTypes.number,
56
-
57
- /**
58
- * The inactive route color.
51
+ /**
52
+ * The inactive route color.
59
53
  */
60
54
  inactiveStrokeColor: ColorPropType,
61
-
62
- /**
63
- * The inactive route outline stroke width.
55
+ /**
56
+ * The inactive route outline stroke width.
64
57
  */
65
58
  inactiveOutlineWidth: PropTypes.number,
66
-
67
- /**
68
- * The inactive route outline color.
59
+ /**
60
+ * The inactive route outline color.
69
61
  */
70
62
  inactiveOutlineColor: ColorPropType,
71
-
72
- /**
73
- * The options of the origin POI.
63
+ /**
64
+ * The options of the origin POI.
74
65
  */
75
66
  originPOIOptions: PropTypes.shape({
76
67
  coordinate: PropTypes.shape({
@@ -84,9 +75,8 @@ const propTypes = { ...viewPropTypes,
84
75
  titleColor: ColorPropType,
85
76
  visible: PropTypes.bool
86
77
  }),
87
-
88
- /**
89
- * The options of the destination POI.
78
+ /**
79
+ * The options of the destination POI.
90
80
  */
91
81
  destinationPOIOptions: PropTypes.shape({
92
82
  coordinate: PropTypes.shape({
@@ -100,40 +90,32 @@ const propTypes = { ...viewPropTypes,
100
90
  titleColor: ColorPropType,
101
91
  visible: PropTypes.bool
102
92
  }),
103
-
104
- /**
105
- * Callback that is called when the user presses on the routes.
93
+ /**
94
+ * Callback that is called when the user presses on the routes.
106
95
  */
107
96
  onPress: PropTypes.func
108
97
  };
109
-
110
98
  class MFDirectionsRenderer extends React.Component {
111
99
  constructor(props) {
112
100
  super(props);
113
101
  this._ref = this._ref.bind(this);
114
102
  this._onPress = this._onPress.bind(this);
115
103
  }
116
-
117
104
  setActivedIndex(index) {
118
105
  this._runCommand("setActivedIndex", [index]);
119
106
  }
120
-
121
107
  setRoutes(routes) {
122
108
  this._runCommand("setRoutes", [routes]);
123
109
  }
124
-
125
110
  setDirections(directions) {
126
111
  this._runCommand("setDirections", [directions]);
127
112
  }
128
-
129
113
  render() {
130
114
  let originPOIOptions = this.props.originPOIOptions;
131
-
132
115
  if (originPOIOptions) {
133
116
  if (originPOIOptions.titleColor) {
134
117
  originPOIOptions.titleColor = processColor(originPOIOptions.titleColor);
135
118
  }
136
-
137
119
  if (originPOIOptions.icon) {
138
120
  let uri = Image.resolveAssetSource(originPOIOptions.icon.uri) || {
139
121
  uri: originPOIOptions.icon.uri
@@ -143,14 +125,11 @@ class MFDirectionsRenderer extends React.Component {
143
125
  };
144
126
  }
145
127
  }
146
-
147
128
  let destinationPOIOptions = this.props.destinationPOIOptions;
148
-
149
129
  if (destinationPOIOptions) {
150
130
  if (destinationPOIOptions.titleColor) {
151
131
  destinationPOIOptions.titleColor = processColor(destinationPOIOptions.titleColor);
152
132
  }
153
-
154
133
  if (destinationPOIOptions.icon) {
155
134
  let uri = Image.resolveAssetSource(destinationPOIOptions.icon.uri) || {
156
135
  uri: destinationPOIOptions.icon.uri
@@ -160,66 +139,36 @@ class MFDirectionsRenderer extends React.Component {
160
139
  };
161
140
  }
162
141
  }
163
-
164
- return /*#__PURE__*/React.createElement(RMFDirectionsRenderer, _extends({}, this.props, {
142
+ return /*#__PURE__*/_jsx(RMFDirectionsRenderer, {
143
+ ...this.props,
165
144
  originPOIOptions: originPOIOptions,
166
145
  destinationPOIOptions: destinationPOIOptions,
167
146
  ref: this._ref,
168
147
  onPress: this._onPress
169
- }));
148
+ });
170
149
  }
171
-
172
150
  _ref(ref) {
173
151
  this.renderer = ref;
174
152
  }
175
-
176
153
  _onPress(event) {
177
154
  event.stopPropagation();
178
-
179
155
  if (this.props.onPress) {
180
156
  this.props.onPress(event);
181
157
  }
182
158
  }
183
-
184
159
  _runCommand(name, args) {
185
- switch (Platform.OS) {
186
- case 'android':
187
- NativeModules.UIManager.dispatchViewManagerCommand(this._getHandle(), this._uiManagerCommand(name), args);
188
- break;
189
-
190
- case 'ios':
191
- this._mapManagerCommand(name)(this._getHandle(), ...args);
192
-
193
- break;
194
-
195
- default:
196
- break;
197
- }
160
+ return runViewManagerCommand({
161
+ componentName: 'RMFDirectionsRenderer',
162
+ moduleName: 'RMFDirectionsRenderer',
163
+ commandName: name,
164
+ args,
165
+ reactTag: this._getHandle()
166
+ });
198
167
  }
199
-
200
168
  _getHandle() {
201
169
  return findNodeHandle(this.renderer);
202
170
  }
203
-
204
- _uiManagerCommand(name) {
205
- const UIManager = NativeModules.UIManager;
206
- const componentName = "RMFDirectionsRenderer";
207
-
208
- if (!UIManager.getViewManagerConfig) {
209
- // RN < 0.58
210
- return UIManager[componentName].Commands[name];
211
- } // RN >= 0.58
212
-
213
-
214
- return UIManager.getViewManagerConfig(componentName).Commands[name];
215
- }
216
-
217
- _mapManagerCommand(name) {
218
- return NativeModules[`RMFDirectionsRenderer`][name];
219
- }
220
-
221
171
  }
222
-
223
172
  MFDirectionsRenderer.propTypes = propTypes;
224
173
  var RMFDirectionsRenderer = requireNativeComponent(`RMFDirectionsRenderer`, MFDirectionsRenderer);
225
174
  export { MFDirectionsRenderer };
@@ -1 +1 @@
1
- {"version":3,"names":["React","PropTypes","ViewPropTypes","ColorPropType","requireNativeComponent","Platform","Image","NativeModules","findNodeHandle","processColor","viewPropTypes","View","propTypes","routes","arrayOf","shape","latitude","number","isRequired","longitude","directions","string","activedIndex","activeStrokeWidth","activeStrokeColor","activeOutlineWidth","activeOutlineColor","inactiveStrokeWidth","inactiveStrokeColor","inactiveOutlineWidth","inactiveOutlineColor","originPOIOptions","coordinate","icon","uri","any","title","titleColor","visible","bool","destinationPOIOptions","onPress","func","MFDirectionsRenderer","Component","constructor","props","_ref","bind","_onPress","setActivedIndex","index","_runCommand","setRoutes","setDirections","render","resolveAssetSource","ref","renderer","event","stopPropagation","name","args","OS","UIManager","dispatchViewManagerCommand","_getHandle","_uiManagerCommand","_mapManagerCommand","componentName","getViewManagerConfig","Commands","RMFDirectionsRenderer"],"sources":["MFDirectionsRenderer.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {ViewPropTypes, ColorPropType} from 'deprecated-react-native-prop-types';\nimport {\n requireNativeComponent,\n Platform,\n Image,\n NativeModules,\n findNodeHandle,\n processColor\n} from 'react-native';\n\nconst viewPropTypes = ViewPropTypes || View.propTypes;\n\nconst propTypes = {\n ...viewPropTypes,\n\n /**\n * The directions to display on the map,\n * retrieved as an array of array of coordinates to describe the routes.\n * Similar to directions prop but has higher priority\n */\n routes: PropTypes.arrayOf(\n PropTypes.arrayOf(\n PropTypes.shape({\n latitude: PropTypes.number.isRequired,\n longitude: PropTypes.number.isRequired,\n })\n )\n ),\n\n /**\n * The directions to display on the map,\n * retrieved as a json string from Get route Map4D API (/sdk/route).\n * Similar to routes prop but with lower priority\n */\n directions: PropTypes.string,\n\n /**\n * The index of the main route, default value is 0.\n */\n activedIndex: PropTypes.number,\n\n /**\n * The active route stroke width.\n */\n activeStrokeWidth: PropTypes.number,\n\n /**\n * The active route color.\n */\n activeStrokeColor: ColorPropType,\n\n /**\n * The active route outline stroke width.\n */\n activeOutlineWidth: PropTypes.number,\n\n /**\n * The active route outline color.\n */\n activeOutlineColor: ColorPropType,\n\n /**\n * The inactive route stroke width.\n */\n inactiveStrokeWidth: PropTypes.number,\n\n /**\n * The inactive route color.\n */\n inactiveStrokeColor: ColorPropType,\n\n /**\n * The inactive route outline stroke width.\n */\n inactiveOutlineWidth: PropTypes.number,\n\n /**\n * The inactive route outline color.\n */\n inactiveOutlineColor: ColorPropType,\n\n /**\n * The options of the origin POI.\n */\n originPOIOptions: PropTypes.shape({\n coordinate: PropTypes.shape({\n latitude: PropTypes.number.isRequired,\n longitude: PropTypes.number.isRequired,\n }),\n\n icon: PropTypes.shape({\n uri: PropTypes.any.isRequired\n }),\n\n title: PropTypes.string,\n\n titleColor: ColorPropType,\n\n visible: PropTypes.bool,\n }),\n\n /**\n * The options of the destination POI.\n */\n destinationPOIOptions: PropTypes.shape({\n coordinate: PropTypes.shape({\n latitude: PropTypes.number.isRequired,\n longitude: PropTypes.number.isRequired,\n }),\n\n icon: PropTypes.shape({\n uri: PropTypes.any.isRequired\n }),\n\n title: PropTypes.string,\n\n titleColor: ColorPropType,\n\n visible: PropTypes.bool,\n }),\n\n /**\n * Callback that is called when the user presses on the routes.\n */\n onPress: PropTypes.func,\n};\n\nclass MFDirectionsRenderer extends React.Component {\n constructor(props) {\n super(props)\n this._ref = this._ref.bind(this)\n this._onPress = this._onPress.bind(this)\n }\n\n setActivedIndex(index) {\n this._runCommand(\"setActivedIndex\", [index])\n }\n\n setRoutes(routes) {\n this._runCommand(\"setRoutes\", [routes])\n }\n\n setDirections(directions) {\n this._runCommand(\"setDirections\", [directions])\n }\n\n render() {\n let originPOIOptions = this.props.originPOIOptions\n if (originPOIOptions) {\n if (originPOIOptions.titleColor) {\n originPOIOptions.titleColor = processColor(originPOIOptions.titleColor)\n }\n if (originPOIOptions.icon) {\n let uri = Image.resolveAssetSource(originPOIOptions.icon.uri) || {uri: originPOIOptions.icon.uri};\n originPOIOptions.icon = {uri: uri.uri}\n }\n }\n\n let destinationPOIOptions = this.props.destinationPOIOptions\n if (destinationPOIOptions) {\n if (destinationPOIOptions.titleColor) {\n destinationPOIOptions.titleColor = processColor(destinationPOIOptions.titleColor)\n }\n if (destinationPOIOptions.icon) {\n let uri = Image.resolveAssetSource(destinationPOIOptions.icon.uri) || {uri: destinationPOIOptions.icon.uri};\n destinationPOIOptions.icon = {uri: uri.uri}\n }\n }\n\n return <RMFDirectionsRenderer\n {...this.props}\n originPOIOptions={originPOIOptions}\n destinationPOIOptions={destinationPOIOptions}\n ref={this._ref}\n onPress={this._onPress}\n />;\n }\n\n _ref(ref) {\n this.renderer = ref;\n }\n\n _onPress(event) {\n event.stopPropagation();\n if (this.props.onPress) {\n this.props.onPress(event);\n }\n }\n\n _runCommand(name, args) {\n switch (Platform.OS) {\n case 'android':\n NativeModules.UIManager.dispatchViewManagerCommand(\n this._getHandle(),\n this._uiManagerCommand(name),\n args\n );\n break;\n\n case 'ios':\n this._mapManagerCommand(name)(this._getHandle(), ...args);\n break;\n\n default:\n break;\n }\n }\n\n _getHandle() {\n return findNodeHandle(this.renderer);\n }\n\n _uiManagerCommand(name) {\n const UIManager = NativeModules.UIManager;\n const componentName = \"RMFDirectionsRenderer\";\n\n if (!UIManager.getViewManagerConfig) {\n // RN < 0.58\n return UIManager[componentName].Commands[name];\n }\n\n // RN >= 0.58 \n return UIManager.getViewManagerConfig(componentName).Commands[name];\n }\n\n _mapManagerCommand(name) {\n return NativeModules[`RMFDirectionsRenderer`][name];\n }\n}\n\nMFDirectionsRenderer.propTypes = propTypes;\n\nvar RMFDirectionsRenderer = requireNativeComponent(`RMFDirectionsRenderer`, MFDirectionsRenderer);\n\nexport { M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AS,CAACM,oBAAV,CAA+BD,aAA/B,EAA8CE,QAA9C,CAAuDV,IAAvD,CAAP;EACD;;EAEDO,kBAAkB,CAACP,IAAD,EAAO;IACvB,OAAOtD,aAAa,CAAE,uBAAF,CAAb,CAAuCsD,IAAvC,CAAP;EACD;;AApGgD;;AAuGnDlB,oBAAoB,CAAC/B,SAArB,GAAiCA,SAAjC;AAEA,IAAI4D,qBAAqB,GAAGpE,sBAAsB,CAAE,uBAAF,EAA0BuC,oBAA1B,CAAlD;AAEA,SAASA,oBAAT"}
1
+ {"version":3,"names":["React","PropTypes","ViewPropTypes","ColorPropType","runViewManagerCommand","requireNativeComponent","Image","findNodeHandle","processColor","jsx","_jsx","viewPropTypes","View","propTypes","routes","arrayOf","shape","latitude","number","isRequired","longitude","directions","string","activedIndex","activeStrokeWidth","activeStrokeColor","activeOutlineWidth","activeOutlineColor","inactiveStrokeWidth","inactiveStrokeColor","inactiveOutlineWidth","inactiveOutlineColor","originPOIOptions","coordinate","icon","uri","any","title","titleColor","visible","bool","destinationPOIOptions","onPress","func","MFDirectionsRenderer","Component","constructor","props","_ref","bind","_onPress","setActivedIndex","index","_runCommand","setRoutes","setDirections","render","resolveAssetSource","RMFDirectionsRenderer","ref","renderer","event","stopPropagation","name","args","componentName","moduleName","commandName","reactTag","_getHandle"],"sourceRoot":"..\\..\\..\\src","sources":["components/MFDirectionsRenderer.js"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,SAAQC,aAAa,EAAEC,aAAa,QAAO,oCAAoC;AAC/E,SAAQC,qBAAqB,QAAO,8BAA8B;AAClE,SACEC,sBAAsB,EACtBC,KAAK,EACLC,cAAc,EACdC,YAAY,QACP,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEtB,MAAMC,aAAa,GAAGT,aAAa,IAAIU,IAAI,CAACC,SAAS;AAErD,MAAMA,SAAS,GAAG;EAChB,GAAGF,aAAa;EAEhB;AAC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