[Bug]:
Describe the bug / 问题描述
当同时设置了'drag-canvas'和'collapse-expand'时,先收起节点,然后多次拖动位置后就无法再次展开节点了。官网案例中也是如此。如何同时又设置了{ type: 'click-select' },出现无法展开的概率会更大。 当前版本:"@antv/g6": "^5.0.42", "vue": "^3.3.4"
Reproduction link / 复现链接
https://g6.antv.antgroup.com/examples/layout/compact-box/#basic
Steps to Reproduce the Bug or Issue / 重现步骤
1.点击收起节点 2.多次拖动收起的节点位置 3.再次点击节点展开 4.重复此操作
G6 Version / G6 版本
🆕 5.x
OS / 操作系统
- [X] macOS
- [ ] Windows
- [ ] Linux
- [ ] Others / 其他
Browser / 浏览器
- [X] Chrome
- [ ] Edge
- [ ] Firefox
- [ ] Safari (Limited support / 有限支持)
- [ ] IE (Nonsupport / 不支持)
- [ ] Others / 其他
renderLayer es de Deck.gl, no de Kepler.gl.
Here is an example of a custom layer, but the PR is huge: vector tile layer alpha version I ran some tests to render TileLayer and BitmapLayer and everything worked as expected.
Something is wrong with your setup, but it's hard to tell what without access to your code.
@Daim-Nickel-Penny Any news?
@igorDykhta
Given the length of the PR, could we please get some guidance on how to create a new layer type? Specifically, we're looking to define a new layer type that would allow us to display only the points that start within the drawn polygon A and end in the drawn polygon B, i.e.
- The start position (
start_longitudeandstart_latitude) originates from polygon A. - The end position (
end_longitudeandend_latitude) terminates at polygon B.
I haven't found documentation on customising or creating new layer types—am I missing something?
For filtering points (i.e. the query aforementioned), I believe DuckDB handles this well (I tested in a side project without any issues). However, in Kepler, it would be useful to understand how to create custom layers. This isn't necessarily for a mainline contribution but for more localised use cases that could support larger projects while we would be leveraging the Kepler React component.
PS: Maybe @heshan0131 too? I saw you a couple of time answering around similar topics :)
Cheers :) !