Skip to content

Commit 0fb7831

Browse files
authored
Change default backgroundColor to white, update snapshots (#82)
1 parent 49061bd commit 0fb7831

13 files changed

+406
-577
lines changed

lib/getSvgFromGraphicsObject.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,12 @@ export function getSvgFromGraphicsObject(
122122
graphics: GraphicsObject,
123123
{
124124
includeTextLabels = false,
125-
backgroundColor,
125+
backgroundColor = "white",
126126
svgWidth = DEFAULT_SVG_SIZE,
127127
svgHeight = DEFAULT_SVG_SIZE,
128128
}: {
129129
includeTextLabels?: boolean | Array<"points" | "lines" | "rects">
130-
backgroundColor?: string
130+
backgroundColor?: string | null
131131
svgWidth?: number
132132
svgHeight?: number
133133
} = {},

tests/__snapshots__/arrows.snap.svg

Lines changed: 6 additions & 6 deletions
Loading
Lines changed: 43 additions & 64 deletions
Loading
Lines changed: 43 additions & 59 deletions
Loading

tests/__snapshots__/double-sided-arrows.snap.svg

Lines changed: 2 additions & 2 deletions
Loading

0 commit comments

Comments
 (0)