Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Properties

declaredClass

declaredClass: string

decoration

decoration: "none" | "underline" | "line-through"

The text decoration.

Read more...

destroyed

destroyed: boolean

family

family: string

The font family of the text.

The font family of the text. The possible values are dependent upon the layer type, and if you working with a MapView or a SceneView. See the Labeling guide page for detailed explanation, or click the Read more below. >>> esri-read-more Font families for 3D SceneViews The supported font families for 3D SceneViews are dependent upon the fonts installed on the user's computer and web browser. If an app uses a font that is not installed, the Font class implements a fallback mechanism that will use the default font family value, which is sans-serif. Font families for 2D MapImageLayer The supported font families for MapImageLayers in a MapView are dependent upon the fonts installed on the ArcGIS Server that published the layer. If an app uses a font that is not installed, the Font class implements a fallback mechanism that will use the default font family value, which is sans-serif. Font families for 2D FeatureLayer, CSVLayer, StreamLayer, and TextSymbol The supported font families are based on hosted fonts files in .pbf format. By default, the fonts available are mostly the same ones used by the Esri Vector Basemaps. These fonts are available via https://static.arcgis.com/fonts. The URL can be configured to point to your own font resources by setting the esriConfig.fontsUrl property. If an app uses a font that is not installed, the Font class implements a fallback mechanism that will use the default font family value, which is sans-serif. This uses the Arial Unicode MS font file. > A preview of the fonts listed in the following table are available in the Labeling overview page. List of currently supported fonts: Read more...

initialized

initialized: boolean

size

size: number

The font size in points.

Read more...

style

style: "normal" | "italic" | "oblique"

The text style.

Read more...

weight

weight: "lighter" | "normal" | "bold" | "bolder"

The text weight.

Read more...

Methods

Protected _get

  • _get(propertyName: string): any
  • _get<T>(propertyName: string): T
  • Parameters

    • propertyName: string

    Returns any

  • Type parameters

    • T

    Parameters

    • propertyName: string

    Returns T

Protected _set

  • _set<T>(propertyName: string, value: T): Font
  • Type parameters

    • T

    Parameters

    • propertyName: string
    • value: T

    Returns Font

clone

  • Creates a deep clone of the font object.

    Read more...

    Returns Font

destroy

  • destroy(): void
  • Returns void

get

  • get<T>(propertyName: string): T
  • get(propertyName: string): any
  • Type parameters

    • T

    Parameters

    • propertyName: string

    Returns T

  • Parameters

    • propertyName: string

    Returns any

Protected notifyChange

  • notifyChange(propertyName: string): void
  • Parameters

    • propertyName: string

    Returns void

set

  • set<T>(propertyName: string, value: T): Font
  • set(props: HashMap<any>): Font
  • Type parameters

    • T

    Parameters

    • propertyName: string
    • value: T

    Returns Font

  • Parameters

    Returns Font

toJSON

  • toJSON(): any
  • Converts an instance of this class to its ArcGIS portal JSON representation.

    Read more...

    Returns any

watch

  • Parameters

    • path: string | string[]
    • callback: WatchCallback
    • Optional sync: boolean

    Returns WatchHandle

Generated using TypeDoc