Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Mouse

Hierarchy

  • Mouse

Index

Constructors

constructor

Properties

down

down: boolean = false

If mouse is down

draggedParticle

draggedParticle: null | Particle = null

Dragged particle

heax

heax: Heax

Instance of heax class

highlightColor

highlightColor: string = "black"

Highlight color

pos

pos: Vector = ...

Position of mouse

selectRadius

selectRadius: number = 20

Select radius

Methods

drag

  • drag(draw?: boolean): void
  • Drag the nearest particle

    Parameters

    • draw: boolean = true

      Draw a circle around neareat particle

    Returns void

Private draw

  • draw(): void

Private nearestParticle

Private onEnd

  • onEnd(): void

Private onMove

  • onMove(e: MouseEvent | Touch): void

Private onStart

  • onStart(): void

Generated using TypeDoc