mirror of
https://github.com/konvajs/konva.git
synced 2025-09-18 18:27:58 +08:00
fixed up TextPath tests
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
Kinetic.Shape.call(this, config);
|
||||
|
||||
// overrides
|
||||
// TODO: shouldn't this be on the prototype?
|
||||
this._fillFunc = _fillFunc;
|
||||
this._strokeFunc = _strokeFunc;
|
||||
|
||||
@@ -75,6 +76,7 @@
|
||||
context.translate(p0.x, p0.y);
|
||||
context.rotate(glyphInfo[i].rotation);
|
||||
this.partialText = glyphInfo[i].text;
|
||||
|
||||
canvas.fillStroke(this);
|
||||
context.restore();
|
||||
|
||||
|
@@ -22,9 +22,9 @@ Test.Modules['TEXT PATH'] = {
|
||||
layer.add(path);
|
||||
|
||||
var textpath = new Kinetic.Plugins.TextPath({
|
||||
textStroke: 'black',
|
||||
textStrokeWidth: 1,
|
||||
textFill: 'orange',
|
||||
stroke: 'black',
|
||||
strokeWidth: 1,
|
||||
fill: 'orange',
|
||||
fontSize: '18',
|
||||
fontFamily: 'Arial',
|
||||
text: 'The quick brown fox jumped over the lazy dog\'s back',
|
||||
@@ -56,9 +56,9 @@ Test.Modules['TEXT PATH'] = {
|
||||
layer.add(path);
|
||||
|
||||
var textpath = new Kinetic.Plugins.TextPath({
|
||||
textStroke: 'black',
|
||||
textStrokeWidth: 1,
|
||||
textFill: 'orange',
|
||||
stroke: 'black',
|
||||
strokeWidth: 1,
|
||||
fill: 'orange',
|
||||
fontSize: '8',
|
||||
fontFamily: 'Arial',
|
||||
text: 'All the world\'s a stage, and all the men and women merely players. They have their exits and their entrances; And one man in his time plays many parts.',
|
||||
@@ -91,7 +91,7 @@ Test.Modules['TEXT PATH'] = {
|
||||
layer.add(path);
|
||||
|
||||
var textpath = new Kinetic.Plugins.TextPath({
|
||||
textFill: 'black',
|
||||
fill: 'black',
|
||||
fontSize: '10',
|
||||
text: 'All the world\'s a stage, and all the men and women merely players. They have their exits and their entrances; And one man in his time plays many parts.',
|
||||
data: c
|
||||
@@ -116,7 +116,7 @@ Test.Modules['TEXT PATH'] = {
|
||||
|
||||
var textpath = new Kinetic.Plugins.TextPath({
|
||||
y: 50,
|
||||
textFill: 'black',
|
||||
fill: 'black',
|
||||
fontSize: '24',
|
||||
text: Array(4).join('All the world\'s a stage, and all the men and women merely players. They have their exits and their entrances; And one man in his time plays many parts.'),
|
||||
data: c
|
||||
|
Reference in New Issue
Block a user