fixed up text path draw func

This commit is contained in:
Eric Rowell 2012-11-24 00:05:37 -08:00
parent 7f68dafb5c
commit 0e514f7810
4 changed files with 10 additions and 2 deletions

View File

@ -70,7 +70,7 @@ Kinetic.TextPath.prototype = {
context.translate(p0.x, p0.y);
context.rotate(glyphInfo[i].rotation);
this.fillStrokeText(context);
this.fillStrokeText(context, glyphInfo[i].text);
context.restore();

File diff suppressed because one or more lines are too long

View File

@ -12,6 +12,7 @@
<script src="../dataUrls/groupToImage.js"></script>
<script src="../dataUrls/customShapeTwoFills.js"></script>
<script src="../dataUrls/cloneGroup.js"></script>
<script src="../dataUrls/nodeShapeTypeSelector.js"></script>
<script src="../js/Test.js"></script>

View File

@ -647,7 +647,7 @@ Test.Modules.CONTAINER = {
test(group.get('Group').length === 0, 'group should have 0 groups');
},
'node and shape type selector': function(containerId) {
'*node and shape type selector': function(containerId) {
var stage = new Kinetic.Stage({
container: containerId,
width: 578,
@ -781,6 +781,12 @@ Test.Modules.CONTAINER = {
test(group.get('Group').length === 0, 'group should have 0 groups');
test(group.get('Rect').length === 1, 'group should have 1 rects');
test(group.get('Circle').length === 1, 'gropu should have 1 circles');
stage.toDataURL({
callback: function(dataUrl) {
test(dataUrl === nodeShapeTypeSelector, 'problem with node and shape type selector render.');
}
});
},
'remove shape': function(containerId) {
var stage = new Kinetic.Stage({