Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alexpineda/snap-svg-text-plugins

Working with SnapSVG
https://github.com/alexpineda/snap-svg-text-plugins

Last synced: 3 months ago
JSON representation

Working with SnapSVG

Awesome Lists containing this project

README

        

Snap-Svg-Text-Plugins
================

Word wrap

```javascript
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()

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