forked from enviPath/enviPy
Current Dev State
This commit is contained in:
28
static/js/ketcher2/node_modules/webdriverio/lib/protocol/rotate.js
generated
vendored
Normal file
28
static/js/ketcher2/node_modules/webdriverio/lib/protocol/rotate.js
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
/**
|
||||
*
|
||||
* Perform a rotation gesture centered on the specified element.
|
||||
*
|
||||
* <example>
|
||||
:rotate.js
|
||||
browser.rotate(114, 198);
|
||||
* </example>
|
||||
*
|
||||
* @param {Number} x x offset to use for the center of the rotate gesture (default 0)
|
||||
* @param {Number} y y offset to use for the center of the rotate gesture (default 0)
|
||||
* @param {Number} duration The length of hold time for the specified gesture, in seconds. (default 1)
|
||||
* @param {Number} radius The distance in points from the center to the edge of the circular path.
|
||||
* @param {Number} rotation The length of rotation in radians. (default pi (π))
|
||||
* @param {Number} touchCount The number of touches to use in the specified gesture. (Effectively, the number of fingers a user would use to make the specified gesture.) Valid values are 1 to 5. (default 2)
|
||||
*
|
||||
* @see https://developer.apple.com/library/ios/documentation/ToolsLanguages/Reference/UIAElementClassReference/#//apple_ref/javascript/instm/UIAElement/rotateWithOptions
|
||||
* @type mobile
|
||||
* @for ios
|
||||
*
|
||||
*/
|
||||
|
||||
export default function rotate (x = 0, y = 0, duration = 1, radius = 0, rotation = Math.PI, touchCount = 2) {
|
||||
return this.requestHandler.create({
|
||||
path: '/session/:sessionId/appium/device/rotate',
|
||||
method: 'POST'
|
||||
}, { x, y, duration, radius, rotation, touchCount })
|
||||
}
|
||||
Reference in New Issue
Block a user