Skip to content

Commit

Permalink
Merge pull request #16 from goessner/g2-2
Browse files Browse the repository at this point in the history
G2 2
  • Loading branch information
goessner committed May 17, 2016
2 parents 6d1d921 + 9ed4897 commit 555f89b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
5 changes: 3 additions & 2 deletions api/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<a name="g2"></a>
## g2([opts])
## g2([opts]) ⇒ <code>object</code>
Create a queue of 2D graphics commands.

**Kind**: global function
**Returns**: <code>object</code> - g2

| Param | Type | Description |
| --- | --- | --- |
Expand All @@ -13,7 +14,7 @@ Create a queue of 2D graphics commands.
// How to use g2()var ctx = document.getElementById("c").getContext("2d");g2() // Create 'g2' instance. .lin(50,50,100,100) // Append ... .lin(100,100,200,50) // ... commands. .exe(ctx); // Execute commands addressing canvas context.
```

* [g2([opts])](#g2)
* [g2([opts])](#g2) ⇒ <code>object</code>
* _instance_
* [.cartesian([on])](#g2+cartesian) ⇒ <code>object</code>
* [.pan(dx, dy)](#g2+pan) ⇒ <code>object</code>
Expand Down
6 changes: 4 additions & 2 deletions g2.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
/**
* g2 (c) 2013-16 Stefan Goessner
* @license
* MIT License
* @license MIT License
* @link https://github.com/goessner/g2
*
*/
/* jshint -W014 */
/* jshint -W030 */

/**
* Create a queue of 2D graphics commands.
* @param {object} [opts] Custom options object. It is simply copied into the 'g2' object for later individual use.
* @returns {object} g2
* @example
* // How to use g2()
* var ctx = document.getElementById("c").getContext("2d");
Expand Down
5 changes: 3 additions & 2 deletions g2.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified g2.min.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
"jslint": "^0.9.5",
"uglifyjs": "^2.4.10"
}
}
}

0 comments on commit 555f89b

Please sign in to comment.