|
|
|
|
@ -31,8 +31,8 @@ export async function makeReal(editor: Editor, apiKey: string) {
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
// Add the grid lines to the SVG
|
|
|
|
|
const grid = { color: 'red', size: 100, labels: true }
|
|
|
|
|
addGridToSvg(svg, grid)
|
|
|
|
|
// const grid = { color: 'red', size: 100, labels: true }
|
|
|
|
|
// addGridToSvg(svg, grid)
|
|
|
|
|
|
|
|
|
|
if (!svg) throw Error(`Could not get the SVG.`)
|
|
|
|
|
|
|
|
|
|
@ -62,7 +62,7 @@ export async function makeReal(editor: Editor, apiKey: string) {
|
|
|
|
|
apiKey,
|
|
|
|
|
text: getSelectionAsText(editor),
|
|
|
|
|
previousPreviews,
|
|
|
|
|
grid,
|
|
|
|
|
// grid,
|
|
|
|
|
theme: editor.user.getUserPreferences().isDarkMode ? 'dark' : 'light',
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|