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

docs(blendimage_filter.class.js) corrected mode options #7672

Merged
merged 4 commits into from
Feb 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 6 additions & 0 deletions src/filters/blendcolor_filter.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,23 @@
/**
* Color to make the blend operation with. default to a reddish color since black or white
* gives always strong result.
* @type String
* @default
**/
color: '#F95C63',

/**
* Blend mode for the filter: one of multiply, add, diff, screen, subtract,
* darken, lighten, overlay, exclusion, tint.
* @type String
* @default
**/
mode: 'multiply',

/**
* alpha value. represent the strength of the blend color operation.
* @type Number
* @default
**/
alpha: 1,

Expand Down
5 changes: 3 additions & 2 deletions src/filters/blendimage_filter.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@
image: null,

/**
* Blend mode for the filter: one of multiply, add, diff, screen, subtract,
* darken, lighten, overlay, exclusion, tint.
* Blend mode for the filter (one of "multiply", "mask")
* @type String
* @default
**/
mode: 'multiply',

Expand Down
2 changes: 2 additions & 0 deletions src/filters/blur_filter.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@
* blur value, in percentage of image dimensions.
* specific to keep the image blur constant at different resolutions
* range between 0 and 1.
* @type Number
* @default
*/
blur: 0,

Expand Down
4 changes: 3 additions & 1 deletion src/filters/colormatrix_filter.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,10 @@
mainParameter: 'matrix',

/**
* Lock the colormatrix on the color part, skipping alpha, manly for non webgl scenario
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skipping alpha manly.

image

* Lock the colormatrix on the color part, skipping alpha, mainly for non webgl scenario
* to save some calculation
* @type Boolean
* @default true
*/
colorsOnly: true,

Expand Down