Show:

CGSGHandleBox Class

Extends Object
Module: Math

A Tiny box on selected square borders

Constructor

CGSGHandleBox
(
  • parentNode
  • size
  • fillColor
  • strokeColor
  • lineWidth
  • x
  • y
)
Parameters:

Methods

checkIfSelected
(
  • mousePosition
  • threshold
)
Boolean

Return true if this handleBox is under the coordinate of the mouse.

Parameters:
Returns:
render
(
  • context
)
Parameters:
  • context CanvasRenderingContext2D

    the context into render the handle box

translateTo
(
  • newRelativeX
  • newRelativeY
)
Parameters:

Properties

_parentNode CGSGNode private
_position CGSGPosition private
strokeColor String