맥스그리드 API 레퍼런스
    Preparing search index...

    Interface GanttEvents

    Events the chart emits (phase 1.7: first four; 1.8 adds the intent events, same payload shapes as the PMS spec).

    interface GanttEvents {
        "dependency-create": {
            depType: DependencyType;
            intentId: string;
            lagDays: number;
            predecessorId: string;
            successorId: string;
        };
        "dependency-delete": { dependencyId: string; intentId: string };
        "row-select": { taskId: string | null };
        "task-move": {
            intentId: string;
            plannedEnd: string;
            plannedStart: string;
            taskId: string;
        };
        "task-open": { taskId: string };
        "task-progress": { intentId: string; progressPct: number; taskId: string };
        "task-reorder": {
            afterTaskId: string | null;
            intentId: string;
            parentId: string | null;
            taskId: string;
        };
        "task-resize": {
            edge: "end"
            | "start";
            intentId: string;
            plannedEnd: string;
            plannedStart: string;
            taskId: string;
        };
        "toggle-collapse": { collapsed: boolean; taskId: string };
        "viewport-change": { from: string; to: string; zoom: GanttZoom };
    }
    Index
    "dependency-create": {
        depType: DependencyType;
        intentId: string;
        lagDays: number;
        predecessorId: string;
        successorId: string;
    }

    The user drew a new link.

    "dependency-delete": { dependencyId: string; intentId: string }

    The user asked to delete a link.

    "row-select": { taskId: string | null }

    A bar or row was selected (null = cleared).

    "task-move": {
        intentId: string;
        plannedEnd: string;
        plannedStart: string;
        taskId: string;
    }

    The user moved a bar.

    "task-open": { taskId: string }

    A bar or row was double-clicked.

    "task-progress": { intentId: string; progressPct: number; taskId: string }

    The user changed the progress.

    "task-reorder": {
        afterTaskId: string | null;
        intentId: string;
        parentId: string | null;
        taskId: string;
    }

    The user moved a row to a new parent or position.

    "task-resize": {
        edge: "end" | "start";
        intentId: string;
        plannedEnd: string;
        plannedStart: string;
        taskId: string;
    }

    The user resized a bar.

    "toggle-collapse": { collapsed: boolean; taskId: string }

    A summary task was collapsed or expanded.

    "viewport-change": { from: string; to: string; zoom: GanttZoom }

    Zoom or scroll settled on a new range.