mirror of
https://github.com/konvajs/konva.git
synced 2025-05-04 13:19:34 +08:00
fixed up text path draw func
This commit is contained in:
parent
7f68dafb5c
commit
0e514f7810
@ -70,7 +70,7 @@ Kinetic.TextPath.prototype = {
|
|||||||
context.translate(p0.x, p0.y);
|
context.translate(p0.x, p0.y);
|
||||||
context.rotate(glyphInfo[i].rotation);
|
context.rotate(glyphInfo[i].rotation);
|
||||||
|
|
||||||
this.fillStrokeText(context);
|
this.fillStrokeText(context, glyphInfo[i].text);
|
||||||
|
|
||||||
context.restore();
|
context.restore();
|
||||||
|
|
||||||
|
1
tests/dataUrls/nodeShapeTypeSelector.js
Normal file
1
tests/dataUrls/nodeShapeTypeSelector.js
Normal file
File diff suppressed because one or more lines are too long
@ -12,6 +12,7 @@
|
|||||||
<script src="../dataUrls/groupToImage.js"></script>
|
<script src="../dataUrls/groupToImage.js"></script>
|
||||||
<script src="../dataUrls/customShapeTwoFills.js"></script>
|
<script src="../dataUrls/customShapeTwoFills.js"></script>
|
||||||
<script src="../dataUrls/cloneGroup.js"></script>
|
<script src="../dataUrls/cloneGroup.js"></script>
|
||||||
|
<script src="../dataUrls/nodeShapeTypeSelector.js"></script>
|
||||||
|
|
||||||
|
|
||||||
<script src="../js/Test.js"></script>
|
<script src="../js/Test.js"></script>
|
||||||
|
@ -647,7 +647,7 @@ Test.Modules.CONTAINER = {
|
|||||||
test(group.get('Group').length === 0, 'group should have 0 groups');
|
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({
|
var stage = new Kinetic.Stage({
|
||||||
container: containerId,
|
container: containerId,
|
||||||
width: 578,
|
width: 578,
|
||||||
@ -781,6 +781,12 @@ Test.Modules.CONTAINER = {
|
|||||||
test(group.get('Group').length === 0, 'group should have 0 groups');
|
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('Rect').length === 1, 'group should have 1 rects');
|
||||||
test(group.get('Circle').length === 1, 'gropu should have 1 circles');
|
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) {
|
'remove shape': function(containerId) {
|
||||||
var stage = new Kinetic.Stage({
|
var stage = new Kinetic.Stage({
|
||||||
|
Loading…
Reference in New Issue
Block a user