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.
---

Reply via email to