TWebPaintBox.canvas.TextHeight : Incompatible types: got "Double" expected "Longint"

is declared as an integer:
function TCustomCanvas.TextHeight(const Text: string): Integer; in unit Vcl.Graphics;
as well TextWidth
But the transpiler: [Fehler] : Incompatible types: got "Double" expected "Longint"

In the browser, floating point values are used for calculations in graphics, so this indeed returns a double (as this is the result the browser APIs return and we did not want to limit capabilities by rounding).