mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Add missing Flow tags
This commit is contained in:
parent
4f48bc9b0c
commit
7a3bad2fcb
@ -1,9 +1,16 @@
|
|||||||
{
|
{
|
||||||
"parser": "babel-eslint",
|
"parser": "babel-eslint",
|
||||||
"plugins": [
|
"plugins": [
|
||||||
|
"flowtype",
|
||||||
"prettier"
|
"prettier"
|
||||||
],
|
],
|
||||||
"rules": {
|
"rules": {
|
||||||
|
"flowtype/boolean-style": [
|
||||||
|
2,
|
||||||
|
"boolean"
|
||||||
|
],
|
||||||
|
"flowtype/no-weak-types": 2,
|
||||||
|
"flowtype/delimiter-dangle": 2,
|
||||||
"prettier/prettier": ["error", {
|
"prettier/prettier": ["error", {
|
||||||
"singleQuote": true,
|
"singleQuote": true,
|
||||||
"bracketSpacing": false,
|
"bracketSpacing": false,
|
||||||
|
@ -28,7 +28,8 @@
|
|||||||
"babel-preset-flow": "6.23.0",
|
"babel-preset-flow": "6.23.0",
|
||||||
"base64-arraybuffer": "0.1.5",
|
"base64-arraybuffer": "0.1.5",
|
||||||
"eslint": "4.2.0",
|
"eslint": "4.2.0",
|
||||||
"eslint-plugin-prettier": "^2.1.2",
|
"eslint-plugin-flowtype": "2.35.0",
|
||||||
|
"eslint-plugin-prettier": "2.1.2",
|
||||||
"flow-bin": "0.50.0",
|
"flow-bin": "0.50.0",
|
||||||
"prettier": "1.5.3",
|
"prettier": "1.5.3",
|
||||||
"rimraf": "2.6.1",
|
"rimraf": "2.6.1",
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* @flow */
|
||||||
|
'use strict';
|
||||||
import Vector from './Vector';
|
import Vector from './Vector';
|
||||||
|
|
||||||
export default class BezierCurve {
|
export default class BezierCurve {
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
/* @flow */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
const testRangeBounds = document => {
|
const testRangeBounds = document => {
|
||||||
const TEST_HEIGHT = 123;
|
const TEST_HEIGHT = 123;
|
||||||
|
|
||||||
@ -23,6 +26,7 @@ const testRangeBounds = document => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const FEATURES = {
|
const FEATURES = {
|
||||||
|
// $FlowFixMe - get/set properties not yet supported
|
||||||
get SUPPORT_RANGE_BOUNDS() {
|
get SUPPORT_RANGE_BOUNDS() {
|
||||||
'use strict';
|
'use strict';
|
||||||
const value = testRangeBounds(document);
|
const value = testRangeBounds(document);
|
||||||
|
@ -8,6 +8,7 @@ export default class Logger {
|
|||||||
this.start = Date.now();
|
this.start = Date.now();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// eslint-disable-next-line flowtype/no-weak-types
|
||||||
log(...args: any) {
|
log(...args: any) {
|
||||||
Function.prototype.bind
|
Function.prototype.bind
|
||||||
.call(window.console.log, window.console)
|
.call(window.console.log, window.console)
|
||||||
|
@ -10,7 +10,6 @@ import Color from './Color';
|
|||||||
export type Options = {
|
export type Options = {
|
||||||
async: boolean,
|
async: boolean,
|
||||||
imageTimeout: number,
|
imageTimeout: number,
|
||||||
renderer: Function,
|
|
||||||
proxy: string,
|
proxy: string,
|
||||||
canvas: HTMLCanvasElement,
|
canvas: HTMLCanvasElement,
|
||||||
allowTaint: true
|
allowTaint: true
|
||||||
|
Loading…
Reference in New Issue
Block a user