Fix for TextPath shadow. SHadow was only added for first character.

This commit is contained in:
David Johansson
2012-09-24 19:35:11 +02:00
parent a349fa488c
commit 2c937362b7
3 changed files with 18 additions and 4 deletions

View File

@@ -3,7 +3,7 @@
* http://www.kineticjs.com/
* Copyright 2012, Eric Rowell
* Licensed under the MIT or GPL Version 2 licenses.
* Date: Sep 23 2012
* Date: Sep 24 2012
*
* Copyright (C) 2011 - 2012 by Eric Rowell
*
@@ -6341,7 +6341,14 @@ Kinetic.TextPath.prototype = {
var glyphInfo = this.glyphInfo;
var appliedShadow = this.appliedShadow;
for(var i = 0; i < glyphInfo.length; i++) {
/*
* need to reset appliedShadow flag so that shadows
* are appropriately applied to each line of text
*/
this.appliedShadow = appliedShadow;
context.save();
var p0 = glyphInfo[i].p0;

File diff suppressed because one or more lines are too long

View File

@@ -52,7 +52,14 @@ Kinetic.TextPath.prototype = {
var glyphInfo = this.glyphInfo;
var appliedShadow = this.appliedShadow;
for(var i = 0; i < glyphInfo.length; i++) {
/*
* need to reset appliedShadow flag so that shadows
* are appropriately applied to each line of text
*/
this.appliedShadow = appliedShadow;
context.save();
var p0 = glyphInfo[i].p0;