8000 Faster axis autorange + remove calcIfAutorange edit type by etpinard · Pull Request #2823 · plotly/plotly.js · GitHub
[go: up one dir, main page]

Skip to content

Faster axis autorange + remove calcIfAutorange edit type #2823

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 15 commits into from
Aug 2, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove unused '_' fields in annotations full items
  • Loading branch information
etpinard committed Jul 18, 2018
commit 6e19c6ef6d2ea962cb10f8f3d571f13027f43987
5 changes: 0 additions & 5 deletions src/components/annotations/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,6 @@ function drawRaw(gd, options, index, subplotId, xa, ya) {
var outerWidth = Math.round(annWidth + 2 * borderfull);
var outerHeight = Math.round(annHeight + 2 * borderfull);


// save size in the annotation object for use by autoscale
options._w = annWidth;
options._h = annHeight;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Good catch, great to see all the pruning you manage to do in this PR!


function shiftFraction(v, anchor) {
if(anchor === 'auto') {
if(v < 1 / 3) anchor = 'left';
Expand Down
0