isDiagramEmpty Method

Description

Returns true if the ESD/SPD Web editor contains an empty diagram.

Syntax

.isDiagramEmpty()

Example

/* example assumes esdEditor is an initialized ESDWeb object */

if (esdEditor.isDiagramEmpty()) {
    alert('Diagram is empty!');
} else {
    alert('Diagram is not empty!');
}