@dpouris/gswap 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.GSwap = void 0;
|
4
|
+
var main_1 = require("./main");
|
5
|
+
Object.defineProperty(exports, "GSwap", { enumerable: true, get: function () { return main_1.GSwap; } });
|
6
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAAtB,6FAAA,KAAK,OAAA"}
|
package/dist/src/main.d.ts
CHANGED
@@ -1,15 +1,11 @@
|
|
1
1
|
import type { Options, GallerySwap } from "../@types/GallerySwapTypes";
|
2
2
|
export declare class GSwap implements GallerySwap {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
);
|
12
|
-
stackImages: () => void;
|
13
|
-
next: () => void;
|
14
|
-
prev: () => void;
|
3
|
+
#private;
|
4
|
+
containerElem: HTMLDivElement;
|
5
|
+
images: string[];
|
6
|
+
options: Options;
|
7
|
+
constructor(containerElem: string | HTMLDivElement, images: string[], options?: Options);
|
8
|
+
stackImages: () => void;
|
9
|
+
next: () => void;
|
10
|
+
prev: () => void;
|
15
11
|
}
|
package/package.json
CHANGED
@@ -1,21 +0,0 @@
|
|
1
|
-
export interface GallerySwap {
|
2
|
-
containerElem: HTMLDivElement;
|
3
|
-
images: string[];
|
4
|
-
options: Options;
|
5
|
-
stackImages(): void;
|
6
|
-
stackImages: () => void;
|
7
|
-
next: () => void;
|
8
|
-
prev: () => void;
|
9
|
-
}
|
10
|
-
export declare type Options = {
|
11
|
-
animation?: string;
|
12
|
-
animationDuration?: number;
|
13
|
-
navigation?: boolean | "forwardOnly" | "backOnly";
|
14
|
-
repeat?: boolean;
|
15
|
-
direction?: "left" | "right" | "top" | "bottom";
|
16
|
-
styled?: boolean;
|
17
|
-
imgDimensions?: {
|
18
|
-
height: number;
|
19
|
-
width: number;
|
20
|
-
};
|
21
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"GallerySwapTypes.js","sourceRoot":"","sources":["../../@types/GallerySwapTypes.ts"],"names":[],"mappings":""}
|