Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • DrawingToolsApi

Implements

Index

Constructors

  • new DrawingToolsApi(viewport: IViewportApi, callbacks: Callbacks, settings: Settings, defaultTextures?: DefaultTextures, parentNode?: ITreeNode): DrawingToolsApi
  • Parameters

    • viewport: IViewportApi
    • callbacks: Callbacks
    • settings: Settings
    • Optional defaultTextures: DefaultTextures
    • Optional parentNode: ITreeNode

    Returns DrawingToolsApi

Accessors

  • get closed(): boolean
  • get paused(): boolean
  • get restrictions(): {}
  • get showDistanceLabels(): boolean
  • set showDistanceLabels(value: boolean): void
  • get showPointLabels(): boolean
  • set showPointLabels(value: boolean): void
  • get uuid(): string
  • The unique identifier of the drawing tool instance.

    Returns string

Methods

  • addPoint(index: number, position?: vec3): void
  • Add a point to the drawing tool.

    Parameters

    • index: number
    • Optional position: vec3

    Returns void

  • canRedo(): boolean
  • canUndo(): boolean
  • cancel(): void
  • cancelDrag(): void
  • Cancel any in-progress hover or drag interaction without closing the drawing tool.

    Returns void

  • close(): void
  • continue(): void
  • isInteractionActive(): boolean
  • movePoint(index: number, position: vec3, temporary?: boolean, skipConstraints?: boolean): void
  • Move a point of the drawing tool.

    Parameters

    • index: number
    • position: vec3
    • Optional temporary: boolean
    • Optional skipConstraints: boolean

    Returns void

  • pause(): void
  • Pause the drawing tool, suspending all user interactions while keeping the current state. Call continue to resume.

    Returns void

  • redo(): void
  • removePoint(index: number): void
  • removeRestriction(token: string): void
  • undo(): void