DataCollection Methods

Methods
add adds a new shape to the diagram
copy creates a copy of a shape at the defined position
exists checks whether the specified shape exists in the diagram
filter filters the shapes in the diagram by the specified key
find finds the shape that corresponds to the specified parameters
findAll finds all the shapes that correspond to the specified parameters
getId returns the id of the shape by its index
getIndex returns the index of the shape by its id
getItem returns the object of a shape by its id
getNearId returns the id of a shape which is nearest to the specified one
load loads data from an external file
map iterates through all items of the diagram
move moves a shape to the defined position
parse loads data from a local data source
remove deletes the specified shape from the diagram
removeAll deletes all shapes from the diagram
serialize serializes the diagram data into an array of JSON objects
update updates properties of the shape
Back to top