Skip to main content

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#

ParameterTypeDescription
paramsstring | { obj?: Node | Group; id: string; force?: boolean; leftAttribute?: string; topAttribute?: string; pos?: PointXY; }Parameters

Returns:

PointXY