@canmou/react-tmap-map
Advanced tools
+2
-0
@@ -19,2 +19,4 @@ /// <reference types="@canmou/react-tmap-types" /> | ||
| map?: TMap.Map | undefined; | ||
| } & { | ||
| TMap: typeof TMap; | ||
| }>>; |
+1
-0
@@ -9,2 +9,3 @@ /// <reference types="@canmou/react-tmap-types" /> | ||
| map?: TMap.Map; | ||
| visualizationHeat?: TMap.visualization.Heat; | ||
| } | ||
@@ -11,0 +12,0 @@ export interface UseMap extends MapProps, MapChildProps { |
+1
-1
@@ -42,3 +42,3 @@ /// <reference types="@canmou/react-tmap-types" /> | ||
| 'Draggable', | ||
| 'Scrollwheel', | ||
| 'Scrollable', | ||
| 'MaxZoom', | ||
@@ -45,0 +45,0 @@ 'MinZoom', |
+4
-4
| { | ||
| "name": "@canmou/react-tmap-map", | ||
| "version": "1.0.26", | ||
| "version": "1.0.27", | ||
| "description": "用于加载腾讯地图SDK依赖,加载完成,全局将会有**`window.TMap`**对象。", | ||
@@ -24,6 +24,6 @@ "main": "cjs/index.js", | ||
| "dependencies": { | ||
| "@canmou/react-tmap-types": "^1.0.26", | ||
| "@canmou/react-tmap-utils": "^1.0.26" | ||
| "@canmou/react-tmap-types": "^1.0.27", | ||
| "@canmou/react-tmap-utils": "^1.0.27" | ||
| }, | ||
| "gitHead": "ac62c5504ad0ff9b2428a573056e37284c88f8f3" | ||
| "gitHead": "1cd2032ff9663a999eeec33c6319e428e5ab0327" | ||
| } |
+1
-1
@@ -15,3 +15,3 @@ /// <reference types="@canmou/react-tmap-types" /> | ||
| export const Map = forwardRef<MapProps & { map?: TMap.Map }, MapProps & RenderProps>(({ className, style, children, ...props }, ref) => { | ||
| export const Map = forwardRef<MapProps & { map?: TMap.Map } & { TMap: typeof TMap }, MapProps & RenderProps>(({ className, style, children, ...props }, ref) => { | ||
| const elmRef = useRef<HTMLDivElement>(null); | ||
@@ -18,0 +18,0 @@ const { setContainer, container, map } = useMap({ container: elmRef.current, ...props }); |
+2
-0
@@ -12,2 +12,4 @@ /// <reference types="@canmou/react-tmap-types" /> | ||
| map?: TMap.Map; | ||
| visualizationHeat?: TMap.visualization.Heat; | ||
| } | ||
@@ -14,0 +16,0 @@ |
10897
1.41%298
1.36%