diff --git a/src/rough-notation.ts b/src/rough-notation.ts index 4e30210..36f7949 100644 --- a/src/rough-notation.ts +++ b/src/rough-notation.ts @@ -18,7 +18,7 @@ class RoughAnnotationImpl implements RoughAnnotation { constructor(e: HTMLElement, config: RoughAnnotationConfig) { this._e = e; - this._config = config; + this._config = JSON.parse(JSON.stringify(config)); this.attach(); }