startAnnotationResize method
Starts a resize operation for any resizable annotation.
Works with any annotation that has Annotation.isResizable set to true,
including GroupAnnotation and StickyAnnotation.
Implementation
void startAnnotationResize(String annotationId, ResizeHandle handle) {
final annotation = _annotations[annotationId];
if (annotation == null || !annotation.isResizable) return;
runInAction(() {
_resizingAnnotationId.value = annotationId;
_resizeHandle.value = handle;
_resizeStartPosition = annotation.position;
_resizeStartSize = annotation.size;
// Disable panning during resize
_parentController.interaction.panEnabled.value = false;
// Set cursor override to lock cursor during resize
_parentController.interaction.setCursorOverride(handle.cursor);
});
}