mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
Fix the calls to getGlobalKonva() inside the current code base
Following the recent migration to TypeScript, getGlobalKonva() returns undefined (as glob.Konva was not set) when using konva.js or konva.min.js inside a web application running in a browser. This change works around the situation by explicitly setting the Konva property on the glob object.
This commit is contained in:
parent
d960cf5c67
commit
0be8e779bc
@ -50,4 +50,6 @@ Konva.angleDeg = true;
|
||||
*/
|
||||
Konva.showWarnings = true;
|
||||
|
||||
Konva.glob.Konva = Konva;
|
||||
|
||||
export default KonvaInternals;
|
||||
|
Loading…
Reference in New Issue
Block a user