equal
deleted
inserted
replaced
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 { |