Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DrawAction

Hierarchy

Index

Properties

declaredClass

declaredClass: string

destroyed

destroyed: boolean

hasZ

hasZ: boolean

Controls whether the created geometry will have z coordinates or not.

Read more...

initialized

initialized: boolean

Readonly vertices

vertices: number[][]

Two-dimensional array of numbers representing the coordinates of each vertex comprising the geometry being drawn.

Read more...

view

view: MapView

A reference to the MapView.

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): DrawAction
  • Type parameters

    • T

    Parameters

    • propertyName: string
    • value: T

    Returns DrawAction

canRedo

  • canRedo(): boolean
  • Indicates if the redo() method can be called on the action instance.

    Read more...

    Returns boolean

canUndo

  • canUndo(): boolean
  • Indicates if the undo() method can be called on the action instance.

    Read more...

    Returns boolean

destroy

  • destroy(): void
  • Returns void

emit

  • emit(type: string, event?: any): boolean
  • Emits an event on the instance.

    Read more...

    Parameters

    • type: string
    • Optional event: any

    Returns boolean

get

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

    • T

    Parameters

    • propertyName: string

    Returns T

  • Parameters

    • propertyName: string

    Returns any

getCoordsAndPointFromScreenPoint

  • Maps the given screen point to a map point.

    Read more...

    Parameters

    Returns any

getCoordsFromScreenPoint

  • Maps the given screen point to a map point.

    Read more...

    Parameters

    Returns any

hasEventListener

  • hasEventListener(type: string): boolean
  • Indicates whether there is an event listener on the instance that matches the provided event name.

    Read more...

    Parameters

    • type: string

    Returns boolean

Protected notifyChange

  • notifyChange(propertyName: string): void
  • Parameters

    • propertyName: string

    Returns void

on

  • Registers an event handler on the instance.

    Read more...

    Parameters

    Returns IHandle

redo

  • redo(): void
  • Incrementally redo actions recorded in the stack.

    Read more...

    Returns void

screenToMap

  • Maps the given screen point to a map point.

    Read more...

    Parameters

    Returns any

set

  • Type parameters

    • T

    Parameters

    • propertyName: string
    • value: T

    Returns DrawAction

  • Parameters

    Returns DrawAction

undo

  • undo(): void
  • Incrementally undo actions recorded in the stack.

    Read more...

    Returns void

watch

  • Parameters

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

    Returns WatchHandle

Generated using TypeDoc