1.0.34 • Published 3 months ago

@types/swipeview v1.0.34

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

Installation

npm install --save @types/swipeview

Summary

This package contains type definitions for SwipeView (http://cubiq.org/swipeview).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/swipeview.

index.d.ts

// Type definitions for SwipeView 1.0
// Project: http://cubiq.org/swipeview
// Definitions by: Boris Yankov <https://github.com/borisyankov>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped


interface SwipeViewEvent {
    (fn: Function): void;
}

interface SwipeViewOptions {
    text?: string | undefined;
    numberOfPages?: number | undefined;
    snapThreshold?: number | undefined;
    hastyPageFlip?: boolean | undefined;
    loop?: boolean | undefined;
}

declare class SwipeView {

    masterPages: HTMLElement[];
    currentMasterPage: number;
    wrapper: HTMLElement;
    slider: HTMLElement;

    constructor (element: string);
    constructor (element: string, options: SwipeViewOptions);

    destroy(): void;
    refreshSize(): void;
    updatePageCount(n: number): void;
    goToPage(p: number): void;
    next(): void;
    prev(): void;
    handleEvent(e: Event): void;
    
    onFlip: SwipeViewEvent;
    onMoveOut: SwipeViewEvent;
    onMoveIn: SwipeViewEvent;
    onTouchStart: SwipeViewEvent;

    wrapperHeight: number;
}

Additional Details

  • Last updated: Fri, 02 Jul 2021 22:33:20 GMT
  • Dependencies: none
  • Global values: SwipeView

Credits

These definitions were written by Boris Yankov.

1.0.34

3 months ago

1.0.33

6 months ago

1.0.32

7 months ago

1.0.31

8 months ago

1.0.30

3 years ago

1.0.29

4 years ago

1.0.28

7 years ago

1.0.27

8 years ago

1.0.26

8 years ago

1.0.25-alpha

8 years ago

1.0.24-alpha

8 years ago

1.0.23-alpha

8 years ago

1.0.22-alpha

8 years ago

1.0.21-alpha

8 years ago

1.0.20-alpha

8 years ago

1.0.19-alpha

8 years ago

1.0.14-alpha

8 years ago

1.0.13-alpha

8 years ago