We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ee6b07 commit 0bcd9ffCopy full SHA for 0bcd9ff
packages/shell/src/simulator-host.ts
@@ -1,7 +1,8 @@
1
import {
2
BuiltinSimulatorHost,
3
} from '@alilc/lowcode-designer';
4
-import { simulatorHostSymbol } from './symbols';
+import { simulatorHostSymbol, nodeSymbol } from './symbols';
5
+import type Node from './node';
6
7
export default class SimulatorHost {
8
private readonly [simulatorHostSymbol]: BuiltinSimulatorHost;
@@ -51,6 +52,14 @@ export default class SimulatorHost {
51
52
return this[simulatorHostSymbol].get(key);
53
}
54
55
+ /**
56
+ * scroll to specific node
57
+ * @param node
58
+ */
59
+ scrollToNode(node: Node) {
60
+ this[simulatorHostSymbol].scrollToNode(node[nodeSymbol]);
61
+ }
62
+
63
/**
64
* 刷新渲染画布
65
*/
0 commit comments