Skip to content

Commit

Permalink
0.2.41
Browse files Browse the repository at this point in the history
  • Loading branch information
ivictbor committed Aug 27, 2017
1 parent e2ed6f5 commit 17c2090
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion js/inserter.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export default class Inserter {
};

if (src.indexOf('data') !== 0) {
imgToDataURL(src, (dataUrl) => { // if CORS will not allow,
imgToDataURL(src, (dataUrl) => { // if CORS will not allow,
// better see error in console than have different canvas mode
handleIt(dataUrl);
});
Expand Down
2 changes: 0 additions & 2 deletions js/selecter.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export default class PainterroSelecter {
if (this.pixelSize < 2) {
this.pixelSize = 2; // prevent errors
}
console.log('create arr');
const pxData = [];
const pxSize = [size[0] / this.pixelSize, size[1] / this.pixelSize];
for (let i = 0; i < pxSize[0]; i += 1) {
Expand All @@ -67,7 +66,6 @@ export default class PainterroSelecter {
}
pxData.push(row);
}
console.log('calc avg');
const data = this.ctx.getImageData(c[0], c[1], size[0], size[1]);
for (let i = 0; i < size[0]; i += 1) {
for (let j = 0; j < size[1]; j += 1) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "painterro",
"version": "0.2.39",
"version": "0.2.41",
"description": "HTML5 image editor widget",
"main": "build/painterro.commonjs2.js",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ VERSION=`grep '"version":' package.json | cut -d\" -f4`
npm run build

if [ $? -eq 0 ]; then
echo OK
echo BUILD OK
else
echo FAIL
exit 0
fi

rm wp/trunk/painterro-*.min.js
Expand Down
2 changes: 1 addition & 1 deletion wp/trunk/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
return {
longname: "Painterro",
author: "Ivan Borshchov",
version: "0.2.39",
version: "0.2.41",
};
}
});
Expand Down
4 changes: 2 additions & 2 deletions wp/trunk/painterro-wp.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
Plugin Name: Painterro
Plugin URI: https://github.com/ivictbor/painterro
Description: Paste screenshots and edit images directly in browser. Adds Painterro button to visual editor for images editing. Absolutely free and open source.
Version: 0.2.39
Version: 0.2.41
Author: Ivan Borshchov
License: MIT
*/

define("PAINTERRO_FILE", "painterro-0.2.39.min.js");
define("PAINTERRO_FILE", "painterro-0.2.41.min.js");

function include_painterro_script()
{
Expand Down

0 comments on commit 17c2090

Please sign in to comment.