added points Node getter and setter creators for Line and Polygon

This commit is contained in:
Eric Rowell
2013-06-08 11:11:49 -07:00
parent 0c3ada88f5
commit e8ea9340fe
5 changed files with 55 additions and 51 deletions

View File

@@ -1,5 +1,5 @@
Test.Modules.LINE = {
'add line': function(containerId) {
'*add line': function(containerId) {
var stage = new Kinetic.Stage({
container: containerId,
width: 578,
@@ -84,7 +84,7 @@ Test.Modules.LINE = {
test(redLine.getPoints()[0].x === 4, 'redLine points is wrong');
},
'add dashed line': function(containerId) {
'*add dashed line': function(containerId) {
var stage = new Kinetic.Stage({
container: containerId,
width: 578,

View File

@@ -1,5 +1,5 @@
Test.Modules.POLYGON - {
'add polygon': function(containerId) {
Test.Modules.POLYGON = {
'*add polygon': function(containerId) {
var stage = new Kinetic.Stage({
container: containerId,
width: 578,