diff --git a/.changeset/bright-timers-itch.md b/.changeset/bright-timers-itch.md deleted file mode 100644 index c7669423..00000000 --- a/.changeset/bright-timers-itch.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -'@vue-flow/core': minor ---- - -Allow setting `padding` option for `node.extent: 'parent'` - -Padding can be a `number[]` containing a maximum of 4 values. -The values are applied in the same order as CSS padding: top, right, bottom, left. -You can omit values at the end of the array, so `[10, 20]` is equivalent to `[10, 20, 10, 20]` etc. - -#### Usage - -```js -const nodes = ref([ - { - id: '4', - label: 'Node 4', - position: { x: 320, y: 200 }, - style: { backgroundColor: 'rgba(255, 0, 0, 0.7)', width: '300px', height: '300px' }, - }, - { - id: '4a', - label: 'Node 4a', - position: { x: 15, y: 65 }, - class: 'light', - extent: { - range: 'parent', - // apply 10 px padding to all four sides - padding: [10], - }, - parentNode: '4', - }, -]) -``` diff --git a/.changeset/eight-donuts-exercise.md b/.changeset/eight-donuts-exercise.md deleted file mode 100644 index 745f54ec..00000000 --- a/.changeset/eight-donuts-exercise.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@vue-flow/core': patch ---- - -Allow omitting width and height style properties for parent nodes when using `expandParent` on child nodes diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 91a4edb2..e22633ee 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,44 @@ # @vue-flow/core +## 1.10.0 + +### Minor Changes + +- [#579](https://github.com/bcakmakoglu/vue-flow/pull/579) [`b8d3241`](https://github.com/bcakmakoglu/vue-flow/commit/b8d324184fdb974b96d1b54aa042835b7ce83482) Thanks [@bcakmakoglu](https://github.com/bcakmakoglu)! - Allow setting `padding` option for `node.extent: 'parent'` + + Padding can be a `number[]` containing a maximum of 4 values. + The values are applied in the same order as CSS padding: top, right, bottom, left. + You can omit values at the end of the array, so `[10, 20]` is equivalent to `[10, 20, 10, 20]` etc. + + #### Usage + + ```js + const nodes = ref([ + { + id: '4', + label: 'Node 4', + position: { x: 320, y: 200 }, + style: { backgroundColor: 'rgba(255, 0, 0, 0.7)', width: '300px', height: '300px' }, + }, + { + id: '4a', + label: 'Node 4a', + position: { x: 15, y: 65 }, + class: 'light', + extent: { + range: 'parent', + // apply 10 px padding to all four sides + padding: [10], + }, + parentNode: '4', + }, + ]) + ``` + +### Patch Changes + +- [#578](https://github.com/bcakmakoglu/vue-flow/pull/578) [`c0d9018`](https://github.com/bcakmakoglu/vue-flow/commit/c0d901899cd46a4f26ec38001859fa5598f3c248) Thanks [@bcakmakoglu](https://github.com/bcakmakoglu)! - Allow omitting width and height style properties for parent nodes when using `expandParent` on child nodes + ## 1.9.4 ### Patch Changes diff --git a/packages/core/package.json b/packages/core/package.json index cd022a09..dd41385b 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@vue-flow/core", - "version": "1.9.4", + "version": "1.10.0", "private": false, "license": "MIT", "author": "Burak Cakmakoglu<78412429+bcakmakoglu@users.noreply.github.com>",