mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
101c32ed71 | |||
ddffaecf6d | |||
fd22a01a3c | |||
ed57781594 | |||
eeda86bd5e |
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@ -101,22 +101,22 @@ jobs:
|
|||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
name: OSX Safari Stable
|
name: OSX Safari Stable
|
||||||
targetBrowser: Safari_Stable
|
targetBrowser: Safari_Stable
|
||||||
- os: macos-latest
|
- os: macos-10.15
|
||||||
name: iOS Simulator Safari 12
|
name: iOS Simulator Safari 12
|
||||||
targetBrowser: Safari_IOS_12
|
targetBrowser: Safari_IOS_12
|
||||||
xcode: /Applications/Xcode_10.3.app
|
xcode: /Applications/Xcode_10.3.app
|
||||||
- os: macos-latest
|
- os: macos-10.15
|
||||||
name: iOS Simulator Safari 13
|
name: iOS Simulator Safari 13
|
||||||
targetBrowser: Safari_IOS_13
|
targetBrowser: Safari_IOS_13
|
||||||
xcode: /Applications/Xcode_11.6_beta.app
|
xcode: /Applications/Xcode_11.7.app
|
||||||
- os: macos-latest
|
- os: macos-10.15
|
||||||
name: iOS Simulator Safari 14
|
name: iOS Simulator Safari 14
|
||||||
targetBrowser: Safari_IOS_14
|
targetBrowser: Safari_IOS_14
|
||||||
xcode: /Applications/Xcode_12_beta.app
|
xcode: /Applications/Xcode_12.4.app
|
||||||
- os: macos-11
|
- os: macos-11
|
||||||
name: iOS Simulator Safari 15
|
name: iOS Simulator Safari 15
|
||||||
targetBrowser: Safari_IOS_15
|
targetBrowser: Safari_IOS_15
|
||||||
xcode: /Applications/Xcode_13.0.app
|
xcode: /Applications/Xcode_13.2.app
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
name: Windows Internet Explorer 9 (Emulated)
|
name: Windows Internet Explorer 9 (Emulated)
|
||||||
targetBrowser: IE_9
|
targetBrowser: IE_9
|
||||||
|
19
CHANGELOG.md
19
CHANGELOG.md
@ -2,6 +2,20 @@
|
|||||||
|
|
||||||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.3.3](https://github.com/niklasvh/html2canvas/compare/v1.3.2...v1.3.3) (2021-11-23)
|
||||||
|
|
||||||
|
|
||||||
|
### ci
|
||||||
|
|
||||||
|
* fix macos action runners (#2757) ([ed57781](https://github.com/niklasvh/html2canvas/commit/ed577815949b6a565df54f2101cf6f0fb731c290)), closes [#2757](https://github.com/niklasvh/html2canvas/issues/2757)
|
||||||
|
|
||||||
|
### fix
|
||||||
|
|
||||||
|
* "offsets" text when font is big ([fd22a01](https://github.com/niklasvh/html2canvas/commit/fd22a01a3c9e39293f47caaed0c0e13d2dc8170c))
|
||||||
|
* const enums (#2651) ([eeda86b](https://github.com/niklasvh/html2canvas/commit/eeda86bd5e81fb4e97675fe9bee3d4d15899997f)), closes [#2651](https://github.com/niklasvh/html2canvas/issues/2651)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [1.3.2](https://github.com/niklasvh/html2canvas/compare/v1.3.1...v1.3.2) (2021-08-15)
|
## [1.3.2](https://github.com/niklasvh/html2canvas/compare/v1.3.1...v1.3.2) (2021-08-15)
|
||||||
|
|
||||||
|
|
||||||
@ -211,9 +225,14 @@ All notable changes to this project will be documented in this file. See [standa
|
|||||||
|
|
||||||
* update www deps (#2525) ([2a013e2](https://github.com/niklasvh/html2canvas/commit/2a013e20c814b7dbaea98f54f0bde8f553eb79a2)), closes [#2525](https://github.com/niklasvh/html2canvas/issues/2525)
|
* update www deps (#2525) ([2a013e2](https://github.com/niklasvh/html2canvas/commit/2a013e20c814b7dbaea98f54f0bde8f553eb79a2)), closes [#2525](https://github.com/niklasvh/html2canvas/issues/2525)
|
||||||
|
|
||||||
|
### feat
|
||||||
|
|
||||||
|
* add support for border-style dashed, dotted, double (#2531) ([72cd528](https://github.com/niklasvh/html2canvas/commit/72cd5284296e4cdb3fe88f2982ec7528604b6618))
|
||||||
|
|
||||||
### fix
|
### fix
|
||||||
|
|
||||||
* opacity with overflow hidden (#2450) ([82b7da5](https://github.com/niklasvh/html2canvas/commit/82b7da558c342e7f53d298bb1d843a5db86c3b21)), closes [#2450](https://github.com/niklasvh/html2canvas/issues/2450)
|
* opacity with overflow hidden (#2450) ([82b7da5](https://github.com/niklasvh/html2canvas/commit/82b7da558c342e7f53d298bb1d843a5db86c3b21)), closes [#2450](https://github.com/niklasvh/html2canvas/issues/2450)
|
||||||
|
* top right border radius (#2522) ([ba17267](https://github.com/niklasvh/html2canvas/commit/ba172678f07f962e9f54b398df087e86217d7a13))
|
||||||
|
|
||||||
### test
|
### test
|
||||||
|
|
||||||
|
@ -34,19 +34,19 @@ module.exports = function(config) {
|
|||||||
base: 'MobileSafari',
|
base: 'MobileSafari',
|
||||||
name: 'iPhone 8',
|
name: 'iPhone 8',
|
||||||
platform: 'iOS',
|
platform: 'iOS',
|
||||||
sdk: '13.6'
|
sdk: '13.7'
|
||||||
},
|
},
|
||||||
Safari_IOS_14: {
|
Safari_IOS_14: {
|
||||||
base: 'MobileSafari',
|
base: 'MobileSafari',
|
||||||
name: 'iPhone 8',
|
name: 'iPhone 8',
|
||||||
platform: 'iOS',
|
platform: 'iOS',
|
||||||
sdk: '14.0'
|
sdk: '14.4'
|
||||||
},
|
},
|
||||||
Safari_IOS_15: {
|
Safari_IOS_15: {
|
||||||
base: 'MobileSafari',
|
base: 'MobileSafari',
|
||||||
name: 'iPhone 8',
|
name: 'iPhone 8',
|
||||||
platform: 'iOS',
|
platform: 'iOS',
|
||||||
sdk: '15.0'
|
sdk: '15.2'
|
||||||
},
|
},
|
||||||
SauceLabs_IE9: {
|
SauceLabs_IE9: {
|
||||||
base: 'SauceLabs',
|
base: 'SauceLabs',
|
||||||
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "html2canvas",
|
"name": "html2canvas",
|
||||||
"version": "1.3.2",
|
"version": "1.3.3",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
"module": "dist/html2canvas.esm.js",
|
"module": "dist/html2canvas.esm.js",
|
||||||
"typings": "dist/types/index.d.ts",
|
"typings": "dist/types/index.d.ts",
|
||||||
"browser": "dist/html2canvas.js",
|
"browser": "dist/html2canvas.js",
|
||||||
"version": "1.3.2",
|
"version": "1.3.3",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Niklas von Hertzen",
|
"name": "Niklas von Hertzen",
|
||||||
"email": "niklasvh@gmail.com",
|
"email": "niklasvh@gmail.com",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import {IPropertyListDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
|
import {IPropertyListDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
|
||||||
import {CSSValue, isIdentToken} from '../syntax/parser';
|
import {CSSValue, isIdentToken} from '../syntax/parser';
|
||||||
import {Context} from '../../core/context';
|
import {Context} from '../../core/context';
|
||||||
export enum BACKGROUND_CLIP {
|
export const enum BACKGROUND_CLIP {
|
||||||
BORDER_BOX = 0,
|
BORDER_BOX = 0,
|
||||||
PADDING_BOX = 1,
|
PADDING_BOX = 1,
|
||||||
CONTENT_BOX = 2
|
CONTENT_BOX = 2
|
||||||
|
@ -3,7 +3,7 @@ import {CSSValue, isIdentToken, parseFunctionArgs} from '../syntax/parser';
|
|||||||
import {Context} from '../../core/context';
|
import {Context} from '../../core/context';
|
||||||
export type BackgroundRepeat = BACKGROUND_REPEAT[];
|
export type BackgroundRepeat = BACKGROUND_REPEAT[];
|
||||||
|
|
||||||
export enum BACKGROUND_REPEAT {
|
export const enum BACKGROUND_REPEAT {
|
||||||
REPEAT = 0,
|
REPEAT = 0,
|
||||||
NO_REPEAT = 1,
|
NO_REPEAT = 1,
|
||||||
REPEAT_X = 2,
|
REPEAT_X = 2,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
|
import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
|
||||||
import {Context} from '../../core/context';
|
import {Context} from '../../core/context';
|
||||||
export enum BORDER_STYLE {
|
export const enum BORDER_STYLE {
|
||||||
NONE = 0,
|
NONE = 0,
|
||||||
SOLID = 1,
|
SOLID = 1,
|
||||||
DASHED = 2,
|
DASHED = 2,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
|
import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
|
||||||
import {Context} from '../../core/context';
|
import {Context} from '../../core/context';
|
||||||
export enum FLOAT {
|
export const enum FLOAT {
|
||||||
NONE = 0,
|
NONE = 0,
|
||||||
LEFT = 1,
|
LEFT = 1,
|
||||||
RIGHT = 2,
|
RIGHT = 2,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
|
import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
|
||||||
import {Context} from '../../core/context';
|
import {Context} from '../../core/context';
|
||||||
export enum FONT_STYLE {
|
export const enum FONT_STYLE {
|
||||||
NORMAL = 'normal',
|
NORMAL = 'normal',
|
||||||
ITALIC = 'italic',
|
ITALIC = 'italic',
|
||||||
OBLIQUE = 'oblique'
|
OBLIQUE = 'oblique'
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
|
import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
|
||||||
import {Context} from '../../core/context';
|
import {Context} from '../../core/context';
|
||||||
export enum LIST_STYLE_POSITION {
|
export const enum LIST_STYLE_POSITION {
|
||||||
INSIDE = 0,
|
INSIDE = 0,
|
||||||
OUTSIDE = 1
|
OUTSIDE = 1
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
|
import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
|
||||||
import {Context} from '../../core/context';
|
import {Context} from '../../core/context';
|
||||||
export enum LIST_STYLE_TYPE {
|
export const enum LIST_STYLE_TYPE {
|
||||||
NONE = -1,
|
NONE = -1,
|
||||||
DISC = 0,
|
DISC = 0,
|
||||||
CIRCLE = 1,
|
CIRCLE = 1,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import {IPropertyListDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
|
import {IPropertyListDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
|
||||||
import {CSSValue, isIdentToken} from '../syntax/parser';
|
import {CSSValue, isIdentToken} from '../syntax/parser';
|
||||||
import {Context} from '../../core/context';
|
import {Context} from '../../core/context';
|
||||||
export enum OVERFLOW {
|
export const enum OVERFLOW {
|
||||||
VISIBLE = 0,
|
VISIBLE = 0,
|
||||||
HIDDEN = 1,
|
HIDDEN = 1,
|
||||||
SCROLL = 2,
|
SCROLL = 2,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import {IPropertyListDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
|
import {IPropertyListDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
|
||||||
import {CSSValue, isIdentToken} from '../syntax/parser';
|
import {CSSValue, isIdentToken} from '../syntax/parser';
|
||||||
import {Context} from '../../core/context';
|
import {Context} from '../../core/context';
|
||||||
export enum PAINT_ORDER_LAYER {
|
export const enum PAINT_ORDER_LAYER {
|
||||||
FILL,
|
FILL,
|
||||||
STROKE,
|
STROKE,
|
||||||
MARKERS
|
MARKERS
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
|
import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
|
||||||
import {Context} from '../../core/context';
|
import {Context} from '../../core/context';
|
||||||
export enum POSITION {
|
export const enum POSITION {
|
||||||
STATIC = 0,
|
STATIC = 0,
|
||||||
RELATIVE = 1,
|
RELATIVE = 1,
|
||||||
ABSOLUTE = 2,
|
ABSOLUTE = 2,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
|
import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
|
||||||
import {Context} from '../../core/context';
|
import {Context} from '../../core/context';
|
||||||
export enum TEXT_ALIGN {
|
export const enum TEXT_ALIGN {
|
||||||
LEFT = 0,
|
LEFT = 0,
|
||||||
CENTER = 1,
|
CENTER = 1,
|
||||||
RIGHT = 2
|
RIGHT = 2
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
|
import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
|
||||||
import {Context} from '../../core/context';
|
import {Context} from '../../core/context';
|
||||||
export enum TEXT_TRANSFORM {
|
export const enum TEXT_TRANSFORM {
|
||||||
NONE = 0,
|
NONE = 0,
|
||||||
LOWERCASE = 1,
|
LOWERCASE = 1,
|
||||||
UPPERCASE = 2,
|
UPPERCASE = 2,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
|
import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
|
||||||
import {Context} from '../../core/context';
|
import {Context} from '../../core/context';
|
||||||
export enum VISIBILITY {
|
export const enum VISIBILITY {
|
||||||
VISIBLE = 0,
|
VISIBLE = 0,
|
||||||
HIDDEN = 1,
|
HIDDEN = 1,
|
||||||
COLLAPSE = 2
|
COLLAPSE = 2
|
||||||
|
@ -10,7 +10,7 @@ import {radialGradient} from './functions/radial-gradient';
|
|||||||
import {prefixRadialGradient} from './functions/-prefix-radial-gradient';
|
import {prefixRadialGradient} from './functions/-prefix-radial-gradient';
|
||||||
import {Context} from '../../core/context';
|
import {Context} from '../../core/context';
|
||||||
|
|
||||||
export enum CSSImageType {
|
export const enum CSSImageType {
|
||||||
URL,
|
URL,
|
||||||
LINEAR_GRADIENT,
|
LINEAR_GRADIENT,
|
||||||
RADIAL_GRADIENT
|
RADIAL_GRADIENT
|
||||||
@ -56,12 +56,12 @@ export interface CSSLinearGradientImage extends ICSSGradientImage {
|
|||||||
type: CSSImageType.LINEAR_GRADIENT;
|
type: CSSImageType.LINEAR_GRADIENT;
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum CSSRadialShape {
|
export const enum CSSRadialShape {
|
||||||
CIRCLE,
|
CIRCLE,
|
||||||
ELLIPSE
|
ELLIPSE
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum CSSRadialExtent {
|
export const enum CSSRadialExtent {
|
||||||
CLOSEST_SIDE,
|
CLOSEST_SIDE,
|
||||||
FARTHEST_SIDE,
|
FARTHEST_SIDE,
|
||||||
CLOSEST_CORNER,
|
CLOSEST_CORNER,
|
||||||
|
@ -27,6 +27,7 @@ export class FontMetrics {
|
|||||||
container.style.fontSize = fontSize;
|
container.style.fontSize = fontSize;
|
||||||
container.style.margin = '0';
|
container.style.margin = '0';
|
||||||
container.style.padding = '0';
|
container.style.padding = '0';
|
||||||
|
container.style.whiteSpace = 'nowrap';
|
||||||
|
|
||||||
body.appendChild(container);
|
body.appendChild(container);
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import {BezierCurve} from './bezier-curve';
|
import {BezierCurve} from './bezier-curve';
|
||||||
import {Vector} from './vector';
|
import {Vector} from './vector';
|
||||||
export enum PathType {
|
export const enum PathType {
|
||||||
VECTOR = 0,
|
VECTOR = 0,
|
||||||
BEZIER_CURVE = 1
|
BEZIER_CURVE = 1
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user