Skip to content

Commit 3f0ee0c

Browse files
authored
Merge pull request #5447 from plotly/deprecate_gl2d_traces
Add deprecated warnings for pointcloud and heatmapgl
2 parents 6fcbc75 + a96ef51 commit 3f0ee0c

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/traces/heatmapgl/index.js

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
'use strict';
22

3+
var deprecationWarning = [
4+
'*heatmapgl* trace is deprecated!',
5+
'Please consider switching to the *heatmap* or *image* trace types.',
6+
'Alternatively you could contribute/sponsor rewriting this trace type',
7+
'based on cartesian features and using regl framework.'
8+
].join(' ');
9+
310
module.exports = {
411
attributes: require('./attributes'),
512
supplyDefaults: require('./defaults'),
@@ -14,6 +21,7 @@ module.exports = {
1421
categories: ['gl', 'gl2d', '2dMap'],
1522
meta: {
1623
description: [
24+
deprecationWarning,
1725
'WebGL version of the heatmap trace type.'
1826
].join(' ')
1927
}

src/traces/pointcloud/index.js

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
'use strict';
22

3+
var deprecationWarning = [
4+
'*pointcloud* trace is deprecated!',
5+
'Please consider switching to the *scattergl* trace type.'
6+
].join(' ');
7+
38
module.exports = {
49
attributes: require('./attributes'),
510
supplyDefaults: require('./defaults'),
@@ -14,6 +19,7 @@ module.exports = {
1419
categories: ['gl', 'gl2d', 'showLegend'],
1520
meta: {
1621
description: [
22+
deprecationWarning,
1723
'The data visualized as a point cloud set in `x` and `y`',
1824
'using the WebGl plotting engine.'
1925
].join(' ')

0 commit comments

Comments
 (0)