Is it possible to get annotation color from Annotation object

Hi,
We are trying to get the color for changed annotation after any operation like modify/create.
how can we get color for modified or newly created annotation? is it possible to do so?

Thank you,
Vivek Sonawane

Hi,

You can get the StrokeColor and FillColor properties right off the annotation object.

  const { annotManager } = instance;

  annotManager.on('annotationChanged', (annots) => { 
    annots.forEach(annot => {
      const { StrokeColor, FillColor } = annot;
      console.log(StrokeColor, FillColor);
    })
  })

Thanks!
Logan