client/js/renderer/scene.js
changeset 307 eaadfa988db4
parent 302 8eeb52f093e1
child 322 5897669370f4
equal deleted inserted replaced
306:40b3799b5228 307:eaadfa988db4
    26         this.selected_target = null;
    26         this.selected_target = null;
    27         this.edge_layer = new paper.Layer();
    27         this.edge_layer = new paper.Layer();
    28         this.node_layer = new paper.Layer();
    28         this.node_layer = new paper.Layer();
    29         this.buttons_layer = new paper.Layer();
    29         this.buttons_layer = new paper.Layer();
    30         this.delete_list = [];
    30         this.delete_list = [];
       
    31         this.redrawActive = true;
    31 
    32 
    32         if (_renkan.options.show_minimap) {
    33         if (_renkan.options.show_minimap) {
    33             this.minimap = {
    34             this.minimap = {
    34                     background_layer: new paper.Layer(),
    35                     background_layer: new paper.Layer(),
    35                     edge_layer: new paper.Layer(),
    36                     edge_layer: new paper.Layer(),
   823             _(this.representations).each(function(_repr) {
   824             _(this.representations).each(function(_repr) {
   824                 _repr.unselect();
   825                 _repr.unselect();
   825             });
   826             });
   826         },
   827         },
   827         redraw: function() {
   828         redraw: function() {
       
   829             if(! this.redrawActive ) {
       
   830                 return;
       
   831             }
   828             _(this.representations).each(function(_representation) {
   832             _(this.representations).each(function(_representation) {
   829                 _representation.redraw(true);
   833                 _representation.redraw(true);
   830             });
   834             });
   831             if (this.minimap) {
   835             if (this.minimap) {
   832                 this.redrawMiniframe();
   836                 this.redrawMiniframe();