cleanup documentation
This commit is contained in:
parent
f4c34d858c
commit
b8f88958da
1 changed files with 4 additions and 8 deletions
|
@ -288,18 +288,14 @@ Ox.$ = Ox.element = function(value) {
|
||||||
|
|
||||||
/*@
|
/*@
|
||||||
Ox.canvas <function> Generic canvas object
|
Ox.canvas <function> Generic canvas object
|
||||||
# Description --------------------------------------------------------------
|
|
||||||
Returns an object with the properties: `canvas`, `context`, `data` and
|
Returns an object with the properties: `canvas`, `context`, `data` and
|
||||||
`imageData`.
|
`imageData`.
|
||||||
# Usage --------------------------------------------------------------------
|
(width, height) -> <o> canvas
|
||||||
Ox.canvas(width, height) -> <object> canvas
|
(image) -> <o> canvas
|
||||||
Ox.canvas(image) -> <object> canvas
|
|
||||||
# Arguments ----------------------------------------------------------------
|
|
||||||
width <n> Width in px
|
width <n> Width in px
|
||||||
height <n> Height in px
|
height <n> Height in px
|
||||||
image <e> Image object
|
image <e> Image object
|
||||||
@*/
|
@*/
|
||||||
|
|
||||||
Ox.canvas = function() {
|
Ox.canvas = function() {
|
||||||
var c = {}, isImage = arguments.length == 1,
|
var c = {}, isImage = arguments.length == 1,
|
||||||
image = isImage ? arguments[0] : {
|
image = isImage ? arguments[0] : {
|
||||||
|
|
Loading…
Reference in a new issue