Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NullGraphicsDriver

NullGraphicsDriver

デフォルトのグラフィックドライバ:

  • 何も描画しない
  • TextAlive App 開発時などに利用される
  • TextAlive 本サイトで利用している canvas 要素へ描画する機能を持ったドライバは現状非公開(利用したい場合は textalive-ml@aist.go.jp までご相談ください)

A default graphic driver:

  • This driver does not render anything on canvas
  • The driver is particularly useful when developing applications with TextAlive App API
  • There exists an implementation that renders actual graphics on canvas elements but is not public; contact us at textalive-ml@aist.go.jp if interested

Hierarchy

  • NullGraphicsDriver

Implements

Index

Constructors

constructor

Properties

height

height: 720

ステージの高さ [px]

Stage height (e.g., HTML Canvas height in a browser window)

width

width: 1280

ステージの幅 [px]

Stage width (e.g., HTML Canvas width in a browser window)

wrapperTable

wrapperTable: {}

インタプリタ内にラップして提供するAPIのテーブル

A table used to wrap classes in the interpreter

Type declaration

    Methods

    createRuntime

    • createRuntime(video: Video): Promise<RuntimeVideo>
    • 動画オブジェクトを描画するためのランタイムインスタンスを作成する

      Create a runtime instance for the video object

      Parameters

      • video: Video

      Returns Promise<RuntimeVideo>

    isGraphics

    • isGraphics(): boolean
    • Returns boolean

      引数がグラフィックコンテキストか否か / Whether the specified parameter is an instance of graphic context or not

    reset

    • reset(): void
    • キャンバスの状態を初期化する

      Reset the canvas state

      Returns void

    setCanvas

    • setCanvas(): Promise<void>
    • Canvas要素を初期化する

      Initialize the canvas element

      Returns Promise<void>

    update

    • update(): void
    • キャンバスに現在の状態を描画する

      Update the canvas with the current runtime state

      Returns void

    updateStageTx

    • updateStageTx(): void
    • ステージの描画倍率を調整する

      Returns void

    Generated using TypeDoc