Nourishing Plushie Monster

    @redsift/d3-rs-text-multiline

    0.1.1 • Public • Published

    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

    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

    Install

    npm i @redsift/d3-rs-text-multiline

    DownloadsWeekly Downloads

    9

    Version

    0.1.1

    License

    MIT

    Last publish

    Collaborators

    • luminous_cal
    • notmentat
    • pierredupuis
    • hortega_rs
    • alim-scott
    • anneshackelford
    • jrivaxrs
    • mcolladoredsift
    • redsift_operations
    • raul.lorenzo.redsift
    • rahulpowar
    • randalpinto
    • njaremek
    • earada
    • jordanw7
    • jmiralles
    • nascimj
    • kitty_vandergijp
    • neilsaccardo
    • bmayolasredsift