mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 04:42:02 +08:00
typescript fixes
This commit is contained in:
parent
4d3f9b23e5
commit
1a23923aee
1
.gitignore
vendored
1
.gitignore
vendored
@ -40,6 +40,7 @@ nbproject
|
|||||||
*.sublime-project
|
*.sublime-project
|
||||||
*.sublime-workspace
|
*.sublime-workspace
|
||||||
*.md.html
|
*.md.html
|
||||||
|
.vscode
|
||||||
|
|
||||||
# Dreamweaver added files
|
# Dreamweaver added files
|
||||||
_notes
|
_notes
|
||||||
|
@ -5,6 +5,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
|
|
||||||
## Not released:
|
## Not released:
|
||||||
|
|
||||||
|
## [3.2.6][2019-05-09]
|
||||||
|
|
||||||
|
* Typescript fixes again
|
||||||
|
|
||||||
## [3.2.5][2019-04-17]
|
## [3.2.5][2019-04-17]
|
||||||
|
|
||||||
* Show a warning when `Konva.Transformer` and attaching node have different parents.
|
* Show a warning when `Konva.Transformer` and attaching node have different parents.
|
||||||
|
2
konva.js
2
konva.js
@ -8,7 +8,7 @@
|
|||||||
* Konva JavaScript Framework v3.2.5
|
* Konva JavaScript Framework v3.2.5
|
||||||
* http://konvajs.org/
|
* http://konvajs.org/
|
||||||
* Licensed under the MIT
|
* Licensed under the MIT
|
||||||
* Date: Mon Apr 22 2019
|
* Date: Thu May 09 2019
|
||||||
*
|
*
|
||||||
* Original work Copyright (C) 2011 - 2013 by Eric Rowell (KineticJS)
|
* Original work Copyright (C) 2011 - 2013 by Eric Rowell (KineticJS)
|
||||||
* Modified work Copyright (C) 2014 - present by Anton Lavrenov (Konva)
|
* Modified work Copyright (C) 2014 - present by Anton Lavrenov (Konva)
|
||||||
|
2
konva.min.js
vendored
2
konva.min.js
vendored
@ -3,7 +3,7 @@
|
|||||||
* Konva JavaScript Framework v3.2.5
|
* Konva JavaScript Framework v3.2.5
|
||||||
* http://konvajs.org/
|
* http://konvajs.org/
|
||||||
* Licensed under the MIT
|
* Licensed under the MIT
|
||||||
* Date: Mon Apr 22 2019
|
* Date: Thu May 09 2019
|
||||||
*
|
*
|
||||||
* Original work Copyright (C) 2011 - 2013 by Eric Rowell (KineticJS)
|
* Original work Copyright (C) 2011 - 2013 by Eric Rowell (KineticJS)
|
||||||
* Modified work Copyright (C) 2014 - present by Anton Lavrenov (Konva)
|
* Modified work Copyright (C) 2014 - present by Anton Lavrenov (Konva)
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
"rollup-plugin-node-resolve": "^4.0.1",
|
"rollup-plugin-node-resolve": "^4.0.1",
|
||||||
"rollup-plugin-sourcemaps": "^0.4.2",
|
"rollup-plugin-sourcemaps": "^0.4.2",
|
||||||
"rollup-plugin-typescript2": "^0.20.1",
|
"rollup-plugin-typescript2": "^0.20.1",
|
||||||
"typescript": "^3.4.3"
|
"typescript": "^3.4.5"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"canvas",
|
"canvas",
|
||||||
|
@ -13,9 +13,10 @@ import { _registerNode } from './Global';
|
|||||||
|
|
||||||
import { GetSet, Vector2d } from './types';
|
import { GetSet, Vector2d } from './types';
|
||||||
|
|
||||||
|
// hack from here https://stackoverflow.com/questions/52667959/what-is-the-purpose-of-bivariancehack-in-typescript-types/52668133#52668133
|
||||||
export type ShapeConfigHandler<TTarget> = {
|
export type ShapeConfigHandler<TTarget> = {
|
||||||
bivarianceHack(ctx: Context, shape: TTarget): void
|
bivarianceHack(ctx: Context, shape: TTarget): void;
|
||||||
}['bivarianceHack']
|
}['bivarianceHack'];
|
||||||
|
|
||||||
export interface ShapeConfig extends NodeConfig {
|
export interface ShapeConfig extends NodeConfig {
|
||||||
fill?: string;
|
fill?: string;
|
||||||
|
@ -6,7 +6,8 @@
|
|||||||
"noEmitOnError": true,
|
"noEmitOnError": true,
|
||||||
"lib": ["es2015", "dom"]
|
"lib": ["es2015", "dom"]
|
||||||
// "noImplicitAny": true
|
// "noImplicitAny": true
|
||||||
// "strict": true
|
// "strict": true,
|
||||||
|
// "strictFunctionTypes": true
|
||||||
},
|
},
|
||||||
"include": ["./src/*.ts"]
|
"include": ["./src/*.ts"]
|
||||||
// "include": ["./types/*.ts"]
|
// "include": ["./types/*.ts"]
|
||||||
|
Loading…
Reference in New Issue
Block a user