Home > @jsplumbtoolkit/browser-ui > Surface > storePositionInModel
Surface.storePositionInModel() method
Writes the current position for the given vertex into the data model.
Signature:
storePositionInModel(params: string | {
obj?: Node | Group;
id: string;
force?: boolean;
leftAttribute?: string;
topAttribute?: string;
pos?: PointXY;
}): PointXY;
Parameters
Parameter | Type | Description |
---|---|---|
params | string | { obj?: Node | Group; id: string; force?: boolean; leftAttribute?: string; topAttribute?: string; pos?: PointXY; } | Parameters |
Returns:
PointXY