MCPcopy
hub / github.com/apache/echarts / scaleRawExtentInfoCreate

Function scaleRawExtentInfoCreate

src/coord/scaleRawExtentInfo.ts:548–572  ·  view source on GitHub ↗
(
    axis: Axis,
    from: AxisExtentInfoBuildFrom
)

Source from the content-addressed store, hash-verified

546 * @see SCALE_EXTENT_CONSTRUCTION for the full processing flow.
547 */
548export function scaleRawExtentInfoCreate(
549 axis: Axis,
550 from: AxisExtentInfoBuildFrom
551): void {
552 const scale = axis.scale;
553 const model = axis.model;
554 const axisDim = axis.dim;
555 if (__DEV__) {
556 assert(scale && model && axisDim);
557 }
558
559 if (scale.rawExtentInfo) {
560 if (__DEV__) {
561 // Check for incorrect impl - the duplicated calling of this method is only allowed in
562 // these cases:
563 // - First in `AxisProxy['reset']` (for dataZoom)
564 // - Then in `CoordinateSystem['update']`.
565 // - Then after `chart.appendData()` due to `dirtyOnOverallProgress: true`
566 assert(scale.rawExtentInfo.from !== from || from === AXIS_EXTENT_INFO_BUILD_FROM_DATA_ZOOM);
567 }
568 return;
569 }
570
571 scaleRawExtentInfoCreateDeal(scale, axis, axisDim, model, from);
572}
573
574function scaleRawExtentInfoCreateDeal(
575 scale: Scale,

Callers 6

resetMethod · 0.90
updateMethod · 0.90
updateMethod · 0.90
updateMethod · 0.90
updateMethod · 0.90
updatePolarScaleFunction · 0.90

Calls 2

assertFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…