How to adjust the fine tuning of H5 canvas? is there anything like the pixel fine tuning of css in Google browser that can adjust the details?

Today, the company sent several pages of h5 games and found that they are all painted on canvas. The demand is to change the position of some buttons in the canvas, but the coordinates have to be written and then adjusted to see the effect adjustment. Is there a way to adjust the exact position after adjustment in Google browser like css, and then write the corresponding position parameters into the code? do you want to draw a coordinate map to adjust it? Seek the guidance of an experienced H5 god. Wait online

Mar.10,2021

A good news and bad news:
good news: you can turn on the canvas inspection function by turning on the implementation function of Chrome and finding Canvas Inspection .
Bad News: this function has been removed in the new version of Chrome, and 23333


Canvas can only be tuned a little bit if you write native. After all, it's written in js. Or if you can see if there is Canvas-based UI middleware, I know that there is a FairyGUI and Egret's EUI (if you use Egret.., of course), you can search again to see if there is anything similar.

Menu