Back to Affine

Function: compareLayer()

blocksuite/docs/api/@blocksuite/std/gfx/functions/compareLayer.md

0.26.6512 B
Original Source

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