Developer-Mike / obsidian-advanced-canvas

⚡ Supercharge your Obsidian.md canvas experience! Create presentations, flowcharts and more!
GNU General Public License v3.0
286 stars 12 forks source link

[FR] Auto-resize node depending on its content #45

Open KuiyueRO opened 6 months ago

KuiyueRO commented 6 months ago

I want to be able to auto resize when typing

Developer-Mike commented 6 months ago

I have thought about this feature before. However, it is difficult to make it useful. It would have to have a maximum width so that text nodes do not become too wide. Also, you would have to somehow toggle this feature quickly so that you don't resize unwanted nodes. If you have any suggestions for solving these problems, please let me know.

KuiyueRO commented 6 months ago

For toggle option

canvas mindmap helper puts this option in the upper right corner.

image

And I suggest that it only takes effect on the node currently in edit mode.

For width

Suggestion 1

Default node width as a threshold.

If node width is less than Default node width:

If the node width is greater than or equal to Default node width:

Suggestion 2

Just keep the existing width,.

advanced canvas already has a Default node width. If the user changes the width, then this width is what they want.

ramebe2585 commented 5 months ago

Auto resize would be great addition! Typically on other canvas software (Logseq, Heptabase, Scapple etc.) the width isn't adjusted when resizing -this solution would work well for my personal workflow, at least. A toggleable setting also sounds ideal.