evCreate API 5.7 Help

GetSize Function

Returns an EvSize2D object with the width and height of the bounding box of a given object item from an Envision document currently opened in the Canvas Envision Creator app.

GetSize(obj: [[[EvItem|canvas-envision-document-items.html#object-items]]], transformed?: boolean): Promise<[[[EvSize2D|evsize2d-interface.html]]]>

Parameters

obj: EvItem

An Object item object, an object item from the Envision document currently opened in the Canvas Envision Creator app whose bounding box dimensions should be returned.

transformed?: boolean

A Boolean, a switch to indicate whether to return the 2D dimensions of the transformed (true) or original (false) bounding box of the given object item.

The default value is false.

Return value

Promise<EvSize2D>

A Promise that, if fulfilled, resolves to an EvSize2D object with the width and height of the given object item's bounding box.

27 March 2025