mirror of
https://github.com/konvajs/konva.git
synced 2025-10-20 19:01:04 +08:00
some bugs fixes
This commit is contained in:
@@ -74,6 +74,28 @@ suite('TextPath', function() {
|
||||
stage.add(layer);
|
||||
});
|
||||
|
||||
// ======================================================
|
||||
test('Check getter and setter', function() {
|
||||
var stage = addStage();
|
||||
var layer = new Konva.Layer();
|
||||
|
||||
var c = 'M 50 50 l 250 0';
|
||||
var path = new Konva.TextPath({
|
||||
text: 'some text',
|
||||
stroke: 'red',
|
||||
strokeWidth: 1
|
||||
});
|
||||
|
||||
layer.add(path);
|
||||
stage.add(layer);
|
||||
|
||||
assert.equal(path.getData(), undefined);
|
||||
path.data(c);
|
||||
assert.equal(path.getData(), c);
|
||||
|
||||
layer.draw();
|
||||
});
|
||||
|
||||
// ======================================================
|
||||
test('Render Text Along Vertical Line', function() {
|
||||
var stage = addStage();
|
||||
|
Reference in New Issue
Block a user