Hierarchy

  • SpanBase
    • Span

Constructors

  • Returns Span

Properties

_ssb: SpannableStringBuilder
antiAlias: boolean
backgroundColor: Color
borderRadius: number
color: Color
dash: string
fillColor: Color
fontFamily: string
fontSize: number
fontStyle: FontStyleType
fontWeight: FontWeightType
handleAlignment: boolean
height: PercentLengthType
horizontalAlignment: never
id: string
ignorePadding: boolean
letterSpacing: number
lineBreak: string | number
lineHeight: number
mFontFamily: string
mFontSize: number
mFontWeight: FontWeightType
mNative: any
mPaint: Paint
mParent: WeakRef<any>
mStaticlayout: StaticLayout
mTappable: boolean
mVerticalTextAlignment: any
originX: number
originY: number
paddingBottom: PercentLengthType
paddingLeft: PercentLengthType
paddingRight: PercentLengthType
paddingTop: PercentLengthType
paintStyle: Style
rotate: number
scaleX: number
scaleY: number
shadow: Shadow
strokeCap: Cap
strokeColor: Color
strokeJoin: Join
strokeWidth: number
text: any
textAlignment: never
textDecoration: TextDecorationType
textSize: number
textTransform: TextTransformType
translateX: PercentLengthType
translateY: PercentLengthType
verticalAlignment: never
verticalTextAlignment: VerticalTextAlignment
visibility: VisibilityType
width: PercentLengthType
linkTapEvent: string
mBackgroundPaint: Paint

Accessors

  • get _fontFamily(): any
  • Returns any

  • set _fontFamily(value: any): void
  • Parameters

    • value: any

    Returns void

  • get _fontSize(): any
  • Returns any

  • set _fontSize(value: any): void
  • Parameters

    • value: any

    Returns void

  • get _fontWeight(): FontWeightType
  • Returns FontWeightType

  • set _fontWeight(value: FontWeightType): void
  • Parameters

    • value: FontWeightType

    Returns void

  • get _verticalTextAlignment(): any
  • Returns any

  • set _verticalTextAlignment(value: any): void
  • Parameters

    • value: any

    Returns void

  • get paint(): Paint
  • Returns Paint

  • get parent(): CanvasView
  • Returns CanvasView

  • set parent(value: CanvasView): void
  • Parameters

    Returns void

  • get style(): this
  • Returns this

  • get isSpan(): boolean
  • Returns boolean

Methods

  • Adds a listener for the specified event name.

    Parameters

    • arg: string
    • callback: (data: EventData) => void

      A function to be called when some of the specified event(s) is raised.

    • OptionalthisArg: any

      An optional parameter which when set will be used as "this" in callback method call.

    Returns void

  • Parameters

    • parentCanvas: CanvasLabel
    • Optionalparent: Group
    • OptionalmaxFontSize: number

    Returns void

  • Parameters

    • text: any
    • w: any
    • h: any
    • align: any
    • parent: CanvasLabel

    Returns StaticLayout

  • Parameters

    Returns void

  • Parameters

    • canvas: Canvas
    • parent: CanvasLabel

    Returns void

  • Parameters

    • availableWidth: number
    • availableHeight: number

    Returns number

  • Parameters

    • parentCanvas: CanvasLabel
    • Optionalparent: Group
    • OptionalmaxFontSize: number

    Returns any

  • Parameters

    • canvasLabel: CanvasLabel

    Returns any

  • Parameters

    • availableWidth: number
    • availableHeight: number

    Returns number

  • Parameters

    • propertyName: any
    • value: any
    • oldValue: any

    Returns void

  • Returns void

  • Removes listener(s) for the specified event name.

    Parameters

    • arg: string
    • Optionalcallback: any

      An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed.

    • OptionalthisArg: any

      An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener.

    Returns void

  • Returns void

  • Returns void

  • Returns void

  • Returns a string representation of an object.

    Returns string