Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Scope

Index

Constructors

constructor

  • Constructor for Scope, an object keeping track of objects within a particular context

    Parameters

    • parent: Scope

      The parent Scope

    • Default value canvas: HTMLCanvasElement = null

      The canvas for the effects

    • Default value effects: Effect<any>[] = null

      The array of effects

    • Default value eventLog: LogEvent<any>[] = null

      The log of events that occurred

    Returns Scope

Properties

Private _canvas

_canvas: HTMLCanvasElement

Private _effects

_effects: Effect<any>[]

Private _eventLog

_eventLog: LogEvent<any>[] = []

Private _latestScope

_latestScope: Scope = null

Private _mulSelArray

_mulSelArray: Effect<any>[]

Private _parent

_parent: Scope

Private _varBindings

_varBindings: Map<string, Option<any>>

Accessors

canvas

  • get canvas(): HTMLCanvasElement

effects

  • get effects(): Effect<any>[]

eventLog

latestScope

  • get latestScope(): Scope
  • set latestScope(scope: Scope): void

mulSelArray

  • get mulSelArray(): Effect<any>[]

parent

varBindings

  • get varBindings(): Map<string, Option<any>>
  • set varBindings(m: Map<string, Option<any>>): void

Methods

assign

  • assign(name: string, val: any): void
  • Assigns a value to a variable in this Context

    Parameters

    • name: string

      The name of the variable

    • val: any

      The value of the variable

    Returns void

copy

createChildScope

  • createChildScope(): Scope

lookup

  • lookup(name: string): any
  • Looks up the value of the variable with the given name in the current scope and ancestor scopes

    Parameters

    • name: string

      The name of the value

    Returns any

Generated using TypeDoc