MCPcopy Index your code
hub / github.com/apache/echarts / scaleCalcNice

Function scaleCalcNice

src/coord/axisNiceTicks.ts:225–241  ·  view source on GitHub ↗
(
    axisLike: {
        scale: Scale,
        model: AxisBaseModel,
    },
)

Source from the content-addressed store, hash-verified

223 * @see SCALE_EXTENT_CONSTRUCTION for the full processing flow.
224 */
225export function scaleCalcNice(
226 axisLike: {
227 scale: Scale,
228 model: AxisBaseModel,
229 },
230): void {
231 const scale = axisLike.scale;
232 const model = axisLike.model as AxisBaseModel<NumericAxisBaseOptionCommon>;
233
234 const axis = model.axis;
235 const ecModel = model.ecModel;
236 if (__DEV__) {
237 assert(axis && ecModel);
238 }
239
240 scaleCalcNice2(scale, model, axis, ecModel, null);
241}
242
243/**
244 * @see SCALE_EXTENT_CONSTRUCTION for the full processing flow.

Callers 4

updateAxisTicksMethod · 0.90
updateMethod · 0.90
updateMethod · 0.90
updatePolarScaleFunction · 0.90

Calls 2

scaleCalcNice2Function · 0.85
assertFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…