Home > @jsplumbtoolkit/browser-ui > Surface > storePositionsInModel
Surface.storePositionsInModel() method
Writes the current position for each node into the data model. A common use case is to run an auto layout the first time some dataset is seen, and then to save the locations of all the vertices once a human being has moved things around.
Signature:
storePositionsInModel(params?: {
leftAttribute?: string;
topAttribute?: string;
}): void;
Parameters
Parameter | Type | Description |
---|---|---|
params | { leftAttribute?: string; topAttribute?: string; } | Parameters |
Returns:
void