Files
AFFiNE-Mirror/blocksuite/docs/api/@blocksuite/block-std/gfx/functions/GfxCompatible.md
2025-03-17 12:51:08 +00:00

914 B

@blocksuite/block-std


BlockSuite API Documentation / @blocksuite/block-std / gfx / GfxCompatible

Function: GfxCompatible()

GfxCompatible<Props, T>(BlockModelSuperClass): typeof GfxBlockElementModel

Convert a BlockModel to a GfxBlockElementModel.

Type Parameters

Props

Props extends GfxCompatibleProps

T

T extends Constructor<BlockModel<Props>> = Constructor<BlockModel<Props>>

Parameters

BlockModelSuperClass

T

The BlockModel class to be converted.

Returns

typeof GfxBlockElementModel

The returned class is a subclass of the GfxBlockElementModel class and the given BlockModelSuperClass.