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

https://github.com/redsift/d3-rs-text-multiline


https://github.com/redsift/d3-rs-text-multiline

Last synced: 9 months ago
JSON representation

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

[![Circle CI](https://circleci.com/gh/Redsift/d3-rs-text-multiline.svg?style=svg)](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|