Skip to content

Commit fa5ea19

Browse files
committed
new build
1 parent c6f8f0f commit fa5ea19

File tree

3 files changed

+8
-24
lines changed

3 files changed

+8
-24
lines changed

dist/index.js

Lines changed: 6 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/library/core.d.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
export interface IWaveCoreOptions {
2-
canvasContext?: CanvasRenderingContext2D;
32
canvasElement?: HTMLCanvasElement;
43
data?: number[];
54
layout?: IWaveLayoutOptions;
@@ -30,8 +29,6 @@ export declare class Waveform {
3029
protected _plugins: [];
3130
protected _waveClickCallback: IWaveClickCallback | null;
3231
constructor(waveCoreOptions?: IWaveCoreOptions);
33-
setCanvasContext(canvasContext: CanvasRenderingContext2D): void;
34-
getCanvasContext(): CanvasRenderingContext2D;
3532
setCanvasElement(canvasElement: HTMLCanvasElement): void;
3633
getCanvasElement(): HTMLCanvasElement;
3734
setWaveData(data: number[]): void;
@@ -49,4 +46,5 @@ export declare class Waveform {
4946
* @param range
5047
*/
5148
draw(range?: number): void;
49+
destroy(): void;
5250
}

0 commit comments

Comments
 (0)