1.1.0 • Published 2 years ago

vuepress-plugin-live2d-stride v1.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

vuepress-plugin-live2d-stride插件

支持自定义看板娘

仅支持model3资源! 基于vuepress<2版本开发

预览

预览DEMO

安装

npm i vuepress-plugin-live2d-stride

使用

在你的config.js中增加

module.exports = {
  plugins: [
      ['vuepress-plugin-live2d-stride', { model: "你的模型地址" }]
  ]
}

其他参数

属性类型必填默认说明
containerStyleObjectfalse{}给整个容器的样式,默认为右下角400 x 400的方框
modelStringtruenullmodel3.json的地址
mobilebooleanfalsefalse是否在手机上显示
offsetXnumberfalse0模型位置偏移,根据模型实际尺寸来,可能很大
offsetYnumberfalse0模型位置偏移,根据模型实际尺寸来,可能很大
delaynumberfalse2000受限于引入依赖库的问题,需要延迟加载模型,延迟的时间,建议至少大于1s
scalenumberfalse1模型缩放

参考

1.1.0

2 years ago

1.0.0

2 years ago