Jil
Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Node
  • Transform
  • Factory
    • JilScene

Index

Constructors

constructor

  • new JilScene(id: string, projector: Projector): JilScene

Properties

anchor

anchor: Vector2Extend = new Vector2Extend()

enable

enable: boolean = true

Optional id

id: string

opacity

opacity: number = 1

pivot

pivot: Vector2Extend = new Vector2Extend()

position

position: Vector2Extend = new Vector2Extend()

positionPx

positionPx: Vector2 = new Vector2()

rotation

rotation: number = 0

scale

scale: Vector2 = new Vector2()

size

size: Vector2Extend = new Vector2Extend()

sizePx

sizePx: Vector2 = new Vector2()

Methods

addChild

  • addChild(element: Node): void

createLayer

  • createLayer(id: string, classname?: string): JilLayer

destroy

  • destroy(): void

enter

  • enter(): void

leave

  • leave(): void

onDestroy

  • onDestroy(cb: function): void

onEnter

  • onEnter(cb: function): void

onLeave

  • onLeave(cb: function): void

onLoad

  • onLoad(cb: function): void

refresh

  • refresh(): void

removeChild

  • removeChild(element: Node): void

toString

  • toString(): string

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc