[MAVEN-BUILD] Royale-asjs - Build # 2820 - Still Failing
The Apache Jenkins build system has built Royale-asjs (build #2820) Status: Still Failing Check console output at https://builds.apache.org/job/Royale-asjs/2820/ to view the results.
[royale-asjs] branch develop updated: jewel-basiclayout: fix swf
This is an automated email from the ASF dual-hosted git repository. carlosrovira pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git The following commit(s) were added to refs/heads/develop by this push: new b9f9f9d jewel-basiclayout: fix swf b9f9f9d is described below commit b9f9f9dfb6c1e4e30f121f7ab09cd532d6d3eaaf Author: Carlos Rovira AuthorDate: Sun Mar 15 23:00:05 2020 +0100 jewel-basiclayout: fix swf --- .../royale/org/apache/royale/jewel/beads/layouts/BasicLayout.as | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/BasicLayout.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/BasicLayout.as index e34e244..3f4bb6b 100644 --- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/BasicLayout.as +++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/BasicLayout.as @@ -20,8 +20,12 @@ package org.apache.royale.jewel.beads.layouts { COMPILE::JS { import org.apache.royale.core.UIBase; - import org.apache.royale.core.ILayoutView; } + COMPILE::SWF { + import org.apache.royale.core.IUIBase; + import org.apache.royale.core.ILayoutChild; + } + import org.apache.royale.core.ILayoutView; import org.apache.royale.events.Event; /**
[royale-asjs] branch develop updated: core: add transformValueFromRange function
This is an automated email from the ASF dual-hosted git repository. carlosrovira pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git The following commit(s) were added to refs/heads/develop by this push: new 1b98eee core: add transformValueFromRange function 1b98eee is described below commit 1b98eeeb5559af05d33c92a59187dc48dc98aa97 Author: Carlos Rovira AuthorDate: Sun Mar 15 22:50:03 2020 +0100 core: add transformValueFromRange function --- .../projects/Core/src/main/royale/CoreClasses.as | 1 + .../apache/royale/utils/transformValueFromRange.as | 42 ++ 2 files changed, 43 insertions(+) diff --git a/frameworks/projects/Core/src/main/royale/CoreClasses.as b/frameworks/projects/Core/src/main/royale/CoreClasses.as index 6d5d44c..caf1467 100644 --- a/frameworks/projects/Core/src/main/royale/CoreClasses.as +++ b/frameworks/projects/Core/src/main/royale/CoreClasses.as @@ -311,6 +311,7 @@ internal class CoreClasses import org.apache.royale.utils.HSV; HSV; import org.apache.royale.utils.rgbToHsv; rgbToHsv; import org.apache.royale.utils.hsvToHex; hsvToHex; + import org.apache.royale.utils.transformValueFromRange; transformValueFromRange; import org.apache.royale.utils.array.rangeCheck; rangeCheck; diff --git a/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/transformValueFromRange.as b/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/transformValueFromRange.as new file mode 100644 index 000..90c9c2c --- /dev/null +++ b/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/transformValueFromRange.as @@ -0,0 +1,42 @@ + +// +// Licensed to the Apache Software Foundation (ASF) under one or more +// contributor license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright ownership. +// The ASF licenses this file to You under the Apache License, Version 2.0 +// (the "License"); you may not use this file except in compliance with +// the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +package org.apache.royale.utils +{ + /** +* convert a given a value number from a range, convert to other range and return the new value +* between the new range. +* +* @langversion 3.0 +* @playerversion Flash 10.2 +* @playerversion AIR 2.6 +* @productversion Royale 0.9.7 +*/ +public function transformValueFromRange(oldValue:Number, oldMin:Number, oldMax:Number, newMin:Number, newMax:Number):Number + { + var newValue:Number; + var oldRange:Number = oldMax - oldMin; + if (oldRange == 0) { + newValue = newMin; + } else { + var NewRange:Number = newMax - newMin; + newValue = (((oldValue - oldMin) * NewRange) / oldRange) + newMin + } + return newValue + } +}
[royale-asjs] branch develop updated: jewel-layouts: -Make StyledLayoutBase implement ILayoutStyleProperties instead of implement its own method -Make BasicLayout and the rest of layouts dispathc "siz
This is an automated email from the ASF dual-hosted git repository. carlosrovira pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git The following commit(s) were added to refs/heads/develop by this push: new 391bf9a jewel-layouts: -Make StyledLayoutBase implement ILayoutStyleProperties instead of implement its own method -Make BasicLayout and the rest of layouts dispathc "sizeChanged" instead of layoutNeeded -End to implement the dispatch of events in the rest of jewel layouts and update to the ILayoutStyleProperties 391bf9a is described below commit 391bf9a10238ea79c87bd1d05ea6c37bae084ad4 Author: Carlos Rovira AuthorDate: Sun Mar 15 22:41:48 2020 +0100 jewel-layouts: -Make StyledLayoutBase implement ILayoutStyleProperties instead of implement its own method -Make BasicLayout and the rest of layouts dispathc "sizeChanged" instead of layoutNeeded -End to implement the dispatch of events in the rest of jewel layouts and update to the ILayoutStyleProperties --- .../royale/jewel/beads/layouts/BasicLayout.as | 20 ++--- .../royale/jewel/beads/layouts/GridCellLayout.as | 2 ++ .../royale/jewel/beads/layouts/GridLayout.as | 1 + .../beads/layouts/HorizontalCenteredLayout.as | 35 -- .../jewel/beads/layouts/HorizontalFlowLayout.as| 35 -- .../royale/jewel/beads/layouts/HorizontalLayout.as | 12 ++-- .../jewel/beads/layouts/SimpleHorizontalLayout.as | 2 +- .../jewel/beads/layouts/SimpleVerticalLayout.as| 2 +- .../royale/jewel/beads/layouts/StyledLayoutBase.as | 18 --- .../jewel/beads/layouts/VerticalCenteredLayout.as | 35 -- .../jewel/beads/layouts/VerticalFlowLayout.as | 35 -- .../royale/jewel/beads/layouts/VerticalLayout.as | 12 ++-- 12 files changed, 53 insertions(+), 156 deletions(-) diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/BasicLayout.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/BasicLayout.as index e475078..e34e244 100644 --- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/BasicLayout.as +++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/BasicLayout.as @@ -19,11 +19,9 @@ package org.apache.royale.jewel.beads.layouts { COMPILE::JS { - import org.apache.royale.core.UIBase; -} - import org.apache.royale.core.ILayoutChild; + import org.apache.royale.core.UIBase; import org.apache.royale.core.ILayoutView; - import org.apache.royale.core.IUIBase; +} import org.apache.royale.events.Event; /** @@ -219,6 +217,20 @@ package org.apache.royale.jewel.beads.layouts * position: absolute * } */ + + // We just need to make chids resize themselves (through `sizeChanged` event) + var contentView:ILayoutView = layoutView; + var n:int = contentView.numElements; + var child:UIBase; + + if (n == 0) return false; + + for(var i:int=0; i < n; i++) { + child = contentView.getElementAt(i) as UIBase; + if (!child) + continue; + child.dispatchEvent('sizeChanged'); + } return true; } diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/GridCellLayout.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/GridCellLayout.as index cb8c852..2c23d1a 100644 --- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/GridCellLayout.as +++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/GridCellLayout.as @@ -615,6 +615,8 @@ package org.apache.royale.jewel.beads.layouts COMPILE::JS { + super.layout(); + return true; } } diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/GridLayout.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/GridLayout.as index 2c1c380..4b46483 100644 --- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/GridLayout.as +++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/GridLayout.as @@ -204,6 +204,7 @@
[royale-asjs] branch develop updated: basic-styleduibase: conform to latest changes on UIBase setWidthAndHeight
This is an automated email from the ASF dual-hosted git repository. carlosrovira pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git The following commit(s) were added to refs/heads/develop by this push: new 81da914 basic-styleduibase: conform to latest changes on UIBase setWidthAndHeight 81da914 is described below commit 81da9144a45c37eb91b2b45c73dbeceb199e1580 Author: Carlos Rovira AuthorDate: Sun Mar 15 22:37:58 2020 +0100 basic-styleduibase: conform to latest changes on UIBase setWidthAndHeight --- .../royale/org/apache/royale/core/StyledUIBase.as | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/StyledUIBase.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/StyledUIBase.as index 9af38f5..cc6bc01 100644 --- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/StyledUIBase.as +++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/StyledUIBase.as @@ -310,27 +310,30 @@ package org.apache.royale.core */ override public function setWidthAndHeight(newWidth:Number, newHeight:Number, noEvent:Boolean = false):void { -if (_width !== newWidth) +var widthChanged:Boolean = _width !== newWidth; + var heightChanged:Boolean = _height !== newHeight; +if (widthChanged) { _width = newWidth; COMPILE::JS { this.positioner.style.width = isNaN(newWidth) ? null : newWidth.toString() + 'px'; } -if (!noEvent) -sendEvent(this,"widthChanged"); +if (!noEvent && !heightChanged) +sendEvent(this, "widthChanged"); } -if (_height !== newHeight) +if (heightChanged) { _height = newHeight; COMPILE::JS { this.positioner.style.height = isNaN(newHeight) ? null : newHeight.toString() + 'px'; } -if (!noEvent) -sendEvent(this,"heightChanged"); -} -sendEvent(this,"sizeChanged"); +if (!noEvent && !widthChanged) +sendEvent(this, "heightChanged"); +} +if (widthChanged && heightChanged) +sendEvent(this, "sizeChanged"); } /**
[MAVEN-BUILD] Royale-asjs - Build # 2819 - Still Failing
The Apache Jenkins build system has built Royale-asjs (build #2819) Status: Still Failing Check console output at https://builds.apache.org/job/Royale-asjs/2819/ to view the results.
[royale-asjs] branch develop updated: svg: latest commit was adding to @media -royale-swf. Now the fixs works
This is an automated email from the ASF dual-hosted git repository. carlosrovira pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git The following commit(s) were added to refs/heads/develop by this push: new d378677 svg: latest commit was adding to @media -royale-swf. Now the fixs works d378677 is described below commit d378677b4de095697228db082bb07267f64487ad Author: Carlos Rovira AuthorDate: Sun Mar 15 19:10:22 2020 +0100 svg: latest commit was adding to @media -royale-swf. Now the fixs works --- .../projects/Basic/src/main/resources/defaults.css | 27 -- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/frameworks/projects/Basic/src/main/resources/defaults.css b/frameworks/projects/Basic/src/main/resources/defaults.css index 6b825ab..1fc23b6 100644 --- a/frameworks/projects/Basic/src/main/resources/defaults.css +++ b/frameworks/projects/Basic/src/main/resources/defaults.css @@ -1197,18 +1197,21 @@ global iMeasurementBead: ClassReference("org.apache.royale.html.beads.TextButtonMeasurementBead"); } - svg|Image - { - vertical-align: top; - IBeadModel: ClassReference("org.apache.royale.html.beads.models.ImageModel"); - IBeadView: ClassReference("org.apache.royale.svg.beads.ImageView"); - } + +} - svg|BinaryImage - { - IBeadModel: ClassReference("org.apache.royale.html.beads.models.BinaryImageModel"); - IBeadView: ClassReference("org.apache.royale.svg.beads.ImageView"); - IBinaryImageLoader: ClassReference("org.apache.royale.html.beads.BinaryImageLoader"); - } +/* SVG */ +svg|Image +{ + vertical-align: top; + IBeadModel: ClassReference("org.apache.royale.html.beads.models.ImageModel"); + IBeadView: ClassReference("org.apache.royale.svg.beads.ImageView"); } + +svg|BinaryImage +{ + IBeadModel: ClassReference("org.apache.royale.html.beads.models.BinaryImageModel"); + IBeadView: ClassReference("org.apache.royale.svg.beads.ImageView"); + IBinaryImageLoader: ClassReference("org.apache.royale.html.beads.BinaryImageLoader"); +} \ No newline at end of file
[royale-asjs] branch develop updated: blog example 14: now is possible to remove svg|Image css
This is an automated email from the ASF dual-hosted git repository. carlosrovira pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git The following commit(s) were added to refs/heads/develop by this push: new 0c53d3a blog example 14: now is possible to remove svg|Image css 0c53d3a is described below commit 0c53d3a7bf7f496496e234ceeaa427ccf776786e Author: Carlos Rovira AuthorDate: Sun Mar 15 19:10:56 2020 +0100 blog example 14: now is possible to remove svg|Image css --- .../src/main/royale/BE0014_Working_with_Graphics.mxml | 8 1 file changed, 8 deletions(-) diff --git a/examples/blog/BE0014_Working_with_Graphics/src/main/royale/BE0014_Working_with_Graphics.mxml b/examples/blog/BE0014_Working_with_Graphics/src/main/royale/BE0014_Working_with_Graphics.mxml index a809a96..ebb46d5 100644 --- a/examples/blog/BE0014_Working_with_Graphics/src/main/royale/BE0014_Working_with_Graphics.mxml +++ b/examples/blog/BE0014_Working_with_Graphics/src/main/royale/BE0014_Working_with_Graphics.mxml @@ -74,19 +74,11 @@ @namespace "http://www.w3.org/1999/xhtml;; -@namespace svg "library://ns.apache.org/royale/svg"; .bgshape { background: #15CF12; } - -svg|Image -{ -vertical-align: top; -IBeadModel: ClassReference("org.apache.royale.html.beads.models.ImageModel"); -IBeadView: ClassReference("org.apache.royale.svg.beads.ImageView"); -} \ No newline at end of file
[royale-asjs] branch develop updated: finish DateBase overrides. Should fix #757
This is an automated email from the ASF dual-hosted git repository. aharui pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git The following commit(s) were added to refs/heads/develop by this push: new 441844b finish DateBase overrides. Should fix #757 441844b is described below commit 441844b60e69e6b45deaf345a8d2d2eb2ed14f9b Author: Alex Harui AuthorDate: Sun Mar 15 10:43:39 2020 -0700 finish DateBase overrides. Should fix #757 --- .../projects/MXRoyale/src/main/royale/mx/formatters/DateBase.as | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/formatters/DateBase.as b/frameworks/projects/MXRoyale/src/main/royale/mx/formatters/DateBase.as index bf6478e..5865bf4 100644 --- a/frameworks/projects/MXRoyale/src/main/royale/mx/formatters/DateBase.as +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/formatters/DateBase.as @@ -104,7 +104,7 @@ public class DateBase /** * @private */ -private static var dayNamesLongOverride:Array; /* of String */ +private static var dayNamesLongOverride:Array /* of String */ = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]; /** * Long format of day names. @@ -209,7 +209,7 @@ public class DateBase /** * @private */ -private static var monthNamesLongOverride:Array; /* of String */ +private static var monthNamesLongOverride:Array /* of String */ = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; /** * Long format of month names. @@ -338,7 +338,7 @@ public class DateBase /** * @private */ -private static var timeOfDayOverride:Array; /* of String */ +private static var timeOfDayOverride:Array = /* of String */["AM", "PM"]; /** * Time of day names.
[royale-asjs] branch develop updated: svg: transfer svg css from Graphics to Basic of components that are located in Basic instead of Graphics
This is an automated email from the ASF dual-hosted git repository. carlosrovira pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git The following commit(s) were added to refs/heads/develop by this push: new 09aa1ac svg: transfer svg css from Graphics to Basic of components that are located in Basic instead of Graphics 09aa1ac is described below commit 09aa1ac93e704d24ad8d80dd9ad251ce443f49de Author: Carlos Rovira AuthorDate: Sun Mar 15 18:38:56 2020 +0100 svg: transfer svg css from Graphics to Basic of components that are located in Basic instead of Graphics --- .../projects/Basic/src/main/resources/defaults.css | 14 ++ .../projects/Graphics/src/main/resources/defaults.css | 17 - 2 files changed, 14 insertions(+), 17 deletions(-) diff --git a/frameworks/projects/Basic/src/main/resources/defaults.css b/frameworks/projects/Basic/src/main/resources/defaults.css index 9903b7d..6b825ab 100644 --- a/frameworks/projects/Basic/src/main/resources/defaults.css +++ b/frameworks/projects/Basic/src/main/resources/defaults.css @@ -1197,4 +1197,18 @@ global iMeasurementBead: ClassReference("org.apache.royale.html.beads.TextButtonMeasurementBead"); } + svg|Image + { + vertical-align: top; + IBeadModel: ClassReference("org.apache.royale.html.beads.models.ImageModel"); + IBeadView: ClassReference("org.apache.royale.svg.beads.ImageView"); + } + + svg|BinaryImage + { + IBeadModel: ClassReference("org.apache.royale.html.beads.models.BinaryImageModel"); + IBeadView: ClassReference("org.apache.royale.svg.beads.ImageView"); + IBinaryImageLoader: ClassReference("org.apache.royale.html.beads.BinaryImageLoader"); + } + } diff --git a/frameworks/projects/Graphics/src/main/resources/defaults.css b/frameworks/projects/Graphics/src/main/resources/defaults.css index 6bc0b1b..b697f70 100644 --- a/frameworks/projects/Graphics/src/main/resources/defaults.css +++ b/frameworks/projects/Graphics/src/main/resources/defaults.css @@ -16,25 +16,8 @@ * limitations under the License. * */ - -@namespace "library://ns.apache.org/royale/basic"; @namespace svg "library://ns.apache.org/royale/svg"; - -svg|Image -{ - vertical-align: top; - IBeadModel: ClassReference("org.apache.royale.html.beads.models.ImageModel"); - IBeadView: ClassReference("org.apache.royale.svg.beads.ImageView"); -} - -svg|BinaryImage -{ -IBeadModel: ClassReference("org.apache.royale.html.beads.models.BinaryImageModel"); - IBeadView: ClassReference("org.apache.royale.svg.beads.ImageView"); - IBinaryImageLoader: ClassReference("org.apache.royale.html.beads.BinaryImageLoader"); -} - svg|DropShadowFilter { Filter: ClassReference("org.apache.royale.svg.Filter");
[royale-asjs] branch develop updated: graphics-pom.xml: remove especific download plugin version and add defaults.css file to artifact
This is an automated email from the ASF dual-hosted git repository. carlosrovira pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git The following commit(s) were added to refs/heads/develop by this push: new ef7b8e6 graphics-pom.xml: remove especific download plugin version and add defaults.css file to artifact ef7b8e6 is described below commit ef7b8e692077b9ce30356f791d2e63b67fdd48e8 Author: Carlos Rovira AuthorDate: Sun Mar 15 18:36:50 2020 +0100 graphics-pom.xml: remove especific download plugin version and add defaults.css file to artifact --- frameworks/projects/Graphics/pom.xml | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frameworks/projects/Graphics/pom.xml b/frameworks/projects/Graphics/pom.xml index ef633f3..ec9f054 100644 --- a/frameworks/projects/Graphics/pom.xml +++ b/frameworks/projects/Graphics/pom.xml @@ -56,7 +56,6 @@ com.googlecode.maven-download-plugin download-maven-plugin -1.2.1 get-pixelbender-artifacts @@ -109,6 +108,13 @@ GraphicsClasses + + + defaults.css + ../src/main/resources/defaults.css + + + true true ${royale.skipAS} ${project.compiler.options};-compiler.byte-array-embed-class=org.apache.royale.core.ByteArrayAsset
[royale-asjs] 03/04: Core, Basic, MXRoyale, SparkRoyale with beforeLayout returning a boolean so we can be smarter about skipping some layout passes
This is an automated email from the ASF dual-hosted git repository. aharui pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git commit c3a3d4f7faf1e1f9a9f8105d27b86f05e5e7a446 Author: Alex Harui AuthorDate: Sat Mar 14 11:51:58 2020 -0700 Core,Basic,MXRoyale,SparkRoyale with beforeLayout returning a boolean so we can be smarter about skipping some layout passes --- .../src/main/royale/org/apache/royale/html/DividedContainer.as| 4 ++-- .../src/main/royale/org/apache/royale/html/beads/ContainerView.as | 4 +++- .../src/main/royale/org/apache/royale/html/beads/GroupView.as | 3 ++- .../org/apache/royale/html/supportClasses/MXMLItemRenderer.as | 4 ++-- .../Core/src/main/royale/org/apache/royale/core/ILayoutHost.as| 4 +++- .../Core/src/main/royale/org/apache/royale/core/LayoutBase.as | 8 +--- .../src/main/royale/spark/components/beads/GroupView.as | 3 ++- .../main/royale/spark/components/beads/SkinnableContainerView.as | 3 ++- .../src/main/royale/spark/components/beads/SparkContainerView.as | 3 ++- 9 files changed, 23 insertions(+), 13 deletions(-) diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/DividedContainer.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/DividedContainer.as index 1faddc9..cd5b26d 100644 --- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/DividedContainer.as +++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/DividedContainer.as @@ -181,9 +181,9 @@ package org.apache.royale.html /** * @private */ - public function beforeLayout():void + public function beforeLayout():Boolean { - // does nothing + return true; } /** diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/ContainerView.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/ContainerView.as index 0d242a6..4520587 100644 --- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/ContainerView.as +++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/ContainerView.as @@ -209,7 +209,7 @@ package org.apache.royale.html.beads * @productversion Royale 0.8 * @royaleignorecoercion org.apache.royale.core.IBorderPaddingMarginValuesImpl */ - override public function beforeLayout():void + override public function beforeLayout():Boolean { var host:ILayoutChild = this.host as ILayoutChild; var vm:IViewportModel = viewportModel; @@ -246,6 +246,8 @@ package org.apache.royale.html.beads viewport.layoutViewportBeforeContentLayout( hostWidth - vm.borderMetrics.left - vm.borderMetrics.right, hostHeight - vm.borderMetrics.top - vm.borderMetrics.bottom); + + return true; } /** diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/GroupView.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/GroupView.as index ea81695..1bb5ddb 100644 --- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/GroupView.as +++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/GroupView.as @@ -202,9 +202,10 @@ package org.apache.royale.html.beads * @playerversion AIR 2.6 * @productversion Royale 0.8 */ - public function beforeLayout():void + public function beforeLayout():Boolean { // This has no use for Group but is here so a subclass can override it. + return true; } /** diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/supportClasses/MXMLItemRenderer.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/supportClasses/MXMLItemRenderer.as index 5457159..ed1012d 100644 --- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/supportClasses/MXMLItemRenderer.as +++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/supportClasses/MXMLItemRenderer.as @@ -78,9 +78,9 @@ package org.apache.royale.html.supportClasses } } - public function beforeLayout():void + public function beforeLayout():Boolean { - + return true; } public function afterLayout():void diff --git
[royale-asjs] branch develop updated (0caa2f6 -> 506bfe6)
This is an automated email from the ASF dual-hosted git repository. aharui pushed a change to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git. from 0caa2f6 blog example 14: add to maven build new f67dc70 this was adding a second Layout new d3e27d6 only send one event from setWidthAndHeight new c3a3d4f Core,Basic,MXRoyale,SparkRoyale with beforeLayout returning a boolean so we can be smarter about skipping some layout passes new 506bfe6 optimize for fewer DG layout passes The 4 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: .../main/royale/org/apache/royale/core/UIBase.as | 13 ++-- .../org/apache/royale/html/DividedContainer.as | 4 +- .../org/apache/royale/html/beads/ContainerView.as | 4 +- .../org/apache/royale/html/beads/DataGridView.as | 45 -- .../org/apache/royale/html/beads/GroupView.as | 3 +- .../royale/html/beads/layouts/DataGridLayout.as| 10 +++- .../royale/html/supportClasses/MXMLItemRenderer.as | 4 +- .../org/apache/royale/charts/beads/ChartView.as| 3 +- .../royale/org/apache/royale/core/ILayoutHost.as | 4 +- .../royale/org/apache/royale/core/LayoutBase.as| 8 ++- .../org/apache/royale/utils/MockLayoutHost.as | 4 +- .../org/apache/royale/utils/MockLayoutParent.as| 3 +- .../MXRoyale/src/main/resources/defaults.css | 7 ++- .../MXRoyale/src/main/royale/MXRoyaleClasses.as| 3 + .../beads/AdvancedDataGridHeaderLayout.as | 18 +- .../PanelInternalContainer.as} | 11 ++-- ...rmItemView.as => PanelInternalContainerView.as} | 70 ++ .../main/royale/mx/containers/beads/PanelView.as | 34 ++- .../AdvancedDataGridButtonBar.as | 7 --- .../royale/spark/components/beads/GroupView.as | 3 +- .../components/beads/SkinnableContainerView.as | 3 +- .../spark/components/beads/SparkContainerView.as | 3 +- 22 files changed, 193 insertions(+), 71 deletions(-) copy frameworks/projects/MXRoyale/src/main/royale/mx/containers/{PanelTitleBar.as => beads/PanelInternalContainer.as} (84%) copy frameworks/projects/MXRoyale/src/main/royale/mx/containers/beads/{FormItemView.as => PanelInternalContainerView.as} (54%)
[royale-asjs] 02/04: only send one event from setWidthAndHeight
This is an automated email from the ASF dual-hosted git repository. aharui pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git commit d3e27d65344ad27912000e1e3205b96243d8828e Author: Alex Harui AuthorDate: Sat Mar 14 11:16:51 2020 -0700 only send one event from setWidthAndHeight --- .../Basic/src/main/royale/org/apache/royale/core/UIBase.as | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/UIBase.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/UIBase.as index 401c3ea..af47753 100644 --- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/UIBase.as +++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/UIBase.as @@ -623,27 +623,30 @@ package org.apache.royale.core */ public function setWidthAndHeight(newWidth:Number, newHeight:Number, noEvent:Boolean = false):void { -if (_width !== newWidth) + var widthChanged:Boolean = _width !== newWidth; + var heightChanged:Boolean = _height !== newHeight; +if (widthChanged) { _width = newWidth; COMPILE::JS { this.positioner.style.width = newWidth.toString() + 'px'; } -if (!noEvent) +if (!noEvent && !heightChanged) sendEvent(this,"widthChanged"); } -if (_height !== newHeight) +if (heightChanged) { _height = newHeight; COMPILE::JS { this.positioner.style.height = newHeight.toString() + 'px'; } -if (!noEvent) +if (!noEvent && !widthChanged) sendEvent(this,"heightChanged"); } -sendEvent(this,"sizeChanged"); + if (widthChanged && heightChanged) + sendEvent(this,"sizeChanged"); } /**
[royale-asjs] 01/04: this was adding a second Layout
This is an automated email from the ASF dual-hosted git repository. aharui pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git commit f67dc70aecb5fd027f2d34086893b3f15136eb49 Author: Alex Harui AuthorDate: Sat Mar 14 11:16:28 2020 -0700 this was adding a second Layout --- frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as| 1 + .../controls/advancedDataGridClasses/AdvancedDataGridButtonBar.as | 7 --- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as b/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as index f100ec2..69857b8 100644 --- a/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as +++ b/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as @@ -51,6 +51,7 @@ internal class MXRoyaleClasses import mx.events.MoveEvent; MoveEvent; import mx.events.ValidationResultEvent; ValidationResultEvent; import mx.containers.beads.AdvancedDataGridListVirtualListView; AdvancedDataGridListVirtualListView; + import mx.containers.beads.AdvancedDataGridHeaderLayout; AdvancedDataGridHeaderLayout; import mx.containers.beads.ApplicationLayout; ApplicationLayout; import mx.containers.beads.BoxLayout; BoxLayout; import mx.containers.beads.DividedBoxLayout; DividedBoxLayout; diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/AdvancedDataGridButtonBar.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/AdvancedDataGridButtonBar.as index 758ca4d..25cb843 100644 --- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/AdvancedDataGridButtonBar.as +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/AdvancedDataGridButtonBar.as @@ -42,13 +42,6 @@ package mx.controls.advancedDataGridClasses } -override public function addedToParent():void -{ -var layout:AdvancedDataGridHeaderLayout = new AdvancedDataGridHeaderLayout(); -addBead(layout); -super.addedToParent(); -} - } }
[royale-asjs] 04/04: optimize for fewer DG layout passes
This is an automated email from the ASF dual-hosted git repository. aharui pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git commit 506bfe69a2b134fe757ccca77b6caef693b32c85 Author: Alex Harui AuthorDate: Sun Mar 15 10:19:47 2020 -0700 optimize for fewer DG layout passes --- .../org/apache/royale/html/beads/DataGridView.as | 45 - .../royale/html/beads/layouts/DataGridLayout.as| 10 +- .../org/apache/royale/charts/beads/ChartView.as| 3 +- .../org/apache/royale/utils/MockLayoutHost.as | 4 +- .../org/apache/royale/utils/MockLayoutParent.as| 3 +- .../MXRoyale/src/main/resources/defaults.css | 7 +- .../MXRoyale/src/main/royale/MXRoyaleClasses.as| 2 + .../beads/AdvancedDataGridHeaderLayout.as | 18 +++- .../mx/containers/beads/PanelInternalContainer.as} | 52 ++- .../containers/beads/PanelInternalContainerView.as | 101 + .../main/royale/mx/containers/beads/PanelView.as | 34 ++- 11 files changed, 241 insertions(+), 38 deletions(-) diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/DataGridView.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/DataGridView.as index 9ee56e7..ff5120f 100644 --- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/DataGridView.as +++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/DataGridView.as @@ -28,6 +28,7 @@ package org.apache.royale.html.beads import org.apache.royale.core.IDataGridModel; import org.apache.royale.core.IDataGridPresentationModel; import org.apache.royale.core.IParent; + import org.apache.royale.core.IStrand; import org.apache.royale.core.IUIBase; import org.apache.royale.core.ValuesManager; import org.apache.royale.debugging.assert; @@ -67,6 +68,17 @@ package org.apache.royale.html.beads super(); } + /** +* @royaleignorecoercion org.apache.royale.events.IEventDispatcher +*/ + override public function set strand(value:IStrand):void + { + super.strand = value; + host.addEventListener("widthChanged", handleSizeChanges); + host.addEventListener("heightChanged", handleSizeChanges); + host.addEventListener("sizeChanged", handleSizeChanges); + } + private var _header:DataGridButtonBar; private var _listArea:IUIBase; @@ -102,6 +114,8 @@ package org.apache.royale.html.beads handleInitComplete(null); } + private var sawInitComplete:Boolean; + /** * @private * @royaleignorecoercion org.apache.royale.core.IDataGridModel @@ -115,6 +129,8 @@ package org.apache.royale.html.beads */ override protected function handleInitComplete(event:Event):void { + sawInitComplete = event != null; + var host:IDataGrid = _strand as IDataGrid; // see if there is a presentation model already in place. if not, add one. @@ -150,18 +166,21 @@ package org.apache.royale.html.beads handleDataProviderChanged(event); - host.addEventListener("widthChanged", handleSizeChanges); - host.addEventListener("heightChanged", handleSizeChanges); sendStrandEvent(_strand,"dataGridViewCreated"); } + private var sawSizeChanged:Boolean; + /** * @private */ private function handleSizeChanges(event:Event):void { - sendEvent(_header,"layoutChanged"); - sendEvent(_listArea,"layoutChanged"); + sawSizeChanged = true; + if (_header) + sendEvent(_header,"layoutChanged"); + if (_listArea) + sendEvent(_listArea,"layoutChanged"); } /** @@ -273,6 +292,24 @@ package org.apache.royale.html.beads sendStrandEvent(_strand,"layoutNeeded"); } + + /**
[MAVEN-BUILD] Royale-asjs - Build # 2818 - Failure
The Apache Jenkins build system has built Royale-asjs (build #2818) Status: Failure Check console output at https://builds.apache.org/job/Royale-asjs/2818/ to view the results.
[royale-asjs] branch develop updated: blog example 14: add to maven build
This is an automated email from the ASF dual-hosted git repository. carlosrovira pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git The following commit(s) were added to refs/heads/develop by this push: new 0caa2f6 blog example 14: add to maven build 0caa2f6 is described below commit 0caa2f6058a6f67194157dec0a3918e4c1768f5d Author: Carlos Rovira AuthorDate: Sun Mar 15 13:22:48 2020 +0100 blog example 14: add to maven build --- examples/blog/pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/blog/pom.xml b/examples/blog/pom.xml index 60e9100..8e37638 100644 --- a/examples/blog/pom.xml +++ b/examples/blog/pom.xml @@ -46,6 +46,7 @@ BE0011_Loading_external_data_through_HTTPService BE0012_Using_external_javascript_libraries_in_Apache_Royale BE0013_Dividing_an_Apache_Royale_application_with_modules +BE0014_Working_with_Graphics
[royale-asjs] branch develop updated: blog example 14: working with graphics
This is an automated email from the ASF dual-hosted git repository. carlosrovira pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git The following commit(s) were added to refs/heads/develop by this push: new 5203165 blog example 14: working with graphics 5203165 is described below commit 5203165df09c8b3358fad1554eda4df18721ccc1 Author: Carlos Rovira AuthorDate: Sun Mar 15 13:17:14 2020 +0100 blog example 14: working with graphics --- .../BE0014_Working_with_Graphics.as3proj | 117 + .../BE0014_Working_with_Graphics/asconfig.json | 34 ++ examples/blog/BE0014_Working_with_Graphics/pom.xml | 100 ++ .../src/main/resources/assets/bottle-main.svg | 21 .../src/main/resources/assets/bottle-mask.svg | 21 .../src/main/resources/assets/bottle-shade.svg | 25 + .../src/main/resources/bottle.afdesign | Bin 0 -> 5704413 bytes .../resources/jewel-example-index-template.html| 30 ++ .../main/royale/BE0014_Working_with_Graphics.mxml | 92 9 files changed, 440 insertions(+) diff --git a/examples/blog/BE0014_Working_with_Graphics/BE0014_Working_with_Graphics.as3proj b/examples/blog/BE0014_Working_with_Graphics/BE0014_Working_with_Graphics.as3proj new file mode 100644 index 000..150e792 --- /dev/null +++ b/examples/blog/BE0014_Working_with_Graphics/BE0014_Working_with_Graphics.as3proj @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + !-- Other classes to be compiled into your SWF -- + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + null + null + False + + + + + + + + + + + + + + + + + +null +null +null +null + + \ No newline at end of file diff --git a/examples/blog/BE0014_Working_with_Graphics/asconfig.json b/examples/blog/BE0014_Working_with_Graphics/asconfig.json new file mode 100644 index 000..b6e1e15 --- /dev/null +++ b/examples/blog/BE0014_Working_with_Graphics/asconfig.json @@ -0,0 +1,34 @@ + +// +// Licensed to the Apache Software Foundation (ASF) under one or more +// contributor license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright ownership. +// The ASF licenses this file to You under the Apache License, Version 2.0 +// (the "License"); you may not use this file except in compliance with +// the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +{ +"config": "royale", +"compilerOptions": { +"debug": false, +"targets": ["JSRoyale"], +"source-map": true, +"html-template": "src/main/resources/jewel-example-index-template.html", +"theme": "${royalelib}/themes/JewelTheme/src/main/resources/defaults.css" +}, +"copySourcePathAssets": true, +"additionalOptions": "-remove-circulars -js-output-optimization=skipAsCoercions", +"files": +[ +"src/main/royale/BE0014_Working_with_Graphics.mxml" +] +} diff --git a/examples/blog/BE0014_Working_with_Graphics/pom.xml b/examples/blog/BE0014_Working_with_Graphics/pom.xml new file mode 100644 index 000..8e9335b --- /dev/null +++ b/examples/blog/BE0014_Working_with_Graphics/pom.xml @@ -0,0 +1,100 @@ + + +http://maven.apache.org/POM/4.0.0; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd;> + 4.0.0 + + +org.apache.royale.examples +examples-blog +0.9.7-SNAPSHOT + + + BE0014_Working_with_Graphics + 0.9.7-SNAPSHOT + swf + + Apache Royale: Examples: Blog: 0014: Working with Graphics + + +src/main/royale + + +org.apache.royale.compiler +royale-maven-plugin +true + + BE0014_Working_with_Graphics.mxml + ${royale.targets} + false + ${basedir}/target/javascript/bin/js-debug/jewel-example-index-template.html + -source-map=true; + + + + + + + +
[royale-asjs] branch develop updated: tour-de-jewel: Add DataGrid example to show issue with setup fixed size on initComplete
This is an automated email from the ASF dual-hosted git repository. piotrz pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git The following commit(s) were added to refs/heads/develop by this push: new 17def01 tour-de-jewel: Add DataGrid example to show issue with setup fixed size on initComplete new ca5f696 Merge branch 'develop' of https://github.com/apache/royale-asjs into develop 17def01 is described below commit 17def018f4f9651839f336bf02a542835eabfaf4 Author: Piotr Zarzycki AuthorDate: Sun Mar 15 10:29:53 2020 +0100 tour-de-jewel: Add DataGrid example to show issue with setup fixed size on initComplete --- .../src/main/royale/DataGridPlayGround.mxml| 43 ++ 1 file changed, 36 insertions(+), 7 deletions(-) diff --git a/examples/royale/TourDeJewel/src/main/royale/DataGridPlayGround.mxml b/examples/royale/TourDeJewel/src/main/royale/DataGridPlayGround.mxml index 7774fc3..5a9a296 100644 --- a/examples/royale/TourDeJewel/src/main/royale/DataGridPlayGround.mxml +++ b/examples/royale/TourDeJewel/src/main/royale/DataGridPlayGround.mxml @@ -18,11 +18,12 @@ limitations under the License. --> http://ns.adobe.com/mxml/2009; - xmlns:j="library://ns.apache.org/royale/jewel" - xmlns:html="library://ns.apache.org/royale/html" - xmlns:js="library://ns.apache.org/royale/basic" - xmlns:models="models.*" - xmlns:c="components.*" sourceCodeUrl="DataGridPlayGround.mxml"> + xmlns:j="library://ns.apache.org/royale/jewel" + xmlns:html="library://ns.apache.org/royale/html" + xmlns:js="library://ns.apache.org/royale/basic" + xmlns:models="models.*" + xmlns:c="components.*" sourceCodeUrl="DataGridPlayGround.mxml" + initComplete="onDataGridPlayGroundInitComplete(event)"> @@ -458,6 +462,31 @@ limitations under the License. + + + + + + + + + + + + + + + + + + +