fix(ArrowAnnotate): Allow free-form text for arrow annotations (#5259)

This commit is contained in:
Joe Boccanfuso authored and GitHub committed 2025-07-24 12:58:45 -04:00
1 parent 4e6530d1d8
commit 3c8446a5e5
17 files changed
+156 -11

No files matched your search

+13 -1
View File
@@ -637,10 +637,22 @@ function commandsModule({
viewportGridService.setActiveViewportId(viewportId);
},
arrowTextCallback: async ({ callback }) => {
arrowTextCallback: async ({ callback, data }) => {
const labelConfig = customizationService.getCustomization('measurementLabels');
const renderContent = customizationService.getCustomization('ui.labellingComponent');
if (!labelConfig) {
const label = await callInputDialog({
uiDialogService,
title: 'Edit Arrow Text',
placeholder: data?.data?.label || 'Enter new text',
defaultValue: data?.data?.label || '',
});
callback?.(label);
return;
}
const value = await callInputDialogAutoComplete({
uiDialogService,
labelConfig,