mirror of
https://github.com/konvajs/konva.git
synced 2025-12-21 19:27:08 +08:00
improved shadow logic such that it first attempts to apply shadows to a shape's fill if it's defined, otherwise it will attempt to apply the shadow to the stroke
This commit is contained in:
@@ -172,12 +172,15 @@ Kinetic.Node.prototype = {
|
||||
case 'centerOffset':
|
||||
this._setPointAttr(key, val);
|
||||
break;
|
||||
case 'shadowOffset':
|
||||
this._setPointAttr(key, val);
|
||||
break;
|
||||
case 'scale':
|
||||
this._setPointAttr(key, val);
|
||||
break;
|
||||
case 'points':
|
||||
/*
|
||||
* if points contains an array of object, just set
|
||||
* if points contains an array of objects, just set
|
||||
* the attr normally
|
||||
*/
|
||||
if(Kinetic.GlobalObject._isObject(val[0])) {
|
||||
|
||||
Reference in New Issue
Block a user