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

Make elements more flexible #29

Merged
merged 3 commits into from
Sep 4, 2024
Merged

Conversation

mauriziopinotti
Copy link

@mauriziopinotti mauriziopinotti commented Aug 28, 2024

Description

Elements now have 3 properties:

  • isDraggable (default true, no visual feedback): whether they can be dragged around
  • isResizble (default false, bottom-right handle when enabled): whether they can be resized
  • isConnectable (default true, 4 handlers when enabled): whether they can be connected to other elements. Unlike the handlers param, isConnectable can be toggle at runtime

Breaking change: after resizing elements stay resizable until setElementResizable(false) is called.

image

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

Elements now have 3 properties:
- isDraggable (default true, no visual feedback): whether they can be
  dragged around
- isResizble (default false, bottom-right handle when enabled): whether
  they can be resized
- isConnectable (default true, 4 handlers when enabled): whether they
  can be connected to other elements. Unlike the "handlers" param,
  isConnectable can be toggle at runtime
@mauriziopinotti mauriziopinotti marked this pull request as draft August 28, 2024 16:34
@mauriziopinotti mauriziopinotti marked this pull request as ready for review August 30, 2024 12:27
@mauriziopinotti mauriziopinotti changed the title [Draft] Make elements more flexible Make elements more flexible Aug 30, 2024
@alnitak alnitak changed the base branch from main to dev September 4, 2024 10:18
@alnitak alnitak merged commit 6786fe8 into alnitak:dev Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants