@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,225 +1,225 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <base data-ice="baseUrl" href="../">
6
- <title data-ice="title">Variable | @ridp/threejs</title>
7
- <link type="text/css" rel="stylesheet" href="css/style.css">
8
- <link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
9
- <script src="script/prettify/prettify.js"></script>
10
- <script src="script/manual.js"></script>
11
- <link rel="stylesheet" href="./inject/css/0-cus-style.css"></head>
12
- <body class="layout-container" data-ice="rootContainer">
13
-
14
- <header>
15
- <a href="./">Home</a>
16
-
17
- <a href="identifiers.html">Reference</a>
18
- <a href="source.html">Source</a>
19
-
20
- <div class="search-box">
21
- <span>
22
- <img src="./image/search.png">
23
- <span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span>
24
- </span>
25
- <ul class="search-result"></ul>
26
- </div>
27
- </header>
28
-
29
- <nav class="navigation" data-ice="nav"><div>
30
- <ul>
31
-
32
- <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#hooks">hooks</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-useGLTFLoader">useGLTFLoader</a></span></span></li>
33
- <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-useObb">useObb</a></span></span></li>
34
- <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-useRaycaster">useRaycaster</a></span></span></li>
35
- <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-useThreeJs">useThreeJs</a></span></span></li>
36
- <li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-intersectColor">intersectColor</a></span></span></li>
37
- <li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-obbObjects">obbObjects</a></span></span></li>
38
- <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#instance">instance</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/instance/IDBCache.js~IDBCache.html">IDBCache</a></span></span></li>
39
- <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#utils">utils</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-ImageLoader">ImageLoader</a></span></span></li>
40
- <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-initEnvImage">initEnvImage</a></span></span></li>
41
- <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-getCommonParent">getCommonParent</a></span></span></li>
42
- <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-createInfoPlane">createInfoPlane</a></span></span></li>
43
- <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-createTagPlane">createTagPlane</a></span></span></li>
44
- <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-disposeThreeObject">disposeThreeObject</a></span></span></li>
45
- <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-createArrowHelper">createArrowHelper</a></span></span></li>
46
- <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-createAxesHelper">createAxesHelper</a></span></span></li>
47
- <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-createBox3Helper">createBox3Helper</a></span></span></li>
48
- <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-createCameraHelper">createCameraHelper</a></span></span></li>
49
- <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-createGridHelper">createGridHelper</a></span></span></li>
50
- <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-createMapControls">createMapControls</a></span></span></li>
51
- <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-createOrbitControl">createOrbitControl</a></span></span></li>
52
- <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-createRaycaster">createRaycaster</a></span></span></li>
53
- <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-createStats">createStats</a></span></span></li>
54
- </ul>
55
- </div>
56
- </nav>
57
-
58
- <div class="content" data-ice="content"><h1 data-ice="title">Variable</h1>
59
- <div data-ice="summaries"><table class="summary" data-ice="summary">
60
- <thead><tr><td data-ice="title" colspan="3">Static Public Summary</td></tr></thead>
61
- <tbody>
62
-
63
- <tr data-ice="target">
64
- <td>
65
- <span class="access" data-ice="access">public</span>
66
-
67
-
68
-
69
- <span class="override" data-ice="override"></span>
70
- </td>
71
- <td>
72
- <div>
73
- <p>
74
-
75
-
76
-
77
- <span class="code" data-ice="name"><span><a href="variable/index.html#static-variable-intersectColor">intersectColor</a></span></span><span class="code" data-ice="signature">: <span>*</span></span>
78
- </p>
79
- </div>
80
- <div>
81
-
82
-
83
-
84
- </div>
85
- </td>
86
- <td>
87
-
88
-
89
- </td>
90
- </tr>
91
- <tr data-ice="target">
92
- <td>
93
- <span class="access" data-ice="access">public</span>
94
-
95
-
96
-
97
- <span class="override" data-ice="override"></span>
98
- </td>
99
- <td>
100
- <div>
101
- <p>
102
-
103
-
104
-
105
- <span class="code" data-ice="name"><span><a href="variable/index.html#static-variable-obbObjects">obbObjects</a></span></span><span class="code" data-ice="signature">: <span><span>*</span><span>[]</span></span></span>
106
- </p>
107
- </div>
108
- <div>
109
-
110
-
111
-
112
- </div>
113
- </td>
114
- <td>
115
-
116
-
117
- </td>
118
- </tr>
119
- </tbody>
120
- </table>
121
- </div>
122
- <div data-ice="details"><h2 data-ice="title">Static Public </h2>
123
-
124
- <div class="detail" data-ice="detail">
125
- <h3 data-ice="anchor" id="static-variable-intersectColor">
126
- <span class="access" data-ice="access">public</span>
127
-
128
-
129
-
130
-
131
-
132
- <span class="code" data-ice="name">intersectColor</span><span class="code" data-ice="signature">: <span>*</span></span>
133
- <span class="right-info">
134
-
135
-
136
- <span data-ice="source"><span><a href="file/src/hooks/useObb.js.html#lineNumber6">source</a></span></span>
137
- </span>
138
- </h3>
139
-
140
- <div data-ice="importPath" class="import-path"><pre class="prettyprint"><code data-ice="importPathCode">import {intersectColor} from &apos;<span><a href="file/src/hooks/useObb.js.html#lineNumber6">@ridp/threejs/src/hooks/useObb.js</a></span>&apos;</code></pre></div>
141
-
142
-
143
-
144
-
145
-
146
-
147
- <div data-ice="properties">
148
- </div>
149
-
150
-
151
-
152
-
153
-
154
-
155
-
156
-
157
-
158
-
159
-
160
-
161
-
162
-
163
-
164
-
165
-
166
- </div>
167
- <div class="detail" data-ice="detail">
168
- <h3 data-ice="anchor" id="static-variable-obbObjects">
169
- <span class="access" data-ice="access">public</span>
170
-
171
-
172
-
173
-
174
-
175
- <span class="code" data-ice="name">obbObjects</span><span class="code" data-ice="signature">: <span><span>*</span><span>[]</span></span></span>
176
- <span class="right-info">
177
-
178
-
179
- <span data-ice="source"><span><a href="file/src/hooks/useObb.js.html#lineNumber5">source</a></span></span>
180
- </span>
181
- </h3>
182
-
183
- <div data-ice="importPath" class="import-path"><pre class="prettyprint"><code data-ice="importPathCode">import {obbObjects} from &apos;<span><a href="file/src/hooks/useObb.js.html#lineNumber5">@ridp/threejs/src/hooks/useObb.js</a></span>&apos;</code></pre></div>
184
-
185
-
186
-
187
-
188
-
189
-
190
- <div data-ice="properties">
191
- </div>
192
-
193
-
194
-
195
-
196
-
197
-
198
-
199
-
200
-
201
-
202
-
203
-
204
-
205
-
206
-
207
-
208
-
209
- </div>
210
- </div>
211
- </div>
212
-
213
- <footer class="footer">
214
- Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(1.1.0)</span><img src="./image/esdoc-logo-mini-black.png"></a>
215
- </footer>
216
-
217
- <script src="script/search_index.js"></script>
218
- <script src="script/search.js"></script>
219
- <script src="script/pretty-print.js"></script>
220
- <script src="script/inherited-summary.js"></script>
221
- <script src="script/test-summary.js"></script>
222
- <script src="script/inner-link.js"></script>
223
- <script src="script/patch-for-local.js"></script>
224
- </body>
225
- </html>
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <base data-ice="baseUrl" href="../">
6
+ <title data-ice="title">Variable | @ridp/threejs</title>
7
+ <link type="text/css" rel="stylesheet" href="css/style.css">
8
+ <link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
9
+ <script src="script/prettify/prettify.js"></script>
10
+ <script src="script/manual.js"></script>
11
+ <link rel="stylesheet" href="./inject/css/0-cus-style.css"></head>
12
+ <body class="layout-container" data-ice="rootContainer">
13
+
14
+ <header>
15
+ <a href="./">Home</a>
16
+
17
+ <a href="identifiers.html">Reference</a>
18
+ <a href="source.html">Source</a>
19
+
20
+ <div class="search-box">
21
+ <span>
22
+ <img src="./image/search.png">
23
+ <span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span>
24
+ </span>
25
+ <ul class="search-result"></ul>
26
+ </div>
27
+ </header>
28
+
29
+ <nav class="navigation" data-ice="nav"><div>
30
+ <ul>
31
+
32
+ <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#hooks">hooks</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-useGLTFLoader">useGLTFLoader</a></span></span></li>
33
+ <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-useObb">useObb</a></span></span></li>
34
+ <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-useRaycaster">useRaycaster</a></span></span></li>
35
+ <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-useThreeJs">useThreeJs</a></span></span></li>
36
+ <li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-intersectColor">intersectColor</a></span></span></li>
37
+ <li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-obbObjects">obbObjects</a></span></span></li>
38
+ <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#instance">instance</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/instance/IDBCache.js~IDBCache.html">IDBCache</a></span></span></li>
39
+ <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#utils">utils</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-ImageLoader">ImageLoader</a></span></span></li>
40
+ <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-initEnvImage">initEnvImage</a></span></span></li>
41
+ <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-getCommonParent">getCommonParent</a></span></span></li>
42
+ <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-createInfoPlane">createInfoPlane</a></span></span></li>
43
+ <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-createTagPlane">createTagPlane</a></span></span></li>
44
+ <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-disposeThreeObject">disposeThreeObject</a></span></span></li>
45
+ <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-createArrowHelper">createArrowHelper</a></span></span></li>
46
+ <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-createAxesHelper">createAxesHelper</a></span></span></li>
47
+ <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-createBox3Helper">createBox3Helper</a></span></span></li>
48
+ <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-createCameraHelper">createCameraHelper</a></span></span></li>
49
+ <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-createGridHelper">createGridHelper</a></span></span></li>
50
+ <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-createMapControls">createMapControls</a></span></span></li>
51
+ <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-createOrbitControl">createOrbitControl</a></span></span></li>
52
+ <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-createRaycaster">createRaycaster</a></span></span></li>
53
+ <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-createStats">createStats</a></span></span></li>
54
+ </ul>
55
+ </div>
56
+ </nav>
57
+
58
+ <div class="content" data-ice="content"><h1 data-ice="title">Variable</h1>
59
+ <div data-ice="summaries"><table class="summary" data-ice="summary">
60
+ <thead><tr><td data-ice="title" colspan="3">Static Public Summary</td></tr></thead>
61
+ <tbody>
62
+
63
+ <tr data-ice="target">
64
+ <td>
65
+ <span class="access" data-ice="access">public</span>
66
+
67
+
68
+
69
+ <span class="override" data-ice="override"></span>
70
+ </td>
71
+ <td>
72
+ <div>
73
+ <p>
74
+
75
+
76
+
77
+ <span class="code" data-ice="name"><span><a href="variable/index.html#static-variable-intersectColor">intersectColor</a></span></span><span class="code" data-ice="signature">: <span>*</span></span>
78
+ </p>
79
+ </div>
80
+ <div>
81
+
82
+
83
+
84
+ </div>
85
+ </td>
86
+ <td>
87
+
88
+
89
+ </td>
90
+ </tr>
91
+ <tr data-ice="target">
92
+ <td>
93
+ <span class="access" data-ice="access">public</span>
94
+
95
+
96
+
97
+ <span class="override" data-ice="override"></span>
98
+ </td>
99
+ <td>
100
+ <div>
101
+ <p>
102
+
103
+
104
+
105
+ <span class="code" data-ice="name"><span><a href="variable/index.html#static-variable-obbObjects">obbObjects</a></span></span><span class="code" data-ice="signature">: <span><span>*</span><span>[]</span></span></span>
106
+ </p>
107
+ </div>
108
+ <div>
109
+
110
+
111
+
112
+ </div>
113
+ </td>
114
+ <td>
115
+
116
+
117
+ </td>
118
+ </tr>
119
+ </tbody>
120
+ </table>
121
+ </div>
122
+ <div data-ice="details"><h2 data-ice="title">Static Public </h2>
123
+
124
+ <div class="detail" data-ice="detail">
125
+ <h3 data-ice="anchor" id="static-variable-intersectColor">
126
+ <span class="access" data-ice="access">public</span>
127
+
128
+
129
+
130
+
131
+
132
+ <span class="code" data-ice="name">intersectColor</span><span class="code" data-ice="signature">: <span>*</span></span>
133
+ <span class="right-info">
134
+
135
+
136
+ <span data-ice="source"><span><a href="file/src/hooks/useObb.js.html#lineNumber6">source</a></span></span>
137
+ </span>
138
+ </h3>
139
+
140
+ <div data-ice="importPath" class="import-path"><pre class="prettyprint"><code data-ice="importPathCode">import {intersectColor} from &apos;<span><a href="file/src/hooks/useObb.js.html#lineNumber6">@ridp/threejs/src/hooks/useObb.js</a></span>&apos;</code></pre></div>
141
+
142
+
143
+
144
+
145
+
146
+
147
+ <div data-ice="properties">
148
+ </div>
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+
164
+
165
+
166
+ </div>
167
+ <div class="detail" data-ice="detail">
168
+ <h3 data-ice="anchor" id="static-variable-obbObjects">
169
+ <span class="access" data-ice="access">public</span>
170
+
171
+
172
+
173
+
174
+
175
+ <span class="code" data-ice="name">obbObjects</span><span class="code" data-ice="signature">: <span><span>*</span><span>[]</span></span></span>
176
+ <span class="right-info">
177
+
178
+
179
+ <span data-ice="source"><span><a href="file/src/hooks/useObb.js.html#lineNumber5">source</a></span></span>
180
+ </span>
181
+ </h3>
182
+
183
+ <div data-ice="importPath" class="import-path"><pre class="prettyprint"><code data-ice="importPathCode">import {obbObjects} from &apos;<span><a href="file/src/hooks/useObb.js.html#lineNumber5">@ridp/threejs/src/hooks/useObb.js</a></span>&apos;</code></pre></div>
184
+
185
+
186
+
187
+
188
+
189
+
190
+ <div data-ice="properties">
191
+ </div>
192
+
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+
201
+
202
+
203
+
204
+
205
+
206
+
207
+
208
+
209
+ </div>
210
+ </div>
211
+ </div>
212
+
213
+ <footer class="footer">
214
+ Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(1.1.0)</span><img src="./image/esdoc-logo-mini-black.png"></a>
215
+ </footer>
216
+
217
+ <script src="script/search_index.js"></script>
218
+ <script src="script/search.js"></script>
219
+ <script src="script/pretty-print.js"></script>
220
+ <script src="script/inherited-summary.js"></script>
221
+ <script src="script/test-summary.js"></script>
222
+ <script src="script/inner-link.js"></script>
223
+ <script src="script/patch-for-local.js"></script>
224
+ </body>
225
+ </html>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ridp/threejs",
3
3
  "private": false,
