[royale-asjs] branch develop updated: Removing conditional binding since it and closing compiler bug #143
This is an automated email from the ASF dual-hosted git repository. yishayw 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 dd52e6f Removing conditional binding since it and closing compiler bug #143 new 9ac0f6f Merge branch 'develop' of https://gitbox.apache.org/repos/asf/royale-asjs into develop dd52e6f is described below commit dd52e6f4643025fa96f1179c3b3ee2d296f39e34 Author: DESKTOP-RH4S838\Yishay AuthorDate: Fri Apr 10 21:44:38 2020 +0300 Removing conditional binding since it and closing compiler bug #143 --- .../src/main/royale/org/apache/royale/utils/Language.as | 17 - 1 file changed, 17 deletions(-) diff --git a/frameworks/projects/Language/src/main/royale/org/apache/royale/utils/Language.as b/frameworks/projects/Language/src/main/royale/org/apache/royale/utils/Language.as index ab0ca81..086d772 100644 --- a/frameworks/projects/Language/src/main/royale/org/apache/royale/utils/Language.as +++ b/frameworks/projects/Language/src/main/royale/org/apache/royale/utils/Language.as @@ -271,23 +271,6 @@ package org.apache.royale.utils } /** - * Checks for null before returning a closure - * - * @param fn The method on the instance. - * @param object The instance. - * @param boundMethodName The name to use to cache the closure. - * @return The closure, or null. - * - * @royaleignorecoercion Function - */ -static public function conditionalClosure(fn:Function, object:Object, boundMethodName:String):Function -{ -if (fn == null) -return null; -return Language.closure(fn, object, boundMethodName); -} - -/** * caches closures and returns the one closure * * @param fn The method on the instance.
[royale-asjs] branch develop updated: jewel-datagridcolumn: use its own initializer
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 6730865 jewel-datagridcolumn: use its own initializer 6730865 is described below commit 67308650cae684984aaf3fd38f28a13c903079c3 Author: Carlos Rovira AuthorDate: Fri Apr 10 19:41:18 2020 +0200 jewel-datagridcolumn: use its own initializer --- .../projects/Jewel/src/main/resources/defaults.css | 1 + .../projects/Jewel/src/main/royale/JewelClasses.as | 1 + .../DataGridColumnListItemRendererInitializer.as | 69 ++ .../Jewel/src/main/sass/components/_datagrid.sass | 1 + 4 files changed, 72 insertions(+) diff --git a/frameworks/projects/Jewel/src/main/resources/defaults.css b/frameworks/projects/Jewel/src/main/resources/defaults.css index 239406a..0761d26 100644 --- a/frameworks/projects/Jewel/src/main/resources/defaults.css +++ b/frameworks/projects/Jewel/src/main/resources/defaults.css @@ -583,6 +583,7 @@ j|DataGridListArea { j|DataGridColumnList { IItemRendererClassFactory: ClassReference("org.apache.royale.core.SelectableItemRendererClassFactory"); IItemRenderer: ClassReference("org.apache.royale.jewel.itemRenderers.DataGridItemRenderer"); + IItemRendererInitializer: ClassReference("org.apache.royale.jewel.beads.itemRenderers.DataGridColumnListItemRendererInitializer"); ISelectableItemRenderer: ClassReference("org.apache.royale.jewel.beads.itemRenderers.ClassSelectorListSelectableItemRendererBead"); IViewport: ClassReference("org.apache.royale.jewel.supportClasses.Viewport"); } diff --git a/frameworks/projects/Jewel/src/main/royale/JewelClasses.as b/frameworks/projects/Jewel/src/main/royale/JewelClasses.as index a5a7ba1..7f8068a 100644 --- a/frameworks/projects/Jewel/src/main/royale/JewelClasses.as +++ b/frameworks/projects/Jewel/src/main/royale/JewelClasses.as @@ -135,6 +135,7 @@ package import org.apache.royale.jewel.beads.itemRenderers.DataContainerItemRendererInitializer; DataContainerItemRendererInitializer; import org.apache.royale.jewel.beads.itemRenderers.ListItemRendererInitializer; ListItemRendererInitializer; +import org.apache.royale.jewel.beads.itemRenderers.DataGridColumnListItemRendererInitializer; DataGridColumnListItemRendererInitializer; import org.apache.royale.jewel.beads.itemRenderers.ButtonBarItemRendererInitializer; ButtonBarItemRendererInitializer; import org.apache.royale.jewel.beads.itemRenderers.TabBarItemRendererInitializer; TabBarItemRendererInitializer; import org.apache.royale.jewel.beads.itemRenderers.NavigationItemRendererInitializer; NavigationItemRendererInitializer; diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/DataGridColumnListItemRendererInitializer.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/DataGridColumnListItemRendererInitializer.as new file mode 100644 index 000..698970e --- /dev/null +++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/DataGridColumnListItemRendererInitializer.as @@ -0,0 +1,69 @@ + +// +// 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.jewel.beads.itemRenderers +{ + import org.apache.royale.core.IIndexedItemRenderer; + import org.apache.royale.core.StyledMXMLItemRenderer; + import org.apache.royale.core.StyledUIBase; + + /** +* The DataGridColumnListItemRendererInitializer class initializes item renderers + * in list classes and use the base class of many other initializers based on lists +* +* @langversion 3.0 +* @playerversion Flash 10.2 +* @playerversion AIR 2.6 +* @productversion Royale 0.9.7 +*/ + public class DataGridColumnListItemRendererInitializer
[royale-asjs] branch develop updated: jewel: Application use StyledUIBase
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 90de4c0 jewel: Application use StyledUIBase 90de4c0 is described below commit 90de4c023d08bbd83fa444ff8a48a8c295031782 Author: Carlos Rovira AuthorDate: Fri Apr 10 19:40:16 2020 +0200 jewel: Application use StyledUIBase --- .../Jewel/src/main/royale/org/apache/royale/jewel/Application.as| 6 +++--- .../main/royale/org/apache/royale/jewel/beads/controls/Disabled.as | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Application.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Application.as index bbee530..b60f61f 100644 --- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Application.as +++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Application.as @@ -30,7 +30,7 @@ package org.apache.royale.jewel } COMPILE::JS { -import org.apache.royale.core.UIBase; +import org.apache.royale.core.StyledUIBase; } import org.apache.royale.core.AllCSSValuesImpl; import org.apache.royale.core.ApplicationBase; @@ -700,7 +700,7 @@ package org.apache.royale.jewel /** * @royaleignorecoercion org.apache.royale.core.IBead - * @royaleignorecoercion org.apache.royale.core.UIBase + * @royaleignorecoercion org.apache.royale.core.StyledUIBase */ COMPILE::JS protected function initialize():void @@ -714,7 +714,7 @@ package org.apache.royale.jewel initialView.applicationModel = model; addElement(initialView); - var baseView:UIBase = initialView as UIBase; + var baseView:StyledUIBase = initialView as StyledUIBase; if (!isNaN(baseView.percentWidth) || !isNaN(baseView.percentHeight)) { this.element.style.height = window.innerHeight.toString() + 'px'; this.element.style.width = window.innerWidth.toString() + 'px'; diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controls/Disabled.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controls/Disabled.as index a831309..cce2040 100644 --- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controls/Disabled.as +++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controls/Disabled.as @@ -93,7 +93,6 @@ package org.apache.royale.jewel.beads.controls * @playerversion AIR 2.6 * @productversion Royale 0.9.4 * @royaleignorecoercion HTMLInputElement -* @royaleignorecoercion org.apache.royale.core.UIBase; */ override public function set strand(value:IStrand):void {
[royale-asjs] branch develop updated: jewel-initializers: rowHeight set minHeight instead of height to allow variableRowHeight work properly
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 a73bd9d jewel-initializers: rowHeight set minHeight instead of height to allow variableRowHeight work properly a73bd9d is described below commit a73bd9df3cb279a39328e5404b5c05e7343ec98d Author: Carlos Rovira AuthorDate: Fri Apr 10 19:27:24 2020 +0200 jewel-initializers: rowHeight set minHeight instead of height to allow variableRowHeight work properly --- .../jewel/beads/itemRenderers/ButtonBarItemRendererInitializer.as| 3 +-- .../royale/jewel/beads/itemRenderers/ListItemRendererInitializer.as | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/ButtonBarItemRendererInitializer.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/ButtonBarItemRendererInitializer.as index 8b337a1..9435d45 100644 --- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/ButtonBarItemRendererInitializer.as +++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/ButtonBarItemRendererInitializer.as @@ -22,7 +22,6 @@ package org.apache.royale.jewel.beads.itemRenderers import org.apache.royale.core.IOwnerViewItemRenderer; import org.apache.royale.core.ISelectable; import org.apache.royale.core.StyledUIBase; - import org.apache.royale.core.UIBase; import org.apache.royale.jewel.Button; import org.apache.royale.jewel.ButtonBar; import org.apache.royale.jewel.beads.views.ButtonBarView; @@ -53,7 +52,7 @@ package org.apache.royale.jewel.beads.itemRenderers override protected function setupVisualsForItemRenderer(ir:IIndexedItemRenderer):void { if (presentationModel) { -UIBase(ir).height = presentationModel.rowHeight; +StyledUIBase(ir).minHeight = presentationModel.rowHeight; if(ir is IAlignItemRenderer) { diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/ListItemRendererInitializer.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/ListItemRendererInitializer.as index 0cb0cbd..bdc78be 100644 --- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/ListItemRendererInitializer.as +++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/ListItemRendererInitializer.as @@ -26,7 +26,6 @@ package org.apache.royale.jewel.beads.itemRenderers import org.apache.royale.core.IStrandWithPresentationModel; import org.apache.royale.core.StyledMXMLItemRenderer; import org.apache.royale.core.StyledUIBase; - import org.apache.royale.core.UIBase; import org.apache.royale.html.beads.IndexedItemRendererInitializer; import org.apache.royale.jewel.supportClasses.list.IListPresentationModel; @@ -64,7 +63,7 @@ package org.apache.royale.jewel.beads.itemRenderers * @playerversion AIR 2.6 * @productversion Royale 0.9.7 * @royaleignorecoercion HTMLInputElement -* @royaleignorecoercion org.apache.royale.core.UIBase; +* @royaleignorecoercion org.apache.royale.core.StyledUIBase; */ override public function set strand(value:IStrand):void { @@ -76,7 +75,7 @@ package org.apache.royale.jewel.beads.itemRenderers override protected function setupVisualsForItemRenderer(ir:IIndexedItemRenderer):void { if (presentationModel) { -UIBase(ir).height = presentationModel.rowHeight; +StyledUIBase(ir).minHeight = presentationModel.rowHeight; if(ir is IAlignItemRenderer) {
[royale-asjs] branch develop updated: styled-renderer-classes: finish rework of hierarchy in jewel
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 2e77808 styled-renderer-classes: finish rework of hierarchy in jewel 2e77808 is described below commit 2e778084c96bd3428683b999dabbf4ae57461edb Author: Carlos Rovira AuthorDate: Fri Apr 10 19:24:25 2020 +0200 styled-renderer-classes: finish rework of hierarchy in jewel --- .../apache/royale/core/StyledMXMLItemRenderer.as | 128 + .../TableCellSelectionMouseController.as | 4 +- .../DataItemRendererFactoryForArrayData.as | 6 +- .../RemoveTableRowForArrayListData.as | 8 +- .../TableItemRendererFactoryForCollectionView.as | 8 +- .../jewel/itemRenderers/StringItemRenderer.as | 4 +- .../jewel/supportClasses/table/TBodyContentArea.as | 4 +- 7 files changed, 20 insertions(+), 142 deletions(-) diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/StyledMXMLItemRenderer.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/StyledMXMLItemRenderer.as index 43db82b..1c87471 100644 --- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/StyledMXMLItemRenderer.as +++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/StyledMXMLItemRenderer.as @@ -18,10 +18,9 @@ package org.apache.royale.core { -import org.apache.royale.html.supportClasses.MXMLStatesItemRenderer; +import org.apache.royale.html.supportClasses.StyledMXMLStatesItemRenderer; import org.apache.royale.core.IItemRendererOwnerView; import org.apache.royale.core.IOwnerViewItemRenderer; -import org.apache.royale.utils.ClassSelectorList; import org.apache.royale.utils.IClassSelectorListSupport; import org.apache.royale.utils.IEmphasis; @@ -34,7 +33,7 @@ package org.apache.royale.core * @playerversion AIR 2.6 * @productversion Royale 0.9.3 */ - public class StyledMXMLItemRenderer extends MXMLStatesItemRenderer implements IClassSelectorListSupport, IEmphasis, IOwnerViewItemRenderer + public class StyledMXMLItemRenderer extends StyledMXMLStatesItemRenderer implements IClassSelectorListSupport, IEmphasis, IOwnerViewItemRenderer { /** * constructor. @@ -48,129 +47,8 @@ package org.apache.royale.core { super(); typeNames = ""; -classSelectorList = new ClassSelectorList(this); } -protected var classSelectorList:ClassSelectorList; - -COMPILE::JS -override protected function setClassName(value:String):void -{ -classSelectorList.addNames(value); -} - -/** - * Add a class selector to the list. - * - * @param name Name of selector to add. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion Royale 0.9.3 - */ -public function addClass(name:String):void -{ -COMPILE::JS -{ -classSelectorList.add(name); -} -} - -/** - * Removes a class selector from the list. - * - * @param name Name of selector to remove. - * - * @royaleignorecoercion HTMLElement - * @royaleignorecoercion DOMTokenList - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion Royale 0.9.3 - */ -public function removeClass(name:String):void -{ -COMPILE::JS -{ -classSelectorList.remove(name); -} -} - -/** - * Add or remove a class selector to/from the list. - * - * @param name Name of selector to add or remove. - * @param value True to add, False to remove. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion Royale 0.9.3 - */ -public function toggleClass(name:String, value:Boolean):void -{ -COMPILE::JS -{ -classSelectorList.toggle(name, value); -} -} - -/** -* Search for the name in the element class list -* - * @param name Name of selector to find. - * @return return true if the name is found or false otherwise. - * -* @langversion 3.0 -* @playerversion Flash 10.2 -* @playerversion AIR 2.6 -*
[royale-asjs] branch develop updated: styled-renderer-classes: rework the jewel item renderer classes to use StyledUIBase instead of UIBase
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 04ec6e7 styled-renderer-classes: rework the jewel item renderer classes to use StyledUIBase instead of UIBase 04ec6e7 is described below commit 04ec6e74483923b7caae37984a9ee9cd9733beb5 Author: Carlos Rovira AuthorDate: Fri Apr 10 19:14:41 2020 +0200 styled-renderer-classes: rework the jewel item renderer classes to use StyledUIBase instead of UIBase --- .../Basic/src/main/resources/basic-manifest.xml| 4 +- .../supportClasses/StyledBaseMXMLItemRenderer.as | 92 +++ .../html/supportClasses/StyledDataItemRenderer.as | 137 +++ .../supportClasses/StyledMXMLStatesItemRenderer.as | 184 + .../supportClasses/StyledUIItemRendererBase.as | 183 5 files changed, 598 insertions(+), 2 deletions(-) diff --git a/frameworks/projects/Basic/src/main/resources/basic-manifest.xml b/frameworks/projects/Basic/src/main/resources/basic-manifest.xml index 4e0b5b5..589f0e0 100644 --- a/frameworks/projects/Basic/src/main/resources/basic-manifest.xml +++ b/frameworks/projects/Basic/src/main/resources/basic-manifest.xml @@ -137,8 +137,10 @@ + + @@ -150,8 +152,6 @@ - - diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/supportClasses/StyledBaseMXMLItemRenderer.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/supportClasses/StyledBaseMXMLItemRenderer.as new file mode 100644 index 000..3049dec --- /dev/null +++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/supportClasses/StyledBaseMXMLItemRenderer.as @@ -0,0 +1,92 @@ + +// +// 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.html.supportClasses +{ + import org.apache.royale.core.IBeadLayout; + import org.apache.royale.core.ILayoutHost; + import org.apache.royale.core.ILayoutParent; + import org.apache.royale.core.ILayoutView; + import org.apache.royale.core.IStrand; + import org.apache.royale.events.Event; + + /** +* The MXMLItemRenderer class is the base class for itemRenderers that are MXML-based +* and provides support for a layout and a data object. +* +* @langversion 3.0 +* @playerversion Flash 10.2 +* @playerversion AIR 2.6 +* @productversion Royale 0.0 +*/ + public class StyledBaseMXMLItemRenderer extends StyledDataItemRenderer implements ILayoutParent, ILayoutHost, IStrand, ILayoutView + { + /** +* constructor. +* +* @langversion 3.0 +* @playerversion Flash 10.2 +* @playerversion AIR 2.6 +* @productversion Royale 0.0 +*/ + public function StyledBaseMXMLItemRenderer() + { + super(); +typeNames = ""; + } + +[Bindable("dataChange")] +override public function set data(value:Object):void +{ +if (value != data) +{ +super.data = value; +dispatchEvent(new Event("dataChange")); +} +} + + public function getLayoutHost():ILayoutHost + { + return this; + } + + public function get contentView():ILayoutView + { + return this; + } + + override public function adjustSize():void + { + var layout:IBeadLayout = getBeadByType(IBeadLayout) as IBeadLayout; + if (layout != null) { +
[royale-asjs] branch develop updated: StyledUIBase: get minWidth, minHeight, maxWidth and maxHeight properties
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 c93ebcf StyledUIBase: get minWidth, minHeight, maxWidth and maxHeight properties c93ebcf is described below commit c93ebcf82b3b355e5f88686b96a90d87d36d7ab1 Author: Carlos Rovira AuthorDate: Fri Apr 10 19:05:31 2020 +0200 StyledUIBase: get minWidth, minHeight, maxWidth and maxHeight properties --- .../royale/org/apache/royale/core/StyledUIBase.as | 108 +++-- 1 file changed, 102 insertions(+), 6 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 cc6bc01..24cf32b 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 @@ -23,9 +23,7 @@ package org.apache.royale.core import org.apache.royale.core.WrappedHTMLElement; import org.apache.royale.html.util.addElementToWrapper; } -import org.apache.royale.events.Event; import org.apache.royale.utils.ClassSelectorList; -import org.apache.royale.utils.IClassSelectorListSupport; import org.apache.royale.utils.sendEvent; /** @@ -356,8 +354,7 @@ package org.apache.royale.core } COMPILE::JS { - //positioner.style.position = 'absolute'; -if(!isNaN(value)) + if(!isNaN(value)) { if (positioner.parentNode != positioner.offsetParent) value += (positioner.parentNode as HTMLElement).offsetLeft; @@ -389,8 +386,7 @@ package org.apache.royale.core } COMPILE::JS { - //positioner.style.position = 'absolute'; -if(!isNaN(value)) + if(!isNaN(value)) { if (positioner.parentNode != positioner.offsetParent) value += (positioner.parentNode as HTMLElement).offsetTop; @@ -401,5 +397,105 @@ package org.apache.royale.core } } } + +protected var _minWidth:Number; +/** + * the minimun width for this component + * + * @langversion 3.0 + * @playerversion Flash 10.2 + * @playerversion AIR 2.6 + * @productversion Royale 0.9.7 + */ +public function get minWidth():Number +{ +return _minWidth; +} +public function set minWidth(value:Number):void +{ +if (_minWidth !== value) +{ +_minWidth = value; +COMPILE::JS + { +this.positioner.style.minWidth = _minWidth.toString() + 'px'; +} +} +} + +protected var _minHeight:Number; +/** + * the minimun height for this component + * + * @langversion 3.0 + * @playerversion Flash 10.2 + * @playerversion AIR 2.6 + * @productversion Royale 0.9.7 + */ +public function get minHeight():Number +{ +return _minHeight; +} +public function set minHeight(value:Number):void +{ +if (_minHeight !== value) +{ +_minHeight = value; +COMPILE::JS + { +this.positioner.style.minHeight = _minHeight.toString() + 'px'; +} +} +} + +protected var _maxWidth:Number; +/** + * the maximun width for this component + * + * @langversion 3.0 + * @playerversion Flash 10.2 + * @playerversion AIR 2.6 + * @productversion Royale 0.9.7 + */ +public function get maxWidth():Number +{ +return _maxWidth; +} +public function set maxWidth(value:Number):void +{ +if (_maxWidth !== value) +{ +_maxWidth = value; +COMPILE::JS + { +this.positioner.style.maxWidth = _maxWidth.toString() + 'px'; +} +} +} + +protected var _maxHeight:Number; +/** + * the maximun height for this component + * + * @langversion 3.0 + * @playerversion Flash 10.2 + * @playerversion AIR 2.6 + * @productversion
[royale-asjs] branch develop updated: basic-constraintsize-bead: brings min, max width and height properties to UIBase as a bead
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 cf422d1 basic-constraintsize-bead: brings min, max width and height properties to UIBase as a bead cf422d1 is described below commit cf422d11082cd91b7cb755e22e708b6b2fe23255 Author: Carlos Rovira AuthorDate: Fri Apr 10 19:04:38 2020 +0200 basic-constraintsize-bead: brings min, max width and height properties to UIBase as a bead --- .../Basic/src/main/resources/basic-manifest.xml| 1 + .../org/apache/royale/core/ConstraintSize.as | 172 + 2 files changed, 173 insertions(+) diff --git a/frameworks/projects/Basic/src/main/resources/basic-manifest.xml b/frameworks/projects/Basic/src/main/resources/basic-manifest.xml index 40e9b43..4e0b5b5 100644 --- a/frameworks/projects/Basic/src/main/resources/basic-manifest.xml +++ b/frameworks/projects/Basic/src/main/resources/basic-manifest.xml @@ -128,6 +128,7 @@ + diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/ConstraintSize.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/ConstraintSize.as new file mode 100644 index 000..b9e702a --- /dev/null +++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/ConstraintSize.as @@ -0,0 +1,172 @@ + +// +// 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.core +{ + import org.apache.royale.core.IBead; + import org.apache.royale.core.IStrand; + import org.apache.royale.core.UIBase; + + /** +* The ConstraintSize class is used to set minimun and maximun sizes on the component +* +* @langversion 3.0 +* @playerversion Flash 10.2 +* @playerversion AIR 2.6 +* @productversion Royale 0.9.7 +*/ + public class ConstraintSize implements IBead + { + public function ConstraintSize() + { + } + +protected var host:UIBase; + +public function set strand(value:IStrand):void +{ +host = value as UIBase; +updateMinWidth(); +updateMinHeight(); +} + +protected var _minWidth:Number; +/** + * the minimun width for this component + * + * @langversion 3.0 + * @playerversion Flash 10.2 + * @playerversion AIR 2.6 + * @productversion Royale 0.9.7 + */ +public function get minWidth():Number +{ +return _minWidth; +} +public function set minWidth(value:Number):void +{ +if (_minWidth !== value) +{ +_minWidth = value; +if(host) +updateMinWidth(); +} +} +private function updateMinWidth():void +{ +COMPILE::JS +{ +if(_minWidth) +host.positioner.style.minWidth = _minWidth.toString() + 'px'; +} +} + +protected var _minHeight:Number; +/** + * the minimun height for this component + * + * @langversion 3.0 + * @playerversion Flash 10.2 + * @playerversion AIR 2.6 + * @productversion Royale 0.9.7 + */ +public function get minHeight():Number +{ +return _minHeight; +} +public function set minHeight(value:Number):void +{ +if (_minHeight !== value) +{ +_minHeight = value; +if(host) +updateMinHeight(); +} +} +private function updateMinHeight():void +{ +COMPILE::JS +{ +if(_minHeight) +
[royale-docs] branch master updated: compiler-options: complete the TOC
This is an automated email from the ASF dual-hosted git repository. carlosrovira pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/royale-docs.git The following commit(s) were added to refs/heads/master by this push: new ffbb67e compiler-options: complete the TOC ffbb67e is described below commit ffbb67e3622b2097042b1cd742a08870d627dfd4 Author: Carlos Rovira AuthorDate: Fri Apr 10 16:16:19 2020 +0200 compiler-options: complete the TOC --- compiler/compiler-options.md | 28 +++- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/compiler/compiler-options.md b/compiler/compiler-options.md index 7b20487..2fe6081 100644 --- a/compiler/compiler-options.md +++ b/compiler/compiler-options.md @@ -28,7 +28,17 @@ List of Available Compiler Options * [html-output-filename](compiler/compiler-options.html#html-output-filename) * [html-template](compiler/compiler-options.html#html-template) +* [js-compiler-option](compiler/compiler-options.html#js-compiler-option) +* [js-default-initializers](compiler/compiler-options.html#js-default-initializers) * [js-define](compiler/compiler-options.html#js-define) +* [js-load-config](compiler/compiler-options.html#js-load-config) +* [js-output](compiler/compiler-options.html#js-output) +* [remove-circulars](compiler/compiler-options.html#remove-circulars) +* [source-map](compiler/compiler-options.html#source-map) +* [targets](compiler/compiler-options.html#targets) +* [warn-public-vars](compiler/compiler-options.html#warn-public-vars) +* [show-binding-warnings](compiler/compiler-options.html#show-binding-warnings) + Royale provides these options for its compiler: @@ -56,7 +66,7 @@ Specifies the path to an optional template for the the HTML file generated by th ${basedir}/target/javascript/bin/js-debug/jewel-example-index-template.html ``` -### js-compiler-option +### js-compiler-option {#js-compiler-option} Specifies one or more custom compiler options to pass to the Google Closure Compiler, which is used to create the release build of an Apache Royale application. @@ -70,7 +80,7 @@ Specifies one or more custom compiler options to pass to the Google Closure Comp -js-compiler-option=--variable_map_output_file gccvars.txt;-js-compiler-option+=--property_map_output_file gccprops.txt ``` -### js-default-initializers +### js-default-initializers {#js-default-initializers} Defaults to true. Enables or disables initialization of primitive (Number, Boolean, etc.) variables with default values in the generated JavaScript. Corresponds to AVM runtime implicit type intialization values. @@ -121,7 +131,7 @@ private static var _buildNumber :String = BUILD::buildNumber; private static var _projectVersion :String = BUILD::buildVersion; ``` -### js-load-config +### js-load-config {#js-load-config} Specifies the locations of XML configuration files that define extra compiler options for JavaScript output. @@ -131,7 +141,7 @@ Specifies the locations of XML configuration files that define extra compiler op Maven configuration: -### js-output +### js-output {#js-output} The path where the generated JavaScript output should be saved, if your are also using it for the .swf output path. @@ -143,7 +153,7 @@ The path where the generated JavaScript output should be saved, if your are also Use instead `outputDirectory`in `configuration` xml node -### remove-circulars +### remove-circulars {#remove-circulars} Tells the Apache Royale compiler to remove circular dependencies in the generated JavaScript, where possible. @@ -157,7 +167,7 @@ Tells the Apache Royale compiler to remove circular dependencies in the generate true ``` -### source-map +### source-map {#source-map} Emits a source map in the debug build for each ActionScript file. The default value is false. @@ -171,7 +181,7 @@ Emits a source map in the debug build for each ActionScript file. The default va -source-map=true; ``` -### targets +### targets {#targets} Specifies the target format of the code generated by the Apache Royale compiler. You can specify multiple targets. @@ -193,7 +203,7 @@ The compiler supports the following values for "targets": JSRoyale ``` -### warn-public-vars +### warn-public-vars {#warn-public-vars} Enables or disables warnings about using public variables. @@ -207,7 +217,7 @@ Enables or disables warnings about using public variables. -warn-public-vars=true; ``` -### show-binding-warnings +### show-binding-warnings {#show-binding-warnings} Set to false to remove all binding warnings.
[royale-asjs] branch develop updated: tour-de-jewel: Add DataGrid example which shows issue with rowHeight when data of cells are big
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 cf2b1c4 tour-de-jewel: Add DataGrid example which shows issue with rowHeight when data of cells are big new 9f5b79e Merge branch 'develop' of https://github.com/apache/royale-asjs into develop cf2b1c4 is described below commit cf2b1c49102d52c48d734edb3e2489e64f4c9816 Author: Piotr Zarzycki AuthorDate: Fri Apr 10 15:41:21 2020 +0200 tour-de-jewel: Add DataGrid example which shows issue with rowHeight when data of cells are big --- .../src/main/royale/DataGridPlayGround.mxml| 24 -- .../src/main/royale/models/ListsModel.as | 16 +++ 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/examples/jewel/TourDeJewel/src/main/royale/DataGridPlayGround.mxml b/examples/jewel/TourDeJewel/src/main/royale/DataGridPlayGround.mxml index ea14359..7722f75 100644 --- a/examples/jewel/TourDeJewel/src/main/royale/DataGridPlayGround.mxml +++ b/examples/jewel/TourDeJewel/src/main/royale/DataGridPlayGround.mxml @@ -22,8 +22,7 @@ limitations under the License. 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:c="components.*" sourceCodeUrl="DataGridPlayGround.mxml"> @@ -456,7 +455,28 @@ limitations under the License. + + + + + + + + + + + + + + + + + + +
[royale-asjs] branch develop updated: Add caching to conditional binding
This is an automated email from the ASF dual-hosted git repository. yishayw 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 c264b8c Add caching to conditional binding c264b8c is described below commit c264b8cc8a39a80545d0dfab6735879326359459 Author: DESKTOP-RH4S838\Yishay AuthorDate: Fri Apr 10 16:40:43 2020 +0300 Add caching to conditional binding --- .../Language/src/main/royale/org/apache/royale/utils/Language.as| 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frameworks/projects/Language/src/main/royale/org/apache/royale/utils/Language.as b/frameworks/projects/Language/src/main/royale/org/apache/royale/utils/Language.as index 1663954..ab0ca81 100644 --- a/frameworks/projects/Language/src/main/royale/org/apache/royale/utils/Language.as +++ b/frameworks/projects/Language/src/main/royale/org/apache/royale/utils/Language.as @@ -275,14 +275,16 @@ package org.apache.royale.utils * * @param fn The method on the instance. * @param object The instance. + * @param boundMethodName The name to use to cache the closure. * @return The closure, or null. * + * @royaleignorecoercion Function */ -static public function conditionalBind(fn:Function, object:Object):Function +static public function conditionalClosure(fn:Function, object:Object, boundMethodName:String):Function { if (fn == null) return null; -return goog.bind(fn, object); +return Language.closure(fn, object, boundMethodName); } /**
[royale-compiler] 01/01: Merge branch 'develop' into issue_143
This is an automated email from the ASF dual-hosted git repository. yishayw pushed a commit to branch issue_143 in repository https://gitbox.apache.org/repos/asf/royale-compiler.git commit 50c11578d5a6b9e8b7a451b3e430fc8bdccd295a Merge: 6461abf 572cd8a Author: DESKTOP-RH4S838\Yishay AuthorDate: Fri Apr 10 16:07:15 2020 +0300 Merge branch 'develop' into issue_143 compiler-build-tools/ApproveBuildTools.xml | 632 + compiler-build-tools/pom.xml | 581 +-- compiler-build-tools/releasesteps.xml | 433 ++ .../codegen/js/jx/BinaryOperatorEmitter.java | 40 +- .../codegen/js/jx/DynamicAccessEmitter.java| 2 +- .../internal/codegen/js/jx/FieldEmitter.java | 14 +- .../internal/codegen/js/jx/ForEachEmitter.java | 2 +- .../codegen/js/jx/MemberAccessEmitter.java | 2 +- .../codegen/js/royale/JSRoyaleEmitter.java | 23 +- .../internal/codegen/js/utils/EmitterUtils.java| 12 +- .../internal/codegen/mxml/MXMLEmitter.java | 34 +- .../codegen/js/royale/TestRoyaleGlobalClasses.java | 2 +- .../codegen/mxml/royale/TestRoyaleMXMLScript.java | 259 + pom.xml| 10 + .../java/org/apache/royale/maven/BaseMojo.java | 10 +- 15 files changed, 1587 insertions(+), 469 deletions(-)
[royale-compiler] branch issue_143 updated (6461abf -> 50c1157)
This is an automated email from the ASF dual-hosted git repository. yishayw pushed a change to branch issue_143 in repository https://gitbox.apache.org/repos/asf/royale-compiler.git. from 6461abf Cache conditionalClosure add 132d3d6 fix for the original tweak I did here, adding more support for line separations in additionalCompilerOptions add 0fad5e8 fix for const or var as main definition instead of a class. Treat their assigned values like a static initializer add cf1fe8d Merge branch 'develop' of https://github.com/apache/royale-compiler into develop add 332a2e8 Fix for the fix. add 89a62e1 Needs more investigation. A binding definition inside a {bindingexpression} causes a compiler error without this. add 53fd372 Fix for an issue with complex static initializers. Fixes access to vars and consts from other code. add 4c1b2f4 Additions to XML and XML list to support more e4X conformance. Aligned with framework classes (extra unit tests) add fd0cad1 initial attempt at approval script add dfd8c72 Merge branch 'develop' of https://github.com/apache/royale-compiler into develop add a205aaa Updates to compiler-integration-tests for static initializer changes add 31be5ff initial draft of releasesteps add 2414fee fix version # add ca469c0 go back to jgit to see if we can avoid putting the committers username and email in the git config add 27c962c fix poms add b8d2066 I'll get it right one of these days add c88eb0a go back to using snapshot to fix relative path issues in SCM-921 add fc415d0 try to debug jgit on ci add 1958f8a [maven-release-plugin] prepare release org.apache.royale.compiler-build-tools-1.2.0-rc2 add 1266488 [maven-release-plugin] prepare for next development iteration add dcc21ca fix Royale_Compiler_Build_Tools_Release_Step_002 add 572cd8a sign and upload seemed to work new 50c1157 Merge branch 'develop' into issue_143 The 1 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: .../ApproveBuildTools.xml | 207 ++-- compiler-build-tools/pom.xml | 581 +++-- compiler-build-tools/releasesteps.xml | 433 +++ .../codegen/js/jx/BinaryOperatorEmitter.java | 40 +- .../codegen/js/jx/DynamicAccessEmitter.java| 2 +- .../internal/codegen/js/jx/FieldEmitter.java | 14 +- .../internal/codegen/js/jx/ForEachEmitter.java | 2 +- .../codegen/js/jx/MemberAccessEmitter.java | 2 +- .../codegen/js/royale/JSRoyaleEmitter.java | 23 +- .../internal/codegen/js/utils/EmitterUtils.java| 12 +- .../internal/codegen/mxml/MXMLEmitter.java | 34 +- .../codegen/js/royale/TestRoyaleGlobalClasses.java | 2 +- .../codegen/mxml/royale/TestRoyaleMXMLScript.java | 259 - pom.xml| 10 + .../java/org/apache/royale/maven/BaseMojo.java | 10 +- 15 files changed, 987 insertions(+), 644 deletions(-) copy ApproveFalcon.xml => compiler-build-tools/ApproveBuildTools.xml (75%) create mode 100644 compiler-build-tools/releasesteps.xml
[royale-compiler] branch issue_143 updated: Cache conditionalClosure
This is an automated email from the ASF dual-hosted git repository. yishayw pushed a commit to branch issue_143 in repository https://gitbox.apache.org/repos/asf/royale-compiler.git The following commit(s) were added to refs/heads/issue_143 by this push: new 6461abf Cache conditionalClosure 6461abf is described below commit 6461abff68aa1fddc7ffcd745403982a900f6919 Author: DESKTOP-RH4S838\Yishay AuthorDate: Fri Apr 10 16:04:31 2020 +0300 Cache conditionalClosure Reference #143 --- .../compiler/internal/codegen/js/JSEmitter.java| 24 ++ .../codegen/js/royale/JSRoyaleEmitterTokens.java | 2 +- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/JSEmitter.java b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/JSEmitter.java index e7d5194..338d138 100644 --- a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/JSEmitter.java +++ b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/JSEmitter.java @@ -917,7 +917,7 @@ public class JSEmitter extends ASEmitter implements IJSEmitter } if (checkForConditionalBind && project.getBuiltinType(BuiltinType.FUNCTION).equals(definition) && assignedNode instanceof MemberAccessExpressionNode) { - emitAssignedCoercionHelper(assignedNode); + emitAssignedCoercionHelper(assignedNode, definition); } else { emitAssignedValue(assignedNode); } @@ -934,19 +934,27 @@ public class JSEmitter extends ASEmitter implements IJSEmitter } } -private void emitAssignedCoercionHelper(IExpressionNode assignedNode) { +private void emitAssignedCoercionHelper(IExpressionNode assignedNode, IDefinition nodeDef) { MemberAccessExpressionNode maeNode = (MemberAccessExpressionNode)assignedNode; - if (maeNode.getLeftOperandNode() instanceof ILanguageIdentifierNode && - ((ILanguageIdentifierNode)maeNode.getLeftOperandNode()).getKind().equals(ILanguageIdentifierNode.LanguageIdentifierKind.THIS)) { + ILanguageIdentifierNode.LanguageIdentifierKind kind = null; + if (nodeDef.isStatic() || maeNode.getLeftOperandNode() instanceof ILanguageIdentifierNode && + ((kind = ((ILanguageIdentifierNode)maeNode.getLeftOperandNode()).getKind()).equals(ILanguageIdentifierNode.LanguageIdentifierKind.THIS) || + kind.equals(ILanguageIdentifierNode.LanguageIdentifierKind.SUPER))) { emitAssignedValue(assignedNode); } else { - write(JSRoyaleEmitterTokens.CONDITIONAL_BIND_FUNCTION_NAME.getToken() + + write(JSRoyaleEmitterTokens.CONDITIONAL_CLOSURE_FUNCTION_NAME.getToken() + ASEmitterTokens.PAREN_OPEN.getToken() ); emitAssignedValue(assignedNode); - write(ASEmitterTokens.COMMA.getToken()); - getWalker().walk(maeNode.getLeftOperandNode()); - write(ASEmitterTokens.PAREN_CLOSE.getToken()); +write(ASEmitterTokens.COMMA.getToken()); +write(ASEmitterTokens.SPACE.getToken()); +getWalker().walk(maeNode.getLeftOperandNode()); +write(ASEmitterTokens.COMMA.getToken()); +write(ASEmitterTokens.SPACE.getToken()); +write(ASEmitterTokens.SINGLE_QUOTE.getToken()); +getWalker().walk(maeNode.getRightOperandNode()); +write(ASEmitterTokens.SINGLE_QUOTE.getToken()); +write(ASEmitterTokens.PAREN_CLOSE.getToken()); } } diff --git a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/royale/JSRoyaleEmitterTokens.java b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/royale/JSRoyaleEmitterTokens.java index 722906e..4f3815b 100644 --- a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/royale/JSRoyaleEmitterTokens.java +++ b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/royale/JSRoyaleEmitterTokens.java @@ -68,7 +68,7 @@ public enum JSRoyaleEmitterTokens implements IEmitterTokens SETTER_PREFIX("set__"), BINDABLE_PREFIX("bindable__"), CLOSURE_FUNCTION_NAME("org.apache.royale.utils.Language.closure"), - CONDITIONAL_BIND_FUNCTION_NAME("org.apache.royale.utils.Language.conditionalBind"), + CONDITIONAL_CLOSURE_FUNCTION_NAME("org.apache.royale.utils.Language.conditionalClosure"), SKIP_AS_COERCIONS("skipAsCoercions"), SKIP_FUNCTION_COERCIONS("skipFunctionCoercions"), JSX("JSX"),
[royale-docs] branch master updated: Update compiler-options.md
This is an automated email from the ASF dual-hosted git repository. andreww pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/royale-docs.git The following commit(s) were added to refs/heads/master by this push: new 15e122a Update compiler-options.md 15e122a is described below commit 15e122adf5d705cb477303e887759afe87c9c2b7 Author: Andrew Wetmore AuthorDate: Fri Apr 10 09:21:23 2020 -0300 Update compiler-options.md Updated some of the text. --- compiler/compiler-options.md | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/compiler/compiler-options.md b/compiler/compiler-options.md index b3edc4c..7b20487 100644 --- a/compiler/compiler-options.md +++ b/compiler/compiler-options.md @@ -16,7 +16,7 @@ layout: docpage title: Compiler Options -description: List of Available Compiler Options +description: List of available compiler options permalink: /compiler/compiler-options --- @@ -24,15 +24,15 @@ permalink: /compiler/compiler-options List of Available Compiler Options -Page Contents: +## Contents * [html-output-filename](compiler/compiler-options.html#html-output-filename) * [html-template](compiler/compiler-options.html#html-template) * [js-define](compiler/compiler-options.html#js-define) -Royale provide the following list of compiler options +Royale provides these options for its compiler: -## JavaScript Compiler Options +## JavaScript compiler options ### html-output-filename {#html-output-filename} @@ -74,7 +74,7 @@ Specifies one or more custom compiler options to pass to the Google Closure Comp Defaults to true. Enables or disables initialization of primitive (Number, Boolean, etc.) variables with default values in the generated JavaScript. Corresponds to AVM runtime implicit type intialization values. -Note that some reflection utility functions require this to be true in order for them to work correctly in javascript. +Note that some reflection utility functions require this to be set to true in order for them to work correctly in JavaScript. ```sh -compiler.js-default-initializers @@ -94,7 +94,7 @@ Defines a global constant at compile time for the JavaScript output. May be a bo -compiler.js-define CONFIG::debugging true -compiler.js-define CONFIG::release false ``` -For boolean and numeric values, you may pass in literals like true, false, or 123. String values must be formatted with nested quotes, like "'hello'", because the compiler will attempt to evaluate an expression when it encounters quotes. +For Boolean and numeric values, you may pass in literals like true, false, or 123. Format string values with nested quotes, like "'hello'", because the compiler will attempt to evaluate an expression when it encounters a quotation mark. Maven configuration: @@ -133,7 +133,7 @@ Specifies the locations of XML configuration files that define extra compiler op ### js-output -The path where the generated JavaScript output should be saved, if output is also being used for the .swf output path. +The path where the generated JavaScript output should be saved, if your are also using it for the .swf output path. ```sh -compiler.js-output path/to/output @@ -159,7 +159,7 @@ Tells the Apache Royale compiler to remove circular dependencies in the generate ### source-map -Emits source maps in the debug build for each ActionScript file. The default value is false. +Emits a source map in the debug build for each ActionScript file. The default value is false. ```sh -compiler.source-map @@ -173,13 +173,13 @@ Emits source maps in the debug build for each ActionScript file. The default val ### targets -Specifies the target format of the code generated by the Apache Royale compiler. Multiple targets may be specified. +Specifies the target format of the code generated by the Apache Royale compiler. You can specify multiple targets. ```sh -compiler.targets JSRoyale,SWF ``` -The following values for "targets" are supported: +The compiler supports the following values for "targets": - "JSRoyale" - "JS" @@ -209,7 +209,7 @@ Enables or disables warnings about using public variables. ### show-binding-warnings -Set to false to remove all binding warnings +Set to false to remove all binding warnings. ```sh -compiler.show-binding-warnings=false @@ -219,4 +219,4 @@ Set to false to remove all binding warnings ```xml -show-binding-warnings=false; -``` \ No newline at end of file +```
[royale-docs] branch master updated: Update compiler.md
This is an automated email from the ASF dual-hosted git repository. andreww pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/royale-docs.git The following commit(s) were added to refs/heads/master by this push: new 78ef1f9 Update compiler.md 78ef1f9 is described below commit 78ef1f9e68e34954d979beb2a8388eb09cbce2b4 Author: Andrew Wetmore AuthorDate: Fri Apr 10 09:02:25 2020 -0300 Update compiler.md Updated text. --- compiler.md | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/compiler.md b/compiler.md index 97736ad..d118275 100644 --- a/compiler.md +++ b/compiler.md @@ -16,13 +16,13 @@ layout: docpage title: Compiler -description: Refactoring code to remove circular dependencies +description: Using the Royale compiler to create release artifacts permalink: /compiler --- # Apache Royale Compiler -Turn your source code into one or more compiled outputs +Turn your source code into compiled output Royale provides a compiler (some call it a transpiler or cross-compiler) and a command-line debugger to turn your source code into compiled output you can share with users. The compiler takes [AS3](features/as3), [MXML](features/mxml), and CSS as inputs. @@ -34,7 +34,7 @@ The code is based on the https://www.adobe.com/content/dam/acom/en/devn ## User Guide -The Royale Compiler does many things besides compile **MXML** and **ActionScript** into **JavaScript** and/or **SWF**. But if that's all you want to do, you can use the compiler with https://maven.apache.org/; target="_blank">Apache Maven, https://ant.apache.org/; target="_blank">Apache Ant, several [IDEs](development-tools.html), https://www.npmjs.com/; target="_blank">npm and through the command-line. Below are some pointers to getting started: +The Royale Compiler does many things besides compile **MXML** and **ActionScript** into **JavaScript** and/or **SWF**. But if that's all you want to do, you can use the compiler with https://maven.apache.org/; target="_blank">Apache Maven, https://ant.apache.org/; target="_blank">Apache Ant, several [IDEs](get-started/development-tools), https://www.npmjs.com/; target="_blank">npm and through the command-line. Below are some pointers to getting started: ### Apache Maven @@ -58,8 +58,8 @@ The `js/bin` folder should contain `mxmlc` and `compc` scripts that will launch ## Compiler Options -Royale provide several compiler options to customize the use. You can check the list of compiler options here: +Royale provides several compiler options to customize the use. You can check the list of compiler options here: - [Compiler Options](compiler/compiler-options) -> To read about how to contribute to Apache Royale Compiler use the following [Apache Royale Compiler Developer Guide](https://github.com/apache/royale-compiler/wiki/Developer-Guide) available on the Apache Royale Compiler Wiki. +> Read about https://github.com/apache/royale-compiler/wiki/Developer-Guide; target="_blank">how to contribute to the Apache Royale Compiler.
[royale-docs] branch master updated: Update compiler.md
This is an automated email from the ASF dual-hosted git repository. andreww pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/royale-docs.git The following commit(s) were added to refs/heads/master by this push: new b08b7ee Update compiler.md b08b7ee is described below commit b08b7ee7f232b60277591988fb6926c699e8cd55 Author: Andrew Wetmore AuthorDate: Fri Apr 10 08:56:26 2020 -0300 Update compiler.md in process --- compiler.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler.md b/compiler.md index a3bfd9e..97736ad 100644 --- a/compiler.md +++ b/compiler.md @@ -46,13 +46,13 @@ In an Apache Royale distribution, there is a `compiler-royaleTasks.jar` in the ` ### IDEs -Consult your IDE documentation for how to launch the Royale Compiler. You can generate a IDE distribution from Apache Maven and/or Apache ANT. +Consult your IDE documentation for how to launch the Royale Compiler. You can generate an IDE distribution from Apache Maven and/or Apache ANT. ### NPM -You should be able to run `mxmlc` or `compc` from the command-line after installing Royale via NPM. Use `mxmlc --help` to see the latest list of options. +You should be able to run `mxmlc` or `compc` from the command line after installing Royale via npm. Use `mxmlc --help` to see the latest list of options. -### Command-line +### Command line The `js/bin` folder should contain `mxmlc` and `compc` scripts that will launch the compiler. Use `mxmlc --help` to see the latest list of options.
[royale-docs] branch master updated: Update compiler.md
This is an automated email from the ASF dual-hosted git repository. andreww pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/royale-docs.git The following commit(s) were added to refs/heads/master by this push: new c239064 Update compiler.md c239064 is described below commit c239064a1526b98c463bb0e7dc8d254f10fb8e30 Author: Andrew Wetmore AuthorDate: Fri Apr 10 08:51:23 2020 -0300 Update compiler.md still editing. --- compiler.md | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/compiler.md b/compiler.md index b6b5bd3..a3bfd9e 100644 --- a/compiler.md +++ b/compiler.md @@ -24,17 +24,17 @@ permalink: /compiler Turn your source code into one or more compiled outputs -Royale provide a compiler and a command-line debugger to turn your source code into the required output. The compiler takes [AS3](features/as3) & [MXML](features/mxml) (and CSS) as inputs. +Royale provides a compiler (some call it a transpiler or cross-compiler) and a command-line debugger to turn your source code into compiled output you can share with users. The compiler takes [AS3](features/as3), [MXML](features/mxml), and CSS as inputs. -The main output of the compiler is **JavaScript** (some call it a transpiler or cross-compiler). The compiler can also output **SWFs** for the **Adobe Flash** runtimes. There is some initial work on **Web Assembly** output. +The main output of the compiler is **JavaScript**. The compiler can also output **SWF**s for the **Adobe Flash** and **AIR** runtimes. There is some initial work on **Web Assembly** output. -> The compiler has been designed to make it relatively straightforward to add additional output formats. +> It is relatively straightforward to add additional output formats to the compiler. -The code is based on the ActionScript Compiler 2.0 donated to Apache by Adobe. The SWF output was pretty much working at the time of donation. The JavaScript output code is a new implementation by Apache committers +The code is based on the https://www.adobe.com/content/dam/acom/en/devnet/air/pdfs/adobe-actionscript-compiler-20-release-notes.pdf; target="_blank">ActionScript Compiler 2.0 that Adobe donated to Apache. The SWF output was pretty much working at the time of donation. Volunteers working on the Apache Flex and Royale projects have created the JavaScript output code. ## User Guide -The Royale Compiler does many things besides compile **MXML** and **ActionScript** into **JavaScript** and/or **SWF**. But if that's all you want to do, you can use the compiler with **Apache Maven**, **Apache Ant**, several **IDEs**, **NPM** and the command-line. Below are some pointers to getting started: +The Royale Compiler does many things besides compile **MXML** and **ActionScript** into **JavaScript** and/or **SWF**. But if that's all you want to do, you can use the compiler with https://maven.apache.org/; target="_blank">Apache Maven, https://ant.apache.org/; target="_blank">Apache Ant, several [IDEs](development-tools.html), https://www.npmjs.com/; target="_blank">npm and through the command-line. Below are some pointers to getting started: ### Apache Maven @@ -62,4 +62,4 @@ Royale provide several compiler options to customize the use. You can check the - [Compiler Options](compiler/compiler-options) -> To read about how to contribute to Apache Royale Compiler use the following [Apache Royale Compiler Developer Guide](https://github.com/apache/royale-compiler/wiki/Developer-Guide) available on the Apache Royale Compiler Wiki. \ No newline at end of file +> To read about how to contribute to Apache Royale Compiler use the following [Apache Royale Compiler Developer Guide](https://github.com/apache/royale-compiler/wiki/Developer-Guide) available on the Apache Royale Compiler Wiki.
[royale-docs] branch master updated: add some anchor for links
This is an automated email from the ASF dual-hosted git repository. carlosrovira pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/royale-docs.git The following commit(s) were added to refs/heads/master by this push: new 69f37b2 add some anchor for links 69f37b2 is described below commit 69f37b21b6c71fff20bda8e4d40b8543e2bbd501 Author: Carlos Rovira AuthorDate: Fri Apr 10 13:43:53 2020 +0200 add some anchor for links --- compiler/compiler-options.md | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/compiler/compiler-options.md b/compiler/compiler-options.md index f8a3a17..b3edc4c 100644 --- a/compiler/compiler-options.md +++ b/compiler/compiler-options.md @@ -24,11 +24,17 @@ permalink: /compiler/compiler-options List of Available Compiler Options +Page Contents: + +* [html-output-filename](compiler/compiler-options.html#html-output-filename) +* [html-template](compiler/compiler-options.html#html-template) +* [js-define](compiler/compiler-options.html#js-define) + Royale provide the following list of compiler options ## JavaScript Compiler Options -### html-output-filename +### html-output-filename {#html-output-filename} Specifies the file name of the HTML file generated by the compiler to load the Apache Royale application in the browser. @@ -36,7 +42,7 @@ Specifies the file name of the HTML file generated by the compiler to load the A -compiler.html-output-filename custom.html ``` -### html-template +### html-template {#html-template} Specifies the path to an optional template for the the HTML file generated by the compiler to load the Apache Royale application in the browser. @@ -80,7 +86,7 @@ Note that some reflection utility functions require this to be true in order for -js-default-initializers=true; ``` -### js-define +### js-define {#js-define} Defines a global constant at compile time for the JavaScript output. May be a boolean, number, string, or expression.
[royale-docs] branch master updated: add compiler and compiler-options pages. Still WIP
This is an automated email from the ASF dual-hosted git repository. carlosrovira pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/royale-docs.git The following commit(s) were added to refs/heads/master by this push: new e53bc98 add compiler and compiler-options pages. Still WIP e53bc98 is described below commit e53bc982914f89cff7a4e8a2c6f1f169e7389720 Author: Carlos Rovira AuthorDate: Fri Apr 10 13:21:39 2020 +0200 add compiler and compiler-options pages. Still WIP --- _data/toc.json | 8 ++ compiler.md | 65 + compiler/compiler-options.md | 216 +++ 3 files changed, 289 insertions(+) diff --git a/_data/toc.json b/_data/toc.json index 9a3633e..0716e4a 100644 --- a/_data/toc.json +++ b/_data/toc.json @@ -205,6 +205,14 @@ ] }, { +"path": "compiler.md", +"children": [ +{ +"path": "compiler/compiler-options.md" +} +] +}, +{ "path": "create-an-application.md", "children": [ { diff --git a/compiler.md b/compiler.md new file mode 100644 index 000..b6b5bd3 --- /dev/null +++ b/compiler.md @@ -0,0 +1,65 @@ +--- +# 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. + +layout: docpage +title: Compiler +description: Refactoring code to remove circular dependencies +permalink: /compiler +--- + +# Apache Royale Compiler + +Turn your source code into one or more compiled outputs + +Royale provide a compiler and a command-line debugger to turn your source code into the required output. The compiler takes [AS3](features/as3) & [MXML](features/mxml) (and CSS) as inputs. + +The main output of the compiler is **JavaScript** (some call it a transpiler or cross-compiler). The compiler can also output **SWFs** for the **Adobe Flash** runtimes. There is some initial work on **Web Assembly** output. + +> The compiler has been designed to make it relatively straightforward to add additional output formats. + +The code is based on the ActionScript Compiler 2.0 donated to Apache by Adobe. The SWF output was pretty much working at the time of donation. The JavaScript output code is a new implementation by Apache committers + +## User Guide + +The Royale Compiler does many things besides compile **MXML** and **ActionScript** into **JavaScript** and/or **SWF**. But if that's all you want to do, you can use the compiler with **Apache Maven**, **Apache Ant**, several **IDEs**, **NPM** and the command-line. Below are some pointers to getting started: + +### Apache Maven + +There are some examples in the `apache/royale-asjs` repo in the `examples` folder. The `pom.xml` files should be useful as a starting point. There are also **Maven archetypes** available in Apache Royale releases. + +### Apache Ant + +In an Apache Royale distribution, there is a `compiler-royaleTasks.jar` in the `js/lib` folder that contains Ant tasks for the Royale Compiler. There is an mxmlc task for creating applications and a compc task for creating libraries. + +### IDEs + +Consult your IDE documentation for how to launch the Royale Compiler. You can generate a IDE distribution from Apache Maven and/or Apache ANT. + +### NPM + +You should be able to run `mxmlc` or `compc` from the command-line after installing Royale via NPM. Use `mxmlc --help` to see the latest list of options. + +### Command-line + +The `js/bin` folder should contain `mxmlc` and `compc` scripts that will launch the compiler. Use `mxmlc --help` to see the latest list of options. + +## Compiler Options + +Royale provide several compiler options to customize the use. You can check the list of compiler options here: + +- [Compiler Options](compiler/compiler-options) + +> To read about how to contribute to Apache Royale Compiler use the following [Apache Royale Compiler Developer Guide](https://github.com/apache/royale-compiler/wiki/Developer-Guide) available on the Apache Royale Compiler Wiki. \ No newline at end of file diff --git a/compiler/compiler-options.md b/compiler/compiler-options.md new file mode 100644 index 000..f8a3a17 ---
[royale-compiler] 02/02: sign and upload seemed to work
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-compiler.git commit 572cd8ad58c979666176a8ffb575ebfc75a86791 Author: Alex Harui AuthorDate: Fri Apr 10 00:10:23 2020 -0700 sign and upload seemed to work --- compiler-build-tools/releasesteps.xml | 77 +++ 1 file changed, 33 insertions(+), 44 deletions(-) diff --git a/compiler-build-tools/releasesteps.xml b/compiler-build-tools/releasesteps.xml index f6d1c4e..d32352c 100644 --- a/compiler-build-tools/releasesteps.xml +++ b/compiler-build-tools/releasesteps.xml @@ -138,7 +138,7 @@ - + @@ -232,35 +232,29 @@ - + - - - - + - - - - + - + - + - + @@ -276,53 +270,48 @@ - + - + https://repository.apache.org/service/local/staging/deploy/maven2; /> - - + + - - + + + - - - - - - - - - - - - - - + + - + - - - - - - - - - - +
[royale-compiler] branch develop updated (1266488 -> 572cd8a)
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-compiler.git. from 1266488 [maven-release-plugin] prepare for next development iteration new dcc21ca fix Royale_Compiler_Build_Tools_Release_Step_002 new 572cd8a sign and upload seemed to work 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: compiler-build-tools/releasesteps.xml | 110 ++ 1 file changed, 44 insertions(+), 66 deletions(-)
[royale-compiler] 01/02: fix Royale_Compiler_Build_Tools_Release_Step_002
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-compiler.git commit dcc21ca5f32aa877db6cf9429a294b75c9bcd7b6 Author: Alex Harui AuthorDate: Thu Apr 9 00:18:06 2020 -0700 fix Royale_Compiler_Build_Tools_Release_Step_002 --- compiler-build-tools/releasesteps.xml | 33 +++-- 1 file changed, 11 insertions(+), 22 deletions(-) diff --git a/compiler-build-tools/releasesteps.xml b/compiler-build-tools/releasesteps.xml index dccf319..f6d1c4e 100644 --- a/compiler-build-tools/releasesteps.xml +++ b/compiler-build-tools/releasesteps.xml @@ -105,7 +105,7 @@ - + - -http://apacheroyaleci2.westus2.cloudapp.azure.com:8080/job/Royale_Release_Step_003/lastSuccessfulBuild/artifact/*zip*/archive.zip; dest="${artifactfolder}/archive.zip" /> +http://apacheroyaleci2.westus2.cloudapp.azure.com:8080/job/Royale_Compiler_Build_Tools_Release_Step_002/lastSuccessfulBuild/artifact/*zip*/archive.zip; dest="${artifactfolder}/archive.zip" /> - - + - @@ -156,7 +153,7 @@ unless="artifact.folder.found"/> - + @@ -173,18 +170,11 @@ - - - - - - - + @@ -210,7 +200,6 @@ - @@ -222,23 +211,23 @@ comparing ${thisFile}-${jar.version} - + - + - + - + - +