@ridp/threejs 1.1.7 → 1.2.0

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.
Files changed (77) hide show
  1. package/dist/common-C1rNPPkt.cjs +15 -0
  2. package/dist/common-D1_IztgM.js +54 -0
  3. package/dist/hooks.cjs +1 -1
  4. package/dist/hooks.js +4 -4
  5. package/dist/modelSerialize-5oJb1ka7.js +965 -0
  6. package/dist/modelSerialize-Ds_2KBaA.cjs +5 -0
  7. package/dist/threejs.cjs +1 -1
  8. package/dist/threejs.js +184 -24
  9. package/dist/useGLTFLoader-2awW2QaH.cjs +4 -0
  10. package/dist/useGLTFLoader-BBGTGOYm.js +5507 -0
  11. package/dist/utils.cjs +1 -1
  12. package/dist/utils.js +18 -16
  13. package/esdoc/ast/source/.external-ecmascript.js.json +2801 -2801
  14. package/esdoc/ast/source/hooks/index.js.json +738 -738
  15. package/esdoc/ast/source/hooks/useGLTFLoader.js.json +9110 -9110
  16. package/esdoc/ast/source/hooks/useObb.js.json +16462 -16462
  17. package/esdoc/ast/source/hooks/useRaycaster.js.json +15555 -15555
  18. package/esdoc/ast/source/hooks/useThreeJs.js.json +52886 -52886
  19. package/esdoc/ast/source/index.js.json +569 -569
  20. package/esdoc/ast/source/instance/IDBCache.js.json +40977 -40977
  21. package/esdoc/ast/source/instance/index.js.json +231 -231
  22. package/esdoc/ast/source/utils/ImageLoader.js.json +7036 -7036
  23. package/esdoc/ast/source/utils/common.js.json +5133 -5133
  24. package/esdoc/ast/source/utils/css3dHelper.js.json +9100 -9100
  25. package/esdoc/ast/source/utils/disposeObject.js.json +5977 -5977
  26. package/esdoc/ast/source/utils/helper.js.json +10521 -10521
  27. package/esdoc/ast/source/utils/index.js.json +907 -907
  28. package/esdoc/badge.svg +17 -17
  29. package/esdoc/class/src/instance/IDBCache.js~IDBCache.html +1299 -1299
  30. package/esdoc/coverage.json +85 -85
  31. package/esdoc/css/github.css +83 -83
  32. package/esdoc/css/identifiers.css +37 -37
  33. package/esdoc/css/manual.css +134 -134
  34. package/esdoc/css/prettify-tomorrow.css +132 -132
  35. package/esdoc/css/search.css +84 -84
  36. package/esdoc/css/source.css +55 -55
  37. package/esdoc/css/style.css +608 -608
  38. package/esdoc/css/test.css +58 -58
  39. package/esdoc/file/src/hooks/index.js.html +75 -75
  40. package/esdoc/file/src/hooks/useGLTFLoader.js.html +75 -75
  41. package/esdoc/file/src/hooks/useObb.js.html +75 -75
  42. package/esdoc/file/src/hooks/useRaycaster.js.html +75 -75
  43. package/esdoc/file/src/hooks/useThreeJs.js.html +75 -75
  44. package/esdoc/file/src/index.js.html +75 -75
  45. package/esdoc/file/src/instance/IDBCache.js.html +75 -75
  46. package/esdoc/file/src/instance/index.js.html +75 -75
  47. package/esdoc/file/src/utils/ImageLoader.js.html +75 -75
  48. package/esdoc/file/src/utils/common.js.html +75 -75
  49. package/esdoc/file/src/utils/css3dHelper.js.html +75 -75
  50. package/esdoc/file/src/utils/disposeObject.js.html +75 -75
  51. package/esdoc/file/src/utils/helper.js.html +75 -75
  52. package/esdoc/file/src/utils/index.js.html +75 -75
  53. package/esdoc/function/index.html +2019 -2019
  54. package/esdoc/identifiers.html +738 -738
  55. package/esdoc/image/badge.svg +17 -17
  56. package/esdoc/image/manual-badge.svg +17 -17
  57. package/esdoc/index.html +153 -153
  58. package/esdoc/index.json +2050 -2050
  59. package/esdoc/script/inherited-summary.js +28 -28
  60. package/esdoc/script/inner-link.js +32 -32
  61. package/esdoc/script/manual.js +12 -12
  62. package/esdoc/script/patch-for-local.js +8 -8
  63. package/esdoc/script/prettify/Apache-License-2.0.txt +202 -202
  64. package/esdoc/script/prettify/prettify.js +46 -46
  65. package/esdoc/script/pretty-print.js +25 -25
  66. package/esdoc/script/search.js +117 -117
  67. package/esdoc/script/search_index.js +571 -571
  68. package/esdoc/script/test-summary.js +54 -54
  69. package/esdoc/source.html +213 -213
  70. package/esdoc/variable/index.html +225 -225
  71. package/package.json +3 -5
  72. package/dist/ImageLoader-B_rHfhtt.cjs +0 -1
  73. package/dist/ImageLoader-D9uANgrl.js +0 -1475
  74. package/dist/common-DTEEkXFr.cjs +0 -1
  75. package/dist/common-DhuVL1VV.js +0 -73
  76. package/dist/useGLTFLoader-BDER-upw.cjs +0 -1
  77. package/dist/useGLTFLoader-UD3WYZET.js +0 -7016
@@ -1,86 +1,86 @@
1
- {
2
- "coverage": "46.15%",
3
- "expectCount": 39,
4
- "actualCount": 18,
5
- "files": {
6
- "src/hooks/useGLTFLoader.js": {
7
- "expectCount": 1,
8
- "actualCount": 1,
9
- "undocumentLines": []
10
- },
11
- "src/hooks/useObb.js": {
12
- "expectCount": 3,
13
- "actualCount": 0,
14
- "undocumentLines": [
15
- 5,
16
- 6,
17
- 8
18
- ]
19
- },
20
- "src/hooks/useRaycaster.js": {
21
- "expectCount": 1,
22
- "actualCount": 0,
23
- "undocumentLines": [
24
- 4
25
- ]
26
- },
27
- "src/hooks/useThreeJs.js": {
28
- "expectCount": 2,
29
- "actualCount": 1,
30
- "undocumentLines": [
31
- 20
32
- ]
33
- },
34
- "src/instance/IDBCache.js": {
35
- "expectCount": 13,
36
- "actualCount": 11,
37
- "undocumentLines": [
38
- 15,
39
- 16
40
- ]
41
- },
42
- "src/utils/common.js": {
43
- "expectCount": 1,
44
- "actualCount": 0,
45
- "undocumentLines": [
46
- 1
47
- ]
48
- },
49
- "src/utils/css3dHelper.js": {
50
- "expectCount": 3,
51
- "actualCount": 1,
52
- "undocumentLines": [
53
- 25,
54
- 34
55
- ]
56
- },
57
- "src/utils/disposeObject.js": {
58
- "expectCount": 2,
59
- "actualCount": 2,
60
- "undocumentLines": []
61
- },
62
- "src/utils/helper.js": {
63
- "expectCount": 9,
64
- "actualCount": 0,
65
- "undocumentLines": [
66
- 15,
67
- 19,
68
- 23,
69
- 27,
70
- 31,
71
- 35,
72
- 44,
73
- 48,
74
- 58
75
- ]
76
- },
77
- "src/utils/ImageLoader.js": {
78
- "expectCount": 4,
79
- "actualCount": 2,
80
- "undocumentLines": [
81
- 4,
82
- 6
83
- ]
84
- }
85
- }
1
+ {
2
+ "coverage": "46.15%",
3
+ "expectCount": 39,
4
+ "actualCount": 18,
5
+ "files": {
6
+ "src/hooks/useGLTFLoader.js": {
7
+ "expectCount": 1,
8
+ "actualCount": 1,
9
+ "undocumentLines": []
10
+ },
11
+ "src/hooks/useObb.js": {
12
+ "expectCount": 3,
13
+ "actualCount": 0,
14
+ "undocumentLines": [
15
+ 5,
16
+ 6,
17
+ 8
18
+ ]
19
+ },
20
+ "src/hooks/useRaycaster.js": {
21
+ "expectCount": 1,
22
+ "actualCount": 0,
23
+ "undocumentLines": [
24
+ 4
25
+ ]
26
+ },
27
+ "src/hooks/useThreeJs.js": {
28
+ "expectCount": 2,
29
+ "actualCount": 1,
30
+ "undocumentLines": [
31
+ 20
32
+ ]
33
+ },
34
+ "src/instance/IDBCache.js": {
35
+ "expectCount": 13,
36
+ "actualCount": 11,
37
+ "undocumentLines": [
38
+ 15,
39
+ 16
40
+ ]
41
+ },
42
+ "src/utils/common.js": {
43
+ "expectCount": 1,
44
+ "actualCount": 0,
45
+ "undocumentLines": [
46
+ 1
47
+ ]
48
+ },
49
+ "src/utils/css3dHelper.js": {
50
+ "expectCount": 3,
51
+ "actualCount": 1,
52
+ "undocumentLines": [
53
+ 25,
54
+ 34
55
+ ]
56
+ },
57
+ "src/utils/disposeObject.js": {
58
+ "expectCount": 2,
59
+ "actualCount": 2,
60
+ "undocumentLines": []
61
+ },
62
+ "src/utils/helper.js": {
63
+ "expectCount": 9,
64
+ "actualCount": 0,
65
+ "undocumentLines": [
66
+ 15,
67
+ 19,
68
+ 23,
69
+ 27,
70
+ 31,
71
+ 35,
72
+ 44,
73
+ 48,
74
+ 58
75
+ ]
76
+ },
77
+ "src/utils/ImageLoader.js": {
78
+ "expectCount": 4,
79
+ "actualCount": 2,
80
+ "undocumentLines": [
81
+ 4,
82
+ 6
83
+ ]
84
+ }
85
+ }
86
86
  }
@@ -1,83 +1,83 @@
1
- /* github markdown */
2
- .github-markdown {
3
- font-size: 16px;
4
- }
5
-
6
- .github-markdown h1,
7
- .github-markdown h2,
8
- .github-markdown h3,
9
- .github-markdown h4,
10
- .github-markdown h5 {
11
- margin-top: 1em;
12
- margin-bottom: 16px;
13
- font-weight: bold;
14
- padding: 0;
15
- }
16
-
17
- .github-markdown h1:nth-of-type(1) {
18
- margin-top: 0;
19
- }
20
-
21
- .github-markdown h1 {
22
- font-size: 2em;
23
- padding-bottom: 0.3em;
24
- }
25
-
26
- .github-markdown h2 {
27
- font-size: 1.75em;
28
- padding-bottom: 0.3em;
29
- }
30
-
31
- .github-markdown h3 {
32
- font-size: 1.5em;
33
- }
34
-
35
- .github-markdown h4 {
36
- font-size: 1.25em;
37
- }
38
-
39
- .github-markdown h5 {
40
- font-size: 1em;
41
- }
42
-
43
- .github-markdown ul, .github-markdown ol {
44
- padding-left: 2em;
45
- }
46
-
47
- .github-markdown pre > code {
48
- font-size: 0.85em;
49
- }
50
-
51
- .github-markdown table {
52
- margin-bottom: 1em;
53
- border-collapse: collapse;
54
- border-spacing: 0;
55
- }
56
-
57
- .github-markdown table tr {
58
- background-color: #fff;
59
- border-top: 1px solid #ccc;
60
- }
61
-
62
- .github-markdown table th,
63
- .github-markdown table td {
64
- padding: 6px 13px;
65
- border: 1px solid #ddd;
66
- }
67
-
68
- .github-markdown table tr:nth-child(2n) {
69
- background-color: #f8f8f8;
70
- }
71
-
72
- .github-markdown hr {
73
- border-right: 0;
74
- border-bottom: 1px solid #e5e5e5;
75
- border-left: 0;
76
- border-top: 0;
77
- }
78
-
79
- /** badge(.svg) does not have border */
80
- .github-markdown img:not([src*=".svg"]) {
81
- max-width: 100%;
82
- box-shadow: 1px 1px 1px rgba(0,0,0,0.5);
83
- }
1
+ /* github markdown */
2
+ .github-markdown {
3
+ font-size: 16px;
4
+ }
5
+
6
+ .github-markdown h1,
7
+ .github-markdown h2,
8
+ .github-markdown h3,
9
+ .github-markdown h4,
10
+ .github-markdown h5 {
11
+ margin-top: 1em;
12
+ margin-bottom: 16px;
13
+ font-weight: bold;
14
+ padding: 0;
15
+ }
16
+
17
+ .github-markdown h1:nth-of-type(1) {
18
+ margin-top: 0;
19
+ }
20
+
21
+ .github-markdown h1 {
22
+ font-size: 2em;
23
+ padding-bottom: 0.3em;
24
+ }
25
+
26
+ .github-markdown h2 {
27
+ font-size: 1.75em;
28
+ padding-bottom: 0.3em;
29
+ }
30
+
31
+ .github-markdown h3 {
32
+ font-size: 1.5em;
33
+ }
34
+
35
+ .github-markdown h4 {
36
+ font-size: 1.25em;
37
+ }
38
+
39
+ .github-markdown h5 {
40
+ font-size: 1em;
41
+ }
42
+
43
+ .github-markdown ul, .github-markdown ol {
44
+ padding-left: 2em;
45
+ }
46
+
47
+ .github-markdown pre > code {
48
+ font-size: 0.85em;
49
+ }
50
+
51
+ .github-markdown table {
52
+ margin-bottom: 1em;
53
+ border-collapse: collapse;
54
+ border-spacing: 0;
55
+ }
56
+
57
+ .github-markdown table tr {
58
+ background-color: #fff;
59
+ border-top: 1px solid #ccc;
60
+ }
61
+
62
+ .github-markdown table th,
63
+ .github-markdown table td {
64
+ padding: 6px 13px;
65
+ border: 1px solid #ddd;
66
+ }
67
+
68
+ .github-markdown table tr:nth-child(2n) {
69
+ background-color: #f8f8f8;
70
+ }
71
+
72
+ .github-markdown hr {
73
+ border-right: 0;
74
+ border-bottom: 1px solid #e5e5e5;
75
+ border-left: 0;
76
+ border-top: 0;
77
+ }
78
+
79
+ /** badge(.svg) does not have border */
80
+ .github-markdown img:not([src*=".svg"]) {
81
+ max-width: 100%;
82
+ box-shadow: 1px 1px 1px rgba(0,0,0,0.5);
83
+ }
@@ -1,37 +1,37 @@
1
- .identifiers-wrap {
2
- display: flex;
3
- align-items: flex-start;
4
- }
5
-
6
- .identifier-dir-tree {
7
- background: #fff;
8
- border: solid 1px #ddd;
9
- border-radius: 0.25em;
10
- top: 52px;
11
- position: -webkit-sticky;
12
- position: sticky;
13
- max-height: calc(100vh - 155px);
14
- overflow-y: scroll;
15
- min-width: 200px;
16
- margin-left: 1em;
17
- }
18
-
19
- .identifier-dir-tree-header {
20
- padding: 0.5em;
21
- background-color: #fafafa;
22
- border-bottom: solid 1px #ddd;
23
- }
24
-
25
- .identifier-dir-tree-content {
26
- padding: 0 0.5em 0;
27
- }
28
-
29
- .identifier-dir-tree-content > div {
30
- padding-top: 0.25em;
31
- padding-bottom: 0.25em;
32
- }
33
-
34
- .identifier-dir-tree-content a {
35
- color: inherit;
36
- }
37
-
1
+ .identifiers-wrap {
2
+ display: flex;
3
+ align-items: flex-start;
4
+ }
5
+
6
+ .identifier-dir-tree {
7
+ background: #fff;
8
+ border: solid 1px #ddd;
9
+ border-radius: 0.25em;
10
+ top: 52px;
11
+ position: -webkit-sticky;
12
+ position: sticky;
13
+ max-height: calc(100vh - 155px);
14
+ overflow-y: scroll;
15
+ min-width: 200px;
16
+ margin-left: 1em;
17
+ }
18
+
19
+ .identifier-dir-tree-header {
20
+ padding: 0.5em;
21
+ background-color: #fafafa;
22
+ border-bottom: solid 1px #ddd;
23
+ }
24
+
25
+ .identifier-dir-tree-content {
26
+ padding: 0 0.5em 0;
27
+ }
28
+
29
+ .identifier-dir-tree-content > div {
30
+ padding-top: 0.25em;
31
+ padding-bottom: 0.25em;
32
+ }
33
+
34
+ .identifier-dir-tree-content a {
35
+ color: inherit;
36
+ }
37
+
@@ -1,134 +1,134 @@
1
- .github-markdown .manual-toc {
2
- padding-left: 0;
3
- }
4
-
5
- .manual-index .manual-cards {
6
- display: flex;
7
- flex-wrap: wrap;
8
- }
9
-
10
- .manual-index .manual-card-wrap {
11
- width: 280px;
12
- padding: 10px 20px 10px 0;
13
- box-sizing: border-box;
14
- }
15
-
16
- .manual-index .manual-card-wrap > h1 {
17
- margin: 0;
18
- font-size: 1em;
19
- font-weight: 600;
20
- padding: 0.2em 0 0.2em 0.5em;
21
- border-radius: 0.1em 0.1em 0 0;
22
- border: none;
23
- }
24
-
25
- .manual-index .manual-card-wrap > h1 span {
26
- color: #555;
27
- }
28
-
29
- .manual-index .manual-card {
30
- height: 200px;
31
- overflow: hidden;
32
- border: solid 1px rgba(230, 230, 230, 0.84);
33
- border-radius: 0 0 0.1em 0.1em;
34
- padding: 8px;
35
- position: relative;
36
- }
37
-
38
- .manual-index .manual-card > div {
39
- transform: scale(0.4);
40
- transform-origin: 0 0;
41
- width: 250%;
42
- }
43
-
44
- .manual-index .manual-card > a {
45
- position: absolute;
46
- top: 0;
47
- left: 0;
48
- width: 100%;
49
- height: 100%;
50
- background: rgba(210, 210, 210, 0.1);
51
- }
52
-
53
- .manual-index .manual-card > a:hover {
54
- background: none;
55
- }
56
-
57
- .manual-index .manual-badge {
58
- margin: 0;
59
- }
60
-
61
- .manual-index .manual-user-index {
62
- margin-bottom: 1em;
63
- border-bottom: solid 1px #ddd;
64
- }
65
-
66
- .manual-root .navigation {
67
- padding-left: 4px;
68
- margin-top: 4px;
69
- }
70
-
71
- .navigation .manual-toc-root > div {
72
- padding-left: 0.25em;
73
- padding-right: 0.75em;
74
- }
75
-
76
- .github-markdown .manual-toc-title a {
77
- color: inherit;
78
- }
79
-
80
- .manual-breadcrumb-list {
81
- font-size: 0.8em;
82
- margin-bottom: 1em;
83
- }
84
-
85
- .manual-toc-title a:hover {
86
- color: #039BE5;
87
- }
88
-
89
- .manual-toc li {
90
- margin: 0.75em 0;
91
- list-style-type: none;
92
- }
93
-
94
- .navigation .manual-toc [class^="indent-h"] a {
95
- color: #666;
96
- }
97
-
98
- .navigation .manual-toc .indent-h1 a {
99
- color: #555;
100
- font-weight: 600;
101
- display: block;
102
- }
103
-
104
- .manual-toc .indent-h1 {
105
- display: block;
106
- margin: 0.4em 0 0 0.25em;
107
- padding: 0.2em 0 0.2em 0.5em;
108
- border-radius: 0.1em;
109
- }
110
-
111
- .manual-root .navigation .manual-toc li:not(.indent-h1) {
112
- margin-top: 0.5em;
113
- }
114
-
115
- .manual-toc .indent-h2 {
116
- display: none;
117
- margin-left: 1.5em;
118
- }
119
- .manual-toc .indent-h3 {
120
- display: none;
121
- margin-left: 2.5em;
122
- }
123
- .manual-toc .indent-h4 {
124
- display: none;
125
- margin-left: 3.5em;
126
- }
127
- .manual-toc .indent-h5 {
128
- display: none;
129
- margin-left: 4.5em;
130
- }
131
-
132
- .manual-nav li {
133
- margin: 0.75em 0;
134
- }
1
+ .github-markdown .manual-toc {
2
+ padding-left: 0;
3
+ }
4
+
5
+ .manual-index .manual-cards {
6
+ display: flex;
7
+ flex-wrap: wrap;
8
+ }
9
+
10
+ .manual-index .manual-card-wrap {
11
+ width: 280px;
12
+ padding: 10px 20px 10px 0;
13
+ box-sizing: border-box;
14
+ }
15
+
16
+ .manual-index .manual-card-wrap > h1 {
17
+ margin: 0;
18
+ font-size: 1em;
19
+ font-weight: 600;
20
+ padding: 0.2em 0 0.2em 0.5em;
21
+ border-radius: 0.1em 0.1em 0 0;
22
+ border: none;
23
+ }
24
+
25
+ .manual-index .manual-card-wrap > h1 span {
26
+ color: #555;
27
+ }
28
+
29
+ .manual-index .manual-card {
30
+ height: 200px;
31
+ overflow: hidden;
32
+ border: solid 1px rgba(230, 230, 230, 0.84);
33
+ border-radius: 0 0 0.1em 0.1em;
34
+ padding: 8px;
35
+ position: relative;
36
+ }
37
+
38
+ .manual-index .manual-card > div {
39
+ transform: scale(0.4);
40
+ transform-origin: 0 0;
41
+ width: 250%;
42
+ }
43
+
44
+ .manual-index .manual-card > a {
45
+ position: absolute;
46
+ top: 0;
47
+ left: 0;
48
+ width: 100%;
49
+ height: 100%;
50
+ background: rgba(210, 210, 210, 0.1);
51
+ }
52
+
53
+ .manual-index .manual-card > a:hover {
54
+ background: none;
55
+ }
56
+
57
+ .manual-index .manual-badge {
58
+ margin: 0;
59
+ }
60
+
61
+ .manual-index .manual-user-index {
62
+ margin-bottom: 1em;
63
+ border-bottom: solid 1px #ddd;
64
+ }
65
+
66
+ .manual-root .navigation {
67
+ padding-left: 4px;
68
+ margin-top: 4px;
69
+ }
70
+
71
+ .navigation .manual-toc-root > div {
72
+ padding-left: 0.25em;
73
+ padding-right: 0.75em;
74
+ }
75
+
76
+ .github-markdown .manual-toc-title a {
77
+ color: inherit;
78
+ }
79
+
80
+ .manual-breadcrumb-list {
81
+ font-size: 0.8em;
82
+ margin-bottom: 1em;
83
+ }
84
+
85
+ .manual-toc-title a:hover {
86
+ color: #039BE5;
87
+ }
88
+
89
+ .manual-toc li {
90
+ margin: 0.75em 0;
91
+ list-style-type: none;
92
+ }
93
+
94
+ .navigation .manual-toc [class^="indent-h"] a {
95
+ color: #666;
96
+ }
97
+
98
+ .navigation .manual-toc .indent-h1 a {
99
+ color: #555;
100
+ font-weight: 600;
101
+ display: block;
102
+ }
103
+
104
+ .manual-toc .indent-h1 {
105
+ display: block;
106
+ margin: 0.4em 0 0 0.25em;
107
+ padding: 0.2em 0 0.2em 0.5em;
108
+ border-radius: 0.1em;
109
+ }
110
+
111
+ .manual-root .navigation .manual-toc li:not(.indent-h1) {
112
+ margin-top: 0.5em;
113
+ }
114
+
115
+ .manual-toc .indent-h2 {
116
+ display: none;
117
+ margin-left: 1.5em;
118
+ }
119
+ .manual-toc .indent-h3 {
120
+ display: none;
121
+ margin-left: 2.5em;
122
+ }
123
+ .manual-toc .indent-h4 {
124
+ display: none;
125
+ margin-left: 3.5em;
126
+ }
127
+ .manual-toc .indent-h5 {
128
+ display: none;
129
+ margin-left: 4.5em;
130
+ }
131
+
132
+ .manual-nav li {
133
+ margin: 0.75em 0;
134
+ }