Skip to content

Commit f3a8714

Browse files
committed
Merge branch 'master' into release/2.0.0
2 parents e5bb526 + aa2bbd6 commit f3a8714

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+1600
-1024
lines changed

.devcontainer/devcontainer.json

Lines changed: 252 additions & 248 deletions
Large diffs are not rendered by default.

.github/workflows/scan.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ concurrency:
1111

1212
jobs:
1313
qodana-scan:
14+
if: false
15+
1416
runs-on: ${{ matrix.os }}
1517

1618
strategy:

CHANGELOG.md

Lines changed: 183 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,189 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [1.22.3] - 2023-08-21
6+
7+
[921c8ce](921c8ceb0327af012da2e48b4d25cb9c3417517c)...[a838941](a838941d393fb85a26294e06130b768919404616)
8+
9+
### Bug Fixes
10+
11+
- Smooth step edge horizontally or vertically aligned nodes ([16bf14c](16bf14c7d40f7b181cc8f0e514f58d54884069d3))
12+
- Add role img to edges if not focusable ([bb1473a](bb1473a6883ef8809afc5793b735120c0ad17e32))
13+
- Pass missing minimap node props ([5f83367](5f8336747ae002e4a0f112f7d7aa2b04c0a8767c))
14+
- Vertically or horizontally aligned nodes ([8943ec7](8943ec762b967e2b3a65e4123a6d8fd4f5cfc929))
15+
- Use os specific key defaults ([67704e5](67704e5a8f800d83cb59864e8a849dc55df61350))
16+
- Horizontal scroll on windows ([86957a0](86957a0c7107cd14891112ed0e9dbaccc8a3839f))
17+
- Better smoothstep edge label position ([2f66300](2f66300f056e08cb1a92ef35991906c44a6d096c))
18+
- Allow passing key combination as string ([0867637](0867637b5053663e3ee7e069ef71945673a72282))
19+
- Clear key on keyup so combinations work during simultaneous keypress ([f095917](f095917e97efa739cb58d987ca2c23aa00689476))
20+
- Reset `isPressed` value when switching from boolean to other keyfilter ([505ecc4](505ecc4c217a98ae93b50be15accb962cdbd5129))
21+
- Enforce min/max width/height on nodes ([06851e6](06851e6894dfc5c0c47a13d0ae142b415deb1bfc))
22+
23+
### Features
24+
25+
- Add offsetScale prop ([fd31d40](fd31d4007ed9d198f96f114f76ebaf6b4cfa748a))
26+
27+
### Miscellaneous Tasks
28+
29+
- Add ([cee9ff7](cee9ff71f0c6f97d1087bfbd5b234a7d58b86e4a))
30+
- Add ([76cce30](76cce30178e7e89a8812757066ab4970a895ba29))
31+
- Add ([c9a1c5b](c9a1c5b2fba8bdba4d9889a618cd42321364f8e1))
32+
- Add ([74cc767](74cc767036e2047c3e27bd4e15b8dfdf0453a3a5))
33+
- Cleanup ([77ccc7e](77ccc7ec86290a8875747e30db2ffa522626ca71))
34+
- Add ([0364a83](0364a83ab96c45393f2e9d99293b9c7006720a56))
35+
- Add ([71aa00b](71aa00bc7af7b577d2f71791cfee90e2e6bbefd0))
36+
- Add ([f0b5f67](f0b5f67284548d74bd7715bee921c7959a302376))
37+
- Add ([a57946a](a57946a32586200e7ac3fe31b0faa37e5104b64f))
38+
- Add ([2f2f537](2f2f537af7a5f7d63eadb562b7373ea164c93d01))
39+
- Cleanup ([65c3a05](65c3a05d844af1e60f6eab2d67188fab1789f783))
40+
- Add ([7cf967a](7cf967a9c3d1066e37039d54be57b8bc63a66289))
41+
- Add ([c47149b](c47149b5361da0a7e6f35f45b859e5c1c87840a1))
42+
43+
## [1.22.2] - 2023-07-27
44+
45+
[2174c5a](2174c5ad5ab531a4024700e2354c84d7c54c0714)...[921c8ce](921c8ceb0327af012da2e48b4d25cb9c3417517c)
46+
47+
### Bug Fixes
48+
49+
- Check if viewport is defined before setting ([9d1f5fa](9d1f5fa62927e6c3e7a3b6ecf604480e3a4ed070))
50+
51+
### Miscellaneous Tasks
52+
53+
- Add ([a69b816](a69b816891c23b83d35da08e15f82c31ed6934ad))
54+
55+
## [1.22.1] - 2023-07-25
56+
57+
[b3c70da](b3c70da5e2f707358c22242d87c20828c011050d)...[2174c5a](2174c5ad5ab531a4024700e2354c84d7c54c0714)
58+
59+
### Bug Fixes
60+
61+
- Wait for viewport helper in `fromObject` action ([fd155e4](fd155e41af8e3c3d563f52966d07ca8b67f47ec0))
62+
- Unwrap blur fn ([ac86b77](ac86b77b8924529a153f651d1d3f3dc3d8101c07))
63+
64+
### Miscellaneous Tasks
65+
66+
- Add ([814d5ed](814d5edb26cbd350d231b3780e09e69e1c1434df))
67+
- Add ([95612ba](95612bae49a2e0dbd2fcfa5e94c1973ab1a80de8))
68+
69+
### Refactor
70+
71+
- Add `viewport` to export obj and deprecate `position` and `zoom` ([eb29f96](eb29f96f967ddb72b663ee26397f8e9b6f803486))
72+
73+
## [1.22.0] - 2023-07-24
74+
75+
[be8a83d](be8a83dab0e75c175f88b20ceae7731ad3810ebd)...[b3c70da](b3c70da5e2f707358c22242d87c20828c011050d)
76+
77+
### Bug Fixes
78+
79+
- Dont wait for nodesInitialized to trigger for viewport helper ([a2e4d99](a2e4d99f5b519ac3d3c89426c44912bf526c3484))
80+
- Watch applyDefault state in useVueFlow scope ([620852b](620852b860237a25bf887e531f0024082f18b74e))
81+
- Use detached scope to dispose state and stop watcher ([45f18d5](45f18d54591b30ca9a2950d3e7625e8ada7f2936))
82+
83+
### Features
84+
85+
- Resolve promise from viewport actions on transition end ([7df2bfa](7df2bfa146a0d9aa8f6f855041f378fb2fca4a06))
86+
- Add `setViewport` and `getViewport` to viewport helper ([9f63252](9f63252c620da84d48184ef2ae153f5073a766a7))
87+
- Add `hasListener` to event hooks ([987538a](987538aebd77c8f2cb9c835ec388404712826ac2))
88+
- Add flag to `removeNodes` to remove children of a node ([c4acb0d](c4acb0d0f67b7a094d55d824de930e73e07d5ea3))
89+
- Allow passing node or id to getoutgoers/getincomers ([2a597f8](2a597f86058be0b000a6e43050bbafd97d865e68))
90+
91+
### Miscellaneous Tasks
92+
93+
- Add ([bf6dcfc](bf6dcfca4aed389f4bebf1713c7b6ca108987d4e))
94+
- Cleanup `useZoomPanHelper` ([42aa13e](42aa13e2a57e2afdbca79f060189631bb25fc415))
95+
- Add ([5395c57](5395c57d5d593b895425066827897274b7f83997))
96+
- Cleanup ([4412516](4412516476d7985167e3427905a79eecadf34687))
97+
- Cleanup dead links ([52ba092](52ba0928f4b74784d9dd36b7bd836efa6be7ba39))
98+
- Add ([4ed3acc](4ed3acc021fd5b1089e8a1f9dadb23b23e01a9a1))
99+
- Add ([581f2b1](581f2b1fec065f489873df8254902df5ec76cb1c))
100+
- Add ([bc2de72](bc2de7254a474359558204c3b42dac904cda778f))
101+
- Add ([02891b3](02891b3aa92641906089406af34a0080fa3f7881))
102+
103+
### Refactor
104+
105+
- Deprecate `setTransform` & `getTransform` ([ed6c298](ed6c2983857030e3450252a48fcfd901249976c1))
106+
107+
## [1.21.3] - 2023-07-24
108+
109+
[07e9e8a](07e9e8a9b6600a753f91a429a67268516951b09f)...[be8a83d](be8a83dab0e75c175f88b20ceae7731ad3810ebd)
110+
111+
### Bug Fixes
112+
113+
- Get correct handle pos for connection line ([17755dd](17755ddb9a6a4aa67554e26869175e5347dcd0e7))
114+
- Abort fit view when there's no nodes to fit around ([6bd442f](6bd442f844548425264e49c90c19d60bc289efd3))
115+
116+
### Features
117+
118+
- Add fitView tests ([db4c2da](db4c2da9a5991821127907919a2c5a4673809cf4))
119+
120+
### Miscellaneous Tasks
121+
122+
- Add ([1ac6591](1ac6591d2384088f9866f1a851fbd922250cfb5f))
123+
- Add ([8780ab5](8780ab5fc1101a7b406da30746f0f8943f04b493))
124+
- Move setState test to separate dir ([faee0e3](faee0e3ddc76a59de49f98f79f02e26793285f9d))
125+
126+
## [1.21.2] - 2023-07-19
127+
128+
[2424cc2](2424cc236e4088c5af85d062d7c5eab80ea774fb)...[07e9e8a](07e9e8a9b6600a753f91a429a67268516951b09f)
129+
130+
### Bug Fixes
131+
132+
- Use post flush when calculating new node pos ([1415652](1415652a1b3cda2a2c6d3b7e5c16b97390864116))
133+
- Connection status prop as nullable ([4f36cef](4f36cef1e8778a08384dab525b92af1b39c0d98c))
134+
- Use noop viewport operations instead of waiting for promise ([4d5bbab](4d5bbab50690fd8b2ab0072e4e69bd1ed5a4bce1))
135+
- Pass handle dom node to valid handle result ([08f749a](08f749ae30926e3d22562734715700c06c499427))
136+
137+
### Miscellaneous Tasks
138+
139+
- Add ([1b92785](1b9278521640127d3bf2316b8c4a9f2dc6e52618))
140+
- Add ([7152064](715206404b8eecfa8a98bc620cc72463e3a367fb))
141+
- Add ([4cd433f](4cd433fbec76a4f452a7c3d6a2a608e4070aac82))
142+
- Add ([bcde916](bcde9161af1cf56d58f276b64a3e8c39f7ce46c1))
143+
144+
## [1.21.1] - 2023-07-10
145+
146+
[f123ffb](f123ffb0150d5b570569810fbdd3f9bdf1eddae4)...[2424cc2](2424cc236e4088c5af85d062d7c5eab80ea774fb)
147+
148+
### Bug Fixes
149+
150+
- Nested nodes extent calculation off ([f52380d](f52380d3d22eacd408211a832fa4dcc70401df32))
151+
152+
### Miscellaneous Tasks
153+
154+
- Add ([f156107](f156107bb0f16a89f121c589aee008c7dec01d56))
155+
- Add ([dce1508](dce15085d135752649c653e279ce0a9d5b33a71b))
156+
157+
## [1.21.0] - 2023-07-10
158+
159+
[eca9ad9](eca9ad9cb93f83a8842207cc302e39f49f1b1a29)...[f123ffb](f123ffb0150d5b570569810fbdd3f9bdf1eddae4)
160+
161+
### Bug Fixes
162+
163+
- Add style to base edge props ([38bb4e1](38bb4e1e12484f5444b2087ebcbf63c51680ba8c))
164+
- Add ref to base edge props ([40732f2](40732f2559bc4c63998a1a53ccd43c770696c48d))
165+
- Use correct class name and style for handle controls (#1010) ([61f8a68](61f8a68b8453ca6b441b0ace66620aff075216c4))
166+
- Prioritize handle below during handle lookup ([245dd82](245dd825749166271f374de692838e263fde7944))
167+
- Clamp node extent by node dimensions to avoid overflow (#1014) ([82e79a6](82e79a6113e7f0b8cf7fab6210e9fd80365cb0a2))
168+
169+
### Miscellaneous Tasks
170+
171+
- Replace the deprecated enum PanelPosition (#979) ([5669c8b](5669c8b1015fa993ce8672f1c1b92709d0cb386c))
172+
- Disable qodana ([11f584a](11f584a08a14e41bbeb237d493bd5def0ddfe1d3))
173+
- Update export ([b2dc046](b2dc046fe91b1d9685388ee4d53adf38fd97147f))
174+
- Cleanup export paths ([903583a](903583a3999592e39d320a464af5bfa8555c02bd))
175+
- Add ([908ea39](908ea3965e5ae8d62260537899ee807b38970012))
176+
- Add ([e21ae68](e21ae682beadc9716eb51ad10ac1bf1747382cdc))
177+
- Cleanup (#1003) ([55de815](55de815a39cf3a3fe398ecbe8df681658688f63e))
178+
- Add missing generic ([0b60cc3](0b60cc3c3e9f0318c52c3af4a6d000b7d8729657))
179+
- Add ([6967067](69670672769251f651cac69a9e5f69f5e14f3d1d))
180+
181+
### Refactor
182+
183+
- Change nodeEl and edgeEl type to allow ref(null) ([435cb9b](435cb9b6876d43e15e5677327bfc12b86f9fb3dc))
184+
- Use sfc for base edge and bind template refs ([80ad6f1](80ad6f1677803f334b517c61ec8668e23fb8cdc5))
185+
- Use normal components for edges ([7d93915](7d93915f369d4665aced83b0e81102f08a88c5b7))
186+
- Resolve slots before returning default component (#1013) ([5838454](58384540868b2f935ac3225d97c87306567cd66b))
187+
5188
## [1.20.2] - 2023-06-15
6189

7190
[a16b7ca](a16b7ca3d01681b8ccb172ccde0316bf267d7352)...[eca9ad9](eca9ad9cb93f83a8842207cc302e39f49f1b1a29)

docs/components/examples/basic/App.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup>
2-
import { Panel, PanelPosition, VueFlow, isNode, useVueFlow } from '@vue-flow/core'
2+
import { Panel, VueFlow, isNode, useVueFlow } from '@vue-flow/core'
33
import { Background } from '@vue-flow/background'
44
import { Controls } from '@vue-flow/controls'
55
import { MiniMap } from '@vue-flow/minimap'
@@ -78,7 +78,7 @@ function toggleClass() {
7878

7979
<Controls />
8080

81-
<Panel :position="PanelPosition.TopRight" class="controls">
81+
<Panel position="top-right" class="controls">
8282
<button style="background-color: #113285; color: white" title="Reset Transform" @click="resetTransform">
8383
<svg width="16" height="16" viewBox="0 0 32 32">
8484
<path fill="#FFFFFB" d="M18 28A12 12 0 1 0 6 16v6.2l-3.6-3.6L1 20l6 6l6-6l-1.4-1.4L8 22.2V16a10 10 0 1 1 10 10Z" />

docs/components/examples/empty/App.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup>
2-
import { Panel, PanelPosition, VueFlow, useVueFlow } from '@vue-flow/core'
2+
import { Panel, VueFlow, useVueFlow } from '@vue-flow/core'
33
import { Background, BackgroundVariant } from '@vue-flow/background'
44
import { MiniMap } from '@vue-flow/minimap'
55
@@ -26,7 +26,7 @@ function addRandomNode() {
2626

2727
<Background :variant="BackgroundVariant.Lines" />
2828

29-
<Panel :position="PanelPosition.TopRight">
29+
<Panel position="top-right">
3030
<button type="button" @click="addRandomNode">add node</button>
3131
</Panel>
3232
</VueFlow>

docs/components/examples/hidden/App.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup>
22
import { Background } from '@vue-flow/background'
3-
import { Panel, PanelPosition, VueFlow, useVueFlow } from '@vue-flow/core'
3+
import { Panel, VueFlow, useVueFlow } from '@vue-flow/core'
44
import { ref, watch } from 'vue'
55
66
const isHidden = ref(false)
@@ -29,7 +29,7 @@ watch(isHidden, () => {
2929
<VueFlow fit-view-on-init>
3030
<Background />
3131

32-
<Panel :position="PanelPosition.TopRight">
32+
<Panel position="top-right">
3333
<div>
3434
<label for="ishidden">
3535
hidden

docs/components/examples/multi/Flow.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup>
22
import { Background } from '@vue-flow/background'
3-
import { Panel, PanelPosition, VueFlow, isNode } from '@vue-flow/core'
3+
import { Panel, VueFlow, isNode } from '@vue-flow/core'
44
import { ref } from 'vue'
55
66
const elements = ref([
@@ -32,7 +32,7 @@ function updatePos() {
3232
<VueFlow v-model="elements" fit-view-on-init>
3333
<Background />
3434

35-
<Panel :position="PanelPosition.TopRight">
35+
<Panel position="top-right">
3636
<button style="margin-right: 5px" @click="updatePos">update positions</button>
3737
<button @click="toggleClass">toggle class</button>
3838
</Panel>

docs/components/examples/save-restore/Controls.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup>
2-
import { Panel, PanelPosition, useVueFlow } from '@vue-flow/core'
2+
import { Panel, useVueFlow } from '@vue-flow/core'
33
44
const flowKey = 'example-flow'
55
@@ -34,7 +34,7 @@ function onAdd() {
3434
</script>
3535

3636
<template>
37-
<Panel :position="PanelPosition.TopRight" class="save-restore-controls">
37+
<Panel position="top-right" class="save-restore-controls">
3838
<button style="background-color: #33a6b8" @click="onSave">save</button>
3939
<button style="background-color: #113285" @click="onRestore">restore</button>
4040
<button style="background-color: #6f3381" @click="onAdd">add node</button>

docs/components/examples/stress/App.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup>
2-
import { Panel, PanelPosition, VueFlow, isNode, useVueFlow } from '@vue-flow/core'
2+
import { Panel, VueFlow, isNode, useVueFlow } from '@vue-flow/core'
33
import { Background } from '@vue-flow/background'
44
import { MiniMap } from '@vue-flow/minimap'
55
import { nextTick, ref } from 'vue'
@@ -43,7 +43,7 @@ function updatePos() {
4343

4444
<Background />
4545

46-
<Panel :position="PanelPosition.TopRight">
46+
<Panel position="top-right">
4747
<button style="margin-right: 5px" @click="updatePos">update positions</button>
4848
<button @click="toggleClass">toggle class</button>
4949
</Panel>

docs/src/guide/node.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ the type otherwise.
289289
<script setup>
290290
import { markRaw } from 'vue'
291291
import CustomNode from './CustomNode.vue'
292-
import CustomNode from './OverwriteCustomNode.vue'
292+
import OverwriteCustomNode from './OverwriteCustomNode.vue'
293293
import SpecialNode from './SpecialNode.vue'
294294
295295
const nodeTypes = {

0 commit comments

Comments
 (0)