Comparing version 8.0.1 to 8.0.2
@@ -6,2 +6,11 @@ # Change Log | ||
## 8.0.1 | ||
- Fix some transform caches | ||
- Fix cache with hidden shapes | ||
## 8.0.1 | ||
- Some typescript fixes | ||
## 8.0.0 | ||
@@ -8,0 +17,0 @@ |
@@ -56,5 +56,5 @@ import { Factory } from './Factory.js'; | ||
this._validateAdd(child); | ||
child._clearCaches(); | ||
child.index = this.getChildren().length; | ||
child.parent = this; | ||
child._clearCaches(); | ||
this.getChildren().push(child); | ||
@@ -61,0 +61,0 @@ this._fire('add', { |
@@ -16,3 +16,3 @@ var PI_OVER_180 = Math.PI / 180; | ||
_global: glob, | ||
version: '8.0.1', | ||
version: '8.0.2', | ||
isBrowser: detectBrowser(), | ||
@@ -19,0 +19,0 @@ isUnminified: /param/.test(function (param) { }.toString()), |
@@ -163,3 +163,4 @@ import { Util } from './Util.js'; | ||
_setSmoothEnabled() { | ||
this.getContext()._context.imageSmoothingEnabled = this.imageSmoothingEnabled(); | ||
this.getContext()._context.imageSmoothingEnabled = | ||
this.imageSmoothingEnabled(); | ||
} | ||
@@ -166,0 +167,0 @@ getWidth() { |
@@ -294,6 +294,5 @@ import { Konva } from './Global.js'; | ||
var layer = this.getLayer(), canvas = can || layer.getCanvas(), context = canvas.getContext(), cachedCanvas = this._getCanvasCache(), drawFunc = this.getSceneFunc(), hasShadow = this.hasShadow(), stage, bufferCanvas, bufferContext; | ||
var caching = canvas.isCache; | ||
var skipBuffer = canvas.isCache; | ||
var cachingSelf = top === this; | ||
if (!this.isVisible() && !caching) { | ||
if (!this.isVisible() && !cachingSelf) { | ||
return this; | ||
@@ -300,0 +299,0 @@ } |
{ | ||
"name": "konva", | ||
"version": "8.0.1", | ||
"version": "8.0.2", | ||
"author": "Anton Lavrenov", | ||
@@ -5,0 +5,0 @@ "files": [ |
@@ -126,7 +126,6 @@ <p align="center"> | ||
We are using [node-canvas](https://github.com/Automattic/node-canvas) to create canvas element. | ||
Please check installation instructions for it. Then just run | ||
In order to run `konva` in nodejs environment you also need to install `canvas` package manually. Konva will use it for 2d canvas API. | ||
```bash | ||
npm install konva-node | ||
npm install konva canvas | ||
``` | ||
@@ -136,8 +135,2 @@ | ||
```javascript | ||
const Konva = require('konva-node'); | ||
``` | ||
See file `konva-node/demo.js` file in this repo as a sample. | ||
# Backers | ||
@@ -144,0 +137,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1311652
190