We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79fee8c commit 62ffdf1Copy full SHA for 62ffdf1
web/public/scratch3/scratch-mobile.html
@@ -16,6 +16,34 @@
16
var workId = urlParams('workId')
17
18
window.scratchConfig = {
19
+ stageArea: {
20
+ scale: 1,
21
+ width: 480,
22
+ height: 360,
23
+ showControl: true,
24
+ showLoading: false,
25
+ fullscreenButton:{ //全屏按钮
26
+ show: true,
27
+ handleBeforeSetStageUnFull(){ //退出全屏前的操作
28
+ return true
29
+ },
30
+ handleBeforeSetStageFull(){ //全屏前的操作
31
32
+ }
33
34
+ startButton:{ //开始按钮
35
36
+ handleBeforeStart(){ //开始前的操作
37
38
39
40
+ stopButton:{ // 停止按钮
41
42
+ handleBeforeStop(){ //停止前的操作
43
44
45
46
47
handleVmInitialized: (vm) => {
48
window.vm = vm
49
console.log(vm);
0 commit comments