mirror of
https://github.com/nasa/openmct.git
synced 2024-12-19 05:07:52 +00:00
[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:
parent
b556b5e4f2
commit
8cb3ce4fd9
@ -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;
|
||||
}
|
||||
);
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user