Options
All
  • Public
  • Public/Protected
  • All
Menu

A special subclass of PIXI.Container used to represent a Drawing in the PrimaryCanvasGroup.

Hierarchy

  • any
    • DrawingShape

Index

Constructors

  • Returns DrawingShape

Methods

  • refresh(): void
  • inheritdoc

    Returns void

  • setPosition(): void
  • inheritdoc

    Returns void

  • #drawRectangle(): void
  • Draw rectangular shapes.

    Returns void

  • #drawEllipse(): void
  • Draw ellipsoid shapes.

    Returns void

  • #drawPolygon(): any
  • Draw polygonal shapes.

    Returns any

  • #drawFreehand(): any
  • Draw freehand shapes with bezier spline smoothing.

    Returns any

  • #getBezierControlPoints(factor: number, previous: number[], point: number[], next: number[]): { cp1: Point; nextCP: Point }
  • Attribution: The equations for how to calculate the bezier control points are derived from Rob Spencer's article: http://scaledinnovation.com/analytics/splines/aboutSplines.html

    Parameters

    • factor: number

      The smoothing factor

    • previous: number[]

      The prior point

    • point: number[]

      The current point

    • next: number[]

      The next point

    Returns { cp1: Point; nextCP: Point }

    The bezier control points

    • cp1: Point
    • nextCP: Point

Properties

zIndex: any
angle: any
alpha: number
visible: any