mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
Merge branch 'master' of github.com:konvajs/konva
This commit is contained in:
commit
12fc838709
@ -141,8 +141,7 @@ export class Context {
|
|||||||
* @param {Konva.Shape} shape
|
* @param {Konva.Shape} shape
|
||||||
*/
|
*/
|
||||||
fillStrokeShape(shape) {
|
fillStrokeShape(shape) {
|
||||||
var fillEnabled = shape.getFillEnabled();
|
if (shape.getFillEnabled()) {
|
||||||
if (fillEnabled) {
|
|
||||||
this._fill(shape);
|
this._fill(shape);
|
||||||
}
|
}
|
||||||
if (shape.getStrokeEnabled()) {
|
if (shape.getStrokeEnabled()) {
|
||||||
|
@ -93,7 +93,7 @@ export const DD = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
delete DD.node;
|
DD.node = null;
|
||||||
|
|
||||||
if (layer || node instanceof getGlobalKonva().Stage) {
|
if (layer || node instanceof getGlobalKonva().Stage) {
|
||||||
(layer || node).draw();
|
(layer || node).draw();
|
||||||
|
@ -182,7 +182,7 @@ export abstract class Node {
|
|||||||
_clearSelfAndDescendantCache(attr?) {
|
_clearSelfAndDescendantCache(attr?) {
|
||||||
this._clearCache(attr);
|
this._clearCache(attr);
|
||||||
|
|
||||||
// skip clearing of node is cached with canvas
|
// skip clearing if node is cached with canvas
|
||||||
if (this._cache.canvas) {
|
if (this._cache.canvas) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user