mirror of
https://github.com/nasa/openmct.git
synced 2025-06-01 15:10:50 +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');
|
].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;
|
||||||
}
|
}
|
||||||
);
|
);
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user