@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.
- package/dist/ImageLoader-CB_URfeZ.js +860 -0
- package/dist/ImageLoader-DwvBWW6h.cjs +5 -0
- package/dist/common-BHi3qsZW.cjs +15 -0
- package/dist/{common-DESmndxO.js → common-fbJUHqlj.js} +1 -1
- package/dist/hooks.cjs +1 -1
- package/dist/hooks.js +7 -9
- package/dist/threejs.cjs +1 -1
- package/dist/threejs.js +17 -15
- package/dist/useGLTFLoader-DHxBLucO.js +5629 -0
- package/dist/useGLTFLoader-DM3-7jdq.cjs +4 -0
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +15 -12
- package/esdoc/ast/source/.external-ecmascript.js.json +2802 -0
- package/esdoc/ast/source/hooks/index.js.json +739 -0
- package/esdoc/ast/source/hooks/useGLTFLoader.js.json +9111 -0
- package/esdoc/ast/source/hooks/useObb.js.json +16463 -0
- package/esdoc/ast/source/hooks/useRaycaster.js.json +15556 -0
- package/esdoc/ast/source/hooks/useThreeJs.js.json +52887 -0
- package/esdoc/ast/source/index.js.json +570 -0
- package/esdoc/ast/source/instance/IDBCache.js.json +40978 -0
- package/esdoc/ast/source/instance/index.js.json +232 -0
- package/esdoc/ast/source/utils/ImageLoader.js.json +7037 -0
- package/esdoc/ast/source/utils/common.js.json +5134 -0
- package/esdoc/ast/source/utils/css3dHelper.js.json +9101 -0
- package/esdoc/ast/source/utils/disposeObject.js.json +5978 -0
- package/esdoc/ast/source/utils/helper.js.json +10522 -0
- package/esdoc/ast/source/utils/index.js.json +908 -0
- package/esdoc/badge.svg +17 -0
- package/esdoc/class/src/instance/IDBCache.js~IDBCache.html +1299 -0
- package/esdoc/coverage.json +86 -0
- package/esdoc/css/github.css +83 -0
- package/esdoc/css/identifiers.css +37 -0
- package/esdoc/css/manual.css +134 -0
- package/esdoc/css/prettify-tomorrow.css +132 -0
- package/esdoc/css/search.css +84 -0
- package/esdoc/css/source.css +55 -0
- package/esdoc/css/style.css +608 -0
- package/esdoc/css/test.css +58 -0
- package/esdoc/file/src/hooks/index.js.html +79 -0
- package/esdoc/file/src/hooks/useGLTFLoader.js.html +146 -0
- package/esdoc/file/src/hooks/useObb.js.html +149 -0
- package/esdoc/file/src/hooks/useRaycaster.js.html +153 -0
- package/esdoc/file/src/hooks/useThreeJs.js.html +362 -0
- package/esdoc/file/src/index.js.html +78 -0
- package/esdoc/file/src/instance/IDBCache.js.html +312 -0
- package/esdoc/file/src/instance/index.js.html +76 -0
- package/esdoc/file/src/utils/ImageLoader.js.html +118 -0
- package/esdoc/file/src/utils/common.js.html +102 -0
- package/esdoc/file/src/utils/css3dHelper.js.html +131 -0
- package/esdoc/file/src/utils/disposeObject.js.html +114 -0
- package/esdoc/file/src/utils/helper.js.html +138 -0
- package/esdoc/file/src/utils/index.js.html +80 -0
- package/esdoc/function/index.html +2019 -0
- package/esdoc/identifiers.html +738 -0
- package/esdoc/image/badge.svg +17 -0
- package/esdoc/image/esdoc-logo-mini-black.png +0 -0
- package/esdoc/image/esdoc-logo-mini.png +0 -0
- package/esdoc/image/manual-badge.svg +17 -0
- package/esdoc/image/search.png +0 -0
- package/esdoc/index.html +153 -0
- package/esdoc/index.json +2051 -0
- package/esdoc/inject/css/0-cus-style.css +1 -0
- package/esdoc/lint.json +1 -0
- package/esdoc/script/inherited-summary.js +28 -0
- package/esdoc/script/inner-link.js +32 -0
- package/esdoc/script/manual.js +12 -0
- package/esdoc/script/patch-for-local.js +8 -0
- package/esdoc/script/prettify/Apache-License-2.0.txt +202 -0
- package/esdoc/script/prettify/prettify.js +46 -0
- package/esdoc/script/pretty-print.js +25 -0
- package/esdoc/script/search.js +117 -0
- package/esdoc/script/search_index.js +572 -0
- package/esdoc/script/test-summary.js +54 -0
- package/esdoc/source.html +213 -0
- package/esdoc/variable/index.html +225 -0
- package/package.json +13 -3
- package/readme.md +93 -0
- package/dist/common-nMt4tIRA.cjs +0 -15
- package/dist/disposeObject-BuI3II7v.cjs +0 -1
- package/dist/disposeObject-CmFSSgi7.js +0 -616
- package/dist/useGLTFLoader-BAoIZjEX.js +0 -2645
- package/dist/useGLTFLoader-CGOxhEOO.cjs +0 -6
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<base data-ice="baseUrl" href>
|
|
6
|
+
<title data-ice="title">Source | @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>Source <img data-ice="coverageBadge" src="./badge.svg"><span data-ice="totalCoverageCount" class="total-coverage-count">18/39</span></h1>
|
|
59
|
+
|
|
60
|
+
<table class="files-summary" data-ice="files" data-use-coverage="true">
|
|
61
|
+
<thead>
|
|
62
|
+
<tr>
|
|
63
|
+
<td>File</td>
|
|
64
|
+
<td>Identifier</td>
|
|
65
|
+
<td class="coverage">Document</td>
|
|
66
|
+
<td style="display: none;">Size</td>
|
|
67
|
+
<td style="display: none;">Lines</td>
|
|
68
|
+
<td style="display: none;">Updated</td>
|
|
69
|
+
</tr>
|
|
70
|
+
</thead>
|
|
71
|
+
<tbody>
|
|
72
|
+
|
|
73
|
+
<tr data-ice="file">
|
|
74
|
+
<td data-ice="filePath"><span><a href="file/src/hooks/index.js.html">src/hooks/index.js</a></span></td>
|
|
75
|
+
<td data-ice="identifier" class="identifiers">-</td>
|
|
76
|
+
<td class="coverage"><span data-ice="coverage">-</span></td>
|
|
77
|
+
<td style="display: none;" data-ice="size">125 byte</td>
|
|
78
|
+
<td style="display: none;" data-ice="lines">4</td>
|
|
79
|
+
<td style="display: none;" data-ice="updated">2025-04-05 08:53:34 (UTC)</td>
|
|
80
|
+
</tr>
|
|
81
|
+
<tr data-ice="file">
|
|
82
|
+
<td data-ice="filePath"><span><a href="file/src/hooks/useGLTFLoader.js.html">src/hooks/useGLTFLoader.js</a></span></td>
|
|
83
|
+
<td data-ice="identifier" class="identifiers"><span><a href="function/index.html#static-function-useGLTFLoader">useGLTFLoader</a></span></td>
|
|
84
|
+
<td class="coverage"><span data-ice="coverage">100 %</span><span data-ice="coverageCount" class="coverage-count">1/1</span></td>
|
|
85
|
+
<td style="display: none;" data-ice="size">2208 byte</td>
|
|
86
|
+
<td style="display: none;" data-ice="lines">71</td>
|
|
87
|
+
<td style="display: none;" data-ice="updated">2025-04-06 01:23:18 (UTC)</td>
|
|
88
|
+
</tr>
|
|
89
|
+
<tr data-ice="file">
|
|
90
|
+
<td data-ice="filePath"><span><a href="file/src/hooks/useObb.js.html#errorLines=5,6,8">src/hooks/useObb.js</a></span></td>
|
|
91
|
+
<td data-ice="identifier" class="identifiers"><span><a href="variable/index.html#static-variable-intersectColor">intersectColor</a></span>
|
|
92
|
+
<span><a href="variable/index.html#static-variable-obbObjects">obbObjects</a></span>
|
|
93
|
+
<span><a href="function/index.html#static-function-useObb">useObb</a></span></td>
|
|
94
|
+
<td class="coverage"><span data-ice="coverage">0 %</span><span data-ice="coverageCount" class="coverage-count">0/3</span></td>
|
|
95
|
+
<td style="display: none;" data-ice="size">2042 byte</td>
|
|
96
|
+
<td style="display: none;" data-ice="lines">74</td>
|
|
97
|
+
<td style="display: none;" data-ice="updated">2025-04-03 02:08:49 (UTC)</td>
|
|
98
|
+
</tr>
|
|
99
|
+
<tr data-ice="file">
|
|
100
|
+
<td data-ice="filePath"><span><a href="file/src/hooks/useRaycaster.js.html#errorLines=4">src/hooks/useRaycaster.js</a></span></td>
|
|
101
|
+
<td data-ice="identifier" class="identifiers"><span><a href="function/index.html#static-function-useRaycaster">useRaycaster</a></span></td>
|
|
102
|
+
<td class="coverage"><span data-ice="coverage">0 %</span><span data-ice="coverageCount" class="coverage-count">0/1</span></td>
|
|
103
|
+
<td style="display: none;" data-ice="size">2279 byte</td>
|
|
104
|
+
<td style="display: none;" data-ice="lines">78</td>
|
|
105
|
+
<td style="display: none;" data-ice="updated">2025-04-03 06:11:24 (UTC)</td>
|
|
106
|
+
</tr>
|
|
107
|
+
<tr data-ice="file">
|
|
108
|
+
<td data-ice="filePath"><span><a href="file/src/hooks/useThreeJs.js.html#errorLines=20">src/hooks/useThreeJs.js</a></span></td>
|
|
109
|
+
<td data-ice="identifier" class="identifiers"><span><a href="function/index.html#static-function-useThreeJs">useThreeJs</a></span></td>
|
|
110
|
+
<td class="coverage"><span data-ice="coverage">50 %</span><span data-ice="coverageCount" class="coverage-count">1/2</span></td>
|
|
111
|
+
<td style="display: none;" data-ice="size">7384 byte</td>
|
|
112
|
+
<td style="display: none;" data-ice="lines">287</td>
|
|
113
|
+
<td style="display: none;" data-ice="updated">2025-04-05 09:32:24 (UTC)</td>
|
|
114
|
+
</tr>
|
|
115
|
+
<tr data-ice="file">
|
|
116
|
+
<td data-ice="filePath"><span><a href="file/src/index.js.html">src/index.js</a></span></td>
|
|
117
|
+
<td data-ice="identifier" class="identifiers">-</td>
|
|
118
|
+
<td class="coverage"><span data-ice="coverage">-</span></td>
|
|
119
|
+
<td style="display: none;" data-ice="size">81 byte</td>
|
|
120
|
+
<td style="display: none;" data-ice="lines">3</td>
|
|
121
|
+
<td style="display: none;" data-ice="updated">2025-04-05 05:20:45 (UTC)</td>
|
|
122
|
+
</tr>
|
|
123
|
+
<tr data-ice="file">
|
|
124
|
+
<td data-ice="filePath"><span><a href="file/src/instance/IDBCache.js.html#errorLines=15,16">src/instance/IDBCache.js</a></span></td>
|
|
125
|
+
<td data-ice="identifier" class="identifiers"><span><a href="class/src/instance/IDBCache.js~IDBCache.html">IDBCache</a></span></td>
|
|
126
|
+
<td class="coverage"><span data-ice="coverage">84 %</span><span data-ice="coverageCount" class="coverage-count">11/13</span></td>
|
|
127
|
+
<td style="display: none;" data-ice="size">6523 byte</td>
|
|
128
|
+
<td style="display: none;" data-ice="lines">237</td>
|
|
129
|
+
<td style="display: none;" data-ice="updated">2025-04-05 08:22:57 (UTC)</td>
|
|
130
|
+
</tr>
|
|
131
|
+
<tr data-ice="file">
|
|
132
|
+
<td data-ice="filePath"><span><a href="file/src/instance/index.js.html">src/instance/index.js</a></span></td>
|
|
133
|
+
<td data-ice="identifier" class="identifiers">-</td>
|
|
134
|
+
<td class="coverage"><span data-ice="coverage">-</span></td>
|
|
135
|
+
<td style="display: none;" data-ice="size">29 byte</td>
|
|
136
|
+
<td style="display: none;" data-ice="lines">1</td>
|
|
137
|
+
<td style="display: none;" data-ice="updated">2025-04-05 05:20:38 (UTC)</td>
|
|
138
|
+
</tr>
|
|
139
|
+
<tr data-ice="file">
|
|
140
|
+
<td data-ice="filePath"><span><a href="file/src/utils/ImageLoader.js.html#errorLines=4,6">src/utils/ImageLoader.js</a></span></td>
|
|
141
|
+
<td data-ice="identifier" class="identifiers"><span><a href="function/index.html#static-function-ImageLoader">ImageLoader</a></span>
|
|
142
|
+
<span><a href="function/index.html#static-function-initEnvImage">initEnvImage</a></span></td>
|
|
143
|
+
<td class="coverage"><span data-ice="coverage">50 %</span><span data-ice="coverageCount" class="coverage-count">2/4</span></td>
|
|
144
|
+
<td style="display: none;" data-ice="size">1117 byte</td>
|
|
145
|
+
<td style="display: none;" data-ice="lines">43</td>
|
|
146
|
+
<td style="display: none;" data-ice="updated">2025-04-05 08:11:41 (UTC)</td>
|
|
147
|
+
</tr>
|
|
148
|
+
<tr data-ice="file">
|
|
149
|
+
<td data-ice="filePath"><span><a href="file/src/utils/common.js.html#errorLines=1">src/utils/common.js</a></span></td>
|
|
150
|
+
<td data-ice="identifier" class="identifiers"><span><a href="function/index.html#static-function-getCommonParent">getCommonParent</a></span></td>
|
|
151
|
+
<td class="coverage"><span data-ice="coverage">0 %</span><span data-ice="coverageCount" class="coverage-count">0/1</span></td>
|
|
152
|
+
<td style="display: none;" data-ice="size">639 byte</td>
|
|
153
|
+
<td style="display: none;" data-ice="lines">27</td>
|
|
154
|
+
<td style="display: none;" data-ice="updated">2025-04-03 06:08:12 (UTC)</td>
|
|
155
|
+
</tr>
|
|
156
|
+
<tr data-ice="file">
|
|
157
|
+
<td data-ice="filePath"><span><a href="file/src/utils/css3dHelper.js.html#errorLines=25,34">src/utils/css3dHelper.js</a></span></td>
|
|
158
|
+
<td data-ice="identifier" class="identifiers"><span><a href="function/index.html#static-function-createInfoPlane">createInfoPlane</a></span>
|
|
159
|
+
<span><a href="function/index.html#static-function-createTagPlane">createTagPlane</a></span></td>
|
|
160
|
+
<td class="coverage"><span data-ice="coverage">33 %</span><span data-ice="coverageCount" class="coverage-count">1/3</span></td>
|
|
161
|
+
<td style="display: none;" data-ice="size">1573 byte</td>
|
|
162
|
+
<td style="display: none;" data-ice="lines">56</td>
|
|
163
|
+
<td style="display: none;" data-ice="updated">2025-04-06 02:38:44 (UTC)</td>
|
|
164
|
+
</tr>
|
|
165
|
+
<tr data-ice="file">
|
|
166
|
+
<td data-ice="filePath"><span><a href="file/src/utils/disposeObject.js.html">src/utils/disposeObject.js</a></span></td>
|
|
167
|
+
<td data-ice="identifier" class="identifiers"><span><a href="function/index.html#static-function-disposeThreeObject">disposeThreeObject</a></span></td>
|
|
168
|
+
<td class="coverage"><span data-ice="coverage">100 %</span><span data-ice="coverageCount" class="coverage-count">2/2</span></td>
|
|
169
|
+
<td style="display: none;" data-ice="size">955 byte</td>
|
|
170
|
+
<td style="display: none;" data-ice="lines">39</td>
|
|
171
|
+
<td style="display: none;" data-ice="updated">2025-04-03 06:06:09 (UTC)</td>
|
|
172
|
+
</tr>
|
|
173
|
+
<tr data-ice="file">
|
|
174
|
+
<td data-ice="filePath"><span><a href="file/src/utils/helper.js.html#errorLines=15,19,23,27,31,35,44,48,58">src/utils/helper.js</a></span></td>
|
|
175
|
+
<td data-ice="identifier" class="identifiers"><span><a href="function/index.html#static-function-createArrowHelper">createArrowHelper</a></span>
|
|
176
|
+
<span><a href="function/index.html#static-function-createAxesHelper">createAxesHelper</a></span>
|
|
177
|
+
<span><a href="function/index.html#static-function-createBox3Helper">createBox3Helper</a></span>
|
|
178
|
+
<span><a href="function/index.html#static-function-createCameraHelper">createCameraHelper</a></span>
|
|
179
|
+
<span><a href="function/index.html#static-function-createGridHelper">createGridHelper</a></span>
|
|
180
|
+
<span><a href="function/index.html#static-function-createMapControls">createMapControls</a></span>
|
|
181
|
+
<span><a href="function/index.html#static-function-createOrbitControl">createOrbitControl</a></span>
|
|
182
|
+
<span><a href="function/index.html#static-function-createRaycaster">createRaycaster</a></span>
|
|
183
|
+
<span><a href="function/index.html#static-function-createStats">createStats</a></span></td>
|
|
184
|
+
<td class="coverage"><span data-ice="coverage">0 %</span><span data-ice="coverageCount" class="coverage-count">0/9</span></td>
|
|
185
|
+
<td style="display: none;" data-ice="size">1482 byte</td>
|
|
186
|
+
<td style="display: none;" data-ice="lines">63</td>
|
|
187
|
+
<td style="display: none;" data-ice="updated">2025-04-05 08:01:19 (UTC)</td>
|
|
188
|
+
</tr>
|
|
189
|
+
<tr data-ice="file">
|
|
190
|
+
<td data-ice="filePath"><span><a href="file/src/utils/index.js.html">src/utils/index.js</a></span></td>
|
|
191
|
+
<td data-ice="identifier" class="identifiers">-</td>
|
|
192
|
+
<td class="coverage"><span data-ice="coverage">-</span></td>
|
|
193
|
+
<td style="display: none;" data-ice="size">167 byte</td>
|
|
194
|
+
<td style="display: none;" data-ice="lines">5</td>
|
|
195
|
+
<td style="display: none;" data-ice="updated">2025-04-01 00:33:38 (UTC)</td>
|
|
196
|
+
</tr>
|
|
197
|
+
</tbody>
|
|
198
|
+
</table>
|
|
199
|
+
</div>
|
|
200
|
+
|
|
201
|
+
<footer class="footer">
|
|
202
|
+
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>
|
|
203
|
+
</footer>
|
|
204
|
+
|
|
205
|
+
<script src="script/search_index.js"></script>
|
|
206
|
+
<script src="script/search.js"></script>
|
|
207
|
+
<script src="script/pretty-print.js"></script>
|
|
208
|
+
<script src="script/inherited-summary.js"></script>
|
|
209
|
+
<script src="script/test-summary.js"></script>
|
|
210
|
+
<script src="script/inner-link.js"></script>
|
|
211
|
+
<script src="script/patch-for-local.js"></script>
|
|
212
|
+
</body>
|
|
213
|
+
</html>
|
|
@@ -0,0 +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 '<span><a href="file/src/hooks/useObb.js.html#lineNumber6">@ridp/threejs/src/hooks/useObb.js</a></span>'</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 '<span><a href="file/src/hooks/useObb.js.html#lineNumber5">@ridp/threejs/src/hooks/useObb.js</a></span>'</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": "
|
|
4
|
+
"version": "1.1.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/threejs.js",
|
|
7
7
|
"exports": {
|
|
@@ -19,18 +19,28 @@
|
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
+
"dexie": "^4.0.11",
|
|
23
|
+
"esdoc": "^1.1.0",
|
|
24
|
+
"esdoc-ecmascript-proposal-plugin": "^1.0.0",
|
|
25
|
+
"esdoc-importpath-plugin": "^1.0.2",
|
|
26
|
+
"esdoc-inject-style-plugin": "^1.0.0",
|
|
27
|
+
"esdoc-jsx-plugin": "^1.0.0",
|
|
28
|
+
"esdoc-standard-plugin": "^1.0.0",
|
|
22
29
|
"three": "^0.175.0",
|
|
23
30
|
"vite": "^6.3.1",
|
|
24
31
|
"vue": "^3.5.13"
|
|
25
32
|
},
|
|
26
33
|
"files": [
|
|
27
|
-
"dist/*"
|
|
34
|
+
"dist/*",
|
|
35
|
+
"static/",
|
|
36
|
+
"esdoc/*"
|
|
28
37
|
],
|
|
29
38
|
"publishConfig": {
|
|
30
39
|
"access": "public",
|
|
31
40
|
"registry": "https://registry.npmjs.org/"
|
|
32
41
|
},
|
|
33
42
|
"scripts": {
|
|
34
|
-
"build": "vite build"
|
|
43
|
+
"build": "vite build",
|
|
44
|
+
"build:doc": "npx esdoc"
|
|
35
45
|
}
|
|
36
46
|
}
|
package/readme.md
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# @ridp/threejs
|
|
2
|
+
|
|
3
|
+
## Hooks
|
|
4
|
+
|
|
5
|
+
- useThreeJs
|
|
6
|
+
声明:
|
|
7
|
+
|
|
8
|
+
```javascript
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @param {String} selector ID '#xxxx'
|
|
12
|
+
* @param {Object} option - 初始化参数
|
|
13
|
+
* @property {Boolean} option.css3d - 模型
|
|
14
|
+
* @returns any
|
|
15
|
+
*/
|
|
16
|
+
function useThreeJs(selector, option)
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
使用:
|
|
20
|
+
```javascript
|
|
21
|
+
import { useThreeJs } from '@ridp/threejs'
|
|
22
|
+
|
|
23
|
+
const { scene, camera, renderer, control, domWidth, domHeight, isReady, addAnimate, frameArea } = useThreeJs("#InsId", )
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
----
|
|
27
|
+
返回变量:
|
|
28
|
+
* scene
|
|
29
|
+
```javascript
|
|
30
|
+
THREE.Scene
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
* camera:
|
|
34
|
+
```javascript
|
|
35
|
+
THREE.PerspectiveCamera
|
|
36
|
+
```
|
|
37
|
+
* renderer
|
|
38
|
+
```javascript
|
|
39
|
+
const renderer = new WebGLRenderer({
|
|
40
|
+
antialias: true,
|
|
41
|
+
alpha: true,
|
|
42
|
+
precision: "mediump",
|
|
43
|
+
logarithmicDepthBuffer: true,
|
|
44
|
+
})
|
|
45
|
+
```
|
|
46
|
+
* control
|
|
47
|
+
```javascript
|
|
48
|
+
THREE.OrbitControls
|
|
49
|
+
```
|
|
50
|
+
* domWidth
|
|
51
|
+
```javascript
|
|
52
|
+
ref(Number)
|
|
53
|
+
```
|
|
54
|
+
* domHeight
|
|
55
|
+
```javascript
|
|
56
|
+
ref(Number)
|
|
57
|
+
```
|
|
58
|
+
* isReady
|
|
59
|
+
```javascript
|
|
60
|
+
ref(Boolean)
|
|
61
|
+
```
|
|
62
|
+
------
|
|
63
|
+
返回方法:
|
|
64
|
+
* addAnimate
|
|
65
|
+
```javascript
|
|
66
|
+
/**
|
|
67
|
+
* 循环帧中添加执行函数
|
|
68
|
+
* @param {*} animate
|
|
69
|
+
*/
|
|
70
|
+
function addAnimate(animate): void
|
|
71
|
+
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
* frameArea
|
|
75
|
+
```javascript
|
|
76
|
+
/**物体视窗自动适应
|
|
77
|
+
*
|
|
78
|
+
* @param {Object3D} model
|
|
79
|
+
* @param {Number} scale
|
|
80
|
+
* @param {Camera} camera
|
|
81
|
+
* @param {OrbitControls} controls
|
|
82
|
+
* @param {Vector3} offset
|
|
83
|
+
*/
|
|
84
|
+
function frameArea(model, scale, camera, controls, offset): void
|
|
85
|
+
```
|
|
86
|
+
- useRaycaster
|
|
87
|
+
- useObb
|
|
88
|
+
- useGLTFLoader
|
|
89
|
+
|
|
90
|
+
# Instance 实例
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
# Utils 工具
|
package/dist/common-nMt4tIRA.cjs
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";const a=require("./disposeObject-BuI3II7v.cjs");function c(o,t=[.3,.3,.3]){const e=document.querySelector(`#${o}`);if(!e){console.log(" 获取 infoPlane 元素失败 (id) =====> :",o);return}const n=e.cloneNode(!0);n.style.display="block";const r=new a.CSS3DSprite(n);return r.visible=!1,r.scale.set(...t),r}function i(o,t){const e=u(o);e.style.display="block";const n=new a.CSS3DSprite(e);return n.visible=!1,n.scale.set(t,t,t),n}const u=o=>{const t=document.createElement("div");t.style.cssText=`
|
|
2
|
-
border-radius: 50px;
|
|
3
|
-
border: 2px solid rgba(255, 255, 255, 0.5);
|
|
4
|
-
background-color: rgba(15, 20, 22, 0.562);
|
|
5
|
-
justify-content: flex-start;
|
|
6
|
-
align-items: center;
|
|
7
|
-
padding: 20px 30px;
|
|
8
|
-
display: flex;
|
|
9
|
-
transform-origin: center 0;`;const e=document.createElement("span");return e.style.cssText=`
|
|
10
|
-
font-size: 40px;
|
|
11
|
-
line-height: 1;
|
|
12
|
-
white-space: nowrap;
|
|
13
|
-
color: #fff;
|
|
14
|
-
font-weight: 700;
|
|
15
|
-
`,e.innerText=o,t.appendChild(e),t},p=(o,t)=>{const e={};o.forEach(s=>{let l=s.parent;for(;l;)e[l.uuid]?e[l.uuid]++:e[l.uuid]=1,l=l.parent});let n=null,r=0;for(const s in e)e[s]>r&&(r=e[s],n=t.getObjectByProperty("uuid",s));return n};exports.createInfoPlane=c;exports.createTagPlane=i;exports.getCommonParent=p;
|