Skip to content

Commit b32de38

Browse files
committed
Allow to use online RCanvas without openui5
It is already implemented with TWebCanvas, just copy and paste few lines
1 parent f3aacdb commit b32de38

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

scripts/JSRoot.core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105

106106
/** @summary JSROOT version date
107107
* @desc Release date in format day/month/year like "6/01/2021"*/
108-
JSROOT.version_date = "11/01/2021";
108+
JSROOT.version_date = "13/01/2021";
109109

110110
/** @summary JSROOT version id and date
111111
* @desc Produced by concatenation of {@link JSROOT.version_id} and {@link JSROOT.version_date}

scripts/JSRoot.v7gpad.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3248,6 +3248,16 @@ JSROOT.define(['d3', 'painter'], (d3, jsrp) => {
32483248
if (this.batch_mode && this.iscan)
32493249
this._fixed_size = true;
32503250

3251+
if (JSROOT.BrowserLayout && !this.batch_mode && !this.use_openui && !this.brlayout) {
3252+
let mainid = this.selectDom().attr("id");
3253+
if (mainid && (typeof mainid == "string")) {
3254+
this.brlayout = new JSROOT.BrowserLayout(mainid, null, this);
3255+
this.brlayout.create(mainid, true);
3256+
this.setDom(this.brlayout.drawing_divid()); // need to create canvas
3257+
jsrp.registerForResize(this.brlayout);
3258+
}
3259+
}
3260+
32513261
this.createCanvasSvg(0);
32523262
this.addPadButtons(true);
32533263

0 commit comments

Comments
 (0)