Blazor-Diagrams / Blazor.Diagrams

A fully customizable and extensible all-purpose diagrams library for Blazor
https://blazor-diagrams.zhaytam.com
MIT License
919 stars 176 forks source link

Nodes can be made resizable #319

Closed Heathermcx closed 9 months ago

Heathermcx commented 1 year ago

Resizers can be added to a node. Dragging a resizer resizes the node.

zHaytam commented 1 year ago

Hello,

First of all thanks a lot for the PR, it's a great amount of work!

Thing is, I have created the Controls feature for this. Since Controls are meant to be "addons" to models (nodes/links), Resizing feature fits perfectly. Controls have widgets too and can be drawn, so all in all it's really made for this type of stuff.

I don't see a Resizer a model because it doesn't really hold any data/information, it's just a thing that you use to change the size of a model, which is purely UI based and I doubt you would consider saving this in the backend no?

What do you think? Sorry if this feels like I'm disregarding your work.

Heathermcx commented 6 months ago

Hi, sorry for the delay in reply. Thank you for the feedback! It makes sense. I have implemented resizing using Controls. PR https://github.com/Blazor-Diagrams/Blazor.Diagrams/pull/393