@uiw/react-amap-polygon
Advanced tools
Comparing version 6.0.0 to 6.0.1
@@ -25,3 +25,3 @@ "use strict"; | ||
setPolygon = _useState2[1]; | ||
(0, _react.useEffect)(function () { | ||
(0, _react.useLayoutEffect)(function () { | ||
if (!AMap || !map) return; | ||
@@ -28,0 +28,0 @@ if (!polygon) { |
import _extends from "@babel/runtime/helpers/extends"; | ||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; | ||
var _excluded = ["visiable"]; | ||
import { useState, useEffect } from 'react'; | ||
import { useState, useEffect, useLayoutEffect } from 'react'; | ||
import { useVisiable, useEventProperties, useSettingProperties } from '@uiw/react-amap-utils'; | ||
@@ -19,3 +19,3 @@ import { useMapContext } from '@uiw/react-amap-map'; | ||
var [polygon, setPolygon] = useState(); | ||
useEffect(() => { | ||
useLayoutEffect(() => { | ||
if (!AMap || !map) return; | ||
@@ -22,0 +22,0 @@ if (!polygon) { |
{ | ||
"name": "@uiw/react-amap-polygon", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"description": "构造多边形对象,通过 PolygonOptions 指定多边形样式。", | ||
@@ -38,4 +38,4 @@ "funding": "https://jaywcjlove.github.io/#/sponsor", | ||
"dependencies": { | ||
"@uiw/react-amap-map": "6.0.0", | ||
"@uiw/react-amap-utils": "6.0.0" | ||
"@uiw/react-amap-map": "6.0.1", | ||
"@uiw/react-amap-utils": "6.0.1" | ||
}, | ||
@@ -42,0 +42,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
19072
+ Added@uiw/react-amap-map@6.0.1(transitive)
+ Added@uiw/react-amap-types@6.0.1(transitive)
+ Added@uiw/react-amap-utils@6.0.1(transitive)
- Removed@uiw/react-amap-map@6.0.0(transitive)
- Removed@uiw/react-amap-types@6.0.0(transitive)
- Removed@uiw/react-amap-utils@6.0.0(transitive)
Updated@uiw/react-amap-map@6.0.1
Updated@uiw/react-amap-utils@6.0.1