GitHub user littleseven opened a pull request:
https://github.com/apache/incubator-weex/pull/220
add a member in WXComponent to flag the component have no view
commonly component always has a host view, but some times maybe not,
such as a svg label, the sub component like defs will not have a
hostview, infact, the ellipse has no view too, it just tell us need to
draw a ellipse to it's parent compoent's hostview.
example:
<svg width="100%" height="100%" version="1.1"
xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="orange_red" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%" style="stop-color:rgb(255,255,0);
stop-opacity:1"/>
<stop offset="100%" style="stop-color:rgb(255,0,0);
stop-opacity:1"/>
</linearGradient>
</defs>
<ellipse cx="200" cy="190" rx="85" ry="55"
style="fill:url(#orange_red)"/>
</svg>
<!--
Notes: Weex will move into Apache Software Foundation (ASF) on Feb 24 2017.
Our new GitHub repo is https://github.com/apache/incubator-weex
After Feb 24 2017, we only accept pull requests from
https://github.com/apache/incubator-weex
Thank you for your support.
----
注æï¼Weex å°äº 2017-02-24 è¿ç§»è³ Apache åºéä¼
屿¶æä»¬ä¼ä½¿ç¨æ°ç GitHub
ä»åºï¼https://github.com/apache/incubator-weex
å¹¶å¨é£éç»§ç»æ¥å大家ç pull requestã
æ´å¤è¯¦æ
请å
³æ³¨ï¼https://github.com/weexteam/article/issues/130
æè°¢çè§£åæ¯æ
-->
<!--
It's ***RECOMMENDED*** to submit typo fix, new demo and tiny bugfix to
`dev` branch. New feature and other modifications can be submitted to "domain"
branch including `ios`, `android`, `jsfm`, `html5`.
See [Branch
Strategy](https://github.com/alibaba/weex/blob/dev/CONTRIBUTING.md#branch-management)
for more detail.
----
ï¼è¯·å¨***æäº¤***åå é¤è¿æ®µæè¿°ï¼
éå«åä¿®æ¹ãæ° demoãè¾å°ç bugfix é½å¯ä»¥ç´æ¥æå° `dev`
åæ¯ï¼æ°éæ±ä»¥åä»»ä½ä½
ä¸ç¡®å®å½±åé¢çæ¹å¨ï¼è¯·æäº¤å°å¯¹åºâé¢åâç忝ï¼`ios`ã`android`ã`jsfm`ã`html5`ï¼ã
æ¥ç宿´ç[忝çç¥
(è±æ)](https://github.com/alibaba/weex/blob/dev/CONTRIBUTING.md#branch-management)ã
-->
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/littleseven/incubator-weex 0.12-dev
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-weex/pull/220.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #220
----
commit babfa411709212973e1bb4f2807f692ff0e174b9
Author: littleseven <[email protected]>
Date: 2017-04-06T08:44:39Z
add a member in WXComponent to flag the component have no view
commonly component always has a host view, but some times maybe not,
such as a svg label, the sub component like defs will not have a
hostview, infact, the ellipse has no view too, it just tell us need to
draw a ellipse to it's parent compoent's hostview.
example:
<svg width="100%" height="100%" version="1.1"
xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="orange_red" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%" style="stop-color:rgb(255,255,0);
stop-opacity:1"/>
<stop offset="100%" style="stop-color:rgb(255,0,0);
stop-opacity:1"/>
</linearGradient>
</defs>
<ellipse cx="200" cy="190" rx="85" ry="55"
style="fill:url(#orange_red)"/>
</svg>
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---