mirror of
https://gitee.com/antv/g6.git
synced 2024-12-04 12:49:04 +08:00
chore: erfine
This commit is contained in:
parent
4f802a822e
commit
ac8b8c1573
@ -34,8 +34,8 @@ export default class Edge extends Item implements IEdge {
|
||||
// 如果设置成具体的点,则清理节点
|
||||
this.set(pointName, value);
|
||||
this.set(itemName, null);
|
||||
} else {
|
||||
value!.addEdge(this);
|
||||
} else if (value) {
|
||||
value.addEdge(this);
|
||||
this.set(itemName, value);
|
||||
this.set(pointName, null);
|
||||
}
|
||||
|
@ -357,7 +357,7 @@ export const translate = (group: IGroup, vec: Point) => {
|
||||
* @param group Group 实例
|
||||
* @param point 移动到的坐标点
|
||||
*/
|
||||
export const move = (group: IGroup, point: Point, animate?: boolean, animateCfg?: GraphAnimateConfig = {}) => {
|
||||
export const move = (group: IGroup, point: Point, animate?: boolean, animateCfg?: GraphAnimateConfig = { duration: 500 }) => {
|
||||
let matrix: Matrix = group.getMatrix();
|
||||
if (!matrix) {
|
||||
matrix = [1, 0, 0, 0, 1, 0, 0, 0, 1];
|
||||
|
Loading…
Reference in New Issue
Block a user