Skip to content

Initial resizable implementation #1

Description

@megheaiulian

Initial implementation

Implement a pionjs component that can be used in a container to resize 2 adjacent elements.

The component itself is just going to be a simple line.
On hover the line should get a bit thicker and the cursor should change to resize.
Upon dragging it should resize the containers.
The resize should be a simple function that receives the element mouse/touch position.
It should take into consideration how the elements are already sized.

Why not use splitjs https://split.js.org/

Its more complicated then what we need.
We don't need more then 2 adjacent container.
No complicated multi columns/rows setup.
We need it to work with the default values set via CSS.
Must work in Shadow DOM.
Must be able to transform between percentages and pixel units.

Structure

Overall the repo should have the same structure as https://github.com/Neovici/cosmoz-slider and include:

  • stories
  • tests
  • all code in typescript
  • linting

Metadata

Metadata

Labels

enhancementNew feature or request

Fields

No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions