@flexem/fc-gui 3.0.0-alpha.81 → 3.0.0-alpha.82
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 +6 -1
- package/bundles/@flexem/fc-gui.umd.js +14 -0
- 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 +14 -0
- package/model/historical-curve/historical-curve-axis-settings.d.ts +3 -0
- package/package.json +1 -1
|
@@ -245,6 +245,20 @@ export class HistoricalCurveElement extends ConditionalDisplayElement {
|
|
|
245
245
|
this.rootElement.selectAll('.nv-axisMaxMin').select('text').style('font-size', fontSize);
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
|
+
let strokeWidth = 0;
|
|
249
|
+
if (this.model.displaySetting.axisSetting.showTick !== false) {
|
|
250
|
+
strokeWidth = 1;
|
|
251
|
+
}
|
|
252
|
+
this.rootElement
|
|
253
|
+
.selectAll('.nv-x')
|
|
254
|
+
.selectAll('.tick')
|
|
255
|
+
.selectAll('line')
|
|
256
|
+
.attr('style', `stroke:${this.model.displaySetting.axisSetting.xAxisTickColor || 'rgb(127, 147, 159)'};stroke-width:${strokeWidth};`);
|
|
257
|
+
this.rootElement
|
|
258
|
+
.selectAll('.nv-y')
|
|
259
|
+
.selectAll('.tick')
|
|
260
|
+
.selectAll('line')
|
|
261
|
+
.attr('style', `stroke:${this.model.displaySetting.axisSetting.yAxisTickColor || 'rgb(127, 147, 159)'};stroke-width:${strokeWidth};`);
|
|
248
262
|
if (fontSize && this.currentTimePeriod === 3 || this.currentTimePeriod === 4 || this.currentTimePeriod === 5) {
|
|
249
263
|
const self = this;
|
|
250
264
|
this.rootElement
|
|
@@ -6,6 +6,9 @@ export interface HistoricalCurveAxisSettings {
|
|
|
6
6
|
readonly axisColor: string;
|
|
7
7
|
readonly showAxisLabel: boolean;
|
|
8
8
|
readonly axisLabelFont: Font;
|
|
9
|
+
readonly showTick?: boolean;
|
|
10
|
+
readonly xAxisTickColor?: string;
|
|
11
|
+
readonly yAxisTickColor?: string;
|
|
9
12
|
}
|
|
10
13
|
export declare enum AxisRangeType {
|
|
11
14
|
Auto = 0,
|