mirror of
https://github.com/konvajs/konva.git
synced 2025-11-18 17:17:49 +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:
@@ -1268,7 +1268,10 @@ Test.prototype.tests = {
|
||||
lineCap: 'round',
|
||||
lineJoin: 'round',
|
||||
draggable: true,
|
||||
dashArray: [30, 10, 0, 10, 10, 20]
|
||||
dashArray: [30, 10, 0, 10, 10, 20],
|
||||
shadowColor: '#aaa',
|
||||
shadowBlur: 10,
|
||||
shadowOffset: [20, 20],
|
||||
});
|
||||
|
||||
layer.add(line);
|
||||
@@ -1423,10 +1426,7 @@ Test.prototype.tests = {
|
||||
lineJoin: "round",
|
||||
shadowColor: '#aaa',
|
||||
shadowBlur: 10,
|
||||
shadowOffset: {
|
||||
x: 20,
|
||||
y: 20
|
||||
},
|
||||
shadowOffset: [20, 20],
|
||||
draggable: true
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user