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

    Interface GanttFrame

    What the controller hands the renderer for one paint (decided by the chief; renderer owner G3 may ADD optional fields, not rename).

    interface GanttFrame {
        arrows: readonly ArrowRoute[];
        bars: readonly BarRect[];
        baselines?: readonly BarRect[];
        contentHeight: number;
        contentWidth: number;
        critical?: ReadonlySet<string>;
        criticalArrows?: ReadonlySet<string>;
        editable?: boolean;
        focusId?: string | null;
        ghost?:
            | {
                endLabel?: string;
                kind: "move"
                | "progress"
                | "resize-start"
                | "resize-end";
                progressPct?: number;
                rect: BarRect;
                startLabel?: string;
                taskId: string;
            }
            | null;
        handles?: | {
            off?: readonly ("resize" | "link" | "progress")[];
            taskId: string;
        }
        | null;
        hotArrows?: ReadonlySet<string>;
        hoverId: string | null;
        linkLine?: { from: Point; to: Point; valid: boolean } | null;
        locale: "ko" | "en" | "ja";
        overdue: ReadonlySet<string>;
        pending?: ReadonlySet<string>;
        reverted?: ReadonlySet<string>;
        rowDrop?:
            | { position: "inside"
            | "before"
            | "after"; rowIndex: number }
            | null;
        rowHeight: number;
        rows: readonly GanttRow[];
        scrollLeft: number;
        scrollTop: number;
        selectedId: string | null;
        shading: readonly { kind: "weekend" | "holiday"; width: number; x: number }[];
        tiers: { bottom: readonly HeaderCell[]; top: readonly HeaderCell[] };
        todayX: number | null;
        viewportHeight: number;
        viewportWidth: number;
        yOffset?: number;
        zoom: GanttZoom;
    }
    Index
    arrows: readonly ArrowRoute[]

    Dependency routes inside the window.

    bars: readonly BarRect[]

    Bar rectangles inside the window.

    baselines?: readonly BarRect[]

    1.8: baseline bars (layoutBaselines output); layer drawn only when present.

    contentHeight: number

    Total chart height in px.

    contentWidth: number

    Total chart size in px (spacer).

    critical?: ReadonlySet<string>

    1.8: critical-path tasks (bar outline) and arrows (criticalArrows).

    criticalArrows?: ReadonlySet<string>

    Dependencies to draw as critical-path links.

    editable?: boolean

    Edit mode: bars get a roving tabindex and handles may show.

    focusId?: string | null

    1.8: keyboard focus ring.

    ghost?:
        | {
            endLabel?: string;
            kind: "move"
            | "progress"
            | "resize-start"
            | "resize-end";
            progressPct?: number;
            rect: BarRect;
            startLabel?: string;
            taskId: string;
        }
        | null

    1.8: drag preview. startLabel/endLabel are the (formatted) dates shown at both ends.

    Type Declaration

    • {
          endLabel?: string;
          kind: "move" | "progress" | "resize-start" | "resize-end";
          progressPct?: number;
          rect: BarRect;
          startLabel?: string;
          taskId: string;
      }
      • OptionalendLabel?: string
      • kind: "move" | "progress" | "resize-start" | "resize-end"
      • OptionalprogressPct?: number

        Progress drag: the value shown above the handle (0-100).

      • rect: BarRect
      • OptionalstartLabel?: string
      • taskId: string
    • null
    handles?:
        | { off?: readonly ("resize" | "link" | "progress")[]; taskId: string }
        | null

    1.8: show resize/link/progress handles on this bar (only when editable).

    Type Declaration

    • { off?: readonly ("resize" | "link" | "progress")[]; taskId: string }
      • Optionaloff?: readonly ("resize" | "link" | "progress")[]

        Handle kinds switched off by editable: { ... } (absent = all shown).

      • taskId: string
    • null
    hotArrows?: ReadonlySet<string>

    Arrows to highlight (hover or selection of one of their tasks). Added by the renderer owner; optional.

    hoverId: string | null

    Task under the pointer, or null.

    linkLine?: { from: Point; to: Point; valid: boolean } | null

    1.8: rubber-band while creating a dependency (chart coordinates).

    locale: "ko" | "en" | "ja"

    Used for aria-labels and the header: 'ko' | 'en' | 'ja'.

    overdue: ReadonlySet<string>

    Task ids that are overdue (end < today, progress < 100, not DONE/CANCELED).

    pending?: ReadonlySet<string>

    1.8: tasks with an unconfirmed edit (dimmed, dashed outline, aria-busy).

    reverted?: ReadonlySet<string>

    1.8: tasks whose edit was just reverted (short outline pulse, cleared on animationend).

    rowDrop?: { position: "inside" | "before" | "after"; rowIndex: number } | null

    1.8: reorder drop indicator.

    rowHeight: number

    Row height in px.

    rows: readonly GanttRow[]

    Rows inside the vertical window (plus buffer).

    scrollLeft: number

    Horizontal scroll in px.

    scrollTop: number

    Vertical scroll in px.

    selectedId: string | null

    Selected task, or null.

    shading: readonly { kind: "weekend" | "holiday"; width: number; x: number }[]

    Non-working ranges of the default calendar inside the horizontal window, already in px.

    tiers: { bottom: readonly HeaderCell[]; top: readonly HeaderCell[] }

    Header cells, top and bottom tier.

    todayX: number | null

    x of today's line in chart px, or null when outside the scale.

    viewportHeight: number

    Visible body height in px (without the header).

    viewportWidth: number

    Visible width in px.

    yOffset?: number

    px taken off every y of bars, arrows and baselines and off the row geometry (index * rowHeight), set when the content is so tall that SVG coordinates would lose exactness (above Y_SHIFT_LIMIT). scrollTop - yOffset is then the content translate.

    zoom: GanttZoom

    Current zoom.