@ridp/threejs 0.2.0 → 1.1.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 (82) hide show
  1. package/dist/ImageLoader-CB_URfeZ.js +860 -0
  2. package/dist/ImageLoader-DwvBWW6h.cjs +5 -0
  3. package/dist/common-BHi3qsZW.cjs +15 -0
  4. package/dist/{common-DESmndxO.js → common-fbJUHqlj.js} +1 -1
  5. package/dist/hooks.cjs +1 -1
  6. package/dist/hooks.js +7 -9
  7. package/dist/threejs.cjs +1 -1
  8. package/dist/threejs.js +17 -15
  9. package/dist/useGLTFLoader-DHxBLucO.js +5629 -0
  10. package/dist/useGLTFLoader-DM3-7jdq.cjs +4 -0
  11. package/dist/utils.cjs +1 -1
  12. package/dist/utils.js +15 -12
  13. package/esdoc/ast/source/.external-ecmascript.js.json +2802 -0
  14. package/esdoc/ast/source/hooks/index.js.json +739 -0
  15. package/esdoc/ast/source/hooks/useGLTFLoader.js.json +9111 -0
  16. package/esdoc/ast/source/hooks/useObb.js.json +16463 -0
  17. package/esdoc/ast/source/hooks/useRaycaster.js.json +15556 -0
  18. package/esdoc/ast/source/hooks/useThreeJs.js.json +52887 -0
  19. package/esdoc/ast/source/index.js.json +570 -0
  20. package/esdoc/ast/source/instance/IDBCache.js.json +40978 -0
  21. package/esdoc/ast/source/instance/index.js.json +232 -0
  22. package/esdoc/ast/source/utils/ImageLoader.js.json +7037 -0
  23. package/esdoc/ast/source/utils/common.js.json +5134 -0
  24. package/esdoc/ast/source/utils/css3dHelper.js.json +9101 -0
  25. package/esdoc/ast/source/utils/disposeObject.js.json +5978 -0
  26. package/esdoc/ast/source/utils/helper.js.json +10522 -0
  27. package/esdoc/ast/source/utils/index.js.json +908 -0
  28. package/esdoc/badge.svg +17 -0
  29. package/esdoc/class/src/instance/IDBCache.js~IDBCache.html +1299 -0
  30. package/esdoc/coverage.json +86 -0
  31. package/esdoc/css/github.css +83 -0
  32. package/esdoc/css/identifiers.css +37 -0
  33. package/esdoc/css/manual.css +134 -0
  34. package/esdoc/css/prettify-tomorrow.css +132 -0
  35. package/esdoc/css/search.css +84 -0
  36. package/esdoc/css/source.css +55 -0
  37. package/esdoc/css/style.css +608 -0
  38. package/esdoc/css/test.css +58 -0
  39. package/esdoc/file/src/hooks/index.js.html +79 -0
  40. package/esdoc/file/src/hooks/useGLTFLoader.js.html +146 -0
  41. package/esdoc/file/src/hooks/useObb.js.html +149 -0
  42. package/esdoc/file/src/hooks/useRaycaster.js.html +153 -0
  43. package/esdoc/file/src/hooks/useThreeJs.js.html +362 -0
  44. package/esdoc/file/src/index.js.html +78 -0
  45. package/esdoc/file/src/instance/IDBCache.js.html +312 -0
  46. package/esdoc/file/src/instance/index.js.html +76 -0
  47. package/esdoc/file/src/utils/ImageLoader.js.html +118 -0
  48. package/esdoc/file/src/utils/common.js.html +102 -0
  49. package/esdoc/file/src/utils/css3dHelper.js.html +131 -0
  50. package/esdoc/file/src/utils/disposeObject.js.html +114 -0
  51. package/esdoc/file/src/utils/helper.js.html +138 -0
  52. package/esdoc/file/src/utils/index.js.html +80 -0
  53. package/esdoc/function/index.html +2019 -0
  54. package/esdoc/identifiers.html +738 -0
  55. package/esdoc/image/badge.svg +17 -0
  56. package/esdoc/image/esdoc-logo-mini-black.png +0 -0
  57. package/esdoc/image/esdoc-logo-mini.png +0 -0
  58. package/esdoc/image/manual-badge.svg +17 -0
  59. package/esdoc/image/search.png +0 -0
  60. package/esdoc/index.html +153 -0
  61. package/esdoc/index.json +2051 -0
  62. package/esdoc/inject/css/0-cus-style.css +1 -0
  63. package/esdoc/lint.json +1 -0
  64. package/esdoc/script/inherited-summary.js +28 -0
  65. package/esdoc/script/inner-link.js +32 -0
  66. package/esdoc/script/manual.js +12 -0
  67. package/esdoc/script/patch-for-local.js +8 -0
  68. package/esdoc/script/prettify/Apache-License-2.0.txt +202 -0
  69. package/esdoc/script/prettify/prettify.js +46 -0
  70. package/esdoc/script/pretty-print.js +25 -0
  71. package/esdoc/script/search.js +117 -0
  72. package/esdoc/script/search_index.js +572 -0
  73. package/esdoc/script/test-summary.js +54 -0
  74. package/esdoc/source.html +213 -0
  75. package/esdoc/variable/index.html +225 -0
  76. package/package.json +13 -3
  77. package/readme.md +93 -0
  78. package/dist/common-nMt4tIRA.cjs +0 -15
  79. package/dist/disposeObject-BuI3II7v.cjs +0 -1
  80. package/dist/disposeObject-CmFSSgi7.js +0 -616
  81. package/dist/useGLTFLoader-BAoIZjEX.js +0 -2645
  82. package/dist/useGLTFLoader-CGOxhEOO.cjs +0 -6
