Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

Commit

Permalink
fix: bottomOffset to verticalOffset
Browse files Browse the repository at this point in the history
  • Loading branch information
EYHN committed Nov 3, 2017
1 parent 8a30beb commit 6d432b8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ hexo.extend.helper.register('live2d', function() {
${config.position}: ${config.horizontalOffset}px;
z-index: 999;
pointer-events: none;
bottom: ${config.bottomOffset}px;
bottom: ${config.verticalOffset}px;
}
</style>
<script src="live2d/device.min.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hexo-helper-live2d",
"version": "2.1.0",
"version": "2.1.1",
"description": "为你的hexo添加色气满满的live2d吧!",
"main": "./index.js",
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ live2d:
- `mobileWidth`: The width of your model on mobile devices. default: 150
- `mobileHeight`: The height of your model on mobile devices. default: 75
- `horizontalOffset`: The horizontal offset. default: 0
- `bottomOffset`: The offset of the bottom. default: -20
- `verticalOffset`: The offset of the bottom. default: -20
- `position`: `left` or `right` side the model is shown at. default: right
- `className`: The class name of the `<canvas>` element. default: live2d
- `id`: The ID of the `<canvas>` element. default: live2dcanvas
Expand Down
2 changes: 1 addition & 1 deletion readme.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ live2d:
- `mobileHeight`: 移动设备上的高度 默认值: 150
- `position`: 模型左右侧放置位置 `left` 或 `right` 默认值: false
- `horizontalOffset`: `<canvas>` 元素的水平偏移 默认值: 0
- `bottomOffset`: `<canvas>` 元素的底部偏移 默认值: -20
- `verticalOffset`: `<canvas>` 元素的底部偏移 默认值: -20
- `className`: `<canvas>` 元素的类名 默认值: live2d
- `id`: `<canvas>` 元素的id 默认值: live2dcanvas
如果嫌模型位置不正确 可以调整这个参数
Expand Down

0 comments on commit 6d432b8

Please sign in to comment.