Skip to content

Commit 17c2090

Browse files
committed
0.2.41
1 parent e2ed6f5 commit 17c2090

6 files changed

Lines changed: 7 additions & 8 deletions

File tree

js/inserter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export default class Inserter {
137137
};
138138

139139
if (src.indexOf('data') !== 0) {
140-
imgToDataURL(src, (dataUrl) => { // if CORS will not allow,
140+
imgToDataURL(src, (dataUrl) => { // if CORS will not allow,
141141
// better see error in console than have different canvas mode
142142
handleIt(dataUrl);
143143
});

js/selecter.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ export default class PainterroSelecter {
5757
if (this.pixelSize < 2) {
5858
this.pixelSize = 2; // prevent errors
5959
}
60-
console.log('create arr');
6160
const pxData = [];
6261
const pxSize = [size[0] / this.pixelSize, size[1] / this.pixelSize];
6362
for (let i = 0; i < pxSize[0]; i += 1) {
@@ -67,7 +66,6 @@ export default class PainterroSelecter {
6766
}
6867
pxData.push(row);
6968
}
70-
console.log('calc avg');
7169
const data = this.ctx.getImageData(c[0], c[1], size[0], size[1]);
7270
for (let i = 0; i < size[0]; i += 1) {
7371
for (let j = 0; j < size[1]; j += 1) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "painterro",
3-
"version": "0.2.39",
3+
"version": "0.2.41",
44
"description": "HTML5 image editor widget",
55
"main": "build/painterro.commonjs2.js",
66
"scripts": {

publish.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ VERSION=`grep '"version":' package.json | cut -d\" -f4`
1313
npm run build
1414

1515
if [ $? -eq 0 ]; then
16-
echo OK
16+
echo BUILD OK
1717
else
1818
echo FAIL
19+
exit 0
1920
fi
2021

2122
rm wp/trunk/painterro-*.min.js

wp/trunk/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
return {
9191
longname: "Painterro",
9292
author: "Ivan Borshchov",
93-
version: "0.2.39",
93+
version: "0.2.41",
9494
};
9595
}
9696
});

wp/trunk/painterro-wp.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
Plugin Name: Painterro
55
Plugin URI: https://github.com/ivictbor/painterro
66
Description: Paste screenshots and edit images directly in browser. Adds Painterro button to visual editor for images editing. Absolutely free and open source.
7-
Version: 0.2.39
7+
Version: 0.2.41
88
Author: Ivan Borshchov
99
License: MIT
1010
*/
1111

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

1414
function include_painterro_script()
1515
{

0 commit comments

Comments
 (0)