8000 Refactor PlotSchema by etpinard · Pull Request #1144 · plotly/plotly.js · GitHub
[go: up one dir, main page]

Skip to content
8000

Refactor PlotSchema #1144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Nov 15, 2016
Prev Previous commit
Next Next commit
annotations: do not export useless things
  • Loading branch information
etpinard committed Nov 15, 2016
commit b2b382904fcfa1470921218a31132ab9f3d9f055
9 changes: 0 additions & 9 deletions src/components/annotations/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,19 @@

'use strict';

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

exports.moduleType = 'component';

exports.name = 'annotations';

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

exports.layoutAttributes = require('./attributes');

exports.supplyLayoutDefaults = require('./defaults');

exports.calcAutorange = require('./calc_autorange');

exports.arrowhead = require('./draw_arrow_head');

var drawModule = require('./draw');
exports.draw = drawModule.draw;
exports.drawOne = drawModule.drawOne;

exports.add = function(gd) {
var nextAnn = gd._fullLayout.annotations.length;

Plotly.relayout(gd, 'annotations[' + nextAnn + ']', 'add');
};
0