BlockSuite API Documentation / @blocksuite/blocks / 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
• b: GfxModel
Returns
Defined in
packages/affine/block-surface/dist/managers/layer-utils.d.ts:23