Git Product home page Git Product logo

Comments (7)

techniq avatar techniq commented on May 3, 2024 1

I originally created something like this for the recharts library (original issue) but recently decided to extract it out into it's own repo/library as react-svg-text mostly because I saw vx's TextWrap with it's TODO.

I haven't started using vx myself (yet), but thought you might want to use this. It still needs some work before I release it on npm (see TODO section on README). It also provides more features than just word wrapping (changing the verticalAnchor is very useful). Check out the demo to get a feel for it.

from visx.

hshoff avatar hshoff commented on May 3, 2024

@techniq very nice! great work

from visx.

techniq avatar techniq commented on May 3, 2024

@hshoff I release react-svg-text today - https://www.npmjs.com/package/react-svg-text.

I need to come up with a better testing strategy (see TODO section on README about jsdom / jest). I also haven't done much through manually testing so hopefully I didn't miss anything to glaring.

Anyways, feel free to integrate this into vx as you see fit, and if you come across anything you need, feel free to submit a issue or PR.

from visx.

techniq avatar techniq commented on May 3, 2024

fyi - I fired up a quick codepen and noticed I had forgot to add the main entry point in package.json. I fixed this and pushed out 0.1.1

from visx.

hshoff avatar hshoff commented on May 3, 2024

Awesome! thanks for this @techniq!

from visx.

techniq avatar techniq commented on May 3, 2024

Very welcome. Thank you for vx :)

from visx.

hshoff avatar hshoff commented on May 3, 2024

fixed in: #208

from visx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.