@fleet-frontend/mower-maps 0.2.0-beta.50 → 0.2.0-beta.51
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
|
@@ -25252,7 +25252,7 @@ const VisionOffTransformWrapper = ({ data, isSelected = false, onSelect, onCance
|
|
|
25252
25252
|
const infoBoxWidth = 300 * overlayScale; // 信息框宽度
|
|
25253
25253
|
const infoBoxHeight = 50 * overlayScale; // 信息框高度
|
|
25254
25254
|
const infoBoxX = centerX - infoBoxWidth / 2; // 居中对齐
|
|
25255
|
-
const scale = 3 * overlayScale;
|
|
25255
|
+
const scale = platform === PlatformType.H5 ? 2 * overlayScale : 3 * overlayScale;
|
|
25256
25256
|
const offsetLeft = 10 * scale;
|
|
25257
25257
|
return (jsxs(Fragment, { children: [showInfo && (jsx("foreignObject", { x: infoBoxX, y: infoBoxY, width: infoBoxWidth, height: infoBoxHeight, style: { textAlign: 'center' }, children: jsxs("div", { style: {
|
|
25258
25258
|
padding: `5px ${10 * overlayScale}px`,
|
|
@@ -26032,7 +26032,7 @@ const DoodleTransformWrapper = ({ data, isSelected = false, isSelectedWithoutOpe
|
|
|
26032
26032
|
const infoBoxWidth = 300 * overlayScale; // 信息框宽度
|
|
26033
26033
|
const infoBoxHeight = 100 * overlayScale; // 信息框高度
|
|
26034
26034
|
const infoBoxX = centerX - infoBoxWidth / 2; // 居中对齐
|
|
26035
|
-
const scale = 2 * overlayScale;
|
|
26035
|
+
const scale = platform === PlatformType.H5 ? 1 * overlayScale : 2 * overlayScale;
|
|
26036
26036
|
const offsetLeft = 10 * scale;
|
|
26037
26037
|
return (jsxs(Fragment, { children: [showInfo && (jsx("foreignObject", { x: infoBoxX, y: infoBoxY, width: infoBoxWidth, height: infoBoxHeight, style: { textAlign: 'center' }, onClick: () => {
|
|
26038
26038
|
onClickInfo?.();
|
package/dist/index.js
CHANGED
|
@@ -25272,7 +25272,7 @@ const VisionOffTransformWrapper = ({ data, isSelected = false, onSelect, onCance
|
|
|
25272
25272
|
const infoBoxWidth = 300 * overlayScale; // 信息框宽度
|
|
25273
25273
|
const infoBoxHeight = 50 * overlayScale; // 信息框高度
|
|
25274
25274
|
const infoBoxX = centerX - infoBoxWidth / 2; // 居中对齐
|
|
25275
|
-
const scale = 3 * overlayScale;
|
|
25275
|
+
const scale = platform === exports.PlatformType.H5 ? 2 * overlayScale : 3 * overlayScale;
|
|
25276
25276
|
const offsetLeft = 10 * scale;
|
|
25277
25277
|
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [showInfo && (jsxRuntime.jsx("foreignObject", { x: infoBoxX, y: infoBoxY, width: infoBoxWidth, height: infoBoxHeight, style: { textAlign: 'center' }, children: jsxRuntime.jsxs("div", { style: {
|
|
25278
25278
|
padding: `5px ${10 * overlayScale}px`,
|
|
@@ -26052,7 +26052,7 @@ const DoodleTransformWrapper = ({ data, isSelected = false, isSelectedWithoutOpe
|
|
|
26052
26052
|
const infoBoxWidth = 300 * overlayScale; // 信息框宽度
|
|
26053
26053
|
const infoBoxHeight = 100 * overlayScale; // 信息框高度
|
|
26054
26054
|
const infoBoxX = centerX - infoBoxWidth / 2; // 居中对齐
|
|
26055
|
-
const scale = 2 * overlayScale;
|
|
26055
|
+
const scale = platform === exports.PlatformType.H5 ? 1 * overlayScale : 2 * overlayScale;
|
|
26056
26056
|
const offsetLeft = 10 * scale;
|
|
26057
26057
|
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [showInfo && (jsxRuntime.jsx("foreignObject", { x: infoBoxX, y: infoBoxY, width: infoBoxWidth, height: infoBoxHeight, style: { textAlign: 'center' }, onClick: () => {
|
|
26058
26058
|
onClickInfo?.();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DoodleTransformWrapper.d.ts","sourceRoot":"","sources":["../../../../../src/render/svgElement/TransformWrapper/DoodleTransformWrapper/DoodleTransformWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"DoodleTransformWrapper.d.ts","sourceRoot":"","sources":["../../../../../src/render/svgElement/TransformWrapper/DoodleTransformWrapper/DoodleTransformWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAejD,UAAU,2BAA2B;IACnC,IAAI,EAAE,UAAU,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,iBAAiB,CAAC,EAAE,CAAC,SAAS,EAAE;QAC9B,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;KACf,KAAK,IAAI,CAAC;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;IACvC,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED,QAAA,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CA+hBjE,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|