Files
AFFiNE-Mirror/blocksuite/docs/api/@blocksuite/std/gfx/functions/canSafeAddToContainer.md
2025-03-28 07:20:34 +00:00

551 B

BlockSuite API Documentation


BlockSuite API Documentation / @blocksuite/std / gfx / canSafeAddToContainer

Function: canSafeAddToContainer()

canSafeAddToContainer(container, element): boolean

This checker is used to prevent circular reference, when adding a child element to a container.

Parameters

container

GfxGroupModel

element

GfxCompatibleInterface

Returns

boolean