chore: v1.17.0 release notes

This commit is contained in:
mathuo 2024-09-05 19:48:56 +01:00
parent 0c602afab5
commit b24470fa42
No known key found for this signature in database
GPG Key ID: C6EEDEFD6CA07281
2 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,23 @@
---
slug: dockview-1.17.0-release
title: Dockview 1.17.0
tags: [release]
---
# Release Notes
Please reference docs @ [dockview.dev](https://dockview.dev).
## 🚀 Features
- Touch Support [#698](https://github.com/mathuo/dockview/pull/698)
- Initial and bounding panel sizing [#690](https://github.com/mathuo/dockview/pull/690)
- Improve group resize logic [#693](https://github.com/mathuo/dockview/pull/693)
## 🛠 Miscs
- Bug: Theme Typo [#694](https://github.com/mathuo/dockview/pull/694)
- Docs [#703](https://github.com/mathuo/dockview/pull/703)
## 🔥 Breaking changes

View File

@ -176,3 +176,35 @@ api.addPanel({
}
});
```
### Minimum and Maximum
You can define both minimum and maxmium widths and heights, these are persisted with layouts.
:::info
Since panels exist within groups there are occasions where these boundaries will be ignored to prevent overflow and clipping issues within the dock.
:::
```ts
api.addPanel({
id: 'panel_1',
component: 'default',
minimumWidth: 100,
maximumWidth: 100,
minimumHeight: 200,
maximumHeight: 2000
});
```
### Initial Size
You can define an `initialWidth` and `initialHeight`. The dock will may a best attempt to obey these inputs but it may not always be possible due to the constraints of the grid.
```ts
api.addPanel({
id: 'panel_1',
component: 'default',
initialWidth: 100,
initialHeight: 100
});
```