Skip to content

Commit

Permalink
Merge pull request #4319 from plotly/image-trace-disable-transforms
Browse files Browse the repository at this point in the history
Disable transforms for `image` traces
  • Loading branch information
etpinard authored Oct 29, 2019
2 parents fbfadbe + e6440ea commit 205d069
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/traces/image/attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,7 @@ module.exports = extendFlat({
}),
hovertemplate: hovertemplateAttrs({}, {
keys: ['z', 'color', 'colormodel']
})
}),

transforms: undefined
});
2 changes: 2 additions & 0 deletions src/traces/image/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,6 @@ module.exports = function supplyDefaults(traceIn, traceOut) {
coerce('text');
coerce('hovertext');
coerce('hovertemplate');

traceOut._length = null;
};

0 comments on commit 205d069

Please sign in to comment.