Use AngularJS and D3 to implement web component like Draw of LibreOffice.