@kayelaa/canvas API - v0.2.15
    Preparing search index...

    Interface KaylaFiberControlIm

    interface KaylaFiberControlIm {
        toString(): string;
        get childrenCount(): number;
        maxSafeChildren: number;
        setMaxChildren(max: number): void;
        getMaxChildren(): number;
        get key(): string;
        getChildrenEntities(): KaylaRectEntity[];
        getEntityChain(): KaylaRectEntity[];
        getFiberChain(): UnsafeKaylaFiber[];
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    maxSafeChildren: number

    Advisory maximum number of direct children allowed before warning or enforcement. Default: 40.

    Can be changed via setMaxChildren().

    Enforcement is soft by default (logs warning + removes excess oldest children). Set to Infinity to disable limit.

    Accessors

    • get childrenCount(): number

      Current number of direct child fibers (readonly). Reflects the length of lastChildren after the last reconciliation.

      Returns number

    Methods

    • Sets the maximum allowed number of direct children for this fiber.

      If current child count exceeds the new limit, excess oldest children are immediately unmounted.

      Parameters

      • max: number

        New maximum (must be >= 0). Use Infinity to remove limit.

      Returns void

    • Returns the current maximum allowed number of direct children.

      Returns number

      The limit (Infinity if no limit set)