[WEB-5585]chore: timeline chart refactor (#8246)
* chore: timeline chart refactor * fix: format
This commit is contained in:
parent
8bb7ebb725
commit
368af223db
4 changed files with 16 additions and 1 deletions
|
|
@ -1 +1,2 @@
|
|||
export * from "./dependency";
|
||||
export * from "./layers";
|
||||
|
|
|
|||
|
|
@ -0,0 +1,8 @@
|
|||
import type { FC } from "react";
|
||||
|
||||
type Props = {
|
||||
itemsContainerWidth: number;
|
||||
blockCount: number;
|
||||
};
|
||||
|
||||
export const GanttAdditionalLayers: FC<Props> = () => null;
|
||||
1
apps/web/ce/components/gantt-chart/layers/index.ts
Normal file
1
apps/web/ce/components/gantt-chart/layers/index.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export { GanttAdditionalLayers } from "./additional-layers";
|
||||
|
|
@ -17,7 +17,11 @@ import { GanttChartSidebar, MonthChartView, QuarterChartView, WeekChartView } fr
|
|||
// hooks
|
||||
import { useTimeLineChartStore } from "@/hooks/use-timeline-chart";
|
||||
// plane web components
|
||||
import { TimelineDependencyPaths, TimelineDraggablePath } from "@/plane-web/components/gantt-chart";
|
||||
import {
|
||||
TimelineDependencyPaths,
|
||||
TimelineDraggablePath,
|
||||
GanttAdditionalLayers,
|
||||
} from "@/plane-web/components/gantt-chart";
|
||||
import { GanttChartRowList } from "@/plane-web/components/gantt-chart/blocks/block-row-list";
|
||||
import { GanttChartBlocksList } from "@/plane-web/components/gantt-chart/blocks/blocks-list";
|
||||
import { IssueBulkOperationsRoot } from "@/plane-web/components/issues/bulk-operations";
|
||||
|
|
@ -212,6 +216,7 @@ export const GanttChartMainContent = observer(function GanttChartMainContent(pro
|
|||
/>
|
||||
<TimelineDependencyPaths isEpic={isEpic} />
|
||||
<TimelineDraggablePath />
|
||||
<GanttAdditionalLayers itemsContainerWidth={itemsContainerWidth} blockCount={blockIds.length} />
|
||||
<GanttChartBlocksList
|
||||
blockIds={blockIds}
|
||||
blockToRender={blockToRender}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue