-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
React finance precursor #2525
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
React finance precursor #2525
Changes from 5 commits
28d073f
c802d79
16a22f3
035c98d
95911da
6b201a1
5546ec7
0221510
b0af416
c2b11dc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -380,7 +380,7 @@ plots.supplyDefaults = function(gd) { | |
if(_module.cleanData) _module.cleanData(newFullData); | ||
} | ||
|
||
if(oldFullData.length === newData.length) { | ||
if(oldFullData.length === newFullData.length) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How hard would it be to 🔒 this fix? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was going to add a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
sounds good 👌 |
||
for(i = 0; i < newFullData.length; i++) { | ||
relinkPrivateKeys(newFullData[i], oldFullData[i]); | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,8 +52,8 @@ module.exports = function calc(gd, trace) { | |
trace.setScale(); | ||
|
||
// Convert cartesian-space x/y coordinates to screen space pixel coordinates: | ||
t.xp = trace.xp = map2dArray(trace.xp, x, xa.c2p); | ||
t.yp = trace.yp = map2dArray(trace.yp, y, ya.c2p); | ||
t.xp = trace._xp = map2dArray(trace._xp, x, xa.c2p); | ||
t.yp = trace._yp = map2dArray(trace._yp, y, ya.c2p); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are these xp and yp values used anywhere? Here they appear to be reset during the plot step. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ha good call. Nothing fails if you 🔪 these lines, which is good because the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. wow, then |
||
|
||
// This is a rather expensive scan. Nothing guarantees monotonicity, | ||
// so we need to scan through all data to get proper ranges: | ||
|
@@ -88,7 +88,7 @@ module.exports = function calc(gd, trace) { | |
|
||
// Tabulate points for the four segments that bound the axes so that we can | ||
// map to pixel coordinates in the plot function and create a clip rect: | ||
t.clipsegments = calcClipPath(trace.xctrl, trace.yctrl, aax, bax); | ||
t.clipsegments = calcClipPath(trace._xctrl, trace._yctrl, aax, bax); | ||
|
||
t.x = x; | ||
t.y = y; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
similarly here, can we 🔒 this thing?