Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Bin<T>

Type parameters

Hierarchy

Implements

Index

Properties

Protected _dirty

_dirty: number = 0

Optional data

data: any

freeRects

freeRects: IRectangle[]

height

height: number

maxHeight

maxHeight: number

maxWidth

maxWidth: number

options

options: IOption

rects

rects: T[]

Optional tag

tag: undefined | string

width

width: number

Accessors

dirty

  • get dirty(): boolean

Methods

Abstract add

  • add(rect: T): T | undefined
  • add(width: number, height: number, data: any): T | undefined

Abstract clone

  • clone(): Bin<T>

Abstract repack

  • repack(): T[] | undefined

Abstract reset

  • reset(deepRest: boolean): void

setDirty

  • setDirty(value?: boolean): void
  • Set bin dirty status

    memberof

    Bin

    Parameters

    • Default value value: boolean = true

    Returns void

Generated using TypeDoc