Socket
Book a DemoInstallSign in
Socket

@redsift/d3-rs-text-multiline

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@redsift/d3-rs-text-multiline

Creates a text element using D3v4.

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

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

Example

View @redsift/d3-rs-text-multiline on Codepen

Usage

Browser

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

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

NameDescriptionTransition
classedSVG custom classN
texttext accessor functionN
tweenTexttext tween functionN
lineHeightcustom line height. if 0 (default), calculated using getBBox()N

Keywords

text

FAQs

Package last updated on 16 May 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts