@antv/g 5.15.7 → 5.15.8
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.umd.js +4 -8
- package/dist/index.umd.min.js +1 -1
- package/package.json +3 -3
package/dist/index.umd.js
CHANGED
|
@@ -5846,7 +5846,6 @@
|
|
|
5846
5846
|
function piMod(angle) {
|
|
5847
5847
|
return (angle + Math.PI * 2) % (Math.PI * 2);
|
|
5848
5848
|
}
|
|
5849
|
-
|
|
5850
5849
|
var line = {
|
|
5851
5850
|
/**
|
|
5852
5851
|
* 计算线段的包围盒
|
|
@@ -5941,7 +5940,6 @@
|
|
|
5941
5940
|
return Math.atan2(y2 - y1, x2 - x1);
|
|
5942
5941
|
}
|
|
5943
5942
|
};
|
|
5944
|
-
|
|
5945
5943
|
var EPSILON$1 = 0.0001;
|
|
5946
5944
|
/**
|
|
5947
5945
|
* 使用牛顿切割法求最近的点
|
|
@@ -6111,7 +6109,6 @@
|
|
|
6111
6109
|
return piMod(angle);
|
|
6112
6110
|
}
|
|
6113
6111
|
};
|
|
6114
|
-
|
|
6115
6112
|
function cubicAt(p0, p1, p2, p3, t) {
|
|
6116
6113
|
var onet = 1 - t; // t * t * t 的性能大概是 Math.pow(t, 3) 的三倍
|
|
6117
6114
|
return onet * onet * onet * p0 + 3 * p1 * t * onet * onet + 3 * p2 * t * t * onet + p3 * t * t * t;
|
|
@@ -6543,7 +6540,6 @@
|
|
|
6543
6540
|
return piMod(Math.atan2(dy, dx));
|
|
6544
6541
|
}
|
|
6545
6542
|
};
|
|
6546
|
-
|
|
6547
6543
|
function analyzePoints(points) {
|
|
6548
6544
|
// 计算每段的长度和总的长度
|
|
6549
6545
|
var totalLength = 0;
|
|
@@ -6656,7 +6652,6 @@
|
|
|
6656
6652
|
}
|
|
6657
6653
|
return minDistance;
|
|
6658
6654
|
}
|
|
6659
|
-
|
|
6660
6655
|
var polyline = {
|
|
6661
6656
|
/**
|
|
6662
6657
|
* 计算多折线的包围盒
|
|
@@ -9501,9 +9496,10 @@
|
|
|
9501
9496
|
// this.unmountChildren(child);
|
|
9502
9497
|
// });
|
|
9503
9498
|
if(destroyScenegraph){// destroy Document
|
|
9504
|
-
this.document.destroy();this.getEventService().destroy()
|
|
9505
|
-
this.
|
|
9506
|
-
|
|
9499
|
+
this.document.destroy();this.getEventService().destroy();}// destroy services
|
|
9500
|
+
this.getRenderingService().destroy();this.getContextService().destroy();// clear root after renderservice destroyed
|
|
9501
|
+
if(destroyScenegraph&&this.context.rBushRoot){// clear rbush
|
|
9502
|
+
this.context.rBushRoot.clear();this.context.rBushRoot=null;this.context.renderingContext.root=null;}if(!skipTriggerEvent){this.dispatchEvent(new CustomEvent(exports.CanvasEvent.AFTER_DESTROY));}}/**
|
|
9507
9503
|
* compatible with G 3.0
|
|
9508
9504
|
* @deprecated
|
|
9509
9505
|
* @alias resize
|