Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7e4d8ab

Browse files
authoredAug 19, 2016
Merge pull request #845 from plotly/registry-use-component
Add registry of component modules
2 parents 7e2448e + 489513b commit 7e4d8ab

Some content is hidden

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

47 files changed

+631
-518
lines changed
 

‎src/components/annotations/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111

1212
var Plotly = require('../../plotly');
1313

14+
exports.moduleType = 'component';
15+
16+
exports.name = 'annotations';
1417

1518
exports.ARROWPATHS = require('./arrow_paths');
1619

‎src/components/colorbar/draw.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ var tinycolor = require('tinycolor2');
1414

1515
var Plotly = require('../../plotly');
1616
var Plots = require('../../plots/plots');
17+
var Registry = require('../../registry');
1718
var Axes = require('../../plots/cartesian/axes');
1819
var dragElement = require('../dragelement');
1920
var Lib = require('../../lib');
@@ -437,7 +438,7 @@ module.exports = function draw(gd, id) {
437438
function drawTitle(titleClass, titleOpts) {
438439
var trace = getTrace(),
439440
propName;
440-
if(Plots.traceIs(trace, 'markerColorscale')) {
441+
if(Registry.traceIs(trace, 'markerColorscale')) {
441442
propName = 'marker.colorbar.title';
442443
}
443444
else propName = 'colorbar.title';

0 commit comments

Comments
 (0)
Please sign in to comment.