'fabricjs passing a property to path when isDrawingMode = true

I'm using fabricjs version 5.2.1, and i'm having an issue while adding a property to the free drawing pen mode

here's the page i'm making: https://khaledmndev.github.io/PDF/web/

I'm passing a property inside "new fabric.canvas", which is "ObjectId: "id" + Math.random().toString(16).slice(2),"

i want this property to be added in path (freedrawing), it worked after i added the about property inside new rect and Itext. Also in the link i sent the canvas json is save inside the Local Storage, so you can check that the itext and rectangle has the added property which is "ObjectId" but the path doesn't..

But Unfortunately the ObjectId is not appearing inside the json.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source