TextNode
Renders editable text with font options.
Example
const text = engine.nodes.addText({
x: 400,
y: 320,
text: 'Flowscape',
fontSize: 28,
fontFamily: 'Arial',
fill: '#fff',
});
text.getNode().draggable(true);
Renders editable text with font options.
const text = engine.nodes.addText({
x: 400,
y: 320,
text: 'Flowscape',
fontSize: 28,
fontFamily: 'Arial',
fill: '#fff',
});
text.getNode().draggable(true);