Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

feat: 框选图层支持自定义触发框选 #139

Merged
merged 1 commit into from
Apr 12, 2022
Merged

Conversation

lvisei
Copy link
Member

@lvisei lvisei commented Apr 11, 2022

PR includes

  • feat: 框选图层支持自定义触发框选

Usage

  • 按住 shift 键触发框选
const boxSelectLayerGroup = new BoxSelectLayerGroup({
      name: 'boxSelect',
	  options: {
	 	 keyCode: 16,
	  }
 })
  • 手动触发框选
const boxSelectLayerGroup = new BoxSelectLayerGroup({
      name: 'boxSelect',
	  options: {
	 	 keyCode: false,
	  }
 })
// 启用框选
boxSelectLayerGroup.enable()
// 关闭框选
boxSelectLayerGroup.disable()

@github-actions
Copy link

github-actions bot commented Apr 11, 2022

😭 Deploy PR Preview 3f9e9fc failed. Build logs

🤖 By surge-preview

@github-actions github-actions bot added feature and removed feature labels Apr 11, 2022
@lgtm-com
Copy link

lgtm-com bot commented Apr 11, 2022

This pull request fixes 1 alert when merging 3f9e9fc into 609d6e8 - view on LGTM.com

fixed alerts:

  • 1 for Unused variable, import, function or class

@lvisei lvisei changed the title feat: 框选图层支持自定触发功能 feat: 框选图层支持自定义触发框选 Apr 11, 2022
@github-actions github-actions bot added feature and removed feature labels Apr 11, 2022
@heiyexing heiyexing merged commit 65c39e0 into master Apr 12, 2022
@heiyexing heiyexing deleted the feat/select-layer branch April 12, 2022 07:40
@github-actions github-actions bot added feature and removed feature labels Apr 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants