Skip to content

Commit

Permalink
fix: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoluoHe committed May 29, 2024
1 parent 38d2644 commit af391fc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
1 change: 0 additions & 1 deletion packages/vstory/demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
</head>

<body>
<!-- 视频 1920*1080, 等比例缩小 0.75 -->
<div id="root"></div>
</body>
<script type="module" src="/src/App.tsx"></script>
Expand Down
21 changes: 12 additions & 9 deletions packages/vstory/demo/src/demos/VChartSite/VChartSite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { scene1, scene1Characters } from './scene1';
import { scene2, scene2Characters } from './scene2';
import { scene3, scene3Characters } from './scene3';
import { scene4, scene4Characters } from './scene4';
import { scene5, scene5Characters } from './scene5';

export const VChartSiteDemo = () => {
const id = 'storyBar';
Expand All @@ -13,24 +14,26 @@ export const VChartSiteDemo = () => {
// 准备一个图表
const tempSpec: IStorySpec = {
characters: [
...scene1Characters, //
...scene2Characters,
...scene3Characters,
...scene4Characters
// ...scene1Characters, //
// ...scene2Characters,
// ...scene3Characters,
// ...scene4Characters,
...scene5Characters
],
acts: [
{
id: 'default-chapter',
scenes: [
// scene1, //
// scene2,
scene3,
scene4
// scene3,
// scene4,
scene5
]
}
]
};
console.log(111, tempSpec);
console.log('dsl', tempSpec);
const story = new Story(tempSpec, { dom: id });
window.story = story;
story.play();
Expand Down Expand Up @@ -67,6 +70,6 @@ export const VChartSiteDemo = () => {
// story.getPlayer().tickTo(300 * i++);
// }, 300);
}, []);

return <div style={{ width: '100%', height: '100%' }} id={id}></div>;
/** 视频 1920*1080, 等比例缩小 0.75 */
return <div style={{ width: '1440px', height: '810px' }} id={id}></div>;
};

0 comments on commit af391fc

Please sign in to comment.