* add heatmap

* update

* add heatmap
This commit is contained in:
Harvey Zack authored and GitHub committed 2023-05-02 13:43:05 +08:00
1 parent 5ba1569f67
commit e3658aed6f
6 files changed
+272 -27

No files matched your search

@@ -1,5 +1,6 @@
import Danmuku from './danmuku';
import setting from './setting';
import heatmap from './heatmap';
function checkVersion(art) {
const {
@@ -17,6 +18,7 @@ export default function artplayerPluginDanmuku(option) {
checkVersion(art);
const danmuku = new Danmuku(art, option);
setting(art, danmuku);
if (option.heatmap) heatmap(art, danmuku);
return {
name: 'artplayerPluginDanmuku',
emit: danmuku.emit.bind(danmuku),