mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 15:53:42 +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-workspace
|
||||
*.md.html
|
||||
.vscode
|
||||
|
||||
# Dreamweaver added files
|
||||
_notes
|
||||
|
@ -5,6 +5,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
## Not released:
|
||||
|
||||
## [3.2.6][2019-05-09]
|
||||
|
||||
* Typescript fixes again
|
||||
|
||||
## [3.2.5][2019-04-17]
|
||||
|
||||
* 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
|
||||
* http://konvajs.org/
|
||||
* Licensed under the MIT
|
||||
* Date: Mon Apr 22 2019
|
||||
* Date: Thu May 09 2019
|
||||
*
|
||||
* Original work Copyright (C) 2011 - 2013 by Eric Rowell (KineticJS)
|
||||
* 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
|
||||
* http://konvajs.org/
|
||||
* Licensed under the MIT
|
||||
* Date: Mon Apr 22 2019
|
||||
* Date: Thu May 09 2019
|
||||
*
|
||||
* Original work Copyright (C) 2011 - 2013 by Eric Rowell (KineticJS)
|
||||
* Modified work Copyright (C) 2014 - present by Anton Lavrenov (Konva)
|
||||
|
@ -48,7 +48,7 @@
|
||||
"rollup-plugin-node-resolve": "^4.0.1",
|
||||
"rollup-plugin-sourcemaps": "^0.4.2",
|
||||
"rollup-plugin-typescript2": "^0.20.1",
|
||||
"typescript": "^3.4.3"
|
||||
"typescript": "^3.4.5"
|
||||
},
|
||||
"keywords": [
|
||||
"canvas",
|
||||
|
@ -13,9 +13,10 @@ import { _registerNode } from './Global';
|
||||
|
||||
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> = {
|
||||
bivarianceHack(ctx: Context, shape: TTarget): void
|
||||
}['bivarianceHack']
|
||||
bivarianceHack(ctx: Context, shape: TTarget): void;
|
||||
}['bivarianceHack'];
|
||||
|
||||
export interface ShapeConfig extends NodeConfig {
|
||||
fill?: string;
|
||||
|
@ -6,7 +6,8 @@
|
||||
"noEmitOnError": true,
|
||||
"lib": ["es2015", "dom"]
|
||||
// "noImplicitAny": true
|
||||
// "strict": true
|
||||
// "strict": true,
|
||||
// "strictFunctionTypes": true
|
||||
},
|
||||
"include": ["./src/*.ts"]
|
||||
// "include": ["./types/*.ts"]
|
||||
|
Loading…
Reference in New Issue
Block a user