@flexem/fc-gui 3.0.0-alpha.41 → 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.
@@ -236,17 +236,17 @@ export class HistoricalCurveElement extends ConditionalDisplayElement {
236
236
  chart.update();
237
237
  this.rootElement.selectAll('.nv-noData').attr('x', chartWidth / 2).attr('y', chartHeight / 2 + this.displayOption.operationAreaHeight);
238
238
  });
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) || '12px';
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;
240
240
  this.rootElement.selectAll('.domain').style('stroke-opacity', 1);
241
241
  if (this.model.displaySetting.showAxis && this.model.displaySetting.axisSetting) {
242
242
  const axisColor = this.model.displaySetting.axisSetting.axisColor;
243
243
  this.rootElement.selectAll('.domain').style('stroke', axisColor);
244
- if (this.model.displaySetting.axisSetting.showAxisLabel) {
244
+ if (fontSize && this.model.displaySetting.axisSetting.showAxisLabel) {
245
245
  this.rootElement.selectAll('.nv-axisMaxMin').select('text').style('font-size', fontSize);
246
246
  }
247
247
  }
248
- const self = this;
249
- if (self.currentTimePeriod === 3 || self.currentTimePeriod === 4 || self.currentTimePeriod === 5) {
248
+ if (fontSize && this.currentTimePeriod === 3 || this.currentTimePeriod === 4 || this.currentTimePeriod === 5) {
249
+ const self = this;
250
250
  this.rootElement
251
251
  .selectAll('.nv-x')
252
252
  .selectAll('.tick')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "main": "bundles/fc-gui.umd.js",
3
- "version": "3.0.0-alpha.41",
3
+ "version": "3.0.0-alpha.42",
4
4
  "module": "public_api.js",
5
5
  "typings": "public_api.d.ts",
6
6
  "license": "UNLICENSED",