tied className into toJSON and create. deprecated shapeType property and getShapeType method

This commit is contained in:
Eric Rowell
2013-05-19 21:48:48 -07:00
parent 7069bf9e0c
commit 35b1f61bda
32 changed files with 43 additions and 65 deletions

View File

@@ -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) {

View File

@@ -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) {

View File

@@ -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({

View File

@@ -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({