refactor(editor): query methods in edgeless api (#9407)

This commit is contained in:
Saul-Mirone committed 2024-12-28 07:48:41 +00:00
1 parent dc92d78895
commit 1e4b1807be
35 files changed
+296 -275

No files matched your search

@@ -41,7 +41,7 @@ export function calcChildBound(
const targetBlocks = childConnectors
.map(connector => connector.target.id)
.filter(id => id !== undefined)
.map(id => service.getElementById(id))
.map(id => service.crud.getElementById(id))
.filter(block => !!block);
if (targetBlocks.length) {