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 3f0ee0c

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

File tree

2 files changed

+14
-0
lines changed
Filter options

2 files changed

+14
-0
lines changed

‎src/traces/heatmapgl/index.js

Copy file name to clipboardExpand all lines: src/traces/heatmapgl/index.js
+8Lines changed: 8 additions & 0 deletions
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

Copy file name to clipboardExpand all lines: src/traces/pointcloud/index.js
+6Lines changed: 6 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.