You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/11/15 09:32:47 UTC
[GitHub] [echarts] xwlgx opened a new issue, #17918: [Bug] geo组件注册的svg元素添加name属性时,存在一个无法消除的边框
xwlgx opened a new issue, #17918:
URL: https://github.com/apache/echarts/issues/17918
### Version
5.4.0
### Link to Minimal Reproduction
_No response_
### Steps to Reproduce
本地发现问题之后,在官网示例测试也是同样的问题,基于官网的配置修改如下:
`var svg = '<?xml version="1.0" encoding="utf-8"?>
<svg xmlns="http://www.w3.org/2000/svg" version="1.2" fill-rule="evenodd" xml:space="preserve">
<path name="named_rect" d="M 0,0 L 0,100 100,100 100,0 Z" stroke="red" fill="#ccc" />
<path d="M 150,0 L 150,100 250,100 250,0 Z" fill="#ccc" />
</svg>
';
echarts.registerMap('simple_svg', { svg: svg });
option = {
geo: {
map: 'simple_svg'
}
};`
官网链接:[https://echarts.apache.org/examples/zh/editor.html?c=doc-example%2Fgeo-svg-named-basic&edit=1&reset=1&renderer=svg](url)
可复制上面的代码到编辑器复现

### Current Behavior
覆盖掉了原有图形的边框,在官网的示例中也复现了问题,并且没找到可以消除边框的属性
### Expected Behavior
希望去掉边框,而不是直接覆盖原有的边框
### Environment
```markdown
- OS:win10
- Browser:edge
- Framework:vue2
```
### Any additional comments?
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] xwlgx commented on issue #17918: [Bug] geo组件注册的svg元素添加name属性时,存在一个无法消除的边框
Posted by GitBox <gi...@apache.org>.
xwlgx commented on issue #17918:
URL: https://github.com/apache/echarts/issues/17918#issuecomment-1315071703
已解决
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] echarts-bot[bot] commented on issue #17918: [Bug] geo组件注册的svg元素添加name属性时,存在一个无法消除的边框
Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #17918:
URL: https://github.com/apache/echarts/issues/17918#issuecomment-1315037048
@xwlgx It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
<details><summary><b>TRANSLATED</b></summary><br>
**TITLE**
[Bug] When the name attribute is added to the svg element registered by the geo component, there is an irremovable border
**BODY**
### Version
5.4.0
### Link to Minimal Reproduction
_No response_
### Steps to Reproduce
After the problem is found locally, the same problem occurs in the sample test on the official website. The configuration modification based on the official website is as follows:
`var svg = '<?xml version="1.0" encoding="utf-8"?>
<svg xmlns="http://www.w3.org/2000/svg" version="1.2" fill-rule="evenodd" xml:space="preserve">
<path name="named_rect" d="M 0,0 L 0,100 100,100 100,0 Z" stroke="red" fill="#ccc" />
<path d="M 150,0 L 150,100 250,100 250,0 Z" fill="#ccc" />
</svg>
';
echarts.registerMap('simple_svg', { svg: svg });
option = {
geo: {
map: 'simple_svg'
}
};`
Official website link: [https://echarts.apache.org/examples/zh/editor.html?c=doc-example%2Fgeo-svg-named-basic&edit=1&reset=1&renderer=svg](url)
You can copy the above code to the editor to reproduce

### Current Behavior
The border of the original graphics is overwritten, and the problem is also reproduced in the example on the official website, and no attribute can be found to eliminate the border
### Expected Behavior
I hope to remove the border instead of directly covering the original border
### Environment
```markdown
- OS: win10
- Browser: edge
- Framework: vue2
```
### Any additional comments?
_No response_
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] helgasoft commented on issue #17918: [Bug] geo组件注册的svg元素添加name属性时,存在一个无法消除的边框
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #17918:
URL: https://github.com/apache/echarts/issues/17918#issuecomment-1470688045
Could you please briefly explain how you solved it?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] [Bug] geo组件注册的svg元素添加name属性时,存在一个无法消除的边框 [echarts]
Posted by "chj-damon (via GitHub)" <gi...@apache.org>.
chj-damon commented on issue #17918:
URL: https://github.com/apache/echarts/issues/17918#issuecomment-1805151793
@xwlgx 请问是怎么解决的?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] xwlgx closed issue #17918: [Bug] geo组件注册的svg元素添加name属性时,存在一个无法消除的边框
Posted by GitBox <gi...@apache.org>.
xwlgx closed issue #17918: [Bug] geo组件注册的svg元素添加name属性时,存在一个无法消除的边框
URL: https://github.com/apache/echarts/issues/17918
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org