@byai/topology
Advanced tools
Comparing version 1.9.5 to 1.9.6
@@ -5,2 +5,9 @@ # Changelog | ||
### [1.9.6](https://github.com/byai/topology/compare/v1.9.5...v1.9.6) (2023-12-22) | ||
### Bug Fixes | ||
* fix computeAnchorPoWithNodeBottom ([ce00270](https://github.com/byai/topology/commit/ce0027008230ef80f75cd319581e77b73ac5b0e6)) | ||
### [1.9.5](https://github.com/byai/topology/compare/v1.9.4...v1.9.5) (2023-12-22) | ||
@@ -7,0 +14,0 @@ |
@@ -32,3 +32,3 @@ import { IPosition, ITopologyNode } from '../declare'; | ||
}; | ||
export declare const computeAnchorPoWithNodeBottom: (parentNode: ITopologyNode) => { | ||
export declare const computeAnchorPoWithNodeBottom: (anchor: string, parentNode: ITopologyNode) => { | ||
x: number; | ||
@@ -35,0 +35,0 @@ y: number; |
@@ -166,3 +166,7 @@ var __assign = (this && this.__assign) || function () { | ||
// 锚点始终位于节点底部 | ||
export var computeAnchorPoWithNodeBottom = function (parentNode) { | ||
export var computeAnchorPoWithNodeBottom = function (anchor, parentNode) { | ||
var $anchor = document.getElementById(anchor); | ||
if (!$anchor) { | ||
return null; | ||
} | ||
var parentSize = getNodeSize(parentNode.id); | ||
@@ -169,0 +173,0 @@ var parentPosition = parentNode.position || { x: 0, y: 0 }; |
{ | ||
"name": "@byai/topology", | ||
"version": "1.9.5", | ||
"version": "1.9.6", | ||
"description": "拓扑图组件", | ||
@@ -5,0 +5,0 @@ "bugs": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
465017
5711