@visactor/vtable-calendar 1.17.4-alpha.0 → 1.17.4-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/dist/vtable-calendar.js +12 -18
- package/dist/vtable-calendar.min.js +1 -1
- package/package.json +2 -2
package/dist/vtable-calendar.js
CHANGED
|
@@ -41525,6 +41525,7 @@
|
|
|
41525
41525
|
}
|
|
41526
41526
|
|
|
41527
41527
|
function updateHoverPosition(state, col, row) {
|
|
41528
|
+
var _a;
|
|
41528
41529
|
const {
|
|
41529
41530
|
table: table
|
|
41530
41531
|
} = state,
|
|
@@ -41546,7 +41547,7 @@
|
|
|
41546
41547
|
scenegraph.hideHoverIcon(prevHoverCellCol, prevHoverCellRow), scenegraph.showHoverIcon(col, row), cellPosContainHeader.col = col, cellPosContainHeader.row = row;
|
|
41547
41548
|
}
|
|
41548
41549
|
if ((disableHeader && table.isHeader(col, row) || highlightScope === HighlightScope.none) && (col = -1, row = -1), prevHoverCellCol === col && prevHoverCellRow === row) return;
|
|
41549
|
-
scenegraph.deactivateChart(prevHoverCellCol, prevHoverCellRow), scenegraph.activateChart(col, row);
|
|
41550
|
+
(null === (_a = state.table.options.customConfig) || void 0 === _a ? void 0 : _a.disableBuildInChartActive) || (scenegraph.deactivateChart(prevHoverCellCol, prevHoverCellRow), scenegraph.activateChart(col, row));
|
|
41550
41551
|
let updateScenegraph = !1;
|
|
41551
41552
|
const {
|
|
41552
41553
|
ranges: ranges,
|
|
@@ -45049,8 +45050,8 @@
|
|
|
45049
45050
|
constructor() {
|
|
45050
45051
|
let style = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
45051
45052
|
let bodyStyle = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
45052
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q
|
|
45053
|
-
super(style, bodyStyle), this._showBar = null === (_a = style.showBar) || void 0 === _a || _a, this._barColor = null !== (_b = style.barColor) && void 0 !== _b ? _b : DEFAULT_BAR_COLOR, this._barPositiveColor = null !== (_c = style.barPositiveColor) && void 0 !== _c ? _c : "#4dbd74", this._barNegativeColor = null !== (_d = style.barNegativeColor) && void 0 !== _d ? _d : "#f86c6b", this._barAxisColor = null !== (_e = style.barAxisColor) && void 0 !== _e ? _e : "black", this._barBgColor = style.barBgColor, this._barHeight = null !== (_f = style.barHeight) && void 0 !== _f ? _f : 3, this._barHeight = null !== (_g = style.barHeight) && void 0 !== _g ? _g : 3, this._barBottom = null !== (_h = style.barBottom) && void 0 !== _h ? _h : 0, this._barPadding = null !== (_j = style.barPadding) && void 0 !== _j ? _j : [0, 0, 0, 0], this._showBarMark = null !== (_k = style.showBarMark) && void 0 !== _k && _k, this._barMarkPositiveColor = null !== (_l = style.barMarkPositiveColor) && void 0 !== _l ? _l : "#4dbd74", this._barMarkNegativeColor = null !== (_m = style.barMarkNegativeColor) && void 0 !== _m ? _m : "#f86c6b", this._barMarkWidth = null !== (_o = style.barMarkWidth) && void 0 !== _o ? _o : 2, this._barMarkPosition = null !== (_p = style.barMarkPosition) && void 0 !== _p ? _p : "right", this._barRightToLeft = null !== (_q = style.barRightToLeft) && void 0 !== _q && _q
|
|
45053
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
45054
|
+
super(style, bodyStyle), this._showBar = null === (_a = style.showBar) || void 0 === _a || _a, this._barColor = null !== (_b = style.barColor) && void 0 !== _b ? _b : DEFAULT_BAR_COLOR, this._barPositiveColor = null !== (_c = style.barPositiveColor) && void 0 !== _c ? _c : "#4dbd74", this._barNegativeColor = null !== (_d = style.barNegativeColor) && void 0 !== _d ? _d : "#f86c6b", this._barAxisColor = null !== (_e = style.barAxisColor) && void 0 !== _e ? _e : "black", this._barBgColor = style.barBgColor, this._barHeight = null !== (_f = style.barHeight) && void 0 !== _f ? _f : 3, this._barHeight = null !== (_g = style.barHeight) && void 0 !== _g ? _g : 3, this._barBottom = null !== (_h = style.barBottom) && void 0 !== _h ? _h : 0, this._barPadding = null !== (_j = style.barPadding) && void 0 !== _j ? _j : [0, 0, 0, 0], this._showBarMark = null !== (_k = style.showBarMark) && void 0 !== _k && _k, this._barMarkPositiveColor = null !== (_l = style.barMarkPositiveColor) && void 0 !== _l ? _l : "#4dbd74", this._barMarkNegativeColor = null !== (_m = style.barMarkNegativeColor) && void 0 !== _m ? _m : "#f86c6b", this._barMarkWidth = null !== (_o = style.barMarkWidth) && void 0 !== _o ? _o : 2, this._barMarkPosition = null !== (_p = style.barMarkPosition) && void 0 !== _p ? _p : "right", this._barRightToLeft = null !== (_q = style.barRightToLeft) && void 0 !== _q && _q;
|
|
45054
45055
|
}
|
|
45055
45056
|
get showBar() {
|
|
45056
45057
|
return this._showBar;
|
|
@@ -45142,12 +45143,6 @@
|
|
|
45142
45143
|
set barRightToLeft(value) {
|
|
45143
45144
|
this._barRightToLeft = value;
|
|
45144
45145
|
}
|
|
45145
|
-
get barMarkInBar() {
|
|
45146
|
-
return this._barMarkInBar;
|
|
45147
|
-
}
|
|
45148
|
-
set barMarkInBar(value) {
|
|
45149
|
-
this._barMarkInBar = value;
|
|
45150
|
-
}
|
|
45151
45146
|
clone() {
|
|
45152
45147
|
return new ProgressBarStyle(this, null);
|
|
45153
45148
|
}
|
|
@@ -47612,7 +47607,7 @@
|
|
|
47612
47607
|
constructor(container) {
|
|
47613
47608
|
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
47614
47609
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
47615
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.17.4-alpha.
|
|
47610
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.17.4-alpha.1", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
|
|
47616
47611
|
!1 === (null === (_a = options.customConfig) || void 0 === _a ? void 0 : _a.imageAnonymous) && (vglobal.isImageAnonymous = !1);
|
|
47617
47612
|
const {
|
|
47618
47613
|
frozenColCount = 0,
|
|
@@ -56921,8 +56916,7 @@
|
|
|
56921
56916
|
barMarkPositiveColor: barMarkPositiveColor,
|
|
56922
56917
|
barMarkNegativeColor: barMarkNegativeColor,
|
|
56923
56918
|
barMarkWidth: barMarkWidth,
|
|
56924
|
-
barMarkPosition: barMarkPosition
|
|
56925
|
-
barMarkInBar: barMarkInBar
|
|
56919
|
+
barMarkPosition: barMarkPosition
|
|
56926
56920
|
} = style;
|
|
56927
56921
|
let {
|
|
56928
56922
|
barHeight: barHeight,
|
|
@@ -56937,11 +56931,11 @@
|
|
|
56937
56931
|
return Number(v);
|
|
56938
56932
|
});
|
|
56939
56933
|
const borderWidth = getQuadProps(getProp("borderLineWidth", style, col, row, table)),
|
|
56940
|
-
barPaddingTop = Math.max(barPadding[0], Math.ceil(borderWidth[0] / 2))
|
|
56941
|
-
|
|
56942
|
-
|
|
56943
|
-
|
|
56944
|
-
|
|
56934
|
+
barPaddingTop = Math.max(barPadding[0], Math.ceil(borderWidth[0] / 2)),
|
|
56935
|
+
barPaddingRight = Math.max(barPadding[1], Math.floor(borderWidth[1] / 2)),
|
|
56936
|
+
barPaddingBottom = Math.max(barPadding[2], Math.floor(borderWidth[2] / 2)),
|
|
56937
|
+
barPaddingLeft = Math.max(barPadding[3], Math.ceil(borderWidth[3] / 2));
|
|
56938
|
+
contentWidth -= barPaddingRight + barPaddingLeft, contentHeight -= barPaddingBottom + barPaddingTop, row === table.rowCount - 1 && [0, "0"].includes(barBottom) && (contentHeight -= 1);
|
|
56945
56939
|
const top = barPaddingTop,
|
|
56946
56940
|
left = barPaddingLeft,
|
|
56947
56941
|
right = contentWidth;
|
|
@@ -57128,7 +57122,7 @@
|
|
|
57128
57122
|
dataValue: dataValue,
|
|
57129
57123
|
percentile: positiveRate
|
|
57130
57124
|
}) || "#20a8d8", "right" === barMarkPosition) {
|
|
57131
|
-
const markLeft = barRightToLeft ? barRectPosi.left + barMarkWidth / 2 : barRectPosi.left + barRectPosi.width
|
|
57125
|
+
const markLeft = barRightToLeft ? barRectPosi.left + barMarkWidth / 2 : barRectPosi.left + barRectPosi.width - barMarkWidth / 2;
|
|
57132
57126
|
points.push({
|
|
57133
57127
|
x: markLeft,
|
|
57134
57128
|
y: barRectPosi.top
|