diff --git a/Sources/Proxy/Core/ViewProxy/index.js b/Sources/Proxy/Core/ViewProxy/index.js index e9b672daf5a..0f91b1e67b1 100644 --- a/Sources/Proxy/Core/ViewProxy/index.js +++ b/Sources/Proxy/Core/ViewProxy/index.js @@ -225,6 +225,18 @@ function vtkViewProxy(publicAPI, model) { // -------------------------------------------------------------------------- + publicAPI.setCornerAnnotations = (annotations, useTemplateString = false) => { + if (useTemplateString) { + Object.keys(annotations).forEach((key) => { + publicAPI.setCornerAnnotation(key, annotations[key]); + }); + } else { + model.cornerAnnotation.updateTemplates(annotations); + } + }; + + // -------------------------------------------------------------------------- + publicAPI.updateCornerAnnotation = (meta) => model.cornerAnnotation.updateMetadata(meta);