feat: export with solid color only
This commit is contained in:
+10
-8
@@ -226,6 +226,8 @@ export const MAX_DECIMALS_FOR_SVG_EXPORT = 2;
|
||||
|
||||
export const EXPORT_SCALES = [1, 2, 3];
|
||||
export const DEFAULT_EXPORT_PADDING = 10; // px
|
||||
export const EXPORT_BG_PADDING = 24; // px
|
||||
export const EXPORT_BG_BORDER_RADIUS = 12; // px
|
||||
|
||||
export const DEFAULT_MAX_IMAGE_WIDTH_OR_HEIGHT = 1440;
|
||||
|
||||
@@ -318,13 +320,13 @@ export const DEFAULT_SIDEBAR = {
|
||||
export const LIBRARY_DISABLED_TYPES = new Set(["embeddable", "image"] as const);
|
||||
|
||||
export const EXPORT_BACKGROUND_IMAGES = {
|
||||
"/backgrounds/bubbles.svg": "bubbles",
|
||||
"/backgrounds/bubbles2.svg": "bubbles 2",
|
||||
"/backgrounds/bricks.svg": "bricks",
|
||||
"/backgrounds/lines.svg": "lines",
|
||||
"/backgrounds/lines2.svg": "lines 2",
|
||||
solid: { path: null, label: "solid color" },
|
||||
bubbles: { path: "/backgrounds/bubbles.svg", label: "bubbles" },
|
||||
bubbles2: { path: "/backgrounds/bubbles2.svg", label: "bubbles 2" },
|
||||
bricks: { path: "/backgrounds/bricks.svg", label: "bricks" },
|
||||
lines: { path: "/backgrounds/lines.svg", label: "lines" },
|
||||
lines2: { path: "/backgrounds/lines2.svg", label: "lines 2" },
|
||||
} as const;
|
||||
|
||||
export const DEFAULT_EXPORT_BACKGROUND_IMAGE = Object.keys(
|
||||
EXPORT_BACKGROUND_IMAGES,
|
||||
)[0];
|
||||
export const DEFAULT_EXPORT_BACKGROUND_IMAGE: keyof typeof EXPORT_BACKGROUND_IMAGES =
|
||||
"solid" as const;
|
||||
|
||||
Reference in New Issue
Block a user