Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: next release #1755

Merged
merged 2 commits into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/minimap/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @vue-flow/minimap

## 1.5.2

### Patch Changes

- [#1754](https://github.com/bcakmakoglu/vue-flow/pull/1754) [`a3870b8`](https://github.com/bcakmakoglu/vue-flow/commit/a3870b85e0c61512f4f5f9ac287536dbe9c720dd) Thanks [@bcakmakoglu](https://github.com/bcakmakoglu)! - Bind attributes to minimap node elements.

## 1.5.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/minimap/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vue-flow/minimap",
"version": "1.5.1",
"version": "1.5.2",
"private": false,
"license": "MIT",
"author": "Burak Cakmakoglu<[email protected]>",
Expand Down
8 changes: 7 additions & 1 deletion packages/minimap/src/MiniMapNode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,22 @@ function onMouseLeave(event: MouseEvent) {
export default {
name: 'MiniMapNode',
compatConfig: { MODE: 3 },
inheritAttrs: false,
}
</script>

<template>
<template v-if="!hidden && dimensions.width !== 0 && dimensions.height !== 0">
<component :is="miniMapSlots[`node-${props.type}`]" v-if="miniMapSlots[`node-${props.type}`]" v-bind="props" />
<component
:is="miniMapSlots[`node-${props.type}`]"
v-if="miniMapSlots[`node-${props.type}`]"
v-bind="{ ...props, ...$attrs }"
/>

<rect
v-else
:id="id"
v-bind="$attrs"
class="vue-flow__minimap-node"
:class="{ selected, dragging }"
:x="position.x"
Expand Down
Loading