Inspired by:
Install and register this plugin:
import { Plugin } from '@antv/g-plugin-annotation';
const plugin = new Plugin();
canvasRenderer.registerPlugin(plugin);
Refer to: http://fabricjs.com/fabric-intro-part-4#customization
new Circle({
style: {
hasBorders: false,
borderColor: 'red',
cornerColor: 'green',
cornerSize: 6,
},
});