@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.
- package/cjs/body-helper/style.js +2 -1
- package/cjs/core/BaseTable.js +3 -4
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/header-helper/style.js +2 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/layout/index.js +1 -2
- package/cjs/plugins/custom-cell-style.js +1 -1
- package/cjs/scenegraph/animation/appear.js +5 -3
- package/cjs/scenegraph/animation/appear.js.map +1 -1
- package/cjs/scenegraph/scenegraph.d.ts +3 -1
- package/cjs/scenegraph/scenegraph.js +19 -4
- package/cjs/scenegraph/scenegraph.js.map +1 -1
- package/cjs/vrender-app.d.ts +14 -0
- package/cjs/vrender-app.js +65 -0
- package/cjs/vrender-app.js.map +1 -0
- package/cjs/vrender.d.ts +18 -1
- package/cjs/vrender.js +51 -14
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +21128 -14424
- package/dist/vtable.min.js +1 -1
- package/es/body-helper/style.js +2 -1
- package/es/core/BaseTable.js +3 -4
- package/es/core/BaseTable.js.map +1 -1
- package/es/header-helper/style.js +2 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/layout/index.js +1 -2
- package/es/plugins/custom-cell-style.js +1 -1
- package/es/scenegraph/animation/appear.js +5 -3
- package/es/scenegraph/animation/appear.js.map +1 -1
- package/es/scenegraph/scenegraph.d.ts +3 -1
- package/es/scenegraph/scenegraph.js +18 -5
- package/es/scenegraph/scenegraph.js.map +1 -1
- package/es/vrender-app.d.ts +14 -0
- package/es/vrender-app.js +63 -0
- package/es/vrender-app.js.map +1 -0
- package/es/vrender.d.ts +18 -1
- package/es/vrender.js +31 -8
- package/es/vrender.js.map +1 -1
- package/package.json +10 -9
package/es/body-helper/style.js
CHANGED
|
@@ -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
|
package/es/core/BaseTable.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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
|
+
}
|