@syhr/sy-three 1.0.0-rc.12 → 1.0.0-rc.13

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.
@@ -20,7 +20,7 @@
20
20
  <span class="gis-val-${n.valueEleId}" style="font-size: 24px;font-weight: 600;">${n.value}</span>
21
21
  <span style="font-size: 14px;">dBm</span>
22
22
  </div>
23
- <button type="primary" id="${n.btnEleId}" class="sc-button sc-button--primary">查看历史</button>
23
+ <button type="primary" id="${n.btnEleId}" class="el-button el-button--primary">查看历史</button>
24
24
  </div>
25
25
  `,c.onmouseenter=()=>{a.isFocus=!0},c.onmouseleave=()=>{a.isFocus=!1,c.style.display="none",r.className=""};const h=new Xt.CSS2DObject(r);h.name=n.name,h.dataId=n.guid,h.userData.params=n,a.onmouseover=()=>{c.style.display="flex",r.className="top-info";const P=document.getElementById(n.btnEleId);P.onclick=()=>{fe.emit("three-event",{type:"pd-history-click",data:h})}},a.onmouseleave=()=>{setTimeout(()=>{a.isFocus||(c.style.display="none",r.className="")},500)},a.onclick=()=>{fe.emit("three-event",{type:"pd-sensor-click",data:h}),n.preview||setTimeout(()=>{t.attach(h)},100)},s.append(c);const A=P=>{P===0?a.innerHTML=Ve:P===1?a.innerHTML=Fn:P===2&&(a.innerHTML=Nn)},M=P=>{const N=document.getElementsByClassName(`gis-val-${n.valueEleId}`);if(N.length)for(let p=0;p<N.length;p++)N[p].innerText=P};return h.changeState=A,h.changeValue=M,setTimeout(()=>{A(n.state),M(n.value)},200),h})},getStorage:function(n){return n.userData.params}};var rt;T.config(k({driver:[T.INDEXEDDB,T.LOCALSTORAGE],name:"SGP7000",size:4980736,storeName:"keyvaluepairs",version:1,description:"SGP7000"},((rt=window.meta.storage)==null?void 0:rt.config)||{}));function Gn(){return{getKey:p=>m(this,null,function*(){return yield T.key(p)}),getKeys:()=>m(this,null,function*(){return yield T.keys()}),getItem:p=>m(this,null,function*(){if(p)return yield T.getItem(p)}),setItem:(p,W)=>m(this,null,function*(){if(p)return yield T.setItem(p,W)}),removeItem:p=>m(this,null,function*(){if(p)return yield T.removeItem(p)}),clearItems:()=>m(this,null,function*(){return yield T.clear()}),iterateItems:(p,W)=>m(this,null,function*(){if(p)return yield T.iterate(p,W)}),getReady:()=>m(this,null,function*(){return yield T.ready()}),getLength:()=>m(this,null,function*(){return yield T.length()}),getDriver:()=>m(this,null,function*(){return yield T.driver()}),setDriver:p=>m(this,null,function*(){if(p)return yield T.setDriver(p)}),setConfig:p=>m(this,null,function*(){if(p)return yield T.config(p)}),dropInstance:p=>m(this,null,function*(){if(p)return yield T.dropInstance(p)}),createInstance:p=>m(this,null,function*(){if(p)return yield T.createInstance(p)})}}const Vn="THREED_LOG_BUFFER",zn="THREED_CURRSCENE",Kn="THREED_ACTIVE_MENU",$n="THREED_PIXEL_RATIO",me="THREED_MODEL_DBNAME",ye="THREED_MODEL_DBSTORE",Wn="THREED_SCENE_PREVIEW",Ce="THREED_MODEL_LOAD_KEY",ae="THREED_PREVIEW_URL_KEY",qn="THREED_ADDON_EDITOR_JSON",jn="THREED_SCENE_STORAGE_SUFFIX",Re={step:.1},Xn=80,pt=30,Yn=1e3,Jn=1200,Qn=3e5,Zn="三维测试",er="灯光",tr=1,nr=["环境光","平行光","点光源","聚光灯","半球光","平面光"],_t=new Set(["syncStatus","disposeTargets","statusMaterials","syncPanelPlacement"]),rr=["AxesHelper","GridHelper","Box3Helper","PerspectiveCamera"],Et=new Set(["GridHelper","AxesHelper","CameraHelper","SpotLightHelper","PointLightHelper","TransformControls","HemisphereLightHelper","DirectionalLightHelper","TransformControlsPlane"]),At=new Set(["CSS2DObject","CSS3DObject"]),sr=Object.assign({"/src/views/threed/models/pd-sensor.js":Bn}),ir=Object.assign({}),ar={环境光:()=>new F.THREE.AmbientLight(16777215,1),平行光:()=>new F.THREE.DirectionalLight(16777215,1),点光源:()=>new F.THREE.PointLight(16777215,1,0,0),聚光灯:()=>new F.THREE.SpotLight(16777215,1,0,Math.PI/6,0,0),半球光:()=>new F.THREE.HemisphereLight(16777215,0,1),平面光:()=>new F.THREE.RectAreaLight(16777215,1,100,100)},or=[{name:"荧光流动",commonUniforms:!0,vertex:"vUv-material",fragment:`
26
26
  vec4 o = gl_FragColor.rgba;
