update

updates properties of the shape

void update(string|number id,hash config);

Parameters

idstring|numberthe id of the shape which needs to be updated
confighasha hash of properties which need to be updated

Example

diagram.data.update(123, { text:"New text" });

Details

The command can't be used to change the id or type of the shape.

See also
Back to top