@@ -0,0 +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
+ }
86
+ }
@@ -0,0 +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
+ }
@@ -0,0 +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
+
@@ -0,0 +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
+ }
@@ -0,0 +1,132 @@
1
+ /* Tomorrow Theme */
2
+ /* Original theme - https://github.com/chriskempson/tomorrow-theme */
3
+ /* Pretty printing styles. Used with prettify.js. */
4
+ /* SPAN elements with the classes below are added by prettyprint. */
5
+ /* plain text */
6
+ .pln {
7
+ color: #4d4d4c; }
8
+
9
+ @media screen {
10
+ /* string content */
11
+ .str {
12
+ color: #718c00; }
13
+
14
+ /* a keyword */
15
+ .kwd {
16
+ color: #8959a8; }
17
+
18
+ /* a comment */
19
+ .com {
20
+ color: #8e908c; }
21
+
22
+ /* a type name */
23
+ .typ {
24
+ color: #4271ae; }
25
+
26
+ /* a literal value */
27
+ .lit {
28
+ color: #f5871f; }
29
+
30
+ /* punctuation */
31
+ .pun {
32
+ color: #4d4d4c; }
33
+
34
+ /* lisp open bracket */
35
+ .opn {
36
+ color: #4d4d4c; }
37
+
38
+ /* lisp close bracket */
39
+ .clo {
40
+ color: #4d4d4c; }
41
+
42
+ /* a markup tag name */
43
+ .tag {
44
+ color: #c82829; }
45
+
46
+ /* a markup attribute name */
47
+ .atn {
48
+ color: #f5871f; }
49
+
50
+ /* a markup attribute value */
51
+ .atv {
52
+ color: #3e999f; }
53
+
54
+ /* a declaration */
55
+ .dec {
56
+ color: #f5871f; }
57
+
58
+ /* a variable name */
59
+ .var {
60
+ color: #c82829; }
61
+
62
+ /* a function name */
63
+ .fun {
64
+ color: #4271ae; } }
65
+ /* Use higher contrast and text-weight for printable form. */
66
+ @media print, projection {
67
+ .str {
68
+ color: #060; }
69
+
70
+ .kwd {
71
+ color: #006;
72
+ font-weight: bold; }
73
+
74
+ .com {
75
+ color: #600;
76
+ font-style: italic; }
77
+
78
+ .typ {
79
+ color: #404;
80
+ font-weight: bold; }
81
+
82
+ .lit {
83
+ color: #044; }
84
+
85
+ .pun, .opn, .clo {
86
+ color: #440; }
87
+
88
+ .tag {
89
+ color: #006;
90
+ font-weight: bold; }
91
+
92
+ .atn {
93
+ color: #404; }
94
+
95
+ .atv {
96
+ color: #060; } }
97
+ /* Style */
98
+ /*
99
+ pre.prettyprint {
100
+ background: white;
101
+ font-family: Consolas, Monaco, 'Andale Mono', monospace;
102
+ font-size: 12px;
103
+ line-height: 1.5;
104
+ border: 1px solid #ccc;
105
+ padding: 10px; }
106
+ */
107
+
108
+ /* Specify class=linenums on a pre to get line numbering */
109
+ ol.linenums {
110
+ margin-top: 0;
111
+ margin-bottom: 0; }
112
+
113
+ /* IE indents via margin-left */
114
+ li.L0,
115
+ li.L1,
116
+ li.L2,
117
+ li.L3,
118
+ li.L4,
119
+ li.L5,
120
+ li.L6,
121
+ li.L7,
122
+ li.L8,
123
+ li.L9 {
124
+ /* */ }
125
+
126
+ /* Alternate shading for lines */
127
+ li.L1,
128
+ li.L3,
129
+ li.L5,
130
+ li.L7,
131
+ li.L9 {
132
+ /* */ }
@@ -0,0 +1,84 @@
1
+ /* search box */
2
+ .search-box {
3
+ position: absolute;
4
+ top: 10px;
5
+ right: 50px;
6
+ padding-right: 8px;
7
+ padding-bottom: 10px;
8
+ line-height: normal;
9
+ font-size: 12px;
10
+ }
11
+
12
+ .search-box img {
13
+ width: 20px;
14
+ vertical-align: top;
15
+ }
16
+
17
+ .search-input {
18
+ display: inline;
19
+ visibility: hidden;
20
+ width: 0;
21
+ padding: 2px;
22
+ height: 1.5em;
23
+ outline: none;
24
+ background: transparent;
25
+ border: 1px #0af;
26
+ border-style: none none solid none;
27
+ vertical-align: bottom;
28
+ }
29
+
30
+ .search-input-edge {
31
+ display: none;
32
+ width: 1px;
33
+ height: 5px;
34
+ background-color: #0af;
35
+ vertical-align: bottom;
36
+ }
37
+
38
+ .search-result {
39
+ position: absolute;
40
+ display: none;
41
+ height: 600px;
42
+ width: 100%;
43
+ padding: 0;
44
+ margin-top: 5px;
45
+ margin-left: 24px;
46
+ background: white;
47
+ box-shadow: 1px 1px 4px rgb(0,0,0);
48
+ white-space: nowrap;
49
+ overflow-y: scroll;
50
+ }
51
+
52
+ .search-result-import-path {
53
+ color: #aaa;
54
+ font-size: 12px;
55
+ }
56
+
57
+ .search-result li {
58
+ list-style: none;
59
+ padding: 2px 4px;
60
+ }
61
+
62
+ .search-result li a {
63
+ display: block;
64
+ }
65
+
66
+ .search-result li.selected {
67
+ background: #ddd;
68
+ }
69
+
70
+ .search-result li.search-separator {
71
+ background: rgb(37, 138, 175);
72
+ color: white;
73
+ }
74
+
75
+ .search-box.active .search-input {
76
+ visibility: visible;
77
+ transition: width 0.2s ease-out;
78
+ width: 300px;
79
+ }
80
+
81
+ .search-box.active .search-input-edge {
82
+ display: inline-block;
83
+ }
84
+
@@ -0,0 +1,55 @@
1
+ table.files-summary {
2
+ width: 100%;
3
+ margin: 10px 0;
4
+ border-spacing: 0;
5
+ border: 0;
6
+ border-collapse: collapse;
7
+ text-align: right;
8
+ }
9
+
10
+ table.files-summary tbody tr:hover {
11
+ background: #eee;
12
+ }
13
+
14
+ table.files-summary td:first-child,
15
+ table.files-summary td:nth-of-type(2) {
16
+ text-align: left;
17
+ }
18
+
19
+ table.files-summary[data-use-coverage="false"] td.coverage {
20
+ display: none;
21
+ }
22
+
23
+ table.files-summary thead {
24
+ background: #fafafa;
25
+ }
26
+
27
+ table.files-summary td {
28
+ border: solid 1px #ddd;
29
+ padding: 4px 10px;
30
+ vertical-align: top;
31
+ }
32
+
33
+ table.files-summary td.identifiers > span {
34
+ display: block;
35
+ margin-top: 4px;
36
+ }
37
+ table.files-summary td.identifiers > span:first-child {
38
+ margin-top: 0;
39
+ }
40
+
41
+ table.files-summary .coverage-count {
42
+ font-size: 12px;
43
+ color: #aaa;
44
+ display: inline-block;
45
+ min-width: 40px;
46
+ }
47
+
48
+ .total-coverage-count {
49
+ position: relative;
50
+ bottom: 2px;
51
+ font-size: 12px;
52
+ color: #666;
53
+ font-weight: 500;
54
+ padding-left: 5px;
55
+ }