evCreate API 5.7 Help

GetViewportCoordinate Function

Converts a given 2D coordinate from the coordinate space of the Envision document currently opened in the Canvas Envision Creator app to the coordinate space of the browser viewport.

GetViewportCoordinate(xyEv: [[[EvCoord2D|evcoord2d-type-alias.html]]]): Promise<[[[EvCoord2D|evcoord2d-type-alias.html]]]>

Parameters

xyEv: EvCoord2D

An EvCoord2D object, a 2D coordinate in the coordinate space of the Envision document currently opened in the Canvas Envision Creator app.

Return value

Promise<EvCoord2D>

A Promise that, if fulfilled, resolves to an EvCoord2D object, which is a 2D coordinate in the coordinate space of the browser viewport.

07 March 2025