The pagechange
event is triggered when the active page in the project is changed.
The filechange
event is triggered when there are changes in the current file.
The selectionchange
event is triggered when the selection of elements changes.
This event passes a list of identifiers of the selected elements.
The themechange
event is triggered when the application theme is changed.
The finish
event is triggered when some operation is finished.
This event will triger whenever the shape in the props change. It's mandatory to send
with the props an object like { shapeId: '<id>' }
The contentsave
event will trigger when the content file changes.
Represents a mapping of events to their corresponding types in Penpot. This interface provides information about various events that can be triggered in the application.
Example