Skip to content

Commit f5c64d2

Browse files
committed
doc: add comment about transform in main index file
1 parent 4cd9edf commit f5c64d2

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

lib/index.js

+9
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ Plotly.register([
3232
]);
3333

3434
// transforms
35+
//
36+
// Please note that all *transform* methods are executed before
37+
// all *calcTransform* methods - which could possibly lead to
38+
// unexpected results when applying multiple transforms of different types
39+
// to a given trace.
40+
//
41+
// For more info, see:
42+
// https://github.com/plotly/plotly.js/pull/978#pullrequestreview-2403353
43+
//
3544
Plotly.register([
3645
require('./filter'),
3746
require('./groupby')

src/plot_api/register.js

-2
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ function registerTransformModule(newModule) {
6969
throw new Error(prefix + ' is missing a *transform* or *calcTransform* method.');
7070
}
7171

72-
// For more info, see:
73-
// https://github.com/plotly/plotly.js/pull/978#pullrequestreview-2403353
7472
if(hasTransform && hasCalcTransform) {
7573
Lib.log([
7674
prefix + ' has both a *transform* and *calcTransform* methods.',

0 commit comments

Comments
 (0)