Class type Text-PIXI._t

inherit PIXI.Sprite._t
method canvas#=: Js.Internal.meth([ `Arity_1(Webapi.Dom.HtmlElement.t) ], unit)

The canvas element that everything is drawn to

method canvas: Webapi.Dom.HtmlElement.t

The canvas element that everything is drawn to

method context#=: Js.Internal.meth([ `Arity_1(Webapi.Canvas.Canvas2d.t) ], unit)

The canvas 2d context that everything is drawn with

method context: Webapi.Canvas.Canvas2d.t

The canvas 2d context that everything is drawn with

method resolution#=: Js.Internal.meth([ `Arity_1(float) ], unit)

The resolution / device pixel ratio of the canvas. This is set to automatically match the renderer resolution by default, but can be overridden by setting manually.

method resolution: float

The resolution / device pixel ratio of the canvas. This is set to automatically match the renderer resolution by default, but can be overridden by setting manually.

method style#=: Js.Internal.meth([ `Arity_1(PIXI.TextStyle.t) ], unit)

Set the style of the text. Set up an event listener to listen for changes on the style object and mark the text as dirty.

method style: PIXI.TextStyle.t

Set the style of the text. Set up an event listener to listen for changes on the style object and mark the text as dirty.

method text#=: Js.Internal.meth([ `Arity_1(string) ], unit)

Set the copy for the text object. To split a line you can use '\n'.

method text: string

Set the copy for the text object. To split a line you can use '\n'.