Skip to content

WorkspaceSplit.resizeItemsByDiff method

WorkspaceSplit › resizeItemsByDiff

Unofficial

Resizes the given items by a pixel difference.

Signature:

resizeItemsByDiff(items: WorkspaceItem[], diff: number, sign: number): number

Parameters:

ParameterTypeDescription
itemsWorkspaceItem[]The items to resize.
diffnumberThe pixel delta to apply.
signnumberThe direction multiplier (+1 or -1).

Returns: numberThe total absolute number of pixels moved.