mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-21 04:39:06 +00:00
initial TS implementation
This commit is contained in:
18
www/app/lib/custom-plugins/regions.ts
Normal file
18
www/app/lib/custom-plugins/regions.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
// Source code: https://github.com/katspaugh/wavesurfer.js/blob/fa2bcfe/src/plugins/regions.ts
|
||||
|
||||
import RegionsPlugin, {
|
||||
RegionsPluginOptions,
|
||||
} from "wavesurfer.js/dist/plugins/regions";
|
||||
|
||||
class CustomRegionsPlugin extends RegionsPlugin {
|
||||
public static create(options?: RegionsPluginOptions) {
|
||||
return new RegionsPlugin(options);
|
||||
}
|
||||
|
||||
constructor(options?: RegionsPluginOptions) {
|
||||
super(options);
|
||||
this["avoidOverlapping"] = () => {};
|
||||
}
|
||||
}
|
||||
|
||||
export default CustomRegionsPlugin;
|
||||
Reference in New Issue
Block a user