Skip to content

API > @blocksuite/blocks > serializeXYWH

Function: serializeXYWH ​

serializeXYWH( x, y, w, h): SerializedXYWH

Parameters ​

ParameterType
xnumber
ynumber
wnumber
hnumber

Returns ​

SerializedXYWH

Defined In ​

packages/blocks/src/surface-block/utils/xywh.ts:7