Skip to main content

Home > @jsplumbtoolkit/browser-ui > Surface > setApparentCanvasLocation

Surface.setApparentCanvasLocation() method

Sets the apparent canvas location - see the notes for getApparentCanvasLocation.

Signature:

setApparentCanvasLocation(left: number, top: number): PointXY;

Parameters

ParameterTypeDescription
leftnumberValue in pixels for left edge of canvas.
topnumberValue in pixels for top edge of canvas.

Returns:

PointXY

Location of the actual origin set, after clamping.