@@ -1291,7 +1291,7 @@ const Le = {
1291
1291
  <span class="gis-val-${n.valueEleId}" style="font-size: 24px;font-weight: 600;">${n.value}</span>
1292
1292
  <span style="font-size: 14px;">dBm</span>
1293
1293
  </div>
1294
- <button type="primary" id="${n.btnEleId}" class="sc-button sc-button--primary">查看历史</button>
1294
+ <button type="primary" id="${n.btnEleId}" class="el-button el-button--primary">查看历史</button>
1295
1295
  </div>
1296
1296
  `, c.onmouseenter = () => {
1297
1297
  a.isFocus = !0;
@@ -21,7 +21,7 @@
21
21
  <span class="gis-val-${n.valueEleId}" style="font-size: 24px;font-weight: 600;">${n.value}</span>
22
22
  <span style="font-size: 14px;">dBm</span>
23
23
  </div>
24
- <button type="primary" id="${n.btnEleId}" class="sc-button sc-button--primary">查看历史</button>
24
+ <button type="primary" id="${n.btnEleId}" class="el-button el-button--primary">查看历史</button>
25
25
  </div>
26
26
  `,l.onmouseenter=()=>{a.isFocus=!0},l.onmouseleave=()=>{a.isFocus=!1,l.style.display="none",r.className=""};const h=new Ot.CSS2DObject(r);h.name=n.name,h.dataId=n.guid,h.userData.params=n,a.onmouseover=()=>{l.style.display="flex",r.className="top-info";const L=document.getElementById(n.btnEleId);L.onclick=()=>{pe.emit("three-event",{type:"pd-history-click",data:h})}},a.onmouseleave=()=>{setTimeout(()=>{a.isFocus||(l.style.display="none",r.className="")},500)},a.onclick=()=>{pe.emit("three-event",{type:"pd-sensor-click",data:h}),n.preview||setTimeout(()=>{t.attach(h)},100)},s.append(l);const g=L=>{L===0?a.innerHTML=tt:L===1?a.innerHTML=In:L===2&&(a.innerHTML=yn)},H=L=>{const K=document.getElementsByClassName(`gis-val-${n.valueEleId}`);if(K.length)for(let _=0;_<K.length;_++)K[_].innerText=L};return h.changeState=g,h.changeValue=H,setTimeout(()=>{g(n.state),H(n.value)},200),h})},getStorage:function(n){return n.userData.params}};P.config(V({driver:[P.INDEXEDDB,P.LOCALSTORAGE],name:"SGP7000",size:4980736,storeName:"keyvaluepairs",version:1,description:"SGP7000"},((Dt=window.meta.storage)==null?void 0:Dt.config)||{}));function Rn(){return{getKey:_=>m(this,null,function*(){return yield P.key(_)}),getKeys:()=>m(this,null,function*(){return yield P.keys()}),getItem:_=>m(this,null,function*(){if(_)return yield P.getItem(_)}),setItem:(_,Y)=>m(this,null,function*(){if(_)return yield P.setItem(_,Y)}),removeItem:_=>m(this,null,function*(){if(_)return yield P.removeItem(_)}),clearItems:()=>m(this,null,function*(){return yield P.clear()}),iterateItems:(_,Y)=>m(this,null,function*(){if(_)return yield P.iterate(_,Y)}),getReady:()=>m(this,null,function*(){return yield P.ready()}),getLength:()=>m(this,null,function*(){return yield P.length()}),getDriver:()=>m(this,null,function*(){return yield P.driver()}),setDriver:_=>m(this,null,function*(){if(_)return yield P.setDriver(_)}),setConfig:_=>m(this,null,function*(){if(_)return yield P.config(_)}),dropInstance:_=>m(this,null,function*(){if(_)return yield P.dropInstance(_)}),createInstance:_=>m(this,null,function*(){if(_)return yield P.createInstance(_)})}}const xn="THREED_LOG_BUFFER",Dn="THREED_CURRSCENE",vn="THREED_ACTIVE_MENU",Tn="THREED_PIXEL_RATIO",we="THREED_MODEL_DBNAME",ve="THREED_MODEL_DBSTORE",Pn="THREED_SCENE_PREVIEW",Te="THREED_MODEL_LOAD_KEY",ce="THREED_PREVIEW_URL_KEY",bn="THREED_ADDON_EDITOR_JSON",Ln="THREED_SCENE_STORAGE_SUFFIX",Pe={step:.1},Mn=80,nt=30,On=1e3,Un=1200,Hn=3e5,kn="三维测试",Fn="灯光",Nn=1,Bn=["环境光","平行光","点光源","聚光灯","半球光","平面光"],rt=new Set(["syncStatus","disposeTargets","statusMaterials","syncPanelPlacement"]),Vn=["AxesHelper","GridHelper","Box3Helper","PerspectiveCamera"],st=new Set(["GridHelper","AxesHelper","CameraHelper","SpotLightHelper","PointLightHelper","TransformControls","HemisphereLightHelper","DirectionalLightHelper","TransformControlsPlane"]),it=new Set(["CSS2DObject","CSS3DObject"]),Gn=Object.assign({"/src/views/threed/models/pd-sensor.js":Cn}),zn=Object.assign({}),Kn={环境光:()=>new N.THREE.AmbientLight(16777215,1),平行光:()=>new N.THREE.DirectionalLight(16777215,1),点光源:()=>new N.THREE.PointLight(16777215,1,0,0),聚光灯:()=>new N.THREE.SpotLight(16777215,1,0,Math.PI/6,0,0),半球光:()=>new N.THREE.HemisphereLight(16777215,0,1),平面光:()=>new N.THREE.RectAreaLight(16777215,1,100,100)},$n=[{name:"荧光流动",commonUniforms:!0,vertex:"vUv-material",fragment:`
27
27
  vec4 o = gl_FragColor.rgba;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syhr/sy-three",
3
- "version": "1.0.0-rc.12",
3
+ "version": "1.0.0-rc.13",
4
4
  "author": "syhr <aiops.sieyuan@gmail.com>",
5
5
  "description": "Planar graphic config tool based on @meta2d.",
6
6
  "license": "MIT",