evCreate API 5.7 Help

EvObjectAttributes Interface

The EvObjectAttributes TS interface defines a blueprint of a JS object that specifies the attributes of an object item.

Properties

An EvObjectAttributes object has the following properties:

boundsNonTransformed: EvRect;

An EvRect object, the bounding box of a given object item without any transformations applied, e.g., rotation, skewing, etc. This is the original bounding box of an object item in the UI after the Remove Transform command has been applied to this object item.

boundsTransformed: EvRect;

An EvRect object, the bounding box of a given object item with one or more transformations applied, e.g., rotation, skewing, etc. This is the current bounding box of an object item in the UI.

fill: EvFill;

An EvFill object, the fill of a given object item.

id: EvObjId;

A number, the internal identifier of a given object item. It is unique within an Envision document currently opened in the Canvas Envision Creator app. This ID is not globally unique across different sessions of the same document and should not be stored outside the context of the current document session.

isLocked: boolean;

A Boolean, a flag indicating whether a given object item is locked (true) or unlocked (false) against modifications. Editing locked object items is not allowed.

isTransformed: boolean;

A Boolean, a flag indicating whether a given object item has (true) or has no (false) a transformation matrix applied by transformation operations like rotation or skewing.

isVisible: boolean;

A Boolean, a flag indicating whether a given object item is visible (true) or hidden (false) on the page layer.

name: string;

A string, the name of a given object item.

outline: EvOutline;

An EvOutline object, the outline of a given object item.

transparency: EvTransparency;

An EvTransparency object, the transparency of a given object item.

type: EvObjType;

A member of the EvObjType enumeration, an object item type of a given object item.

optional typeAttributes: | EvArcAttributes | EvBezierAttributes | EvCompositeAttributes | EvGroupAttributes | EvImageAttributes | EvLineAttributes | EvMultigonAttributes | EvPolygonAttributes | EvRoundedRectangleAttributes | EvTableAttributes | EvTextAttributes;

A data object with the object item attributes specific for the object item type of a given object item.

wasCreatedFromSymbol: boolean;

A Boolean, a flag indicating whether a given object item has been created by placing a symbol into the document.

Examples

TS

{ boundsNonTransformed: { left: 47.25, top: 47.75, right: 288, bottom: 192 }, boundsTransformed: { left: 93.65, top: 53.85, right: 405, bottom: 269 }, fill: { data: { color: "#B3282E" }, type: EvFillType.Color }, id: 82, isLocked: false, isTransformed: true, isVisible: true, name: "Example", outline: { data: { cap: EvOutlineCap.Round, color: "#B3282E", join: EvOutlineJoin.Round, placement: EvOutlinePlacement.Top, width: 8 }, type: EvOutlineType.Line }, transparency: { area: EvTransparencyArea.FillOnly, blendMode: EvTrspBlendMode.SoftLight, value: 50 }, type: EvObjType.RoundedRectangle, typeAttributes: { xRadius: 6, yRadius: 6 }, wasCreatedFromSymbol: false }

JS

{ boundsNonTransformed: { left: 47.25, top: 47.75, right: 288, bottom: 192 }, boundsTransformed: { left: 93.65, top: 53.85, right: 405, bottom: 269 }, fill: { data: { color: "#B3282E" }, type: "color" }, id: 82, isLocked: false, isTransformed: true, isVisible: true, name: "Example", outline: { data: { cap: "round", color: "#B3282E", join: "round", placement: "top", width: 8 }, type: "line" }, transparency: { area: "fill_only", blendMode: "softlight", value: 50 }, type: "rounded_rectangle", typeAttributes: { xRadius: 6, yRadius: 6 }, wasCreatedFromSymbol: false }
08 April 2025