evui 3.4.118 → 3.4.119
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/evui.common.js +122 -112
- package/dist/evui.common.js.map +1 -1
- package/dist/evui.umd.js +122 -112
- package/dist/evui.umd.js.map +1 -1
- package/dist/evui.umd.min.js +1 -1
- package/dist/evui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/chart/model/model.store.js +4 -2
- package/src/components/chart/scale/scale.js +2 -2
- package/src/components/chart/scale/scale.time.category.js +2 -2
package/dist/evui.common.js
CHANGED
|
@@ -11171,7 +11171,7 @@ module.exports = exports;
|
|
|
11171
11171
|
/***/ "9224":
|
|
11172
11172
|
/***/ (function(module) {
|
|
11173
11173
|
|
|
11174
|
-
module.exports = JSON.parse("{\"a\":\"3.4.
|
|
11174
|
+
module.exports = JSON.parse("{\"a\":\"3.4.119\"}");
|
|
11175
11175
|
|
|
11176
11176
|
/***/ }),
|
|
11177
11177
|
|
|
@@ -38816,12 +38816,14 @@ var modules = {
|
|
|
38816
38816
|
});
|
|
38817
38817
|
} else {
|
|
38818
38818
|
seriesIDs.forEach(function (seriesID) {
|
|
38819
|
+
var _data$seriesID, _data$seriesID2;
|
|
38820
|
+
|
|
38819
38821
|
var series = _this.seriesList[seriesID];
|
|
38820
|
-
var hasPassingValueInData = data[seriesID].some(function (item) {
|
|
38822
|
+
var hasPassingValueInData = data === null || data === void 0 ? void 0 : (_data$seriesID = data[seriesID]) === null || _data$seriesID === void 0 ? void 0 : _data$seriesID.some(function (item) {
|
|
38821
38823
|
return item === series.passingValue;
|
|
38822
38824
|
});
|
|
38823
38825
|
series.hasPassingValueInData = hasPassingValueInData;
|
|
38824
|
-
var sData = data[seriesID].map(function (item) {
|
|
38826
|
+
var sData = data === null || data === void 0 ? void 0 : (_data$seriesID2 = data[seriesID]) === null || _data$seriesID2 === void 0 ? void 0 : _data$seriesID2.map(function (item) {
|
|
38825
38827
|
if (series.interpolation === 'zero' && !item) {
|
|
38826
38828
|
return 0;
|
|
38827
38829
|
}
|
|
@@ -45232,116 +45234,122 @@ var scale_Scale = /*#__PURE__*/function () {
|
|
|
45232
45234
|
}
|
|
45233
45235
|
|
|
45234
45236
|
if ((_this$labelStyle2 = this.labelStyle) !== null && _this$labelStyle2 !== void 0 && _this$labelStyle2.show) {
|
|
45235
|
-
|
|
45236
|
-
|
|
45237
|
-
|
|
45238
|
-
|
|
45239
|
-
|
|
45240
|
-
|
|
45241
|
-
|
|
45242
|
-
|
|
45243
|
-
|
|
45244
|
-
|
|
45245
|
-
|
|
45246
|
-
|
|
45247
|
-
|
|
45248
|
-
|
|
45249
|
-
|
|
45237
|
+
(function () {
|
|
45238
|
+
var distance = endPoint - startPoint;
|
|
45239
|
+
var labelGap = distance / steps;
|
|
45240
|
+
var ticks = [];
|
|
45241
|
+
var size = stepInfo.interval;
|
|
45242
|
+
var labelCenter = null;
|
|
45243
|
+
var linePosition = null;
|
|
45244
|
+
var offsetStartPoint = startPoint;
|
|
45245
|
+
var axisMinForLabel = axisMin;
|
|
45246
|
+
|
|
45247
|
+
if (_this3.type === 'x' && options !== null && options !== void 0 && options.axesX[0].flow && dataLabels.length !== steps + 1) {
|
|
45248
|
+
var axisMinByMinutes = Math.floor(axisMin / size) * size;
|
|
45249
|
+
|
|
45250
|
+
if (axisMinByMinutes !== +axisMin) {
|
|
45251
|
+
axisMinForLabel = axisMinByMinutes + size;
|
|
45252
|
+
offsetStartPoint += distance / (axisMax - axisMin) * (axisMinForLabel - axisMin);
|
|
45253
|
+
}
|
|
45250
45254
|
}
|
|
45251
|
-
}
|
|
45252
|
-
|
|
45253
|
-
ctx.strokeStyle = this.gridLineColor;
|
|
45254
|
-
ctx.lineWidth = 1;
|
|
45255
|
-
aliasPixel = helpers_util.aliasPixel(ctx.lineWidth);
|
|
45256
|
-
var labelText;
|
|
45257
45255
|
|
|
45258
|
-
|
|
45259
|
-
|
|
45256
|
+
ctx.strokeStyle = _this3.gridLineColor;
|
|
45257
|
+
ctx.lineWidth = 1;
|
|
45258
|
+
aliasPixel = helpers_util.aliasPixel(ctx.lineWidth);
|
|
45259
|
+
var labelText;
|
|
45260
45260
|
|
|
45261
|
-
|
|
45262
|
-
|
|
45261
|
+
var _loop = function _loop(ix) {
|
|
45262
|
+
labelCenter = Math.round(offsetStartPoint + labelGap * ix);
|
|
45263
45263
|
|
|
45264
|
-
|
|
45265
|
-
|
|
45266
|
-
linePosition = labelCenter + aliasPixel;
|
|
45267
|
-
labelText = this.getLabelFormat(Math.min(axisMax, ticks[ix]), {
|
|
45268
|
-
prev: (_ticks = ticks[ix - 1]) !== null && _ticks !== void 0 ? _ticks : ''
|
|
45269
|
-
});
|
|
45270
|
-
var isBlurredLabel = ((_this$options = this.options) === null || _this$options === void 0 ? void 0 : (_this$options$selectL = _this$options.selectLabel) === null || _this$options$selectL === void 0 ? void 0 : _this$options$selectL.use) && ((_this$options2 = this.options) === null || _this$options2 === void 0 ? void 0 : (_this$options2$select = _this$options2.selectLabel) === null || _this$options2$select === void 0 ? void 0 : _this$options2$select.useLabelOpacity) && this.options.horizontal === (this.type === 'y') && (selectLabelInfo === null || selectLabelInfo === void 0 ? void 0 : (_selectLabelInfo$data = selectLabelInfo.dataIndex) === null || _selectLabelInfo$data === void 0 ? void 0 : _selectLabelInfo$data.length) && !(selectLabelInfo !== null && selectLabelInfo !== void 0 && selectLabelInfo.label.map(function (t, index) {
|
|
45271
|
-
var _selectLabelInfo$labe;
|
|
45264
|
+
if (labelCenter <= endPoint || _this3.type !== 'x' || !(options !== null && options !== void 0 && options.axesX[0].flow) || dataLabels.length === steps + 1) {
|
|
45265
|
+
var _ticks, _this3$options, _this3$options$select, _this3$options2, _this3$options2$selec, _selectLabelInfo$data;
|
|
45272
45266
|
|
|
45273
|
-
|
|
45274
|
-
|
|
45267
|
+
ctx.beginPath();
|
|
45268
|
+
ticks[ix] = axisMinForLabel + ix * stepValue;
|
|
45269
|
+
linePosition = labelCenter + aliasPixel;
|
|
45270
|
+
labelText = _this3.getLabelFormat(Math.min(axisMax, ticks[ix]), {
|
|
45271
|
+
prev: (_ticks = ticks[ix - 1]) !== null && _ticks !== void 0 ? _ticks : ''
|
|
45275
45272
|
});
|
|
45276
|
-
|
|
45277
|
-
|
|
45278
|
-
var defaultOpacity = 1;
|
|
45273
|
+
var isBlurredLabel = ((_this3$options = _this3.options) === null || _this3$options === void 0 ? void 0 : (_this3$options$select = _this3$options.selectLabel) === null || _this3$options$select === void 0 ? void 0 : _this3$options$select.use) && ((_this3$options2 = _this3.options) === null || _this3$options2 === void 0 ? void 0 : (_this3$options2$selec = _this3$options2.selectLabel) === null || _this3$options2$selec === void 0 ? void 0 : _this3$options2$selec.useLabelOpacity) && _this3.options.horizontal === (_this3.type === 'y') && (selectLabelInfo === null || selectLabelInfo === void 0 ? void 0 : (_selectLabelInfo$data = selectLabelInfo.dataIndex) === null || _selectLabelInfo$data === void 0 ? void 0 : _selectLabelInfo$data.length) && !(selectLabelInfo !== null && selectLabelInfo !== void 0 && selectLabelInfo.label.map(function (t) {
|
|
45274
|
+
var _ticks2;
|
|
45279
45275
|
|
|
45280
|
-
|
|
45281
|
-
|
|
45282
|
-
|
|
45276
|
+
return _this3.getLabelFormat(Math.min(axisMax, t), {
|
|
45277
|
+
prev: (_ticks2 = ticks[ix - 1]) !== null && _ticks2 !== void 0 ? _ticks2 : ''
|
|
45278
|
+
});
|
|
45279
|
+
}).includes(labelText));
|
|
45280
|
+
var labelColor = _this3.labelStyle.color;
|
|
45281
|
+
var defaultOpacity = 1;
|
|
45283
45282
|
|
|
45284
|
-
|
|
45285
|
-
|
|
45283
|
+
if (helpers_util.getColorStringType(labelColor) === 'RGBA') {
|
|
45284
|
+
defaultOpacity = helpers_util.getOpacity(labelColor);
|
|
45285
|
+
}
|
|
45286
45286
|
|
|
45287
|
-
|
|
45288
|
-
var
|
|
45287
|
+
ctx.fillStyle = helpers_util.colorStringToRgba(labelColor, isBlurredLabel ? 0.1 : defaultOpacity);
|
|
45288
|
+
var labelPoint;
|
|
45289
45289
|
|
|
45290
|
-
|
|
45290
|
+
if (_this3.type === 'x') {
|
|
45291
|
+
var _options$brush, _options$selectItem, _this3$options3;
|
|
45291
45292
|
|
|
45292
|
-
|
|
45293
|
-
ctx.fillText(labelText, labelCenter, labelPoint);
|
|
45294
|
-
}
|
|
45293
|
+
labelPoint = _this3.position === 'top' ? offsetPoint - 10 : offsetPoint + 10;
|
|
45295
45294
|
|
|
45296
|
-
|
|
45297
|
-
|
|
45298
|
-
|
|
45299
|
-
if (selectedLabel === labelText) {
|
|
45300
|
-
var _this$labelStyle3, _options$selectItem2, _options$selectItem2$, _options$selectItem3, _options$selectItem3$;
|
|
45301
|
-
|
|
45302
|
-
var height = Math.round(ctx.measureText((_this$labelStyle3 = this.labelStyle) === null || _this$labelStyle3 === void 0 ? void 0 : _this$labelStyle3.fontSize).width);
|
|
45303
|
-
helpers_util.showLabelTip({
|
|
45304
|
-
ctx: this.ctx,
|
|
45305
|
-
width: Math.round(ctx.measureText(selectedLabel).width) + 10,
|
|
45306
|
-
height: height,
|
|
45307
|
-
x: labelCenter,
|
|
45308
|
-
y: labelPoint + (height - 2),
|
|
45309
|
-
borderRadius: 2,
|
|
45310
|
-
arrowSize: 3,
|
|
45311
|
-
text: labelText,
|
|
45312
|
-
backgroundColor: options === null || options === void 0 ? void 0 : (_options$selectItem2 = options.selectItem) === null || _options$selectItem2 === void 0 ? void 0 : (_options$selectItem2$ = _options$selectItem2.labelTipStyle) === null || _options$selectItem2$ === void 0 ? void 0 : _options$selectItem2$.backgroundColor,
|
|
45313
|
-
textColor: options === null || options === void 0 ? void 0 : (_options$selectItem3 = options.selectItem) === null || _options$selectItem3 === void 0 ? void 0 : (_options$selectItem3$ = _options$selectItem3.labelTipStyle) === null || _options$selectItem3$ === void 0 ? void 0 : _options$selectItem3$.textColor
|
|
45314
|
-
});
|
|
45295
|
+
if (options !== null && options !== void 0 && (_options$brush = options.brush) !== null && _options$brush !== void 0 && _options$brush.showLabel || !(options !== null && options !== void 0 && options.brush)) {
|
|
45296
|
+
ctx.fillText(labelText, labelCenter, labelPoint);
|
|
45315
45297
|
}
|
|
45316
|
-
}
|
|
45317
45298
|
|
|
45318
|
-
|
|
45319
|
-
|
|
45320
|
-
|
|
45321
|
-
|
|
45322
|
-
|
|
45323
|
-
|
|
45299
|
+
if (!isBlurredLabel && options !== null && options !== void 0 && (_options$selectItem = options.selectItem) !== null && _options$selectItem !== void 0 && _options$selectItem.showLabelTip && hitInfo !== null && hitInfo !== void 0 && hitInfo.label && !((_this3$options3 = _this3.options) !== null && _this3$options3 !== void 0 && _this3$options3.horizontal)) {
|
|
45300
|
+
var selectedLabel = _this3.getLabelFormat(Math.min(axisMax, hitInfo.label + 0 * stepValue));
|
|
45301
|
+
|
|
45302
|
+
if (selectedLabel === labelText) {
|
|
45303
|
+
var _this3$labelStyle, _options$selectItem2, _options$selectItem2$, _options$selectItem3, _options$selectItem3$;
|
|
45304
|
+
|
|
45305
|
+
var height = Math.round(ctx.measureText((_this3$labelStyle = _this3.labelStyle) === null || _this3$labelStyle === void 0 ? void 0 : _this3$labelStyle.fontSize).width);
|
|
45306
|
+
helpers_util.showLabelTip({
|
|
45307
|
+
ctx: _this3.ctx,
|
|
45308
|
+
width: Math.round(ctx.measureText(selectedLabel).width) + 10,
|
|
45309
|
+
height: height,
|
|
45310
|
+
x: labelCenter,
|
|
45311
|
+
y: labelPoint + (height - 2),
|
|
45312
|
+
borderRadius: 2,
|
|
45313
|
+
arrowSize: 3,
|
|
45314
|
+
text: labelText,
|
|
45315
|
+
backgroundColor: options === null || options === void 0 ? void 0 : (_options$selectItem2 = options.selectItem) === null || _options$selectItem2 === void 0 ? void 0 : (_options$selectItem2$ = _options$selectItem2.labelTipStyle) === null || _options$selectItem2$ === void 0 ? void 0 : _options$selectItem2$.backgroundColor,
|
|
45316
|
+
textColor: options === null || options === void 0 ? void 0 : (_options$selectItem3 = options.selectItem) === null || _options$selectItem3 === void 0 ? void 0 : (_options$selectItem3$ = _options$selectItem3.labelTipStyle) === null || _options$selectItem3$ === void 0 ? void 0 : _options$selectItem3$.textColor
|
|
45317
|
+
});
|
|
45318
|
+
}
|
|
45319
|
+
}
|
|
45324
45320
|
|
|
45325
|
-
|
|
45321
|
+
if ((ix !== 0 || options !== null && options !== void 0 && options.axesX[0].flow) && _this3.showGrid) {
|
|
45322
|
+
ctx.moveTo(linePosition, offsetPoint);
|
|
45323
|
+
ctx.lineTo(linePosition, offsetCounterPoint);
|
|
45324
|
+
}
|
|
45325
|
+
} else {
|
|
45326
|
+
var _options$brush2;
|
|
45326
45327
|
|
|
45327
|
-
|
|
45328
|
-
ctx.fillText(labelText, labelPoint, labelCenter);
|
|
45329
|
-
}
|
|
45328
|
+
labelPoint = _this3.position === 'left' ? offsetPoint - 10 : offsetPoint + 10;
|
|
45330
45329
|
|
|
45331
|
-
|
|
45332
|
-
|
|
45333
|
-
|
|
45330
|
+
if (options !== null && options !== void 0 && (_options$brush2 = options.brush) !== null && _options$brush2 !== void 0 && _options$brush2.showLabel || !(options !== null && options !== void 0 && options.brush)) {
|
|
45331
|
+
ctx.fillText(labelText, labelPoint, labelCenter);
|
|
45332
|
+
}
|
|
45334
45333
|
|
|
45335
|
-
|
|
45336
|
-
|
|
45337
|
-
|
|
45334
|
+
if (ix === steps) {
|
|
45335
|
+
linePosition -= 1;
|
|
45336
|
+
}
|
|
45337
|
+
|
|
45338
|
+
if (ix !== 0 && _this3.showGrid) {
|
|
45339
|
+
ctx.moveTo(offsetPoint, linePosition);
|
|
45340
|
+
ctx.lineTo(offsetCounterPoint, linePosition);
|
|
45341
|
+
}
|
|
45338
45342
|
}
|
|
45343
|
+
|
|
45344
|
+
ctx.stroke();
|
|
45345
|
+
ctx.closePath();
|
|
45339
45346
|
}
|
|
45347
|
+
};
|
|
45340
45348
|
|
|
45341
|
-
|
|
45342
|
-
|
|
45349
|
+
for (var ix = 0; ix <= steps; ix++) {
|
|
45350
|
+
_loop(ix);
|
|
45343
45351
|
}
|
|
45344
|
-
}
|
|
45352
|
+
})();
|
|
45345
45353
|
} // Draw plot lines and plot bands
|
|
45346
45354
|
|
|
45347
45355
|
|
|
@@ -46839,8 +46847,8 @@ var scale_time_category_TimeCategoryScale = /*#__PURE__*/function (_Scale) {
|
|
|
46839
46847
|
var ix;
|
|
46840
46848
|
var maxIndex = oriSteps === count ? oriSteps : oriSteps - 1;
|
|
46841
46849
|
|
|
46842
|
-
|
|
46843
|
-
var
|
|
46850
|
+
var _loop = function _loop() {
|
|
46851
|
+
var _this2$options, _this2$options$select, _this2$options2, _this2$options2$selec, _selectLabelInfo$data;
|
|
46844
46852
|
|
|
46845
46853
|
ticks[ix] = dayjs_min_default()(axisMin).valueOf() + ix * stepValue;
|
|
46846
46854
|
labelCenter = Math.round(startPoint + graphGap * ix);
|
|
@@ -46853,17 +46861,15 @@ var scale_time_category_TimeCategoryScale = /*#__PURE__*/function (_Scale) {
|
|
|
46853
46861
|
}
|
|
46854
46862
|
}
|
|
46855
46863
|
|
|
46856
|
-
labelText =
|
|
46864
|
+
labelText = _this2.getLabelFormat(Math.min(axisMax, ticks[ix]), {
|
|
46857
46865
|
prev: prev
|
|
46858
46866
|
});
|
|
46859
|
-
var isBlurredLabel = ((
|
|
46860
|
-
var _selectLabelInfo$labe;
|
|
46861
|
-
|
|
46867
|
+
var isBlurredLabel = ((_this2$options = _this2.options) === null || _this2$options === void 0 ? void 0 : (_this2$options$select = _this2$options.selectLabel) === null || _this2$options$select === void 0 ? void 0 : _this2$options$select.use) && ((_this2$options2 = _this2.options) === null || _this2$options2 === void 0 ? void 0 : (_this2$options2$selec = _this2$options2.selectLabel) === null || _this2$options2$selec === void 0 ? void 0 : _this2$options2$selec.useLabelOpacity) && _this2.options.horizontal === (_this2.type === 'y') && (selectLabelInfo === null || selectLabelInfo === void 0 ? void 0 : (_selectLabelInfo$data = selectLabelInfo.dataIndex) === null || _selectLabelInfo$data === void 0 ? void 0 : _selectLabelInfo$data.length) && !(selectLabelInfo !== null && selectLabelInfo !== void 0 && selectLabelInfo.label.map(function (t) {
|
|
46862
46868
|
return _this2.getLabelFormat(Math.min(axisMax, t), {
|
|
46863
|
-
prev:
|
|
46869
|
+
prev: prev
|
|
46864
46870
|
});
|
|
46865
46871
|
}).includes(labelText));
|
|
46866
|
-
var labelColor =
|
|
46872
|
+
var labelColor = _this2.labelStyle.color;
|
|
46867
46873
|
var defaultOpacity = 1;
|
|
46868
46874
|
|
|
46869
46875
|
if (helpers_util.getColorStringType(labelColor) === 'RGBA') {
|
|
@@ -46872,21 +46878,21 @@ var scale_time_category_TimeCategoryScale = /*#__PURE__*/function (_Scale) {
|
|
|
46872
46878
|
|
|
46873
46879
|
ctx.fillStyle = helpers_util.colorStringToRgba(labelColor, isBlurredLabel ? 0.1 : defaultOpacity);
|
|
46874
46880
|
|
|
46875
|
-
if (
|
|
46876
|
-
var
|
|
46881
|
+
if (_this2.type === 'x') {
|
|
46882
|
+
var _this2$options3, _this2$options3$selec, _this2$options4;
|
|
46877
46883
|
|
|
46878
|
-
labelPoint =
|
|
46884
|
+
labelPoint = _this2.position === 'top' ? offsetPoint - 10 : offsetPoint + 10;
|
|
46879
46885
|
ctx.fillText(labelText, labelCenter, labelPoint);
|
|
46880
46886
|
|
|
46881
|
-
if (!isBlurredLabel && (
|
|
46882
|
-
var selectedLabel =
|
|
46887
|
+
if (!isBlurredLabel && (_this2$options3 = _this2.options) !== null && _this2$options3 !== void 0 && (_this2$options3$selec = _this2$options3.selectItem) !== null && _this2$options3$selec !== void 0 && _this2$options3$selec.showLabelTip && hitInfo !== null && hitInfo !== void 0 && hitInfo.label && !((_this2$options4 = _this2.options) !== null && _this2$options4 !== void 0 && _this2$options4.horizontal)) {
|
|
46888
|
+
var selectedLabel = _this2.getLabelFormat(Math.min(axisMax, hitInfo.label + 0 * stepValue));
|
|
46883
46889
|
|
|
46884
46890
|
if (selectedLabel === labelText) {
|
|
46885
|
-
var
|
|
46891
|
+
var _this2$labelStyle, _this2$options5, _this2$options5$selec, _this2$options5$selec2, _this2$options6, _this2$options6$selec, _this2$options6$selec2;
|
|
46886
46892
|
|
|
46887
|
-
var height = Math.round(ctx.measureText((
|
|
46893
|
+
var height = Math.round(ctx.measureText((_this2$labelStyle = _this2.labelStyle) === null || _this2$labelStyle === void 0 ? void 0 : _this2$labelStyle.fontSize).width);
|
|
46888
46894
|
helpers_util.showLabelTip({
|
|
46889
|
-
ctx:
|
|
46895
|
+
ctx: _this2.ctx,
|
|
46890
46896
|
width: Math.round(ctx.measureText(selectedLabel).width) + 10,
|
|
46891
46897
|
height: height,
|
|
46892
46898
|
x: labelCenter,
|
|
@@ -46894,27 +46900,31 @@ var scale_time_category_TimeCategoryScale = /*#__PURE__*/function (_Scale) {
|
|
|
46894
46900
|
borderRadius: 2,
|
|
46895
46901
|
arrowSize: 3,
|
|
46896
46902
|
text: labelText,
|
|
46897
|
-
backgroundColor: (
|
|
46898
|
-
textColor: (
|
|
46903
|
+
backgroundColor: (_this2$options5 = _this2.options) === null || _this2$options5 === void 0 ? void 0 : (_this2$options5$selec = _this2$options5.selectItem) === null || _this2$options5$selec === void 0 ? void 0 : (_this2$options5$selec2 = _this2$options5$selec.labelTipStyle) === null || _this2$options5$selec2 === void 0 ? void 0 : _this2$options5$selec2.backgroundColor,
|
|
46904
|
+
textColor: (_this2$options6 = _this2.options) === null || _this2$options6 === void 0 ? void 0 : (_this2$options6$selec = _this2$options6.selectItem) === null || _this2$options6$selec === void 0 ? void 0 : (_this2$options6$selec2 = _this2$options6$selec.labelTipStyle) === null || _this2$options6$selec2 === void 0 ? void 0 : _this2$options6$selec2.textColor
|
|
46899
46905
|
});
|
|
46900
46906
|
}
|
|
46901
46907
|
}
|
|
46902
46908
|
|
|
46903
|
-
if (ix !== 0 && ix < oriSteps &&
|
|
46909
|
+
if (ix !== 0 && ix < oriSteps && _this2.showGrid) {
|
|
46904
46910
|
ctx.moveTo(linePosition, offsetPoint);
|
|
46905
46911
|
ctx.lineTo(linePosition, offsetCounterPoint);
|
|
46906
46912
|
}
|
|
46907
46913
|
} else {
|
|
46908
|
-
labelPoint =
|
|
46914
|
+
labelPoint = _this2.position === 'left' ? offsetPoint - 10 : offsetPoint + 10;
|
|
46909
46915
|
ctx.fillText(labelText, labelPoint, labelCenter);
|
|
46910
46916
|
|
|
46911
|
-
if (ix !== 0 && ix < oriSteps &&
|
|
46917
|
+
if (ix !== 0 && ix < oriSteps && _this2.showGrid) {
|
|
46912
46918
|
ctx.moveTo(offsetPoint, linePosition);
|
|
46913
46919
|
ctx.lineTo(offsetCounterPoint, linePosition);
|
|
46914
46920
|
}
|
|
46915
46921
|
}
|
|
46916
46922
|
|
|
46917
46923
|
ctx.stroke();
|
|
46924
|
+
};
|
|
46925
|
+
|
|
46926
|
+
for (ix = 0; ix <= maxIndex; ix += count) {
|
|
46927
|
+
_loop();
|
|
46918
46928
|
}
|
|
46919
46929
|
|
|
46920
46930
|
if (this.categoryMode && alignToGridLine && ix * count === oriSteps) {
|