evCreate API 5.7 Help

SetSmooth Function

Toggles the shape smoothness of a given polygon item from an Envision document currently opened in the Canvas Envision Creator app.

SetSmooth(obj: [[[EvItem|canvas-envision-document-items.html#object-items]]], smooth: boolean): Promise<void>

Parameters

obj: EvItem

An Object item object, a polygon item from the Envision document currently opened in the Canvas Envision Creator app whose shape smoothness should be toggled.

If a given object item is not a polygon, the function throws an error.

smooth: boolean;

A Boolean, a switch to toggle the shape smoothness of the given polygon item:

  • false: sharp corners and straight edges.

  • true: rounded corners and curved edges.

The isSmooth controls whether a given polygon item object is drawn as a smooth curve (true) or with corners (false)

Return value

Promise<void>

A Promise that, if fulfilled, resolves to void if the shape smoothness of the given polygon item in the current document has been successfully toggled.

09 April 2025