Skip to content

Commit

Permalink
Release 1.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoxudong committed May 30, 2015
1 parent fb338c8 commit df365ad
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion bower.json
@@ -1,6 +1,6 @@
{
"name": "canvas-shapes",
"version": "1.1.2",
"version": "1.1.3",
"homepage": "http://html5beta.com/apps/canvas-shapes.html",
"author": {
"email": "zxdong@gmail.com",
Expand Down
6 changes: 3 additions & 3 deletions dist/canvas-shapes.js
@@ -1,6 +1,6 @@
/**
* canvas-shapes
* @version v1.1.2 - 2015-05-30
* @version v1.1.3 - 2015-05-30
* @link http://html5beta.com/apps/canvas-shapes.html
* @author ZHAO Xudong (zxdong@gmail.com)
* @license MIT License, http://www.opensource.org/licenses/MIT
Expand Down Expand Up @@ -495,7 +495,7 @@ Shapes.prototype.buildPosArrayFromText = function(_text, _options) {
,scanDistance = options.scanDistance || 5
,fontSize = options.fontSize || 200
,fontFamily = options.fontFamily || 'sans-serif'
,top = options.top || (h - fontSize)/2
,top = options.top || 20

//Supports any of the following values:
//start end left right center
Expand All @@ -509,7 +509,7 @@ Shapes.prototype.buildPosArrayFromText = function(_text, _options) {

ctx.font = fontSize + 'px ' + fontFamily
ctx.fillStyle = 'red'
ctx.fillText(text, 20, 20)
ctx.fillText(text, 20, top)

var data = ctx.getImageData(0, 0, w, h)

Expand Down
4 changes: 2 additions & 2 deletions dist/canvas-shapes.min.js

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

2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "canvas-shapes",
"description": "this jquery plugin will draw simple shape moving animation in canvas",
"version": "1.1.2",
"version": "1.1.3",
"keywords": [
"canvas",
"shape",
Expand Down
4 changes: 2 additions & 2 deletions src/canvas-shapes.js
Expand Up @@ -487,7 +487,7 @@ Shapes.prototype.buildPosArrayFromText = function(_text, _options) {
,scanDistance = options.scanDistance || 5
,fontSize = options.fontSize || 200
,fontFamily = options.fontFamily || 'sans-serif'
,top = options.top || (h - fontSize)/2
,top = options.top || 20

//Supports any of the following values:
//start end left right center
Expand All @@ -501,7 +501,7 @@ Shapes.prototype.buildPosArrayFromText = function(_text, _options) {

ctx.font = fontSize + 'px ' + fontFamily
ctx.fillStyle = 'red'
ctx.fillText(text, 20, 20)
ctx.fillText(text, 20, top)

var data = ctx.getImageData(0, 0, w, h)

Expand Down

0 comments on commit df365ad

Please sign in to comment.