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 9 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 Aug 19, 2024 8:02pm

Copy link

changeset-bot bot commented Jul 15, 2024

🦋 Changeset detected

Latest commit: 895dc19

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

…m` exports (#1547)

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

Signed-off-by: braks <[email protected]>

* chore(core): cleanup

Signed-off-by: braks <[email protected]>

* chore(changeset): add

Signed-off-by: braks <[email protected]>

* chore(core): cleanup exports

Signed-off-by: braks <[email protected]>

---------

Signed-off-by: braks <[email protected]>
…ports (#1551)

* refactor(core): replace `clamp`

Signed-off-by: braks <[email protected]>

* refactor(core): replace `clampPosition`

Signed-off-by: braks <[email protected]>

* refactor(core): replace `getDimensions`

Signed-off-by: braks <[email protected]>

* refactor(core): replace `getHostForElement`

Signed-off-by: braks <[email protected]>

* refactor(core): replace `getOverlappingArea`

Signed-off-by: braks <[email protected]>

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

Signed-off-by: braks <[email protected]>

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

Signed-off-by: braks <[email protected]>

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

Signed-off-by: braks <[email protected]>

* refactor(core): replace `getMarkerId`

Signed-off-by: braks <[email protected]>

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

Signed-off-by: braks <[email protected]>

* refactor(core): replace `calcAutoPan`

Signed-off-by: braks <[email protected]>

* refactor(core): replace `isMouseEvent`

Signed-off-by: braks <[email protected]>

* refactor(core): replace `getEventPosition`

Signed-off-by: braks <[email protected]>

* refactor(core): remove `isMacOS`

Signed-off-by: braks <[email protected]>

* chore(changeset): add

Signed-off-by: braks <[email protected]>

* chore(changeset): add

Signed-off-by: braks <[email protected]>

* chore(core): cleanup

Signed-off-by: braks <[email protected]>

---------

Signed-off-by: braks <[email protected]>
@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 <[email protected]>
* refactor(minimap)!: use xy minimap instance

Signed-off-by: braks <[email protected]>

* chore(minimap): cleanup

Signed-off-by: braks <[email protected]>

* chore(minimap): cleanup deps

Signed-off-by: braks <[email protected]>

* chore(changeset): add

Signed-off-by: braks <[email protected]>

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

Signed-off-by: braks <[email protected]>

* chore(node-toolbar): cleanup deps

Signed-off-by: braks <[email protected]>

* chore(core): re-export Viewport type

Signed-off-by: braks <[email protected]>

* chore(core): update system

Signed-off-by: braks <[email protected]>

* chore(docs): cleanup dead links

Signed-off-by: braks <[email protected]>

* chore(core): cleanup exports

Signed-off-by: braks <[email protected]>

---------

Signed-off-by: braks <[email protected]>
# Conflicts:
#	packages/core/src/container/Viewport/Viewport.vue
#	packages/core/src/types/flow.ts
refactor(core): rename viewport and zoom-pane css classes

Signed-off-by: braks <[email protected]>
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