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