@qr-platform/qr-code.js 0.11.0 → 0.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { CanvasOptions } from '~/utils/canvas-options';
2
- import { MethodOverrideOptions, RecursivePartial } from '../types/helper';
2
+ import { AppendOptions, MethodOverrideOptions, RecursivePartial } from '../types/helper';
3
3
  import { SettingsOptions } from '../types/settings-options';
4
4
  import { StyleOptions } from '../types/style-options';
5
5
  import { QRTextTemplateDefinition, TextOptions } from '../types/text-options';
@@ -140,7 +140,7 @@ export declare class QRCodeJs {
140
140
  setDescription(description?: string): this;
141
141
  setMetadata(metadata?: Record<string, any>): this;
142
142
  update(options?: RecursivePartial<Options>): Promise<void>;
143
- append(container?: HTMLElement): this;
143
+ append(container?: HTMLElement, options?: AppendOptions): this;
144
144
  applyExtension(extension: ExtensionFunction): Promise<void>;
145
145
  deleteExtension(): Promise<void>;
146
146
  serialize(inverted?: boolean): Promise<string | undefined>;
@@ -24,3 +24,6 @@ export interface RotateFigureArgs {
24
24
  export interface MethodOverrideOptions {
25
25
  override?: boolean;
26
26
  }
27
+ export interface AppendOptions {
28
+ clearContainer?: boolean;
29
+ }