Layout architect

Usage

const la = LayoutArchitect(
  document.querySelector('#container'),
  ['editor', 'output', 'console', 'notes']
);

la.onChange(layout => {
  // layout
});
la.change(
  // new layout here
);