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

513 B

BlockSuite API Documentation


BlockSuite API Documentation / @blocksuite/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