From af391fcf94ff2752d0e69453557fcdc5efc2c08e Mon Sep 17 00:00:00 2001 From: xiaoluoHe Date: Wed, 29 May 2024 10:18:28 +0800 Subject: [PATCH] fix: add comment --- packages/vstory/demo/index.html | 1 - .../demo/src/demos/VChartSite/VChartSite.tsx | 21 +++++++++++-------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/packages/vstory/demo/index.html b/packages/vstory/demo/index.html index 04f084b2..3e324be4 100644 --- a/packages/vstory/demo/index.html +++ b/packages/vstory/demo/index.html @@ -8,7 +8,6 @@ -
diff --git a/packages/vstory/demo/src/demos/VChartSite/VChartSite.tsx b/packages/vstory/demo/src/demos/VChartSite/VChartSite.tsx index d28a9bdf..bf062b78 100644 --- a/packages/vstory/demo/src/demos/VChartSite/VChartSite.tsx +++ b/packages/vstory/demo/src/demos/VChartSite/VChartSite.tsx @@ -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'; @@ -13,10 +14,11 @@ export const VChartSiteDemo = () => { // 准备一个图表 const tempSpec: IStorySpec = { characters: [ - ...scene1Characters, // - ...scene2Characters, - ...scene3Characters, - ...scene4Characters + // ...scene1Characters, // + // ...scene2Characters, + // ...scene3Characters, + // ...scene4Characters, + ...scene5Characters ], acts: [ { @@ -24,13 +26,14 @@ export const VChartSiteDemo = () => { 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(); @@ -67,6 +70,6 @@ export const VChartSiteDemo = () => { // story.getPlayer().tickTo(300 * i++); // }, 300); }, []); - - return
; + /** 视频 1920*1080, 等比例缩小 0.75 */ + return
; };