client/js/renderer/scene.js
changeset 560 05a4380227f3
parent 557 18c36f038e9f
child 570 9698b3c8f31a
equal deleted inserted replaced
559:ad891b24324a 560:05a4380227f3
  1221                         },
  1221                         },
  1222                         "zoom_level": parseFloat(viewParams[2])
  1222                         "zoom_level": parseFloat(viewParams[2])
  1223                 };
  1223                 };
  1224                 this.view.setScale(params.zoom_level, new paper.Point(params.offset));
  1224                 this.view.setScale(params.zoom_level, new paper.Point(params.offset));
  1225             }
  1225             }
  1226             //if view parameters = autoscale or views_parameters options is false, we apply a zoom fit on the view.
  1226             //if view parameters = autoscale we apply a zoom fit on the view.
  1227             if ((typeof _params.view !== 'undefined' && _params.view === "autoscale")){
  1227             if ((typeof _params.view !== 'undefined' && _params.view === "autoscale")){
  1228                 this.view.autoScale();
  1228                 this.view.autoScale();
  1229             }
  1229             }
  1230             //if viewsNodes = false or views_nodes options is false, we show all the node by default.
  1230             //if viewsNodes = false we show all the node by default.
  1231             if (typeof _params.viewsNodes !== 'undefined'){
  1231             if (typeof _params.viewsNodes !== 'undefined'){
  1232                 if (_params.viewsNodes === "true"){
  1232                 if (_params.viewsNodes === "true"){
  1233                     this.view.hiddenNodes = (this.view.params.hidden_nodes || []).concat();
  1233                     this.view.hiddenNodes = (this.view.params.hidden_nodes || []).concat();
  1234                     this.view.hideNodes();
  1234                     this.view.hideNodes();
  1235                 } else {
  1235                 } else {