Fray Electron
    Preparing search index...

    Variable styleHubConst

    styleHub: {
        change(css: string): void;
        current(): ButtonStyleSnapshot;
        initialize(): void;
        loadOperation(): ButtonStyleOperation;
        receive(
            result: { css: string; edit: number; error: string; save: boolean },
        ): void;
        setSender(next: ((operation: ButtonStyleOperation) => void) | null): void;
        subscribe(listener: () => void): () => void;
    } = ...

    Renderer-local state for the Engine-owned application button stylesheet.

    Type Declaration

    • change: function
      • Applies valid CSS and independently sends it for Engine persistence.

        Parameters

        • css: string

          Raw editor text.

        Returns void

    • current: function
    • initialize: function
      • Installs the packaged default before the application's other stylesheets.

        Returns void

    • loadOperation: function
    • receive: function
      • Handles an Engine stylesheet result without replacing newer local edits.

        Parameters

        • result: { css: string; edit: number; error: string; save: boolean }

          Independent Engine result.

        Returns void

    • setSender: function
    • subscribe: function
      • Subscribes to editor changes.

        Parameters

        • listener: () => void

          Change listener.

        Returns () => void

        Unsubscribe function.