Merge branch 'master' of github.com:konvajs/konva into master

This commit is contained in:
Anton Lavrenov
2022-09-21 11:00:28 -05:00
2 changed files with 10 additions and 2 deletions

View File

@@ -324,8 +324,11 @@ export class Shape<
return this._getCache(SHADOW_RGBA, this._getShadowRGBA);
}
_getShadowRGBA() {
if (this.hasShadow()) {
var rgba = Util.colorToRGBA(this.shadowColor());
if (!this.hasShadow()) {
return;
}
var rgba = Util.colorToRGBA(this.shadowColor());
if (rgba) {
return (
'rgba(' +
rgba.r +