@wannaby/wanna-sdk 3.3.0 → 3.4.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core.js +1834 -1678
- package/iframe.html +1 -1
- package/package.json +1 -1
- package/sdk/NOTICE.txt +28 -28
- package/sdk/sdk.js +230 -148
package/iframe.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!-- Copyright © 2024 WANNABY INC. All rights reserved. --><!doctype html><html><head><meta charset="utf-8"><meta http-equiv="x-ua-compatible" content="ie=edge"><title>WANNABY / WEB-AR</title><meta name="description" content="WANNA WEB-AR"><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="mobile-web-app-capable" content="yes"><style>body,html{height:100%;margin:0;padding:0}*{touch-action:none}.wrapper{height:100%;position:relative;overflow:hidden}#background-canvases,#debug-canvases,#interactions-layer,.wrapper canvas,.wrapper video{height:100%;width:100%}#canvases-wrapper{width:100%;height:100%;display:grid;grid-auto-columns:1fr;align-content:center;justify-content:center}#canvases-wrapper>*{position:relative;grid-column-start:1;grid-row-start:1}#debug-canvases{display:flex;flex-direction:column;gap:20px}#debug-canvases>div>canvas{position:absolute}#background-canvases{z-index:-1}#debug-canvases,#debug-overlay>canvas,#interactions-layer{position:absolute;top:0;left:0}#interactions-layer{user-select:none;-webkit-user-select:none}#background-canvases canvas:not(.current-background){display:none}#debug{position:absolute;top:200px;right:0;bottom:0;min-width:220px;max-height:calc(100% - 300px);overflow:auto;color:#fff;padding:5px;text-align:right}#debug,#debug *{touch-action:pan-x pan-y}#debug>div{padding:0 5px}.has-substeps>span{font-weight:700}.has-substeps{border:1px solid;margin:5px 0}video{opacity:0;position:absolute;top:0;z-index:-1}.video-mirrored{transform:scaleX(-1)}.video-visible{opacity:1}#screen-loading-stub{width:100%;height:100%;display:none;background:#fff;position:absolute;top:0;left:0;right:0;bottom:0;z-index:99}#play-button{display:none;position:absolute;top:50%;right:0;background-color:transparent;color:transparent;outline:0;border:none}@media (orientation:landscape){.desktopWrapper.arWrapper canvas,.desktopWrapper.arWrapper video{height:100%;width:auto}.desktopWrapper.arWrapper #debug{color:#000}.desktopWrapper.arWrapper #debug>*{border-color:#000}}</style><script defer="defer" src="./core.js?
|
|
1
|
+
<!-- Copyright © 2024 WANNABY INC. All rights reserved. --><!doctype html><html><head><meta charset="utf-8"><meta http-equiv="x-ua-compatible" content="ie=edge"><title>WANNABY / WEB-AR</title><meta name="description" content="WANNA WEB-AR"><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="mobile-web-app-capable" content="yes"><style>body,html{height:100%;margin:0;padding:0}*{touch-action:none}.wrapper{height:100%;position:relative;overflow:hidden}#background-canvases,#debug-canvases,#interactions-layer,.wrapper canvas,.wrapper video{height:100%;width:100%}#canvases-wrapper{width:100%;height:100%;display:grid;grid-auto-columns:1fr;align-content:center;justify-content:center}#canvases-wrapper>*{position:relative;grid-column-start:1;grid-row-start:1}#debug-canvases{display:flex;flex-direction:column;gap:20px}#debug-canvases>div>canvas{position:absolute}#background-canvases{z-index:-1}#debug-canvases,#debug-overlay>canvas,#interactions-layer{position:absolute;top:0;left:0}#interactions-layer{user-select:none;-webkit-user-select:none}#background-canvases canvas:not(.current-background){display:none}#debug{position:absolute;top:200px;right:0;bottom:0;min-width:220px;max-height:calc(100% - 300px);overflow:auto;color:#fff;padding:5px;text-align:right}#debug,#debug *{touch-action:pan-x pan-y}#debug>div{padding:0 5px}.has-substeps>span{font-weight:700}.has-substeps{border:1px solid;margin:5px 0}video{opacity:0;position:absolute;top:0;z-index:-1}.video-mirrored{transform:scaleX(-1)}.video-visible{opacity:1}#screen-loading-stub{width:100%;height:100%;display:none;background:#fff;position:absolute;top:0;left:0;right:0;bottom:0;z-index:99}#play-button{display:none;position:absolute;top:50%;right:0;background-color:transparent;color:transparent;outline:0;border:none}@media (orientation:landscape){.desktopWrapper.arWrapper canvas,.desktopWrapper.arWrapper video{height:100%;width:auto}.desktopWrapper.arWrapper #debug{color:#000}.desktopWrapper.arWrapper #debug>*{border-color:#000}}</style><script defer="defer" src="./core.js?941e82d6bdc22fd95d44"></script></head><body><div id="wrapper" class="wrapper"><div id="screen-loading-stub"></div><button id="play-button">play</button><div id="canvases-wrapper"><video autoplay muted playsinline id="video" aria-hidden="true"></video><div id="background-canvases"><canvas></canvas><canvas></canvas><canvas></canvas></div><canvas id="three-canvas"></canvas><div id="debug-overlay"></div></div><div id="debug-canvases"></div><div id="debug"></div><div id="interactions-layer"></div></div></body></html>
|
package/package.json
CHANGED
package/sdk/NOTICE.txt
CHANGED
|
@@ -16,9 +16,9 @@ seedrandom: MIT
|
|
|
16
16
|
@tensorflow/tfjs-backend-webgl: Apache-2.0
|
|
17
17
|
@tensorflow/tfjs-backend-cpu: Apache-2.0
|
|
18
18
|
core-js: MIT
|
|
19
|
-
classnames: MIT
|
|
20
19
|
style-loader: MIT
|
|
21
20
|
css-loader: MIT
|
|
21
|
+
classnames: MIT
|
|
22
22
|
jsx-runtime: MIT
|
|
23
23
|
preact: MIT
|
|
24
24
|
preact-hooks: MIT
|
|
@@ -593,33 +593,6 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
593
593
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
594
594
|
THE SOFTWARE.
|
|
595
595
|
|
|
596
|
-
--------------------------------------------------------------------------------
|
|
597
|
-
Library: classnames
|
|
598
|
-
Version: 2.3.2
|
|
599
|
-
Repo: https://github.com/JedWatson/classnames.git
|
|
600
|
-
License type: MIT
|
|
601
|
-
The MIT License (MIT)
|
|
602
|
-
|
|
603
|
-
Copyright (c) 2018 Jed Watson
|
|
604
|
-
|
|
605
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
606
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
607
|
-
in the Software without restriction, including without limitation the rights
|
|
608
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
609
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
610
|
-
furnished to do so, subject to the following conditions:
|
|
611
|
-
|
|
612
|
-
The above copyright notice and this permission notice shall be included in all
|
|
613
|
-
copies or substantial portions of the Software.
|
|
614
|
-
|
|
615
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
616
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
617
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
618
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
619
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
620
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
621
|
-
SOFTWARE.
|
|
622
|
-
|
|
623
596
|
--------------------------------------------------------------------------------
|
|
624
597
|
Library: style-loader
|
|
625
598
|
Version: 1.3.0
|
|
@@ -672,6 +645,33 @@ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
|
672
645
|
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
673
646
|
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
674
647
|
|
|
648
|
+
--------------------------------------------------------------------------------
|
|
649
|
+
Library: classnames
|
|
650
|
+
Version: 2.3.2
|
|
651
|
+
Repo: https://github.com/JedWatson/classnames.git
|
|
652
|
+
License type: MIT
|
|
653
|
+
The MIT License (MIT)
|
|
654
|
+
|
|
655
|
+
Copyright (c) 2018 Jed Watson
|
|
656
|
+
|
|
657
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
658
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
659
|
+
in the Software without restriction, including without limitation the rights
|
|
660
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
661
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
662
|
+
furnished to do so, subject to the following conditions:
|
|
663
|
+
|
|
664
|
+
The above copyright notice and this permission notice shall be included in all
|
|
665
|
+
copies or substantial portions of the Software.
|
|
666
|
+
|
|
667
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
668
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
669
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
670
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
671
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
672
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
673
|
+
SOFTWARE.
|
|
674
|
+
|
|
675
675
|
--------------------------------------------------------------------------------
|
|
676
676
|
Library: jsx-runtime
|
|
677
677
|
Version: 1.0.0
|