@antv/g 5.16.19 → 5.16.21
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 +7 -2
- package/dist/index.umd.min.js +1 -1
- package/package.json +4 -4
package/dist/index.umd.js
CHANGED
|
@@ -8187,7 +8187,12 @@
|
|
|
8187
8187
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
|
|
8188
8188
|
* @see https://github.com/b-fuze/deno-dom/blob/master/src/dom/node.ts#L338
|
|
8189
8189
|
*/_proto.compareDocumentPosition=function compareDocumentPosition(other){if(other===this){// same node
|
|
8190
|
-
return 0;}if(!(other instanceof Node)){
|
|
8190
|
+
return 0;}// if (!(other instanceof Node)) {
|
|
8191
|
+
// throw new TypeError(
|
|
8192
|
+
// 'Node.compareDocumentPosition: Argument 1 does not implement interface Node.',
|
|
8193
|
+
// );
|
|
8194
|
+
// }
|
|
8195
|
+
var node1Root=other;// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
8191
8196
|
var node2Root=this;var node1Hierarchy=[node1Root];var node2Hierarchy=[node2Root];while((_node1Root$parentNode=node1Root.parentNode)!==null&&_node1Root$parentNode!==void 0?_node1Root$parentNode:node2Root.parentNode){var _node1Root$parentNode;node1Root=node1Root.parentNode?(node1Hierarchy.push(node1Root.parentNode),node1Root.parentNode):node1Root;node2Root=node2Root.parentNode?(node2Hierarchy.push(node2Root.parentNode),node2Root.parentNode):node2Root;}// Check if they don't share the same root node
|
|
8192
8197
|
if(node1Root!==node2Root){return Node.DOCUMENT_POSITION_DISCONNECTED|Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|Node.DOCUMENT_POSITION_PRECEDING;}var longerHierarchy=node1Hierarchy.length>node2Hierarchy.length?node1Hierarchy:node2Hierarchy;var shorterHierarchy=longerHierarchy===node1Hierarchy?node2Hierarchy:node1Hierarchy;// Check if either is a container of the other
|
|
8193
8198
|
if(longerHierarchy[longerHierarchy.length-shorterHierarchy.length]===shorterHierarchy[0]){return longerHierarchy===node1Hierarchy?// other is a child of this
|
|
@@ -9900,7 +9905,7 @@
|
|
|
9900
9905
|
_this2.setRoll(interRoll);
|
|
9901
9906
|
_this2.setZoom(interZoom);
|
|
9902
9907
|
var dist$1 = dist(interFocalPoint, destFocalPoint) + dist(interPosition, destPosition);
|
|
9903
|
-
if (dist$1 <= epsilon) {
|
|
9908
|
+
if (dist$1 <= epsilon && destZoom == undefined && destRoll == undefined) {
|
|
9904
9909
|
endAnimation();
|
|
9905
9910
|
return;
|
|
9906
9911
|
}
|