(
elDisplayable: Displayable,
elOption: CustomDisplayableOption,
state: DisplayState
)
| 606 | } |
| 607 | |
| 608 | function updateZForEachState( |
| 609 | elDisplayable: Displayable, |
| 610 | elOption: CustomDisplayableOption, |
| 611 | state: DisplayState |
| 612 | ): void { |
| 613 | const isNormal = state === NORMAL; |
| 614 | const elStateOpt = isNormal ? elOption : retrieveStateOption( |
| 615 | elOption as CustomElementOption, |
| 616 | state as DisplayStateNonNormal |
| 617 | ); |
| 618 | const optZ2 = elStateOpt ? elStateOpt.z2 : null; |
| 619 | let stateObj; |
| 620 | if (optZ2 != null) { |
| 621 | // Do not `ensureState` until required. |
| 622 | stateObj = isNormal ? elDisplayable : elDisplayable.ensureState(state); |
| 623 | stateObj.z2 = optZ2 || 0; |
| 624 | } |
| 625 | } |
| 626 | |
| 627 | function makeRenderItem( |
| 628 | customSeries: CustomSeriesModel, |
no test coverage detected
searching dependent graphs…