KineticJS icon indicating copy to clipboard operation
KineticJS copied to clipboard

Label.getText() is not working

Open stelioschar opened this issue 13 years ago • 1 comments

var tooltip = new Kinetic.Label({ x : 170, y : 75, opacity : 0.75, listening : false, visible : false, text : { text : 'Tooltip pointing down', fontFamily : 'Calibri', fontSize : 18, padding : 5, fill : 'white' }, rect : { fill : 'black', pointerDirection : 'down', pointerWidth : 10, pointerHeight : 10, lineJoin : 'round', shadowColor : 'black', shadowBlur : 10, shadowOffset : 10, shadowOpacity : 0.5 } });

tooltip.getText().setText("this is a test tooltip");

the getText() is not working.

stelioschar avatar May 23 '13 13:05 stelioschar

The API changed. please see the changelog:

https://github.com/ericdrowell/KineticJS/wiki/Change-Log

And the updated tutorial:

http://www.html5canvastutorials.com/kineticjs/html5-canvas-kineticjs-label-tutorial/

ericdrowell avatar May 23 '13 16:05 ericdrowell