@visactor/vtable-plugins 1.18.6-alpha.0 → 1.18.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.
@@ -15058,6 +15058,18 @@
15058
15058
  const changeEvent = new CustomEvent(eventName, details);
15059
15059
  changeEvent.manager = null === (_a = this.stage) || void 0 === _a ? void 0 : _a.eventSystem.manager, this.dispatchEvent(changeEvent);
15060
15060
  }
15061
+ eventPosToStagePos(e) {
15062
+ var _a, _b;
15063
+ const result = {
15064
+ x: 0,
15065
+ y: 0
15066
+ },
15067
+ stagePoints = null !== (_b = null === (_a = this.stage) || void 0 === _a ? void 0 : _a.eventPointTransform(e)) && void 0 !== _b ? _b : {
15068
+ x: 0,
15069
+ y: 0
15070
+ };
15071
+ return this.globalTransMatrix.transformPoint(stagePoints, result), result;
15072
+ }
15061
15073
  }
15062
15074
 
15063
15075
  const MathPickerContribution = Symbol.for("MathPickerContribution");
@@ -19372,14 +19384,13 @@
19372
19384
  isMilestone = taskRecord.type === TaskType.MILESTONE;
19373
19385
  if (isMilestone && !startDate || !isMilestone && (taskDays <= 0 || !startDate || !endDate || startDate.getTime() > endDate.getTime())) return null;
19374
19386
  const {
19375
- unit: unit,
19376
- step: step
19377
- } = this._scene._gantt.parsedOptions.reverseSortedTimelineScales[0];
19378
- let taskBarSize = computeCountToTimeScale(endDate, startDate, unit, step, 1) * this._scene._gantt.parsedOptions.timelineColWidth;
19379
- const taskBarStyle = this._scene._gantt.getTaskBarStyle(index, childIndex),
19380
- taskbarHeight = taskBarStyle.width;
19381
- isValid$1(taskBarStyle.minSize) && (taskBarSize = Math.max(taskBarSize, taskBarStyle.minSize));
19382
- const oneTaskHeigth = this._scene._gantt.parsedOptions.rowHeight,
19387
+ unit: unit,
19388
+ step: step
19389
+ } = this._scene._gantt.parsedOptions.reverseSortedTimelineScales[0],
19390
+ taskBarSize = computeCountToTimeScale(endDate, startDate, unit, step, 1) * this._scene._gantt.parsedOptions.timelineColWidth,
19391
+ taskBarStyle = this._scene._gantt.getTaskBarStyle(index, childIndex),
19392
+ taskbarHeight = taskBarStyle.width,
19393
+ oneTaskHeigth = this._scene._gantt.parsedOptions.rowHeight,
19383
19394
  milestoneTaskBarHeight = this._scene._gantt.parsedOptions.taskBarMilestoneStyle.width,
19384
19395
  x = computeCountToTimeScale(startDate, this._scene._gantt.parsedOptions.minDate, unit, step) * this._scene._gantt.parsedOptions.timelineColWidth - (isMilestone ? milestoneTaskBarHeight / 2 : 0),
19385
19396
  y = this._scene._gantt.getRowsHeightByIndex(0, index - 1) + (this._scene._gantt.parsedOptions.tasksShowMode === TasksShowMode.Sub_Tasks_Separate ? (null !== (_a = childIndex) && void 0 !== _a ? _a : 0) * oneTaskHeigth : this._scene._gantt.parsedOptions.tasksShowMode === TasksShowMode.Sub_Tasks_Arrange || this._scene._gantt.parsedOptions.tasksShowMode === TasksShowMode.Sub_Tasks_Compact ? taskRecord.vtable_gantt_showIndex * oneTaskHeigth : 0) + (oneTaskHeigth - (isMilestone ? milestoneTaskBarHeight : taskbarHeight)) / 2,