Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

live2d-widget

xiazeyu1.5kGPL-2.03.1.4

Add the Sseexxyyy live2d to webpages.

readme

npm deps devdeps

downloads downloads-month

GitHub stars GitHub forks GitHub issues

Commitizen friendly PRs Welcome license

Backers on Open Collective Sponsors on Open Collective

live2d-widget.js

Add the Sseexxyyy live2d to your webpages! Seperated from hexo-helper-live2d.

Demo: Still working, but you can have a look~

Docs(including APIs): Click me!

Online generator: TBD.

Useage

Hexo

Please visit hexo-helper-live2d for the hexo plugin.

Webpages

File on your server

Download the latest release,

and then copy and extract the lib folder to your website.

Use online generator (recommended) to generate codes.

<summary>However, if you want to do it manually, follow the instruction below:</summary>

import the js:


<script src = "( your script path here )"></script>

Then call the function along with your config.

L2Dwidget.init({
  'config1': 'value1',
  'config2': 'value2',
});

Bookmark (any pages)

TBD.

https://www.cnblogs.com/pcyy/p/5655542.html

Settings

See the document.

<summary>Current supported models:</summary>
  • chitose
  • Epsilon2.1
  • Gantzert_Felixander
  • haru01
  • haru02
  • haruto
  • hibiki
  • hijiki
  • izumi
  • koharu
  • miku
  • nico
  • ni-j
  • nipsilon
  • nito
  • shizuku
  • tororo
  • tsumiki
  • Unitychan
  • wanko
  • z16

Custom model

  1. Create a live2d_models folder at your blog's root directory.

  2. Create a folder by the name of your model.

  3. Copy your model to this folder.

Attention! The path of the model's json must be /live2d_models/{name}/{name}.model.json

<summary>An Example:</summary>

Your model is named mymiku.

Then, create a folder at / (Which should exists _config.ymlsourcesthemes ) named mymiku.

Copy your model to /live2d_models/mymiku/.

Up to now, there should be mymiku.model.json in the directory of /live2d_models/mymiku/.


~The problem was once releated to (#22).~


See WEBPACK VISUALIZER

Enjoy!:beer:

This is my first hexo plugin, star :star: and watch :eyeglasses:, pull request is also welcomed.

Github: https://github.com/EYHN/hexo-helper-live2d

issues: https://github.com/EYHN/hexo-helper-live2d/issues

Contribute

Please pay enough attention to this document if you want to commit your changes or submit issues.

CONTRIBUTING

Releated projects

About me

Author

Author QQ

Author Email

Collaborator 0

Collaborator 0 QQ

Collaborator 0 Email

Imported

current-device

Special Thanks

  • @mashirozx
  • @fghrsh
  • @journey-ad
  • @gwzz

Open sourced under the GPL v2.0 license.

Contributors

This project exists thanks to all the people who contribute.

Backers

Thank you to all our backers! 🙏 [Become a backer]

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]

changelog

3.0.6 (2019-04-01)

3.0.5 (2018-02-15)

  • chore: bump version, upload production lib (d321872)
  • ci: add support for Travis (b575b69)
  • ci: config travis (870f27a)
  • ci: fix config error (dc2ebd5)
  • ci: fix config errors (7c9b867)
  • ci: fix errors (43d8a10)
  • ci: fix travis bug (99f392f)
  • ci: modify npm script 'build:esdoc' for linux-only-use (f8905f9)
  • ci: remove encrypt, since this is only used to access ghpage (e2cf234)
  • ci: travis bugs (1d3db7b)
  • ci: travis errors (6aefd13)
  • ci: try...to...fix... travis error (0e9c1b5)
  • style: add eslint (9080413)
  • style: npm script style (0ef7538)
  • build: update CHANGELOG build flow (17de15a)
  • docs: add git module of ghpages (8492034)
  • docs: ghpages (103b1dc)
  • docs: update build:docs (9b1ce55)
  • docs: use submodule to store docs (0e25ac7)

3.0.4 (2018-02-07)

  • docs: migrate documents to live2d-widget.js-doc (90b9894)
  • docs: update CHANGELOG (9ae492e)
  • 3.0.4 (d71c60b)
  • build: remove lib from github, rename output file (efc0f53)
  • build(entry): add entry point in package.json (b7240fb)

3.0.2 (2018-01-20)

  • 3.0.2 (1bd3909)
  • docs(update doc): (423465f)
  • feat: seperate defaultConfig for supporting helper (5fa4587)

3.0.1 (2018-01-19)

  • docs: relink js to unpkg CDN (0bd9cdf)
  • docs: update CHANGELOG (c840cfa)
  • docs: update docs (188368a)
  • docs(method of execute): finish the doc of launch it (use var) (1b43dc0)
  • feat: new build (f70a36c)
  • fix: achieve frameshot, recover event system (aed9c26)
  • style: change L2Dwidget into Class (59909df)
  • build(add script to bump version better): (a2d04e8)
  • build(fix changelog script path problem): (67c56ee)
  • chore(update dependency settings): (7796aac)
  • build: remove ghpages from npm publish (7401ffe)

3.0.0 (2018-01-13)

  • feat: 3.0 API now is fixed. reday to publish (32a7b6d)
  • feat: API chanes again ! get current frame (cc76f02)
  • feat: config (62118e1)
  • feat: config validater (cc587b2)
  • feat: delete config validate function (0234132)
  • feat: elementMgr codes, modify API (e6433e3)
  • feat: elementMgr functionally done (aa09c5d)
  • feat: FINALLY USEABLE (basically) (7c121a2)
  • feat: finish config validater (67a0558)
  • feat: fix webpack PublicPath prob. (093ee10)
  • feat: http(s) protocol supports for model's json's textures (d9b854a)
  • feat: import lodash (be5531d)
  • feat: marked unfinished files, rebuild file structure, config works (62555a9)
  • feat: modified live2d core js (d3c7ab5)
  • feat: TEST Create DOM use js (1a8db01)
  • feat: update source code (28d350b)
  • feat: use ~ to mark version (4f0e865)
  • feat(API): typo (b342953)
  • feat(config): new config (5f13a2b)
  • feat(Webpack): lazy load and chunks (ccbe0d0)
  • feat(Webpack): updated webpack config (260cbad)
  • chore: add comments (24b43e3)
  • chore: new build version (c698c90)
  • chore: new build version (7216003)
  • docs: add ESDoc (9a67891)
  • docs: added demo and doc (5d4cddc)
  • docs: fix bugs, update (14d0730)
  • docs: new doc build logic (a7f1d54)
  • docs: Update API varible types (f3ab76b)
  • docs: update CHANGELOG (abf0618)
  • docs: update CHANGELOG (89765f5)
  • docs: update docs (0ec0dec)
  • docs: update docs (3955611)
  • docs(LICENSE): combine LICENSE (6be306f)
  • feat: (8c668b1)
  • Initial commit (cc61b39)
  • The Real Initial Commit (23ba71c)
  • build: new doc build method (6854707)
  • fix: old dependencies (7a2f272)
  • fix(webpack): fix webpack publicPath issue (a8a630e)
  • style: fix indent (cb6f7d9)

BREAKING CHANGE

  • change userConfig.display.AA to userConfig.display.antialias
  • change userConfig.display.widght to userConfig.display.width
  • Please use L2DWidget.init() and L2DWidget.captureFrame() instead of initL2DWidget()