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

refactor(core): implement @xyflow/system #1546

Draft
wants to merge 11 commits into
base: release/2.0.0
Choose a base branch
from

Conversation

bcakmakoglu
Copy link
Owner

@bcakmakoglu bcakmakoglu commented Jul 15, 2024

🚀 What's changed?

  • Add @xyflow/system to deps
  • Replace existing system functions with exports from @xyflow/system
  • ...

🪴 To-Dos

  • Use XYZoom
  • Use XYDrag
  • Replace edge utils
  • Replace graph utils
  • ...

@bcakmakoglu bcakmakoglu self-assigned this Jul 15, 2024
Copy link

vercel bot commented Jul 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
vue-flow-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 2, 2025 2:24pm

Copy link

changeset-bot bot commented Jul 15, 2024

🦋 Changeset detected

Latest commit: 99d2cda

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
@vue-flow/minimap Major
@vue-flow/core Major
@vue-flow/background Major
@vue-flow/controls Major
@vue-flow/node-resizer Major
@vue-flow/node-toolbar Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
…m` exports (#1547)

* refactor(core,edges): replace edge helpers with xyflow/system exports

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* chore(core): cleanup

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* chore(changeset): add

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* chore(core): cleanup exports

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

---------

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
…ports (#1551)

* refactor(core): replace `clamp`

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* refactor(core): replace `clampPosition`

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* refactor(core): replace `getDimensions`

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* refactor(core): replace `getHostForElement`

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* refactor(core): replace `getOverlappingArea`

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* refactor(core): replace `boxToRect` & `rectToBox`

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* refactor(core): replace `getBoundsOfRects` & `getBoundsOfBoxe` & `rendererPointToPoint`

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* refactor(minimap): update import of `getBoundsOfRects`

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* refactor(core): replace `getMarkerId`

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* refactor(core): replace `isRect` & `isNumeric`

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* refactor(core): replace `calcAutoPan`

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* refactor(core): replace `isMouseEvent`

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* refactor(core): replace `getEventPosition`

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* refactor(core): remove `isMacOS`

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* chore(changeset): add

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* chore(changeset): add

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* chore(core): cleanup

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

---------

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
@bcakmakoglu bcakmakoglu changed the title refactor(core): add xyflow system refactor(core): implement @xyflow/system Jul 15, 2024
chore(changeset): add

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
* refactor(minimap)!: use xy minimap instance

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* chore(minimap): cleanup

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* chore(minimap): cleanup deps

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* chore(changeset): add

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* refactor(node-toolbar): replace `ViewportTransform` type

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* chore(node-toolbar): cleanup deps

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* chore(core): re-export Viewport type

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* chore(core): update system

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* chore(docs): cleanup dead links

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* chore(core): cleanup exports

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

---------

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
# Conflicts:
#	packages/core/src/container/Viewport/Viewport.vue
#	packages/core/src/types/flow.ts
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
refactor(core): rename viewport and zoom-pane css classes

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
# Conflicts:
#	packages/core/src/components/ConnectionLine/index.ts
#	packages/core/src/components/Edges/EdgeWrapper.ts
#	packages/core/src/composables/useDrag.ts
#	packages/core/src/composables/useHandle.ts
#	packages/core/src/container/Pane/Pane.vue
#	packages/core/src/container/Viewport/Viewport.vue
#	packages/core/src/utils/general.ts
#	packages/core/src/utils/graph.ts
#	packages/core/src/utils/handle.ts
#	packages/core/src/utils/node.ts
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Refactor existing features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant