Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问设置为Bezier曲线后为什么出现黑色的背景色? #34

Open
tankle0 opened this issue Oct 25, 2021 · 3 comments
Open

请问设置为Bezier曲线后为什么出现黑色的背景色? #34

tankle0 opened this issue Oct 25, 2021 · 3 comments

Comments

@tankle0
Copy link

tankle0 commented Oct 25, 2021

screenshot-20211025-141255

@mizuhokaga
Copy link
Contributor

connector样式设置的问题。之前我初学设置的时候也有这样的问题,由于不知道你的样式配置可以参考我的样式
lineWidth: 2, strokeStyle: '#c4c4c4', outlineColor: '', outlineWidth: ''
完整代码参考我的这个项目https://github.com/mizuhokaga/jsplumb-dataLineage

@tankle0
Copy link
Author

tankle0 commented Oct 28, 2021

修改后不生效呐,是我配置的有问题嘛?
screenshot-20211028-111344
screenshot-20211028-111358

@mizuhokaga
Copy link
Contributor

mizuhokaga commented Oct 28, 2021

测试了一下你的样式,只找到出现问题在于paintStyle的fill属性
paintStyle: { fill: 'black', stroke: 'red', strokeWidth: 3 },

我这边注释fill属性或者fill:''就没有问题了,不过奇怪的是默认样式和你的代码没有写这个属性却有这个问题,
我怀疑可能是jsplumb版本问题。
测试案例用的是<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/jsplumb.min.js"></script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants