kieler / klighd-vscode

Eclipse Public License 2.0
8 stars 6 forks source link

Node titles allow for any rendering, not only KTexts #30

Closed NiklasRentzCAU closed 2 years ago

NiklasRentzCAU commented 2 years ago

Initially node titles were implemented specific to KTexts, so that any KText could be a node title which would be scaled up within its parent rendering when zoomed out far enough to make that title illegible. This PR rethinks the core idea and allows the same concept for any rendering. So now any rendering can be set to be the node title and that entire rendering (e.g. formatted text) will be scaled accordingly.

Also re-organizes some code used multiple times.

NiklasRentzCAU commented 2 years ago

Closes #28.