mirror of
https://github.com/konvajs/konva.git
synced 2026-01-07 01:54:35 +08:00
Fix for TextPath shadow. SHadow was only added for first character.
This commit is contained in:
9
dist/kinetic-core.js
vendored
9
dist/kinetic-core.js
vendored
@@ -3,7 +3,7 @@
|
|||||||
* http://www.kineticjs.com/
|
* http://www.kineticjs.com/
|
||||||
* Copyright 2012, Eric Rowell
|
* Copyright 2012, Eric Rowell
|
||||||
* Licensed under the MIT or GPL Version 2 licenses.
|
* Licensed under the MIT or GPL Version 2 licenses.
|
||||||
* Date: Sep 23 2012
|
* Date: Sep 24 2012
|
||||||
*
|
*
|
||||||
* Copyright (C) 2011 - 2012 by Eric Rowell
|
* Copyright (C) 2011 - 2012 by Eric Rowell
|
||||||
*
|
*
|
||||||
@@ -6341,7 +6341,14 @@ Kinetic.TextPath.prototype = {
|
|||||||
|
|
||||||
var glyphInfo = this.glyphInfo;
|
var glyphInfo = this.glyphInfo;
|
||||||
|
|
||||||
|
var appliedShadow = this.appliedShadow;
|
||||||
for(var i = 0; i < glyphInfo.length; i++) {
|
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();
|
context.save();
|
||||||
|
|
||||||
var p0 = glyphInfo[i].p0;
|
var p0 = glyphInfo[i].p0;
|
||||||
|
|||||||
6
dist/kinetic-core.min.js
vendored
6
dist/kinetic-core.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -52,7 +52,14 @@ Kinetic.TextPath.prototype = {
|
|||||||
|
|
||||||
var glyphInfo = this.glyphInfo;
|
var glyphInfo = this.glyphInfo;
|
||||||
|
|
||||||
|
var appliedShadow = this.appliedShadow;
|
||||||
for(var i = 0; i < glyphInfo.length; i++) {
|
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();
|
context.save();
|
||||||
|
|
||||||
var p0 = glyphInfo[i].p0;
|
var p0 = glyphInfo[i].p0;
|
||||||
|
|||||||
Reference in New Issue
Block a user