In this case, Angular and TypeScript, but the basic concept should work in any framework/non-framework.
fabbemannen/DragSizing
Adjust relative spacing for two elements by dragging (pointer lock API)
TypeScript
Adjust relative spacing for two elements by dragging (pointer lock API)
TypeScript