How to manage a canvas using both threejs and fabricjs Version 6.x

A problem was reported here in the past, and was solved for fabricjs version <=5.x

Since then fabricjs has been updated with many breaking changes, including some that break the above solution.
I reported my problem also in the fabricjs forum

Here is the example that runs ok with fabricjs version 5
and here is the example that fails with fabricjs version 6

I would be grateful if someone could show me how to fix the problem when using threejs and fabricjs version 6.x.

Thanks

Ok, I solved the fabricjs version 6 problem by extending the fabricjs.Canvas class and overloading the fabricjs.Canvas._onMouseMove() method.
A correct example of ThreeJS and FabricJS version 6.x (6.5.3) can be seen here
The user can draw on the Renderer element and the freedraw path is shown correctly in the Canvas element.
Thanks for your help.