(
syncBackEl: Element | NullUndefined,
syncBackType: typeof VIEW_COORD_SYS_TRANS_ROAM | typeof VIEW_COORD_SYS_TRANS_OVERALL,
viewCoordSys: View,
// If NullUndefined, no animation.
// Typically, there should be no animation in the first render and in `__updateOnOwnRoam`.
animatableModel: Model<AnimationOptionMixin> | NullUndefined
)
| 606 | * But in this case, `dataToPoint` can only reach the space of `syncBackEl` itself. |
| 607 | */ |
| 608 | export function applyViewCoordSysTransToElement( |
| 609 | syncBackEl: Element | NullUndefined, |
| 610 | syncBackType: typeof VIEW_COORD_SYS_TRANS_ROAM | typeof VIEW_COORD_SYS_TRANS_OVERALL, |
| 611 | viewCoordSys: View, |
| 612 | // If NullUndefined, no animation. |
| 613 | // Typically, there should be no animation in the first render and in `__updateOnOwnRoam`. |
| 614 | animatableModel: Model<AnimationOptionMixin> | NullUndefined |
| 615 | ): void { |
| 616 | const viewInner = inner(viewCoordSys); |
| 617 | viewInner.syncBackEl = syncBackEl; |
| 618 | viewInner.syncBackType = syncBackType; |
| 619 | |
| 620 | if (!animatableModel) { |
| 621 | viewCoordSysCopyTrans(syncBackEl, viewCoordSys, syncBackType); |
| 622 | syncBackEl.dirty(); |
| 623 | } |
| 624 | else { |
| 625 | updateProps( |
| 626 | syncBackEl, |
| 627 | viewCoordSysCopyTrans(null, viewCoordSys, syncBackType), |
| 628 | animatableModel |
| 629 | ); |
| 630 | } |
| 631 | } |
| 632 | |
| 633 | /** |
| 634 | * FIXME: [FIXME_VIEW_COORD_SYS_SYNC_BACK] |
no test coverage detected
searching dependent graphs…