|
308 | 308 | //! RTSThreeColumnPanel: -panel_visibility(selector, action) |
309 | 309 | const panel_visibility = (selector, action) => { |
310 | 310 | self.root.querySelector(selector).classList[action]("hidden"); |
311 | | - //setTimeout(update_panel_widths, 10); |
312 | 311 | }; |
313 | 312 |
|
314 | 313 | //! RTSThreeColumnPanel: +close_left_panel(set_blank=false) |
315 | 314 | //! RTSThreeColumnPanel <-- RTSOutlinePanel |
316 | 315 | self.close_left_panel = (set_blank=false) => { |
317 | | - /*panel_visibility('[ref="leftpanel"]', "add") |
318 | | - panel_visibility('[ref="rightpanel"]', "add") |
319 | | - //update_panel_widths(0, "hide");*/ |
320 | 316 | if(set_blank){ |
321 | 317 | self.refs.leftpanel.set_blank(); |
322 | 318 | } |
|
325 | 321 |
|
326 | 322 | //! RTSThreeColumnPanel: +show_left_panel() |
327 | 323 | self.show_left_panel = () => { |
328 | | - /*panel_visibility('[ref="leftpanel"]', "remove") |
329 | | - panel_visibility('[ref="rightpanel"]', "add") |
330 | | - //update_panel_widths(0, "show");*/ |
331 | 324 | update_panel_widths(0, "show"); |
332 | 325 | }; |
333 | 326 |
|
334 | 327 | //! RTSThreeColumnPanel: +close_right_panel() |
335 | 328 | self.close_right_panel = () => { |
336 | | - /*panel_visibility('[ref="leftpanel"]', "add") |
337 | | - panel_visibility('[ref="rightpanel"]', "add") |
338 | | - //update_panel_widths(0, "hide");*/ |
339 | 329 | update_panel_widths(2, "hide"); |
340 | 330 | }; |
341 | 331 |
|
342 | 332 | //! RTSThreeColumnPanel: +show_right_panel() |
343 | 333 | self.show_right_panel = () => { |
344 | | - /*panel_visibility('[ref="rightpanel"]', "remove") |
345 | | - panel_visibility('[ref="leftpanel"]', "add") |
346 | | - //update_panel_widths(0, "show");*/ |
347 | 334 | update_panel_widths(2, "show"); |
348 | 335 | }; |
349 | 336 |
|
|
400 | 387 | //! RTSThreeColumnPanel: +show_filtered_plots(unitindex, unitname, plot_types) |
401 | 388 | //! RTSThreeColumnPanel <-- RTSPlotCollection |
402 | 389 | self.show_filtered_plots = (unitindex, unitname, plot_types) => { |
403 | | - /* |
404 | | - "plain" class="plain" model={model}></rts-model-plot> |
405 | | - <rts-model-plot type="loglikelihood" class="loglikelihood" model={model}></rts-model-plot> |
406 | | - |
407 | | - <rts-model-plot type="before-change-point-residuals" class="before-change-point-residuals" model={model}></rts-model-plot> |
408 | | - <rts-model-plot type="before-change-point-autocorrelation" class="before-change-point-autocorrelation" model={model}></rts-model-plot> |
409 | | - <rts-model-plot type="after-change-point-residuals" class="after-change-point-residuals" model={model}></rts-model-plot> |
410 | | - <rts-model-plot type="after-change-point-autocorrelation" class="after-change-point-autocorrelation" model={model}></rts-model-plot> |
411 | | - <rts-model-plot type="box-plot-residuals" |
412 | | - */ |
413 | | - |
414 | 390 | self.show_main_panel(".plot-container"); |
415 | 391 | self.refs.plot_collection.update() |
416 | 392 | self.refs.plot_collection.opts.plots = plot_types.map((plot_type) => ({ |
|
438 | 414 | }, null, null, 'page-width'], |
439 | 415 | allowNegativeOffset: true |
440 | 416 | }); |
441 | | - //self.root.querySelector(".paper-model-1 iframe").src = "./lib/[email protected]/adapted/web/viewer.html?file=../../../../../model/1707.01861.pdf#zoom=page-width&"; |
442 | 417 | }; |
443 | 418 |
|
444 | 419 | //! RTSThreeColumnPanel: +show_full_report() |
|
0 commit comments