Skip to content

Commit

Permalink
feat: update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
neuqzxy committed Aug 15, 2024
1 parent 3d8bde1 commit c195a20
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion docs/assets/examples/en/site-scene/basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -13280,7 +13280,8 @@ const spec = {
]
};

const vstory = new VStory.Story(spec, { dom: CONTAINER_ID, playerOption: { scaleX: 0.5, scaleY: 0.5 } });
const vstory = new VStory.Story(spec, { dom: CONTAINER_ID, playerOption: { scaleX: 1, scaleY: 1 } });
vstory.canvas.getStage().defaultLayer.scale(0.5, 0.5);
window.vstory = vstory;
vstory.play();
```
3 changes: 2 additions & 1 deletion docs/assets/examples/zh/site-scene/basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -13280,7 +13280,8 @@ const spec = {
]
};

const vstory = new VStory.Story(spec, { dom: CONTAINER_ID, playerOption: { scaleX: 0.5, scaleY: 0.5 } });
const vstory = new VStory.Story(spec, { dom: CONTAINER_ID, playerOption: { scaleX: 1, scaleY: 1 } });
vstory.canvas.getStage().defaultLayer.scale(0.5, 0.5);
window.vstory = vstory;
vstory.play();
```
2 changes: 1 addition & 1 deletion packages/vstory/demo/src/demos/VChartSite/VChartSite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const VChartSiteDemo = () => {
};
console.log('dsl', tempSpec);
const story = new Story(tempSpec, { dom: id, playerOption: { scaleX: 1, scaleY: 1 } });
story.player.speed = 5;
story.player.speed = 2;
window.story = story;
story.play(false);
const btn1 = document.createElement('button');
Expand Down

0 comments on commit c195a20

Please sign in to comment.