signale icon indicating copy to clipboard operation
signale copied to clipboard

clone method

Open qaraluch opened this issue 5 years ago • 0 comments

Is your feature request related to a problem? Please describe. One way to clone Signale instance is through .scope() method. Wouldn't be convenient if you could clone instance for change just interactivity without changing its scope, like this:

const interactive = signale.clone({ interactive: true }); 

It seems pretty easy to change in the code base:

  clone(configObj) {
    return new Signale(Object.assign(this.currentOptions, ...configObj));
  } 

What are your thoughts about this idea?

qaraluch avatar Sep 21 '18 12:09 qaraluch