@fleet-frontend/mower-maps 0.2.0-beta.46 → 0.2.0-beta.48
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.
package/dist/index.esm.js
CHANGED
|
@@ -25765,10 +25765,15 @@ const DoodleTransform = ({ data, isSelected: _isSelected, onSelect }) => {
|
|
|
25765
25765
|
if (!editMap)
|
|
25766
25766
|
return false;
|
|
25767
25767
|
if (platform === PlatformType.H5) {
|
|
25768
|
-
return editMapInfo?.elementType === DataType.DOODLE;
|
|
25768
|
+
// return editMapInfo?.elementType === DataType.DOODLE;
|
|
25769
|
+
if (editMapInfo.mobileMode === MobileEditMode.CREATE ||
|
|
25770
|
+
editMapInfo.mobileMode === MobileEditMode.EDIT) {
|
|
25771
|
+
return false;
|
|
25772
|
+
}
|
|
25773
|
+
return true;
|
|
25769
25774
|
}
|
|
25770
25775
|
return !editMapInfo?.elementType;
|
|
25771
|
-
}, [editMapInfo?.elementType, platform]);
|
|
25776
|
+
}, [editMapInfo?.elementType, editMapInfo.mobileMode, platform, editMap]);
|
|
25772
25777
|
// 将 DoodleData 转换为父 SVG 坐标系的元素点数组
|
|
25773
25778
|
const transformedElements = useMemo(() => {
|
|
25774
25779
|
return transformSvgElements(data);
|
package/dist/index.js
CHANGED
|
@@ -25785,10 +25785,15 @@ const DoodleTransform = ({ data, isSelected: _isSelected, onSelect }) => {
|
|
|
25785
25785
|
if (!editMap)
|
|
25786
25786
|
return false;
|
|
25787
25787
|
if (platform === exports.PlatformType.H5) {
|
|
25788
|
-
return editMapInfo?.elementType ===
|
|
25788
|
+
// return editMapInfo?.elementType === DataType.DOODLE;
|
|
25789
|
+
if (editMapInfo.mobileMode === exports.MobileEditMode.CREATE ||
|
|
25790
|
+
editMapInfo.mobileMode === exports.MobileEditMode.EDIT) {
|
|
25791
|
+
return false;
|
|
25792
|
+
}
|
|
25793
|
+
return true;
|
|
25789
25794
|
}
|
|
25790
25795
|
return !editMapInfo?.elementType;
|
|
25791
|
-
}, [editMapInfo?.elementType, platform]);
|
|
25796
|
+
}, [editMapInfo?.elementType, editMapInfo.mobileMode, platform, editMap]);
|
|
25792
25797
|
// 将 DoodleData 转换为父 SVG 坐标系的元素点数组
|
|
25793
25798
|
const transformedElements = React.useMemo(() => {
|
|
25794
25799
|
return transformSvgElements(data);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/render/svgElement/DoodleTransform/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAO3D,UAAU,oBAAoB;IAC5B,IAAI,EAAE,UAAU,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;CACxC;AAED,QAAA,MAAM,eAAe,GAAI,6CAA6C,oBAAoB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/render/svgElement/DoodleTransform/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAO3D,UAAU,oBAAoB;IAC5B,IAAI,EAAE,UAAU,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;CACxC;AAED,QAAA,MAAM,eAAe,GAAI,6CAA6C,oBAAoB,4CA+GzF,CAAC;AAEF,eAAe,eAAe,CAAC"}
|