https://github.com/redsift/d3-rs-text-multiline
https://github.com/redsift/d3-rs-text-multiline
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/redsift/d3-rs-text-multiline
- Owner: redsift
- License: mit
- Created: 2016-05-10T17:24:44.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-01-09T17:47:16.000Z (over 9 years ago)
- Last Synced: 2025-09-08T02:31:27.447Z (9 months ago)
- Language: JavaScript
- Size: 12.7 KB
- Stars: 0
- Watchers: 17
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# d3-rs-text-multiline
`d3-rs-text-multiline` is a component for creating animateable multi-line text elements in a SVG container.
## Builds
[](https://circleci.com/gh/Redsift/d3-rs-text-multiline)
## Example
[View @redsift/d3-rs-text-multiline on Codepen](https://codepen.io/rahulpowar/pen/ONqZOQ/)
## Usage
### Browser
var text = d3_rs_text_multiline.svg();
...
### ES6
import { text } from "@redsift/d3-rs-text-multiline";
let eml = text.svg();
...
### Require
var text = require("@redsift/d3-rs-text-multiline");
var eml = text.svg();
...
### Parameters
|Name|Description|Transition|
|----|-----------|----------|
|classed|SVG custom class|N|
|text|text accessor function|N|
|tweenText|text tween function|N|
|lineHeight|custom line height. if 0 (default), calculated using getBBox()|N|