a862106259fdc8e336db0627673f822bcc948da68f3e4017e2b7870710051c007064954ab4c1e1c969622647ec840f1bc9e9eba67094d14a174c754d62c11b 873 B

123456789101112131415161718192021222324252627
  1. import {addClass} from './../../../../helpers/dom/element';
  2. import Overlay from './_base';
  3. /**
  4. * A overlay that renders ALL available rows & columns positioned on top of the original Walkontable instance and all other overlays.
  5. * Used for debugging purposes to see if the other overlays (that render only part of the rows & columns) are positioned correctly
  6. *
  7. * @class DebugOverlay
  8. */
  9. class DebugOverlay extends Overlay {
  10. /**
  11. * @param {Walkontable} wotInstance
  12. */
  13. constructor(wotInstance) {
  14. super(wotInstance);
  15. this.clone = this.makeClone(Overlay.CLONE_DEBUG);
  16. this.clone.wtTable.holder.style.opacity = 0.4;
  17. this.clone.wtTable.holder.style.textShadow = '0 0 2px #ff0000';
  18. addClass(this.clone.wtTable.holder.parentNode, 'wtDebugVisible');
  19. }
  20. }
  21. Overlay.registerOverlay(Overlay.CLONE_DEBUG, DebugOverlay);
  22. export default DebugOverlay;