Options
All
  • Public
  • Public/Protected
  • All
Menu

This records changes in such a way that if any of the changes cannot take effect, then all the changes are "rolled back". It is called pseudo-atomic because it is not really meant to track any changes that do not happen through instances of this class. This is needed because we are changing the size of multiple elements, and beyond a certain "smallness", some elements won't register any change in dimensions (perhaps due to "min-..." styles.

Hierarchy

  • PseudoAtomicRectChange

Index

Properties

Private changes

changes: object[] = []

Private rolledback

rolledback: boolean = false

Methods

rollback

  • rollback(): void

updateElementRect

  • updateElementRect(el: HTMLElement, dx: number, dy: number): void

Generated using TypeDoc