v2.6.5 - Editor Change Event Fix
🐛 Bug Fixes
editor-change Event Now Triggers on All Data Changes
Previously, the editor-change event only fired when adding new objects. Now it properly triggers on:
- ✅ Drag/Move - Moving objects on canvas
- ✅ Resize - Changing object dimensions
- ✅ Rotate - Rotating objects
- ✅ Skew - Skewing/shearing objects
- ✅ Multi-select operations - Dragging/rotating multiple objects
- ✅ Add new objects - (already working)
Usage
javascript editor.addEventListener('editor-change', (e) => { console.log('Canvas data changed:', e.detail.objects); // Now fires on ANY data change, not just new objects });
This fix ensures proper data synchronization with Vue/React/Angular state management.