4
- "version": "1.1.7",
4
+ "version": "1.2.0",
5
5
  "type": "module",
6
6
  "main": "dist/threejs.js",
7
7
  "exports": {
@@ -19,6 +19,7 @@
19
19
  }
20
20
  },
21
21
  "dependencies": {
22
+ "@vueuse/core": "^13.0.0",
22
23
  "dexie": "^4.0.11",
23
24
  "esdoc": "^1.1.0",
24
25
  "esdoc-ecmascript-proposal-plugin": "^1.0.0",
@@ -26,7 +27,7 @@
26
27
  "esdoc-inject-style-plugin": "^1.0.0",
27
28
  "esdoc-jsx-plugin": "^1.0.0",
28
29
  "esdoc-standard-plugin": "^1.0.0",
29
- "three": "^0.175.0",
30
+ "three": "^0.178.0",
30
31
  "vite": "^6.3.1",
31
32
  "vue": "^3.5.13"
32
33
  },
@@ -39,9 +40,6 @@
39
40
  "access": "public",
40
41
  "registry": "https://registry.npmjs.org/"
41
42
  },
42
- "devDependencies": {
43
- "terser": "^5.39.0"
44
- },
45
43
  "scripts": {
46
44
  "build": "vite build",
47
45
  "build:doc": "npx esdoc"
@@ -1 +0,0 @@
1
- "use strict";const t=require("three");var e=function(){var t=0,i=document.createElement("div");function s(t){return i.appendChild(t.dom),t}function o(e){for(var s=0;s<i.children.length;s++)i.children[s].style.display=s===e?"block":"none";t=e}i.style.cssText="position:fixed;top:0;left:0;cursor:pointer;opacity:0.9;z-index:10000",i.addEventListener("click",(function(e){e.preventDefault(),o(++t%i.children.length)}),!1);var n=(performance||Date).now(),a=n,r=0,h=s(new e.Panel("FPS","#0ff","#002")),l=s(new e.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var c=s(new e.Panel("MB","#f08","#201"));return o(0),{REVISION:16,dom:i,addPanel:s,showPanel:o,begin:function(){n=(performance||Date).now()},end:function(){r++;var t=(performance||Date).now();if(l.update(t-n,200),t>=a+1e3&&(h.update(1e3*r/(t-a),100),a=t,r=0,c)){var e=performance.memory;c.update(e.usedJSHeapSize/1048576,e.jsHeapSizeLimit/1048576)}return t},update:function(){n=this.end()},domElement:i,setMode:o}};e.Panel=function(t,e,i){var s=1/0,o=0,n=Math.round,a=n(window.devicePixelRatio||1),r=80*a,h=48*a,l=3*a,c=2*a,p=3*a,d=15*a,m=74*a,u=30*a,_=document.createElement("canvas");_.width=r,_.height=h,_.style.cssText="width:80px;height:48px";var y=_.getContext("2d");return y.font="bold "+9*a+"px Helvetica,Arial,sans-serif",y.textBaseline="top",y.fillStyle=i,y.fillRect(0,0,r,h),y.fillStyle=e,y.fillText(t,l,c),y.fillRect(p,d,m,u),y.fillStyle=i,y.globalAlpha=.9,y.fillRect(p,d,m,u),{dom:_,update:function(h,f){s=Math.min(s,h),o=Math.max(o,h),y.fillStyle=i,y.globalAlpha=1,y.fillRect(0,0,r,d),y.fillStyle=e,y.fillText(n(h)+" "+t+" ("+n(s)+"-"+n(o)+")",l,c),y.drawImage(_,p+a,d,m-a,u,p,d,m-a,u),y.fillRect(p+m-a,d,a,u),y.fillStyle=i,y.globalAlpha=.9,y.fillRect(p+m-a,d,a,n((1-h/f)*u))}}};const i=new t.Vector3,s=new t.Quaternion,o=new t.Vector3;class n extends t.Object3D{constructor(t=document.createElement("div")){super(),this.isCSS3DObject=!0,this.element=t,this.element.style.position="absolute",this.element.style.pointerEvents="auto",this.element.style.userSelect="none",this.element.setAttribute("draggable",!1),this.addEventListener("removed",(function(){this.traverse((function(t){t.element instanceof t.element.ownerDocument.defaultView.Element&&null!==t.element.parentNode&&t.element.remove()}))}))}copy(t,e){return super.copy(t,e),this.element=t.element.cloneNode(!0),this}}const a=new t.Matrix4,r=new t.Matrix4;const h={type:"change"},l={type:"start"},c={type:"end"},p=new t.Ray,d=new t.Plane,m=Math.cos(70*t.MathUtils.DEG2RAD),u=new t.Vector3,_=2*Math.PI,y=-1,f=0,g=1,b=2,E=3,v=4,w=5,S=6,P=1e-6;class D extends t.Controls{constructor(e,i=null){super(e,i),this.state=y,this.target=new t.Vector3,this.cursor=new t.Vector3,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minTargetRadius=0,this.maxTargetRadius=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.keyRotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!0,this.keyPanSpeed=7,this.zoomToCursor=!1,this.autoRotate=!1,this.autoRotateSpeed=2,this.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.mouseButtons={LEFT:t.MOUSE.ROTATE,MIDDLE:t.MOUSE.DOLLY,RIGHT:t.MOUSE.PAN},this.touches={ONE:t.TOUCH.ROTATE,TWO:t.TOUCH.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._domElementKeyEvents=null,this._lastPosition=new t.Vector3,this._lastQuaternion=new t.Quaternion,this._lastTargetPosition=new t.Vector3,this._quat=(new t.Quaternion).setFromUnitVectors(e.up,new t.Vector3(0,1,0)),this._quatInverse=this._quat.clone().invert(),this._spherical=new t.Spherical,this._sphericalDelta=new t.Spherical,this._scale=1,this._panOffset=new t.Vector3,this._rotateStart=new t.Vector2,this._rotateEnd=new t.Vector2,this._rotateDelta=new t.Vector2,this._panStart=new t.Vector2,this._panEnd=new t.Vector2,this._panDelta=new t.Vector2,this._dollyStart=new t.Vector2,this._dollyEnd=new t.Vector2,this._dollyDelta=new t.Vector2,this._dollyDirection=new t.Vector3,this._mouse=new t.Vector2,this._performCursorZoom=!1,this._pointers=[],this._pointerPositions={},this._controlActive=!1,this._onPointerMove=x.bind(this),this._onPointerDown=M.bind(this),this._onPointerUp=T.bind(this),this._onContextMenu=k.bind(this),this._onMouseWheel=A.bind(this),this._onKeyDown=L.bind(this),this._onTouchStart=C.bind(this),this._onTouchMove=O.bind(this),this._onMouseDown=R.bind(this),this._onMouseMove=j.bind(this),this._interceptControlDown=U.bind(this),this._interceptControlUp=H.bind(this),null!==this.domElement&&this.connect(this.domElement),this.update()}connect(t){super.connect(t),this.domElement.addEventListener("pointerdown",this._onPointerDown),this.domElement.addEventListener("pointercancel",this._onPointerUp),this.domElement.addEventListener("contextmenu",this._onContextMenu),this.domElement.addEventListener("wheel",this._onMouseWheel,{passive:!1});this.domElement.getRootNode().addEventListener("keydown",this._interceptControlDown,{passive:!0,capture:!0}),this.domElement.style.touchAction="none"}disconnect(){this.domElement.removeEventListener("pointerdown",this._onPointerDown),this.domElement.removeEventListener("pointermove",this._onPointerMove),this.domElement.removeEventListener("pointerup",this._onPointerUp),this.domElement.removeEventListener("pointercancel",this._onPointerUp),this.domElement.removeEventListener("wheel",this._onMouseWheel),this.domElement.removeEventListener("contextmenu",this._onContextMenu),this.stopListenToKeyEvents();this.domElement.getRootNode().removeEventListener("keydown",this._interceptControlDown,{capture:!0}),this.domElement.style.touchAction="auto"}dispose(){this.disconnect()}getPolarAngle(){return this._spherical.phi}getAzimuthalAngle(){return this._spherical.theta}getDistance(){return this.object.position.distanceTo(this.target)}listenToKeyEvents(t){t.addEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=t}stopListenToKeyEvents(){null!==this._domElementKeyEvents&&(this._domElementKeyEvents.removeEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=null)}saveState(){this.target0.copy(this.target),this.position0.copy(this.object.position),this.zoom0=this.object.zoom}reset(){this.target.copy(this.target0),this.object.position.copy(this.position0),this.object.zoom=this.zoom0,this.object.updateProjectionMatrix(),this.dispatchEvent(h),this.update(),this.state=y}update(e=null){const i=this.object.position;u.copy(i).sub(this.target),u.applyQuaternion(this._quat),this._spherical.setFromVector3(u),this.autoRotate&&this.state===y&&this._rotateLeft(this._getAutoRotationAngle(e)),this.enableDamping?(this._spherical.theta+=this._sphericalDelta.theta*this.dampingFactor,this._spherical.phi+=this._sphericalDelta.phi*this.dampingFactor):(this._spherical.theta+=this._sphericalDelta.theta,this._spherical.phi+=this._sphericalDelta.phi);let s=this.minAzimuthAngle,o=this.maxAzimuthAngle;isFinite(s)&&isFinite(o)&&(s<-Math.PI?s+=_:s>Math.PI&&(s-=_),o<-Math.PI?o+=_:o>Math.PI&&(o-=_),this._spherical.theta=s<=o?Math.max(s,Math.min(o,this._spherical.theta)):this._spherical.theta>(s+o)/2?Math.max(s,this._spherical.theta):Math.min(o,this._spherical.theta)),this._spherical.phi=Math.max(this.minPolarAngle,Math.min(this.maxPolarAngle,this._spherical.phi)),this._spherical.makeSafe(),!0===this.enableDamping?this.target.addScaledVector(this._panOffset,this.dampingFactor):this.target.add(this._panOffset),this.target.sub(this.cursor),this.target.clampLength(this.minTargetRadius,this.maxTargetRadius),this.target.add(this.cursor);let n=!1;if(this.zoomToCursor&&this._performCursorZoom||this.object.isOrthographicCamera)this._spherical.radius=this._clampDistance(this._spherical.radius);else{const t=this._spherical.radius;this._spherical.radius=this._clampDistance(this._spherical.radius*this._scale),n=t!=this._spherical.radius}if(u.setFromSpherical(this._spherical),u.applyQuaternion(this._quatInverse),i.copy(this.target).add(u),this.object.lookAt(this.target),!0===this.enableDamping?(this._sphericalDelta.theta*=1-this.dampingFactor,this._sphericalDelta.phi*=1-this.dampingFactor,this._panOffset.multiplyScalar(1-this.dampingFactor)):(this._sphericalDelta.set(0,0,0),this._panOffset.set(0,0,0)),this.zoomToCursor&&this._performCursorZoom){let e=null;if(this.object.isPerspectiveCamera){const t=u.length();e=this._clampDistance(t*this._scale);const i=t-e;this.object.position.addScaledVector(this._dollyDirection,i),this.object.updateMatrixWorld(),n=!!i}else if(this.object.isOrthographicCamera){const i=new t.Vector3(this._mouse.x,this._mouse.y,0);i.unproject(this.object);const s=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),this.object.updateProjectionMatrix(),n=s!==this.object.zoom;const o=new t.Vector3(this._mouse.x,this._mouse.y,0);o.unproject(this.object),this.object.position.sub(o).add(i),this.object.updateMatrixWorld(),e=u.length()}else this.zoomToCursor=!1;null!==e&&(this.screenSpacePanning?this.target.set(0,0,-1).transformDirection(this.object.matrix).multiplyScalar(e).add(this.object.position):(p.origin.copy(this.object.position),p.direction.set(0,0,-1).transformDirection(this.object.matrix),Math.abs(this.object.up.dot(p.direction))<m?this.object.lookAt(this.target):(d.setFromNormalAndCoplanarPoint(this.object.up,this.target),p.intersectPlane(d,this.target))))}else if(this.object.isOrthographicCamera){const t=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),t!==this.object.zoom&&(this.object.updateProjectionMatrix(),n=!0)}return this._scale=1,this._performCursorZoom=!1,!!(n||this._lastPosition.distanceToSquared(this.object.position)>P||8*(1-this._lastQuaternion.dot(this.object.quaternion))>P||this._lastTargetPosition.distanceToSquared(this.target)>P)&&(this.dispatchEvent(h),this._lastPosition.copy(this.object.position),this._lastQuaternion.copy(this.object.quaternion),this._lastTargetPosition.copy(this.target),!0)}_getAutoRotationAngle(t){return null!==t?_/60*this.autoRotateSpeed*t:_/60/60*this.autoRotateSpeed}_getZoomScale(t){const e=Math.abs(.01*t);return Math.pow(.95,this.zoomSpeed*e)}_rotateLeft(t){this._sphericalDelta.theta-=t}_rotateUp(t){this._sphericalDelta.phi-=t}_panLeft(t,e){u.setFromMatrixColumn(e,0),u.multiplyScalar(-t),this._panOffset.add(u)}_panUp(t,e){!0===this.screenSpacePanning?u.setFromMatrixColumn(e,1):(u.setFromMatrixColumn(e,0),u.crossVectors(this.object.up,u)),u.multiplyScalar(t),this._panOffset.add(u)}_pan(t,e){const i=this.domElement;if(this.object.isPerspectiveCamera){const s=this.object.position;u.copy(s).sub(this.target);let o=u.length();o*=Math.tan(this.object.fov/2*Math.PI/180),this._panLeft(2*t*o/i.clientHeight,this.object.matrix),this._panUp(2*e*o/i.clientHeight,this.object.matrix)}else this.object.isOrthographicCamera?(this._panLeft(t*(this.object.right-this.object.left)/this.object.zoom/i.clientWidth,this.object.matrix),this._panUp(e*(this.object.top-this.object.bottom)/this.object.zoom/i.clientHeight,this.object.matrix)):this.enablePan=!1}_dollyOut(t){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale/=t:this.enableZoom=!1}_dollyIn(t){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale*=t:this.enableZoom=!1}_updateZoomParameters(t,e){if(!this.zoomToCursor)return;this._performCursorZoom=!0;const i=this.domElement.getBoundingClientRect(),s=t-i.left,o=e-i.top,n=i.width,a=i.height;this._mouse.x=s/n*2-1,this._mouse.y=-o/a*2+1,this._dollyDirection.set(this._mouse.x,this._mouse.y,1).unproject(this.object).sub(this.object.position).normalize()}_clampDistance(t){return Math.max(this.minDistance,Math.min(this.maxDistance,t))}_handleMouseDownRotate(t){this._rotateStart.set(t.clientX,t.clientY)}_handleMouseDownDolly(t){this._updateZoomParameters(t.clientX,t.clientX),this._dollyStart.set(t.clientX,t.clientY)}_handleMouseDownPan(t){this._panStart.set(t.clientX,t.clientY)}_handleMouseMoveRotate(t){this._rotateEnd.set(t.clientX,t.clientY),this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const e=this.domElement;this._rotateLeft(_*this._rotateDelta.x/e.clientHeight),this._rotateUp(_*this._rotateDelta.y/e.clientHeight),this._rotateStart.copy(this._rotateEnd),this.update()}_handleMouseMoveDolly(t){this._dollyEnd.set(t.clientX,t.clientY),this._dollyDelta.subVectors(this._dollyEnd,this._dollyStart),this._dollyDelta.y>0?this._dollyOut(this._getZoomScale(this._dollyDelta.y)):this._dollyDelta.y<0&&this._dollyIn(this._getZoomScale(this._dollyDelta.y)),this._dollyStart.copy(this._dollyEnd),this.update()}_handleMouseMovePan(t){this._panEnd.set(t.clientX,t.clientY),this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd),this.update()}_handleMouseWheel(t){this._updateZoomParameters(t.clientX,t.clientY),t.deltaY<0?this._dollyIn(this._getZoomScale(t.deltaY)):t.deltaY>0&&this._dollyOut(this._getZoomScale(t.deltaY)),this.update()}_handleKeyDown(t){let e=!1;switch(t.code){case this.keys.UP:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateUp(_*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,this.keyPanSpeed),e=!0;break;case this.keys.BOTTOM:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateUp(-_*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,-this.keyPanSpeed),e=!0;break;case this.keys.LEFT:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateLeft(_*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(this.keyPanSpeed,0),e=!0;break;case this.keys.RIGHT:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateLeft(-_*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(-this.keyPanSpeed,0),e=!0}e&&(t.preventDefault(),this.update())}_handleTouchStartRotate(t){if(1===this._pointers.length)this._rotateStart.set(t.pageX,t.pageY);else{const e=this._getSecondPointerPosition(t),i=.5*(t.pageX+e.x),s=.5*(t.pageY+e.y);this._rotateStart.set(i,s)}}_handleTouchStartPan(t){if(1===this._pointers.length)this._panStart.set(t.pageX,t.pageY);else{const e=this._getSecondPointerPosition(t),i=.5*(t.pageX+e.x),s=.5*(t.pageY+e.y);this._panStart.set(i,s)}}_handleTouchStartDolly(t){const e=this._getSecondPointerPosition(t),i=t.pageX-e.x,s=t.pageY-e.y,o=Math.sqrt(i*i+s*s);this._dollyStart.set(0,o)}_handleTouchStartDollyPan(t){this.enableZoom&&this._handleTouchStartDolly(t),this.enablePan&&this._handleTouchStartPan(t)}_handleTouchStartDollyRotate(t){this.enableZoom&&this._handleTouchStartDolly(t),this.enableRotate&&this._handleTouchStartRotate(t)}_handleTouchMoveRotate(t){if(1==this._pointers.length)this._rotateEnd.set(t.pageX,t.pageY);else{const e=this._getSecondPointerPosition(t),i=.5*(t.pageX+e.x),s=.5*(t.pageY+e.y);this._rotateEnd.set(i,s)}this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const e=this.domElement;this._rotateLeft(_*this._rotateDelta.x/e.clientHeight),this._rotateUp(_*this._rotateDelta.y/e.clientHeight),this._rotateStart.copy(this._rotateEnd)}_handleTouchMovePan(t){if(1===this._pointers.length)this._panEnd.set(t.pageX,t.pageY);else{const e=this._getSecondPointerPosition(t),i=.5*(t.pageX+e.x),s=.5*(t.pageY+e.y);this._panEnd.set(i,s)}this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd)}_handleTouchMoveDolly(t){const e=this._getSecondPointerPosition(t),i=t.pageX-e.x,s=t.pageY-e.y,o=Math.sqrt(i*i+s*s);this._dollyEnd.set(0,o),this._dollyDelta.set(0,Math.pow(this._dollyEnd.y/this._dollyStart.y,this.zoomSpeed)),this._dollyOut(this._dollyDelta.y),this._dollyStart.copy(this._dollyEnd);const n=.5*(t.pageX+e.x),a=.5*(t.pageY+e.y);this._updateZoomParameters(n,a)}_handleTouchMoveDollyPan(t){this.enableZoom&&this._handleTouchMoveDolly(t),this.enablePan&&this._handleTouchMovePan(t)}_handleTouchMoveDollyRotate(t){this.enableZoom&&this._handleTouchMoveDolly(t),this.enableRotate&&this._handleTouchMoveRotate(t)}_addPointer(t){this._pointers.push(t.pointerId)}_removePointer(t){delete this._pointerPositions[t.pointerId];for(let e=0;e<this._pointers.length;e++)if(this._pointers[e]==t.pointerId)return void this._pointers.splice(e,1)}_isTrackingPointer(t){for(let e=0;e<this._pointers.length;e++)if(this._pointers[e]==t.pointerId)return!0;return!1}_trackPointer(e){let i=this._pointerPositions[e.pointerId];void 0===i&&(i=new t.Vector2,this._pointerPositions[e.pointerId]=i),i.set(e.pageX,e.pageY)}_getSecondPointerPosition(t){const e=t.pointerId===this._pointers[0]?this._pointers[1]:this._pointers[0];return this._pointerPositions[e]}_customWheelEvent(t){const e=t.deltaMode,i={clientX:t.clientX,clientY:t.clientY,deltaY:t.deltaY};switch(e){case 1:i.deltaY*=16;break;case 2:i.deltaY*=100}return t.ctrlKey&&!this._controlActive&&(i.deltaY*=10),i}}function M(t){!1!==this.enabled&&(0===this._pointers.length&&(this.domElement.setPointerCapture(t.pointerId),this.domElement.addEventListener("pointermove",this._onPointerMove),this.domElement.addEventListener("pointerup",this._onPointerUp)),this._isTrackingPointer(t)||(this._addPointer(t),"touch"===t.pointerType?this._onTouchStart(t):this._onMouseDown(t)))}function x(t){!1!==this.enabled&&("touch"===t.pointerType?this._onTouchMove(t):this._onMouseMove(t))}function T(t){switch(this._removePointer(t),this._pointers.length){case 0:this.domElement.releasePointerCapture(t.pointerId),this.domElement.removeEventListener("pointermove",this._onPointerMove),this.domElement.removeEventListener("pointerup",this._onPointerUp),this.dispatchEvent(c),this.state=y;break;case 1:const e=this._pointers[0],i=this._pointerPositions[e];this._onTouchStart({pointerId:e,pageX:i.x,pageY:i.y})}}function R(e){let i;switch(e.button){case 0:i=this.mouseButtons.LEFT;break;case 1:i=this.mouseButtons.MIDDLE;break;case 2:i=this.mouseButtons.RIGHT;break;default:i=-1}switch(i){case t.MOUSE.DOLLY:if(!1===this.enableZoom)return;this._handleMouseDownDolly(e),this.state=g;break;case t.MOUSE.ROTATE:if(e.ctrlKey||e.metaKey||e.shiftKey){if(!1===this.enablePan)return;this._handleMouseDownPan(e),this.state=b}else{if(!1===this.enableRotate)return;this._handleMouseDownRotate(e),this.state=f}break;case t.MOUSE.PAN:if(e.ctrlKey||e.metaKey||e.shiftKey){if(!1===this.enableRotate)return;this._handleMouseDownRotate(e),this.state=f}else{if(!1===this.enablePan)return;this._handleMouseDownPan(e),this.state=b}break;default:this.state=y}this.state!==y&&this.dispatchEvent(l)}function j(t){switch(this.state){case f:if(!1===this.enableRotate)return;this._handleMouseMoveRotate(t);break;case g:if(!1===this.enableZoom)return;this._handleMouseMoveDolly(t);break;case b:if(!1===this.enablePan)return;this._handleMouseMovePan(t)}}function A(t){!1!==this.enabled&&!1!==this.enableZoom&&this.state===y&&(t.preventDefault(),this.dispatchEvent(l),this._handleMouseWheel(this._customWheelEvent(t)),this.dispatchEvent(c))}function L(t){!1!==this.enabled&&this._handleKeyDown(t)}function C(e){switch(this._trackPointer(e),this._pointers.length){case 1:switch(this.touches.ONE){case t.TOUCH.ROTATE:if(!1===this.enableRotate)return;this._handleTouchStartRotate(e),this.state=E;break;case t.TOUCH.PAN:if(!1===this.enablePan)return;this._handleTouchStartPan(e),this.state=v;break;default:this.state=y}break;case 2:switch(this.touches.TWO){case t.TOUCH.DOLLY_PAN:if(!1===this.enableZoom&&!1===this.enablePan)return;this._handleTouchStartDollyPan(e),this.state=w;break;case t.TOUCH.DOLLY_ROTATE:if(!1===this.enableZoom&&!1===this.enableRotate)return;this._handleTouchStartDollyRotate(e),this.state=S;break;default:this.state=y}break;default:this.state=y}this.state!==y&&this.dispatchEvent(l)}function O(t){switch(this._trackPointer(t),this.state){case E:if(!1===this.enableRotate)return;this._handleTouchMoveRotate(t),this.update();break;case v:if(!1===this.enablePan)return;this._handleTouchMovePan(t),this.update();break;case w:if(!1===this.enableZoom&&!1===this.enablePan)return;this._handleTouchMoveDollyPan(t),this.update();break;case S:if(!1===this.enableZoom&&!1===this.enableRotate)return;this._handleTouchMoveDollyRotate(t),this.update();break;default:this.state=y}}function k(t){!1!==this.enabled&&t.preventDefault()}function U(t){if("Control"===t.key){this._controlActive=!0;this.domElement.getRootNode().addEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0})}}function H(t){if("Control"===t.key){this._controlActive=!1;this.domElement.getRootNode().removeEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0})}}class F extends D{constructor(e,i){super(e,i),this.screenSpacePanning=!1,this.mouseButtons={LEFT:t.MOUSE.PAN,MIDDLE:t.MOUSE.DOLLY,RIGHT:t.MOUSE.ROTATE},this.touches={ONE:t.TOUCH.PAN,TWO:t.TOUCH.DOLLY_ROTATE}}}class Y extends t.DataTextureLoader{constructor(e){super(e),this.type=t.HalfFloatType}parse(e){const i=function(t,e){switch(t){case 1:throw new Error("THREE.RGBELoader: Read Error: "+(e||""));case 2:throw new Error("THREE.RGBELoader: Write Error: "+(e||""));case 3:throw new Error("THREE.RGBELoader: Bad File Format: "+(e||""));default:throw new Error("THREE.RGBELoader: Memory Error: "+(e||""))}},s=function(t,e,i){e=e||1024;let s=t.pos,o=-1,n=0,a="",r=String.fromCharCode.apply(null,new Uint16Array(t.subarray(s,s+128)));for(;0>(o=r.indexOf("\n"))&&n<e&&s<t.byteLength;)a+=r,n+=r.length,s+=128,r+=String.fromCharCode.apply(null,new Uint16Array(t.subarray(s,s+128)));return-1<o&&(t.pos+=n+o+1,a+r.slice(0,o))},o=function(t,e,i,s){const o=t[e+3],n=Math.pow(2,o-128)/255;i[s+0]=t[e+0]*n,i[s+1]=t[e+1]*n,i[s+2]=t[e+2]*n,i[s+3]=1},n=function(e,i,s,o){const n=e[i+3],a=Math.pow(2,n-128)/255;s[o+0]=t.DataUtils.toHalfFloat(Math.min(e[i+0]*a,65504)),s[o+1]=t.DataUtils.toHalfFloat(Math.min(e[i+1]*a,65504)),s[o+2]=t.DataUtils.toHalfFloat(Math.min(e[i+2]*a,65504)),s[o+3]=t.DataUtils.toHalfFloat(1)},a=new Uint8Array(e);a.pos=0;const r=function(t){const e=/^\s*GAMMA\s*=\s*(\d+(\.\d+)?)\s*$/,o=/^\s*EXPOSURE\s*=\s*(\d+(\.\d+)?)\s*$/,n=/^\s*FORMAT=(\S+)\s*$/,a=/^\s*\-Y\s+(\d+)\s+\+X\s+(\d+)\s*$/,r={valid:0,string:"",comments:"",programtype:"RGBE",format:"",gamma:1,exposure:1,width:0,height:0};let h,l;for((t.pos>=t.byteLength||!(h=s(t)))&&i(1,"no header found"),(l=h.match(/^#\?(\S+)/))||i(3,"bad initial token"),r.valid|=1,r.programtype=l[1],r.string+=h+"\n";h=s(t),!1!==h;)if(r.string+=h+"\n","#"!==h.charAt(0)){if((l=h.match(e))&&(r.gamma=parseFloat(l[1])),(l=h.match(o))&&(r.exposure=parseFloat(l[1])),(l=h.match(n))&&(r.valid|=2,r.format=l[1]),(l=h.match(a))&&(r.valid|=4,r.height=parseInt(l[1],10),r.width=parseInt(l[2],10)),2&r.valid&&4&r.valid)break}else r.comments+=h+"\n";return 2&r.valid||i(3,"missing format specifier"),4&r.valid||i(3,"missing image size specifier"),r}(a),h=r.width,l=r.height,c=function(t,e,s){const o=e;if(o<8||o>32767||2!==t[0]||2!==t[1]||128&t[2])return new Uint8Array(t);o!==(t[2]<<8|t[3])&&i(3,"wrong scanline width");const n=new Uint8Array(4*e*s);n.length||i(4,"unable to allocate buffer space");let a=0,r=0;const h=4*o,l=new Uint8Array(4),c=new Uint8Array(h);let p=s;for(;p>0&&r<t.byteLength;){r+4>t.byteLength&&i(1),l[0]=t[r++],l[1]=t[r++],l[2]=t[r++],l[3]=t[r++],2==l[0]&&2==l[1]&&(l[2]<<8|l[3])==o||i(3,"bad rgbe scanline format");let e,s=0;for(;s<h&&r<t.byteLength;){e=t[r++];const o=e>128;if(o&&(e-=128),(0===e||s+e>h)&&i(3,"bad scanline data"),o){const i=t[r++];for(let t=0;t<e;t++)c[s++]=i}else c.set(t.subarray(r,r+e),s),s+=e,r+=e}const d=o;for(let t=0;t<d;t++){let e=0;n[a]=c[t+e],e+=o,n[a+1]=c[t+e],e+=o,n[a+2]=c[t+e],e+=o,n[a+3]=c[t+e],a+=4}p--}return n}(a.subarray(a.pos),h,l);let p,d,m;switch(this.type){case t.FloatType:m=c.length/4;const e=new Float32Array(4*m);for(let t=0;t<m;t++)o(c,4*t,e,4*t);p=e,d=t.FloatType;break;case t.HalfFloatType:m=c.length/4;const i=new Uint16Array(4*m);for(let t=0;t<m;t++)n(c,4*t,i,4*t);p=i,d=t.HalfFloatType;break;default:throw new Error("THREE.RGBELoader: Unsupported type: "+this.type)}return{width:h,height:l,data:p,header:r.string,gamma:r.gamma,exposure:r.exposure,type:d}}setDataType(t){return this.type=t,this}load(e,i,s,o){return super.load(e,(function(e,s){switch(e.type){case t.FloatType:case t.HalfFloatType:e.colorSpace=t.LinearSRGBColorSpace,e.minFilter=t.LinearFilter,e.magFilter=t.LinearFilter,e.generateMipmaps=!1,e.flipY=!0}i&&i(e,s)}),s,o)}}const I=t=>{t.geometry&&t.geometry.dispose(),t.material&&(Array.isArray(t.material)?t.material.forEach((t=>{z(t)})):z(t.material)),t.children&&t.children.forEach((t=>I(t)))};function z(t){for(const e in t)t[e]&&t[e].isTexture&&t[e].dispose();t.dispose()}const V={},Z=new Y;exports.CSS3DRenderer=class{constructor(t={}){const e=this;let n,h,l,c;const p={camera:{style:""},objects:new WeakMap},d=void 0!==t.element?t.element:document.createElement("div");d.style.overflow="hidden",this.domElement=d;const m=document.createElement("div");m.style.transformOrigin="0 0",m.style.pointerEvents="none",d.appendChild(m);const u=document.createElement("div");function _(t){return Math.abs(t)<1e-10?0:t}function y(t){const e=t.elements;return"matrix3d("+_(e[0])+","+_(-e[1])+","+_(e[2])+","+_(e[3])+","+_(e[4])+","+_(-e[5])+","+_(e[6])+","+_(e[7])+","+_(e[8])+","+_(-e[9])+","+_(e[10])+","+_(e[11])+","+_(e[12])+","+_(-e[13])+","+_(e[14])+","+_(e[15])+")"}function f(t){const e=t.elements;return"translate(-50%,-50%)"+("matrix3d("+_(e[0])+","+_(e[1])+","+_(e[2])+","+_(e[3])+","+_(-e[4])+","+_(-e[5])+","+_(-e[6])+","+_(-e[7])+","+_(e[8])+","+_(e[9])+","+_(e[10])+","+_(e[11])+","+_(e[12])+","+_(e[13])+","+_(e[14])+","+_(e[15])+")")}function g(t){t.isCSS3DObject&&(t.element.style.display="none");for(let e=0,i=t.children.length;e<i;e++)g(t.children[e])}function b(t,n,h,l){if(!1!==t.visible){if(t.isCSS3DObject){const l=!0===t.layers.test(h.layers),c=t.element;if(c.style.display=!0===l?"":"none",!0===l){let l;t.onBeforeRender(e,n,h),t.isCSS3DSprite?(a.copy(h.matrixWorldInverse),a.transpose(),0!==t.rotation2D&&a.multiply(r.makeRotationZ(t.rotation2D)),t.matrixWorld.decompose(i,s,o),a.setPosition(i),a.scale(o),a.elements[3]=0,a.elements[7]=0,a.elements[11]=0,a.elements[15]=1,l=f(a)):l=f(t.matrixWorld);const d=p.objects.get(t);if(void 0===d||d.style!==l){c.style.transform=l;const e={style:l};p.objects.set(t,e)}c.parentNode!==u&&u.appendChild(c),t.onAfterRender(e,n,h)}}for(let e=0,i=t.children.length;e<i;e++)b(t.children[e],n,h)}else g(t)}u.style.transformStyle="preserve-3d",m.appendChild(u),this.getSize=function(){return{width:n,height:h}},this.render=function(t,e){const i=e.projectionMatrix.elements[5]*c;let s,o;e.view&&e.view.enabled?(m.style.transform=`translate( ${-e.view.offsetX*(n/e.view.width)}px, ${-e.view.offsetY*(h/e.view.height)}px )`,m.style.transform+=`scale( ${e.view.fullWidth/e.view.width}, ${e.view.fullHeight/e.view.height} )`):m.style.transform="",!0===t.matrixWorldAutoUpdate&&t.updateMatrixWorld(),null===e.parent&&!0===e.matrixWorldAutoUpdate&&e.updateMatrixWorld(),e.isOrthographicCamera&&(s=-(e.right+e.left)/2,o=(e.top+e.bottom)/2);const a=e.view&&e.view.enabled?e.view.height/e.view.fullHeight:1,r=e.isOrthographicCamera?`scale( ${a} )scale(`+i+")translate("+_(s)+"px,"+_(o)+"px)"+y(e.matrixWorldInverse):`scale( ${a} )translateZ(`+i+"px)"+y(e.matrixWorldInverse),d=(e.isPerspectiveCamera?"perspective("+i+"px) ":"")+r+"translate("+l+"px,"+c+"px)";p.camera.style!==d&&(u.style.transform=d,p.camera.style=d),b(t,t,e)},this.setSize=function(t,e){n=t,h=e,l=n/2,c=h/2,d.style.width=t+"px",d.style.height=e+"px",m.style.width=t+"px",m.style.height=e+"px",u.style.width=t+"px",u.style.height=e+"px"}}},exports.CSS3DSprite=class extends n{constructor(t){super(t),this.isCSS3DSprite=!0,this.rotation2D=0}copy(t,e){return super.copy(t,e),this.rotation2D=t.rotation2D,this}},exports.ImageLoader=async function(t){return new Promise(((e,i)=>{Z.load(t,e,void 0,i)}))},exports.Stats=e,exports.createArrowHelper=function(e=new t.Vector3(1,1,1),i=new t.Vector3(10,10,10),s=5,o=16776960){return e.normalize(),new t.ArrowHelper(e,i,s,o)},exports.createAxesHelper=function(e=10){return new t.AxesHelper(e)},exports.createBox3Helper=function(e){return new t.BoxHelper(e,16776960)},exports.createCameraHelper=function(e){return new t.CameraHelper(e)},exports.createGridHelper=function(e=150,...i){return new t.GridHelper(e,e/10,...i)},exports.createMapControls=function(t,e){return new F(t,e)},exports.createOrbitControl=function(t,e){return new D(t,e)},exports.createRaycaster=function(){return{raycaster:new t.Raycaster,pointer:new t.Vector2(0,0)}},exports.createStats=function(){const t=new e;return t.dom.style.cssText="position:absolute;top:0;left:0;cursor:pointer;opacity:0.9;z-index:10000",t},exports.disposeThreeObject=I,exports.initEnvImage=async function(e,i){if(i){if(!V[i])return new Promise(((t,e)=>{Z.load(i,t,void 0,e)})).then((s=>{s.mapping=t.EquirectangularReflectionMapping,e.environment=s,V[i]=s})).catch((t=>{}));{const t=V[i];e.environment=t}}};