Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Graphic

Hierarchy

  • Graphic

Index

Properties

LinearGradient

LinearGradient: any

x, y, x2, y2 are all percent from 0 to 1

Methods

clipPointsByRect

  • clipPointsByRect(points: number[][], rect: ERectangle): number[][]
  • Clip the given points by the given rectangular.

    Parameters

    • points: number[][]

      The points to be clipped, like [[23, 44], [12, 15], ...].

    • rect: ERectangle

      The rectangular that is used to clip points.

    Returns number[][]

clipRectByRect

Generated using TypeDoc