Skip to content

Waterfall connector.line.width react bug in mode between #3789

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 18, 2019

Conversation

archmoj
Copy link
Contributor

@archmoj archmoj commented Apr 18, 2019

Fixes #3787.
Codepen After.

@plotly/plotly_js
cc: @nicolaskruchten

@archmoj archmoj added bug something broken status: reviewable labels Apr 18, 2019
@@ -96,7 +96,9 @@ module.exports = {
connector: {
line: {
color: extendFlat({}, lineAttrs.color, {dflt: Color.defaultLine}),
width: lineAttrs.width,
width: extendFlat({}, lineAttrs.width, {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does a similar fix need to be applied anywhere else in this trace? I haven't rigorously tested each attr, I just happened to test this one a lot due to our conversations around the line extensions etc :)

@etpinard
Copy link
Contributor

Ha, Good catch from this block:

var adjustDir;
var adjustPixel = 0;
if(trace.type === 'waterfall' && trace.connector.visible && trace.connector.mode === 'between') {
adjustPixel = trace.connector.line.width / 2;
}

which can't be transferred to waterfal/style.js.


Nicely done 💃

@archmoj archmoj merged commit b7fca1e into master Apr 18, 2019
@archmoj archmoj deleted the fix3787-waterfall-line-width-react-in-mode-between branch April 18, 2019 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Waterfalls reacting weirdly for connector line thickness
3 participants