@ridp/threejs 1.1.7 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common-C1rNPPkt.cjs +15 -0
- package/dist/common-D1_IztgM.js +54 -0
- package/dist/hooks.cjs +1 -1
- package/dist/hooks.js +4 -4
- package/dist/modelSerialize-5oJb1ka7.js +965 -0
- package/dist/modelSerialize-Ds_2KBaA.cjs +5 -0
- package/dist/threejs.cjs +1 -1
- package/dist/threejs.js +184 -24
- package/dist/useGLTFLoader-Ca78rpg1.js +5507 -0
- package/dist/useGLTFLoader-SChWH4Nf.cjs +4 -0
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +18 -16
- package/esdoc/ast/source/.external-ecmascript.js.json +2801 -2801
- package/esdoc/ast/source/hooks/index.js.json +738 -738
- package/esdoc/ast/source/hooks/useGLTFLoader.js.json +9110 -9110
- package/esdoc/ast/source/hooks/useObb.js.json +16462 -16462
- package/esdoc/ast/source/hooks/useRaycaster.js.json +15555 -15555
- package/esdoc/ast/source/hooks/useThreeJs.js.json +52886 -52886
- package/esdoc/ast/source/index.js.json +569 -569
- package/esdoc/ast/source/instance/IDBCache.js.json +40977 -40977
- package/esdoc/ast/source/instance/index.js.json +231 -231
- package/esdoc/ast/source/utils/ImageLoader.js.json +7036 -7036
- package/esdoc/ast/source/utils/common.js.json +5133 -5133
- package/esdoc/ast/source/utils/css3dHelper.js.json +9100 -9100
- package/esdoc/ast/source/utils/disposeObject.js.json +5977 -5977
- package/esdoc/ast/source/utils/helper.js.json +10521 -10521
- package/esdoc/ast/source/utils/index.js.json +907 -907
- package/esdoc/badge.svg +17 -17
- package/esdoc/class/src/instance/IDBCache.js~IDBCache.html +1299 -1299
- package/esdoc/coverage.json +85 -85
- package/esdoc/css/github.css +83 -83
- package/esdoc/css/identifiers.css +37 -37
- package/esdoc/css/manual.css +134 -134
- package/esdoc/css/prettify-tomorrow.css +132 -132
- package/esdoc/css/search.css +84 -84
- package/esdoc/css/source.css +55 -55
- package/esdoc/css/style.css +608 -608
- package/esdoc/css/test.css +58 -58
- package/esdoc/file/src/hooks/index.js.html +75 -75
- package/esdoc/file/src/hooks/useGLTFLoader.js.html +75 -75
- package/esdoc/file/src/hooks/useObb.js.html +75 -75
- package/esdoc/file/src/hooks/useRaycaster.js.html +75 -75
- package/esdoc/file/src/hooks/useThreeJs.js.html +75 -75
- package/esdoc/file/src/index.js.html +75 -75
- package/esdoc/file/src/instance/IDBCache.js.html +75 -75
- package/esdoc/file/src/instance/index.js.html +75 -75
- package/esdoc/file/src/utils/ImageLoader.js.html +75 -75
- package/esdoc/file/src/utils/common.js.html +75 -75
- package/esdoc/file/src/utils/css3dHelper.js.html +75 -75
- package/esdoc/file/src/utils/disposeObject.js.html +75 -75
- package/esdoc/file/src/utils/helper.js.html +75 -75
- package/esdoc/file/src/utils/index.js.html +75 -75
- package/esdoc/function/index.html +2019 -2019
- package/esdoc/identifiers.html +738 -738
- package/esdoc/image/badge.svg +17 -17
- package/esdoc/image/manual-badge.svg +17 -17
- package/esdoc/index.html +153 -153
- package/esdoc/index.json +2050 -2050
- package/esdoc/script/inherited-summary.js +28 -28
- package/esdoc/script/inner-link.js +32 -32
- package/esdoc/script/manual.js +12 -12
- package/esdoc/script/patch-for-local.js +8 -8
- package/esdoc/script/prettify/Apache-License-2.0.txt +202 -202
- package/esdoc/script/prettify/prettify.js +46 -46
- package/esdoc/script/pretty-print.js +25 -25
- package/esdoc/script/search.js +117 -117
- package/esdoc/script/search_index.js +571 -571
- package/esdoc/script/test-summary.js +54 -54
- package/esdoc/source.html +213 -213
- package/esdoc/variable/index.html +225 -225
- package/package.json +3 -5
- package/dist/ImageLoader-B_rHfhtt.cjs +0 -1
- package/dist/ImageLoader-D9uANgrl.js +0 -1475
- package/dist/common-DTEEkXFr.cjs +0 -1
- package/dist/common-DhuVL1VV.js +0 -73
- package/dist/useGLTFLoader-BDER-upw.cjs +0 -1
- package/dist/useGLTFLoader-UD3WYZET.js +0 -7016
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";const c=require("./modelSerialize-Ds_2KBaA.cjs");function i(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 c.CSS3DSprite(n);return r.visible=!1,r.scale.set(...t),r}function s(o,t){const e=u(o);e.style.display="block";const n=new c.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(a=>{let l=a.parent;for(;l;)e[l.uuid]?e[l.uuid]++:e[l.uuid]=1,l=l.parent});let n=null,r=0;for(const a in e)e[a]>r&&(r=e[a],n=t.getObjectByProperty("uuid",a));return n};exports.createInfoPlane=i;exports.createTagPlane=s;exports.getCommonParent=p;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { m as a } from "./modelSerialize-5oJb1ka7.js";
|
|
2
|
+
function u(o, t = [0.3, 0.3, 0.3]) {
|
|
3
|
+
const e = document.querySelector(`#${o}`);
|
|
4
|
+
if (!e) {
|
|
5
|
+
console.log(" 获取 infoPlane 元素失败 (id) =====> :", o);
|
|
6
|
+
return;
|
|
7
|
+
}
|
|
8
|
+
const n = e.cloneNode(!0);
|
|
9
|
+
n.style.display = "block";
|
|
10
|
+
const r = new a(n);
|
|
11
|
+
return r.visible = !1, r.scale.set(...t), r;
|
|
12
|
+
}
|
|
13
|
+
function p(o, t) {
|
|
14
|
+
const e = c(o);
|
|
15
|
+
e.style.display = "block";
|
|
16
|
+
const n = new a(e);
|
|
17
|
+
return n.visible = !1, n.scale.set(t, t, t), n;
|
|
18
|
+
}
|
|
19
|
+
const c = (o) => {
|
|
20
|
+
const t = document.createElement("div");
|
|
21
|
+
t.style.cssText = `
|
|
22
|
+
border-radius: 50px;
|
|
23
|
+
border: 2px solid rgba(255, 255, 255, 0.5);
|
|
24
|
+
background-color: rgba(15, 20, 22, 0.562);
|
|
25
|
+
justify-content: flex-start;
|
|
26
|
+
align-items: center;
|
|
27
|
+
padding: 20px 30px;
|
|
28
|
+
display: flex;
|
|
29
|
+
transform-origin: center 0;`;
|
|
30
|
+
const e = document.createElement("span");
|
|
31
|
+
return e.style.cssText = `
|
|
32
|
+
font-size: 40px;
|
|
33
|
+
line-height: 1;
|
|
34
|
+
white-space: nowrap;
|
|
35
|
+
color: #fff;
|
|
36
|
+
font-weight: 700;
|
|
37
|
+
`, e.innerText = o, t.appendChild(e), t;
|
|
38
|
+
}, d = (o, t) => {
|
|
39
|
+
const e = {};
|
|
40
|
+
o.forEach((s) => {
|
|
41
|
+
let l = s.parent;
|
|
42
|
+
for (; l; )
|
|
43
|
+
e[l.uuid] ? e[l.uuid]++ : e[l.uuid] = 1, l = l.parent;
|
|
44
|
+
});
|
|
45
|
+
let n = null, r = 0;
|
|
46
|
+
for (const s in e)
|
|
47
|
+
e[s] > r && (r = e[s], n = t.getObjectByProperty("uuid", s));
|
|
48
|
+
return n;
|
|
49
|
+
};
|
|
50
|
+
export {
|
|
51
|
+
p as a,
|
|
52
|
+
u as c,
|
|
53
|
+
d as g
|
|
54
|
+
};
|
package/dist/hooks.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./useGLTFLoader-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./useGLTFLoader-SChWH4Nf.cjs");exports.intersectColor=e.intersectColor;exports.obbObjects=e.obbObjects;exports.useGLTFLoader=e.useGLTFLoader;exports.useObb=e.useObb;exports.useRaycaster=e.useRaycaster;exports.useThreeJs=e.useThreeJs;
|
package/dist/hooks.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { i, o, c, b, a, u } from "./useGLTFLoader-
|
|
1
|
+
import { i as a, o, c as r, b, a as t, u } from "./useGLTFLoader-Ca78rpg1.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
a as intersectColor,
|
|
4
4
|
o as obbObjects,
|
|
5
|
-
|
|
5
|
+
r as useGLTFLoader,
|
|
6
6
|
b as useObb,
|
|
7
|
-
|
|
7
|
+
t as useRaycaster,
|
|
8
8
|
u as useThreeJs
|
|
9
9
|
};
|