mirror of
https://github.com/konvajs/konva.git
synced 2025-10-15 12:34:52 +08:00
fix some docs, partial cache fixes
This commit is contained in:
@@ -452,6 +452,12 @@ export class Context {
|
||||
});
|
||||
};
|
||||
}
|
||||
_applyGlobalCompositeOperation(node) {
|
||||
var globalCompositeOperation = node.getGlobalCompositeOperation();
|
||||
if (globalCompositeOperation !== 'source-over') {
|
||||
this.setAttr('globalCompositeOperation', globalCompositeOperation);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
CONTEXT_PROPERTIES.forEach(function(prop) {
|
||||
@@ -628,12 +634,6 @@ export class SceneContext extends Context {
|
||||
this.setAttr('shadowOffsetX', offset.x * scaleX);
|
||||
this.setAttr('shadowOffsetY', offset.y * scaleY);
|
||||
}
|
||||
_applyGlobalCompositeOperation(shape) {
|
||||
var globalCompositeOperation = shape.getGlobalCompositeOperation();
|
||||
if (globalCompositeOperation !== 'source-over') {
|
||||
this.setAttr('globalCompositeOperation', globalCompositeOperation);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export class HitContext extends Context {
|
||||
|
Reference in New Issue
Block a user