@types/scrollmagic
Advanced tools
Comparing version 2.0.4 to 2.0.5
@@ -11,5 +11,5 @@ // Type definitions for scrollmagic 2.0 | ||
export type ElementOrSelector = Element | string; | ||
export type TriggerHook = number | 'onEnter' | 'onCenter' | 'onLeave'; | ||
export type SceneState = 'BEFORE' | 'DURING' | 'AFTER'; | ||
export type ScrollDirection = 'PAUSED' | 'FORWARD' | 'REVERSE'; | ||
export type TriggerHook = number | "onEnter" | "onCenter" | "onLeave"; | ||
export type SceneState = "BEFORE" | "DURING" | "AFTER"; | ||
export type ScrollDirection = "PAUSED" | "FORWARD" | "REVERSE"; | ||
@@ -19,13 +19,13 @@ export const version: string; | ||
export type EventType = | ||
| 'add' | ||
| 'change' | ||
| 'destroy' | ||
| 'end' | ||
| 'enter' | ||
| 'leave' | ||
| 'progress' | ||
| 'remove' | ||
| 'shift' | ||
| 'start' | ||
| 'update'; | ||
| "add" | ||
| "change" | ||
| "destroy" | ||
| "end" | ||
| "enter" | ||
| "leave" | ||
| "progress" | ||
| "remove" | ||
| "shift" | ||
| "start" | ||
| "update"; | ||
@@ -41,9 +41,9 @@ export interface Event<T> { | ||
export interface AddEvent extends Event<'add'> { | ||
export interface AddEvent extends Event<"add"> { | ||
readonly controller: ScrollMagic.Controller; | ||
} | ||
export interface RemoveEvent extends Event<'remove'> {} | ||
export interface RemoveEvent extends Event<"remove"> {} | ||
export interface ChangeEvent extends Event<'change'> { | ||
export interface ChangeEvent extends Event<"change"> { | ||
readonly what: string; | ||
@@ -53,7 +53,7 @@ readonly newval: any; | ||
export interface DestroyEvent extends Event<'destroy'> { | ||
export interface DestroyEvent extends Event<"destroy"> { | ||
readonly reset: boolean; | ||
} | ||
export interface EndEvent extends Event<'end'> { | ||
export interface EndEvent extends Event<"end"> { | ||
readonly progress: number; | ||
@@ -63,7 +63,7 @@ readonly state: SceneState; | ||
export interface ShiftEvent extends Event<'shift'> { | ||
export interface ShiftEvent extends Event<"shift"> { | ||
readonly reason: string; | ||
} | ||
export interface UpdateEvent extends Event<'update'> { | ||
export interface UpdateEvent extends Event<"update"> { | ||
readonly startPos: number; | ||
@@ -80,6 +80,6 @@ readonly endPos: number; | ||
export interface EnterEvent extends SceneProgressEvent<'enter'> {} | ||
export interface LeaveEvent extends SceneProgressEvent<'leave'> {} | ||
export interface StartEvent extends SceneProgressEvent<'start'> {} | ||
export interface ProgressEvent extends SceneProgressEvent<'progress'> {} | ||
export interface EnterEvent extends SceneProgressEvent<"enter"> {} | ||
export interface LeaveEvent extends SceneProgressEvent<"leave"> {} | ||
export interface StartEvent extends SceneProgressEvent<"start"> {} | ||
export interface ProgressEvent extends SceneProgressEvent<"progress"> {} | ||
@@ -120,3 +120,3 @@ export interface SceneConstructorOptions { | ||
export type InfoOption = 'size' | 'vertical' | 'scrollPos' | 'scrollDirection' | 'container' | 'isDocument'; | ||
export type InfoOption = "size" | "vertical" | "scrollPos" | "scrollDirection" | "container" | "isDocument"; | ||
@@ -123,0 +123,0 @@ export interface ControllerConstructorOptions { |
{ | ||
"name": "@types/scrollmagic", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "TypeScript definitions for scrollmagic", | ||
@@ -23,4 +23,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/scrollmagic", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "a6965318e72138668e14a98e434976b7fc1df9e17f3261c956008c8a3f452b33", | ||
"typeScriptVersion": "4.3" | ||
"typesPublisherContentHash": "15cffaa5a95ecd1f9756487efdf651bb01af13c124fe0d909430506f069535aa", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Tue, 22 Aug 2023 18:04:42 GMT | ||
* Last updated: Mon, 25 Sep 2023 13:39:06 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: `ScrollMagic` |
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