mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
19 lines
499 B
TypeScript
19 lines
499 B
TypeScript
// 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 CustomRegionsPlugin(options);
|
|
}
|
|
|
|
constructor(options?: RegionsPluginOptions) {
|
|
super(options);
|
|
this["avoidOverlapping"] = () => {};
|
|
}
|
|
}
|
|
|
|
export default CustomRegionsPlugin;
|