mirror of
https://github.com/konvajs/konva.git
synced 2026-01-22 21:02:26 +08:00
fix: fix parsing rgba error
This commit is contained in:
@@ -1229,6 +1229,11 @@ describe('Shape', function () {
|
||||
// reset shadow
|
||||
circle.shadowColor(null);
|
||||
assert.equal(circle.getShadowRGBA(), undefined);
|
||||
|
||||
// illegal color
|
||||
circle.shadowColor('#0000f');
|
||||
assert.equal(circle.hasShadow(), true);
|
||||
assert.equal(circle.getShadowRGBA(), undefined);
|
||||
});
|
||||
|
||||
it('scale should also effect shadow offset', function () {
|
||||
|
||||
Reference in New Issue
Block a user