Skip to content

Commit f234f0e

Browse files
committed
Update docs
1 parent 77a1e7b commit f234f0e

File tree

5 files changed

+27
-28
lines changed

5 files changed

+27
-28
lines changed

modules/base/ObjectPainter.mjs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ class ObjectPainter extends BasePainter {
182182
* @param {object} obj - new version of object, values will be updated in original object
183183
* @param {string} [opt] - when specified, new draw options
184184
* @returns {boolean|Promise} for object redraw
185-
* @desc Two actions typically done by redraw - update object content via {@link ObjectPainter.updateObject} and
186-
* then redraw correspondent pad via {@link ObjectPainter.redrawPad}. If possible one should redefine
185+
* @desc Two actions typically done by redraw - update object content via {@link ObjectPainter#updateObject} and
186+
* then redraw correspondent pad via {@link ObjectPainter#redrawPad}. If possible one should redefine
187187
* only updateObject function and keep this function unchanged. But for some special painters this function is the
188188
* only way to control how object can be update while requested from the server
189189
* @protected */
@@ -269,7 +269,7 @@ class ObjectPainter extends BasePainter {
269269
}
270270

271271
/** @summary Checks if draw elements were resized and drawing should be updated.
272-
* @desc Redirects to {@link TPadPainter.checkCanvasResize}
272+
* @desc Redirects to {@link TPadPainter#checkCanvasResize}
273273
* @private */
274274
checkResize(arg) {
275275
let p = this.getCanvPainter();
@@ -291,7 +291,7 @@ class ObjectPainter extends BasePainter {
291291
}
292292

293293
/** @summary Returns created <g> element used for object drawing
294-
* @desc Element should be created by {@link ObjectPainter.createG}
294+
* @desc Element should be created by {@link ObjectPainter#createG}
295295
* @protected */
296296
getG() { return this.draw_g; }
297297

@@ -484,7 +484,7 @@ class ObjectPainter extends BasePainter {
484484
}
485485

486486
/** @summary Converts pad SVG x or y coordinates into axis values.
487-
* @desc Reverse transformation for {@link ObjectPainter.axisToSvg}
487+
* @desc Reverse transformation for {@link ObjectPainter#axisToSvg}
488488
* @param {string} axis - name like "x" or "y"
489489
* @param {number} coord - graphics coordiante.
490490
* @param {boolean} ndc - kind of return value

modules/core.mjs

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,11 @@ function isArrayProto(proto) {
8383
return proto.length == 14 ? 1 : 2;
8484
}
8585

86-
/** @summary Specialized JSROOT constants, used in {@link settings}
87-
* @namespace
88-
* @private */
86+
/** @desc Specialized JSROOT constants, used in {@link settings}
87+
* @namespace */
8988
let constants = {
9089
/** @summary Kind of 3D rendering, used for {@link settings.Render3D}
91-
* @namespace
92-
* @private */
90+
* @namespace */
9391
Render3D: {
9492
/** @summary Default 3D rendering, normally WebGL, if not supported - SVG */
9593
Default: 0,
@@ -107,29 +105,27 @@ let constants = {
107105
}
108106
},
109107
/** @summary Way to embed 3D into SVG, used for {@link settings.Embed3D}
110-
* @namespace
111-
* @private */
108+
* @namespace */
112109
Embed3D: {
113110
/** @summary Do not embed 3D drawing, use complete space */
114111
NoEmbed: -1,
115-
/** @summary Default embeding mode, on Firefox is really ```Embed```, on all other ```Overlay``` */
112+
/** @summary Default embeding mode - on Firefox and latest Chrome is real ```Embed```, on all other ```Overlay``` */
116113
Default: 0,
117-
/** @summary WebGL canvas not inserted into SVG, but just overlayed The only way how Chrome browser can be used */
114+
/** @summary WebGL canvas not inserted into SVG, but just overlayed The only way how earlier Chrome browser can be used */
118115
Overlay: 1,
119-
/** @summary Really embed WebGL Canvas into SVG, only works with Firefox */
116+
/** @summary Really embed WebGL Canvas into SVG */
120117
Embed: 2,
121-
/** @summary Embeding, but when SVG rendering or SVG image converion is used
122-
* @private */
118+
/** @summary Embeding, but when SVG rendering or SVG image converion is used */
123119
EmbedSVG: 3,
120+
/** @summary Convert string values into number */
124121
fromString: function(s) {
125122
if (s === "embed") return this.Embed;
126123
if (s === "overlay") return this.Overlay;
127124
return this.Default;
128125
}
129126
},
130127
/** @summary How to use latex in text drawing, used for {@link settings.Latex}
131-
* @namespace
132-
* @private */
128+
* @namespace */
133129
Latex: {
134130
/** @summary do not use Latex at all for text drawing */
135131
Off: 0,
@@ -141,6 +137,7 @@ let constants = {
141137
MathJax: 3,
142138
/** @summary always use MathJax for text rendering */
143139
AlwaysMathJax: 4,
140+
/** @summary Convert string values into number */
144141
fromString: function(s) {
145142
if (!s || (typeof s !== 'string'))
146143
return this.Normal;
@@ -164,12 +161,12 @@ let constants = {
164161
}
165162
};
166163

167-
/** @summary Central JSROOT settings, independent from {@link gStyle}
164+
/** @desc Global JSROOT settings
168165
* @namespace */
169166
let settings = {
170167
/** @summary Render of 3D drawing methods, see {@link constants.Render3D} for possible values */
171168
Render3D: constants.Render3D.Default,
172-
/** @summary Render of 3D drawing methods in batch mode, see {@link constants.Render3D} for possible values */
169+
/** @summary 3D drawing methods in batch mode, see {@link constants.Render3D} for possible values */
173170
Render3DBatch: constants.Render3D.Default,
174171
/** @summary Way to embed 3D drawing in SVG, see {@link constants.Embed3D} for possible values */
175172
Embed3D: constants.Embed3D.Default,

modules/gui.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ function readStyleFromURL(url) {
102102

103103

104104
/** @summary Build main GUI
105+
* @desc Used in many HTML files to create JSROOT GUI elements
106+
* @param {String} gui_element - id of the `<div>` element
107+
* @param {String} [gui_kind] - either "online", "nobrowser", "draw"
105108
* @returns {Promise} when completed */
106109
function buildGUI(gui_element, gui_kind) {
107110
let myDiv = (typeof gui_element == 'string') ? d3_select('#' + gui_element) : d3_select(gui_element);

modules/gui/display.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class MDIDisplay extends BasePainter {
127127
/**
128128
* @summary Custom MDI display
129129
*
130-
* @desc All HTML frames should be created before and add via {@link CustomDisplay.addFrame} calls
130+
* @desc All HTML frames should be created before and add via {@link CustomDisplay#addFrame} calls
131131
* @private
132132
*/
133133

modules/io.mjs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2680,12 +2680,11 @@ class TDirectory {
26802680
});
26812681
}
26822682

2683-
} // TDirectory
2683+
} // class TDirectory
26842684

26852685
/**
26862686
* @summary Interface to read objects from ROOT files
26872687
*
2688-
* @hideconstructor
26892688
* @desc Use {@link openFile} to create instance of the class
26902689
*/
26912690

@@ -2739,7 +2738,7 @@ class TFile {
27392738
}
27402739

27412740
/** @summary Assign BufferArray with file contentOpen file
2742-
* @private */
2741+
* @private */
27432742
assignFileContent(bufArray) {
27442743
this.fFileContent = new TBuffer(new DataView(bufArray));
27452744
this.fAcceptRanges = false;
@@ -2748,8 +2747,8 @@ class TFile {
27482747
}
27492748

27502749
/** @summary Open file
2751-
* @returns {Promise} after file keys are read
2752-
* @private */
2750+
* @returns {Promise} after file keys are read
2751+
* @private */
27532752
_open() {
27542753
if (!this.fAcceptRanges || this.fSkipHeadRequest)
27552754
return this.readKeys();
@@ -3300,7 +3299,7 @@ class TFile {
33003299

33013300
/** @summary Read the directory content from a root file
33023301
* @desc If directory was already read - return previously read object
3303-
* Same functionality as {@link TFile.readObject}
3302+
* Same functionality as {@link TFile#readObject}
33043303
* @param {string} dir_name - directory name
33053304
* @param {number} [cycle] - directory cycle
33063305
* @returns {Promise} - promise with read directory */

0 commit comments

Comments
 (0)