Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface GraphicsDriver

Hierarchy

  • GraphicsDriver

Implemented by

Index

Properties

height

height: number

ステージの高さ [px]

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

width

width: number

ステージの幅 [px]

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

Readonly wrapperTable

wrapperTable: WrapperTable

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

A table used to wrap classes in the interpreter

Methods

createRuntime

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

    Create a runtime instance for the video object

    Parameters

    • video: IVideo

      動画オブジェクト / Video object

    Returns Promise<RuntimeVideo>

isGraphics

  • isGraphics(g: any): boolean
  • Parameters

    • g: any

      グラフィックコンテキスト / Graphics context

    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(el: HTMLElement): Promise<void>
  • Canvas要素を初期化する

    Initialize the canvas element

    Parameters

    • el: HTMLElement

      Canvas要素 / Canvas element

    Returns Promise<void>

update

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

    Update the canvas with the current runtime state

    Returns void

updateStageTx

  • updateStageTx(scale: number, margin: [number, number, number, number]): void
  • ステージの描画倍率を調整する

    Parameters

    • scale: number

      倍率 / Scale

    • margin: [number, number, number, number]

      マージン / Margin

    Returns void

Generated using TypeDoc