@react-native-ohos/react-native-amap3d 3.2.6-rc.1 → 3.2.6-rc.2

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.
@@ -3,7 +3,7 @@
3
3
  "devDependencies": {
4
4
  },
5
5
  "name": "@react-native-ohos/react-native-amap3d",
6
- "version": "3.2.6-rc.1",
6
+ "version": "3.2.6-rc.2",
7
7
  "description": "Please describe the basic information.",
8
8
  "main": "index.ets",
9
9
  "author": "",
@@ -25,9 +25,39 @@ import type {
25
25
  UITurboModule,
26
26
  UITurboModuleContext
27
27
  } from '@rnoh/react-native-openharmony/ts';
28
- import { RNOHPackage, TurboModulesFactory } from '@rnoh/react-native-openharmony'
28
+ import { RNOHPackage, TurboModulesFactory, ComponentBuilderContext } from '@rnoh/react-native-openharmony'
29
29
  import { AMap3DModule } from './AMap3DModule';
30
30
  import type { TurboModule } from '@rnoh/react-native-openharmony/ts';
31
+ import { A_MAP_CIRCLE_VIEW_TYPE, AMapCircle } from './View/AMapCircle';
32
+ import { A_MAP_MARKER_TYPE, AMapMarker } from './View/AMapMarker';
33
+ import { A_MAP_POLYGON_TYPE, AMapPolygon } from './View/AMapPolygon';
34
+ import { A_MAP_POLYLINE_TYPE, AMapPolyline } from './View/AMapPolyline';
35
+ import { GOADE_MAP_VIEW_TYPE, AMapView } from './View/MapView';
36
+
37
+ @Builder
38
+ function aMapCircle(ctx: ComponentBuilderContext) {
39
+ AMapCircle({ ctx: ctx.rnComponentContext, tag: ctx.tag })
40
+ }
41
+
42
+ @Builder
43
+ function aMapMarker(ctx: ComponentBuilderContext) {
44
+ AMapMarker({ ctx: ctx.rnComponentContext, tag: ctx.tag })
45
+ }
46
+
47
+ @Builder
48
+ function aMapPolygon(ctx: ComponentBuilderContext) {
49
+ AMapPolygon({ ctx: ctx.rnComponentContext, tag: ctx.tag })
50
+ }
51
+
52
+ @Builder
53
+ function aMapPolyline(ctx: ComponentBuilderContext) {
54
+ AMapPolyline({ ctx: ctx.rnComponentContext, tag: ctx.tag })
55
+ }
56
+
57
+ @Builder
58
+ function aMapView(ctx: ComponentBuilderContext) {
59
+ AMapView({ ctx: ctx.rnComponentContext, tag: ctx.tag })
60
+ }
31
61
 
32
62
  class RNAMap3DTurboModuleFactory extends TurboModulesFactory {
33
63
  createTurboModule(name: string): TurboModule | null {
@@ -67,6 +97,18 @@ export class AMap3DPackage extends RNOHPackage {
67
97
  getDebugName(): string {
68
98
  return 'AMap3DPackage';
69
99
  }
100
+
101
+ createWrappedCustomRNComponentBuilderByComponentNameMap(): Map<string, WrappedBuilder<[ComponentBuilderContext]>> {
102
+ const aMapBuilderMap = new Map<string, WrappedBuilder<[ComponentBuilderContext]>>();
103
+
104
+ aMapBuilderMap.set(GOADE_MAP_VIEW_TYPE, wrapBuilder(aMapView))
105
+ aMapBuilderMap.set(A_MAP_CIRCLE_VIEW_TYPE, wrapBuilder(aMapCircle))
106
+ aMapBuilderMap.set(A_MAP_MARKER_TYPE, wrapBuilder(aMapMarker))
107
+ aMapBuilderMap.set(A_MAP_POLYGON_TYPE, wrapBuilder(aMapPolygon))
108
+ aMapBuilderMap.set(A_MAP_POLYLINE_TYPE, wrapBuilder(aMapPolyline))
109
+
110
+ return aMapBuilderMap;
111
+ }
70
112
  }
71
113
 
72
114
  export const createAMap3DPackage = () => {
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-ohos/react-native-amap3d",
3
- "version": "3.2.6-rc.1",
3
+ "version": "3.2.6-rc.2",
4
4
  "description": "react-native 高德地图组件,支持 harmonyOS",
5
5
  "license": "MIT",
6
6
  "keywords": [