1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414
| <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <link rel="icon" type="image/svg+xml" href="/vite.svg" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Interaction React</title> <link rel="stylesheet" href="./cocos-index.css"> </head> <body> <div class="toolbar hide" style="display: none;"> <div class="item"> <div id="view-select" class="view-select-container" value="Default" tabindex="-1" > <div class="view-select"> <div class="label"> <span id="name">设计分辨率 (375X812)</span> </div> <i class="arrow-triangle"></i> </div> <div class="options"> <ul> <li class="selected" data-device="Default"> 设计分辨率 (375X812) </li>
<li class="" data-device="FullScreen">全屏</li>
<li class="" data-device="WebpageFullScreen">网页全屏</li>
<li class="separator"></li>
<li class="" data-device="iPhone SE">iPhone SE (375X667)</li>
<li class="" data-device="iPhone XS Max"> iPhone XS Max (414X896) </li>
<li class="" data-device="iPhone XS">iPhone XS (375X812)</li>
<li class="" data-device="iPhone XR">iPhone XR (414X896)</li>
<li class="" data-device="iPhone 8 Plus"> iPhone 8 Plus (414X736) </li>
<li class="" data-device="iPhone 8">iPhone 8 (375X667)</li>
<li class="" data-device="Galaxy S9 Plus"> Galaxy S9 Plus (412X846) </li>
<li class="" data-device="Galaxy S9">Galaxy S9 (360X740)</li>
<li class="" data-device="Galaxy S7">Galaxy S7 (360X640)</li>
<li class="" data-device="Huawei P20 Lite"> Huawei P20 Lite (360X760) </li>
<li class="" data-device="Huawei P20 Pro"> Huawei P20 Pro (360X747) </li>
<li class="" data-device="Huawei P20">Huawei P20 (360X748)</li>
<li class="" data-device="Huawei P10">Huawei P10 (360X640)</li>
<li class="" data-device="Moto Z2">Moto Z2 (360X640)</li>
<li class="" data-device="Redmi Note 5"> Redmi Note 5 (393X786) </li>
<li class="" data-device="Redmi Note 4"> Redmi Note 4 (360X640) </li>
<li class="" data-device="Pixel 3 XL">Pixel 3 XL (393X786)</li>
<li class="" data-device="Pixel 2 XL">Pixel 2 XL (412X823)</li>
<li class="" data-device="Pixel 2">Pixel 2 (412X640)</li>
<li class="" data-device="Nexus 6P">Nexus 6P (412X732)</li>
<li class="" data-device="Nexus 6">Nexus 6 (360X640)</li>
<li class="" data-device="LG K20">LG K20 (360X640)</li>
<li class="" data-device="LG K7">LG K7 (320X570)</li>
<li class="" data-device="ZTE ZMAX Pro"> ZTE ZMAX Pro (360X640) </li>
<li class="" data-device="ZTE Majesty Pro"> ZTE Majesty Pro (320X570) </li> </ul> </div> </div> </div> <div class="item"><button id="btn-rotate" class="">Rotate</button></div> <span style="font-size: small" class="item">Debug Mode:</span> <div class="item"> <select id="opts-debug-mode" value="VERBOSE"> <option value="NONE">None</option> <option value="VERBOSE">Verbose</option> <option value="INFO">Info</option> <option value="WARN">Warn</option> <option value="ERROR">Error</option> <option value="INFO_FOR_WEB_PAGE">Info For Web Page</option> <option value="WARN_FOR_WEB_PAGE">Warn For Web Page</option> <option value="ERROR_FOR_WEB_PAGE">Error For Web Page</option> </select> </div> <div class="item"> <button id="btn-show-fps" class="checked">Show FPS</button> </div> <div class="item"> <span style="font-size: small" class="item">FPS:</span ><input id="input-set-fps" type="number" value="60" /> </div> <div style="margin-right: 0" class="item"> <button id="btn-pause">Pause</button><button id="btn-step">Step</button> </div> <div class="item"> <button id="btn-step" style="display: none">Step</button> </div> <div id="step-length"> <span>Step Length: </span> <input type="text" value="1" /> <span>ms</span> </div> </div>
<div id="content" class="content" style="overflow: hidden"> <div class="contentWrap"> <div id="GameDiv" class="wrapper" style=" display: flex; justify-content: center; align-items: center; transform: rotate(0deg); margin: 0px auto; width: 359px; height: 847px; " > <div id="Cocos3dGameContainer" style="width: 100%; height: 100%"> <canvas id="GameCanvas" tabindex="-1" style="background-color: ''" width="718" height="1694" ></canvas> </div> <div id="splash" class="portrait" style="visibility: visible; display: none" > <div class="progress-bar stripes"> <span style="width: 60%"></span> </div> </div> <div id="bulletin"> <div id="sceneIsEmpty" class="inner"> 预览场景中啥都没有,加点什么,或在编辑器中打开其它场景吧 </div> </div> <div class="error" id="error"> <div class="title"> Error <i>(Please open the console to see detailed errors)</i> </div> <div class="error-main"></div> <div class="error-stack"></div> </div> </div> </div> </div>
<script src="/node_modules/vconsole/dist/vconsole.min.js"></script> <script> window.VConsole && (window.vConsole = new VConsole()); </script>
<script src="/scripting/polyfills/bundle.js"></script>
<script src="/scripting/engine/bin/.cache/dev/preview/import-map.json" type="systemjs-importmap" ></script>
<script src="/scripting/x/import-map.json" type="systemjs-importmap" ></script>
<script src="/scripting/import-map-global" type="systemjs-importmap" ></script>
<script src="/scripting/systemjs/system.js"></script>
<script> System.setResolutionDetailMapCallback(function () { var url = new URL( "/scripting/x/resolution-detail-map.json", window.location ); return fetch(url) .then(function (response) { return response.json(); }) .then(function (json) { return { json, url: url.href }; }); }); </script>
<script src="/scripting/engine/bin/.cache/dev/preview/bundled/index.js"></script>
<script name="setting" src="/settings.js?scene=current_scene"></script>
<script> window.onload = function () { System.import("/preview-app/index.js") .then(function (mod) { return mod.bootstrap({ engineBaseUrl: "/scripting/engine", settings: window._CCSettings, devices: { Default: { name: "设计分辨率", width: 375, height: 812, ratio: 1, }, FullScreen: { name: "全屏" }, WebpageFullScreen: { name: "网页全屏" }, __separator__: { name: "__separator__" }, "iPhone SE": { name: "iPhone SE", width: 375, height: 667, ratio: 2, }, "iPhone XS Max": { name: "iPhone XS Max", width: 414, height: 896, ratio: 3, }, "iPhone XS": { name: "iPhone XS", width: 375, height: 812, ratio: 3, }, "iPhone XR": { name: "iPhone XR", width: 414, height: 896, ratio: 2, }, "iPhone 8 Plus": { name: "iPhone 8 Plus", width: 414, height: 736, ratio: 2.6, }, "iPhone 8": { name: "iPhone 8", width: 375, height: 667, ratio: 2, }, "Galaxy S9 Plus": { name: "Galaxy S9 Plus", width: 412, height: 846, ratio: 3.5, }, "Galaxy S9": { name: "Galaxy S9", width: 360, height: 740, ratio: 4, }, "Galaxy S7": { name: "Galaxy S7", width: 360, height: 640, ratio: 4, }, "Huawei P20 Lite": { name: "Huawei P20 Lite", width: 360, height: 760, ratio: 3, }, "Huawei P20 Pro": { name: "Huawei P20 Pro", width: 360, height: 747, ratio: 3, }, "Huawei P20": { name: "Huawei P20", width: 360, height: 748, ratio: 3, }, "Huawei P10": { name: "Huawei P10", width: 360, height: 640, ratio: 3, }, "Moto Z2": { name: "Moto Z2", width: 360, height: 640, ratio: 4, }, "Redmi Note 5": { name: "Redmi Note 5", width: 393, height: 786, ratio: 2.75, }, "Redmi Note 4": { name: "Redmi Note 4", width: 360, height: 640, ratio: 3, }, "Pixel 3 XL": { name: "Pixel 3 XL", width: 393, height: 786, ratio: 3.67, }, "Pixel 2 XL": { name: "Pixel 2 XL", width: 412, height: 823, ratio: 3.5, }, "Pixel 2": { name: "Pixel 2", width: 412, height: 640, ratio: 2.6, }, "Nexus 6P": { name: "Nexus 6P", width: 412, height: 732, ratio: 3.5, }, "Nexus 6": { name: "Nexus 6", width: 360, height: 640, ratio: 4, }, "LG K20": { name: "LG K20", width: 360, height: 640, ratio: 2 }, "LG K7": { name: "LG K7", width: 320, height: 570, ratio: 1.5 }, "ZTE ZMAX Pro": { name: "ZTE ZMAX Pro", width: 360, height: 640, ratio: 3, }, "ZTE Majesty Pro": { name: "ZTE Majesty Pro", width: 320, height: 570, ratio: 1.5, }, }, }); }) .catch(function (err) { console.error(err); }); }; </script>
<script type="text/javascript" src="chrome-extension://dlkffcaaoccbofklocbjcmppahjjboce/inject/index.js" ></script> </body> </html>
|