Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version 3.3.0.1 #54

Merged
merged 4 commits into from
Jun 12, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
data validation
  • Loading branch information
viliusle committed Jun 11, 2017
commit 15cca6599134df4aa3518357254ca64e36464c59
7 changes: 3 additions & 4 deletions js/draw_tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -1092,8 +1092,7 @@ function DRAW_TOOLS_CLASS() {
this.blur_tool = function (type, mouse, event) {
if (mouse.valid == false)
return true;
var size = GUI.action_data().attributes.size;
var size_half = Math.round(size / 2);
var size = parseInt(GUI.action_data().attributes.size);
var xx = mouse.x - size / 2;
var yy = mouse.y - size / 2;
if (xx < 0)
Expand All @@ -1102,7 +1101,7 @@ function DRAW_TOOLS_CLASS() {
yy = 0;
if (type == 'click') {
EDIT.save_state();
var param1 = GUI.action_data().attributes.power;
var param1 = parseInt(GUI.action_data().attributes.power);
var imageData = canvas_active().getImageData(xx, yy, size, size);
var filtered = ImageFilters.StackBlur(imageData, param1); //add effect
EL.image_round(canvas_active(), mouse.x, mouse.y, size, filtered, document.getElementById("canvas_front"));
Expand Down Expand Up @@ -1659,7 +1658,7 @@ function DRAW_TOOLS_CLASS() {
var strength = GUI.action_data().attributes.size / 100;
if(strength > 1)
strength = 1;
var radius = GUI.action_data().attributes.radius;
var radius = parseInt(GUI.action_data().attributes.radius);
var bulge = GUI.action_data().attributes.bulge;
if(bulge == false)
strength = -1 * strength;
Expand Down