WithCustomDirection inputs sx, sy, ex, ey
(sx, sy, ex, ey float64)
| 356 | |
| 357 | // WithCustomDirection inputs sx, sy, ex, ey |
| 358 | func WithCustomDirection(sx, sy, ex, ey float64) ActionOption { |
| 359 | return func(o *ActionOptions) { |
| 360 | o.Direction = []float64{sx, sy, ex, ey} |
| 361 | } |
| 362 | } |
| 363 | |
| 364 | // WithScope inputs area of [(x1,y1), (x2,y2)] |
| 365 | // x1, y1, x2, y2 are all in [0, 1], which means the relative position of the screen |
no outgoing calls