We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 171b101 commit 30267cbCopy full SHA for 30267cb
1 file changed
packages/shell/src/document-model.ts
@@ -204,7 +204,7 @@ export default class DocumentModel {
204
* 当前 document 的 hover 变更事件
205
*/
206
onChangeDetecting(fn: (node: Node) => void) {
207
- this[documentSymbol].designer.detecting.onDetectingChange((node: InnerNode) => {
+ return this[documentSymbol].designer.detecting.onDetectingChange((node: InnerNode) => {
208
fn(Node.create(node)!);
209
});
210
}
@@ -213,7 +213,7 @@ export default class DocumentModel {
213
* 当前 document 的选中变更事件
214
215
onChangeSelection(fn: (ids: string[]) => void) {
216
- this[documentSymbol].selection.onSelectionChange((ids: string[]) => {
+ return this[documentSymbol].selection.onSelectionChange((ids: string[]) => {
217
fn(ids);
218
219
0 commit comments