@visactor/vtable-gantt 1.17.1-alpha.6 → 1.17.1-alpha.7
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/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/tools/inertia.js +2 -1
- package/cjs/ts-types/gantt-engine.js +1 -2
- package/dist/vtable-gantt.js +16 -6
- package/dist/vtable-gantt.min.js +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/tools/inertia.js +2 -1
- package/es/ts-types/gantt-engine.js +1 -2
- package/package.json +3 -3
package/cjs/index.d.ts
CHANGED
|
@@ -5,5 +5,5 @@ import { Gantt } from './Gantt';
|
|
|
5
5
|
import * as tools from './tools';
|
|
6
6
|
import * as VRender from './vrender';
|
|
7
7
|
import * as VTable from './vtable';
|
|
8
|
-
export declare const version = "1.17.1-alpha.
|
|
8
|
+
export declare const version = "1.17.1-alpha.7";
|
|
9
9
|
export { TYPES, GanttConstructorOptions, Gantt, ColumnsDefine, ColumnDefine, LinkColumnDefine, ChartColumnDefine, ImageColumnDefine, SparklineColumnDefine, ProgressbarColumnDefine, TextColumnDefine, GroupColumnDefine, TextAlignType, TextBaselineType, tools, VRender, VTable };
|
package/cjs/index.js
CHANGED
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kDAAoC;AAuBlC,sBAAK;AATP,mCAAgC;AAW9B,sFAXO,aAAK,OAWP;AAVP,+CAAiC;AAsB/B,sBAAK;AArBP,mDAAqC;AAsBnC,0BAAO;AArBT,iDAAmC;AAsBjC,wBAAM;AArBK,QAAA,OAAO,GAAG,gBAAgB,CAAC","file":"index.js","sourcesContent":["import type { GanttConstructorOptions } from './ts-types';\nimport * as TYPES from './ts-types';\nimport type {\n ColumnDefine,\n ColumnsDefine,\n LinkColumnDefine,\n ChartColumnDefine,\n ImageColumnDefine,\n SparklineColumnDefine,\n ProgressbarColumnDefine,\n TextColumnDefine,\n GroupColumnDefine,\n TextAlignType,\n TextBaselineType\n} from '@visactor/vtable';\nimport { Gantt } from './Gantt';\nimport * as tools from './tools';\nimport * as VRender from './vrender';\nimport * as VTable from './vtable';\nexport const version = \"1.17.1-alpha.
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kDAAoC;AAuBlC,sBAAK;AATP,mCAAgC;AAW9B,sFAXO,aAAK,OAWP;AAVP,+CAAiC;AAsB/B,sBAAK;AArBP,mDAAqC;AAsBnC,0BAAO;AArBT,iDAAmC;AAsBjC,wBAAM;AArBK,QAAA,OAAO,GAAG,gBAAgB,CAAC","file":"index.js","sourcesContent":["import type { GanttConstructorOptions } from './ts-types';\nimport * as TYPES from './ts-types';\nimport type {\n ColumnDefine,\n ColumnsDefine,\n LinkColumnDefine,\n ChartColumnDefine,\n ImageColumnDefine,\n SparklineColumnDefine,\n ProgressbarColumnDefine,\n TextColumnDefine,\n GroupColumnDefine,\n TextAlignType,\n TextBaselineType\n} from '@visactor/vtable';\nimport { Gantt } from './Gantt';\nimport * as tools from './tools';\nimport * as VRender from './vrender';\nimport * as VTable from './vtable';\nexport const version = \"1.17.1-alpha.7\";\n/**\n * @namespace VTable\n */\nexport {\n TYPES,\n GanttConstructorOptions,\n Gantt,\n ColumnsDefine,\n ColumnDefine,\n LinkColumnDefine,\n ChartColumnDefine,\n ImageColumnDefine,\n SparklineColumnDefine,\n ProgressbarColumnDefine,\n TextColumnDefine,\n GroupColumnDefine,\n TextAlignType,\n TextBaselineType,\n tools,\n VRender,\n VTable\n};\n"]}
|
package/cjs/tools/inertia.js
CHANGED
|
@@ -11,5 +11,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
11
11
|
TasksShowMode.Tasks_Separate = "tasks_separate", TasksShowMode.Sub_Tasks_Inline = "sub_tasks_inline",
|
|
12
12
|
TasksShowMode.Sub_Tasks_Separate = "sub_tasks_separate", TasksShowMode.Sub_Tasks_Arrange = "sub_tasks_arrange",
|
|
13
13
|
TasksShowMode.Sub_Tasks_Compact = "sub_tasks_compact";
|
|
14
|
-
}(TasksShowMode = exports.TasksShowMode || (exports.TasksShowMode = {}));
|
|
15
|
-
//# sourceMappingURL=gantt-engine.js.map
|
|
14
|
+
}(TasksShowMode = exports.TasksShowMode || (exports.TasksShowMode = {}));
|
package/dist/vtable-gantt.js
CHANGED
|
@@ -41907,12 +41907,12 @@
|
|
|
41907
41907
|
isWidthNumber = !Array.isArray(strokeArrayWidth),
|
|
41908
41908
|
isStrokeTrue = !Array.isArray(stroke),
|
|
41909
41909
|
isSplitDraw = Array.isArray(strokeArrayColor) || widthInfo.isSplitDraw;
|
|
41910
|
-
context.setStrokeStyle(rect, rect.attribute, x, y, rectAttribute);
|
|
41910
|
+
context.stroke(), context.setStrokeStyle(rect, rect.attribute, x, y, rectAttribute);
|
|
41911
41911
|
const {
|
|
41912
41912
|
lineDash = groupAttribute.lineDash
|
|
41913
41913
|
} = group.attribute;
|
|
41914
41914
|
let isDash = !1;
|
|
41915
|
-
lineDash.length && lineDash.some(dash => Array.isArray(dash)) && (isDash = !0), context.
|
|
41915
|
+
lineDash.length && lineDash.some(dash => Array.isArray(dash)) && (isDash = !0), context.beginPath(), context.moveTo(x, y);
|
|
41916
41916
|
const strokeTop = (isStrokeTrue || stroke[0]) && (isWidthNumber || strokeArrayWidth[0]),
|
|
41917
41917
|
strokeRight = (isStrokeTrue || stroke[1]) && (isWidthNumber || strokeArrayWidth[1]),
|
|
41918
41918
|
strokeBottom = (isStrokeTrue || stroke[2]) && (isWidthNumber || strokeArrayWidth[2]),
|
|
@@ -43914,7 +43914,7 @@
|
|
|
43914
43914
|
}
|
|
43915
43915
|
|
|
43916
43916
|
function createCellSelectBorder(scene, start_Col, start_Row, end_Col, end_Row, selectRangeType, selectId, strokes) {
|
|
43917
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
43917
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
43918
43918
|
let isHasFillHandleRect = !!(null === (_a = scene.table.options.excelOptions) || void 0 === _a ? void 0 : _a.fillHandle);
|
|
43919
43919
|
if ((null === (_b = scene.table.stateManager.select.ranges) || void 0 === _b ? void 0 : _b.length) > 1) isHasFillHandleRect = !1, scene.removeFillHandleFromSelectComponents();else if (1 === (null === (_c = scene.table.stateManager.select.ranges) || void 0 === _c ? void 0 : _c.length)) {
|
|
43920
43920
|
const maxRow = Math.max(scene.table.stateManager.select.ranges[0].start.row, scene.table.stateManager.select.ranges[0].end.row),
|
|
@@ -43940,7 +43940,8 @@
|
|
|
43940
43940
|
y: firstCellBound.y1 - scene.tableGroup.attribute.y,
|
|
43941
43941
|
width: 0,
|
|
43942
43942
|
height: 0,
|
|
43943
|
-
visible: !0
|
|
43943
|
+
visible: !0,
|
|
43944
|
+
cornerRadius: getCornerRadius(selectRangeType, null === (_j = scene.table.theme.frameStyle) || void 0 === _j ? void 0 : _j.cornerRadius, start_Col, start_Row, end_Col, end_Row, scene.table)
|
|
43944
43945
|
});
|
|
43945
43946
|
let fillhandle;
|
|
43946
43947
|
isHasFillHandleRect && (fillhandle = createRect({
|
|
@@ -43958,6 +43959,15 @@
|
|
|
43958
43959
|
role: selectRangeType
|
|
43959
43960
|
}), scene.tableGroup.insertAfter(rect, "body" === selectRangeType ? scene.bodyGroup : "columnHeader" === selectRangeType ? scene.colHeaderGroup : "rowHeader" === selectRangeType ? scene.rowHeaderGroup : "cornerHeader" === selectRangeType ? scene.cornerHeaderGroup : "rightTopCorner" === selectRangeType ? scene.rightTopCornerGroup : "rightFrozen" === selectRangeType ? scene.rightFrozenGroup : "leftBottomCorner" === selectRangeType ? scene.leftBottomCornerGroup : "bottomFrozen" === selectRangeType ? scene.bottomFrozenGroup : scene.rightBottomCornerGroup), isHasFillHandleRect && scene.tableGroup.insertAfter(fillhandle, "body" === selectRangeType ? scene.bodyGroup : "columnHeader" === selectRangeType ? scene.colHeaderGroup : "rowHeader" === selectRangeType ? scene.rowHeaderGroup : "cornerHeader" === selectRangeType ? scene.cornerHeaderGroup : "rightTopCorner" === selectRangeType ? scene.rightTopCornerGroup : "rightFrozen" === selectRangeType ? scene.rightFrozenGroup : "leftBottomCorner" === selectRangeType ? scene.leftBottomCornerGroup : "bottomFrozen" === selectRangeType ? scene.bottomFrozenGroup : scene.rightBottomCornerGroup);
|
|
43960
43961
|
}
|
|
43962
|
+
function getCornerRadius(selectRangeType, cornerRadius, start_Col, start_Row, end_Col, end_Row, table) {
|
|
43963
|
+
if (!cornerRadius) return;
|
|
43964
|
+
const cornerRadiusArray = Array.isArray(cornerRadius) ? cornerRadius : [cornerRadius, cornerRadius, cornerRadius, cornerRadius],
|
|
43965
|
+
tableEndCol = table.colCount - 1,
|
|
43966
|
+
tableEndRow = table.rowCount - 1,
|
|
43967
|
+
result = [0, 0, 0, 0];
|
|
43968
|
+
let changed = !1;
|
|
43969
|
+
return 0 === start_Col && 0 === start_Row ? (result[0] = cornerRadiusArray[0], changed = !0) : end_Col === tableEndCol && end_Row === tableEndRow ? (result[2] = cornerRadiusArray[2], changed = !0) : 0 === start_Col && end_Row === tableEndRow ? (result[3] = cornerRadiusArray[3], changed = !0) : end_Col === tableEndCol && 0 === start_Row && (result[1] = cornerRadiusArray[1], changed = !0), changed ? result : void 0;
|
|
43970
|
+
}
|
|
43961
43971
|
|
|
43962
43972
|
function moveSelectingRangeComponentsToSelectedRangeComponents(scene) {
|
|
43963
43973
|
scene.selectingRangeComponents.forEach((rangeComponent, key) => {
|
|
@@ -51939,7 +51949,7 @@
|
|
|
51939
51949
|
constructor(container) {
|
|
51940
51950
|
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
51941
51951
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
51942
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.17.1-alpha.
|
|
51952
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.17.1-alpha.7", 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");
|
|
51943
51953
|
!1 === (null === (_a = options.customConfig) || void 0 === _a ? void 0 : _a.imageAnonymous) && (vglobal.isImageAnonymous = !1);
|
|
51944
51954
|
const {
|
|
51945
51955
|
frozenColCount = 0,
|
|
@@ -64838,7 +64848,7 @@
|
|
|
64838
64848
|
themes: themes$1
|
|
64839
64849
|
});
|
|
64840
64850
|
|
|
64841
|
-
const version = "1.17.1-alpha.
|
|
64851
|
+
const version = "1.17.1-alpha.7";
|
|
64842
64852
|
|
|
64843
64853
|
exports.Gantt = Gantt;
|
|
64844
64854
|
exports.TYPES = index$3;
|