-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkayakotypes.js
51 lines (46 loc) · 1.48 KB
/
kayakotypes.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
vjo.otype('kayaktl.kayakotypes') //< public
.globals({
kayak: null //< kayakotypes
})
.defs({
//> public void launch( kayakotypes::person person, boolean? hasPaddle)
launch:vjo.NEEDS_IMPL
/**
* @param duration Number The duration in seconds to paddle
*/
//>public void paddleForward(int duration)
,paddleForward : vjo.NEEDS_IMPL
/**
* @param duration Number The duration in seconds to paddle
*/
//>public void paddleBackward(int duration)
,paddleBackward : vjo.NEEDS_IMPL
/**
@param eventType a String representing the event type, launch, stop, paddleForward, paddBackward
@param eventHandler Function a function which passes an event object
*/
, //>public void addEventListener(String eventType, (void fn(kayaktl.kayakotypes::event event) ))
addEventListener : vjo.NEEDS_IMPL
/**
* @param location Object Pass an object literal with the longitude and latitude of the desired location
*/
//>public void setDestination(kayaktl.kayakotypes::destination coordinates)
,setDestination : vjo.NEEDS_IMPL
,//>public void stopPaddling()
stopPaddling : vjo.NEEDS_IMPL
,person : {
firstName: null, //< String
lastName: null, //< String
launchLog: null //< Date[]?
}
,event : {
eventType: null, //< String
duration: null, //< Number
person: null //< kayaktl.kayakotypes::person
}
,destination : {
longitude: null, //< Number
latitude: null //< Number
}
})
.endType()