Skip to content

Commit ad4b380

Browse files
author
Cris
committed
Documenting code
1 parent c83d2cf commit ad4b380

File tree

3 files changed

+2
-28
lines changed

3 files changed

+2
-28
lines changed

resources/src/[email protected]/components/[email protected]

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@
4444
**************************************************************************/
4545
const self = this;
4646
const config = opts;
47-
//config.unit_names = !!config.unit_names ? config.unit_names : ["Unit A", "Unit 2", "Other unit", "D"];
48-
47+
4948
//! RTSConfigurationDatePanel: -create_event_on_calendar_inputs()
5049
const create_event_on_calendar_inputs = () => {
5150
const input_dates = ["start_input", "end_input"];

resources/src/[email protected]/components/[email protected]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<ul class="headers" data-role="tabs" data-expand="true">
44
<li class="active"><a href="#config-panel-blank">Default</a></li>
55
<li><a class="date-settings-button" href="#date-settings">Date settings</a></li>
6-
<li><a class="change-point-settings-button" href="#change-point-settings">Change point settings</a></li>
6+
<li><a class="change-point-settings-button" href="#change-point-settings">Change-point settings</a></li>
77
</ul>
88
<div class="h-100" style="background-color: #f5f6f7;">
99
<div id="config-panel-blank" class="h-100 w-100 tab">

resources/src/[email protected]/components/[email protected]

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -308,15 +308,11 @@
308308
//! RTSThreeColumnPanel: -panel_visibility(selector, action)
309309
const panel_visibility = (selector, action) => {
310310
self.root.querySelector(selector).classList[action]("hidden");
311-
//setTimeout(update_panel_widths, 10);
312311
};
313312

314313
//! RTSThreeColumnPanel: +close_left_panel(set_blank=false)
315314
//! RTSThreeColumnPanel <-- RTSOutlinePanel
316315
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");*/
320316
if(set_blank){
321317
self.refs.leftpanel.set_blank();
322318
}
@@ -325,25 +321,16 @@
325321

326322
//! RTSThreeColumnPanel: +show_left_panel()
327323
self.show_left_panel = () => {
328-
/*panel_visibility('[ref="leftpanel"]', "remove")
329-
panel_visibility('[ref="rightpanel"]', "add")
330-
//update_panel_widths(0, "show");*/
331324
update_panel_widths(0, "show");
332325
};
333326

334327
//! RTSThreeColumnPanel: +close_right_panel()
335328
self.close_right_panel = () => {
336-
/*panel_visibility('[ref="leftpanel"]', "add")
337-
panel_visibility('[ref="rightpanel"]', "add")
338-
//update_panel_widths(0, "hide");*/
339329
update_panel_widths(2, "hide");
340330
};
341331

342332
//! RTSThreeColumnPanel: +show_right_panel()
343333
self.show_right_panel = () => {
344-
/*panel_visibility('[ref="rightpanel"]', "remove")
345-
panel_visibility('[ref="leftpanel"]', "add")
346-
//update_panel_widths(0, "show");*/
347334
update_panel_widths(2, "show");
348335
};
349336

@@ -400,17 +387,6 @@
400387
//! RTSThreeColumnPanel: +show_filtered_plots(unitindex, unitname, plot_types)
401388
//! RTSThreeColumnPanel <-- RTSPlotCollection
402389
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-
414390
self.show_main_panel(".plot-container");
415391
self.refs.plot_collection.update()
416392
self.refs.plot_collection.opts.plots = plot_types.map((plot_type) => ({
@@ -438,7 +414,6 @@
438414
}, null, null, 'page-width'],
439415
allowNegativeOffset: true
440416
});
441-
//self.root.querySelector(".paper-model-1 iframe").src = "./lib/[email protected]/adapted/web/viewer.html?file=../../../../../model/1707.01861.pdf#zoom=page-width&";
442417
};
443418

444419
//! RTSThreeColumnPanel: +show_full_report()

0 commit comments

Comments
 (0)