@ridp/threejs 1.1.6 → 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.
- package/dist/{common-BHi3qsZW.cjs → common-C1rNPPkt.cjs} +2 -2
- package/dist/{common-fbJUHqlj.js → common-D1_IztgM.js} +1 -1
- package/dist/hooks.cjs +1 -1
- package/dist/hooks.js +1 -1
- 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 +185 -25
- package/dist/useGLTFLoader-2awW2QaH.cjs +4 -0
- package/dist/{useGLTFLoader-DusnFN5B.js → useGLTFLoader-BBGTGOYm.js} +1800 -1952
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +9 -7
- 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 -2
- package/dist/ImageLoader-CB_URfeZ.js +0 -860
- package/dist/ImageLoader-DwvBWW6h.cjs +0 -5
- package/dist/useGLTFLoader-BiveFkS6.cjs +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const c=require("./
|
|
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
2
|
border-radius: 50px;
|
|
3
3
|
border: 2px solid rgba(255, 255, 255, 0.5);
|
|
4
4
|
background-color: rgba(15, 20, 22, 0.562);
|
|
@@ -12,4 +12,4 @@
|
|
|
12
12
|
white-space: nowrap;
|
|
13
13
|
color: #fff;
|
|
14
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=
|
|
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;
|
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-2awW2QaH.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