Polygon Mask manager

Implements

Constructors

Properties

_checkInsidePolygon: ((position?) => boolean) = ...

Type declaration

    • (position?): boolean
    • Parameters

      Returns boolean

_createPath2D: (() => void) = ...

Type declaration

    • (): void
    • Returns void

_downloadSvgPath: ((svgUrl?, force?) => Promise<undefined | ICoordinates[]>) = ...

Type declaration

    • (svgUrl?, force?): Promise<undefined | ICoordinates[]>
    • Deprecate SVGPathElement.getPathSegAtLength removed in: Chrome for desktop release 62 Chrome for Android release 62 Android WebView release 62 Opera release 49 Opera for Android release 49

      Parameters

      • Optional svgUrl: string
      • Optional force: boolean

      Returns Promise<undefined | ICoordinates[]>

      the coordinates of the polygon

_drawPoints: (() => void) = ...

Type declaration

    • (): void
    • Returns void

_engine: Engine
_getEquidistantPointByIndex: ((index) => undefined | ICoordinates) = ...

Type declaration

_getPointByIndex: ((index) => ICoordinates) = ...

Type declaration

_getRandomPoint: (() => ICoordinates) = ...

Type declaration

_getRandomPointByLength: (() => undefined | ICoordinates) = ...

Type declaration

_moveRadius: number
_randomPoint: (() => undefined | ICoordinates) = ...

Type declaration

_scale: number
dimension: IDimension
offset?: ICoordinates
paths?: ISvgPath[]
raw?: ICoordinates[]
redrawTimeout?: number

Methods