html2canvas
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -5,2 +5,11 @@ # Changelog | ||
## [1.3.1](https://github.com/niklasvh/html2canvas/compare/v1.3.0...v1.3.1) (2021-08-14) | ||
### fix | ||
* multi arg transition/animation duration (#2657) ([1b55ed5](https://github.com/niklasvh/html2canvas/commit/1b55ed5668dcbbe1c6d8d7e94736d8f2da2d31c5)), closes [#2657](https://github.com/niklasvh/html2canvas/issues/2657) | ||
# [1.3.0](https://github.com/niklasvh/html2canvas/compare/v1.2.2...v1.3.0) (2021-08-13) | ||
@@ -7,0 +16,0 @@ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.duration = void 0; | ||
var parser_1 = require("../syntax/parser"); | ||
var time_1 = require("../types/time"); | ||
exports.duration = { | ||
@@ -8,5 +10,7 @@ name: 'duration', | ||
prefix: false, | ||
type: 3 /* TYPE_VALUE */, | ||
format: 'time' | ||
type: 1 /* LIST */, | ||
parse: function (context, tokens) { | ||
return tokens.filter(parser_1.isDimensionToken).map(function (token) { return time_1.time.parse(context, token); }); | ||
} | ||
}; | ||
//# sourceMappingURL=duration.js.map |
@@ -14,6 +14,6 @@ "use strict"; | ||
if (node_parser_1.isHTMLElementNode(element)) { | ||
if (this.styles.animationDuration > 0) { | ||
if (this.styles.animationDuration.some(function (duration) { return duration > 0; })) { | ||
element.style.animationDuration = '0s'; | ||
} | ||
if (this.styles.transitionDuration > 0) { | ||
if (this.styles.transitionDuration.some(function (duration) { return duration > 0; })) { | ||
element.style.transitionDuration = '0s'; | ||
@@ -20,0 +20,0 @@ } |
@@ -31,3 +31,2 @@ import { backgroundClip } from './property-descriptors/background-clip'; | ||
import { Color } from './types/color'; | ||
import { time } from './types/time'; | ||
import { opacity } from './property-descriptors/opacity'; | ||
@@ -43,2 +42,3 @@ import { textDecorationLine } from './property-descriptors/text-decoration-line'; | ||
import { counterReset } from './property-descriptors/counter-reset'; | ||
import { duration } from './property-descriptors/duration'; | ||
import { quotes } from './property-descriptors/quotes'; | ||
@@ -50,3 +50,3 @@ import { boxShadow } from './property-descriptors/box-shadow'; | ||
export declare class CSSParsedDeclaration { | ||
animationDuration: ReturnType<typeof time.parse>; | ||
animationDuration: ReturnType<typeof duration.parse>; | ||
backgroundClip: ReturnType<typeof backgroundClip.parse>; | ||
@@ -112,3 +112,3 @@ backgroundColor: Color; | ||
transformOrigin: ReturnType<typeof transformOrigin.parse>; | ||
transitionDuration: ReturnType<typeof time.parse>; | ||
transitionDuration: ReturnType<typeof duration.parse>; | ||
visibility: ReturnType<typeof visibility.parse>; | ||
@@ -115,0 +115,0 @@ webkitTextStrokeColor: Color; |
@@ -1,2 +0,2 @@ | ||
import { IPropertyTypeValueDescriptor } from '../IPropertyDescriptor'; | ||
export declare const duration: IPropertyTypeValueDescriptor; | ||
import { IPropertyListDescriptor } from '../IPropertyDescriptor'; | ||
export declare const duration: IPropertyListDescriptor<number[]>; |
@@ -9,3 +9,3 @@ { | ||
"browser": "dist/html2canvas.js", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"author": { | ||
@@ -12,0 +12,0 @@ "name": "Niklas von Hertzen", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
2451670
26388