Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FreeFormTool

A class to add a free form tool. It allows to draw free form shape.

Hierarchy

Index

Constructors

constructor

Properties

currentPoints

currentPoints: Point[]

List of points that define the current shape.

currentShape

currentShape: Selection<SVGGElement, any, any, any>

Shape being drawn.

id

id: string = "freeform"

Id of the tool.

isDown

isDown: boolean

Is the pointer down.

Methods

keyUp

  • keyUp(e: KeyboardEvent, canvas: Canvas): void

pointerCancel

  • pointerCancel(e: PointerEvent, canvas: Canvas): void

pointerDown

  • pointerDown(e: PointerEvent, canvas: Canvas): void

pointerLeave

  • pointerLeave(e: PointerEvent, canvas: Canvas): void

pointerMove

  • pointerMove(e: PointerEvent, canvas: Canvas): void

pointerUp

  • pointerUp(e: PointerEvent, canvas: Canvas): void

Protected setupUI

  • setupUI(toolBar: ToolBar, selected: boolean): void

toUnselect

  • toUnselect(): void

Generated using TypeDoc