ink-cartridge
    Preparing search index...

    Type Alias RestoreLayerZIndexFn

    RestoreLayerZIndexFn: (targetLayerId: string) => void

    Undo BringLayerToFrontFn: put a regular layer's zIndex back to the value it was opened with (Layer.initialZIndex) and re-sort allLayers. The layer object is replaced via spread — elements, regionFocus, hostPage and crossPage references are kept, so element components do not remount.

    No-op when the layer's zIndex already equals its initial value. Modal layers are unaffected, mirroring BringLayerToFrontFn.

    Type Declaration

      • (targetLayerId: string): void
      • Parameters

        • targetLayerId: string

        Returns void