Class

io.scalajs.dom.html.phaser

StyleOptions

Related Doc: package phaser

Permalink

class StyleOptions extends Object

Text Style Options

Annotations
@RawJSType() @ScalaJSDefined()
Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StyleOptions
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StyleOptions(font: UndefOr[String] = js.undefined, fontStyle: UndefOr[String] = js.undefined, fontVariant: UndefOr[String] = js.undefined, fontWeight: UndefOr[String] = js.undefined, fontSize: UndefOr[|[String, JsNumber]] = js.undefined, backgroundColor: UndefOr[String] = js.undefined, fill: UndefOr[String] = js.undefined, align: UndefOr[String] = js.undefined, boundsAlignH: UndefOr[String] = js.undefined, boundsAlignV: UndefOr[String] = js.undefined, stroke: UndefOr[String] = js.undefined, strokeThickness: UndefOr[String] = js.undefined, wordWrap: UndefOr[Boolean] = js.undefined, wordWrapWidth: UndefOr[JsNumber] = js.undefined, maxLines: UndefOr[JsNumber] = js.undefined, tabs: UndefOr[JsNumber] = js.undefined)

    Permalink

    font

    The style and size of the font.

    fontStyle

    The style of the font (eg. 'italic'): overrides the value in style.font.

    fontVariant

    The variant of the font (eg. 'small-caps'): overrides the value in style.font.

    fontWeight

    The weight of the font (eg. 'bold'): overrides the value in style.font

    fontSize

    The size of the font (eg. 32 or '32px'): overrides the value in style.font.

    backgroundColor

    A canvas fillstyle that will be used as the background for the whole Text object. Set to null to disable.

    fill

    A canvas fillstyle that will be used on the text eg 'red', '#00FF00'.

    align

    Horizontal alignment of each line in multiline text. Can be: 'left', 'center' or 'right'. Does not affect single lines of text (see textBounds and boundsAlignH for that).

    boundsAlignH

    Horizontal alignment of the text within the textBounds. Can be: 'left', 'center' or 'right'.

    boundsAlignV

    Vertical alignment of the text within the textBounds. Can be: 'top', 'middle' or 'bottom'.

    stroke

    A canvas stroke style that will be used on the text stroke eg 'blue', '#FCFF00'.

    strokeThickness

    A number that represents the thickness of the stroke. Default is 0 (no stroke).

    wordWrap

    Indicates if word wrap should be used.

    wordWrapWidth

    The width in pixels at which text will wrap.

    maxLines

    The maximum number of lines to be shown for wrapped text.

    tabs

    The size (in pixels) of the tabs, for when text includes tab characters. 0 disables. Can be an array of varying tab sizes, one per tab stop.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. var align: UndefOr[String]

    Permalink

    Horizontal alignment of each line in multiline text.

    Horizontal alignment of each line in multiline text. Can be: 'left', 'center' or 'right'. Does not affect single lines of text (see textBounds and boundsAlignH for that).

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. var backgroundColor: UndefOr[String]

    Permalink

    A canvas fillstyle that will be used as the background for the whole Text object.

    A canvas fillstyle that will be used as the background for the whole Text object. Set to null to disable.

  7. var boundsAlignH: UndefOr[String]

    Permalink

    Horizontal alignment of the text within the textBounds.

    Horizontal alignment of the text within the textBounds. Can be: 'left', 'center' or 'right'.

  8. var boundsAlignV: UndefOr[String]

    Permalink

    Vertical alignment of the text within the textBounds.

    Vertical alignment of the text within the textBounds. Can be: 'top', 'middle' or 'bottom'.

  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. var fill: UndefOr[String]

    Permalink

    A canvas fillstyle that will be used on the text eg 'red', '#00FF00'.

  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. var font: UndefOr[String]

    Permalink

    The style and size of the font.

  15. var fontSize: UndefOr[|[String, JsNumber]]

    Permalink

    The size of the font (eg.

    The size of the font (eg. 32 or '32px'): overrides the value in style.font.

  16. var fontStyle: UndefOr[String]

    Permalink

    The style of the font (eg.

    The style of the font (eg. 'italic'): overrides the value in style.font.

  17. var fontVariant: UndefOr[String]

    Permalink

    The variant of the font (eg.

    The variant of the font (eg. 'small-caps'): overrides the value in style.font.

  18. var fontWeight: UndefOr[String]

    Permalink

    The weight of the font (eg.

    The weight of the font (eg. 'bold'): overrides the value in style.font

  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  20. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  21. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  24. var maxLines: UndefOr[JsNumber]

    Permalink

    The maximum number of lines to be shown for wrapped text.

  25. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  29. var stroke: UndefOr[String]

    Permalink

    A canvas stroke style that will be used on the text stroke eg 'blue', '#FCFF00'.

  30. var strokeThickness: UndefOr[String]

    Permalink

    A number that represents the thickness of the stroke.

    A number that represents the thickness of the stroke. Default is 0 (no stroke).

  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  32. var tabs: UndefOr[JsNumber]

    Permalink

    The size (in pixels) of the tabs, for when text includes tab characters.

    The size (in pixels) of the tabs, for when text includes tab characters. 0 disables. Can be an array of varying tab sizes, one per tab stop.

  33. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  34. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  35. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  36. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. var wordWrap: UndefOr[Boolean]

    Permalink

    Indicates if word wrap should be used.

  40. var wordWrapWidth: UndefOr[JsNumber]

    Permalink

    The width in pixels at which text will wrap.

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped