@sugarat/create-theme 0.0.101 → 0.0.103

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -76,14 +76,20 @@ const blogTheme = getThemeConfig({
76
76
  ```ts
77
77
  const blogTheme = getThemeConfig({
78
78
  oml2d: {
79
+ size: { width: 200, height: 200 },
80
+ mobileSize: { width: 120, height: 120 },
79
81
  model: [
80
82
  {
81
- path: 'https://registry.npmmirror.com/oml2d-models/latest/files/models/Senko_Normals/senko.model3.json'
83
+ path: 'https://registry.npmmirror.com/oml2d-models/latest/files/models/Senko_Normals/senko.model3.json',
84
+ offset: [0, 0.2]
82
85
  }
83
86
  ]
84
87
  }
85
88
  })
86
89
  ```
90
+
91
+ 其中 `size` 用于设置看板娘画布尺寸,`mobileSize` 用于设置移动端尺寸(命中 `max-width: 768px` 时生效)。`model.offset` 用于微调模型在画布里的位置,格式为 `[x, y]`。`x` 为负数时模型向左移动,正数向右移动;`y` 为正数时模型向上移动,负数向下移动。
92
+
87
93
  效果图如下
88
94
 
89
95
  ![](https://loclink-1259720482.cos.ap-beijing.myqcloud.com/image/%E5%BD%95%E5%B1%8F2024-03-11%2023.51.51.gif)
@@ -10,7 +10,7 @@
10
10
  "serve": "vitepress serve docs"
11
11
  },
12
12
  "dependencies": {
13
- "@sugarat/theme": "^0.5.22"
13
+ "@sugarat/theme": "^0.5.24"
14
14
  },
15
15
  "directories": {
16
16
  "doc": "docs"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sugarat/create-theme",
3
- "version": "0.0.101",
3
+ "version": "0.0.103",
4
4
  "description": "简约风的 Vitepress 博客主题,sugarat vitepress blog theme",
5
5
  "author": "粥里有勺糖",
6
6
  "license": "MIT",