Fix recording and playback issues

- Fix download filename handling in converter and export functions
- Make updateRecordCanvas return Promise to handle async loadFromJSON correctly
- Add setCoords() call in setObjectValue to fix object selection after updates
- Update recorder initialization and animation frame handling

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-08-11 16:20:25 +02:00
co-authored by Claude Haiku 4.5
parent 794995fbb5
commit f8f863e7e2
4 changed files with 68 additions and 41 deletions
+5
View File
@@ -988,6 +988,11 @@ var canvasrecord = new fabric.Canvas('canvasrecord', {
backgroundColor: '#FFF',
width: artboard.width,
height: artboard.height,
// Objects are repositioned to artboard-relative coordinates while
// recording. Their cached aCoords are not always refreshed in step, and
// fabric's offscreen culling would then skip drawing them entirely,
// producing blank frames.
skipOffscreen: false,
});
var timelineslider = document.getElementById('timeline-zoom');