Working with SnapSVG
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
snap-rapineda-text.js

README.md

Snap-Svg-Text-Plugins

Word wrap

Snap.text(0,0,'Hello World!').wrap(10);
Snap.text(0,0,'Hello World!').wrap(10, 'center');//center align
Snap.text(0,0,'Hello World!').wrap(10, 'right');//right align

A text feature similar to jQuery text()

var s = new Snap();
var t = s.text(0,10,'Hello World!');
t.text();//'Hello World!'
t.text('Goodbye!');
t.text();//'Goodbye!'