Installation
26 words
0 min
Package Manager
bash
npm install l2d-widgetbash
pnpm add l2d-widgetbash
yarn add l2d-widgetCDN
Drop a <script> tag and use the L2D_WIDGET global:
html
<script src="https://unpkg.com/l2d-widget/dist/index.min.js"></script>
<script>
L2D_WIDGET.createWidget({
model: {
path: 'https://model.hacxy.cn/cat-black/model.json',
},
})
</script>