mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 20:38:52 +00:00
513 B
513 B
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