Skip to content

Navigation Menu

Sign in
Appearance settings

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

Appearance settings

Commit 5d7f9a4

Browse filesBrowse files
committed
image: 🔪 duplicated logic in event_data, enforce dim of color
1 parent fd51e20 commit 5d7f9a4
Copy full SHA for 5d7f9a4

File tree

Expand file treeCollapse file tree

2 files changed

+1
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+1
-2
lines changed

‎src/traces/image/event_data.js

Copy file name to clipboardExpand all lines: src/traces/image/event_data.js
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,5 @@ module.exports = function eventData(out, pt) {
1515
if(pt.ya) out.yaxis = pt.ya;
1616
out.color = pt.color;
1717
out.colormodel = pt.trace.colormodel;
18-
out.text = pt.text;
1918
return out;
2019
};

‎src/traces/image/plot.js

Copy file name to clipboardExpand all lines: src/traces/image/plot.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ var scaler = function(trace) {
4848
}
4949

5050
return function(pixel) {
51-
var c = pixel.slice();
51+
var c = pixel.slice(0, n);
5252
for(var k = 0; k < n; k++) {
5353
c[k] = s[k](c[k]);
5454
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.