@fleet-frontend/mower-maps 0.2.0-beta.55 → 0.2.0-beta.56

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
@@ -22474,11 +22474,13 @@ const ChannelClipPath = React__default.memo(() => {
22474
22474
  const boundaryData = svgElementDatas?.[DataType.BOUNDARY] || [];
22475
22475
  const [minX, minY, maxX, maxY] = useMemo(() => {
22476
22476
  const baseVal = svgViewBox;
22477
+ //.因为channel会有宽度,为了防止channel在边界会被截断,需要给边界留出一定的余量
22478
+ const padding = 20;
22477
22479
  return [
22478
- baseVal?.x || 0,
22479
- baseVal?.y || 0,
22480
- (baseVal?.x || 0) + (baseVal?.width || 0),
22481
- (baseVal?.y || 0) + (baseVal?.height || 0),
22480
+ (baseVal?.x || 0) - padding,
22481
+ (baseVal?.y || 0) - padding,
22482
+ (baseVal?.x || 0) + (baseVal?.width || 0) + padding,
22483
+ (baseVal?.y || 0) + (baseVal?.height || 0) + padding,
22482
22484
  ];
22483
22485
  }, [svgViewBox]);
22484
22486
  /**
package/dist/index.js CHANGED
@@ -22494,11 +22494,13 @@ const ChannelClipPath = React.memo(() => {
22494
22494
  const boundaryData = svgElementDatas?.[exports.DataType.BOUNDARY] || [];
22495
22495
  const [minX, minY, maxX, maxY] = React.useMemo(() => {
22496
22496
  const baseVal = svgViewBox;
22497
+ //.因为channel会有宽度,为了防止channel在边界会被截断,需要给边界留出一定的余量
22498
+ const padding = 20;
22497
22499
  return [
22498
- baseVal?.x || 0,
22499
- baseVal?.y || 0,
22500
- (baseVal?.x || 0) + (baseVal?.width || 0),
22501
- (baseVal?.y || 0) + (baseVal?.height || 0),
22500
+ (baseVal?.x || 0) - padding,
22501
+ (baseVal?.y || 0) - padding,
22502
+ (baseVal?.x || 0) + (baseVal?.width || 0) + padding,
22503
+ (baseVal?.y || 0) + (baseVal?.height || 0) + padding,
22502
22504
  ];
22503
22505
  }, [svgViewBox]);
22504
22506
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/render/svgElement/ChannelClipPath/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,QAAA,MAAM,eAAe,0EA+MnB,CAAC;AAEH,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/render/svgElement/ChannelClipPath/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,QAAA,MAAM,eAAe,0EAiNnB,CAAC;AAEH,eAAe,eAAe,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fleet-frontend/mower-maps",
3
- "version": "0.2.0-beta.55",
3
+ "version": "0.2.0-beta.56",
4
4
  "type": "module",
5
5
  "description": "a mower maps in google maps",
6
6
  "main": "dist/index.js",