-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclip.js
More file actions
39 lines (31 loc) · 741 Bytes
/
Copy pathclip.js
File metadata and controls
39 lines (31 loc) · 741 Bytes
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
module.exports = {
file : '',
start : 0,
end: 0,
layer: 0,
timeline_start: 0,
timeline_end: 0,
duration: 0,
top_left_x: 0,
top_left_y: 0,
bottom_right_x: 0,
bottom_right_y: 0,
sound_level: 100,
video: function( args ){
var props_to_assign = ['file', 'start', 'end', 'layer',
'timeline_start', 'timeline_end', 'duration', 'top_left_x',
'top_left_y', 'bottom_right_y', 'bottom_right_x'];
for ( prop in props_to_assign ){
this[prop] = args[prop];
}
this['sound_level'] = 0;
return this;
},
audio: function( args ){
var props_to_assign = ['file', 'start', 'end', 'sound_level'];
for ( prop in props_to_assign ){
this[prop] = args[prop];
}
return this;
}
}