Skip to content

Commit df407d2

Browse files
authored
core.scale cleanup (#7067)
1 parent 70b6eab commit df407d2

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

src/core/core.scale.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,9 @@ class Scale extends Element {
293293
return {min, max};
294294
}
295295

296+
/**
297+
* @private
298+
*/
296299
_invalidateCaches() {}
297300

298301
/**
@@ -1060,8 +1063,8 @@ class Scale extends Element {
10601063
});
10611064
}
10621065

1063-
items.ticksLength = ticksLength;
1064-
items.borderValue = borderValue;
1066+
me._ticksLength = ticksLength;
1067+
me._borderValue = borderValue;
10651068

10661069
return items;
10671070
}
@@ -1206,10 +1209,10 @@ class Scale extends Element {
12061209
const firstLineWidth = axisWidth;
12071210
context = {
12081211
scale: me,
1209-
tick: me.ticks[items.ticksLength - 1],
1212+
tick: me.ticks[me._ticksLength - 1],
12101213
};
1211-
const lastLineWidth = resolve([gridLines.lineWidth, 1], context, items.ticksLength - 1);
1212-
const borderValue = items.borderValue;
1214+
const lastLineWidth = resolve([gridLines.lineWidth, 1], context, me._ticksLength - 1);
1215+
const borderValue = me._borderValue;
12131216
let x1, x2, y1, y2;
12141217

12151218
if (me.isHorizontal()) {
@@ -1424,6 +1427,9 @@ class Scale extends Element {
14241427
return result;
14251428
}
14261429

1430+
/**
1431+
* @private
1432+
*/
14271433
_resolveTickFontOptions(index) {
14281434
const me = this;
14291435
const options = me.options.ticks;

0 commit comments

Comments
 (0)