Options
All
  • Public
  • Public/Protected
  • All
Menu

View-model for the text symbology settings widget.

Hierarchy

Index

Constructors

constructor

Properties

Protected _isDestroyed

_isDestroyed: boolean

app

config

Configuration for the symbology settings view-model.

configuring

configuring: boolean

Prevent bindings from firing when configuring the widget

fontColor

The colors used in the symbology.

fontFamilies

fontFamilies: ObservableCollection<string>

Font families available for picking.

fontFamily

fontFamily: Observable<string>

The currently selected font family

fontFamilyID

fontFamilyID: string

fontHalo

fontIsBold

fontIsBold: Observable<boolean>

Font Styles

fontIsItalic

fontIsItalic: Observable<boolean>

fontIsUnderline

fontIsUnderline: Observable<boolean>

fontSize

fontSize: Observable<number>

View model for the user-selected font size widget.

fontSizeViewModel

fontSizeViewModel: NumericInputViewModel

haloSize

haloSize: Observable<number>

User-selected halo size.

haloSizeViewModel

haloSizeViewModel: NumericInputViewModel

id

id: string

initialized

initialized: boolean

View model has been configured and is ready to go

isIE9or11

isIE9or11: boolean

GVH-14249: As of esri's jsapi 3.20, halo's on text markup cause IE11 to crash. We'll disable them if its IE11.

libraryId

libraryId: string

parentSymbologyView

parentSymbologyView: ViewBase

If this view makes up part of a symbology configuration view the parent can be attached here

showFontColor

showFontColor: Observable<boolean>

showFontFamilies

showFontFamilies: Observable<boolean>

showFontSize

showFontSize: Observable<boolean>

showFontStyle

showFontStyle: Observable<boolean>

showHaloColor

showHaloColor: Observable<boolean>

showHaloSize

showHaloSize: Observable<boolean>

Some things which can be configured to be visible or not

showText

showText: Observable<boolean>

showTextAngle

showTextAngle: Observable<boolean>

symbol

symbol: TextSymbol

The symbol currently configured by this widget

symbolText

symbolText: Observable<string>

Text of the current symbol. Optional unless editing a symbol with existing text

symbolTextID

symbolTextID: string

textAngle

textAngle: Observable<number>

Text angle configuration

textAngleViewModel

textAngleViewModel: NumericInputViewModel

Methods

_getSymbol

  • _getSymbol(): string
  • Returns a symbol as a json string, based on the current widget settings Intended to be private. Call the method on TextSymbolWidget instead.

    Returns string

_setFromSymbol

  • _setFromSymbol(symbol: TextSymbol): void
  • Sets the state of the widget based on a supplied symbol Intended to be private. Call the method on TextSymbolWidget instead.

    Parameters

    • symbol: TextSymbol

    Returns void

Protected _setFromSymbolObject

  • Parameters

    Returns void

auto

  • auto(arg0: any, arg1: any, arg2: any): void
  • Binds a handler to an Observable or to a dojo.connect. Binding to an Observable:

    ``` this.auto(someObservable, function (newValue) { });

    with explicit scope:

    this.auto(someObservable, this, function (newValue) { });

    Alternately, pass an event name as a string to use dojo.connect:

    this.auto(window, "onclick", function () { }); ```

    Parameters

    • arg0: any

      Either an Observable (for observable bindings) or a regular object (if arg1 is a string)

    • arg1: any

      If arg0 is an Observable, a function or scope object. Otherwise, an event name (to use with dojo.connect).

    • arg2: any

      If arg0 is an Observable, a function handler.

    Returns void

destroy

  • destroy(): void
  • Destroys the object completely

    Returns void

destroyBindings

  • destroyBindings(): void

getResource

  • getResource(resourceKey: string, locale?: string): string
  • Gets a language resource from the Application's resource dictionary, given a key, and optional locale. Returns null if the resource does not exist.

    Parameters

    • resourceKey: string
    • Optional locale: string

      The locale of the resource to fetch. Defaults to the current application locale.

    Returns string

initialize

onDestroy

  • onDestroy(): void
  • Override or attach to provide custom clean-up behaviour.

    Returns void

reset

  • reset(): void
  • Returns the widget to the default state (as defined by the configuration object)

    Returns void

trackCommandHandler

  • trackCommandHandler(command: any, token: any): void
  • Tracks a subscription to an {@link geocortex.framework.commands.Command}, disposing it when this object is disposed with the destroy method.

    Parameters

    • command: any
    • token: any

    Returns void

trackSubscription

  • trackSubscription(event: any, token: any): void
  • Tracks a subscription to an {@link geocortex.framework.events.Event}, disposing it when this object is disposed with the destroy method.

    Parameters

    • event: any
    • token: any

    Returns void