v8.78.1

Retouch plugin

Use the Retouch plugin to interact with shapes rendered on top of the loaded image

By default the retouch toolbar is empty. It's designed to interact with third-party AI services to do pixel manipulation like inpainting, clean up defects, and retouching pictures.

Please see this example project on how to use the retouch util.

Property Default value Description
retouchTools
undefined
Markup editor toolbar to show in the decorate view.
retouchToolShapes
undefined
Markup editor tool styles to use.
retouchActiveTool
'sharpie'
Which tool to select in the toolbar.
retouchShapeControls
undefined
Markup editor shape control styles to use.
retouchWillRenderShapePresetToolbar
undefined
Set to a function that receives the node tree for the preset toolbar. Should synchronously return the node tree. See willRenderShapePresetToolbar for details.
retouchWillRenderShapeControls
undefined
Allows to inject custom shape controls or to edit the shape control menu.
retouchWillRenderShapeStyleControls
undefined
Set to a function that receives the shape controls node tree. Should synchronously return the node tree.