@revolist/revogrid 4.19.3 → 4.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2449,8 +2449,6 @@ const DRAG_START = 'columndragstart';
2449
2449
  class ColumnMovePlugin extends BasePlugin {
2450
2450
  constructor(revogrid, providers) {
2451
2451
  super(revogrid, providers);
2452
- this.revogrid = revogrid;
2453
- this.providers = providers;
2454
2452
  this.moveFunc = debounce.debounce((e) => this.doMove(e), 5);
2455
2453
  this.staticDragData = null;
2456
2454
  this.dragData = null;
@@ -2502,7 +2500,7 @@ class ColumnMovePlugin extends BasePlugin {
2502
2500
  this.staticDragData = {
2503
2501
  startPos: event.x,
2504
2502
  startItem,
2505
- data,
2503
+ pin: data.pin,
2506
2504
  dataEl,
2507
2505
  scrollEl,
2508
2506
  gridEl: this.revogrid,
@@ -2580,14 +2578,14 @@ class ColumnMovePlugin extends BasePlugin {
2580
2578
  super.clearSubscriptions();
2581
2579
  this.clearLocalSubscriptions();
2582
2580
  }
2583
- getData({ gridEl, dataEl, data, }) {
2581
+ getData({ gridEl, dataEl, pin, }) {
2584
2582
  const gridRect = gridEl.getBoundingClientRect();
2585
2583
  const elRect = dataEl.getBoundingClientRect();
2586
2584
  const scrollOffset = elRect.left - gridRect.left;
2587
2585
  return {
2588
2586
  elRect,
2589
2587
  gridRect,
2590
- type: data.pin || 'rgCol',
2588
+ type: pin || 'rgCol',
2591
2589
  scrollOffset,
2592
2590
  };
2593
2591
  }
@@ -2625,6 +2623,6 @@ exports.getLeftRelative = getLeftRelative;
2625
2623
  exports.getNextOrder = getNextOrder;
2626
2624
  exports.isStretchPlugin = isStretchPlugin;
2627
2625
  exports.sortIndexByItems = sortIndexByItems;
2628
- //# sourceMappingURL=column.drag.plugin-C79X0yTw.js.map
2626
+ //# sourceMappingURL=column.drag.plugin-D1Iy4E0A.js.map
2629
2627
 
2630
- //# sourceMappingURL=column.drag.plugin-C79X0yTw.js.map
2628
+ //# sourceMappingURL=column.drag.plugin-D1Iy4E0A.js.map