| 546 | * @see SCALE_EXTENT_CONSTRUCTION for the full processing flow. |
| 547 | */ |
| 548 | export 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 | |
| 574 | function scaleRawExtentInfoCreateDeal( |
| 575 | scale: Scale, |