@flexem/fc-gui 3.0.0-alpha.40 → 3.0.0-alpha.42
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/CHANGELOG.md +11 -1
- package/bundles/@flexem/fc-gui.umd.js +5 -4
- package/bundles/@flexem/fc-gui.umd.js.map +1 -1
- package/bundles/@flexem/fc-gui.umd.min.js +1 -1
- package/bundles/@flexem/fc-gui.umd.min.js.map +1 -1
- package/elements/historical-curve/historical-curve.element.js +5 -4
- package/package.json +1 -1
|
@@ -203,6 +203,7 @@ export class HistoricalCurveElement extends ConditionalDisplayElement {
|
|
|
203
203
|
return chart;
|
|
204
204
|
}
|
|
205
205
|
renderCommonProperty(chart, chartWidth, chartHeight, data) {
|
|
206
|
+
var _a, _b;
|
|
206
207
|
chart.tooltip.headerFormatter(d => this.timeFormat(d, '%x %X'));
|
|
207
208
|
if (this.model.displaySetting.showAxis) {
|
|
208
209
|
chart.xAxis.showMaxMin(true).tickFormat(d => {
|
|
@@ -235,17 +236,17 @@ export class HistoricalCurveElement extends ConditionalDisplayElement {
|
|
|
235
236
|
chart.update();
|
|
236
237
|
this.rootElement.selectAll('.nv-noData').attr('x', chartWidth / 2).attr('y', chartHeight / 2 + this.displayOption.operationAreaHeight);
|
|
237
238
|
});
|
|
238
|
-
const fontSize = this.model.displaySetting.axisSetting.axisLabelFont.fontSize;
|
|
239
|
+
const fontSize = (_b = (_a = this.model.displaySetting.axisSetting) === null || _a === void 0 ? void 0 : _a.axisLabelFont) === null || _b === void 0 ? void 0 : _b.fontSize;
|
|
239
240
|
this.rootElement.selectAll('.domain').style('stroke-opacity', 1);
|
|
240
241
|
if (this.model.displaySetting.showAxis && this.model.displaySetting.axisSetting) {
|
|
241
242
|
const axisColor = this.model.displaySetting.axisSetting.axisColor;
|
|
242
243
|
this.rootElement.selectAll('.domain').style('stroke', axisColor);
|
|
243
|
-
if (this.model.displaySetting.axisSetting.showAxisLabel) {
|
|
244
|
+
if (fontSize && this.model.displaySetting.axisSetting.showAxisLabel) {
|
|
244
245
|
this.rootElement.selectAll('.nv-axisMaxMin').select('text').style('font-size', fontSize);
|
|
245
246
|
}
|
|
246
247
|
}
|
|
247
|
-
|
|
248
|
-
|
|
248
|
+
if (fontSize && this.currentTimePeriod === 3 || this.currentTimePeriod === 4 || this.currentTimePeriod === 5) {
|
|
249
|
+
const self = this;
|
|
249
250
|
this.rootElement
|
|
250
251
|
.selectAll('.nv-x')
|
|
251
252
|
.selectAll('.tick')
|