(setting: LogScaleSetting)
| 81 | |
| 82 | |
| 83 | constructor(setting: LogScaleSetting) { |
| 84 | super(); |
| 85 | this.parse = IntervalScale.parse; |
| 86 | this.base = setting.logBase || 10; |
| 87 | |
| 88 | const lookupFrom: number[] = []; |
| 89 | const lookupTo: number[] = []; |
| 90 | const lookup = this._lookup = {from: lookupFrom, to: lookupTo}; |
| 91 | lookupFrom[LOOKUP_IDX_EXTENT_START] = |
| 92 | lookupFrom[LOOKUP_IDX_EXTENT_END] = |
| 93 | lookupTo[LOOKUP_IDX_EXTENT_START] = |
| 94 | lookupTo[LOOKUP_IDX_EXTENT_END] = NaN; |
| 95 | |
| 96 | decorateScaleMapper(this, LogScale.mapperMethods); |
| 97 | |
| 98 | const scaleBreakHelper = getScaleBreakHelper(); |
| 99 | const breakOption = setting.breakOption; |
| 100 | const out: ParseAxisBreakOptionInwardTransformOut = {lookup}; |
| 101 | if (scaleBreakHelper) { |
| 102 | scaleBreakHelper.parseAxisBreakOptionInwardTransform( |
| 103 | breakOption, this, {noNegative: true}, LOOKUP_IDX_BREAK_START, out |
| 104 | ); |
| 105 | } |
| 106 | this.powStub = new IntervalScale({breakParsed: out.original}); |
| 107 | this.intervalStub = new IntervalScale({breakParsed: out.transformed}); |
| 108 | |
| 109 | enableScaleMapperFreeze(this, this.intervalStub); |
| 110 | } |
| 111 | |
| 112 | getTicks(opt?: ScaleGetTicksOpt): ScaleTick[] { |
| 113 | const base = this.base; |
nothing calls this directly
no test coverage detected