[Plot] Rename GLPlot to GLChart

Rename the GLPlot script (which handles drawing
of lines/boxes to canvas elements) to GLChart,
to distinguish it from the broader plot view.
WTD-533.
This commit is contained in:
Victor Woeltjen 2014-12-01 10:12:07 -08:00
parent b556b5e4f2
commit 8cb3ce4fd9
2 changed files with 5 additions and 5 deletions

View File

@ -24,7 +24,7 @@ define(
"}"
].join('\n');
function GLPlot(canvas) {
function GLChart(canvas) {
var gl = canvas.getContext("webgl") || canvas.getContext("experimental-webgl"),
vertexShader,
fragmentShader,
@ -94,6 +94,6 @@ define(
gl: gl
};
}
return GLPlot;
return GLChart;
}
);

View File

@ -4,8 +4,8 @@
* Module defining MCTChart. Created by vwoeltje on 11/12/14.
*/
define(
["./GLPlot"],
function (GLPlot) {
["./GLChart"],
function (GLChart) {
"use strict";
var TEMPLATE = "<canvas style='position: absolute; background: none; width: 100%; height: 100%;'></canvas>";
@ -18,7 +18,7 @@ define(
function linkChart(scope, element) {
var canvas = element.find("canvas")[0],
chart = new GLPlot(canvas);
chart = new GLChart(canvas);
function doDraw() {
var draw = scope.draw;