Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

add fontSize property to label-series#1276

Open
dandgerson wants to merge1 commit intouber:master
base:master
Choose a base branch
Loading
fromdandgerson:add-label-series-font-size

Conversation

dandgerson
Copy link

Thank you for amazing library. It very useful in our production.

I want to add some functional to our label-series
I have to some customize fontSize property for labels and suggest this feature.

I had this small PR as fist step. I would be glad to continue commit

Example:

<LabelSeries          animation={animation}          className={className}          rotation={labelRotation}          labelAnchorY="text-before-edge"          data={nodesCopy.map((node, i) => {            return {              x: node.x0 + (node.x0 < width / 2 ? nWidth + 10 : -10),              y: (node.y0 + node.y1) / 2 - marginTop,              label: node.name,              style: {                textAnchor: node.x0 < width / 2 ? 'start' : 'end',                dy: '-.5em',                fontSize: node.fontSize || 'inherit', // add fontSize                ...style.labels              },              // unfortunately this can not be ...node as the version              // found in nodesCopy is modified by the sankey process              ...nodes[i]            };          })}        />

@CLAassistant
Copy link

CLAassistant commentedNov 14, 2019
edited
Loading

CLA assistant check
All committers have signed the CLA.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@mcnuttandrewmcnuttandrewAwaiting requested review from mcnuttandrew

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@dandgerson@CLAassistant

[8]ページ先頭

©2009-2025 Movatter.jp