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

View File

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