@willwade/aac-processors
    Preparing search index...

    Class AACPage

    Index

    Constructors

    • Parameters

      • __namedParameters: {
            buttons?: AACButton[];
            clone_ids?: string[];
            descriptionHtml?: string;
            grid?: (AACButton | null)[][] | { columns: number; rows: number };
            id: string;
            images?: any[];
            locale?: string;
            name?: string;
            parentId?: string | null;
            scanBlocksConfig?: AACScanBlock[];
            scanningConfig?: ScanningConfig;
            scanType?: AACScanType;
            semantic_ids?: string[];
            sounds?: any[];
            style?: AACStyle;
        }

      Returns AACPage

    Properties

    buttons: AACButton[]
    clone_ids?: string[]
    descriptionHtml?: string
    grid: (AACButton | null)[][]
    id: string
    images?: any[]
    locale?: string
    name: string
    parentId: string | null
    scanBlocksConfig?: AACScanBlock[]
    scanningConfig?: ScanningConfig
    scanType?: AACScanType
    semantic_ids?: string[]
    sounds?: any[]
    style?: AACStyle

    Accessors

    Methods

    • Internal load-path button push: adds a button to the page WITHOUT recording a mutation. Used by processors during loadIntoTree so the loaded baseline isn't treated as user changes. Not part of the public API — consumers should always use addButton.

      Parameters

      Returns void

    • Discard all recorded mutations on this page. Useful as an escape hatch after loadIntoTree if the consumer wants a clean baseline.

      Returns void

    • Remove a button by ID

      Parameters

      • buttonId: string

        The ID of the button to remove

      Returns void

    • Remove items from the page's WordList

      Parameters

      • textOrPredicate: string | ((item: AACWordListItem) => boolean)

        Text to match or predicate function to filter items

      Returns void

    • Update a button by merging a patch

      Parameters

      • buttonId: string

        The ID of the button to update

      • patch: Partial<AACButton>

        Partial button object with fields to update

      Returns void