antvis/G2

[Feat]: elementSelect 支持自定义多选热键 #6622

moayuisuda posted onGitHub

Describe the feature / 功能描述

预期:按下左shift之后,可多选元素,松开左shift后,变为单选 重新自定义一个elementSelect交互的成本有点大,目前想增添一个形似multiSelectHotKey的参数控制多选的热键

interaction: {
  elementSelect: {
    multiSelectHotKey: 'ShiftLeft' // hotKey's code
    single: false // if "multiSelectHotKey" exist, this will not work
  }
}

Are you willing to contribute? / 是否愿意参与贡献?

✅ Yes / 是


:tada: This issue has been resolved and is now available in the v5.2.12 release! :tada:

posted by github-actions[bot] about 1 month ago

Fund this Issue

$0.00
Funded

Pull requests