d3lm / ngx-drag-to-select

A lightweight, fast, configurable and reactive drag-to-select component for Angular 10 and beyond
https://www.npmjs.com/package/ngx-drag-to-select
MIT License
293 stars 65 forks source link

feat(lib): add input for intersection mode #168

Open PhOder opened 1 year ago

PhOder commented 1 year ago

This commit adds a new @Input() property intersectionMode to the SelectContainerComponent that allows to modify if items' bounding boxes need to be fully included in the select box or (by default) if bounding boxes need to intersect.

PhOder commented 1 year ago

Hi @d3lm =) In this PR I'd like to suggest a new input property as described above.

I'm unsure about the naming with the available options for this: @Input() intersectionMode: 'intersection' | 'included' = 'intersection';