Skip to main content
Version: 1.x.x

CommentAnchorRecord

quip.apps.CanvasRecord.CommentAnchorRecord

Represents the location of a comment anchor within a Canvas.

quip.apps.CanvasRecord.CommentAnchorRecord.prototype

getXFraction

Function() => number

Returns the x-coordinates of the comment anchor. These are in fraction of the canvas size, so 0.25 for getXFraction means a quarter of the width away from the left-edge & 0.99 for getYFraction means near the bottom.

getYFraction

Function() => number

Returns the same format of number as getXFraction, but from the top of the canvas.