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:
Eric Rowell
2012-05-09 19:15:49 -07:00
parent 16c251bb97
commit 2993191fe6
5 changed files with 53 additions and 27 deletions

View File

@@ -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
});