Skip to content

Commit

Permalink
release 2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
goessner committed May 16, 2016
1 parent e5d8b17 commit 02fd3ed
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 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.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "g2",
"version": "2.1.1",
"description": "g2 - a 2d graphics command queue",
"version": "2.1.2",
"description": "g2 - a tiny 2d graphics command library",
"main": "g2.js",
"scripts": {
"build": "npm run minify && npm run jsdoc && npm run gzip ",
Expand All @@ -12,7 +12,7 @@
"author": "Stefan Goessner <[email protected]>",
"repository": {
"type": "git",
"url": "https://github.com/goessner/g2.git"
"url": "https://github.com/goessner/g2"
},
"license": "MIT",
"devDependencies": {
Expand Down

0 comments on commit 02fd3ed

Please sign in to comment.