Skip to content

Commit

Permalink
feat: doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanghaifeng2 committed Aug 1, 2023
1 parent fdac9eb commit 56ffc4a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions packages/yyeva/README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ let player:YYEvaType = await yyEva({
container,// Html Element
videoUrl,// Video Url
effects: {
// fontStyle doc: https://www.w3schools.com/jsref/canvas_font.asp
text1: {text: 'text example 1st', fontStyle: '18px arial', fontColor: '#ff0000'},
text2: {text: 'text example 2nd', fontStyle: '20px arial', fontColor: 'green'},
},
// fontStyle doc: https://www.w3schools.com/jsref/canvas_font.asp
text1: {text: 'text example 1st', fontStyle: '18px arial', fontColor: '#ff0000'},
text2: {text: 'text example 2nd', fontStyle: '20px arial', fontColor: 'green'},
},
// Events
onStart(){},
onStop(){},
Expand Down
8 changes: 4 additions & 4 deletions packages/yyeva/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ let player:YYEvaType = await yyEva({
container,// Html Element
videoUrl,// Video Url
effects: {
// 自定义字体信息 fontStyle参考https://www.w3schools.com/jsref/canvas_font.asp
text1: {text: '自定义text1', fontStyle: '18px Microsoft YaHei', fontColor: '#ff0000'},
text2: {text: '自定义text2', fontStyle: '20px Microsoft YaHei', fontColor: 'green'},
},
// 自定义字体信息 fontStyle参考https://www.w3schools.com/jsref/canvas_font.asp
text1: {text: '自定义text1', fontStyle: '18px Microsoft YaHei', fontColor: '#ff0000'},
text2: {text: '自定义text2', fontStyle: '20px Microsoft YaHei', fontColor: 'green'},
},
// Events
onStart(){},
onStop(){},
Expand Down

0 comments on commit 56ffc4a

Please sign in to comment.