css-transform-builder
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -11,17 +11,17 @@ export default class CSSTransformBuilder { | ||
scale3d(x: number, y: number, z: number): CSSTransformBuilder; | ||
translate(x: number, y: number): CSSTransformBuilder; | ||
translateX(num: number): CSSTransformBuilder; | ||
translateY(num: number): CSSTransformBuilder; | ||
translateZ(num: number): CSSTransformBuilder; | ||
translate3d(x: number, y: number, z: number): CSSTransformBuilder; | ||
rotate(num: number): CSSTransformBuilder; | ||
rotate3d(x: number, y: number, z: number, deg: number): CSSTransformBuilder; | ||
rotateX(num: number): CSSTransformBuilder; | ||
rotateY(num: number): CSSTransformBuilder; | ||
rotateZ(num: number): CSSTransformBuilder; | ||
skew(x: number, y: number): CSSTransformBuilder; | ||
skewX(num: number): CSSTransformBuilder; | ||
skewY(num: number): CSSTransformBuilder; | ||
translate(x: number, y: number, unit?: string): CSSTransformBuilder; | ||
translateX(x: number, unit?: string): CSSTransformBuilder; | ||
translateY(y: number, unit?: string): CSSTransformBuilder; | ||
translateZ(z: number, unit?: string): CSSTransformBuilder; | ||
translate3d(x: number, y: number, z: number, unit?: string): CSSTransformBuilder; | ||
rotate(num: number, unit?: string): CSSTransformBuilder; | ||
rotate3d(x: number, y: number, z: number, deg: number, unit?: string): CSSTransformBuilder; | ||
rotateX(num: number, unit?: string): CSSTransformBuilder; | ||
rotateY(num: number, unit?: string): CSSTransformBuilder; | ||
rotateZ(num: number, unit?: string): CSSTransformBuilder; | ||
skew(x: number, y: number, unit?: string): CSSTransformBuilder; | ||
skewX(num: number, unit?: string): CSSTransformBuilder; | ||
skewY(num: number, unit?: string): CSSTransformBuilder; | ||
perspective(num: number): CSSTransformBuilder; | ||
toString(): string; | ||
} |
@@ -30,40 +30,40 @@ "use strict"; | ||
} | ||
translate(x, y) { | ||
return this.addOperationNumbers("translate", [x, y], "px"); | ||
translate(x, y, unit = "px") { | ||
return this.addOperationNumbers("translate", [x, y], unit); | ||
} | ||
translateX(num) { | ||
return this.addOperationNumbers("translateX", [num], "px"); | ||
translateX(x, unit = "px") { | ||
return this.addOperationNumbers("translateX", [x], unit); | ||
} | ||
translateY(num) { | ||
return this.addOperationNumbers("translateY", [num], "px"); | ||
translateY(y, unit = "px") { | ||
return this.addOperationNumbers("translateY", [y], unit); | ||
} | ||
translateZ(num) { | ||
return this.addOperationNumbers("translateZ", [num], "px"); | ||
translateZ(z, unit = "px") { | ||
return this.addOperationNumbers("translateZ", [z], unit); | ||
} | ||
translate3d(x, y, z) { | ||
return this.addOperationNumbers("translate3d", [x, y, z], "px"); | ||
translate3d(x, y, z, unit = "px") { | ||
return this.addOperationNumbers("translate3d", [x, y, z], unit); | ||
} | ||
rotate(num) { | ||
return this.addOperationNumbers("rotate", [num], "deg"); | ||
rotate(num, unit = "deg") { | ||
return this.addOperationNumbers("rotate", [num], unit); | ||
} | ||
rotate3d(x, y, z, deg) { | ||
return this.addOperation("rotate3d", [x, y, z, `${deg}deg`].join(",")); | ||
rotate3d(x, y, z, deg, unit = "deg") { | ||
return this.addOperation("rotate3d", [x, y, z, `${deg}${unit}`].join(",")); | ||
} | ||
rotateX(num) { | ||
return this.addOperationNumbers("rotateX", [num], "deg"); | ||
rotateX(num, unit = "deg") { | ||
return this.addOperationNumbers("rotateX", [num], unit); | ||
} | ||
rotateY(num) { | ||
return this.addOperationNumbers("rotateY", [num], "deg"); | ||
rotateY(num, unit = "deg") { | ||
return this.addOperationNumbers("rotateY", [num], unit); | ||
} | ||
rotateZ(num) { | ||
return this.addOperationNumbers("rotateZ", [num], "deg"); | ||
rotateZ(num, unit = "deg") { | ||
return this.addOperationNumbers("rotateZ", [num], unit); | ||
} | ||
skew(x, y) { | ||
return this.addOperationNumbers("skew", [x, y], "deg"); | ||
skew(x, y, unit = "deg") { | ||
return this.addOperationNumbers("skew", [x, y], unit); | ||
} | ||
skewX(num) { | ||
return this.addOperationNumbers("skewX", [num], "deg"); | ||
skewX(num, unit = "deg") { | ||
return this.addOperationNumbers("skewX", [num], unit); | ||
} | ||
skewY(num) { | ||
return this.addOperationNumbers("skewY", [num], "deg"); | ||
skewY(num, unit = "deg") { | ||
return this.addOperationNumbers("skewY", [num], unit); | ||
} | ||
@@ -70,0 +70,0 @@ perspective(num) { |
{ | ||
"name": "css-transform-builder", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "development typescript tools.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8477