Member Junction
    Preparing search index...

    Internal representation of a word cloud item after layout computation.

    interface WordCloudLayoutItem {
        Category?: string;
        Color: string;
        FontSize: number;
        Index: number;
        Metadata?: Record<string, unknown>;
        Opacity: number;
        Rotation: number;
        Text: string;
        Weight: number;
        X: number;
        Y: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    Category?: string

    Optional category for color grouping in 'categorical' color mode

    Color: string

    Computed CSS color string

    FontSize: number

    Computed font size in pixels

    Index: number

    Index for animation staggering

    Metadata?: Record<string, unknown>

    Optional arbitrary metadata passed through click/hover events

    Opacity: number

    Computed opacity (used in weight-gradient mode)

    Rotation: number

    Rotation in degrees (0 or 90)

    Text: string

    Display text

    Weight: number

    Weight / importance (0.0 - 1.0) - determines font size

    X: number

    Computed X position (center of the text)

    Y: number

    Computed Y position (center of the text)