mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Fix formatting
This commit is contained in:
parent
48943d8193
commit
786b4b3e69
@ -14,7 +14,7 @@ const TEXT_SHADOW_PROPERTY = /((rgba|rgb)\([^\)]+\)(\s-?\d+px){3})/g;
|
|||||||
const TEXT_SHADOW_VALUES = /(-?\d+px)|(#.+)|(rgb\(.+\))|(rgba\(.+\))/g;
|
const TEXT_SHADOW_VALUES = /(-?\d+px)|(#.+)|(rgb\(.+\))|(rgba\(.+\))/g;
|
||||||
|
|
||||||
export const parseTextShadow = (textShadow: ?string): Array<TextShadow> | null => {
|
export const parseTextShadow = (textShadow: ?string): Array<TextShadow> | null => {
|
||||||
if (textShadow === 'none' || typeof(textShadow) !== 'string') {
|
if (textShadow === 'none' || typeof textShadow !== 'string') {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ const parseTransformOrigin = (origin: string): TransformOrigin => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const parseTransformMatrix = (transform: ?string): Matrix | null => {
|
const parseTransformMatrix = (transform: ?string): Matrix | null => {
|
||||||
if (transform === 'none' || typeof(transform) !== 'string') {
|
if (transform === 'none' || typeof transform !== 'string') {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user