@visactor/vtable-gantt 1.17.7-alpha.0 → 1.17.7-alpha.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/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/dist/vtable-gantt.js +7 -9
- 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/package.json +5 -5
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.7-alpha.
|
|
8
|
+
export declare const version = "1.17.7-alpha.2";
|
|
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.7-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.7-alpha.2\";\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/dist/vtable-gantt.js
CHANGED
|
@@ -32458,8 +32458,7 @@
|
|
|
32458
32458
|
DBLCLICK_FILL_HANDLE: "dblclick_fill_handle",
|
|
32459
32459
|
EMPTY_TIP_CLICK: "empty_tip_click",
|
|
32460
32460
|
EMPTY_TIP_DBLCLICK: "empty_tip_dblclick",
|
|
32461
|
-
BUTTON_CLICK: "button_click"
|
|
32462
|
-
BEFORE_CACHE_CHART_IMAGE: "before_cache_chart_image"
|
|
32461
|
+
BUTTON_CLICK: "button_click"
|
|
32463
32462
|
};
|
|
32464
32463
|
|
|
32465
32464
|
const judgeType$1 = value => {
|
|
@@ -41397,9 +41396,6 @@
|
|
|
41397
41396
|
}
|
|
41398
41397
|
null === (_g = chartInstance.updateFullDataSync) || void 0 === _g || _g.call(chartInstance, dataBatch);
|
|
41399
41398
|
}
|
|
41400
|
-
table.fireListeners("before_cache_chart_image", {
|
|
41401
|
-
chartInstance: chartInstance
|
|
41402
|
-
});
|
|
41403
41399
|
cacheStageCanvas(chartInstance.getStage(), chart);
|
|
41404
41400
|
}
|
|
41405
41401
|
function startRenderChartQueue(table) {
|
|
@@ -52528,7 +52524,7 @@
|
|
|
52528
52524
|
constructor(container) {
|
|
52529
52525
|
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
52530
52526
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
52531
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.17.7-alpha.
|
|
52527
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.17.7-alpha.2", 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");
|
|
52532
52528
|
!1 === (null === (_a = options.customConfig) || void 0 === _a ? void 0 : _a.imageAnonymous) && (vglobal.isImageAnonymous = !1);
|
|
52533
52529
|
const {
|
|
52534
52530
|
frozenColCount = 0,
|
|
@@ -54267,9 +54263,11 @@
|
|
|
54267
54263
|
this.render();
|
|
54268
54264
|
const stage = this.scenegraph.stage;
|
|
54269
54265
|
if (stage) {
|
|
54270
|
-
|
|
54266
|
+
let contentWidth = this.tableX + this.getAllColsWidth(),
|
|
54271
54267
|
contentHeight = this.tableY + this.getAllRowsHeight();
|
|
54272
|
-
if (
|
|
54268
|
+
if (this.internalProps.legends && this.internalProps.legends.forEach(legend => {
|
|
54269
|
+
"right" === legend.orient ? contentWidth = Math.max(contentWidth, legend.legendComponent.globalAABBBounds.x2) : "bottom" === legend.orient && (contentHeight = Math.max(contentHeight, legend.legendComponent.globalAABBBounds.y2));
|
|
54270
|
+
}), this.internalProps.title && ("right" === this.internalProps.title._titleOption.orient ? contentWidth = Math.max(contentWidth, this.internalProps.title.getComponentGraphic().globalAABBBounds.x2) : "bottom" === this.internalProps.title._titleOption.orient && (contentHeight = Math.max(contentHeight, this.internalProps.title.getComponentGraphic().globalAABBBounds.y2))), contentWidth >= this.canvasWidth && contentHeight >= this.canvasHeight) {
|
|
54273
54271
|
stage.render();
|
|
54274
54272
|
return stage.window.getImageBuffer(type);
|
|
54275
54273
|
}
|
|
@@ -65663,7 +65661,7 @@
|
|
|
65663
65661
|
themes: themes$1
|
|
65664
65662
|
});
|
|
65665
65663
|
|
|
65666
|
-
const version = "1.17.7-alpha.
|
|
65664
|
+
const version = "1.17.7-alpha.2";
|
|
65667
65665
|
|
|
65668
65666
|
exports.Gantt = Gantt;
|
|
65669
65667
|
exports.TYPES = index$3;
|