mirror of
https://github.com/konvajs/konva.git
synced 2025-09-18 18:27:58 +08:00
changed Gauss to Blur
This commit is contained in:
2
Thorfile
2
Thorfile
@@ -5,7 +5,7 @@ class Build < Thor
|
||||
# This is the list of files to concatenate. The first file will appear at the top of the final file. All files are relative to the lib directory.
|
||||
FILES = [
|
||||
"src/Global.js", "src/util/Type.js", "src/Canvas.js", "src/util/Tween.js", "src/util/Transform.js", "src/util/Collection.js",
|
||||
"src/filters/Grayscale.js", "src/filters/Brighten.js", "src/filters/Invert.js", "src/filters/Gauss.js",
|
||||
"src/filters/Grayscale.js", "src/filters/Brighten.js", "src/filters/Invert.js", "src/filters/Blur.js",
|
||||
"src/Node.js", "src/Animation.js", "src/DragAndDrop.js", "src/Transition.js", "src/Container.js", "src/Shape.js", "src/Stage.js", "src/Layer.js", "src/Group.js",
|
||||
"src/shapes/Rect.js", "src/shapes/Circle.js", "src/shapes/Wedge.js", "src/shapes/Ellipse.js", "src/shapes/Image.js", "src/shapes/Polygon.js", "src/shapes/Text.js", "src/shapes/Line.js", "src/shapes/Spline.js", "src/shapes/Blob.js", "src/shapes/Sprite.js",
|
||||
"src/plugins/Path.js", "src/plugins/TextPath.js", "src/plugins/RegularPolygon.js", "src/plugins/Star.js", "src/plugins/Label.js"
|
||||
|
@@ -327,14 +327,14 @@
|
||||
Kinetic.Filters = Kinetic.Filters || {};
|
||||
|
||||
/**
|
||||
* Gauss Filter
|
||||
* Blur Filter
|
||||
* @function
|
||||
* @memberOf Kinetic.Filters
|
||||
* @param {Object} imageData
|
||||
* @param {Object} config
|
||||
* @param {Integer} config.radius
|
||||
*/
|
||||
Kinetic.Filters.Gauss = function(imageData, config) {
|
||||
Kinetic.Filters.Blur = function(imageData, config) {
|
||||
var radius = config.radius;
|
||||
|
||||
radius |= 0;
|
@@ -1,5 +1,5 @@
|
||||
Test.Modules.LABEL = {
|
||||
'*add label': function(containerId) {
|
||||
'add label': function(containerId) {
|
||||
var stage = new Kinetic.Stage({
|
||||
container: containerId,
|
||||
width: 578,
|
||||
|
@@ -319,7 +319,7 @@ Test.Modules.IMAGE = {
|
||||
test(darth.getWidth() === 438, 'image width should be 438');
|
||||
test(darth.getHeight() === 300, 'image height should be 300');
|
||||
|
||||
darth.applyFilter(Kinetic.Filters.Gauss, {
|
||||
darth.applyFilter(Kinetic.Filters.Blur, {
|
||||
radius: 10
|
||||
}, function() {
|
||||
layer.draw();
|
||||
|
Reference in New Issue
Block a user