Class: Canvas

XComponent.Canvas()

new Canvas()

Specify a canvas entity. This component can only work with Visaul and make sure Visual.vtype = AssetType.DomCanvas

Source:

Members

canvas

Properties:
Name Type Description
canvas string

html canvas

Source:

ctx2d

Properties:
Name Type Description
ctx2d string

html canvas 2d context

Source:

dirty

Properties:
Name Type Description
dirty string

must refresh / update content

Source:

domId

Properties:
Name Type Description
domId string

dom id

Source:

options

Properties:
Name Type Description
options string

see docs

Source:

stamp

Properties:
Name Type Description
stamp string

last tick when updating

Source:

tex

Properties:
Name Type Description
tex string

THREE.CanvasTexture

Source:

used

Properties:
Name Type Description
used string

used / rendered as a texture (updated by system)

Source: