@wannaby/wanna-sdk 2.7.1 → 2.7.3-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/CHANGELOG.md +9 -0
- package/README.md +9 -98
- package/core.js +1018 -1204
- package/iframe.html +1 -1
- package/package.json +1 -1
- package/sdk/NOTICE.txt +36 -121
- package/sdk/sdk.js +210 -486
package/iframe.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!-- Copyright © 2023 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%}#background-canvases{z-index:-1}#background-canvases,#debug-canvases,#interactions-layer{position:absolute;top:0;left:0}#background-canvases canvas:not(.current-background){display:none}#debug-canvases canvas{position:absolute;width:100%;height:100%}#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}.videoBeforeInit{position:absolute;top:0}.videoAfterInit{position:absolute;top:0;z-index:-1}#screen-loading-stub{width:100%;height:100%;display:none;background:#000;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 © 2023 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%}#background-canvases{z-index:-1}#background-canvases,#debug-canvases,#interactions-layer{position:absolute;top:0;left:0}#background-canvases canvas:not(.current-background){display:none}#debug-canvases canvas{position:absolute;width:100%;height:100%}#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}.videoBeforeInit{position:absolute;top:0}.videoAfterInit{position:absolute;top:0;z-index:-1}#screen-loading-stub{width:100%;height:100%;display:none;background:#000;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?ee4315295c2f6c1e3b41"></script></head><body><div id="wrapper" class="wrapper"><div id="screen-loading-stub"></div><video autoplay muted playsinline id="video"></video><button id="play-button">play</button><div id="background-canvases"><canvas></canvas><canvas></canvas><canvas></canvas></div><canvas id="three-canvas"></canvas><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
|
@@ -595,63 +595,6 @@ License type: Apache-2.0
|
|
|
595
595
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
596
596
|
See the License for the specific language governing permissions and
|
|
597
597
|
limitations under the License.
|
|
598
|
-
--------------------------------------------------------------------------------
|
|
599
|
-
Library: @babel/runtime
|
|
600
|
-
Version: 7.22.6
|
|
601
|
-
Homepage: https://babel.dev/docs/en/next/babel-runtime
|
|
602
|
-
Repo: https://github.com/babel/babel.git
|
|
603
|
-
License type: MIT
|
|
604
|
-
MIT License
|
|
605
|
-
|
|
606
|
-
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
|
607
|
-
|
|
608
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
609
|
-
a copy of this software and associated documentation files (the
|
|
610
|
-
"Software"), to deal in the Software without restriction, including
|
|
611
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
612
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
613
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
614
|
-
the following conditions:
|
|
615
|
-
|
|
616
|
-
The above copyright notice and this permission notice shall be
|
|
617
|
-
included in all copies or substantial portions of the Software.
|
|
618
|
-
|
|
619
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
620
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
621
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
622
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
623
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
624
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
625
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
626
|
-
|
|
627
|
-
--------------------------------------------------------------------------------
|
|
628
|
-
Library: ramda
|
|
629
|
-
Version: 0.28.0
|
|
630
|
-
Homepage: https://ramdajs.com/
|
|
631
|
-
Repo: git://github.com/ramda/ramda.git
|
|
632
|
-
License type: MIT
|
|
633
|
-
The MIT License (MIT)
|
|
634
|
-
|
|
635
|
-
Copyright (c) 2013-2020 Scott Sauyet and Michael Hurley
|
|
636
|
-
|
|
637
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
638
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
639
|
-
in the Software without restriction, including without limitation the rights
|
|
640
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
641
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
642
|
-
furnished to do so, subject to the following conditions:
|
|
643
|
-
|
|
644
|
-
The above copyright notice and this permission notice shall be included in
|
|
645
|
-
all copies or substantial portions of the Software.
|
|
646
|
-
|
|
647
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
648
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
649
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
650
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
651
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
652
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
653
|
-
THE SOFTWARE.
|
|
654
|
-
|
|
655
598
|
--------------------------------------------------------------------------------
|
|
656
599
|
Library: uuid
|
|
657
600
|
Version: 8.3.2
|
|
@@ -667,34 +610,6 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
667
610
|
|
|
668
611
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
669
612
|
|
|
670
|
-
--------------------------------------------------------------------------------
|
|
671
|
-
Library: three
|
|
672
|
-
Version: 0.129.0
|
|
673
|
-
Homepage: https://threejs.org/
|
|
674
|
-
Repo: https://github.com/mrdoob/three.js
|
|
675
|
-
License type: MIT
|
|
676
|
-
The MIT License
|
|
677
|
-
|
|
678
|
-
Copyright © 2010-2021 three.js authors
|
|
679
|
-
|
|
680
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
681
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
682
|
-
in the Software without restriction, including without limitation the rights
|
|
683
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
684
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
685
|
-
furnished to do so, subject to the following conditions:
|
|
686
|
-
|
|
687
|
-
The above copyright notice and this permission notice shall be included in
|
|
688
|
-
all copies or substantial portions of the Software.
|
|
689
|
-
|
|
690
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
691
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
692
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
693
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
694
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
695
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
696
|
-
THE SOFTWARE.
|
|
697
|
-
|
|
698
613
|
--------------------------------------------------------------------------------
|
|
699
614
|
Library: long
|
|
700
615
|
Version: 4.0.0
|
|
@@ -956,13 +871,39 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
|
956
871
|
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
957
872
|
|
|
958
873
|
--------------------------------------------------------------------------------
|
|
959
|
-
Library:
|
|
960
|
-
Version:
|
|
961
|
-
Homepage: https://
|
|
874
|
+
Library: style-loader
|
|
875
|
+
Version: 1.3.0
|
|
876
|
+
Homepage: https://github.com/webpack-contrib/style-loader
|
|
877
|
+
License type: MIT
|
|
878
|
+
Copyright JS Foundation and other contributors
|
|
879
|
+
|
|
880
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
881
|
+
a copy of this software and associated documentation files (the
|
|
882
|
+
'Software'), to deal in the Software without restriction, including
|
|
883
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
884
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
885
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
886
|
+
the following conditions:
|
|
887
|
+
|
|
888
|
+
The above copyright notice and this permission notice shall be
|
|
889
|
+
included in all copies or substantial portions of the Software.
|
|
890
|
+
|
|
891
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
892
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
893
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
894
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
895
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
896
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
897
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
898
|
+
|
|
899
|
+
--------------------------------------------------------------------------------
|
|
900
|
+
Library: classnames
|
|
901
|
+
Version: 2.3.2
|
|
902
|
+
Repo: https://github.com/JedWatson/classnames.git
|
|
962
903
|
License type: MIT
|
|
963
904
|
The MIT License (MIT)
|
|
964
905
|
|
|
965
|
-
Copyright (c)
|
|
906
|
+
Copyright (c) 2018 Jed Watson
|
|
966
907
|
|
|
967
908
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
968
909
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -983,13 +924,12 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
983
924
|
SOFTWARE.
|
|
984
925
|
|
|
985
926
|
--------------------------------------------------------------------------------
|
|
986
|
-
Library:
|
|
987
|
-
Version:
|
|
988
|
-
Repo: https://github.com/JedWatson/classnames.git
|
|
927
|
+
Library: jsx-runtime
|
|
928
|
+
Version: 1.0.0
|
|
989
929
|
License type: MIT
|
|
990
930
|
The MIT License (MIT)
|
|
991
931
|
|
|
992
|
-
Copyright (c)
|
|
932
|
+
Copyright (c) 2015-present Jason Miller
|
|
993
933
|
|
|
994
934
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
995
935
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1010,34 +950,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
1010
950
|
SOFTWARE.
|
|
1011
951
|
|
|
1012
952
|
--------------------------------------------------------------------------------
|
|
1013
|
-
Library:
|
|
1014
|
-
Version:
|
|
1015
|
-
Homepage: https://
|
|
1016
|
-
License type: MIT
|
|
1017
|
-
Copyright JS Foundation and other contributors
|
|
1018
|
-
|
|
1019
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
1020
|
-
a copy of this software and associated documentation files (the
|
|
1021
|
-
'Software'), to deal in the Software without restriction, including
|
|
1022
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
1023
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
1024
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
1025
|
-
the following conditions:
|
|
1026
|
-
|
|
1027
|
-
The above copyright notice and this permission notice shall be
|
|
1028
|
-
included in all copies or substantial portions of the Software.
|
|
1029
|
-
|
|
1030
|
-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
1031
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
1032
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
1033
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
1034
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
1035
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
1036
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1037
|
-
|
|
1038
|
-
--------------------------------------------------------------------------------
|
|
1039
|
-
Library: jsx-runtime
|
|
1040
|
-
Version: 1.0.0
|
|
953
|
+
Library: preact
|
|
954
|
+
Version: 10.10.6
|
|
955
|
+
Homepage: https://preactjs.com
|
|
1041
956
|
License type: MIT
|
|
1042
957
|
The MIT License (MIT)
|
|
1043
958
|
|