From 8cb3ce4fd96a13dd95d6e9852250ca516b6e14ce Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Mon, 1 Dec 2014 10:12:07 -0800 Subject: [PATCH] [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. --- platform/features/plot/src/{GLPlot.js => GLChart.js} | 4 ++-- platform/features/plot/src/MCTChart.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) rename platform/features/plot/src/{GLPlot.js => GLChart.js} (98%) diff --git a/platform/features/plot/src/GLPlot.js b/platform/features/plot/src/GLChart.js similarity index 98% rename from platform/features/plot/src/GLPlot.js rename to platform/features/plot/src/GLChart.js index 06cd4de850..40d9d19049 100644 --- a/platform/features/plot/src/GLPlot.js +++ b/platform/features/plot/src/GLChart.js @@ -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; } ); \ No newline at end of file diff --git a/platform/features/plot/src/MCTChart.js b/platform/features/plot/src/MCTChart.js index 3b07860e59..585f370c74 100644 --- a/platform/features/plot/src/MCTChart.js +++ b/platform/features/plot/src/MCTChart.js @@ -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 = ""; @@ -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;