vuepress-plugin-oh-my-live2d
TypeScript icon, indicating that this package has built-in type declarations

0.17.0 • Public • Published

vuepress-plugin-oh-my-live2d

GitHub package.json version GitHub package.json version

vuepress-plugin-oh-my-live2d 是一个用于 vuepress 2live2d 看板娘插件,基于 oh-my-live2d 开发,并与之同步更新。

详细的配置教程请参考文档

特征:

  • 完全集成 cubism2cubism4 ,支持所有版本的 live2d model
  • 使用 typescript 开发时具备完整的类型推导。
  • oh-my-live2d 同步更新。

示例

一些应用示例:

开始

安装

以下方式任选其一即可:

  • npm 安装:

    npm install vuepress-plugin-oh-my-live2d
  • yarn 安装:

    yarn add vuepress-plugin-oh-my-live2d
  • 国内源安装可使用 tyarn

    tyarn add vuepress-plugin-oh-my-live2d
  • pnpm 安装:

    pnpm add vuepress-plugin-oh-my-live2d

使用

在 vuepress 项目的配置文件(docs/.vuepress/config.ts)中导入插件 ohmylive2dPlugin,并在 plugins 选项中调用,之后将会以默认配置加载一个远程的模型地址,并装载至<body>标签中。

import { ohmylive2dPlugin } from 'vuepress-plugin-oh-my-live2d';

export default defineUserConfig({
  plugins: [
    ohmylive2dPlugin({
      // 在这里进行配置
    })
  ]
  //  ...more
});

自定义配置

关于

本项目不提供任何模型的下载地址,如有需要请自行寻找。

讨论

  • Q 群:474032914

许可证

MIT

Package Sidebar

Install

npm i vuepress-plugin-oh-my-live2d

Weekly Downloads

53

Version

0.17.0

License

MIT

Unpacked Size

5.68 kB

Total Files

8

Last publish

Collaborators

  • loclink
  • hacxy