This is an automated email from the ASF dual-hosted git repository.
gregdove 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 579962f Fix the typing of graphicsRenderTarget in the JS
IGraphicsTarget interface - specifically as 'svg' element tag
579962f is described below
commit 579962f121dacf6ada81fe79b329339ffadc62d5
Author: greg-dove <[email protected]>
AuthorDate: Thu Jan 30 13:52:44 2020 +1300
Fix the typing of graphicsRenderTarget in the JS IGraphicsTarget interface
- specifically as 'svg' element tag
---
.../main/royale/org/apache/royale/display/UIGraphicsBase.as | 8 ++++----
.../main/royale/org/apache/royale/display/IGraphicsTarget.as | 12 ++++++------
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/display/UIGraphicsBase.as
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/display/UIGraphicsBase.as
index e113f22..b4c5f07 100644
---
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/display/UIGraphicsBase.as
+++
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/display/UIGraphicsBase.as
@@ -38,14 +38,14 @@ package org.apache.royale.display
COMPILE::JS{
- private var _svg:SVGElement;
+ private var _svg:SVGSVGElement;
/**
- * @royaleignorecoercion SVGElement
+ * @royaleignorecoercion SVGSVGElement
*/
- public function get graphicsRenderTarget():SVGElement{
+ public function get
graphicsRenderTarget():SVGSVGElement{
if (!_svg) {
- _svg = createGraphicsSVG('svg');
+ _svg = createGraphicsSVG('svg') as
SVGSVGElement;
_svg.setAttribute('xmlns',
'http://www.w3.org/2000/svg');
_svg.style.overflow = 'visible'; //it
is hidden by default
if (element.childNodes.length) {
diff --git
a/frameworks/projects/Graphics/src/main/royale/org/apache/royale/display/IGraphicsTarget.as
b/frameworks/projects/Graphics/src/main/royale/org/apache/royale/display/IGraphicsTarget.as
index 38fa911..13f43eb 100644
---
a/frameworks/projects/Graphics/src/main/royale/org/apache/royale/display/IGraphicsTarget.as
+++
b/frameworks/projects/Graphics/src/main/royale/org/apache/royale/display/IGraphicsTarget.as
@@ -28,13 +28,13 @@ package org.apache.royale.display
public interface IGraphicsTarget extends IRenderedObject,
IEventDispatcher
{
- COMPILE::SWF{
- function get
graphicsRenderTarget():flash.display.Graphics;
- }
+ COMPILE::SWF
+ function get graphicsRenderTarget():flash.display.Graphics;
+
- COMPILE::JS{
- function get graphicsRenderTarget():SVGElement;
- }
+ COMPILE::JS
+ function get graphicsRenderTarget():SVGSVGElement;
+
}
}