artsyparty
commited on
Commit
•
b7008a3
1
Parent(s):
0734d7c
Update +pages.svelte allow downloading current canvas
Browse filesAdds the 'Download' control to drawingboard.js.
I have not tested this, assuming this is what's being used?
https://github.com/Leimi/drawingboard.js#included-controls
- src/routes/+page.svelte +1 -1
src/routes/+page.svelte
CHANGED
@@ -298,7 +298,7 @@
|
|
298 |
await tick();
|
299 |
drawingBoard = new window.DrawingBoard.Board('board-container', {
|
300 |
size: 10,
|
301 |
-
controls: ['Color', { Size: { type: 'dropdown' } }, { DrawingMode: { filler: false } }],
|
302 |
webStorage: false,
|
303 |
enlargeYourContainer: true
|
304 |
});
|
|
|
298 |
await tick();
|
299 |
drawingBoard = new window.DrawingBoard.Board('board-container', {
|
300 |
size: 10,
|
301 |
+
controls: ['Color', { Size: { type: 'dropdown' } }, { DrawingMode: { filler: false } }, 'Download'],
|
302 |
webStorage: false,
|
303 |
enlargeYourContainer: true
|
304 |
});
|