API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classSize
Mutable 2D size (width × height) value type. All arithmetic methods mutate in place and return `this` for chaining. When `height` is omitted from `set`, `add`, `subtract`, `scale`, or `divide` it defaults to the same value as `width` (uniform operation). `Size.temp` provides a shared scratch instance. `Size.zero` is a read-only sentinel.
import { Size } from '@codexo/exojs'Mutable 2D size (width × height) value type. All arithmetic methods mutate in place and return `this` for chaining. When `height` is omitted from `set`, `add`, `subtract`, `scale`, or `divide` it defaults to the same value as `width` (uniform operation).
`Size.temp` provides a shared scratch instance. `Size.zero` is a read-only sentinel.
new(width: number, height: number): Sizeadd(width: number, height: number): thisclone(): Sizecopy(size: { height: number; width: number }): thisdestroy(): voiddivide(width: number, height: number): thisequals(__namedParameters: Partial<Size>): booleanscale(width: number, height: number): thisset(width: number, height: number): thissubtract(width: number, height: number): thiszero: Sizeheight: numberwidth: numbertemp: Size