import type { Slider } from '../index.js'; /** * Several slides in view that stay where they are: each place turns its * slide into the one that comes next to it, one place after another. * * The slides of the page are laid out as they always are, `--gs-per-view` * of them in view. The first that many are the first view, the next that * many the next: a move goes from view to view, and each place, a pane, * turns its picture into its next with the transition of the canvas, * which is any there is (see `gl/transitions/`). Without a canvas the * pictures fade, place after place. * * createSlider( element, { * perView: 3, * plugins: [ panes( { order: 'center' } ), canvas( { effects: [ burn() ] } ) ], * } ); * * `order` is the one in which the places turn: `start`, from the first on * (on the left, or on the right of a page that is read from the right), * `end`, `center`, from the middle out, or `random`, another one for each * move. `stagger` is how much of the move lies between the first place * and the last, 0 to 1: at 0 all turn at once. Both can change while the * slider runs: `slider.plugins.panes.order = 'random'`. The time of a * move is the `duration` of the slider; with `ease: ( u ) => u` every * place has as long to turn as the others. * * As with `stack()`: `--gs-near` is 1 on a slide that is shown and 0 on * one that is not, for its content, and `--gs-cover` the same for the * picture of the slide that comes in. A whole number of slides per view * makes whole views: the places of a last view that has fewer are empty. * * @param options Options. * @param options.order Which * place turns first. * @param options.stagger How * much of a move lies between the first place and the last, 0 to 1. */ export declare function panes({ order, stagger }?: { order?: 'start' | 'end' | 'center' | 'random'; stagger?: number; }): (slider: Slider) => { name: string; /** Which place turns first. */ order: "center" | "end" | "random" | "start"; /** How much of a move lies between the first place and the last. */ stagger: number; slides(): void; pane: (i: number) => number; mix: (i: number) => number; /** * @param i Slide. * @return Where its place begins on the screen, from * the start of the track, px. */ x: (i: number) => number; /** * @return For each place, the slide it turns from * and the one it turns into (-1 for none), how far, 0 * to 1, where the place begins, px, and one of the two. */ ends(): number[][]; layout(measured: import("../layout.js").Measured): void; frame({ places }: import("../index.js").View): void; destroy(): void; };