cuire / svelte-grid-extended

A draggable and resizable grid layout, for Svelte
https://svelte-grid-extended.vercel.app
MIT License
74 stars 8 forks source link

Refactor collision prop new API #37

Closed fabiot21 closed 1 year ago

fabiot21 commented 1 year ago

Changed current collision prop to be compatible with new api (#27 #35 #23)

Also (since we are still pre 1.0) this PR optimizes collision handling by merging the compress and collision props into a single collision prop.

The refactored collision prop provides three behaviors:

This enhancement simplifies the API, improves intuitiveness, and also makes the API more extensible, allowing for future collision behaviors to be added without major structural changes.