API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

C

classObservableSize

@codexo/exojs / math / stable

A Size subclass that fires a callback whenever `width` or `height` changes. Used internally by layout-aware types to invalidate cached geometry on dimension mutations. Batch mutations via `set()` fire at most one callback per call.

4
props
9
methods
0
events
Import
import { ObservableSize } from '@codexo/exojs'

A Size subclass that fires a callback whenever `width` or `height` changes. Used internally by layout-aware types to invalidate cached geometry on dimension mutations.

Batch mutations via `set()` fire at most one callback per call.

Constructors 1
new(callback: object, width: number, height: number): ObservableSize
Methods 9
add(x: number, y: number): this
clone(): this
copy(size: Size): this
destroy(): void
divide(x: number, y: number): this
equals(__namedParameters: Partial<Size>): boolean
scale(x: number, y: number): this
set(width: number, height: number): this
subtract(x: number, y: number): this
Properties 4
zero: Size
height: number
width: number
temp: Size
Source