qr-border-plugin
Version:
Plugin for generating different borders of qr-code-styling
34 lines (33 loc) • 822 B
TypeScript
import { Options as LibOptions } from "qr-code-styling";
export declare enum Position {
top = "top",
bottom = "bottom",
left = "left",
right = "right"
}
export declare enum DecorationType {
text = "text",
image = "image"
}
export type BorderOption = {
thickness: number;
color: string;
dasharray: string;
};
export type ExtensionOptions = BorderOption & {
round: number;
decorations: {
[key in Position]: {
type: DecorationType;
value: string;
style: string;
};
};
borderInner: BorderOption;
borderOuter: BorderOption;
};
declare const QRBorderPlugin: {
(extensionOptions: ExtensionOptions): (svg: SVGElement, options: LibOptions) => void;
setKey: (key?: string) => void;
};
export default QRBorderPlugin;