mirror of
https://github.com/nasa/openmct.git
synced 2025-06-13 20:58:15 +00:00
[Plot] Test 2D chart drawing
Test drawing using fallback canvas 2D API, WTD-1070.
This commit is contained in:
@ -14,10 +14,10 @@ define(
|
||||
*/
|
||||
function Canvas2DChart(canvas) {
|
||||
var c2d = canvas.getContext('2d'),
|
||||
dimensions,
|
||||
origin,
|
||||
width = canvas.width,
|
||||
height = canvas.height;
|
||||
height = canvas.height,
|
||||
dimensions = [ width, height ],
|
||||
origin = [ 0, 0 ];
|
||||
|
||||
// Convert from logical to physical x coordinates
|
||||
function x(v) {
|
||||
|
Reference in New Issue
Block a user