ShapeMouseDown

fires when the left mouse button is moved down over a shape

void ShapeMouseDown(string|number id){ ... };

Parameters

idstring|numberthe id of a shape

Example

diagram.events.on("ShapeMouseDown", function(id) {
    console.log('An item "' + diagram.data.getItem(id).text + '"will be clicked');
});

Related samples

See also
Back to top