Skip to content

Revise operation in rangebreaks - #4660

Merged
archmoj merged 7 commits into
masterfrom
remove-rangebreaks-operation
Mar 18, 2020
Merged

Revise operation in rangebreaks #4660
archmoj merged 7 commits into
masterfrom
remove-rangebreaks-operation

Conversation

@archmoj

Copy link
Copy Markdown
Contributor

Follow up of #4614, and in regards with #4655 (comment) and #4655 (comment)
commits in this PR are steps to change default operation to [) and make it internal.

@plotly/plotly_js

@archmojarchmoj added this to the v1.53.0 milestone Mar 18, 2020
@archmojarchmoj added the bug something broken label Mar 18, 2020
Comment threadsrc/plots/cartesian/set_convert.js Outdated

if(onOpenBound && op0 === '(' && v === b0) return BADNUM;
onOpenBound = op1 === ')' && v === b1;
if(onOpenBound && v === b0) return BADNUM;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks like onOpenBound can just be 🔪 at this point?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Good eye. Done in c4dde70.

"pattern": "hour",
"bounds": [ 16, 8 ],
"operation": "()"
"bounds": [ 16.001, 8 ]

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

🙃

@alexcjohnsonalexcjohnson left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Fantastic! Just one small comment https://github.com/plotly/plotly.js/pull/4660/files?short_path=6ccd23f#r394320834 and this is ready to 💃

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

Labels

bugsomething broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@archmoj@alexcjohnson