mathuo

Joined 4 years ago

Karma
107
Submissions
18
Member since
May 23
https://github.com/mathuo
View on Hacker News

Recent submissions

Comment · 1 year ago
no ai :) just a vanilla layout manager. I assume the above comment is by somebody building an ai project that could use a layout manager
Comment · 1 year ago
Comment · 1 year ago
Comment · 1 year ago
Comment · 1 year ago
Comment · 1 year ago
In terms of rendering modes both approaches are supported

https://dockview.dev/docs/core/panels/rendering

There are options to maintain the panels content within the DOM at all times (using an approach like you mentioned with display: none) and options to remove content from the DOM.

In terms of vanilla TS the library is almost entire written in vanilla TS with small wrapper libraries for Vue and React.

In theory wrappers could be written for other frameworks such as Angular (which is something I would like to get done this year)

Loading and saving state is supported though

https://dockview.dev/docs/core/state/save

Let me know if that answers the question

Comment · 1 year ago
golden layout is the OG JavaScript layout manager, used it for many years beforehand.

Orginally yes it was inspired by some of the other layout managers, include golden layout. The main goal here was to have zero depenedencies and to be written in Vanilla TypeScript with wrapper libraries for frameworks such as Vue and React.

Any feedback is appreicated, the website demo shows most of the current capabilities and there are many more planned in the Issues list.

Comment · 1 year ago
Appreciated :)
Comment · 1 year ago
Most likely, touch devices are not officially supported however support is planed. Also the demo has some issues running on Safari which will be fixed.
Comment · 1 year ago
Comment · 1 year ago
Comment · 1 year ago
There are multiple ways in which you can specify how the panel renders.

https://dockview.dev/docs/core/panels/rendering

Options exist for multiple cases:

1. Where you never want the elements DOM position to move (`always` rendering mode) and the HTMLElement is simply hidden (display: none) when not visible. 2. Where you only want the DOM element to exist when the panel is visible (`onlyWhenVisible` mode)

In the case of React the React Tree is always maintained in either mode.

Comment · 1 year ago
Comment · 1 year ago
Comment · 1 year ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton