Sprotty
Toggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

Dimension. Function.is Valid

sprotty-protocol / Dimension / isValid

Function: isValid()

isValid(d): boolean

Defined in: utils/geometry.ts:225

Checks whether the given dimention is valid, i.e. the width and height are non-zero.

Parameters

d

Dimension

Returns

boolean

true if the dimension is valid