slidev-addon-infographic 1.0.2 → 1.0.3

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.
Files changed (2) hide show
  1. package/README.md +14 -5
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -6,13 +6,24 @@
6
6
  pnpm i slidev-addon-infographic --save
7
7
  ```
8
8
 
9
+ Add the following to your `package.json`:
10
+
11
+ ``` json
12
+ ...
13
+ "slidev": {
14
+ "addons": [
15
+ "slidev-addon-infographic"
16
+ ]
17
+ }
18
+ ...
19
+ ```
20
+
9
21
  Add the following to your `slides.md`:
10
22
 
11
23
  ``` md
12
24
  ---
13
- layout: center
14
25
  addons:
15
- - slidev-addon-infographic
26
+ - slidev-addon-infographic
16
27
  ---
17
28
 
18
29
  <RenderWhen
@@ -32,12 +43,10 @@ addons:
32
43
  ```
33
44
 
34
45
  - **Infographic component must be used with RenderWhen component to show infographic in slidev**
35
- - **The Infographic component must occupy the entire page or be contained within elements with dimensions**
36
46
  - **Temporarily supports exporting in PPTX and PNG formats**
37
47
 
38
48
  1. **Infographic组件必须与RenderWhen组件一起使用,才能在幻灯片中显示信息图**
39
- 2. **Infographic组件必须占用整个页面或被包含在带尺寸的元素中**
40
- 3. **暂时支持导出 PPTX, PNG 格式**
49
+ 2. **暂时支持导出 PPTX, PNG 格式**
41
50
 
42
51
  Edit the [slides.md](./slides.md) to see the changes.
43
52
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slidev-addon-infographic",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "type": "module",
5
5
  "author": "fxss5201",
6
6
  "description": "@antv/infographic component for slidev",