mirror of
https://github.com/konvajs/konva.git
synced 2025-09-23 04:36:47 +08:00
deprecated getNodeType(), added className property to label, and added lots of Node doc examples
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
RIGHT = 'right',
|
||||
DOWN = 'down',
|
||||
LEFT = 'left',
|
||||
LABEL = 'Label',
|
||||
|
||||
// cached variables
|
||||
attrChangeListLen = ATTR_CHANGE_LIST.length;
|
||||
@@ -43,6 +44,7 @@
|
||||
|
||||
this.innerGroup = new Kinetic.Group();
|
||||
this.createAttrs();
|
||||
this.className = LABEL;
|
||||
Kinetic.Group.call(this, config);
|
||||
text = new Kinetic.Text(config.text);
|
||||
this.setText(text);
|
||||
|
Reference in New Issue
Block a user