New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

transformation-matrix

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

transformation-matrix - npm Package Compare versions

Comparing version 1.14.0 to 1.14.1

2

package.json
{
"name": "transformation-matrix",
"version": "1.14.0",
"version": "1.14.1",
"description": "2d transformation matrix functions written in ES6 syntax. Tree shaking ready!",

@@ -5,0 +5,0 @@ "main": "./build-commonjs/index.js",

@@ -1,13 +0,19 @@

declare type Matrix = {
a: number;
b: number;
c: number;
d: number;
e: number;
f: number;
};
declare module 'transformation-matrix' {
type Matrix = {
a: number;
b: number;
c: number;
d: number;
e: number;
f: number;
};
declare type Point = { x: number; y: number };
type Point = { x: number; y: number };
export { Point, Matrix };
}
declare module 'transformation-matrix/applyToPoint' {
import { Point, Matrix } from 'transformation-matrix';
/** Calculate a point transformed with an affine matrix */

@@ -20,2 +26,4 @@ export function applyToPoint(matrix: Matrix, point: Point): Point;

declare module 'transformation-matrix/fromString' {
import { Matrix } from 'transformation-matrix';
/** Parse a string matrix formatted as `matrix(a,b,c,d,e,f)` */

@@ -26,2 +34,4 @@ export function fromString(str: string): Matrix;

declare module 'transformation-matrix/fromObject' {
import { Point, Matrix } from 'transformation-matrix';
/**

@@ -42,2 +52,4 @@ * Extract an affine matrix from an object that contains a,b,c,d,e,f keys.

declare module 'transformation-matrix/identity' {
import { Matrix } from 'transformation-matrix';
/** Identity matrix */

@@ -48,2 +60,4 @@ export function identity(): Matrix;

declare module 'transformation-matrix/inverse' {
import { Matrix } from 'transformation-matrix';
/** Calculate a matrix that is the inverse of the provided matrix */

@@ -54,2 +68,4 @@ export function inverse(matrix: Matrix): Matrix;

declare module 'transformation-matrix/isAffineMatrix' {
import { Matrix } from 'transformation-matrix';
/** Check if the object contain an affine matrix */

@@ -60,2 +76,4 @@ export function isAffineMatrix(obj: object): boolean;

declare module 'transformation-matrix/rotate' {
import { Matrix } from 'transformation-matrix';
/**

@@ -76,2 +94,4 @@ * Calculate a rotation matrix

declare module 'transformation-matrix/scale' {
import { Matrix } from 'transformation-matrix';
/**

@@ -86,2 +106,4 @@ * Calculate a scaling matrix

declare module 'transformation-matrix/shear' {
import { Matrix } from 'transformation-matrix';
/** Calculate a shear matrix */

@@ -92,2 +114,4 @@ export function shear(shx: number, shy: number): Matrix;

declare module 'transformation-matrix/skew' {
import { Matrix } from 'transformation-matrix';
/** Calculate a skew matrix */

@@ -98,2 +122,4 @@ export function skew(ax: number, ay: number): Matrix;

declare module 'transformation-matrix/toString' {
import { Matrix } from 'transformation-matrix';
/**

@@ -117,2 +143,4 @@ * Serialize the matrix to a string that can be used with CSS or SVG

declare module 'transformation-matrix/transform' {
import { Matrix } from 'transformation-matrix';
/** Merge multiple matrices into one */

@@ -123,2 +151,4 @@ export function transform(...matrices: Matrix[]): Matrix;

declare module 'transformation-matrix/translate' {
import { Matrix } from 'transformation-matrix';
/**

@@ -125,0 +155,0 @@ * Calculate a translate matrix

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc