You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ha...@apache.org on 2018/09/05 11:26:36 UTC
[royale-asjs] branch feature/new_merge updated (c3231e7 -> 152261a)
This is an automated email from the ASF dual-hosted git repository.
harbs pushed a change to branch feature/new_merge
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git.
from c3231e7 make Jewel Image use cursor pointer if MouseEvent is configured
new b2afcab ColorMatrixFilterElement now determines the color of the filter instead if masking it. It should probably be renamed to reflect this at some point.
new 152261a Add some flexibility in order of stacked filters.
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../royale/org/apache/royale/svg/ColorMatrixFilterElement.as | 2 +-
.../src/main/royale/org/apache/royale/svg/DropShadowFilter.as | 11 +++++++++++
.../src/main/royale/org/apache/royale/svg/IChainableFilter.as | 10 ++++++++++
.../main/royale/org/apache/royale/svg/SuperimposeFilter.as | 8 +++++++-
4 files changed, 29 insertions(+), 2 deletions(-)
[royale-asjs] 01/02: ColorMatrixFilterElement now determines the
color of the filter instead if masking it. It should probably be renamed to
reflect this at some point.
Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
harbs pushed a commit to branch feature/new_merge
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit b2afcabaab272779c573a54d28d3c5c95fd5ddd5
Author: DESKTOP-RH4S838\Yishay <yi...@hotmail.com>
AuthorDate: Wed Sep 5 12:18:25 2018 +0300
ColorMatrixFilterElement now determines the color of the filter
instead if masking it. It should probably be renamed to reflect this at
some point.
---
.../src/main/royale/org/apache/royale/svg/ColorMatrixFilterElement.as | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/frameworks/projects/Graphics/src/main/royale/org/apache/royale/svg/ColorMatrixFilterElement.as b/frameworks/projects/Graphics/src/main/royale/org/apache/royale/svg/ColorMatrixFilterElement.as
index 6f2c55f..489b91b 100644
--- a/frameworks/projects/Graphics/src/main/royale/org/apache/royale/svg/ColorMatrixFilterElement.as
+++ b/frameworks/projects/Graphics/src/main/royale/org/apache/royale/svg/ColorMatrixFilterElement.as
@@ -54,7 +54,7 @@ package org.apache.royale.svg
COMPILE::JS
{
super.build();
- var matrixValues:String = red + " 0 0 0 0 0 " + green + " 0 0 0 0 0 " + blue + " 0 0 0 0 0 " + opacity + " 0";
+ var matrixValues:String = "0 0 0 0 " + red + " 0 0 0 0 " + green + " 0 0 0 0 " + blue + " 0 0 0 " + opacity + " 0";
filterElement.setAttribute("values", matrixValues);
}
}
[royale-asjs] 02/02: Add some flexibility in order of stacked
filters.
Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
harbs pushed a commit to branch feature/new_merge
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit 152261a2e2dcbd105bed4cb1d4d69b73c3cb4dc4
Author: DESKTOP-RH4S838\Yishay <yi...@hotmail.com>
AuthorDate: Wed Sep 5 12:20:15 2018 +0300
Add some flexibility in order of stacked filters.
---
.../src/main/royale/org/apache/royale/svg/DropShadowFilter.as | 11 +++++++++++
.../src/main/royale/org/apache/royale/svg/IChainableFilter.as | 10 ++++++++++
.../main/royale/org/apache/royale/svg/SuperimposeFilter.as | 8 +++++++-
3 files changed, 28 insertions(+), 1 deletion(-)
diff --git a/frameworks/projects/Graphics/src/main/royale/org/apache/royale/svg/DropShadowFilter.as b/frameworks/projects/Graphics/src/main/royale/org/apache/royale/svg/DropShadowFilter.as
index d841c08..b005157 100644
--- a/frameworks/projects/Graphics/src/main/royale/org/apache/royale/svg/DropShadowFilter.as
+++ b/frameworks/projects/Graphics/src/main/royale/org/apache/royale/svg/DropShadowFilter.as
@@ -36,6 +36,7 @@ package org.apache.royale.svg
*/
public class DropShadowFilter extends Filter implements IChainableFilter
{
+ private var _isNice:Boolean;
private var _dx:Number;
private var _dy:Number;
private var _stdDeviation:Number;
@@ -326,6 +327,16 @@ package org.apache.royale.svg
{
_knockout = value;
}
+
+ public function get isNice():Boolean
+ {
+ return _isNice;
+ }
+
+ public function set isNice(value:Boolean):void
+ {
+ _isNice = value;
+ }
}
}
diff --git a/frameworks/projects/Graphics/src/main/royale/org/apache/royale/svg/IChainableFilter.as b/frameworks/projects/Graphics/src/main/royale/org/apache/royale/svg/IChainableFilter.as
index 29f2b56..ab3030a 100644
--- a/frameworks/projects/Graphics/src/main/royale/org/apache/royale/svg/IChainableFilter.as
+++ b/frameworks/projects/Graphics/src/main/royale/org/apache/royale/svg/IChainableFilter.as
@@ -69,6 +69,16 @@ package org.apache.royale.svg
* @productversion Royale 0.9.3
*/
function set source(value:String):void
+
+ /**
+ * Nice filters are generally less visible (e.g. behind the source graphic).
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion Royale 0.9.3
+ */
+ function get isNice():Boolean
}
}
\ No newline at end of file
diff --git a/frameworks/projects/Graphics/src/main/royale/org/apache/royale/svg/SuperimposeFilter.as b/frameworks/projects/Graphics/src/main/royale/org/apache/royale/svg/SuperimposeFilter.as
index 3b92e49..2d23065 100644
--- a/frameworks/projects/Graphics/src/main/royale/org/apache/royale/svg/SuperimposeFilter.as
+++ b/frameworks/projects/Graphics/src/main/royale/org/apache/royale/svg/SuperimposeFilter.as
@@ -43,7 +43,13 @@ package org.apache.royale.svg
var chainable:IChainableFilter = children[i] as IChainableFilter;
var resultName:String = "chainableResult" + i;
chainable.result = resultName;
- results.push(resultName);
+ if (chainable.isNice)
+ {
+ results.unshift(resultName);
+ } else
+ {
+ results.push(resultName);
+ }
chainable.build();
addArray(newChildren, chainable.children);
}