API
TextElement

TextElement

Background, padding 등을 이용하려면 HtmlTextElement를 사용한다.

Properties

anchor: TextAnchor

anchor

default :undefined

layout: TextLayout

layout

default :undefined

opacity: number (opens in a new tab)

opacity

default :undefined

overflow: 'clip' | 'ellipsis' | 'wrap'

overflow

  • 'clip'
  • 'ellipsis'
  • 'wrap'

default :undefined

rotation: number (opens in a new tab)

rotation

default :undefined

text: string (opens in a new tab)

text

default :undefined

visible: boolean (opens in a new tab)

visible

default :undefined

Methods

destroy(): null

객체가 소유한 참조 등을 해제하고 null을 리턴한다.

model = model.destroy();

return null