@visactor/vtable 1.26.4 → 1.26.5

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 (143) hide show
  1. package/cjs/ListTable.d.ts +1 -0
  2. package/cjs/ListTable.js +24 -8
  3. package/cjs/ListTable.js.map +1 -1
  4. package/cjs/body-helper/style.js +2 -1
  5. package/cjs/components/index.js +1 -2
  6. package/cjs/components/legend/discrete-legend/discrete-legend.d.ts +1 -1
  7. package/cjs/core/BaseTable.js +18 -18
  8. package/cjs/core/BaseTable.js.map +1 -1
  9. package/cjs/data/DataSource.js +1 -2
  10. package/cjs/dataset/DataStatistics.js +2 -1
  11. package/cjs/header-helper/style.js +2 -1
  12. package/cjs/index.d.ts +1 -1
  13. package/cjs/index.js +1 -1
  14. package/cjs/index.js.map +1 -1
  15. package/cjs/layout/index.js +1 -2
  16. package/cjs/plugins/custom-cell-style.js +1 -1
  17. package/cjs/scenegraph/animation/appear.js +18 -3
  18. package/cjs/scenegraph/animation/appear.js.map +1 -1
  19. package/cjs/scenegraph/component/custom.js +3 -3
  20. package/cjs/scenegraph/component/custom.js.map +1 -1
  21. package/cjs/scenegraph/component/menu.js +4 -4
  22. package/cjs/scenegraph/component/menu.js.map +1 -1
  23. package/cjs/scenegraph/graphic/chart.d.ts +6 -1
  24. package/cjs/scenegraph/graphic/chart.js +38 -4
  25. package/cjs/scenegraph/graphic/chart.js.map +1 -1
  26. package/cjs/scenegraph/graphic/contributions/chart-render-helper.js +2 -1
  27. package/cjs/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -1
  28. package/cjs/scenegraph/graphic/group.d.ts +3 -1
  29. package/cjs/scenegraph/graphic/group.js +21 -3
  30. package/cjs/scenegraph/graphic/group.js.map +1 -1
  31. package/cjs/scenegraph/group-creater/cell-helper.js +4 -3
  32. package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -1
  33. package/cjs/scenegraph/group-creater/cell-type/button-cell.js +2 -2
  34. package/cjs/scenegraph/group-creater/cell-type/button-cell.js.map +1 -1
  35. package/cjs/scenegraph/group-creater/cell-type/chart-cell.js +4 -4
  36. package/cjs/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -1
  37. package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.js +2 -2
  38. package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.js.map +1 -1
  39. package/cjs/scenegraph/group-creater/cell-type/image-cell.js +2 -2
  40. package/cjs/scenegraph/group-creater/cell-type/image-cell.js.map +1 -1
  41. package/cjs/scenegraph/group-creater/cell-type/radio-cell.js +2 -2
  42. package/cjs/scenegraph/group-creater/cell-type/radio-cell.js.map +1 -1
  43. package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js +2 -2
  44. package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -1
  45. package/cjs/scenegraph/group-creater/cell-type/switch-cell.js +2 -2
  46. package/cjs/scenegraph/group-creater/cell-type/switch-cell.js.map +1 -1
  47. package/cjs/scenegraph/group-creater/cell-type/text-cell.js +6 -6
  48. package/cjs/scenegraph/group-creater/cell-type/text-cell.js.map +1 -1
  49. package/cjs/scenegraph/group-creater/cell-type/video-cell.js +10 -7
  50. package/cjs/scenegraph/group-creater/cell-type/video-cell.js.map +1 -1
  51. package/cjs/scenegraph/group-creater/column-helper.js +3 -2
  52. package/cjs/scenegraph/group-creater/column-helper.js.map +1 -1
  53. package/cjs/scenegraph/runtime-contributions.d.ts +2 -0
  54. package/cjs/scenegraph/runtime-contributions.js +28 -0
  55. package/cjs/scenegraph/runtime-contributions.js.map +1 -0
  56. package/cjs/scenegraph/scenegraph.d.ts +4 -1
  57. package/cjs/scenegraph/scenegraph.js +39 -15
  58. package/cjs/scenegraph/scenegraph.js.map +1 -1
  59. package/cjs/scenegraph/utils/text-icon-layout.d.ts +4 -0
  60. package/cjs/scenegraph/utils/text-icon-layout.js +23 -6
  61. package/cjs/scenegraph/utils/text-icon-layout.js.map +1 -1
  62. package/cjs/scenegraph/utils/text-measure.js.map +1 -1
  63. package/cjs/ts-types/base-table.d.ts +4 -1
  64. package/cjs/ts-types/base-table.js.map +1 -1
  65. package/cjs/vrender-app.d.ts +20 -0
  66. package/cjs/vrender-app.js +141 -0
  67. package/cjs/vrender-app.js.map +1 -0
  68. package/cjs/vrender.d.ts +17 -1
  69. package/cjs/vrender.js +36 -15
  70. package/cjs/vrender.js.map +1 -1
  71. package/dist/vtable.js +105835 -96838
  72. package/dist/vtable.min.js +1 -1
  73. package/es/ListTable.d.ts +1 -0
  74. package/es/ListTable.js +24 -7
  75. package/es/ListTable.js.map +1 -1
  76. package/es/body-helper/style.js +2 -1
  77. package/es/components/index.js +1 -2
  78. package/es/components/legend/discrete-legend/discrete-legend.d.ts +1 -1
  79. package/es/core/BaseTable.js +18 -18
  80. package/es/core/BaseTable.js.map +1 -1
  81. package/es/data/DataSource.js +1 -2
  82. package/es/dataset/DataStatistics.js +2 -1
  83. package/es/header-helper/style.js +2 -1
  84. package/es/index.d.ts +1 -1
  85. package/es/index.js +1 -1
  86. package/es/index.js.map +1 -1
  87. package/es/layout/index.js +1 -2
  88. package/es/plugins/custom-cell-style.js +1 -1
  89. package/es/scenegraph/animation/appear.js +18 -3
  90. package/es/scenegraph/animation/appear.js.map +1 -1
  91. package/es/scenegraph/component/custom.js +3 -3
  92. package/es/scenegraph/component/custom.js.map +1 -1
  93. package/es/scenegraph/component/menu.js +4 -4
  94. package/es/scenegraph/component/menu.js.map +1 -1
  95. package/es/scenegraph/graphic/chart.d.ts +6 -1
  96. package/es/scenegraph/graphic/chart.js +39 -3
  97. package/es/scenegraph/graphic/chart.js.map +1 -1
  98. package/es/scenegraph/graphic/contributions/chart-render-helper.js +2 -1
  99. package/es/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -1
  100. package/es/scenegraph/graphic/group.d.ts +3 -1
  101. package/es/scenegraph/graphic/group.js +21 -3
  102. package/es/scenegraph/graphic/group.js.map +1 -1
  103. package/es/scenegraph/group-creater/cell-helper.js +4 -3
  104. package/es/scenegraph/group-creater/cell-helper.js.map +1 -1
  105. package/es/scenegraph/group-creater/cell-type/button-cell.js +2 -2
  106. package/es/scenegraph/group-creater/cell-type/button-cell.js.map +1 -1
  107. package/es/scenegraph/group-creater/cell-type/chart-cell.js +4 -4
  108. package/es/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -1
  109. package/es/scenegraph/group-creater/cell-type/checkbox-cell.js +2 -2
  110. package/es/scenegraph/group-creater/cell-type/checkbox-cell.js.map +1 -1
  111. package/es/scenegraph/group-creater/cell-type/image-cell.js +2 -2
  112. package/es/scenegraph/group-creater/cell-type/image-cell.js.map +1 -1
  113. package/es/scenegraph/group-creater/cell-type/radio-cell.js +2 -2
  114. package/es/scenegraph/group-creater/cell-type/radio-cell.js.map +1 -1
  115. package/es/scenegraph/group-creater/cell-type/spark-line-cell.js +2 -2
  116. package/es/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -1
  117. package/es/scenegraph/group-creater/cell-type/switch-cell.js +2 -2
  118. package/es/scenegraph/group-creater/cell-type/switch-cell.js.map +1 -1
  119. package/es/scenegraph/group-creater/cell-type/text-cell.js +5 -5
  120. package/es/scenegraph/group-creater/cell-type/text-cell.js.map +1 -1
  121. package/es/scenegraph/group-creater/cell-type/video-cell.js +10 -7
  122. package/es/scenegraph/group-creater/cell-type/video-cell.js.map +1 -1
  123. package/es/scenegraph/group-creater/column-helper.js +3 -2
  124. package/es/scenegraph/group-creater/column-helper.js.map +1 -1
  125. package/es/scenegraph/runtime-contributions.d.ts +2 -0
  126. package/es/scenegraph/runtime-contributions.js +20 -0
  127. package/es/scenegraph/runtime-contributions.js.map +1 -0
  128. package/es/scenegraph/scenegraph.d.ts +4 -1
  129. package/es/scenegraph/scenegraph.js +41 -15
  130. package/es/scenegraph/scenegraph.js.map +1 -1
  131. package/es/scenegraph/utils/text-icon-layout.d.ts +4 -0
  132. package/es/scenegraph/utils/text-icon-layout.js +18 -2
  133. package/es/scenegraph/utils/text-icon-layout.js.map +1 -1
  134. package/es/scenegraph/utils/text-measure.js.map +1 -1
  135. package/es/ts-types/base-table.d.ts +4 -1
  136. package/es/ts-types/base-table.js.map +1 -1
  137. package/es/vrender-app.d.ts +20 -0
  138. package/es/vrender-app.js +161 -0
  139. package/es/vrender-app.js.map +1 -0
  140. package/es/vrender.d.ts +17 -1
  141. package/es/vrender.js +27 -8
  142. package/es/vrender.js.map +1 -1
  143. package/package.json +8 -7
