This is an automated email from the ASF dual-hosted git repository.
harbs 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 b7ce2cd7b5 Cleaned up more classes
b7ce2cd7b5 is described below
commit b7ce2cd7b58553b801de40d60f73648c889df25f
Author: Harbs <[email protected]>
AuthorDate: Thu Feb 26 01:32:31 2026 +0200
Cleaned up more classes
---
.../Style/src/main/resources/basic-manifest.xml | 6 -
.../apache/royale/style/stylebeads/MarginBlock.as | 42 ----
.../apache/royale/style/stylebeads/MarginInline.as | 40 ----
.../apache/royale/style/stylebeads/MarginStyle.as | 52 -----
.../apache/royale/style/stylebeads/OutlineStyle.as | 43 ----
.../apache/royale/style/stylebeads/PaddingStyle.as | 51 -----
.../apache/royale/style/stylebeads/SpacingBase.as | 216 ---------------------
7 files changed, 450 deletions(-)
diff --git a/frameworks/projects/Style/src/main/resources/basic-manifest.xml
b/frameworks/projects/Style/src/main/resources/basic-manifest.xml
index 0a3840ac96..8d1c6f1085 100644
--- a/frameworks/projects/Style/src/main/resources/basic-manifest.xml
+++ b/frameworks/projects/Style/src/main/resources/basic-manifest.xml
@@ -25,15 +25,11 @@
<component id="FlexContainerStyle"
class="org.apache.royale.style.stylebeads.FlexContainerStyle"/>
<component id="FlexItemStyle"
class="org.apache.royale.style.stylebeads.FlexItemStyle"/>
<component id="HeightStyle"
class="org.apache.royale.style.stylebeads.HeightStyle"/>
- <component id="MarginBlock"
class="org.apache.royale.style.stylebeads.MarginBlock"/>
- <component id="MarginInline"
class="org.apache.royale.style.stylebeads.MarginInline"/>
- <component id="MarginStyle"
class="org.apache.royale.style.stylebeads.MarginStyle"/>
<component id="MaxHeight"
class="org.apache.royale.style.stylebeads.MaxHeight"/>
<component id="MaxWidth"
class="org.apache.royale.style.stylebeads.MaxWidth"/>
<component id="MinHeight"
class="org.apache.royale.style.stylebeads.MinHeight"/>
<component id="MinWidth"
class="org.apache.royale.style.stylebeads.MinWidth"/>
<component id="OverflowStyle"
class="org.apache.royale.style.stylebeads.OverflowStyle"/>
- <component id="PaddingStyle"
class="org.apache.royale.style.stylebeads.PaddingStyle"/>
<component id="PositionStyle"
class="org.apache.royale.style.stylebeads.PositionStyle"/>
<component id="SelfPosition"
class="org.apache.royale.style.stylebeads.SelfPosition"/>
<component id="SizeStyle"
class="org.apache.royale.style.stylebeads.SizeStyle"/>
@@ -119,7 +115,6 @@
<component id="ForcedColorAdjust"
class="org.apache.royale.style.stylebeads.access.ForcedColorAdjust"/>
<component id="BorderStyle"
class="org.apache.royale.style.stylebeads.BorderStyle"/>
<component id="CompositeStyle"
class="org.apache.royale.style.stylebeads.CompositeStyle"/>
- <component id="OutlineStyle"
class="org.apache.royale.style.stylebeads.OutlineStyle"/>
<component id="MixBlendMode"
class="org.apache.royale.style.stylebeads.effects.MixBlendMode"/>
<component id="RingEffect"
class="org.apache.royale.style.stylebeads.effects.RingEffect"/>
<component id="AlignContent"
class="org.apache.royale.style.stylebeads.flexgrid.AlignContent"/>
@@ -212,5 +207,4 @@
<component id="TransformStyle"
class="org.apache.royale.style.stylebeads.transform.TransformStyle"/>
<component id="Translate"
class="org.apache.royale.style.stylebeads.transform.Translate"/>
-
</componentPackage>
diff --git
a/frameworks/projects/Style/src/main/royale/org/apache/royale/style/stylebeads/MarginBlock.as
b/frameworks/projects/Style/src/main/royale/org/apache/royale/style/stylebeads/MarginBlock.as
deleted file mode 100644
index 0cf50f022b..0000000000
---
a/frameworks/projects/Style/src/main/royale/org/apache/royale/style/stylebeads/MarginBlock.as
+++ /dev/null
@@ -1,42 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.style.stylebeads
-{
- public class MarginBlock extends MeasurementStyleBase
- {
- public function MarginBlock()
- {
- super();
-
- }
-
- //TODO https://tailwindcss.com/docs/margin
-
- override public function get selectors():Array
- {
- return [];
- }
-
- override public function get rules():Array
- {
- return [];
- }
-
- }
-}
\ No newline at end of file
diff --git
a/frameworks/projects/Style/src/main/royale/org/apache/royale/style/stylebeads/MarginInline.as
b/frameworks/projects/Style/src/main/royale/org/apache/royale/style/stylebeads/MarginInline.as
deleted file mode 100644
index 81736a923c..0000000000
---
a/frameworks/projects/Style/src/main/royale/org/apache/royale/style/stylebeads/MarginInline.as
+++ /dev/null
@@ -1,40 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.style.stylebeads
-{
- public class MarginInline extends MeasurementStyleBase
- {
- public function MarginInline()
- {
- super();
-
- }
- //TODO https://tailwindcss.com/docs/margin
- override public function get selectors():Array
- {
- return [];
- }
-
- override public function get rules():Array
- {
- return [];
- }
-
- }
-}
\ No newline at end of file
diff --git
a/frameworks/projects/Style/src/main/royale/org/apache/royale/style/stylebeads/MarginStyle.as
b/frameworks/projects/Style/src/main/royale/org/apache/royale/style/stylebeads/MarginStyle.as
deleted file mode 100644
index a7600deeb3..0000000000
---
a/frameworks/projects/Style/src/main/royale/org/apache/royale/style/stylebeads/MarginStyle.as
+++ /dev/null
@@ -1,52 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.style.stylebeads
-{
- import org.apache.royale.style.util.ThemeManager;
- import org.apache.royale.style.util.CSSUnit;
-
- public class MarginStyle extends SpacingBase
- {
- public function MarginStyle()
- {
- super();
-
- }
-
-
- override public function get selectors():Array
- {
- var items:Array = stringify();
- if(items.length > 1)
- return [".mt" + items[0], ".mr" + items[1],
".mb" + items[2], ".ml" + items[3]];
-
- return [".m" + items[0]];
- }
-
- override public function get rules():Array
- {
- var items:Array = stringify();
- if(items.length > 1)
- return ["margin-top:" + items[0] + ";",
"margin-right:" + items[1] + ";", "margin-bottom:" + items[2] + ";",
"margin-left:" + items[3] + ";"];
-
- return ["margin:" + items[0] + ";"];
- }
-
- }
-}
\ No newline at end of file
diff --git
a/frameworks/projects/Style/src/main/royale/org/apache/royale/style/stylebeads/OutlineStyle.as
b/frameworks/projects/Style/src/main/royale/org/apache/royale/style/stylebeads/OutlineStyle.as
deleted file mode 100644
index bf73286b62..0000000000
---
a/frameworks/projects/Style/src/main/royale/org/apache/royale/style/stylebeads/OutlineStyle.as
+++ /dev/null
@@ -1,43 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.style.stylebeads
-{
- public class OutlineStyle extends StyleBeadBase
- {
- public function OutlineStyle()
- {
- super();
- }
-
- /**
- * TODO:
- * outline-offset, outline-color, outline-style, outline-width
- */
-
- override public function get selectors():Array
- {
- return [];
- }
-
- override public function get rules():Array
- {
- return [];
- }
- }
-}
\ No newline at end of file
diff --git
a/frameworks/projects/Style/src/main/royale/org/apache/royale/style/stylebeads/PaddingStyle.as
b/frameworks/projects/Style/src/main/royale/org/apache/royale/style/stylebeads/PaddingStyle.as
deleted file mode 100644
index cb9f70161f..0000000000
---
a/frameworks/projects/Style/src/main/royale/org/apache/royale/style/stylebeads/PaddingStyle.as
+++ /dev/null
@@ -1,51 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.style.stylebeads
-{
- import org.apache.royale.style.util.ThemeManager;
- import org.apache.royale.style.util.CSSUnit;
-
- public class PaddingStyle extends SpacingBase
- {
- public function PaddingStyle()
- {
- super();
-
- }
-
- override public function get selectors():Array
- {
- var items:Array = stringify();
- if(items.length > 1)
- return [".pt" + items[0], ".pr" + items[1],
".pb" + items[2], ".pl" + items[3]];
-
- return [".p" + items[0]];
- }
-
- override public function get rules():Array
- {
- var items:Array = stringify();
- if(items.length > 1)
- return ["padding-top:" + items[0] + ";",
"padding-right:" + items[1] + ";", "padding-bottom:" + items[2] + ";",
"padding-left:" + items[3] + ";"];
-
- return ["padding:" + items[0] + ";"];
- }
-
- }
-}
\ No newline at end of file
diff --git
a/frameworks/projects/Style/src/main/royale/org/apache/royale/style/stylebeads/SpacingBase.as
b/frameworks/projects/Style/src/main/royale/org/apache/royale/style/stylebeads/SpacingBase.as
deleted file mode 100644
index 34dc2f09f5..0000000000
---
a/frameworks/projects/Style/src/main/royale/org/apache/royale/style/stylebeads/SpacingBase.as
+++ /dev/null
@@ -1,216 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.style.stylebeads
-{
- import org.apache.royale.style.util.ThemeManager;
- import org.apache.royale.style.util.CSSUnit;
-
- abstract public class SpacingBase extends StyleBeadBase
- {
- public function SpacingBase()
- {
- super();
-
- }
-
- private var _unit:String;
-
- public function get unit():String
- {
- return _unit || CSSUnit.PX;
- }
-
- public function set unit(value:String):void
- {
- _unit = value;
- }
-
- private var _spacing:Number;
-
- [[Inspectable(category="General", defaultValue="0")]]
- public function get spacing():Number
- {
- return isNaN(_spacing) ?
ThemeManager.instance.activeTheme.spacing : _spacing;
- }
-
- public function set spacing(value:Number):void
- {
- _spacing = value;
- }
-
- private var _leftValue:Number;
- public function get leftValue():Number
- {
- return _leftValue;
- }
- public function set leftValue(value:Number):void
- {
- _leftValue = value;
- }
-
- private var _rightValue:Number;
- public function get rightValue():Number
- {
- return _rightValue;
- }
- public function set rightValue(value:Number):void
- {
- _rightValue = value;
- }
-
- private var _topValue:Number;
- public function get topValue():Number
- {
- return _topValue;
- }
- public function set topValue(value:Number):void
- {
- _topValue = value;
- }
-
- private var _bottomValue:Number;
- public function get bottomValue():Number
- {
- return _bottomValue;
- }
- public function set bottomValue(value:Number):void
- {
- _bottomValue = value;
- }
-
- private var _leftStep:Number;
- public function get leftStep():Number
- {
- return _leftStep;
- }
- public function set leftStep(value:Number):void
- {
- _leftStep = value;
- }
-
- private var _rightStep:Number;
- public function get rightStep():Number
- {
- return _rightStep;
- }
- public function set rightStep(value:Number):void
- {
- _rightStep = value;
- }
-
- private var _topStep:Number;
- public function get topStep():Number
- {
- return _topStep;
- }
- public function set topStep(value:Number):void
- {
- _topStep = value;
- }
- private var _bottomStep:Number;
-
- public function get bottomStep():Number
- {
- return _bottomStep;
- }
-
- public function set bottomStep(value:Number):void
- {
- _bottomStep = value;
- }
-
- private var _left:String;
-
- public function get left():String
- {
- return _left;
- }
-
- public function set left(value:String):void
- {
- _left = value;
- }
- private var _right:String;
-
- public function get right():String
- {
- return _right;
- }
-
- public function set right(value:String):void
- {
- _right = value;
- }
- private var _top:String;
-
- public function get top():String
- {
- return _top;
- }
-
- public function set top(value:String):void
- {
- _top = value;
- }
- private var _bottom:String;
-
- public function get bottom():String
- {
- return _bottom;
- }
-
- public function set bottom(value:String):void
- {
- _bottom = value;
- }
-
- public var auto:Boolean;
-
- private function computeVal(str:String, value:Number,
step:Number):String
- {
- if (str)
- return str;
- if (!isNaN(value))
- return value + unit;
-
- if (!isNaN(step))
- {
- var s:Number = unit == CSSUnit.REM ? spacing /
16 : spacing;
- return (step * s) + unit;
- }
- return "";
- }
-
- protected function stringify():Array
- {
- if(auto)
- return ["auto"];
-
- var left:String = computeVal(_left, _leftValue,
_leftStep);
- var right:String = computeVal(_right, _rightValue,
_rightStep);
- var top:String = computeVal(_top, _topValue, _topStep);
- var bottom:String = computeVal(_bottom, _bottomValue,
_bottomStep);
- if(left == right && right == top && top == bottom)
- return [left];
-
- return [top, right, bottom, left];
- }
-
- }
-}
\ No newline at end of file