Skip to content

Make elements more flexible#29

Merged
alnitak merged 3 commits intoalnitak:devfrom
easyhour:draggable_resizable
Sep 4, 2024
Merged

Make elements more flexible#29
alnitak merged 3 commits intoalnitak:devfrom
easyhour:draggable_resizable

Conversation

@mauriziopinotti
Copy link
Copy Markdown

@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