Merge pull request #2664 from alecmerdler/fix-graphing-globals

Fix Reference to Global JS Classes
This commit is contained in:
Alec Merdler 2017-05-24 13:41:17 -07:00 committed by GitHub
commit 6ed5235dfd
3 changed files with 10 additions and 4 deletions

View file

@ -1,3 +1,6 @@
import { LogUsageChart } from '../../graphing';
/**
* Element which displays usage logs for the given entity.
*/

View file

@ -1,3 +1,6 @@
import { UsageChart } from '../../graphing';
/**
* An element which displays a donut chart, along with warnings if the limit is close to being
* reached.

View file

@ -31,7 +31,7 @@ var DEPTH_WIDTH = 140;
/**
* Based off of http://mbostock.github.io/d3/talk/20111018/tree.html by Mike Bostock (@mbostock)
*/
function ImageHistoryTree(namespace, name, images, getTagsForImage, formatComment, formatTime,
export function ImageHistoryTree(namespace, name, images, getTagsForImage, formatComment, formatTime,
formatCommand, opt_tagFilter) {
/**
@ -994,7 +994,7 @@ ImageHistoryTree.prototype.dispose = function() {
/**
* Based off of http://bl.ocks.org/mbostock/1346410
*/
function UsageChart() {
export function UsageChart() {
this.total_ = null;
this.count_ = null;
this.drawn_ = false;
@ -1106,7 +1106,7 @@ UsageChart.prototype.draw = function(container) {
/**
* A chart which displays the last seven days of actions in the account.
*/
function LogUsageChart(titleMap) {
export function LogUsageChart(titleMap) {
this.titleMap_ = titleMap;
this.colorScale_ = d3.scale.category20();
this.entryMap_ = {};