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

534 B

@blocksuite/block-std


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

Function: compareLayer()

compareLayer(a, b): SortOrder

A comparator function for sorting elements in the surface. SortOrder.AFTER means a should be rendered after b and so on.

Parameters

a

GfxModel | GfxLocalElementModel

b

GfxModel | GfxLocalElementModel

Returns

SortOrder