visx icon indicating copy to clipboard operation
visx copied to clipboard

add textPath prop to Text component

Open grsoares21 opened this issue 4 years ago • 6 comments

This was implemented as a solution for https://github.com/airbnb/visx/issues/759 It is my first PR to a big open-source project. I'd appreciate your feeback.

:boom: Breaking Changes

  • none

:rocket: Enhancements

  • Adds an optional textPath props that can be used as a path for the text to follow along

grsoares21 avatar Nov 11 '20 15:11 grsoares21

Pull Request Test Coverage Report for Build 385720793

  • 5 of 5 (100.0%) changed or added relevant lines in 1 file are covered.
  • 28 unchanged lines in 3 files lost coverage.
  • Overall coverage decreased (-0.9%) to 59.923%

Files with Coverage Reduction New Missed Lines %
packages/visx-xychart/src/components/XYChart.tsx 1 94.74%
packages/visx-annotation/src/components/EditableAnnotation.tsx 6 38.46%
packages/visx-brush/src/Brush.tsx 21 2.42%
<!-- Total: 28
Totals Coverage Status
Change from base Build 348549012: -0.9%
Covered Lines: 1636
Relevant Lines: 2573

💛 - Coveralls

coveralls avatar Nov 11 '20 15:11 coveralls

@grsoares21 I'm very sorry, Text has been refactored by hook(#946 ) that means you should rewrite this feature...... I‘m sincerely sorry about it........

susiwen8 avatar Dec 05 '20 01:12 susiwen8

@grsoares21 I'm very sorry, Text has been refactored by hook(#946 ) that means you should rewrite this feature...... I‘m sincerely sorry about it........

Hello @susiwen8 . No problems :D. I'm glad to hear it's on hooks now. I'll try to reimplement this next weekend then.

grsoares21 avatar Dec 08 '20 08:12 grsoares21

Sorry for the delayed review, will try and review asap once I see any new commits to avoid any future conflicts 👍

williaster avatar Dec 08 '20 19:12 williaster

Came here for this very thing. Sad to see it has stalled. Are you planning to pick it up again @grsoares21 ?

derrickbeining avatar Jul 07 '21 00:07 derrickbeining

If someone else wants to pick this up I'm happy to review! it shouldn't be too complicated, tho as noted @visx/text was refactored to use hooks so the approach will need to be tweaked slightly for that.

williaster avatar Jul 07 '21 01:07 williaster