fix: enable scale/rotation on annotation objects and restore transforms on load

- Remove hasControls:false and lockScaling from markers so resize/rotate handles appear
- Add setActiveObject() after creating arrows and rectangles for immediate control visibility
- Restore angle, scaleX, scaleY when loading saved annotations (all object types)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Adriano
2026-02-08 10:29:30 +01:00
parent dfc1c3ed95
commit 00d6c68b2f
2 changed files with 29 additions and 9 deletions
+1 -1
View File
@@ -353,7 +353,7 @@
<script>
pdfjsLib.GlobalWorkerOptions.workerSrc = 'https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/pdf.worker.min.js';
</script>
<script src="{{ url_for('static', filename='js/annotation-editor.js') }}?v=8"></script>
<script src="{{ url_for('static', filename='js/annotation-editor.js') }}?v=9"></script>
<script>
function taskDrawing() {
const taskData = window.__taskData || {};