Comparing version 8.0.0 to 8.0.1
@@ -28,3 +28,3 @@ # Change Log | ||
- All updates on canvas will do automatic redraw with `layer.batchDraw()`. This features is configurable with `Konva.autoDrawEnbaled` property. | ||
- All updates on canvas will do automatic redraw with `layer.batchDraw()`. This features is configurable with `Konva.autoDrawEnabled` property. Konva will automatically redraw layer when you change any property, remove or add nodes, do caching. So you don't need to call `layer.draw()` or `layer.batchDraw()` in most of the cases. | ||
- New method `layer.getNativeCanvasElement()` | ||
@@ -31,0 +31,0 @@ - new `flipEnabled` property for `Konva.Transformer` |
@@ -16,3 +16,3 @@ var PI_OVER_180 = Math.PI / 180; | ||
_global: glob, | ||
version: '8.0.0', | ||
version: '8.0.1', | ||
isBrowser: detectBrowser(), | ||
@@ -19,0 +19,0 @@ isUnminified: /param/.test(function (param) { }.toString()), |
@@ -18,3 +18,3 @@ import { Util, Transform } from './Util.js'; | ||
'transformsEnabledChange.konva', | ||
].join(SPACE), SCALE_CHANGE_STR = ['scaleXChange.konva', 'scaleYChange.konva'].join(SPACE); | ||
].join(SPACE); | ||
let idCounter = 1; | ||
@@ -21,0 +21,0 @@ export class Node { |
{ | ||
"name": "konva", | ||
"version": "8.0.0", | ||
"version": "8.0.1", | ||
"author": "Anton Lavrenov", | ||
@@ -9,4 +9,2 @@ "files": [ | ||
"konva.min.js", | ||
"konva.d.ts", | ||
"types", | ||
"lib" | ||
@@ -17,3 +15,3 @@ ], | ||
"browser": "./lib/index.js", | ||
"typings": "./types/index-types.d.ts", | ||
"typings": "./lib/index-types.d.ts", | ||
"scripts": { | ||
@@ -20,0 +18,0 @@ "start": "npm run test:watch", |
@@ -24,3 +24,3 @@ <p align="center"> | ||
```html | ||
<script src="https://unpkg.com/konva@7.2.5/konva.min.js"></script> | ||
<script src="https://unpkg.com/konva@8/konva.min.js"></script> | ||
<div id="container"></div> | ||
@@ -51,4 +51,2 @@ <script> | ||
layer.draw(); | ||
// add cursor styling | ||
@@ -77,6 +75,6 @@ box.on('mouseover', function () { | ||
```html | ||
<script src="https://unpkg.com/konva@7.2.5/konva.min.js"></script> | ||
<script src="https://unpkg.com/konva@8/konva.min.js"></script> | ||
``` | ||
You can also use a CDN: [https://unpkg.com/konva@7.2.5/konva.min.js](https://unpkg.com/konva@7.2.5/konva.min.js) | ||
You can also use a CDN: [https://unpkg.com/konva@8/konva.min.js](https://unpkg.com/konva@8/konva.min.js) | ||
@@ -90,5 +88,2 @@ ### 2 Install with npm: | ||
```javascript | ||
// The old way (e.g. a CommonJS-style import) | ||
var Konva = require('konva'); | ||
// The modern way (e.g. an ES6-style import for webpack, parcel) | ||
@@ -100,3 +95,3 @@ import Konva from 'konva'; | ||
Add DOM definitions into your `tsconfig.json` and set `esModuleInterop` to `true`: | ||
Add DOM definitions into your `tsconfig.json`: | ||
@@ -106,3 +101,2 @@ ``` | ||
"compilerOptions": { | ||
"esModuleInterop": true, | ||
"lib": [ | ||
@@ -116,8 +110,2 @@ "es6", | ||
Then use it: | ||
```javascript | ||
import Konva from 'konva'; | ||
``` | ||
### 3 Minimal bundle | ||
@@ -124,0 +112,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1311728
197