Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CanvasInitializerComponent

キャンバスの初期化及び設定を司るコンポーネント このコンポーネントによって、適切な位置に<canvas>を初期化してWebGLコンテキストを初期化します。

Hierarchy

  • Component
    • CanvasInitializerComponent

Index

Constructors

constructor

  • Returns CanvasInitializerComponent

Properties

attributes

attributes: NSDictionary<Attribute>

Attributes managed by this component

type

{NSDictionary}

canvas

canvas: HTMLCanvasElement

The canvas managed by this component

type

{HTMLCanvasElement}

companion

companion: NSDictionary<any>

The dictionary which is shared in entire tree.

returns

[description]

disposed

disposed: boolean

element

element: Element

XMLElement of this component

type

{Element}

enabled

enabled: boolean

id

id: string

ID related to this instance to identify.

isActive

isActive: boolean

isDefaultComponent

isDefaultComponent: boolean

Whether this component was created by nodeDeclaration

type

{boolean}

name

name: NSIdentity

Name of this component

type

{NSIdentity}

node

node: GomlNode

Node this component is attached

type

{GomlNode}

tree

tree: GomlInterface

Tree interface for the tree this node is attached.

returns

[description]

Methods

$awake

  • $awake(): void

Protected ___addAtribute

  • ___addAtribute(name: string, attribute: IAttributeDeclaration): void
  • Parameters

    • name: string
    • attribute: IAttributeDeclaration

    Returns void

Protected ___addAttribute

  • ___addAttribute(name: string, attribute: IAttributeDeclaration): Attribute
  • Add additional attribute to this component.

    Parameters

    • name: string
    • attribute: IAttributeDeclaration

    Returns Attribute

Protected ___bindAttributes

  • ___bindAttributes(): void
  • Returns void

Protected ___removeAttributes

  • ___removeAttributes(name?: string): void
  • Parameters

    • Optional name: string

    Returns void

addEnabledObserver

  • addEnabledObserver(observer: function): void
  • Parameters

    • observer: function
        • (component: Component): void
        • Parameters

          • component: Component

          Returns void

    Returns void

awake

  • awake(): boolean
  • Returns boolean

dispose

  • dispose(): void
  • Returns void

getAttribute

  • getAttribute(name: Name): any
  • Parameters

    • name: Name

    Returns any

getAttributeRaw

  • getAttributeRaw(name: Name): Attribute
  • Parameters

    • name: Name

    Returns Attribute

getTypeName

  • getTypeName(): string
  • Obtain class name

    Returns string

    Class name of the instance.

initialized

  • initialized(info: ITreeInitializedInfo): void
  • Parameters

    • info: ITreeInitializedInfo

    Returns void

notifySizeChanged

  • notifySizeChanged(): void

removeEnabledObserver

  • removeEnabledObserver(observer: function): boolean
  • Parameters

    • observer: function
        • (component: Component): void
        • Parameters

          • component: Component

          Returns void

    Returns boolean

resolveDefaultAttributes

  • resolveDefaultAttributes(nodeAttributes?: object | null): any
  • Parameters

    • Optional nodeAttributes: object | null

    Returns any

setAttribute

  • setAttribute(name: Name, value: any): void
  • Set value of attribute

    Parameters

    • name: Name
    • value: any

    Returns void

toString

  • toString(): string
  • Obtain stringfied object. If this method was not overridden, this method return class name.

    Returns string

    stringfied object

Static getUniqueRandom

  • getUniqueRandom(length: number): string
  • Generate random string

    Parameters

    • length: number

      length of random string

    Returns string

    generated string

Object literals

Static attributes

attributes: object

antialias

antialias: object

GLコンテキストの初期化時に、MSAAによるアンチエイリアスを有効にするか指定します。

この属性は、途中で動的に変更することができません。

converter

converter: string = "Boolean"

default

default: boolean = true

containerClass

containerClass: object

キャンバス要素の直接の親要素のコンテナに割り当てるクラス名を指定します。

converter

converter: string = "String"

default

default: string = "gr-container"

containerId

containerId: object

キャンバス要素の直接の親要素のコンテナに割り当てるidを指定します。

converter

converter: string = "String"

default

default: string = ""

height

height: object

キャンバスタグの縦幅を指定します。

converter

converter: string = "CanvasSize"

default

default: string = "fit"

preserveDrawingBuffer

preserveDrawingBuffer: object

GLコンテキストの初期化時に、preserveDrawingBufferフラグを有効にするか指定します。

描画結果をdataURLに変換する際などはこの属性がtrueでないと正常にレンダリング結果を取得できません。

converter

converter: string = "Boolean"

default

default: boolean = true

width

width: object

キャンバスタグの横幅を指定します。

converter

converter: string = "CanvasSize"

default

default: string = "fit"

Generated using TypeDoc