https://github.com/redsift/d3-rs-tspan-wrap
https://github.com/redsift/d3-rs-tspan-wrap
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/redsift/d3-rs-tspan-wrap
- Owner: redsift
- License: mit
- Created: 2016-05-16T18:22:55.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-28T18:34:47.000Z (almost 10 years ago)
- Last Synced: 2025-01-29T22:47:42.767Z (over 1 year ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 0
- Watchers: 18
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# d3-rs-tspan-wrap
`d3-rs-tspan-wrap` is a component for breaking up text into tspans in a Text container.
## Builds
[](https://circleci.com/gh/Redsift/d3-rs-tspan-wrap)
## Example
[View @redsift/d3-rs-tspan-wrap on Codepen](https://codepen.io/rahulpowar/pen/ZWxKdJ/)
## Usage
### Browser
var text = d3_rs_tspan_wrap.text();
...
### ES6
import { text } from "@redsift/d3-rs-tspan-wrap";
let eml = text.text();
...
### Require
var text = require("@redsift/d3-rs-tspan-wrap");
var eml = text.text();
...
### Data
Data can either be provided in the text node element itself or bound to the selection.
### Parameters
|Name|Description|Transition|
|----|-----------|----------|
|classed|SVG custom class|N|