@types/wavesurfer.js
Advanced tools
Comparing version 5.1.0 to 5.2.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for wavesurfer.js 5.1 | ||
// Type definitions for wavesurfer.js 5.2 | ||
// Project: https://github.com/katspaugh/wavesurfer.js | ||
@@ -3,0 +3,0 @@ // Definitions by: Yusuke Higuchi <https://github.com/higuri> |
{ | ||
"name": "@types/wavesurfer.js", | ||
"version": "5.1.0", | ||
"version": "5.2.0", | ||
"description": "TypeScript definitions for wavesurfer.js", | ||
@@ -45,4 +45,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wavesurfer.js", | ||
}, | ||
"typesPublisherContentHash": "0476ab0b4ff9a36516a80877292038e9eaf4c0b6744006aba2f73d6c06e41f5e", | ||
"typesPublisherContentHash": "4aac737cfb3c4085675738a47f6b23a7ab2fdc890b39d30e14f3ec5c14158715", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Sun, 04 Jul 2021 18:31:14 GMT | ||
* Last updated: Mon, 16 Aug 2021 18:31:24 GMT | ||
* Dependencies: [@types/debounce](https://npmjs.com/package/@types/debounce) | ||
@@ -14,0 +14,0 @@ * Global values: `WaveSurfer` |
@@ -70,3 +70,3 @@ import { Styles } from "../../types/util"; | ||
setLoop(loop: boolean): void; | ||
update(params: RegionParams): void; | ||
update(params: RegionParams, eventParams?: RegionUpdatedEventParams): void; | ||
updateHandlesResize(resize: boolean): void; | ||
@@ -123,2 +123,7 @@ updateRender(): void; | ||
export interface RegionUpdatedEventParams { | ||
direction: 'right' | 'left' | null; | ||
action: 'drag' | 'resize'; | ||
} | ||
export interface HandleStyle { | ||
@@ -125,0 +130,0 @@ left: Styles; |
@@ -7,2 +7,3 @@ import debounce = require("debounce"); | ||
import getId from "./get-id"; | ||
import ignoreSilenceMode from "./silence-mode"; | ||
import max from "./max"; | ||
@@ -23,2 +24,3 @@ import min from "./min"; | ||
getId, | ||
ignoreSilenceMode, | ||
max, | ||
@@ -25,0 +27,0 @@ min, |
@@ -57,2 +57,4 @@ import MultiCanvas from "../src/drawer.multicanvas"; | ||
hideScrollbar?: boolean | undefined; | ||
/** If true, ignores device silence mode. */ | ||
ignoreSilenceMode?: boolean | undefined; | ||
/** Whether the mouse interaction will be enabled at initialization. You can switch this parameter at any time later on (default: true). */ | ||
@@ -59,0 +61,0 @@ interact?: boolean | undefined; |
57568
42
1217