@deepinnet-components/pc 0.0.48 → 0.0.49

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.
@@ -142,7 +142,10 @@ var Index = /*#__PURE__*/forwardRef(function (props, ref) {
142
142
  // 找到距离点击点最近的折线段,插入点
143
143
  var minDistance = Infinity;
144
144
  var insertIndex = 0;
145
+
146
+ // POLYGON ((118.859744 28.979189, 118.870473 28.968001, 118.846526 28.964922, 118.859744 28.979189))
145
147
  var polygon = getPolygon();
148
+ polygon.push(polygon[0]);
146
149
  for (var i = 0; i < polygon.length - 1; i++) {
147
150
  var segmentStart = polygon[i];
148
151
  var segmentEnd = polygon[i + 1];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepinnet-components/pc",
3
- "version": "0.0.48",
3
+ "version": "0.0.49",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",