X6 icon indicating copy to clipboard operation
X6 copied to clipboard

Remove jQuery

Open afc163 opened this issue 5 years ago • 20 comments
trafficstars

使用 jQuery 性价比太低。

afc163 avatar Apr 11 '20 11:04 afc163

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Jun 11 '20 00:06 github-actions[bot]

目前依赖的 jQuery 特性:

  • Dom 事件
  • data 方法
  • style 方法
  • attr 方法
  • className 相关方法

去掉 jQuery 的话,要把这些方法重新实现。或者自己打包一个简单版本的 jQuery 来减少文件大小。

bubkoo avatar Jul 07 '20 07:07 bubkoo

直接用 DOM 原生的就好,改造成本应该不高。

afc163 avatar Jul 07 '20 07:07 afc163

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Sep 06 '20 00:09 github-actions[bot]

确实 ,去掉以后说不定和easyui 或者layui 就不冲突了

jacktao007 avatar Feb 23 '21 08:02 jacktao007

有预计完成时间吗?

Eve-Sama avatar Apr 20 '21 08:04 Eve-Sama

希望官方能提高优先级,目前做产品方案调研,备选方案le5le-com/topology和 antv/x6 ,本来是更倾向于x6,但看到依赖jQuery,我们可能要用 le5le-com/topology

wflixu avatar Oct 08 '21 06:10 wflixu

@wflixu 去除 jquery 还有一段时间,有没有 le5le-com/topology和 antv/x6 的对比报告呢?🤒

NewByVector avatar Oct 08 '21 11:10 NewByVector

希望官方能提高优先级,目前做产品方案调研,备选方案le5le-com/topology和 antv/x6 ,本来是更倾向于x6,但看到依赖jQuery,我们可能要用 le5le-com/topology

之前我也看过这个le5le的方案, 最终我们选择的X6. 作为过来人, 我只能说, X6的官网写的非常好, 很利于推进项目.

Eve-Sama avatar Oct 09 '21 06:10 Eve-Sama

@wflixu 去除 jquery 还有一段时间,有没有 le5le-com/topology和 antv/x6 的对比报告呢?🤒

400个节点,fps只有15,看到jquery里面curCss耗时较长,有没有啥办法自己先优化一下。本人不是专业前端o(╥﹏╥)o

kiki-oo avatar Nov 03 '21 06:11 kiki-oo

@wflixu 去除 jquery 还有一段时间,有没有 le5le-com/topology和 antv/x6 的对比报告呢?🤒

有一个汇报时的简单总结,算是使用感受吧,最近尝试了3个库,我们计划用G6。

image

wflixu avatar Nov 12 '21 09:11 wflixu

@wflixu 去除 jquery 还有一段时间,有没有 le5le-com/topology和 antv/x6 的对比报告呢?🤒

400个节点,fps只有15,看到jquery里面curCss耗时较长,有没有啥办法自己先优化一下。本人不是专业前端o(╥﹏╥)o

感觉这个自己优化,工作量太大了,其实g6 用canvas 渲染的,性能还可以,想不明白都是antv家族,为什么不在g6的基础上做

wflixu avatar Nov 12 '21 09:11 wflixu

@wflixu 感谢你的报告,我们后面会持续优化。关于为什么使用 svg,是因为 x6 面向的场景是节点内容比较复杂的图编辑场景,使用 svg 更加容易上手。

NewByVector avatar Nov 15 '21 00:11 NewByVector

Hiya!

This issue has gone quiet. Spooky quiet. 👻

We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not-stale" to keep this issue open!

As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out contribute for more information about opening PRs, triaging issues, and contributing!

Thanks for being a part of the AntV community! 💪💯

x6-bot[bot] avatar Dec 20 '21 00:12 x6-bot[bot]

持续等待去掉jquery的版本,本来也选定了x6,突然发现有jquery依赖,有点懵逼,现在很犹豫。。。。。。

lijing666 avatar Dec 21 '21 03:12 lijing666

感觉可以参考下这篇文章,如果你没有看过的话 https://mp.weixin.qq.com/s?__biz=MzUxMzcxMzE5Ng==&mid=2247489496&idx=1&sn=ec3d379d62e80991858055c42ea298ae&chksm=f951a29bce262b8dbcdffe5e8800f0917602f7257b733c0ab84e95f0146d2aa9db2116f3c54c&token=1416664194&lang=zh_CN#rd

caozhong1996 avatar Jan 09 '22 10:01 caozhong1996

Hiya!

This issue has gone quiet. Spooky quiet. 👻

We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not-stale" to keep this issue open!

As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out contribute for more information about opening PRs, triaging issues, and contributing!

Thanks for being a part of the AntV community! 💪💯

x6-bot[bot] avatar Jan 30 '22 00:01 x6-bot[bot]

Hiya!

This issue has gone quiet. Spooky quiet. 👻

We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not-stale" to keep this issue open!

As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out contribute for more information about opening PRs, triaging issues, and contributing!

Thanks for being a part of the AntV community! 💪💯

x6-bot[bot] avatar Mar 03 '22 00:03 x6-bot[bot]

两年了,来看看进展怎么样。

gz65555 avatar Apr 13 '22 09:04 gz65555

@gz65555 ^_^ 2.0 分支已经去掉了,但是还在做其他优化。

NewByVector avatar Apr 13 '22 12:04 NewByVector

2.0 版本已经去除。

NewByVector avatar Dec 06 '22 08:12 NewByVector

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[bot] avatar Dec 07 '23 00:12 x6-bot[bot]