This is a small JavaScript library that allows you to get the middle vertices of a polygon shape created with Fabric.js. It provides a function that takes a Fabric.js polygon object as an input and returns an array of points that represent the vertices of the polygon.
adding-vertces.mov
Feel free to modify it as you like!