forked from 0x2620/oxjs
add documentation stubs
This commit is contained in:
parent
b3fce3a28a
commit
509745407b
102 changed files with 613 additions and 163 deletions
|
|
@ -463,6 +463,10 @@ Ox.AnnotationPanel = function(options, self) {
|
|||
}
|
||||
};
|
||||
|
||||
/*@
|
||||
addItem <f> add item
|
||||
(layer, item) -> <o> add item to layer
|
||||
@*/
|
||||
that.addItem = function(layer, item) {
|
||||
// called from addannotation callback
|
||||
var i = Ox.getIndexById(self.options.layers, layer);
|
||||
|
|
@ -476,18 +480,30 @@ Ox.AnnotationPanel = function(options, self) {
|
|||
renderEditMenu();
|
||||
};
|
||||
|
||||
/*@
|
||||
blurItem <f> blur item
|
||||
() -> <o> blur selected item
|
||||
@*/
|
||||
that.blurItem = function() {
|
||||
self.editing = false;
|
||||
getFolder(self.options.selected).blurItem();
|
||||
renderEditMenu();
|
||||
};
|
||||
|
||||
/*@
|
||||
editItem <f> editItem
|
||||
() -> <o> put selected item into edit mode
|
||||
@*/
|
||||
that.editItem = function() {
|
||||
self.editing = true;
|
||||
getFolder(self.options.selected).editItem();
|
||||
renderEditMenu();
|
||||
};
|
||||
|
||||
/*@
|
||||
removeItem <f> removeItem
|
||||
(remove) -> <o> remove item
|
||||
@*/
|
||||
that.removeItem = function(remove) {
|
||||
if (remove) {
|
||||
// remove initiated by video editor
|
||||
|
|
@ -501,6 +517,10 @@ Ox.AnnotationPanel = function(options, self) {
|
|||
}
|
||||
};
|
||||
|
||||
/*@
|
||||
updateItem <f> updateItem
|
||||
(id, item) -> <o> update item
|
||||
@*/
|
||||
that.updateItem = function(id, item) {
|
||||
// called from editannotation callback
|
||||
// on the first update of a new annotation, the id will change
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue