Skip to content

Commit 43559a8

Browse files
committed
Next portion of private members
1 parent b0acb50 commit 43559a8

File tree

9 files changed

+27
-16
lines changed

9 files changed

+27
-16
lines changed

modules/base/colors.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ function getColor(indx) {
114114
/** @summary Add new color
115115
* @param {string} rgb - color name or just string with rgb value
116116
* @param {array} [lst] - optional colors list, to which add colors
117-
* @returns {number} index of new color */
117+
* @returns {number} index of new color
118+
* @private */
118119
function addColor(rgb, lst) {
119120
if (!lst) lst = gbl_colors_list;
120121
let indx = lst.indexOf(rgb);

modules/base/latex.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,8 @@ const approximateLabelWidth = (label, font, fsize) => {
209209
return sum/1000*symbol_width;
210210
};
211211

212-
/** array defines features supported by latex parser, used by both old and new parsers */
212+
/** @summary array defines features supported by latex parser, used by both old and new parsers
213+
* @private */
213214
const latex_features = [
214215
{ name: "#it{" }, // italic
215216
{ name: "#bf{" }, // bold

modules/core.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ if ((typeof document !== "undefined") && (typeof window !== "undefined")) {
7373
}
7474

7575
/** @summary Check if prototype string match to array (typed on untyped)
76-
* @returns {Number} 0 - not array, 1 - regular array, 2 - typed array */
76+
* @returns {Number} 0 - not array, 1 - regular array, 2 - typed array
77+
* @private */
7778
function isArrayProto(proto) {
7879
if ((proto.length < 14) || (proto.indexOf('[object ') != 0)) return 0;
7980
let p = proto.indexOf('Array]');

modules/geom/TGeoPainter.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5075,7 +5075,7 @@ function drawAxis3D() {
50755075
* @param {boolean} [opt.dflt_colors=false] - use default ROOT colors
50765076
* @returns {object} Object3D with created model
50775077
* @example
5078-
* import { build } from './path_to_jsroot/modules/geom.mjs';
5078+
* import { build } from './path_to_jsroot/modules/geom/TGeoPainter.mjs';
50795079
* let obj3d = build(obj);
50805080
* // this is three.js object and can be now inserted in the scene
50815081
*/

modules/gpad/RCanvasPainter.mjs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -785,8 +785,8 @@ registerMethods("ROOT::Experimental::RPalette", {
785785
return arr;
786786
},
787787

788-
/** @summary extract color with ordinal value between 0 and 1 */
789788
getColorOrdinal(value) {
789+
// extract color with ordinal value between 0 and 1
790790
if (!this.fColors)
791791
return "black";
792792
if ((typeof value != "number") || (value < 0))
@@ -811,10 +811,10 @@ registerMethods("ROOT::Experimental::RPalette", {
811811
return this.extractRColor(next.fColor);
812812
},
813813

814-
/** @summary set full z scale range, used in zooming */
815814
setFullRange(min, max) {
816-
this.full_min = min;
817-
this.full_max = max;
815+
// set full z scale range, used in zooming
816+
this.full_min = min;
817+
this.full_max = max;
818818
},
819819

820820
createContour(logz, nlevels, zmin, zmax, zminpositive) {
@@ -879,7 +879,8 @@ function drawRFont() {
879879
return true;
880880
}
881881

882-
/** @summary draw RAxis object */
882+
/** @summary draw RAxis object
883+
* @private */
883884
function drawRAxis(dom, obj, opt) {
884885
let painter = new RAxisPainter(dom, obj, opt);
885886
painter.disable_zooming = true;
@@ -888,7 +889,8 @@ function drawRAxis(dom, obj, opt) {
888889
.then(() => painter);
889890
}
890891

891-
/** @summary draw RFrame object */
892+
/** @summary draw RFrame object
893+
* @private */
892894
function drawRFrame(dom, obj, opt) {
893895
let p = new RFramePainter(dom, obj);
894896
if (opt == "3d") p.mode3d = true;

modules/gpad/TFramePainter.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ function setPainterTooltipEnabled(painter, on) {
3131
painter.control.setTooltipEnabled(on);
3232
}
3333

34-
/** @summary Add drag for interactive rectangular elements for painter */
34+
/** @summary Add drag for interactive rectangular elements for painter
35+
* @private */
3536
function addDragHandler(_painter, arg) {
3637
if (!settings.MoveResize || isBatchMode()) return;
3738

modules/hist/TH2Painter.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ import { TAxisPainter } from '../gpad/TAxisPainter.mjs';
1111
import { TH2Painter as TH2Painter2D } from '../hist2d/TH2Painter.mjs';
1212

1313

14-
/** @summary Draw TH2Poly histogram as lego */
14+
/** @summary Draw TH2Poly histogram as lego
15+
* @private */
1516
function drawTH2PolyLego(painter) {
1617
let histo = painter.getHisto(),
1718
pmain = painter.getFramePainter(),

modules/hist/hist3d.mjs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,6 +1036,8 @@ function drawXYZ(toplevel, AxisPainter, opts) {
10361036
}
10371037
}
10381038

1039+
/** @summary Assign 3D methods for frame painter
1040+
* @private */
10391041
function assignFrame3DMethods(fpainter) {
10401042
Object.assign(fpainter, { create3DScene, render3D, resize3D, highlightBin3D, set3DOptions, drawXYZ });
10411043
}
@@ -1097,7 +1099,6 @@ function drawBinsLego(painter, is_v7 = false) {
10971099
return painter._show_empty_bins;
10981100
};
10991101

1100-
11011102
let levels = [ axis_zmin, axis_zmax ], palette = null;
11021103

11031104
// DRAW ALL CUBES
@@ -1403,7 +1404,8 @@ function drawBinsLego(painter, is_v7 = false) {
14031404
main.toplevel.add(line);
14041405
}
14051406

1406-
/** @summary Draw TH2 histogram in error mode */
1407+
/** @summary Draw TH2 histogram in error mode
1408+
* @private */
14071409
function drawBinsError3D(painter, is_v7 = false) {
14081410
const main = painter.getFramePainter(),
14091411
histo = painter.getHisto(),
@@ -1540,7 +1542,8 @@ function drawBinsContour3D(painter, realz = false, is_v7 = false) {
15401542
}
15411543

15421544

1543-
/** @summary Draw TH2 histograms in surf mode */
1545+
/** @summary Draw TH2 histograms in surf mode
1546+
* @private */
15441547
function drawBinsSurf3D(painter, is_v7 = false) {
15451548
let histo = painter.getHisto(),
15461549
main = painter.getFramePainter(),

modules/tree.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ class TSelector {
105105
/** @summary Checks array kind
106106
* @desc return 0 when not array
107107
* 1 - when arbitrary array
108-
* 2 - when plain (1-dim) array with same-type content */
108+
* 2 - when plain (1-dim) array with same-type content
109+
* @private */
109110
function checkArrayPrototype(arr, check_content) {
110111
if (typeof arr !== 'object') return 0;
111112

0 commit comments

Comments
 (0)