Skip to content

Commit 530281a

Browse files
committed
reimplement heatmapgl
1 parent 881c417 commit 530281a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+2513
-65
lines changed

lib/heatmapgl.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/**
2+
* Copyright 2012-2021, Plotly, Inc.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the MIT license found in the
6+
* LICENSE file in the root directory of this source tree.
7+
*/
8+
9+
'use strict';
10+
11+
module.exports = require('../src/traces/heatmapgl');

lib/index-gl2d.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ var Plotly = require('./core');
1313
Plotly.register([
1414
require('./scattergl'),
1515
require('./splom'),
16+
require('./heatmapgl'),
1617
require('./parcoords')
1718
]);
1819

lib/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ Plotly.register([
4444
require('./scattergl'),
4545
require('./splom'),
4646

47+
require('./heatmapgl'),
48+
4749
require('./parcoords'),
4850

4951
require('./parcats'),

package-lock.json

Lines changed: 222 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,15 @@
8080
"fast-isnumeric": "^1.1.4",
8181
"gl-cone3d": "^1.5.2",
8282
"gl-error3d": "^1.0.16",
83+
"gl-heatmap2d": "^1.1.0",
8384
"gl-line3d": "1.2.1",
8485
"gl-mat4": "^1.2.0",
8586
"gl-mesh3d": "^2.3.1",
87+
"gl-plot2d": "^1.4.5",
8688
"gl-plot3d": "^2.4.7",
87-
"gl-pointcloud2d": "^1.0.3",
8889
"gl-scatter3d": "^1.2.3",
90+
"gl-select-box": "^1.0.4",
91+
"gl-spikes2d": "^1.0.2",
8992
"gl-streamtube3d": "^1.4.1",
9093
"gl-surface3d": "^1.6.0",
9194
"gl-text": "^1.1.8",

src/components/images/draw.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ module.exports = function draw(gd) {
237237
var subplotObj = fullLayout._plots[subplot];
238238

239239
// filter out overlaid plots (which have their images on the main plot)
240+
// and heatmapgl plots (which don't support below images, at least not yet)
240241
if(!subplotObj.imagelayer) continue;
241242

242243
var imagesOnSubplot = subplotObj.imagelayer.selectAll('image')

src/components/modebar/buttons.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,17 @@ function handleGeo(gd, ev) {
544544
}
545545
}
546546

547+
modeBarButtons.hoverClosestGl2d = {
548+
name: 'hoverClosestGl2d',
549+
title: function(gd) { return _(gd, 'Toggle show closest data on hover'); },
550+
attr: 'hovermode',
551+
val: null,
552+
toggle: true,
553+
icon: Icons.tooltip_basic,
554+
gravity: 'ne',
555+
click: toggleHover
556+
};
557+
547558
modeBarButtons.hoverClosestPie = {
548559
name: 'hoverClosestPie',
549560
title: function(gd) { return _(gd, 'Toggle show closest data on hover'); },

0 commit comments

Comments
 (0)