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 17ba8d9 Added SVG elements
17ba8d9 is described below
commit 17ba8d90c08bb53480809e63d624a5bfffb99654
Author: Harbs <[email protected]>
AuthorDate: Mon Jan 13 00:14:30 2020 +0200
Added SVG elements
---
.../HTML/src/main/resources/html-manifest.xml | 44 ++++
.../apache/royale/svg/elements/AnimateMotion.as | 42 ++++
.../apache/royale/svg/elements/AnimateTransform.as | 42 ++++
.../org/apache/royale/svg/elements/Circle.as | 60 ++++++
.../org/apache/royale/svg/elements/ClipPath.as | 42 ++++
.../royale/org/apache/royale/svg/elements/Defs.as | 42 ++++
.../org/apache/royale/svg/elements/Ellipse.as | 67 ++++++
.../royale/org/apache/royale/svg/elements/G.as | 42 ++++
.../royale/org/apache/royale/svg/elements/Image.as | 57 +++++
.../royale/org/apache/royale/svg/elements/Line.as | 67 ++++++
.../org/apache/royale/svg/elements/Marker.as | 42 ++++
.../royale/org/apache/royale/svg/elements/Mask.as | 42 ++++
.../royale/org/apache/royale/svg/elements/Path.as | 49 +++++
.../org/apache/royale/svg/elements/Pattern.as | 42 ++++
.../org/apache/royale/svg/elements/Polygon.as | 48 +++++
.../org/apache/royale/svg/elements/Polyline.as | 48 +++++
.../royale/org/apache/royale/svg/elements/Rect.as | 55 +++++
.../org/apache/royale/svg/elements/SVGBase.as | 237 +++++++++++++++++++++
.../royale/org/apache/royale/svg/elements/Svg.as | 55 +++++
.../org/apache/royale/svg/elements/Switch.as | 43 ++++
.../org/apache/royale/svg/elements/Symbol.as | 48 +++++
.../royale/org/apache/royale/svg/elements/Text.as | 54 +++++
.../royale/org/apache/royale/svg/elements/Use.as | 48 +++++
23 files changed, 1316 insertions(+)
diff --git a/frameworks/projects/HTML/src/main/resources/html-manifest.xml
b/frameworks/projects/HTML/src/main/resources/html-manifest.xml
index 60cb24a..c48e606 100644
--- a/frameworks/projects/HTML/src/main/resources/html-manifest.xml
+++ b/frameworks/projects/HTML/src/main/resources/html-manifest.xml
@@ -67,4 +67,48 @@
<component id="InnerHTML" class="org.apache.royale.html.beads.InnerHTML"/>
<component id="TextNode" class="org.apache.royale.html.TextNode" />
+ <component id="AnimateMotion"
class="org.apache.royale.svg.elements.AnimateMotion" />
+ <component id="AnimateTransform"
class="org.apache.royale.svg.elements.AnimateTransform" />
+ <component id="Circle" class="org.apache.royale.svg.elements.Circle" />
+ <component id="ClipPath" class="org.apache.royale.svg.elements.ClipPath" />
+ <component id="Defs" class="org.apache.royale.svg.elements.Defs" />
+ <component id="Ellipse" class="org.apache.royale.svg.elements.Ellipse" />
+ <component id="G" class="org.apache.royale.svg.elements.G" />
+ <component id="Image" class="org.apache.royale.svg.elements.Image" />
+ <component id="Line" class="org.apache.royale.svg.elements.Line" />
+ <component id="Marker" class="org.apache.royale.svg.elements.Marker" />
+ <component id="Mask" class="org.apache.royale.svg.elements.Mask" />
+ <component id="Path" class="org.apache.royale.svg.elements.Path" />
+ <component id="Pattern" class="org.apache.royale.svg.elements.Pattern" />
+ <component id="Polygon" class="org.apache.royale.svg.elements.Polygon" />
+ <component id="Polyline" class="org.apache.royale.svg.elements.Polyline" />
+ <component id="Rect" class="org.apache.royale.svg.elements.Rect" />
+ <component id="Svg" class="org.apache.royale.svg.elements.Svg" />
+ <component id="Switch" class="org.apache.royale.svg.elements.Switch" />
+ <component id="Symbol" class="org.apache.royale.svg.elements.Symbol" />
+ <component id="Text" class="org.apache.royale.svg.elements.Text" />
+ <component id="Use" class="org.apache.royale.svg.elements.Use" />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
</componentPackage>
diff --git
a/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/AnimateMotion.as
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/AnimateMotion.as
new file mode 100644
index 0000000..625c26b
--- /dev/null
+++
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/AnimateMotion.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.svg.elements
+{
+ COMPILE::JS
+ {
+ import org.apache.royale.html.util.addSvgElementToWrapper;
+ import org.apache.royale.core.WrappedHTMLElement;
+ }
+ COMPILE::SWF
+ public class AnimateMotion{
+ public function AnimateMotion(){}
+ }
+
+ COMPILE::JS
+ public class AnimateMotion extends SVGBase
+ {
+ public function AnimateMotion()
+ {
+ super();
+ }
+ override protected function createElement():WrappedHTMLElement{
+ return addSvgElementToWrapper(this, 'animateMotion');
+ }
+ }
+}
\ No newline at end of file
diff --git
a/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/AnimateTransform.as
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/AnimateTransform.as
new file mode 100644
index 0000000..52d2d61
--- /dev/null
+++
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/AnimateTransform.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.svg.elements
+{
+ COMPILE::JS
+ {
+ import org.apache.royale.html.util.addSvgElementToWrapper;
+ import org.apache.royale.core.WrappedHTMLElement;
+ }
+ COMPILE::SWF
+ public class AnimateTransform{
+ public function AnimateTransform(){}
+ }
+
+ COMPILE::JS
+ public class AnimateTransform extends SVGBase
+ {
+ public function AnimateTransform()
+ {
+ super();
+ }
+ override protected function createElement():WrappedHTMLElement{
+ return addSvgElementToWrapper(this, 'animateTransform');
+ }
+ }
+}
\ No newline at end of file
diff --git
a/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Circle.as
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Circle.as
new file mode 100644
index 0000000..3bacab7
--- /dev/null
+++
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Circle.as
@@ -0,0 +1,60 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.svg.elements
+{
+ COMPILE::JS
+ {
+ import org.apache.royale.html.util.addSvgElementToWrapper;
+ import org.apache.royale.core.WrappedHTMLElement;
+ }
+ COMPILE::SWF
+ public class Circle{
+ public function Circle(){}
+ }
+
+ COMPILE::JS
+ public class Circle extends SVGBase
+ {
+ public function Circle()
+ {
+ super();
+ }
+ override protected function createElement():WrappedHTMLElement{
+ return addSvgElementToWrapper(this, 'circle');
+ }
+ public function get cx():String{
+ return element.getAttribute("cx");
+ }
+ public function set cx(value:String):void{
+ element.setAttribute("cx",value);
+ }
+ public function get cy():String{
+ return element.getAttribute("cy");
+ }
+ public function set cy(value:String):void{
+ element.setAttribute("cy",value);
+ }
+ public function get r():String{
+ return element.getAttribute("r");
+ }
+ public function set r(value:String):void{
+ element.setAttribute("r",value);
+ }
+ }
+}
\ No newline at end of file
diff --git
a/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/ClipPath.as
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/ClipPath.as
new file mode 100644
index 0000000..58b1dbc
--- /dev/null
+++
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/ClipPath.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.svg.elements
+{
+ COMPILE::JS
+ {
+ import org.apache.royale.html.util.addSvgElementToWrapper;
+ import org.apache.royale.core.WrappedHTMLElement;
+ }
+ COMPILE::SWF
+ public class ClipPath{
+ public function ClipPath(){}
+ }
+
+ COMPILE::JS
+ public class ClipPath extends SVGBase
+ {
+ public function ClipPath()
+ {
+ super();
+ }
+ override protected function createElement():WrappedHTMLElement{
+ return addSvgElementToWrapper(this, 'clipPath');
+ }
+ }
+}
\ No newline at end of file
diff --git
a/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Defs.as
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Defs.as
new file mode 100644
index 0000000..d9ce7f9
--- /dev/null
+++
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Defs.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.svg.elements
+{
+ COMPILE::JS
+ {
+ import org.apache.royale.html.util.addSvgElementToWrapper;
+ import org.apache.royale.core.WrappedHTMLElement;
+ }
+ COMPILE::SWF
+ public class Defs{
+ public function Defs(){}
+ }
+
+ COMPILE::JS
+ public class Defs extends SVGBase
+ {
+ public function Defs()
+ {
+ super();
+ }
+ override protected function createElement():WrappedHTMLElement{
+ return addSvgElementToWrapper(this, 'defs');
+ }
+ }
+}
\ No newline at end of file
diff --git
a/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Ellipse.as
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Ellipse.as
new file mode 100644
index 0000000..e3735bd
--- /dev/null
+++
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Ellipse.as
@@ -0,0 +1,67 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.svg.elements
+{
+ COMPILE::JS
+ {
+ import org.apache.royale.html.util.addSvgElementToWrapper;
+ import org.apache.royale.core.WrappedHTMLElement;
+ }
+ COMPILE::SWF
+ public class Ellipse{
+ public function Ellipse(){}
+ }
+
+ COMPILE::JS
+ public class Ellipse extends SVGBase
+ {
+ public function Ellipse()
+ {
+ super();
+ }
+ override protected function createElement():WrappedHTMLElement{
+ return addSvgElementToWrapper(this, 'ellipse');
+ }
+
+ public function get cx():String{
+ return element.getAttribute("cx");
+ }
+ public function set cx(value:String):void{
+ element.setAttribute("cx",value);
+ }
+ public function get cy():String{
+ return element.getAttribute("cy");
+ }
+ public function set cy(value:String):void{
+ element.setAttribute("cy",value);
+ }
+ public function get rx():String{
+ return element.getAttribute("rx");
+ }
+ public function set rx(value:String):void{
+ element.setAttribute("rx",value);
+ }
+ public function get ry():String{
+ return element.getAttribute("ry");
+ }
+ public function set ry(value:String):void{
+ element.setAttribute("ry",value);
+ }
+ }
+}
\ No newline at end of file
diff --git
a/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/G.as
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/G.as
new file mode 100644
index 0000000..9a32ed7
--- /dev/null
+++
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/G.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.svg.elements
+{
+ COMPILE::JS
+ {
+ import org.apache.royale.html.util.addSvgElementToWrapper;
+ import org.apache.royale.core.WrappedHTMLElement;
+ }
+ COMPILE::SWF
+ public class G{
+ public function G(){}
+ }
+
+ COMPILE::JS
+ public class G extends SVGBase
+ {
+ public function G()
+ {
+ super();
+ }
+ override protected function createElement():WrappedHTMLElement{
+ return addSvgElementToWrapper(this, 'g');
+ }
+ }
+}
\ No newline at end of file
diff --git
a/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Image.as
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Image.as
new file mode 100644
index 0000000..7046a48
--- /dev/null
+++
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Image.as
@@ -0,0 +1,57 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.svg.elements
+{
+ COMPILE::JS
+ {
+ import org.apache.royale.html.util.addSvgElementToWrapper;
+ import org.apache.royale.core.WrappedHTMLElement;
+ }
+ COMPILE::SWF
+ public class Image{
+ public function Image(){}
+ }
+
+ COMPILE::JS
+ public class Image extends SVGBase
+ {
+ public function Image()
+ {
+ super();
+ }
+ override protected function createElement():WrappedHTMLElement{
+ return addSvgElementToWrapper(this, 'image');
+ }
+
+ public function get href():String{
+ return element.getAttribute("href");
+ }
+ public function set href(value:String):void{
+ element.setAttribute("href",value);
+ }
+
+ public function get preserveAspectRatio():String{
+ return element.getAttribute("preserveAspectRatio");
+ }
+ public function set preserveAspectRatio(value:String):void{
+ element.setAttribute("preserveAspectRatio",value);
+ }
+
+ }
+}
\ No newline at end of file
diff --git
a/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Line.as
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Line.as
new file mode 100644
index 0000000..1886c23
--- /dev/null
+++
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Line.as
@@ -0,0 +1,67 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.svg.elements
+{
+ COMPILE::JS
+ {
+ import org.apache.royale.html.util.addSvgElementToWrapper;
+ import org.apache.royale.core.WrappedHTMLElement;
+ }
+ COMPILE::SWF
+ public class Line{
+ public function Line(){}
+ }
+
+ COMPILE::JS
+ public class Line extends SVGBase
+ {
+ public function Line()
+ {
+ super();
+ }
+ override protected function createElement():WrappedHTMLElement{
+ return addSvgElementToWrapper(this, 'line');
+ }
+
+ public function get x1():*{
+ return element.getAttribute("x1");
+ }
+ public function set x1(value:*):void{
+ element.setAttribute("x1",value);
+ }
+ public function get x2():*{
+ return element.getAttribute("x2");
+ }
+ public function set x2(value:*):void{
+ element.setAttribute("x2",value);
+ }
+ public function get y1():*{
+ return element.getAttribute("y1");
+ }
+ public function set y1(value:*):void{
+ element.setAttribute("y1",value);
+ }
+ public function get y2():*{
+ return element.getAttribute("y2");
+ }
+ public function set y2(value:*):void{
+ element.setAttribute("y2",value);
+ }
+ }
+}
\ No newline at end of file
diff --git
a/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Marker.as
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Marker.as
new file mode 100644
index 0000000..d5de137
--- /dev/null
+++
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Marker.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.svg.elements
+{
+ COMPILE::JS
+ {
+ import org.apache.royale.html.util.addSvgElementToWrapper;
+ import org.apache.royale.core.WrappedHTMLElement;
+ }
+ COMPILE::SWF
+ public class Marker{
+ public function Marker(){}
+ }
+
+ COMPILE::JS
+ public class Marker extends SVGBase
+ {
+ public function Marker()
+ {
+ super();
+ }
+ override protected function createElement():WrappedHTMLElement{
+ return addSvgElementToWrapper(this, 'marker');
+ }
+ }
+}
\ No newline at end of file
diff --git
a/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Mask.as
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Mask.as
new file mode 100644
index 0000000..c7fc501
--- /dev/null
+++
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Mask.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.svg.elements
+{
+ COMPILE::JS
+ {
+ import org.apache.royale.html.util.addSvgElementToWrapper;
+ import org.apache.royale.core.WrappedHTMLElement;
+ }
+ COMPILE::SWF
+ public class Mask{
+ public function Mask(){}
+ }
+
+ COMPILE::JS
+ public class Mask extends SVGBase
+ {
+ public function Mask()
+ {
+ super();
+ }
+ override protected function createElement():WrappedHTMLElement{
+ return addSvgElementToWrapper(this, 'mask');
+ }
+ }
+}
\ No newline at end of file
diff --git
a/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Path.as
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Path.as
new file mode 100644
index 0000000..a5f5f11
--- /dev/null
+++
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Path.as
@@ -0,0 +1,49 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.svg.elements
+{
+ COMPILE::JS
+ {
+ import org.apache.royale.html.util.addSvgElementToWrapper;
+ import org.apache.royale.core.WrappedHTMLElement;
+ }
+ COMPILE::SWF
+ public class Path{
+ public function Path(){}
+ }
+
+ COMPILE::JS
+ public class Path extends SVGBase
+ {
+ public function Path()
+ {
+ super();
+ }
+ override protected function createElement():WrappedHTMLElement{
+ return addSvgElementToWrapper(this, 'path');
+ }
+
+ public function get d():String{
+ return element.getAttribute("d");
+ }
+ public function set d(value:String):void{
+ element.setAttribute("d",value);
+ }
+ }
+}
\ No newline at end of file
diff --git
a/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Pattern.as
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Pattern.as
new file mode 100644
index 0000000..9d6ec30
--- /dev/null
+++
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Pattern.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.svg.elements
+{
+ COMPILE::JS
+ {
+ import org.apache.royale.html.util.addSvgElementToWrapper;
+ import org.apache.royale.core.WrappedHTMLElement;
+ }
+ COMPILE::SWF
+ public class Pattern{
+ public function Pattern(){}
+ }
+
+ COMPILE::JS
+ public class Pattern extends SVGBase
+ {
+ public function Pattern()
+ {
+ super();
+ }
+ override protected function createElement():WrappedHTMLElement{
+ return addSvgElementToWrapper(this, 'pattern');
+ }
+ }
+}
\ No newline at end of file
diff --git
a/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Polygon.as
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Polygon.as
new file mode 100644
index 0000000..ba202f5
--- /dev/null
+++
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Polygon.as
@@ -0,0 +1,48 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.svg.elements
+{
+ COMPILE::JS
+ {
+ import org.apache.royale.html.util.addSvgElementToWrapper;
+ import org.apache.royale.core.WrappedHTMLElement;
+ }
+ COMPILE::SWF
+ public class Polygon{
+ public function Polygon(){}
+ }
+
+ COMPILE::JS
+ public class Polygon extends SVGBase
+ {
+ public function Polygon()
+ {
+ super();
+ }
+ override protected function createElement():WrappedHTMLElement{
+ return addSvgElementToWrapper(this, 'polygon');
+ }
+ public function get points():String{
+ return element.getAttribute("points");
+ }
+ public function set points(value:String):void{
+ element.setAttribute("points",value);
+ }
+ }
+}
\ No newline at end of file
diff --git
a/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Polyline.as
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Polyline.as
new file mode 100644
index 0000000..bfb259b
--- /dev/null
+++
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Polyline.as
@@ -0,0 +1,48 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.svg.elements
+{
+ COMPILE::JS
+ {
+ import org.apache.royale.html.util.addSvgElementToWrapper;
+ import org.apache.royale.core.WrappedHTMLElement;
+ }
+ COMPILE::SWF
+ public class Polyline{
+ public function Polyline(){}
+ }
+
+ COMPILE::JS
+ public class Polyline extends SVGBase
+ {
+ public function Polyline()
+ {
+ super();
+ }
+ override protected function createElement():WrappedHTMLElement{
+ return addSvgElementToWrapper(this, 'polyline');
+ }
+ public function get points():String{
+ return element.getAttribute("points");
+ }
+ public function set points(value:String):void{
+ element.setAttribute("points",value);
+ }
+ }
+}
\ No newline at end of file
diff --git
a/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Rect.as
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Rect.as
new file mode 100644
index 0000000..60f738f
--- /dev/null
+++
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Rect.as
@@ -0,0 +1,55 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.svg.elements
+{
+ COMPILE::JS
+ {
+ import org.apache.royale.html.util.addSvgElementToWrapper;
+ import org.apache.royale.core.WrappedHTMLElement;
+ }
+ COMPILE::SWF
+ public class Rect{
+ public function Rect(){}
+ }
+
+ COMPILE::JS
+ public class Rect extends SVGBase
+ {
+ public function Rect()
+ {
+ super();
+ }
+ override protected function createElement():WrappedHTMLElement{
+ return addSvgElementToWrapper(this, 'rect');
+ }
+
+ public function get rx():*{
+ return element.getAttribute("rx");
+ }
+ public function set rx(value:*):void{
+ element.setAttribute("rx",value);
+ }
+ public function get ry():*{
+ return element.getAttribute("ry");
+ }
+ public function set ry(value:*):void{
+ element.setAttribute("ry",value);
+ }
+ }
+}
\ No newline at end of file
diff --git
a/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/SVGBase.as
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/SVGBase.as
new file mode 100644
index 0000000..990af14
--- /dev/null
+++
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/SVGBase.as
@@ -0,0 +1,237 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.svg.elements
+{
+ import org.apache.royale.html.Group;
+
+ public class SVGBase extends Group
+ {
+ public function SVGBase()
+ {
+ super();
+ }
+
+ override public function get x():Number{
+ return Number(element.getAttribute("x"));
+ }
+
+ override public function set x(value:Number):void{
+ element.setAttribute("x",value);
+ }
+
+ override public function get y():Number{
+ return Number(element.getAttribute("y"));
+ }
+ override public function set y(value:Number):void{
+ element.setAttribute("y",value);
+ }
+
+ override public function get width():Number{
+ return Number(element.getAttribute("width"));
+ }
+
+ override public function set width(value:Number):void{
+ element.setAttribute("width",value);
+ }
+
+ override public function get height():Number{
+ return Number(element.getAttribute("height"));
+ }
+ override public function set height(value:Number):void{
+ element.setAttribute("height",value);
+ }
+
+ protected function get svgElement():SVGElement{
+ return element as SVGElement;
+ }
+ public function get clipPath():String{
+ return element.getAttribute("clip-path");
+ }
+
+ public function set clipPath(value:String):void{
+ element.setAttribute("clip-path",value);
+ }
+ public function get clipRule():String{
+ return element.getAttribute("clip-rule");
+ }
+
+ public function set clipRule(value:String):void{
+ element.setAttribute("clip-rule",value);
+ }
+ public function get color():String{
+ return element.getAttribute("color");
+ }
+ public function set color(value:String):void{
+ element.setAttribute("color",value);
+ }
+
+ public function get colorInterpolation():String{
+ return element.getAttribute("color-interpolation");
+ }
+ public function set colorInterpolation(value:String):void{
+ element.setAttribute("color-interpolation",value);
+ }
+ public function get colorRendering():String{
+ return element.getAttribute("color-rendering");
+ }
+ public function set colorRendering(value:String):void{
+ element.setAttribute("color-rendering",value);
+ }
+ public function get cursor():String{
+ return element.getAttribute("cursor");
+ }
+ public function set cursor(value:String):void{
+ element.setAttribute("cursor",value);
+ }
+
+ public function get display():String{
+ return element.getAttribute("display");
+ }
+ public function set display(value:String):void{
+ element.setAttribute("display",value);
+ }
+ public function get fill():String{
+ return element.getAttribute("fill");
+ }
+ public function set fill(value:String):void{
+ element.setAttribute("fill",value);
+ }
+ public function get fillOpacity():String{
+ return element.getAttribute("fill-opacity");
+ }
+ public function set fillOpacity(value:String):void{
+ element.setAttribute("fill-opacity",value);
+ }
+ public function get fillRule():String{
+ return element.getAttribute("fill-rule");
+ }
+ public function set fillRule(value:String):void{
+ element.setAttribute("fill-rule",value);
+ }
+ public function get filter():String{
+ return element.getAttribute("filter");
+ }
+ public function set filter(value:String):void{
+ element.setAttribute("filter",value);
+ }
+ public function get mask():String{
+ return element.getAttribute("mask");
+ }
+ public function set mask(value:String):void{
+ element.setAttribute("mask",value);
+ }
+ public function get opacity():String{
+ return element.getAttribute("opacity");
+ }
+ public function set opacity(value:String):void{
+ element.setAttribute("opacity",value);
+ }
+ public function get pointerEvents():String{
+ return element.getAttribute("pointer-events");
+ }
+ public function set pointerEvents(value:String):void{
+ element.setAttribute("pointer-events",value);
+ }
+ public function get shapeRendering():String{
+ return element.getAttribute("shape-rendering");
+ }
+ public function set shapeRendering(value:String):void{
+ element.setAttribute("shape-rendering",value);
+ }
+ public function get stroke():String{
+ return element.getAttribute("stroke");
+ }
+ public function set stroke(value:String):void{
+ element.setAttribute("stroke",value);
+ }
+ public function get strokeDasharray():String{
+ return element.getAttribute("stroke-dasharray");
+ }
+ public function set strokeDasharray(value:String):void{
+ element.setAttribute("stroke-dasharray",value);
+ }
+ public function get strokeDashoffset():String{
+ return element.getAttribute("stroke-dashoffset");
+ }
+ public function set strokeDashoffset(value:String):void{
+ element.setAttribute("stroke-dashoffset",value);
+ }
+ public function get strokeLinecap():String{
+ return element.getAttribute("stroke-linecap");
+ }
+ public function set strokeLinecap(value:String):void{
+ element.setAttribute("stroke-linecap",value);
+ }
+ public function get strokeLinejoin():String{
+ return element.getAttribute("stroke-linejoin");
+ }
+ public function set strokeLinejoin(value:String):void{
+ element.setAttribute("stroke-linejoin",value);
+ }
+ public function get strokeMiterlimit():String{
+ return element.getAttribute("stroke-miterlimit");
+ }
+ public function set strokeMiterlimit(value:String):void{
+ element.setAttribute("stroke-miterlimit",value);
+ }
+ public function get strokeOpacity():String{
+ return element.getAttribute("stroke-opacity");
+ }
+ public function set strokeOpacity(value:String):void{
+ element.setAttribute("stroke-opacity",value);
+ }
+ public function get strokeWidth():String{
+ return element.getAttribute("stroke-width");
+ }
+ public function set strokeWidth(value:String):void{
+ element.setAttribute("stroke-width",value);
+ }
+ public function get transform():String{
+ return element.getAttribute("transform");
+ }
+ public function set transform(value:String):void{
+ element.setAttribute("transform",value);
+ }
+ public function get vectorEffect():String{
+ return element.getAttribute("vector-effect");
+ }
+ public function set vectorEffect(value:String):void{
+ element.setAttribute("vector-effect",value);
+ }
+ public function get visibility():String{
+ return element.getAttribute("visibility");
+ }
+ public function set visibility(value:String):void{
+ element.setAttribute("visibility",value);
+ }
+ public function get tabIndex():Number{
+ return Number(element.getAttribute("tabIndex"));
+ }
+ public function set tabIndex(value:Number):void{
+ element.setAttribute("tabIndex",value);
+ }
+ public function get lang():String{
+ return element.getAttribute("xml:lang");
+ }
+ public function set lang(value:String):void{
+ value = value || "und";
+ element.setAttribute("xml:lang",value);
+ }
+ }
+}
\ No newline at end of file
diff --git
a/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Svg.as
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Svg.as
new file mode 100644
index 0000000..fd26037
--- /dev/null
+++
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Svg.as
@@ -0,0 +1,55 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.svg.elements
+{
+ COMPILE::JS
+ {
+ import org.apache.royale.html.util.addSvgElementToWrapper;
+ import org.apache.royale.core.WrappedHTMLElement;
+ }
+ COMPILE::SWF
+ public class Svg{
+ public function Svg(){}
+ }
+
+ COMPILE::JS
+ public class Svg extends SVGBase
+ {
+ public function Svg()
+ {
+ super();
+ }
+ override protected function createElement():WrappedHTMLElement{
+ return addSvgElementToWrapper(this, 'svg');
+ }
+
+ public function get preserveAspectRatio():String{
+ return element.getAttribute("preserveAspectRatio");
+ }
+ public function set preserveAspectRatio(value:String):void{
+ element.setAttribute("preserveAspectRatio",value);
+ }
+ public function get viewBox():String{
+ return element.getAttribute("viewBox");
+ }
+ public function set viewBox(value:String):void{
+ element.setAttribute("viewBox",value);
+ }
+ }
+}
\ No newline at end of file
diff --git
a/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Switch.as
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Switch.as
new file mode 100644
index 0000000..0e53d38
--- /dev/null
+++
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Switch.as
@@ -0,0 +1,43 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.svg.elements
+{
+ COMPILE::JS
+ {
+ import org.apache.royale.html.util.addSvgElementToWrapper;
+ import org.apache.royale.core.WrappedHTMLElement;
+ }
+ COMPILE::SWF
+ public class Switch{
+ public function Switch(){}
+ }
+
+ COMPILE::JS
+ public class Switch extends SVGBase
+ {
+ public function Switch()
+ {
+ super();
+ }
+ override protected function createElement():WrappedHTMLElement{
+ return addSvgElementToWrapper(this, 'switch');
+ }
+
+ }
+}
\ No newline at end of file
diff --git
a/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Symbol.as
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Symbol.as
new file mode 100644
index 0000000..ce82646
--- /dev/null
+++
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Symbol.as
@@ -0,0 +1,48 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.svg.elements
+{
+ COMPILE::JS
+ {
+ import org.apache.royale.html.util.addSvgElementToWrapper;
+ import org.apache.royale.core.WrappedHTMLElement;
+ }
+ COMPILE::SWF
+ public class Symbol{
+ public function Symbol(){}
+ }
+
+ COMPILE::JS
+ public class Symbol extends SVGBase
+ {
+ public function Symbol()
+ {
+ super();
+ }
+ override protected function createElement():WrappedHTMLElement{
+ return addSvgElementToWrapper(this, 'symbol');
+ }
+ public function get viewBox():String{
+ return element.getAttribute("viewBox");
+ }
+ public function set viewBox(value:String):void{
+ element.setAttribute("viewBox",value);
+ }
+ }
+}
\ No newline at end of file
diff --git
a/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Text.as
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Text.as
new file mode 100644
index 0000000..418b979
--- /dev/null
+++
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Text.as
@@ -0,0 +1,54 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.svg.elements
+{
+ COMPILE::JS
+ {
+ import org.apache.royale.html.util.addSvgElementToWrapper;
+ import org.apache.royale.core.WrappedHTMLElement;
+ }
+ COMPILE::SWF
+ public class Text{
+ public function Text(){}
+ }
+
+ COMPILE::JS
+ public class Text extends SVGBase
+ {
+ public function Text()
+ {
+ super();
+ }
+ override protected function createElement():WrappedHTMLElement{
+ var elem:WrappedHTMLElement = addSvgElementToWrapper(this, 'text');
+ textNode = document.createTextNode("") as Text;
+ elem.appendChild(textNode as Node);
+
+ return elem;
+ }
+ private var textNode:*;
+
+ public function get text():String{
+ return textNode.nodeValue;
+ }
+ public function set text(value:String):void{
+ textNode.nodeValue = value
+ }
+ }
+}
\ No newline at end of file
diff --git
a/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Use.as
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Use.as
new file mode 100644
index 0000000..080d33d
--- /dev/null
+++
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/svg/elements/Use.as
@@ -0,0 +1,48 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.svg.elements
+{
+ COMPILE::JS
+ {
+ import org.apache.royale.html.util.addSvgElementToWrapper;
+ import org.apache.royale.core.WrappedHTMLElement;
+ }
+ COMPILE::SWF
+ public class Use{
+ public function Use(){}
+ }
+
+ COMPILE::JS
+ public class Use extends SVGBase
+ {
+ public function Use()
+ {
+ super();
+ }
+ override protected function createElement():WrappedHTMLElement{
+ return addSvgElementToWrapper(this, 'use');
+ }
+ public function get href():String{
+ return element.getAttribute("href");
+ }
+ public function set href(value:String):void{
+ element.setAttribute("href",value);
+ }
+ }
+}
\ No newline at end of file