* @param {object} props
(props)
| 245 | * @param {object} props |
| 246 | */ |
| 247 | constructor(props) { |
| 248 | super(props); |
| 249 | |
| 250 | /** @type {{data: number[], labels: number[], all: number[]}} */ |
| 251 | this._cache = { |
| 252 | data: [], |
| 253 | labels: [], |
| 254 | all: [] |
| 255 | }; |
| 256 | |
| 257 | /** @type {Unit} */ |
| 258 | this._unit = 'day'; |
| 259 | /** @type {Unit=} */ |
| 260 | this._majorUnit = undefined; |
| 261 | this._offsets = {}; |
| 262 | this._normalized = false; |
| 263 | this._parseOpts = undefined; |
| 264 | } |
| 265 | |
| 266 | init(scaleOpts, opts = {}) { |
| 267 | const time = scaleOpts.time || (scaleOpts.time = {}); |
nothing calls this directly
no outgoing calls
no test coverage detected