(
orderInfo: OrdinalSortInfo,
baseAxis: Axis2D
)
| 574 | * as long as the order in the view doesn't change. |
| 575 | */ |
| 576 | private _isOrderDifferentInView( |
| 577 | orderInfo: OrdinalSortInfo, |
| 578 | baseAxis: Axis2D |
| 579 | ): boolean { |
| 580 | const scale = baseAxis.scale as OrdinalScale; |
| 581 | const extent = scale.getExtent(); |
| 582 | |
| 583 | let tickNum = Math.max(0, extent[0]); |
| 584 | const tickMax = Math.min(extent[1], scale.getOrdinalMeta().categories.length - 1); |
| 585 | for (;tickNum <= tickMax; ++tickNum) { |
| 586 | if (orderInfo.ordinalNumbers[tickNum] !== scale.getRawOrdinalNumber(tickNum)) { |
| 587 | return true; |
| 588 | } |
| 589 | } |
| 590 | } |
| 591 | |
| 592 | private _updateSortWithinSameData( |
| 593 | data: SeriesData<BarSeriesModel, DefaultDataVisual>, |
no test coverage detected