Skip to content

Commit

Permalink
feat: reset old example
Browse files Browse the repository at this point in the history
  • Loading branch information
neuqzxy committed Oct 31, 2024
1 parent 958c67e commit 9d89e9c
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 17 deletions.
3 changes: 2 additions & 1 deletion docs/assets/examples/zh/ranking-bar/basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ const spec = {
]
};

const vstory = new VStory.Story(spec, { dom: CONTAINER_ID, playerOption: { scaleX: 0.9, scaleY: 0.9 } });
const vstory = new VStory.Story(spec, { dom: CONTAINER_ID, playerOption: { scaleX: 1, scaleY: 1 } });
vstory.canvas.getStage().defaultLayer.scale(0.9, 0.9);
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();
```
3 changes: 2 additions & 1 deletion docs/assets/examples/zh/unit/basic-component.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ const spec = {
}
]
};
const vstory = new VStory.Story(spec, { dom: CONTAINER_ID, playerOption: { scaleX: 0.4, scaleY: 0.4 } });
const vstory = new VStory.Story(spec, { dom: CONTAINER_ID, playerOption: { scaleX: 1, scaleY: 1 } });
vstory.canvas.getStage().defaultLayer.scale(0.4, 0.4);

vstory.play(false);
window.vstory = vstory;
Expand Down
3 changes: 2 additions & 1 deletion docs/assets/examples/zh/unit/unit-gun-death.md
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,8 @@ const unitSpec = {
};
// 准备一个图表
const spec = VStory.generateSpec(unitSpec);
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);
vstory.play(false);
window.vstory = vstory;
```
15 changes: 3 additions & 12 deletions docs/assets/examples/zh/unit/unit-infographic.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,6 @@ const spec = {
textAlign: 'center',
fill: 'white',
fontWeight: 200,
textAlign: 'center',
textBaseline: 'middle',
textConfig: [
{
text: 'According to a study conducted by ',
Expand Down Expand Up @@ -186,8 +184,6 @@ const spec = {
graphic: {
text: '67%',
fill: '#48A0CF',
textAlign: 'center',
textBaseline: 'middle',
fontSize: 110,
fontWeight: 600
}
Expand All @@ -210,8 +206,6 @@ const spec = {
width: 460,
height: 108,
wordBreak: 'break-word',
textAlign: 'center',
textBaseline: 'middle',
textConfig: [
{
text: 'Of over 120 CEOs plan to spend less time on hiring permanent recruits'
Expand All @@ -236,9 +230,7 @@ const spec = {
fill: '#48A0CF',
fontSize: 110,
fontWeight: 600,
stroke: '#48A0CF',
textAlign: 'center',
textBaseline: 'middle',
stroke: '#48A0CF'
}
}
},
Expand All @@ -259,8 +251,6 @@ const spec = {
width: 460,
height: 108,
wordBreak: 'break-word',
textAlign: 'center',
textBaseline: 'middle',
textConfig: [
{
text: 'Plan to grow their IT and tech teams in response to changing ways of working'
Expand Down Expand Up @@ -374,7 +364,8 @@ const spec = {
}
]
};
const vstory = new VStory.Story(spec, { dom: CONTAINER_ID, playerOption: { scaleX: 0.4, scaleY: 0.4 } });
const vstory = new VStory.Story(spec, { dom: CONTAINER_ID, playerOption: { scaleX: 1, scaleY: 1 } });
vstory.canvas.getStage().defaultLayer.scale(0.4, 0.4);

vstory.play(false);
window.vstory = vstory;
Expand Down
2 changes: 1 addition & 1 deletion packages/vstory/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/vstory",
"version": "0.0.8-alpha.2",
"version": "0.0.9-alpha.1",
"description": "",
"sideEffects": true,
"main": "cjs/index.js",
Expand Down

0 comments on commit 9d89e9c

Please sign in to comment.