Skip to content

Releases: cuire/svelte-grid-extended

v1.2.1

01 Jun 06:56
Compare
Choose a tag to compare

What's Changed

  • Fix grid item width and height calculation for correct spacing by @gitryder in #82
  • Bump vite from 5.1.3 to 5.1.7 by @dependabot in #78
  • 🐚 Stop updating Grid recursively when collision=compress by @cuire in #83

New Contributors

Full Changelog: v1.2.0...v1.2.1

v1.2.0

30 May 11:54
Compare
Choose a tag to compare

What's Changed

  • 🖌️ Update svelte-package and other deps, format and lint by @cuire in #70
  • 👹 Add gridController.compress() method and autoCompress prop by @cuire in #69

Full Changelog: v1.1.4...v1.2.0

[email protected]

11 Oct 06:10
Compare
Choose a tag to compare

What's Changed

  • containerWidth | containerHeight strikes back by @cuire in #56

Full Changelog: v1.1.3...v1.1.4

[email protected]

09 Oct 06:38
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.1.1...v1.1.3

[email protected]

08 Oct 11:04
Compare
Choose a tag to compare

What's Changed

  • Remove scroll on move/resize #50
  • Remove containerWidth and containerHeight #52

Full Changelog: v1.1.1...v1.1.2

[email protected]

11 Aug 18:51
Compare
Choose a tag to compare

What's Changed

  • update grid params after gridSettings updates by @fabiot21 in #45

Full Changelog: v1.1.0...v1.1.1

[email protected]

01 Aug 06:28
Compare
Choose a tag to compare

What's Changed

Full Changelog: https://github.com/cuire/svelte-grid-extended/compare/[email protected]

[email protected]

26 Jul 21:54
f2e377a
Compare
Choose a tag to compare

A LOT OF CHANGES 🍾

😎 New API #23

<Grid cols={10} rows={10}>
	<GridItem x={0} y={0}>Content<GridItem />
	<GridItem x={1} y={1}>Content<GridItem />
</Grid>

✏️ Easy to use Component customization

Cusomize handles with svelte slots

<script lang="ts">
	import Grid, { GridItem } from 'svelte-grid-extended';
</script>

<Grid cols={10} rows={10}>
	<GridItem x={0} y={0}>
		<div slot="moveHandle" let:moveStart>
			<div on:pointerdown={moveStart}>MOVE</div>
		</div>

		<div slot="resizeHandle" let:resizeStart>
			<div on:pointerdown={resizeStart}>Resize</div>
		</div>

		<!-- content -->
	</GridItem>
</Grid>

💖 New collision API (@fabiot21)

New collision prop controls how the grid handles collisions. There are three available options: none, push, and compress.

<Grid {itemSize} cols={10} collision="push">
	{#each items as item}
		<GridItem x={item.x} y={item.y} w={item.w} h={item.h}>
			<div class="item">{item.id}</div>
		</GridItem>
	{/each}
</Grid>

🪨 SOME SMALL IMPROVEMENTS

  • Moved itemchanged and previewchanged events to <GridItem /> component.
  • Tested two wa binding (that wasnt easy tbh)
  • Fix bug when rows and cols were dynamically set to 0 and not asserted

💖 THANK YOU SO MUCH, EVERYONE. This release would not have been possible without you.

Full Changelog: https://github.com/cuire/svelte-grid-extended/compare/[email protected]@1.0.0

[email protected]

18 Jul 15:06
Compare
Choose a tag to compare

What's Changed

Full Changelog: https://github.com/cuire/svelte-grid-extended/compare/[email protected]@0.4.0

[email protected]

14 Jul 15:03
Compare
Choose a tag to compare

What's Changed

  • add animation to non active items when collision is active by @fabiot21 in #34

New Contributors

Full Changelog: https://github.com/cuire/svelte-grid-extended/compare/[email protected]@0.3.2