Skip to content

Commit 87a0f8e

Browse files
committed
✨ 可以通过逻辑节点设置质点的位置
1 parent b69845e commit 87a0f8e

File tree

1 file changed

+2
-1
lines changed
  • app/src/core/service/dataGenerateService/autoComputeEngine/functions

1 file changed

+2
-1
lines changed

app/src/core/service/dataGenerateService/autoComputeEngine/functions/nodeLogic.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { AutoComputeUtils } from "../AutoComputeUtils";
1212
import { PenStroke } from "../../../../stage/stageObject/entity/PenStroke";
1313
import { Stage } from "../../../../stage/Stage";
1414
import { PenStrokeDeletedEffect } from "../../../feedbackService/effectEngine/concrete/PenStrokeDeletedEffect";
15+
import { ConnectPoint } from "../../../../stage/stageObject/entity/ConnectPoint";
1516

1617
/**
1718
* 直接获取输入节点和下游输出节点
@@ -127,7 +128,7 @@ export namespace NodeLogic {
127128
return ["Error: cannot find entity by uuid"];
128129
}
129130
// 找到了实体
130-
if (findEntity instanceof TextNode) {
131+
if (findEntity instanceof TextNode || findEntity instanceof ConnectPoint) {
131132
const x = parseFloat(fatherNode2.text);
132133
const y = parseFloat(fatherNode3.text);
133134
if (Number.isFinite(x) && Number.isFinite(y)) {

0 commit comments

Comments
 (0)