0.1.0 • Published 8 years ago

@redsift/d3-rs-tspan-wrap v0.1.0

Weekly downloads
6
License
MIT
Repository
github
Last release
8 years ago

d3-rs-tspan-wrap

d3-rs-tspan-wrap is a component for breaking up text into tspans in a Text container.

Builds

Circle CI

Example

View @redsift/d3-rs-tspan-wrap on Codepen

Usage

Browser

<script src="//static.redsift.io/reusable/d3-rs-tspan-wrap/latest/d3-rs-tspan-wrap.umd-es2015.min.js"></script>
<script>
	var text = d3_rs_tspan_wrap.text();
	...
</script>

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

NameDescriptionTransition
classedSVG custom classN