(setting?: IntervalScaleSetting)
| 94 | |
| 95 | |
| 96 | constructor(setting?: IntervalScaleSetting) { |
| 97 | super(); |
| 98 | |
| 99 | this.parse = IntervalScale.parse; |
| 100 | |
| 101 | setting = setting || {}; |
| 102 | |
| 103 | const breakParsed = simplyParseBreakOption(this, setting); |
| 104 | |
| 105 | const res = initBreakOrLinearMapper(this, breakParsed, null); |
| 106 | // @ts-ignore |
| 107 | this.brk = res.brk; |
| 108 | |
| 109 | this._cfg = { |
| 110 | interval: 0, |
| 111 | intervalPrecision: 2, |
| 112 | intervalCount: undefined, |
| 113 | niceExtent: undefined, |
| 114 | }; |
| 115 | } |
| 116 | |
| 117 | static parse(val: ScaleDataValue): number { |
| 118 | // `Scale#parse` (and its overrids) are typically applied at the axis values input |
nothing calls this directly
no test coverage detected