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

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

View File

@@ -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) {