Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/alexpineda/snap-svg-text-plugins
- Owner: alexpineda
- Created: 2014-04-02T09:25:16.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-06-28T13:26:33.000Z (over 10 years ago)
- Last Synced: 2023-08-23T10:14:53.996Z (over 1 year ago)
- Language: JavaScript
- Size: 164 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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!'
```