mirror of
https://github.com/konvajs/konva.git
synced 2026-01-23 21:34:50 +08:00
fix: fix parsing rgba error
This commit is contained in:
@@ -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 +
|
||||
|
||||
Reference in New Issue
Block a user