Return the element names of element of certain type.
Signature:
getElementsNames(elementType?: ElementType, inverted?: boolean): Array<string>;
Parameter | Description |
---|---|
elementType | The type of element. By default it is ElementType.ANY. It can be ElementType.Element, ElementType.LINK, ElementType.ROOM or ElementType.AREA. |
inverted | If set to true, the elements that are not the type will be returned. By default, it is false. |
Returns:
Array<string>
An array of element names.