antvis / G6

♾ A Graph Visualization Framework in JavaScript.
https://g6.antv.antgroup.com/
MIT License
11.05k stars 1.31k forks source link

Icon Type Image Opacity Low #5332

Open RackweLLizm opened 8 months ago

RackweLLizm commented 8 months ago

G6 Version

5.x

Describe the bug

Image Opacity Low

Your Example Website or App

localhost

Steps to Reproduce the Bug or Issue

İcon Type Image Opacity Lower

Expected behavior

Image Opacity Low ActiveRelation

Screenshots or Videos

No response

Platform

Additional context

I use G6 and Graphin libraries together. I use IMAGE type as Icon in my nodes and when there are activeRelations, the opacity of the icons in the image type does not decrease. This prevents ActiveRelations from doing its job.

let x = { ...node.getModel().style } x.icon.opacity = 0.1; graph.updateItem(node.getModel().data.id, { ...x })

I can interfere with this from the library with a similar solution. But this is very costly and when there are 1000 or more nodes on the page, there is a crash.

A less costly Graphin or G6 based solution to overcome this problem would be much appreciated.

Regards

github-actions[bot] commented 8 months ago

hi @RackweLLizm, welcome!

hustcc commented 7 months ago

@RackweLLizm Thank you for the feedback. We will take this issue into consideration during the iteration of version 5.

RackweLLizm commented 1 month ago

@hustcc Is there any development on this for v5