forked from 0x2620/oxjs
add some docstrings
This commit is contained in:
parent
204f083e98
commit
4768dcfe8e
5 changed files with 108 additions and 1 deletions
|
|
@ -1006,11 +1006,23 @@ Ox.VideoEditor = function(options, self) {
|
|||
}
|
||||
};
|
||||
|
||||
/*@
|
||||
addAnnotation <f> add annotation
|
||||
(layer, item) -> <o> add annotation to layer
|
||||
layer <s> layer id
|
||||
item <o> annotation to add
|
||||
@*/
|
||||
that.addAnnotation = function(layer, item) {
|
||||
var i = Ox.getPositionById(self.options.layers, layer);
|
||||
self.$annotationPanel[i].addItem(item);
|
||||
};
|
||||
|
||||
/*@
|
||||
removeAnnotations <f> add annotation
|
||||
(layer, ids) -> <o> remove annotation from layer
|
||||
layer <s> layer id
|
||||
ids <a> array of item ids to remove
|
||||
@*/
|
||||
that.removeAnnotations = function(layer, ids) {
|
||||
var i = Ox.getPositionById(self.options.layers, layer);
|
||||
self.$annotationPanel[i].removeItems(ids);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue