mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 20:08:37 +00:00
534 B
534 B
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