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

Svelte Support #3087

Closed
Immortalin opened this issue Dec 22, 2022 · 8 comments
Closed

Svelte Support #3087

Immortalin opened this issue Dec 22, 2022 · 8 comments
Labels
help wanted 需要认领 Issues to which we welcome contribution from the community type: feature 新功能 Feature/enhancement requests

Comments

@Immortalin
Copy link

Describe the feature you'd like to request

Bindings for the Svelte framework

https://svelte.dev/
https://kit.svelte.dev/

Describe the solution you'd like

Svelte is a frontend framework that is growing in popularity. Having a first party Svelte binding for X6 would increase the usage and mindshare of X6.

Describe alternatives you've considered

Maintaining a third party library

Your Example Website or App

No response

Screenshots or Videos

No response

@x6-bot
Copy link
Contributor

x6-bot bot commented Dec 22, 2022

👋 @Immortalin

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.

To help make it easier for us to investigate your issue, please follow the contributing guidelines.

We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@lloydzhou
Copy link
Contributor

x6的API实际上是框架无关的,你可以在其他的框架内使用(所以不存在对svelte支持的问题)。

官方文档给出了三个框架的demo,你要是有兴趣,可以通过提pr的方式给官方提供基于svelte的demo

这里是一个在Svelte内使用x6的一个demo,你要是有兴趣可以看看。
https://github.com/lloydzhou/antv-x6-svelte

@NewByVector NewByVector added type: discussion 讨论 Usage questions, guidance, and other discussions type: feature 新功能 Feature/enhancement requests help wanted 需要认领 Issues to which we welcome contribution from the community and removed type: discussion 讨论 Usage questions, guidance, and other discussions labels Jan 4, 2023
@NewByVector
Copy link
Contributor

现在 X6 可以使用 React、Vue 来渲染节点内容,欢迎贡献使用 Svelte 渲染节点内容的使用方式。

@smallshen
Copy link

https://github.com/smallshen/x6-svelte-shape

@NewByVector
Copy link
Contributor

@lloydzhou 可以加到 awsome-x6 里面了

@lloydzhou
Copy link
Contributor

@lloydzhou 可以加到 awsome-x6 里面了

中午已经加好了

@smallshen
Copy link

smallshen/x6-svelte-shape#1
有人提了个issue想要把这个加到main仓库里头,有没有人愿意帮忙一下。

NodeWrapper.svelte 这个文件不是必须的

@x6-bot
Copy link
Contributor

x6-bot bot commented Mar 28, 2024

This thread has been automatically locked because it has not had recent activity.

Please open a new issue for related bugs and link to relevant comments in this thread.

@x6-bot x6-bot bot locked as resolved and limited conversation to collaborators Mar 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted 需要认领 Issues to which we welcome contribution from the community type: feature 新功能 Feature/enhancement requests
Projects
None yet
Development

No branches or pull requests

4 participants