Merge pull request #2664 from alecmerdler/fix-graphing-globals
Fix Reference to Global JS Classes
This commit is contained in:
commit
6ed5235dfd
3 changed files with 10 additions and 4 deletions
|
@ -1,3 +1,6 @@
|
||||||
|
import { LogUsageChart } from '../../graphing';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Element which displays usage logs for the given entity.
|
* Element which displays usage logs for the given entity.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -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
|
* An element which displays a donut chart, along with warnings if the limit is close to being
|
||||||
* reached.
|
* reached.
|
||||||
|
|
|
@ -31,8 +31,8 @@ var DEPTH_WIDTH = 140;
|
||||||
/**
|
/**
|
||||||
* Based off of http://mbostock.github.io/d3/talk/20111018/tree.html by Mike Bostock (@mbostock)
|
* 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) {
|
formatCommand, opt_tagFilter) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The namespace of the repo.
|
* The namespace of the repo.
|
||||||
|
@ -994,7 +994,7 @@ ImageHistoryTree.prototype.dispose = function() {
|
||||||
/**
|
/**
|
||||||
* Based off of http://bl.ocks.org/mbostock/1346410
|
* Based off of http://bl.ocks.org/mbostock/1346410
|
||||||
*/
|
*/
|
||||||
function UsageChart() {
|
export function UsageChart() {
|
||||||
this.total_ = null;
|
this.total_ = null;
|
||||||
this.count_ = null;
|
this.count_ = null;
|
||||||
this.drawn_ = false;
|
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.
|
* A chart which displays the last seven days of actions in the account.
|
||||||
*/
|
*/
|
||||||
function LogUsageChart(titleMap) {
|
export function LogUsageChart(titleMap) {
|
||||||
this.titleMap_ = titleMap;
|
this.titleMap_ = titleMap;
|
||||||
this.colorScale_ = d3.scale.category20();
|
this.colorScale_ = d3.scale.category20();
|
||||||
this.entryMap_ = {};
|
this.entryMap_ = {};
|
||||||
|
|
Reference in a new issue