threepipe
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Threepipe React/TSX Sample</title>
  6. <!-- Import maps polyfill -->
  7. <!-- Remove this when import maps will be widely supported -->
  8. <script async src="https://unpkg.com/es-module-shims@1.6.3/dist/es-module-shims.js"></script>
  9. <script type="importmap">
  10. {
  11. "imports": {
  12. "threepipe": "./../../dist/index.mjs",
  13. "vue": "https://unpkg.com/vue@3/dist/vue.esm-browser.prod.js",
  14. "vue-import": "https://unpkg.com/vue-import/dist/vue-import.esm-browser.js"
  15. }
  16. }
  17. </script>
  18. <!-- "vue-import": "./vue-import/dist/vue-import.esm-browser.prod.js"-->
  19. <style>
  20. html, body{
  21. width: 100%;
  22. height: 100%;
  23. margin: 0;
  24. overflow: hidden;
  25. }
  26. </style>
  27. <script type="module" src="../examples-utils/simple-code-preview.mjs"></script>
  28. </head>
  29. <body>
  30. <div id="app">
  31. <three-viewer></three-viewer>
  32. </div>
  33. <script type="module" data-scripts="./script.vue" id="example-script">
  34. import { createApp } from 'vue';
  35. import vueImport from 'vue-import';
  36. (async ()=>{
  37. const app = createApp();
  38. app.component('three-viewer', await vueImport('script.vue', {}))
  39. app.mount('#app');
  40. })()
  41. </script>
  42. </body>
  43. </html>