@visactor/vtable 1.26.2-alpha.1 → 1.27.0-alpha.1

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 (43) hide show
  1. package/cjs/body-helper/style.js +2 -1
  2. package/cjs/core/BaseTable.js +3 -4
  3. package/cjs/core/BaseTable.js.map +1 -1
  4. package/cjs/header-helper/style.js +2 -1
  5. package/cjs/index.d.ts +1 -1
  6. package/cjs/index.js +1 -1
  7. package/cjs/index.js.map +1 -1
  8. package/cjs/layout/index.js +1 -2
  9. package/cjs/plugins/custom-cell-style.js +1 -1
  10. package/cjs/scenegraph/animation/appear.js +5 -3
  11. package/cjs/scenegraph/animation/appear.js.map +1 -1
  12. package/cjs/scenegraph/scenegraph.d.ts +3 -1
  13. package/cjs/scenegraph/scenegraph.js +19 -4
  14. package/cjs/scenegraph/scenegraph.js.map +1 -1
  15. package/cjs/vrender-app.d.ts +14 -0
  16. package/cjs/vrender-app.js +65 -0
  17. package/cjs/vrender-app.js.map +1 -0
  18. package/cjs/vrender.d.ts +18 -1
  19. package/cjs/vrender.js +51 -14
  20. package/cjs/vrender.js.map +1 -1
  21. package/dist/vtable.js +21128 -14424
  22. package/dist/vtable.min.js +1 -1
  23. package/es/body-helper/style.js +2 -1
  24. package/es/core/BaseTable.js +3 -4
  25. package/es/core/BaseTable.js.map +1 -1
  26. package/es/header-helper/style.js +2 -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/index.js +1 -2
  31. package/es/plugins/custom-cell-style.js +1 -1
  32. package/es/scenegraph/animation/appear.js +5 -3
  33. package/es/scenegraph/animation/appear.js.map +1 -1
  34. package/es/scenegraph/scenegraph.d.ts +3 -1
  35. package/es/scenegraph/scenegraph.js +18 -5
  36. package/es/scenegraph/scenegraph.js.map +1 -1
  37. package/es/vrender-app.d.ts +14 -0
  38. package/es/vrender-app.js +63 -0
  39. package/es/vrender-app.js.map +1 -0
  40. package/es/vrender.d.ts +18 -1
  41. package/es/vrender.js +31 -8
  42. package/es/vrender.js.map +1 -1
  43. package/package.json +10 -9
@@ -25,4 +25,5 @@ export function of(columnStyle, bodyStyle, styleArg, StyleClassDef = Style, glob
25
25
  return columnStyle || bodyStyle ? columnStyle instanceof Style ? columnStyle : "function" == typeof columnStyle ? of(columnStyle(styleArg), bodyStyle, styleArg, StyleClassDef, globalAutoWrapText, theme) : (columnStyle || (columnStyle = {}),
26
26
  globalAutoWrapText && !isValid(columnStyle.autoWrapText) && (columnStyle.autoWrapText = !0),
27
27
  StyleClassDef === CheckboxStyle ? new CheckboxStyle(null != columnStyle ? columnStyle : {}, null != bodyStyle ? bodyStyle : {}, null !== (_a = theme.checkboxStyle) && void 0 !== _a ? _a : {}) : StyleClassDef === RadioStyle ? new RadioStyle(null != columnStyle ? columnStyle : {}, null != bodyStyle ? bodyStyle : {}, null !== (_b = theme.radioStyle) && void 0 !== _b ? _b : {}) : StyleClassDef === SwitchStyle ? new SwitchStyle(null != columnStyle ? columnStyle : {}, null != bodyStyle ? bodyStyle : {}, null !== (_c = theme.switchStyle) && void 0 !== _c ? _c : {}) : StyleClassDef === ButtonStyle ? new ButtonStyle(null != columnStyle ? columnStyle : {}, null != bodyStyle ? bodyStyle : {}, null !== (_d = theme.buttonStyle) && void 0 !== _d ? _d : {}) : new StyleClassDef(null != columnStyle ? columnStyle : {}, null != bodyStyle ? bodyStyle : {})) : StyleClassDef.DEFAULT;
28
- }
28
+ }
29
+ //# sourceMappingURL=style.js.map
@@ -92,7 +92,7 @@ export class BaseTable extends EventTarget {
92
92
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
93
93
  if (super(), this.showFrozenIcon = !0, this._scrollToRowCorrectTimer = null, this._tableBorderWidth_left = 0,
94
94
  this._tableBorderWidth_right = 0, this._tableBorderWidth_top = 0, this._tableBorderWidth_bottom = 0,
95
- this.version = "1.26.2-alpha.1", this.id = `VTable${Date.now()}`, this.isReleased = !1,
95
+ this.version = "1.26.1", this.id = `VTable${Date.now()}`, this.isReleased = !1,
96
96
  this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200),
97
97
  "undefined" != typeof window) {
98
98
  const g = window;
@@ -1048,7 +1048,7 @@ export class BaseTable extends EventTarget {
1048
1048
  internalProps.layoutMap.release(), internalProps.releaseList && (internalProps.releaseList.forEach((releaseObj => {
1049
1049
  var _a;
1050
1050
  return null === (_a = null == releaseObj ? void 0 : releaseObj.release) || void 0 === _a ? void 0 : _a.call(releaseObj);
1051
- })), internalProps.releaseList = null), this.scenegraph.stage.release(), this.scenegraph.proxy.release();
1051
+ })), internalProps.releaseList = null), this.scenegraph.releaseStage(), this.scenegraph.proxy.release();
1052
1052
  const parentElement = null === (_0 = internalProps.element) || void 0 === _0 ? void 0 : _0.parentElement;
1053
1053
  parentElement && !this.options.canvas && parentElement.removeChild(internalProps.element),
1054
1054
  null === (_3 = null === (_2 = null === (_1 = this.editorManager) || void 0 === _1 ? void 0 : _1.editingEditor) || void 0 === _2 ? void 0 : _2.onEnd) || void 0 === _3 || _3.call(_2),
@@ -2303,5 +2303,4 @@ export class BaseTable extends EventTarget {
2303
2303
  this.updateCellContentRange(range.start.col, range.start.row, range.end.col, range.end.row);
2304
2304
  }
2305
2305
  }
2306
- }
2307
- //# sourceMappingURL=BaseTable.js.map
2306
+ }