toloka.client.project.template_builder.actions.RotateActionV1
| Source code
RotateActionV1( self, view: Optional[Union[BaseComponent, RefComponent]] = None, payload: Optional[Union[BaseComponent, Payload]] = None, *, version: Optional[str] = '1.0.0')
Rotates the specified component by 90 degrees.
By default it rotates to the right, but you can specify the direction in the payload property.
Parameters | Type | Description |
---|---|---|
view | Optional[Union[BaseComponent, RefComponent]] | Points to the component to perform the action with. |
payload | Optional[Union[BaseComponent, Payload]] | Sets the direction of rotation. |