mirror of
https://github.com/konvajs/konva.git
synced 2026-01-23 21:34:50 +08:00
tied className into toJSON and create. deprecated shapeType property and getShapeType method
This commit is contained in:
@@ -46,7 +46,7 @@ Test.Modules.PATH = {
|
||||
|
||||
path.setData('M200,100h100v50z');
|
||||
|
||||
test(path.getShapeType() === 'Path', 'shape type should be Path');
|
||||
test(path.getClassName() === 'Path', 'getClassName should be Path');
|
||||
|
||||
},
|
||||
'add path with line cap and line join': function(containerId) {
|
||||
|
||||
@@ -25,7 +25,7 @@ Test.Modules.REGULAR_POLYGON = {
|
||||
layer.add(poly);
|
||||
stage.add(layer);
|
||||
|
||||
test(poly.getShapeType() === 'RegularPolygon', 'shape type should be RegularPolygon');
|
||||
test(poly.getClassName() === 'RegularPolygon', 'sgetClassName should be RegularPolygon');
|
||||
|
||||
},
|
||||
'add regular polygon square': function(containerId) {
|
||||
|
||||
@@ -30,7 +30,7 @@ Test.Modules.STAR = {
|
||||
layer.add(star);
|
||||
stage.add(layer);
|
||||
|
||||
test(star.getShapeType() === 'Star', 'shape type should be Star');
|
||||
test(star.getClassName() === 'Star', 'getClassName should be Star');
|
||||
},
|
||||
'add five point star with line join and shadow': function(containerId) {
|
||||
var stage = new Kinetic.Stage({
|
||||
|
||||
@@ -34,7 +34,7 @@ Test.Modules['TEXT PATH'] = {
|
||||
layer.add(textpath);
|
||||
stage.add(layer);
|
||||
|
||||
test(textpath.getShapeType() === 'TextPath', 'shape type should be TextPath');
|
||||
test(textpath.getClassName() === 'TextPath', 'getClassName should be TextPath');
|
||||
},
|
||||
'Render Text Along two connected Bezier': function(containerId) {
|
||||
var stage = new Kinetic.Stage({
|
||||
|
||||
Reference in New Issue
Block a user