Changeset 19775


Ignore:
Timestamp:
11/20/15 13:29:17 (9 years ago)
Author:
dlcheng
Message:

CHG:Removing need to specifying canvasids in test101 plots

Location:
issm/trunk-jpl/src/m
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/plotoptions.js

    r19753 r19775  
    149149                 for (var i=0;i<numberofplots;i++) list[i].deleteduplicates();
    150150
     151                 //allocate canvasid automatically
     152                 for (var i=0;i<numberofplots;i++) list[i].addfield('canvasid',i);
     153
    151154                 //Get figure number (should be in options for subplot 1)
    152155                 this.figurenumber=list[0].getfieldvalue('figure',1);
  • issm/trunk-jpl/src/m/plot/plot_manager.js

    r19773 r19775  
    1515
    1616        //standard plot: initialize open Gl for each canvas:
    17         $('<canvas id="'+options.getfieldvalue('canvasid')+'" width="480" height="480"></canvas>)').appendTo('body');
     17        $('<canvas id="'+options.getfieldvalue('canvasid')+'" width="'+options.getfieldvalue('canvassize',480)+'" height="'+options.getfieldvalue('canvassize',480)+'"></canvas>)').appendTo('body');
    1818        var canvas=document.getElementById(options.getfieldvalue('canvasid'));
    1919
Note: See TracChangeset for help on using the changeset viewer.