Skip to main content
DecoratorComponentProps
Props for the Decorator component.
NameTypeDescription
constraints?FixedElementConstraintsOptional constraints when using fixed placement: you can instruct the UI to restrict movement in one or both axes.
placement?"fixed" | "floating"Whether to float the element over the UI, so that it does not move with the content (floating), or to place the element onto the canvas, so that it moves/zooms with the content (fixed). Floating is the default.
position?PointXYFor floating placement, this is a point relative to the viewport origin. for fixed placement, this is a point relative to the canvas origin. Defaults to 0,0.