Example
NutrientViewer.load({
customRenderers: {
Annotation: ({ annotation }) => ({
node: document.createElement("div").appendChild(document.createTextNode("Custom rendered!")),
append: true,
})
}
});
See Also
Properties
Annotation
Optional
This user defined function receives the AnnotationsUnion to be rendered as argument.
It must return a RendererConfiguration object or null.
CommentAvatar
Optional
This object can include functions to be called when specific entities, like annotations, are being rendered in the viewport, and return additional or replacement DOM content for the entity instance.
Currently only annotation's rendering can be customized using the
Annotationkey.If the callback returns null, the instance will be rendered normally.