class HitRegionBuilder

Methods
constructor, addEllipse, addPath, addRect

Methods

constructor(ctx)
Parameters:
  • CanvasRenderingContext2D ctx
addEllipse(cx, cy, rx, ry, rotation, startAngle, endAngle, anticlockwise?)
Parameters:
  • number cx
  • number cy
  • number rx
  • number ry
  • number rotation
  • number startAngle
  • number endAngle
  • boolean anticlockwise
Return type:
void
addPath(path)
Parameters:
Return type:
void
addRect(x, y, width, height)
Parameters:
  • number x
  • number y
  • number width
  • number height
Return type:
HitRegionBuilder