@uiw/react-amap-polygon
Advanced tools
Comparing version 5.0.8 to 5.0.9
@@ -48,2 +48,7 @@ "use strict"; | ||
}, [map]); | ||
(0, _react.useEffect)(function () { | ||
if (polygon) { | ||
polygon.setOptions(other); | ||
} | ||
}, [polygon, other]); | ||
(0, _reactAmapUtils.useVisiable)(polygon, visiable); | ||
@@ -50,0 +55,0 @@ (0, _reactAmapUtils.useSettingProperties)(polygon, props, ['Path', 'Options', 'Map', 'ExtData', 'Draggable']); |
@@ -42,2 +42,7 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
}, [map]); | ||
useEffect(() => { | ||
if (polygon) { | ||
polygon.setOptions(other); | ||
} | ||
}, [polygon, other]); | ||
useVisiable(polygon, visiable); | ||
@@ -44,0 +49,0 @@ useSettingProperties(polygon, props, ['Path', 'Options', 'Map', 'ExtData', 'Draggable']); |
{ | ||
"name": "@uiw/react-amap-polygon", | ||
"version": "5.0.8", | ||
"version": "5.0.9", | ||
"description": "构造多边形对象,通过 PolygonOptions 指定多边形样式。", | ||
@@ -37,9 +37,9 @@ "homepage": "https://uiwjs.github.io/react-amap/#/polygon", | ||
"dependencies": { | ||
"@uiw/react-amap-map": "5.0.8", | ||
"@uiw/react-amap-utils": "5.0.8" | ||
"@uiw/react-amap-map": "5.0.9", | ||
"@uiw/react-amap-utils": "5.0.9" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "~18.0.0", | ||
"@types/react-dom": "~18.0.0" | ||
"@types/react": "^18.2.16", | ||
"@types/react-dom": "^18.2.7" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
18474
292
+ Added@uiw/react-amap-map@5.0.9(transitive)
+ Added@uiw/react-amap-types@5.0.9(transitive)
+ Added@uiw/react-amap-utils@5.0.9(transitive)
- Removed@uiw/react-amap-map@5.0.8(transitive)
- Removed@uiw/react-amap-types@5.0.8(transitive)
- Removed@uiw/react-amap-utils@5.0.8(transitive)
Updated@uiw/react-amap-map@5.0.9
Updated@uiw/react-amap-utils@5.0.9