@visactor/vtable-calendar 1.23.1 → 1.23.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.
- package/dist/vtable-calendar.js +39 -33
- package/dist/vtable-calendar.min.js +1 -1
- package/package.json +4 -4
package/dist/vtable-calendar.js
CHANGED
|
@@ -33565,7 +33565,7 @@
|
|
|
33565
33565
|
}(IconPosition || (IconPosition = {}));
|
|
33566
33566
|
var IconFuncTypeEnum;
|
|
33567
33567
|
!function (IconFuncTypeEnum) {
|
|
33568
|
-
IconFuncTypeEnum.frozen = "frozen", IconFuncTypeEnum.sort = "sort", IconFuncTypeEnum.dropDown = "dropDown", IconFuncTypeEnum.dropDownState = "dropDownState", IconFuncTypeEnum.play = "play", IconFuncTypeEnum.damagePic = "damagePic", IconFuncTypeEnum.expand = "expand", IconFuncTypeEnum.collapse = "collapse", IconFuncTypeEnum.drillDown = "drillDown", IconFuncTypeEnum.drillUp = "drillUp", IconFuncTypeEnum.dragReorder = "dragReorder";
|
|
33568
|
+
IconFuncTypeEnum.frozen = "frozen", IconFuncTypeEnum.sort = "sort", IconFuncTypeEnum.dropDown = "dropDown", IconFuncTypeEnum.dropDownState = "dropDownState", IconFuncTypeEnum.play = "play", IconFuncTypeEnum.damagePic = "damagePic", IconFuncTypeEnum.imageDamagePic = "imageDamagePic", IconFuncTypeEnum.videoDamagePic = "videoDamagePic", IconFuncTypeEnum.expand = "expand", IconFuncTypeEnum.collapse = "collapse", IconFuncTypeEnum.drillDown = "drillDown", IconFuncTypeEnum.drillUp = "drillUp", IconFuncTypeEnum.dragReorder = "dragReorder";
|
|
33569
33569
|
}(IconFuncTypeEnum || (IconFuncTypeEnum = {}));
|
|
33570
33570
|
var InternalIconName;
|
|
33571
33571
|
!function (InternalIconName) {
|
|
@@ -41165,7 +41165,7 @@
|
|
|
41165
41165
|
image: value,
|
|
41166
41166
|
cursor: "pointer"
|
|
41167
41167
|
});
|
|
41168
|
-
|
|
41168
|
+
if (image.name = "image", image.keepAspectRatio = keepAspectRatio, image.textAlign = textAlign, image.textBaseline = textBaseline, keepAspectRatio || imageAutoSizing ? image.resources && image.resources.has(image.attribute.image) && "success" === image.resources.get(image.attribute.image).state ? (image.setAttribute("opacity", 0), setTimeout(() => {
|
|
41169
41169
|
image.setAttribute("opacity", 1), updateAutoSizingAndKeepAspectRatio(imageAutoSizing, keepAspectRatio, padding, textAlign, textBaseline, image, cellGroup, table), table.scenegraph.updateNextFrame();
|
|
41170
41170
|
}, 0)) : image.successCallback = () => {
|
|
41171
41171
|
updateAutoSizingAndKeepAspectRatio(imageAutoSizing, keepAspectRatio, padding, textAlign, textBaseline, image, cellGroup, table), table.scenegraph.updateNextFrame();
|
|
@@ -41173,8 +41173,12 @@
|
|
|
41173
41173
|
updateImageCellContentWhileResize(cellGroup, col, row, 0, 0, table);
|
|
41174
41174
|
}, image.failCallback = () => {
|
|
41175
41175
|
const regedIcons = get$2();
|
|
41176
|
-
image.image = regedIcons.damage_pic.svg;
|
|
41177
|
-
},
|
|
41176
|
+
image.image = regedIcons.image_damage_pic ? regedIcons.image_damage_pic.svg : regedIcons.damage_pic.svg;
|
|
41177
|
+
}, "string" == typeof value && !(value.startsWith("<svg") || isValidUrl$1(value) || value.includes("/") || isBase64$1(value))) {
|
|
41178
|
+
const regedIcons = get$2();
|
|
41179
|
+
image.image = regedIcons.image_damage_pic ? regedIcons.image_damage_pic.svg : regedIcons.damage_pic.svg;
|
|
41180
|
+
}
|
|
41181
|
+
return cellGroup.appendChild(image), cellGroup;
|
|
41178
41182
|
}
|
|
41179
41183
|
function _adjustWidthHeight(col, row, width, height, scene, padding, cellGroup) {
|
|
41180
41184
|
let needInvalidate = !1,
|
|
@@ -41318,7 +41322,7 @@
|
|
|
41318
41322
|
}
|
|
41319
41323
|
function isDamagePic(image) {
|
|
41320
41324
|
const regedIcons = get$2();
|
|
41321
|
-
return image.attribute.image === regedIcons.damage_pic.svg;
|
|
41325
|
+
return image.attribute.image === regedIcons.damage_pic.svg || regedIcons.image_damage_pic && image.attribute.image === regedIcons.image_damage_pic.svg || regedIcons.video_damage_pic && image.attribute.image === regedIcons.video_damage_pic.svg;
|
|
41322
41326
|
}
|
|
41323
41327
|
|
|
41324
41328
|
function dealPromiseData(dataPromise, tabel, callback) {
|
|
@@ -41435,7 +41439,7 @@
|
|
|
41435
41439
|
};
|
|
41436
41440
|
}
|
|
41437
41441
|
function updateCell$1(col, row, table, addNew, isShadow, forceFastUpdate) {
|
|
41438
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r
|
|
41442
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
41439
41443
|
const oldCellGroup = table.scenegraph.highPerformanceGetCell(col, row, !0);
|
|
41440
41444
|
if ("cell" !== oldCellGroup.role && !addNew) return;
|
|
41441
41445
|
const cellLocation = table.getCellLocation(col, row);
|
|
@@ -41544,7 +41548,7 @@
|
|
|
41544
41548
|
return oldCellGroup;
|
|
41545
41549
|
}
|
|
41546
41550
|
if (!addNew && "empty" === oldCellGroup.role) return;
|
|
41547
|
-
const type = isVtableMerge || isCustomMerge ? "text" : table.
|
|
41551
|
+
const type = isVtableMerge || isCustomMerge ? "text" : table.getCellType(col, row),
|
|
41548
41552
|
padding = cellTheme._vtable.padding,
|
|
41549
41553
|
textAlign = cellTheme.text.textAlign,
|
|
41550
41554
|
textBaseline = cellTheme.text.textBaseline;
|
|
@@ -42090,7 +42094,6 @@
|
|
|
42090
42094
|
table.isPivotTable() && (layoutMap.disableUseGetBodyCache(), layoutMap.disableUseHeaderPathCache());
|
|
42091
42095
|
}
|
|
42092
42096
|
function computeRowHeight(row, startCol, endCol, table) {
|
|
42093
|
-
var _a;
|
|
42094
42097
|
if (!(table.isAutoRowHeight(row) || "adaptive" === table.heightMode && !1 !== table.options.autoHeightInAdaptiveMode) && "auto" !== table.getDefaultRowHeight(row)) return table.getDefaultRowHeight(row);
|
|
42095
42098
|
let maxHeight;
|
|
42096
42099
|
if (table.options.customComputeRowHeight) {
|
|
@@ -42133,7 +42136,7 @@
|
|
|
42133
42136
|
}
|
|
42134
42137
|
}
|
|
42135
42138
|
if (table.isPivotChart() && (table.isLeftFrozenColumn(col) && table.isBottomFrozenRow(row) || table.isRightFrozenColumn(col) && table.isBottomFrozenRow(row))) continue;
|
|
42136
|
-
const cellType = table.
|
|
42139
|
+
const cellType = table.getCellType(col, row),
|
|
42137
42140
|
textHeight = computeTextHeight(col, row, cellType, table);
|
|
42138
42141
|
maxHeight = isValid$1(maxHeight) ? Math.max(textHeight, maxHeight) : textHeight;
|
|
42139
42142
|
}
|
|
@@ -42380,12 +42383,12 @@
|
|
|
42380
42383
|
cell && updateCellHeight(scene, cell, col, row, height, detaY);
|
|
42381
42384
|
}
|
|
42382
42385
|
function updateCellHeight(scene, cell, col, row, distHeight, detaY, isHeader) {
|
|
42383
|
-
var _a, _b, _c
|
|
42386
|
+
var _a, _b, _c;
|
|
42384
42387
|
if (cell.attribute.height === distHeight && !cell.needUpdateHeight) return;
|
|
42385
42388
|
cell.needUpdateHeight = !1, cell.setAttribute("height", distHeight);
|
|
42386
42389
|
const isVtableMerge = null === (_a = scene.table.getCellRawRecord(col, row)) || void 0 === _a ? void 0 : _a.vtableMerge,
|
|
42387
42390
|
isCustomMerge = !!scene.table.getCustomMerge(col, row),
|
|
42388
|
-
type = isVtableMerge || isCustomMerge ? "text" : scene.table.
|
|
42391
|
+
type = isVtableMerge || isCustomMerge ? "text" : scene.table.getCellType(col, row);
|
|
42389
42392
|
if ("progressbar" === type) {
|
|
42390
42393
|
const columnDefine = scene.table.getBodyColumnDefine(col, row),
|
|
42391
42394
|
style = scene.table._getCellStyle(col, row),
|
|
@@ -42402,7 +42405,7 @@
|
|
|
42402
42405
|
const headerStyle = scene.table._getCellStyle(col, row),
|
|
42403
42406
|
padding = getQuadProps(getProp("padding", headerStyle, col, row, scene.table));
|
|
42404
42407
|
Factory.getFunction("createSparkLineCellGroup")(cell, cell.parent, cell.attribute.x, cell.attribute.y, col, row, cell.attribute.width, cell.attribute.height, padding, scene.table, getStyleTheme(headerStyle, scene.table, col, row, getProp).theme, !1);
|
|
42405
|
-
} else if ("image" === type || "video" === type) updateImageCellContentWhileResize(cell, col, row, 0, detaY, scene.table);else if ("axis" === (null === (
|
|
42408
|
+
} else if ("image" === type || "video" === type) updateImageCellContentWhileResize(cell, col, row, 0, detaY, scene.table);else if ("axis" === (null === (_b = cell.firstChild) || void 0 === _b ? void 0 : _b.name)) null === (_c = cell.firstChild) || void 0 === _c || _c.originAxis.resize(cell.attribute.width, cell.attribute.height);else {
|
|
42406
42409
|
let renderDefault = !0;
|
|
42407
42410
|
const customContainer = cell.getChildByName(CUSTOM_CONTAINER_NAME$1) || cell.getChildByName(CUSTOM_MERGE_CONTAINER_NAME);
|
|
42408
42411
|
if (customContainer) {
|
|
@@ -42575,7 +42578,7 @@
|
|
|
42575
42578
|
}
|
|
42576
42579
|
}
|
|
42577
42580
|
function updateCellWidth(scene, cell, col, row, oldWidth, distWidth, detaX, isHeader, autoWrapText) {
|
|
42578
|
-
var _a, _b, _c, _d, _e
|
|
42581
|
+
var _a, _b, _c, _d, _e;
|
|
42579
42582
|
if (cell.attribute.width === distWidth && !cell.needUpdateWidth) return !1;
|
|
42580
42583
|
cell.needUpdateWidth = !1, cell.setAttribute("width", distWidth);
|
|
42581
42584
|
const cellGroup = cell;
|
|
@@ -42583,7 +42586,7 @@
|
|
|
42583
42586
|
const autoRowHeight = scene.table.isAutoRowHeight(row),
|
|
42584
42587
|
isVtableMerge = null === (_a = scene.table.getCellRawRecord(col, row)) || void 0 === _a ? void 0 : _a.vtableMerge,
|
|
42585
42588
|
isCustomMerge = !!scene.table.getCustomMerge(col, row),
|
|
42586
|
-
type = isVtableMerge || isCustomMerge ? "text" : scene.table.
|
|
42589
|
+
type = isVtableMerge || isCustomMerge ? "text" : scene.table.getCellType(col, row);
|
|
42587
42590
|
let isHeightChange = !1;
|
|
42588
42591
|
if ("progressbar" === type) {
|
|
42589
42592
|
const columnDefine = scene.table.getBodyColumnDefine(col, row),
|
|
@@ -42603,15 +42606,15 @@
|
|
|
42603
42606
|
const headerStyle = scene.table._getCellStyle(col, row),
|
|
42604
42607
|
padding = getQuadProps(getProp("padding", headerStyle, col, row, scene.table));
|
|
42605
42608
|
Factory.getFunction("createSparkLineCellGroup")(cellGroup, cellGroup.parent, cellGroup.attribute.x, cellGroup.attribute.y, col, row, cellGroup.attribute.width, cellGroup.attribute.height, padding, scene.table, getStyleTheme(headerStyle, scene.table, col, row, getProp).theme, !1);
|
|
42606
|
-
} else if ("image" === type || "video" === type) updateImageCellContentWhileResize(cellGroup, col, row, detaX, 0, scene.table);else if ("axis" === (null === (
|
|
42609
|
+
} else if ("image" === type || "video" === type) updateImageCellContentWhileResize(cellGroup, col, row, detaX, 0, scene.table);else if ("axis" === (null === (_b = cellGroup.firstChild) || void 0 === _b ? void 0 : _b.name)) {
|
|
42607
42610
|
const axisConfig = scene.table.internalProps.layoutMap.getAxisConfigInPivotChart(col, row),
|
|
42608
42611
|
cellStyle = scene.table._getCellStyle(col, row),
|
|
42609
42612
|
padding = getQuadProps(getProp("padding", cellStyle, col, row, scene.table));
|
|
42610
42613
|
if (axisConfig) {
|
|
42611
|
-
const axis = new (Factory.getComponent("axis"))(axisConfig, cellGroup.attribute.width, cellGroup.attribute.height, null !== (
|
|
42614
|
+
const axis = new (Factory.getComponent("axis"))(axisConfig, cellGroup.attribute.width, cellGroup.attribute.height, null !== (_c = axisConfig.__vtableBodyChartCellPadding) && void 0 !== _c ? _c : padding, scene.table);
|
|
42612
42615
|
cellGroup.clear(), cellGroup.appendChild(axis.component), axis.overlap();
|
|
42613
42616
|
}
|
|
42614
|
-
} else if ("axis" === (null === (
|
|
42617
|
+
} else if ("axis" === (null === (_d = cell.firstChild) || void 0 === _d ? void 0 : _d.name)) null === (_e = cell.firstChild) || void 0 === _e || _e.originAxis.resize(cell.attribute.width, cell.attribute.height);else {
|
|
42615
42618
|
let renderDefault = !0;
|
|
42616
42619
|
const customContainer = cell.getChildByName(CUSTOM_CONTAINER_NAME$1) || cell.getChildByName(CUSTOM_MERGE_CONTAINER_NAME);
|
|
42617
42620
|
if (customContainer) {
|
|
@@ -46149,7 +46152,7 @@
|
|
|
46149
46152
|
return table.internalProps.transpose && "auto" === width && ("only-header" === table.columnWidthComputeMode && col >= table.rowHeaderLevelCount || "only-body" === table.columnWidthComputeMode && col < table.rowHeaderLevelCount) && (width = table.getDefaultColumnWidth(col)), forceCompute && !table.internalProps.transpose ? computeAutoColWidth(width, col, startRow, endRow, forceCompute, table) : "number" == typeof width ? width : "auto" !== width && "string" == typeof width ? table._adjustColWidth(col, table._colWidthDefineToPxWidth(width)) : computeAutoColWidth(width, col, startRow, endRow, forceCompute, table);
|
|
46150
46153
|
}
|
|
46151
46154
|
function computeAutoColWidth(widthDeifne, col, startRow, endRow, forceCompute, table) {
|
|
46152
|
-
var _a, _b, _c, _d
|
|
46155
|
+
var _a, _b, _c, _d;
|
|
46153
46156
|
let maxWidth = 0,
|
|
46154
46157
|
deltaRow = 1,
|
|
46155
46158
|
prepareDeltaRow = 1;
|
|
@@ -46181,7 +46184,7 @@
|
|
|
46181
46184
|
maxWidth = Math.max(indicatorWidth, maxWidth);
|
|
46182
46185
|
continue;
|
|
46183
46186
|
}
|
|
46184
|
-
const cellType = table.
|
|
46187
|
+
const cellType = table.getCellType(col, row);
|
|
46185
46188
|
if (isValid$1(cellType) && "text" !== cellType && "link" !== cellType && "progressbar" !== cellType && "checkbox" !== cellType && "radio" !== cellType && "switch" !== cellType && "button" !== cellType) {
|
|
46186
46189
|
maxWidth = Math.max(maxWidth, table.getColWidthDefinedNumber(col) || 0);
|
|
46187
46190
|
continue;
|
|
@@ -46190,14 +46193,14 @@
|
|
|
46190
46193
|
const layoutMap = table.internalProps.layoutMap;
|
|
46191
46194
|
if (layoutMap.isHeader(col, row)) {
|
|
46192
46195
|
const hd = layoutMap.getHeader(col, row);
|
|
46193
|
-
if ("only-body" === (null === (
|
|
46194
|
-
isValid$1(null == hd ? void 0 : hd.hierarchyLevel) && (cellHierarchyIndent = (null !== (
|
|
46196
|
+
if ("only-body" === (null === (_a = null == hd ? void 0 : hd.define) || void 0 === _a ? void 0 : _a.columnWidthComputeMode)) continue;
|
|
46197
|
+
isValid$1(null == hd ? void 0 : hd.hierarchyLevel) && (cellHierarchyIndent = (null !== (_b = hd.hierarchyLevel) && void 0 !== _b ? _b : 0) * ("tree" === layoutMap.rowHierarchyType && null !== (_c = layoutMap.rowHierarchyIndent) && void 0 !== _c ? _c : 0), layoutMap.rowHierarchyTextStartAlignment && !table.internalProps.headerHelper.getHierarchyIcon(col, row) && (cellHierarchyIndent += table.internalProps.headerHelper.getHierarchyIconWidth()));
|
|
46195
46198
|
} else if (table.isListTable()) {
|
|
46196
46199
|
deltaRow = prepareDeltaRow;
|
|
46197
46200
|
const define = table.getBodyColumnDefine(col, row);
|
|
46198
46201
|
if (null == define ? void 0 : define.tree) {
|
|
46199
46202
|
const indexArr = table.dataSource.getIndexKey(table.getRecordShowIndexByCell(col, row));
|
|
46200
|
-
cellHierarchyIndent = Array.isArray(indexArr) && table.getHierarchyState(col, row) !== HierarchyState.none ? (indexArr.length - 1) * (null !== (
|
|
46203
|
+
cellHierarchyIndent = Array.isArray(indexArr) && table.getHierarchyState(col, row) !== HierarchyState.none ? (indexArr.length - 1) * (null !== (_d = layoutMap.hierarchyIndent) && void 0 !== _d ? _d : 0) : 0, layoutMap.hierarchyTextStartAlignment && !table.internalProps.bodyHelper.getHierarchyIcon(col, row) && (cellHierarchyIndent += table.internalProps.headerHelper.getHierarchyIconWidth());
|
|
46201
46204
|
}
|
|
46202
46205
|
}
|
|
46203
46206
|
const textWidth = computeTextWidth(col, row, cellType, table);
|
|
@@ -46451,7 +46454,6 @@
|
|
|
46451
46454
|
emptyGroup.role = "empty";
|
|
46452
46455
|
|
|
46453
46456
|
function createComplexColumn(columnGroup, col, colWidth, rowStart, rowEnd, mergeMap, defaultRowHeight, table, rowLimit) {
|
|
46454
|
-
var _a, _b;
|
|
46455
46457
|
let padding,
|
|
46456
46458
|
textAlign,
|
|
46457
46459
|
textBaseline,
|
|
@@ -46505,7 +46507,7 @@
|
|
|
46505
46507
|
} = null != rawRecord ? rawRecord : {};
|
|
46506
46508
|
isVtableMerge = vtableMerge, vtableMerge && (mayHaveIcon = !0, table.internalProps.groupTitleCustomLayout && (customResult = dealWithCustom(table.internalProps.groupTitleCustomLayout, void 0, range.start.col, range.start.row, table.getColsWidth(range.start.col, range.end.col), table.getRowsHeight(range.start.row, range.end.row), !1, table.isAutoRowHeight(row), [0, 0, 0, 0], range, table)), table.internalProps.groupTitleFieldFormat ? value = table.internalProps.groupTitleFieldFormat(rawRecord, col, row, table) : void 0 !== vtableMergeName && (value = vtableMergeName));
|
|
46507
46509
|
}
|
|
46508
|
-
const type = isVtableMerge || isCustomMerge ? "text" :
|
|
46510
|
+
const type = isVtableMerge || isCustomMerge ? "text" : table.getCellType(col, row);
|
|
46509
46511
|
if (isPromise(value)) {
|
|
46510
46512
|
createEmptyCellGroup(col, row, 0, y, cellWidth, cellHeight, columnGroup), dealPromiseData(value, table, callCreateCellForPromiseValue.bind(null, {
|
|
46511
46513
|
type: type,
|
|
@@ -49999,7 +50001,7 @@
|
|
|
49999
50001
|
}
|
|
50000
50002
|
updateCellContentWhileResize(col, row) {
|
|
50001
50003
|
var _a;
|
|
50002
|
-
const type = (null === (_a = this.table.getCellRawRecord(col, row)) || void 0 === _a ? void 0 : _a.vtableMerge) ? "text" : this.table.
|
|
50004
|
+
const type = (null === (_a = this.table.getCellRawRecord(col, row)) || void 0 === _a ? void 0 : _a.vtableMerge) ? "text" : this.table.getCellType(col, row),
|
|
50003
50005
|
cellGroup = this.getCell(col, row);
|
|
50004
50006
|
"image" !== type && "video" !== type || updateImageCellContentWhileResize(cellGroup, col, row, 0, 0, this.table);
|
|
50005
50007
|
}
|
|
@@ -52324,9 +52326,8 @@
|
|
|
52324
52326
|
row: row
|
|
52325
52327
|
} = e;
|
|
52326
52328
|
if ("image" === e.target.type && e.target.role && e.target.role.startsWith("icon")) return;
|
|
52327
|
-
|
|
52328
|
-
|
|
52329
|
-
const columnDefine = table.isHeader(col, row) ? table.getHeaderDefine(col, row) : table.getBodyColumnDefine(col, row),
|
|
52329
|
+
const cellType = table.getCellType(col, row),
|
|
52330
|
+
columnDefine = table.isHeader(col, row) ? table.getHeaderDefine(col, row) : table.getBodyColumnDefine(col, row),
|
|
52330
52331
|
cellValue = table.getCellValue(col, row),
|
|
52331
52332
|
cellOriginValue = table.getCellOriginValue(col, row);
|
|
52332
52333
|
if ("link" === cellType) {
|
|
@@ -52354,7 +52355,9 @@
|
|
|
52354
52355
|
if (rowData && rowData.vtableMerge) return;
|
|
52355
52356
|
const data = Object.assign({
|
|
52356
52357
|
__value: cellValue,
|
|
52357
|
-
__dataValue: cellOriginValue
|
|
52358
|
+
__dataValue: cellOriginValue,
|
|
52359
|
+
value: cellValue,
|
|
52360
|
+
dataValue: cellOriginValue
|
|
52358
52361
|
}, rowData);
|
|
52359
52362
|
if (isFunction$3(templateLink)) url = templateLink(data, col, row, table);else {
|
|
52360
52363
|
const re = /\{\s*(\S+?)\s*\}/g;
|
|
@@ -56320,7 +56323,7 @@
|
|
|
56320
56323
|
paddingForAxis = null !== (_e = null === (_d = layoutMap.getBody(table.columnHeaderLevelCount, row).style) || void 0 === _d ? void 0 : _d.padding) && void 0 !== _e ? _e : table.theme.bodyStyle.padding;
|
|
56321
56324
|
}
|
|
56322
56325
|
if ((!hd || hd.isEmpty) && (layoutMap.isLeftBottomCorner(col, row) || layoutMap.isRightBottomCorner(col, row) || layoutMap.isCornerHeader(col, row) || layoutMap.isRightTopCorner(col, row))) return EMPTY_STYLE;
|
|
56323
|
-
const styleClass = table.internalProps.headerHelper.getStyleClass((
|
|
56326
|
+
const styleClass = table.internalProps.headerHelper.getStyleClass(table.getCellType(col, row));
|
|
56324
56327
|
if (layoutMap.isBottomFrozenRow(col, row) && table.theme.bottomFrozenStyle) cacheStyle = of(paddingForAxis ? {
|
|
56325
56328
|
padding: paddingForAxis
|
|
56326
56329
|
} : {}, table.theme.bottomFrozenStyle, {
|
|
@@ -56505,7 +56508,7 @@
|
|
|
56505
56508
|
}
|
|
56506
56509
|
constructor(container, options = {}) {
|
|
56507
56510
|
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;
|
|
56508
|
-
if (super(), this.showFrozenIcon = !0, this._tableBorderWidth_left = 0, this._tableBorderWidth_right = 0, this._tableBorderWidth_top = 0, this._tableBorderWidth_bottom = 0, this.version = "1.23.
|
|
56511
|
+
if (super(), this.showFrozenIcon = !0, this._tableBorderWidth_left = 0, this._tableBorderWidth_right = 0, this._tableBorderWidth_top = 0, this._tableBorderWidth_bottom = 0, this.version = "1.23.2", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), "node" === Env.mode ? (options = container, container = null) : container instanceof HTMLElement || (options = container, container = container.container ? container.container : null), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
|
|
56509
56512
|
this.pluginManager = new PluginManager(this, options), this.fireListeners(TABLE_EVENT_TYPE.BEFORE_INIT, {
|
|
56510
56513
|
options: options,
|
|
56511
56514
|
container: container
|
|
@@ -65031,7 +65034,8 @@
|
|
|
65031
65034
|
});
|
|
65032
65035
|
playIcon.name = "play-icon", cellGroup.appendChild(playIcon), table.scenegraph.updateNextFrame();
|
|
65033
65036
|
}), video.onerror = () => {
|
|
65034
|
-
|
|
65037
|
+
const regedIcons = get$2();
|
|
65038
|
+
image.image = regedIcons.video_damage_pic ? regedIcons.video_damage_pic.svg : regedIcons.damage_pic.svg;
|
|
65035
65039
|
}, video.src = value, video.setAttribute("preload", "auto");
|
|
65036
65040
|
const image = createImage({
|
|
65037
65041
|
x: padding[3],
|
|
@@ -65041,7 +65045,9 @@
|
|
|
65041
65045
|
image: video,
|
|
65042
65046
|
cursor: "pointer"
|
|
65043
65047
|
});
|
|
65044
|
-
return image.name = "image", image.keepAspectRatio = keepAspectRatio, image.textAlign = textAlign, image.textBaseline = textBaseline, cellGroup.appendChild(image),
|
|
65048
|
+
return image.name = "image", image.keepAspectRatio = keepAspectRatio, image.textAlign = textAlign, image.textBaseline = textBaseline, cellGroup.appendChild(image), image.successCallback = () => {
|
|
65049
|
+
isDamagePic(image) && (updateAutoSizingAndKeepAspectRatio(imageAutoSizing, keepAspectRatio, padding, textAlign, textBaseline, image, cellGroup, table), table.scenegraph.updateNextFrame());
|
|
65050
|
+
}, cellGroup;
|
|
65045
65051
|
}
|
|
65046
65052
|
|
|
65047
65053
|
function createMark(marked, cellGroup, table) {
|