@figliolia/page-switch
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -9,3 +9,2 @@ "use strict"; | ||
this.current = 0; | ||
this.transitionName = ""; | ||
this.events = { | ||
@@ -16,2 +15,3 @@ update: [], | ||
this.pageData = []; | ||
this.transitionName = ""; | ||
const options = this.withDefaults(config); | ||
@@ -18,0 +18,0 @@ this.container = this.getSelector(selector); |
@@ -16,3 +16,2 @@ import { Easing } from "../Easing/index.js"; | ||
mousewheel; | ||
transitionName = ""; | ||
container; | ||
@@ -25,2 +24,3 @@ transition; | ||
pageData = []; | ||
transitionName = ""; | ||
transitions; | ||
@@ -27,0 +27,0 @@ constructor(selector, config) { |
import type { EaseString, EasingFN } from "../Easing"; | ||
import type { TransitionName } from "../Transitions"; | ||
import { type Transition, type TransitionFN } from "../Transitions"; | ||
@@ -17,3 +18,2 @@ import type { IDOrElement, IOptions, ListenerCache, PageDatum } from "./types"; | ||
mousewheel: boolean; | ||
transitionName: string; | ||
container: HTMLElement; | ||
@@ -24,2 +24,3 @@ transition: TransitionFN; | ||
pageData: PageDatum[]; | ||
transitionName: TransitionName | ""; | ||
private readonly transitions; | ||
@@ -26,0 +27,0 @@ constructor(selector: IDOrElement, config: Partial<IOptions>); |
@@ -125,2 +125,3 @@ import type { TransitionFN } from "./Effects"; | ||
} | ||
export type Transition = Extract<keyof ITransitions, string> | TransitionFN; | ||
export type TransitionName = Extract<keyof ITransitions, string>; | ||
export type Transition = TransitionName | TransitionFN; |
{ | ||
"name": "@figliolia/page-switch", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "A page animation library based on the clever work of @qiqiboy", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
import type { EaseString, EasingFN } from "Easing"; | ||
import { Easing } from "Easing"; | ||
import type { TransitionName } from "Transitions"; | ||
import { | ||
@@ -24,3 +25,2 @@ Transitions, | ||
mousewheel: boolean; | ||
transitionName = ""; | ||
container: HTMLElement; | ||
@@ -33,2 +33,3 @@ transition: TransitionFN; | ||
pageData: PageDatum[] = []; | ||
transitionName: TransitionName | "" = ""; | ||
private readonly transitions: ITransitions; | ||
@@ -35,0 +36,0 @@ constructor(selector: IDOrElement, config: Partial<IOptions>) { |
@@ -127,2 +127,4 @@ import type { TransitionFN } from "./Effects"; | ||
export type Transition = Extract<keyof ITransitions, string> | TransitionFN; | ||
export type TransitionName = Extract<keyof ITransitions, string>; | ||
export type Transition = TransitionName | TransitionFN; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
231093
5943