update demo & package & optimize `repaint`

update demo & package & optimize `repaint`