Opportunity

Results 95 comments of Opportunity

it's feature, not a bug. see #3 #23

Unfortunately, the answer for current version is no. As a workaround, you can rename one of the album to a similar name.

目前使用的 fix: ```js const updateContainer = Selection.prototype.updateContainer; Selection.prototype.updateContainer = function () { if (this.updateContainerId) { cancelAnimationFrame(this.updateContainerId); this.updateContainerId = undefined; } this.updateContainerId = requestAnimationFrame(() => { this.updateContainerId = undefined; updateContainer.call(this); });...

That's also not working in current version, see #1328

其实主要还是 x6-widget-transform 太慢了,一个cell就是10个DOM element,明明设了`orth: false` 都不打折的(到处都在微操 DOM,这个地方居然用 css 偷懒了) ![image](https://user-images.githubusercontent.com/13471233/135710040-5270bc28-8037-4c58-bf28-a1d01befb834.png) 现在我的解决方案是重写 `Selection` 插件添加选中前通知 ```ts import { Collection } from '@antv/x6'; import { Selection } from '@antv/x6/lib/addon/selection'; /** 自定义 selection */...

mxGraph里这个行为是默认的 ![image](https://user-images.githubusercontent.com/13471233/135710230-98ff01d5-42bf-4d71-9123-a3ca15d8dbdc.png) ![image](https://user-images.githubusercontent.com/13471233/135710231-5b45fe42-16e7-4ff1-aac5-d5bbe71b3842.png)

另外,`checkView` 可以实现 viewport 外的 cell 不渲染(这也是我们从 mxGraph 切换过来的主要原因),但是对选中框啥的就没啥办法了。导致一个节点数多的图形,普通拖动浏览都十分流畅,一按 `Ctrl+A` 卡1分钟。

而且你这个 fix 对于编程的大量选中也不生效啊,`Ctrl+A` 啥的照卡不误 ![image](https://user-images.githubusercontent.com/13471233/135710894-df7e4fd0-39c9-474b-9a2c-ec30530a8601.png)

打开这个文件夹,`%LocalAppData%\Packages\2289Opportunity.E-Viewer_x517s75edqf2e\LocalCache` 把日志发下 `AppLog.log` ![image](https://user-images.githubusercontent.com/13471233/184085512-70d08706-21e9-4196-b880-62297275ecc3.png)