mirror of
https://github.com/konvajs/konva.git
synced 2026-01-23 21:34:50 +08:00
added points Node getter and setter creators for Line and Polygon
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user