Methods
Static
centerX
- centerX(points): number
Returns number
Static
clamp
- clamp(point, containerSize): Point
Static
cross
- cross(a, b): number
Returns number
Static
distance
- distance(pointA, pointB): number
Returns number
Static
fromCoordinates
- fromCoordinates(clientX, clientY, rotations, scale): Point
Parameters
clientX: any
clientY: any
rotations: number
scale: number
Static
fromHtmlElement
- fromHtmlElement(element): Point
Static
highestX
- highestX(points): number
Returns number
Static
highestY
- highestY(points): number
Returns number
Static
left
- left(points): any
Returns any
Static
lowestX
- lowestX(points?): number
Returns number
Static
lowestY
- lowestY(points): number
Returns number
Static
multiply
- multiply(point, scalar): Point
Static
right
- right(points): any
Returns any
Static
scaleDownTo
- scaleDownTo(pt, size): Point
Static
scaleListToHtmlElement
- scaleListToHtmlElement(points, original, html): Point[]
Parameters
original: ImageData
html: HTMLElement
Static
scaleToHtmlElement
- scaleToHtmlElement(point, original, html): Point
Parameters
original: ImageData
html: HTMLElement
Static
scaleToPoint
- scaleToPoint(pt, x, y, scale): Point
Parameters
x: number
y: number
scale: number
Static
scaleUpTo
- scaleUpTo(pt, size): Point
Static
smallerSizeOfQuad
- smallerSizeOfQuad(points): number
Returns number
Static
toSvgPathStringWithRoundedCorners
- toSvgPathStringWithRoundedCorners(points, cornerRadius?): string
Parameters
Optional
cornerRadius: number
Returns string
Static
toSvgString
- toSvgString(points): string
Returns string
Static
width
- width(points): number
Returns number
Static
withScale
- withScale(x, y, scale): Point
Parameters
x: number
y: number
scale: number