@visactor/vtable 0.15.5-alpha.1 → 0.15.5-alpha.2

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.
Files changed (47) hide show
  1. package/cjs/core/BaseTable.js +2 -2
  2. package/cjs/core/BaseTable.js.map +1 -1
  3. package/cjs/index.d.ts +1 -1
  4. package/cjs/index.js +1 -1
  5. package/cjs/index.js.map +1 -1
  6. package/cjs/layout/pivot-header-layout.d.ts +9 -8
  7. package/cjs/layout/pivot-header-layout.js +38 -132
  8. package/cjs/layout/pivot-header-layout.js.map +1 -1
  9. package/cjs/layout/pivot-layout-helper.d.ts +10 -2
  10. package/cjs/layout/pivot-layout-helper.js +108 -6
  11. package/cjs/layout/pivot-layout-helper.js.map +1 -1
  12. package/cjs/layout/simple-header-layout.d.ts +1 -0
  13. package/cjs/layout/simple-header-layout.js +5 -7
  14. package/cjs/layout/simple-header-layout.js.map +1 -1
  15. package/cjs/scenegraph/graphic/contributions/group-contribution-render.js +4 -4
  16. package/cjs/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -1
  17. package/cjs/scenegraph/graphic/group.js +5 -3
  18. package/cjs/scenegraph/graphic/group.js.map +1 -1
  19. package/cjs/scenegraph/layout/compute-row-height.js +21 -7
  20. package/cjs/scenegraph/layout/compute-row-height.js.map +1 -1
  21. package/cjs/scenegraph/style/frame-border.js +26 -12
  22. package/cjs/scenegraph/style/frame-border.js.map +1 -1
  23. package/dist/vtable.js +263 -177
  24. package/dist/vtable.min.js +2 -2
  25. package/es/core/BaseTable.js +2 -2
  26. package/es/core/BaseTable.js.map +1 -1
  27. package/es/index.d.ts +1 -1
  28. package/es/index.js +1 -1
  29. package/es/index.js.map +1 -1
  30. package/es/layout/pivot-header-layout.d.ts +9 -8
  31. package/es/layout/pivot-header-layout.js +37 -129
  32. package/es/layout/pivot-header-layout.js.map +1 -1
  33. package/es/layout/pivot-layout-helper.d.ts +10 -2
  34. package/es/layout/pivot-layout-helper.js +107 -5
  35. package/es/layout/pivot-layout-helper.js.map +1 -1
  36. package/es/layout/simple-header-layout.d.ts +1 -0
  37. package/es/layout/simple-header-layout.js +5 -7
  38. package/es/layout/simple-header-layout.js.map +1 -1
  39. package/es/scenegraph/graphic/contributions/group-contribution-render.js +4 -4
  40. package/es/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -1
  41. package/es/scenegraph/graphic/group.js +5 -3
  42. package/es/scenegraph/graphic/group.js.map +1 -1
  43. package/es/scenegraph/layout/compute-row-height.js +21 -7
  44. package/es/scenegraph/layout/compute-row-height.js.map +1 -1
  45. package/es/scenegraph/style/frame-border.js +25 -11
  46. package/es/scenegraph/style/frame-border.js.map +1 -1
  47. package/package.json +2 -2
@@ -45,7 +45,7 @@ class BaseTable extends EventTarget_1.EventTarget {
45
45
  }
46
46
  constructor(container, options = {}) {
47
47
  var _a, _b, _c, _d, _e, _f, _g;
48
- if (super(), this.showFrozenIcon = !0, this.showSort = !0, this.version = "0.15.5-alpha.1",
48
+ if (super(), this.showFrozenIcon = !0, this.showSort = !0, this.version = "0.15.5-alpha.2",
49
49
  this.id = `VTable${Date.now()}`, this.isReleased = !1, this.throttleInvalidate = (0,
50
50
  util_1.throttle2)(this.render.bind(this), 200), !container && "node" !== options.mode) throw new Error("vtable's container is undefined");
51
51
  const {frozenColCount: frozenColCount = 0, defaultRowHeight: defaultRowHeight = 40, defaultHeaderRowHeight: defaultHeaderRowHeight, defaultColWidth: defaultColWidth = 80, defaultHeaderColWidth: defaultHeaderColWidth, widthMode: widthMode = "standard", heightMode: heightMode = "standard", autoFillWidth: autoFillWidth = !1, autoFillHeight: autoFillHeight = !1, keyboardOptions: keyboardOptions, columnResizeMode: columnResizeMode, dragHeaderMode: dragHeaderMode, showFrozenIcon: showFrozenIcon, allowFrozenColCount: allowFrozenColCount, padding: padding, hover: hover, menu: menu, select: click, customRender: customRender, pixelRatio: pixelRatio = pixel_ratio_1.defaultPixelRatio, renderChartAsync: renderChartAsync, renderChartAsyncBatchCount: renderChartAsyncBatchCount, mode: mode, modeParams: modeParams, canvasWidth: canvasWidth, canvasHeight: canvasHeight, overscrollBehavior: overscrollBehavior, limitMinWidth: limitMinWidth} = options;
@@ -679,7 +679,7 @@ class BaseTable extends EventTarget_1.EventTarget {
679
679
  internalProps.layoutMap.release(), internalProps.releaseList && (internalProps.releaseList.forEach((releaseObj => {
680
680
  var _a;
681
681
  return null === (_a = null == releaseObj ? void 0 : releaseObj.release) || void 0 === _a ? void 0 : _a.call(releaseObj);
682
- })), internalProps.releaseList = null), this.scenegraph.stage.release();
682
+ })), internalProps.releaseList = null), this.scenegraph.stage.release(), this.scenegraph.proxy.release();
683
683
  const {parentElement: parentElement} = internalProps.element;
684
684
  parentElement && parentElement.removeChild(internalProps.element), this.isReleased = !0;
685
685
  }