RotateActionV1

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 Description

ParametersTypeDescription
viewOptional[Union[BaseComponent, RefComponent]]

Points to the component to perform the action with.

payloadOptional[Union[BaseComponent, Payload]]

Sets the direction of rotation.

Toloka-Kit
OverviewGetting OAuth tokenQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming