Readonly
idThe id
property is a unique identifier for the page.
The name
property is the name of the page.
Readonly
rulerThe ruler guides attached to the board
The root shape of the current page. Will be the parent shape of all the shapes inside the document.
Requires content:read
permission.
Readonly
flowsThe interaction flows defined for the page.
Finds all shapes on the page. Optionaly it gets a criteria object to search for specific criteria
Optional
criteria: { Optional
name?: stringOptional
nameOptional
type?: Removes the flow from the page
the flow to be removed from the page
Creates a new ruler guide.
Optional
board: BoardRemoves the guide
from the current page.
Creates a new comment thread in the position
. Optionaly adds
it into the board
.
Returns the thread created.
Requires the comment:write
permission.
Removes the comment thread.
Requires the comment:write
permission.
Find all the comments that match the criteria.
onlyYours
: if true
will return the threads where the current
user has engaged.showResolved
: by default resolved comments will be hidden. If true
the resolved will be returned.
Requires the comment:read
or comment:write
permission.Optional
criteria: { If we know the namespace of an external plugin, this is the way to get their data.
The namespace for the shared data.
The key for which to retrieve the data.
Returns the shared data associated with the key as a string.
Page represents a page in the Penpot application. It includes properties for the page's identifier and name, as well as methods for managing shapes on the page.