area:
allowOverlap:
const bulletchatting = document.createElement('bullet-chatting');
bulletchatting.innerHTML = 'bulletchatting';
bulletchatting.addEventListener('bulletchattingstart', () => {
console.log('bulletchattingstart');
});
bulletchatting.addEventListener('bulletchattingend', () => {
console.log('bulletchattingend');
});
bulletchatting.addEventListener('bulletchattingcancel', () => {
console.log('bulletchattingcancel');
});
document.querySelector('bullet-chatting-list').appendChild(bulletchatting);
// play
document.querySelector('bullet-chatting-list').bulletchattingplaystate = 'running';
// pause
document.querySelector('bullet-chatting-list').bulletchattingplaystate = 'paused';
document.querySelector('bullet-chatting-list').bulletchattingduration = 1000;
document.querySelector('bullet-chatting-list').area = 10;
document.querySelector('bullet-chatting-list').allowOverlap = true;