Skip to content

Commit

Permalink
Add cx and cy parameters to scale typings
Browse files Browse the repository at this point in the history
These parameters were missing from the TypeScript typings.
  • Loading branch information
bensalilijames authored Jun 15, 2020
1 parent 9e0cf8b commit 5ac72ba
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions transformation-matrix.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,13 @@ declare module 'transformation-matrix/scale' {

/**
* Calculate a scaling matrix
* @param sx Scaling on axis x
* @param sy Scaling on axis y (default `sx`)
* @param sx {number} Scaling on axis x
* @param [sy = sx] {number} Scaling on axis y (default `sx`)
* @param [cx] {number} If (cx,cy) are supplied the scale is relative to this point
* @param [cy] {number} If (cx,cy) are supplied the scale is relative to this point
* @returns {Matrix} Affine Matrix
*/
export function scale(sx: number, sy?: number): Matrix;
export function scale(sx: number, sy?: number, cx?: number, cy?: number): Matrix;
}

declare module 'transformation-matrix/shear' {
Expand Down

0 comments on commit 5ac72ba

Please sign in to comment.