@@ -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
@@ -46,5 +46,4 @@ export const registerTooltip = () => {
46
46
 
47
47
  export const registerAnimation = () => {
48
48
  registerCustomAnimate(), registerAnimate();
49
- };
50
- //# sourceMappingURL=index.js.map
49
+ };
@@ -15,7 +15,7 @@ export declare class DiscreteTableLegend {
15
15
  resize(): void;
16
16
  adjustTableSize(attrs: any): void;
17
17
  getLegendAttributes(rect: any): any;
18
- getLegendItems(): import("@visactor/vrender-components/es/legend/discrete/type").LegendItemDatum[];
18
+ getLegendItems(): import("@visactor/vrender-components/legend/discrete/type").LegendItemDatum[];
19
19
  initEvent(): void;
20
20
  getLegendBounds(): {
21
21
  width: number;
@@ -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.4", this.id = `VTable${Date.now()}`, this.isReleased = !1,
95
+ this.version = "1.26.5", 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;
@@ -104,7 +104,7 @@ export class BaseTable extends EventTarget {
104
104
  });
105
105
  registry.byId[this.id] = this, registry.list.push(this), registry.last = this, g.__vtable_last_id__ = this.id;
106
106
  }
107
- if ("node" === Env.mode ? (options = container, container = null) : container instanceof HTMLElement || (options = container,
107
+ if ("node" === Env.mode ? (options = container, container = null) : !container || container instanceof HTMLElement || (options = container,
108
108
  container = container.container ? container.container : null), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
109
109
  this.pluginManager = new PluginManager(this, options), this.fireListeners(TABLE_EVENT_TYPE.BEFORE_INIT, {
110
110
  options: options,
@@ -944,7 +944,7 @@ export class BaseTable extends EventTarget {
944
944
  }
945
945
  getBodyVisibleCellRange() {
946
946
  var _a, _b, _c, _d;
947
- const {scrollTop: scrollTop, scrollLeft: scrollLeft} = this, frozenColsContentWidth = this.getFrozenColsContentWidth(), frozenColsOffset = this.getFrozenColsOffset(), bottomFrozenRowsHeight = this.getBottomFrozenRowsHeight(), rightFrozenColsWidth = this.getRightFrozenColsWidth(), rowStart = Math.max(null !== (_b = null === (_a = this.getTargetRowAt(scrollTop + 1)) || void 0 === _a ? void 0 : _a.row) && void 0 !== _b ? _b : -1, this.frozenRowCount), {col: colStart} = this.getColAt(scrollLeft + frozenColsContentWidth + 1), rowEnd = this.getAllRowsHeight() > this.tableNoFrameHeight ? Math.max(null !== (_d = null === (_c = this.getTargetRowAt(scrollTop + this.tableNoFrameHeight - 1 - bottomFrozenRowsHeight)) || void 0 === _c ? void 0 : _c.row) && void 0 !== _d ? _d : -1, rowStart) : this.rowCount - 1, colEnd = this.getAllColsWidth() > this.tableNoFrameWidth ? this.getColAt(scrollLeft + frozenColsOffset + this.tableNoFrameWidth - 1 - rightFrozenColsWidth).col : this.colCount - 1;
947
+ const {scrollTop: scrollTop, scrollLeft: scrollLeft} = this, frozenColsContentWidth = this.getFrozenColsContentWidth(), frozenColsOffset = this.getFrozenColsOffset(), bottomFrozenRowsHeight = this.getBottomFrozenRowsHeight(), rightFrozenColsWidth = this.getRightFrozenColsWidth(), frozenHeaderHeight = this.frozenRowCount > this.columnHeaderLevelCount ? this.getRowsHeight(0, this.columnHeaderLevelCount - 1) : 0, rowStart = Math.max(null !== (_b = null === (_a = this.getTargetRowAt(scrollTop + 1)) || void 0 === _a ? void 0 : _a.row) && void 0 !== _b ? _b : -1, this.frozenRowCount), {col: colStart} = this.getColAt(scrollLeft + frozenColsContentWidth + 1), rowEnd = this.getAllRowsHeight() > this.tableNoFrameHeight ? Math.max(null !== (_d = null === (_c = this.getTargetRowAt(scrollTop + this.tableNoFrameHeight - 1 - bottomFrozenRowsHeight - frozenHeaderHeight)) || void 0 === _c ? void 0 : _c.row) && void 0 !== _d ? _d : -1, rowStart) : this.rowCount - 1, colEnd = this.getAllColsWidth() > this.tableNoFrameWidth ? this.getColAt(scrollLeft + frozenColsOffset + this.tableNoFrameWidth - 1 - rightFrozenColsWidth).col : this.colCount - 1;
948
948
  return colEnd < 0 || rowEnd < 0 ? null : {
949
949
  rowStart: rowStart,
950
950
  colStart: colStart,
@@ -954,7 +954,7 @@ export class BaseTable extends EventTarget {
954
954
  }
955
955
  getBodyVisibleRowRange(start_deltaY = 0, end_deltaY = 0) {
956
956
  var _a, _b, _c, _d;
957
- const {scrollTop: scrollTop} = this, bottomFrozenRowsHeight = this.getBottomFrozenRowsHeight(), rowStart = Math.max(null !== (_b = null === (_a = this.getTargetRowAt(scrollTop + 1 + start_deltaY)) || void 0 === _a ? void 0 : _a.row) && void 0 !== _b ? _b : -1, this.frozenRowCount), rowEnd = this.getAllRowsHeight() > this.tableNoFrameHeight ? Math.max(null !== (_d = null === (_c = this.getTargetRowAt(scrollTop + this.tableNoFrameHeight - 1 - bottomFrozenRowsHeight + end_deltaY)) || void 0 === _c ? void 0 : _c.row) && void 0 !== _d ? _d : -1, rowStart) : this.rowCount - 1;
957
+ const {scrollTop: scrollTop} = this, bottomFrozenRowsHeight = this.getBottomFrozenRowsHeight(), frozenHeaderHeight = this.frozenRowCount > this.columnHeaderLevelCount ? this.getRowsHeight(0, this.columnHeaderLevelCount - 1) : 0, rowStart = Math.max(null !== (_b = null === (_a = this.getTargetRowAt(scrollTop + 1 + start_deltaY)) || void 0 === _a ? void 0 : _a.row) && void 0 !== _b ? _b : -1, this.frozenRowCount), rowEnd = this.getAllRowsHeight() > this.tableNoFrameHeight ? Math.max(null !== (_d = null === (_c = this.getTargetRowAt(scrollTop + this.tableNoFrameHeight - 1 - bottomFrozenRowsHeight - frozenHeaderHeight + end_deltaY)) || void 0 === _c ? void 0 : _c.row) && void 0 !== _d ? _d : -1, rowStart) : this.rowCount - 1;
958
958
  return rowEnd < 0 ? null : {
959
959
  rowStart: rowStart,
960
960
  rowEnd: rowEnd
@@ -1018,7 +1018,7 @@ export class BaseTable extends EventTarget {
1018
1018
  this._scrollToRowCorrectTimer && (clearTimeout(this._scrollToRowCorrectTimer), this._scrollToRowCorrectTimer = null);
1019
1019
  }
1020
1020
  release() {
1021
- 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, _0, _1, _2, _3, _4;
1021
+ 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, _0, _1, _2, _3, _4, _5;
1022
1022
  if ("undefined" != typeof window) {
1023
1023
  const g = window;
1024
1024
  (null == g ? void 0 : g[this.id]) === this ? delete g[this.id] : (null == g ? void 0 : g[this.id]) && (g[this.id] = null);
@@ -1032,29 +1032,29 @@ export class BaseTable extends EventTarget {
1032
1032
  if (this.isReleased) return;
1033
1033
  null === (_f = null === (_e = null === (_d = this.scenegraph) || void 0 === _d ? void 0 : _d.component) || void 0 === _e ? void 0 : _e.vScrollBar) || void 0 === _f || _f.release(),
1034
1034
  null === (_j = null === (_h = null === (_g = this.scenegraph) || void 0 === _g ? void 0 : _g.component) || void 0 === _h ? void 0 : _h.hScrollBar) || void 0 === _j || _j.release(),
1035
- this.animationManager.clear(), this.animationManager.ticker.release(), null === (_m = null === (_l = null === (_k = this.scenegraph) || void 0 === _k ? void 0 : _k.stage) || void 0 === _l ? void 0 : _l.ticker) || void 0 === _m || _m.release();
1035
+ this.animationManager.clear(), this.animationManager.ticker.release(), (null === (_k = this.scenegraph) || void 0 === _k ? void 0 : _k.stageOwned) && (null === (_o = null === (_m = null === (_l = this.scenegraph) || void 0 === _l ? void 0 : _l.stage) || void 0 === _m ? void 0 : _m.ticker) || void 0 === _o || _o.release());
1036
1036
  const internalProps = this.internalProps, canvas = null == internalProps ? void 0 : internalProps.canvas;
1037
1037
  (null == canvas ? void 0 : canvas.__vtable__) === this && (delete canvas.__vtable__,
1038
1038
  delete canvas.__vtable_id__);
1039
1039
  const element = null == internalProps ? void 0 : internalProps.element;
1040
1040
  (null == element ? void 0 : element.__vtable__) === this && (delete element.__vtable__,
1041
- delete element.__vtable_id__), this.clearCorrectTimer(), null === (_p = null === (_o = internalProps.tooltipHandler) || void 0 === _o ? void 0 : _o.release) || void 0 === _p || _p.call(_o),
1042
- null === (_r = null === (_q = internalProps.menuHandler) || void 0 === _q ? void 0 : _q.release) || void 0 === _r || _r.call(_q),
1043
- null === (_s = super.release) || void 0 === _s || _s.call(this), this.pluginManager.release(),
1044
- null === (_u = null === (_t = internalProps.handler) || void 0 === _t ? void 0 : _t.release) || void 0 === _u || _u.call(_t),
1045
- this.eventManager.release(), null === (_w = null === (_v = internalProps.focusControl) || void 0 === _v ? void 0 : _v.release) || void 0 === _w || _w.call(_v),
1046
- null === (_x = internalProps.legends) || void 0 === _x || _x.forEach((legend => {
1041
+ delete element.__vtable_id__), this.clearCorrectTimer(), null === (_q = null === (_p = internalProps.tooltipHandler) || void 0 === _p ? void 0 : _p.release) || void 0 === _q || _q.call(_p),
1042
+ null === (_s = null === (_r = internalProps.menuHandler) || void 0 === _r ? void 0 : _r.release) || void 0 === _s || _s.call(_r),
1043
+ null === (_t = super.release) || void 0 === _t || _t.call(this), this.pluginManager.release(),
1044
+ null === (_v = null === (_u = internalProps.handler) || void 0 === _u ? void 0 : _u.release) || void 0 === _v || _v.call(_u),
1045
+ this.eventManager.release(), null === (_x = null === (_w = internalProps.focusControl) || void 0 === _w ? void 0 : _w.release) || void 0 === _x || _x.call(_w),
1046
+ null === (_y = internalProps.legends) || void 0 === _y || _y.forEach((legend => {
1047
1047
  null == legend || legend.release();
1048
- })), null === (_y = internalProps.title) || void 0 === _y || _y.release(), internalProps.title = null,
1049
- null === (_z = internalProps.emptyTip) || void 0 === _z || _z.release(), internalProps.emptyTip = null,
1048
+ })), null === (_z = internalProps.title) || void 0 === _z || _z.release(), internalProps.title = null,
1049
+ null === (_0 = internalProps.emptyTip) || void 0 === _0 || _0.release(), internalProps.emptyTip = null,
1050
1050
  internalProps.layoutMap.release(), internalProps.releaseList && (internalProps.releaseList.forEach((releaseObj => {
1051
1051
  var _a;
1052
1052
  return null === (_a = null == releaseObj ? void 0 : releaseObj.release) || void 0 === _a ? void 0 : _a.call(releaseObj);
1053
- })), internalProps.releaseList = null), this.scenegraph.stage.release(), this.scenegraph.proxy.release();
1054
- const parentElement = null === (_0 = internalProps.element) || void 0 === _0 ? void 0 : _0.parentElement;
1053
+ })), internalProps.releaseList = null), this.scenegraph.releaseStage(), this.scenegraph.proxy.release();
1054
+ const parentElement = null === (_1 = internalProps.element) || void 0 === _1 ? void 0 : _1.parentElement;
1055
1055
  parentElement && !this.options.canvas && parentElement.removeChild(internalProps.element),
1056
- 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),
1057
- this.isReleased = !0, this.scenegraph = null, this.internalProps = null, null === (_4 = this.reactCustomLayout) || void 0 === _4 || _4.clearCache(),
1056
+ null === (_4 = null === (_3 = null === (_2 = this.editorManager) || void 0 === _2 ? void 0 : _2.editingEditor) || void 0 === _3 ? void 0 : _3.onEnd) || void 0 === _4 || _4.call(_3),
1057
+ this.isReleased = !0, this.scenegraph = null, this.internalProps = null, null === (_5 = this.reactCustomLayout) || void 0 === _5 || _5.clearCache(),
1058
1058
  clearChartRenderQueue();
1059
1059
  }
1060
1060
  fireListeners(type, event) {