File tree Expand file tree Collapse file tree 2 files changed +19
-6
lines changed Expand file tree Collapse file tree 2 files changed +19
-6
lines changed Original file line number Diff line number Diff line change 1+ /**
2+ * Copyright 2012-2015, 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+
10+ 'use strict' ;
11+
12+ var Colorscale = require ( '../../components/colorscale' ) ;
13+
14+
15+ // Compute auto-z and autocolorscale if applicable
16+ module . exports = function calc ( gd , trace ) {
17+ Colorscale . calc ( trace , trace . z , '' , 'z' ) ;
18+ } ;
Original file line number Diff line number Diff line change @@ -32,9 +32,4 @@ Surface.supplyDefaults = require('./defaults');
3232
3333Surface . colorbar = require ( '../heatmap/colorbar' ) ;
3434
35- Surface . calc = function ( gd , trace ) {
36-
37- // auto-z and autocolorscale if applicable
38- Plotly . Colorscale . calc ( trace , trace . z , '' , 'z' ) ;
39-
40- } ;
35+ Surface . calc = require ( './calc' ) ;
You can’t perform that action at this time.
0 commit comments