Setting node size via CSS in Canvas

What I’m trying to do

One of the unresolved problems in Canvas is the inability to adjust the arrow path from node to node. Sometimes it is necessary that the arrow route be arbitrary, but this cannot be controlled. The only workaround I know is to create a node that will act as a point fixing the route of the arrow. Since such a node does not carry any more load, I want to make it as small and inconspicuous as possible.

Things I have tried

By default, the size of any node can be reduced to 50px x 50px (or completely collapsed, but this is not what I need). I tried using CSS to make a 20px x 20px node. This reduced the node itself, but the arrows still “see” it as large and eventually go to the wrong place where there is no node now. That is, it was as if I had changed the purely external appearance, but the size itself, which other objects perceive, remained the same.

I couldn’t find any other HTML elements that are responsible for “true” node sizes. Can someone tell me what needs to be changed here? Maybe I need to write a microplagin for this? I can try, I just don’t know where to dig here.