supritht / oryx-editor

Automatically exported from code.google.com/p/oryx-editor
Other
0 stars 0 forks source link

SVG-Rect without a stroke and fill color is drawn, if text element is placed over it #45

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
A SVG-Rect without a stroke and fill color is drawn with stroke color black and 
stroke width 1, if 
text element is placed over it and contains some content. In Firebug stroke and 
fill color are still 
set to none.

The problem occures if the text is set over a property with refToView.

SVG-File:
<svg
   xmlns:svg="http://www.w3.org/2000/svg"
   xmlns="http://www.w3.org/2000/svg"
   xmlns:oryx="http://www.b3mn.org/oryx"
   version="1.0">
  <oryx:magnets>
    <oryx:magnet oryx:cx="150" oryx:cy="0" oryx:default="yes"/>
    <oryx:magnet oryx:cx="150" oryx:cy="150"/>
    <oryx:magnet oryx:cx="300" oryx:cy="75"/>
    <oryx:magnet oryx:cx="0" oryx:cy="75"/>
  </oryx:magnets>
  <g>
    <rect
       id="border"
       oryx:anchor="top bottom left right"
       oryx:resize="vertical horizontal"
       width="300"
       height="150"
       x="0" y="0"
       stroke="black" fill="white" stroke-width="2" /> 
    <rect
       id="gradConditionBorder"
       oryx:anchor="top bottom left right"
       oryx:resize="vertical horizontal"
       width="300"
       height="80"
       x="0" y="0"
       stroke="none" fill="none" stroke-width="2" />   
    <text id="guardConditionText" x="150" y="12" oryx:align="middle center"></text> 
  </g>
</svg>

JSON-abstract:
                {
            "type":         "node",
            "id":           "complexInteraction",
            "title":        "ComplexInteraction",   
            "groups":       ["Interaction"],
            "description":  "",
            "view":         "node.complexinteraction.svg",
            "icon":         "node.complexinteraction.png",
            "roles":        ["interaction"],
            "properties": [
                {
                    "id":"guardCondition",
                    "type":"String",
                    "title":"Guard Condition",
                    "value":"",
                    "description":"",
                    "readonly":false,
                    "optional":true,
                    "length":"",
                    "refToView":"guardConditionText",
                    "wrapLines":false
                },
            ]
        }, 

Original issue reported on code.google.com by sven.wag...@gmail.com on 16 Apr 2008 at 2:09

GoogleCodeExporter commented 9 years ago

Original comment by NicoPete...@gmail.com on 16 Apr 2008 at 3:32

GoogleCodeExporter commented 9 years ago

Original comment by W.Tsches...@gmail.com on 22 Apr 2008 at 11:52