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
Parameter | Type | Description |
---|---|---|
left | number | Value in pixels for left edge of canvas. |
top | number | Value in pixels for top edge of canvas. |
Returns:
PointXY
Location of the actual origin set, after clamping.