{ "pandav:/index.js": { "cubeCode": "Cube('pandav:/com/three-common/0.0.1',['pandav:/com/three-common/0.0.1/children/Board/BorderMap3dBoard','pandav:/com/three-common/0.0.1/children/infoPanel/BorderMap3dInfoPanel','pandav:/com/three-common/0.0.1/children/Path/Path','pandav:/com/three-common/0.0.1/children/Light/BorderMap3dLight','pandav:/com/three-common/0.0.1/children/Water/BorderMap3dWater','pandav:/com/three-common/0.0.1/children/Image/BorderMap3dImage','pandav:/com/three-common/0.0.1/children/ParticleSystem/ParticleSystem','pandav:/com/three-common/0.0.1/children/Column/Column','pandav:/com/three-common/0.0.1/children/FlyLine/BorderMap3dFlyLine','pandav:/com/three-common/0.0.1/Entry3d','pandav:/com/three-common/0.0.1/Action','pandav:/com/three-common/0.0.1/Postprocessor','pandav:/com/three-common/0.0.1/object/ImageMesh','pandav:/com/three-common/0.0.1/object/ImageMeshStateMachine','pandav:/com/three-common/0.0.1/ConfigPackage','pandav:/com/three-common/0.0.1/pass/ImageOutlinePass','pandav:/com/three-common/0.0.1/utils'],function(a,b,c){var d=c('pandav:/com/three-common/0.0.1/children/Board/BorderMap3dBoard'),e=d.BorderMap3dBoard,f=c('pandav:/com/three-common/0.0.1/children/infoPanel/BorderMap3dInfoPanel'),g=f.BorderMap3dInfoPanel,h=c('pandav:/com/three-common/0.0.1/children/Path/Path'),i=h.Path,j=c('pandav:/com/three-common/0.0.1/children/Light/BorderMap3dLight'),k=j.BorderMap3dLight,l=c('pandav:/com/three-common/0.0.1/children/Water/BorderMap3dWater'),m=l.BorderMap3dWater,n=c('pandav:/com/three-common/0.0.1/children/Image/BorderMap3dImage'),o=n.BorderMap3dImage,p=c('pandav:/com/three-common/0.0.1/children/ParticleSystem/ParticleSystem'),q=p.ParticleSystem,r=c('pandav:/com/three-common/0.0.1/children/Column/Column'),s=r.Column,t=c('pandav:/com/three-common/0.0.1/children/FlyLine/BorderMap3dFlyLine'),u=t.BorderMap3dFlyLine,v=c('pandav:/com/three-common/0.0.1/Entry3d'),w=v.Entry3d,x=v.ComType,y=c('pandav:/com/three-common/0.0.1/Action'),z=y.Action,A=c('pandav:/com/three-common/0.0.1/Postprocessor'),B=A.Postprocessor,C=c('pandav:/com/three-common/0.0.1/object/ImageMesh'),D=C.ImageMesh,E=c('pandav:/com/three-common/0.0.1/object/ImageMeshStateMachine'),F=E.ImageMeshStateMachine,G=c('pandav:/com/three-common/0.0.1/ConfigPackage'),H=G.ConfigPackage,I=c('pandav:/com/three-common/0.0.1/pass/ImageOutlinePass'),J=I.ImageOutlinePass,K=c('pandav:/com/three-common/0.0.1/utils');return a.exports=Object.assign({},K,{BorderMap3dBoard:e,BorderMap3dInfoPanel:g,Path:i,BorderMap3dLight:k,BorderMap3dWater:m,BorderMap3dImage:o,ParticleSystem:q,Column:s,BorderMap3dFlyLine:u,Action:z,Postprocessor:B,ImageMesh:D,ImageMeshStateMachine:F,ConfigPackage:H,ImageOutlinePass:J,Entry3d:w,ComType:x}),a.exports});", "requires": [ "pandav:/children/Board/BorderMap3dBoard.js", "pandav:/children/infoPanel/BorderMap3dInfoPanel.js", "pandav:/children/Path/Path.js", "pandav:/children/Light/BorderMap3dLight.js", "pandav:/children/Water/BorderMap3dWater.js", "pandav:/children/Image/BorderMap3dImage.js", "pandav:/children/ParticleSystem/ParticleSystem.js", "pandav:/children/Column/Column.js", "pandav:/children/FlyLine/BorderMap3dFlyLine.js", "pandav:/Entry3d.js", "pandav:/Action.js", "pandav:/Postprocessor.js", "pandav:/object/ImageMesh.js", "pandav:/object/ImageMeshStateMachine.js", "pandav:/ConfigPackage.js", "pandav:/pass/ImageOutlinePass.js", "pandav:/utils.js" ], "buildLevel": 1, "outputDir": "/com/three-common/0.0.1", "outputPath": "/com/three-common/0.0.1/index.js", "fileName": "/index.js" }, "pandav:/BlockClickDiv.js": { "cubeCode": "Cube('pandav:/com/three-common/0.0.1/BlockClickDiv',['pandav:/npm/react/17.0.2'],function(a,b,c){function d(a){\"@babel/helpers - typeof\";return d='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&'function'==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?'symbol':typeof a},d(a)}function e(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')}function f(a,b){for(var c,d=0;darguments.length?a:c):f.value}},o.apply(this,arguments)}function p(a,b){for(;!Object.prototype.hasOwnProperty.call(a,b)&&(a=q(a),null!==a););return a}function q(a){return q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function b(a){return a.__proto__||Object.getPrototypeOf(a)},q(a)}function r(a,b){if('function'!=typeof b&&null!==b)throw new TypeError('Super expression must either be null or a function');a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,'prototype',{writable:!1}),b&&s(a,b)}function s(a,b){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function c(a,b){return a.__proto__=b,a},s(a,b)}var t=c('pandav:/com/three-common/0.0.1/children/Board/Board'),u=t.Board,v=c('pandav:/com/three-common/0.0.1/children/lib/RisedObjectMgr'),w=v.RisedObjectMgr,x=function(a){function b(a){var c;return e(this,b),c=k(this,b,[a]),c.risedObjectMgr=new w(n(c)),c}return r(b,a),g(b,[{key:'onRefresh',value:function a(){o(q(b.prototype),'onRefresh',this).call(this),this.risedObjectMgr.refresh(this.itemList.list)}},{key:'onDispose',value:function a(){o(q(b.prototype),'onDispose',this).call(this),this.risedObjectMgr.dispose()}}]),b}(u);return a.exports={BorderMap3dBoard:x},a.exports});", "requires": [ "pandav:/children/Board/Board.js", "pandav:/children/lib/RisedObjectMgr.js" ], "buildLevel": 2, "outputDir": "/com/three-common/0.0.1/children/Board", "outputPath": "/com/three-common/0.0.1/children/Board/BorderMap3dBoard.js", "fileName": "/children/Board/BorderMap3dBoard.js" }, "pandav:/children/Column/ColumnItem.js": { "cubeCode": "Cube('pandav:/com/three-common/0.0.1/children/Column/ColumnItem',['pandav:/com/three/0.145.0','pandav:/com/submodule-three-3d/1.0.0','pandav:/com/submodule-three-3d/1.0.0','pandav:/com/three-common/0.0.1/utils'],function(a,b,c){function d(a){\"@babel/helpers - typeof\";return d='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&'function'==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?'symbol':typeof a},d(a)}function e(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')}function f(a,b){for(var c,d=0;da.length)&&(b=a.length);for(var c=0,d=Array(b);carguments.length?a:c):f.value}},u.apply(this,arguments)}function v(a,b){for(;!Object.prototype.hasOwnProperty.call(a,b)&&(a=w(a),null!==a););return a}function w(a){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function b(a){return a.__proto__||Object.getPrototypeOf(a)},w(a)}function x(a,b){if('function'!=typeof b&&null!==b)throw new TypeError('Super expression must either be null or a function');a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,'prototype',{writable:!1}),b&&y(a,b)}function y(a,b){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function c(a,b){return a.__proto__=b,a},y(a,b)}var A=c('pandav:/com/three/0.145.0'),B=c('pandav:/npm/react/17.0.2'),C=c('pandav:/npm/react-dom/17.0.2'),D=c('pandav:/com/three-common/0.0.1/ComType'),E=D.ComType,F=c('pandav:/com/submodule-three-3d/1.0.0/src/ThreeChild'),G=F.ThreeChild,H=c('pandav:/com/submodule-three-3d/1.0.0'),I=H.EObjectContainer,J=c('pandav:/com/three-common/0.0.1/children/CommonBoardItem'),K=J.CommonBoardItem,L=c('pandav:/com/three-common/0.0.1/utils'),M=L.isInteractive,N=c('pandav:/com/submodule-three-3d/1.0.0'),O=N.Hook,P=N.parseTextStyle,Q=N.parseShadow,R=c('pandav:/com/three-common/0.0.1/BlockClickDiv'),S=R.BlockClickDiv,T=c('pandav:/com/three-common/0.0.1/children/BoardBac'),U=T.BoardBac,V=c('pandav:/com/three-common/0.0.1/TransitionWrapper'),W=V.TransitionWrapper,X=function(a){function b(a){var c;l(this,b),c=q(this,b,[a]);var d=t(c);return c.itemList=new I(t(c),Y),c.timer=0,c.carouselInterval=0,c.carouselEnable=!1,c.carouselIndex=-1,c.carouselPaused=!1,c.onMouseHoverEmpty=function(){'\\u60AC\\u505C'===d.config.interactAnimation.interactType&&d.itemList.list.forEach(function(a){return a.onMouseLeave()})},c.onAction_setIndex=function(a){var b=+a.dynamicData;isNaN(b)||d.setSelectedItem(b)},c}return x(b,a),n(b,[{key:'onCreate',value:function a(){document.addEventListener('setIndex_'.concat(this.props.id),this.onAction_setIndex),this.context.onHoverDOMRootEvent.add(this.onMouseHoverEmpty)}},{key:'onRefresh',value:function a(){u(w(b.prototype),'onRefresh',this).call(this);var c=this.config.common,d=c.useDepth,e=c.layer;this.renderOrder=d?0:e;var f=this.config.interactAnimation,g=f.carouselEnable,h=f.interval;this.carouselInterval=1e3*h,this.carouselEnable=g,this.refreshItem(),this.setSelectedItem(this.carouselIndex)}},{key:'getPointInstance',value:function b(a){return this.itemList.map.get(a).obj}},{key:'getElevation',value:function b(a){var c=0,d=this.props.context.context.realTimeTilemap;return d&&d.demEnabled&&(c=d.elevationMgr.getElevation(a)),c}},{key:'refreshItem',value:function a(){var b=this,c=[],d=new Map;this.props.data.forEach(function(a){return a.id&&d.set(a.id+'',a)}),this.props.data.forEach(function(a,d){var f,g;if(b.context.type==E.BorderMap3d){var h=a.lng,i=a.lat;if(void 0===h||void 0===i)return;g=[+a.lng,+a.lat],f=new A.Vector3().set(g[0],b.getElevation(g),g[1]),b.context.coordTransform.toWorld(f,f)}else{var j=e(a.position,3),k=j[0],l=j[1],m=j[2];f=new A.Vector3().set(+k,+l,+m)}c.push({data:a,config:b.config,context:b,id:d+'',index:d,position:f,lnglat:g?g:[]})}),this.itemList.refresh(c,{ref:['context'],deep:['data','config','position']})}},{key:'onDispose',value:function a(){u(w(b.prototype),'onDispose',this).call(this),this.itemList.clear(),document.removeEventListener('setIndex_'.concat(this.props.id),this.onAction_setIndex),this.context.onHoverDOMRootEvent.remove(this.onMouseHoverEmpty)}},{key:'onUpdate',value:function b(a){this.carouselEnable&&0=this.carouselInterval&&this.carouselNext(),this.timer+=a)}},{key:'carouselNext',value:function a(){var b=(this.carouselIndex+1)%this.itemList.list.length;this.setSelectedItem(b)}},{key:'setSelectedItem',value:function b(a){this.itemList.list.forEach(function(b){b.index===a?(b.selected=!0,b.sendSwitchInteraction()):b.selected=!1}),this.timer=0,this.carouselIndex=a}}]),b}(G),Y=function(a){function b(a){var c;l(this,b),c=q(this,b,[a]);var d=t(c);return c.config=null,c.context=null,c.props=null,c.index=-1,c.htmlObject=null,c.hook=new O,c.onElevationUpdate=function(a){var b=d.props.context.context.coordTransform,c=d.props.lnglat,e=new A.Vector3(c[0],a,c[1]);b.toWorld(e,e),d.position.copy(e)},c.onClick=function(){var a=d.config.interactAnimation.interactType;d.sendMouseInteraction('click'),'\\u70B9\\u51FB'==a&&d.context.setSelectedItem(d.index)},c.onMouseMove=function(a){'\\u60AC\\u505C'===d.config.interactAnimation.interactType&&(a.stopPropagation(),!d.selected&&(d.context.setSelectedItem(d.props.index),d.context.carouselPaused=!0))},c.onMouseLeave=function(){d.selected&&(d.context.carouselPaused=!1,d.context.setSelectedItem(-1),d.sendSwitchInteraction())},c}return x(b,a),n(b,[{key:'create',value:function b(a){var c=document.createElement('div');c.style.pointerEvents='none',this.htmlObject=new A.HTMLObject(c),a.context.add(this),this.add(this.htmlObject),this.htmlObject.anchor.set(0,0),this.refresh(a)}},{key:'refreshHTML',value:function a(){var b,c,d=this,e=this.props,f=e.data,g=e.config,h=g.custom,i=h.anchor,j=h.offset,k=h.dot,l=h.type,m=h.bgShape,n=h.bgImg,o=h.content,p=o.suffix,q=o.prefix,r=o.main,s=g.interactAnimation,t=s.interactType,u=s.carouselEnable,v=M(Object.assign(this.props.context.props,{events:[]}))||'\\u70B9\\u51FB'===t;this.selected&&k.select.img?(b={width:k.select.size.width,height:k.select.size.height,transform:'translate(-50%, -50%) translate('.concat(k.select.offset.x,'px,').concat(k.select.offset.y,'px)'),cursor:v?'pointer':'default'},c=k.select.img):(b={width:k.normal.size.width,height:k.normal.size.height,transform:'translate(-50%, -50%) translate('.concat(k.normal.offset.x,'px,').concat(k.normal.offset.y,'px)'),cursor:v?'pointer':'default'},c=k.normal.img);var w,x='\\u65E0'==t&&!u||this.selected;w='\\u81EA\\u9002\\u5E94\\u5C3A\\u5BF8'===l?{background:m.fill,border:''.concat(m.strokeWidth,'px solid ').concat(m.strokeColor),borderRadius:m.borderRadius,boxShadow:Q(m.shadow),padding:''.concat(m.padding.top,'px ').concat(m.padding.right,'px ').concat(m.padding.bottom,'px ').concat(m.padding.left,'px')}:{width:n.size.width,height:n.size.height},C.render(B.createElement('div',null,B.createElement(S,{eventThrough:!v,style:Object.assign({position:'absolute',transitionProperty:'background-image, width, height',transitionDuration:'0.2s',transitionTimingFunction:'ease-in-out',pointerEvents:'auto'},b),onMouseEnter:function a(){return d.sendMouseInteraction('mouseEnter')},onMouseLeave:function a(){return d.sendMouseInteraction('mouseLeave')},onClick:this.onClick,onMouseMove:this.onMouseMove},B.createElement(U,{url:c,style:{width:'100%',height:'100%'}})),B.createElement(S,{eventThrough:!v,style:{transform:'translate(-'.concat(i.x,'%, -').concat(i.y,'%) translate(').concat(j.x,'px, ').concat(j.y,'px)'),cursor:v?'pointer':'default'},onClick:function a(){return d.sendMouseInteraction('click')},onMouseMove:function b(a){return a.stopPropagation()},onMouseEnter:function a(){return d.sendMouseInteraction('mouseEnter')},onMouseLeave:function a(){return d.sendMouseInteraction('mouseLeave')}},B.createElement(W,{visible:x,getStyle:function b(a){return{pointerEvents:0===a?'none':'auto',opacity:a,transformOrigin:'center bottom',transform:'scale('.concat(a,')'),transitionProperty:'opacity, transform',transitionDuration:'0.2s',transitionTimingFunction:'ease-in-out'}}},B.createElement(U,{style:Object.assign({},w),contentStyle:{display:'flex',alignItems:'center',justifyContent:'center'},url:'\\u81EA\\u9002\\u5E94\\u5C3A\\u5BF8'===l?void 0:n.src},B.createElement('div',{style:Object.assign(Object.assign({},P(q.textStyle,'dom')),{},{display:'inline-block',marginRight:-q.offset.x,transform:'translateY('.concat(q.offset.y,'px)')})},q.text),B.createElement('div',{style:Object.assign(Object.assign({},P(r.textStyle,'dom')),{},{display:'inline-block',transform:'translate('.concat(r.offset.x,'px, ').concat(r.offset.y,'px)')})},f.value),B.createElement('div',{style:Object.assign(Object.assign({},P(p.textStyle,'dom')),{},{display:'inline-block',marginLeft:p.offset.x,transform:'translateY('.concat(p.offset.y,'px)')})},p.text))))),this.htmlObject.element)}},{key:'focus',value:function a(){var a=this.config.interactAnimation.focus;if(a.show){var b=this.getWorldPosition(new A.Vector3);this.context.context.controller.focusUI(b,1e3*a.duration,a.viewDistance)}}},{key:'refresh',value:function b(a){var c=this;this.props=a,this.context=a.context,this.config=a.config,this.index=a.index,this.refreshHTML(),this.position.set(a.position.x,a.position.y,a.position.z);var d=this.props.context.context.realTimeTilemap,e=d&&d.demEnabled;this.hook.do('refreshDEM',function(){if(e&&c.props.lnglat){var a=c.props.lnglat;d.elevationMgr.setPointListener(a,c.onElevationUpdate)}},[this.props.lnglat,e,d&&d.uuid])}},{key:'sendMouseInteraction',value:function b(a){this.context.emitCustomEvent(a,this.props.data)}},{key:'sendSwitchInteraction',value:function a(){this.context.emitCustomEvent('switch',this.props.data)}},{key:'dispose',value:function a(){u(w(b.prototype),'dispose',this).call(this),this.context.remove(this),this.htmlObject.dispose(),C.unmountComponentAtNode(this.htmlObject.element);var c=this.props.context.context.realTimeTilemap;c&&c.demEnabled&&c.elevationMgr.removePointListener(this.props.lnglat,this.onElevationUpdate)}}]),b}(K);return a.exports={Board:X},a.exports});", "requires": [ "pandav:/ComType.js", "pandav:/children/CommonBoardItem.js", "pandav:/utils.js", "pandav:/BlockClickDiv.js", "pandav:/children/BoardBac.js", "pandav:/TransitionWrapper.js" ], "buildLevel": 3, "outputDir": "/com/three-common/0.0.1/children/Board", "outputPath": "/com/three-common/0.0.1/children/Board/Board.js", "fileName": "/children/Board/Board.js" }, "pandav:/children/EditableChild.js": { "cubeCode": "Cube('pandav:/com/three-common/0.0.1/children/EditableChild',['pandav:/com/three-common/0.0.1/children/Child','pandav:/com/submodule-three-3d/1.0.0'],function(a,b,c){function d(a){\"@babel/helpers - typeof\";return d='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&'function'==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?'symbol':typeof a},d(a)}function e(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')}function f(a,b){for(var c,d=0;db.length)this.geometry=new k.BufferGeometry;else{var c=this.props.config.custom.style,d=c.thickness,e=c.height,f=new k.Vector3((b[1].x+b[0].x)/2,(b[1].y+b[0].y)/2+e,(b[1].z+b[0].z)/2),g=new k.QuadraticBezierCurve3(b[0],f,b[1]);this.geometry=new k.TubeGeometry(g,50,d,40)}}},{key:'dispose',value:function a(){this.mesh.geometry.dispose(),this.material.dispose(),this.mesh?.parent?.remove(this.mesh)}},{key:'createMaterial',value:function a(){var b=this.props.config.custom,c=b.style,d=c.length,e=c._color,f=b.baseLine,g=b.blendMode,h=b.enableTransparent,i=n('common',e),j=i[0].color,k=i[i.length-1].color;this.material&&this.material.dispose(),this.material=new p({position:this.position,showBasic:f.show,basicColor:f.color,startColor:j,endColor:k,length:d},{transparent:h,depthWrite:!h,blending:+g})}},{key:'update',value:function b(a){if(0arguments.length?a:c):f.value}},o.apply(this,arguments)}function p(a,b){for(;!Object.prototype.hasOwnProperty.call(a,b)&&(a=q(a),null!==a););return a}function q(a){return q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function b(a){return a.__proto__||Object.getPrototypeOf(a)},q(a)}function r(a,b){if('function'!=typeof b&&null!==b)throw new TypeError('Super expression must either be null or a function');a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,'prototype',{writable:!1}),b&&s(a,b)}function s(a,b){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function c(a,b){return a.__proto__=b,a},s(a,b)}var t=c('pandav:/com/three-common/0.0.1/children/FlyLine/FlyLine'),u=t.FlyLine,v=c('pandav:/com/three-common/0.0.1/ComType'),w=v.ComType,x=c('pandav:/com/three/0.145.0'),y=c('pandav:/com/submodule-three-3d/1.0.0/src/ThreeChild'),z=y.ThreeChild,A=c('pandav:/com/submodule-three-3d/1.0.0'),B=A.EObjectContainer,C=function(a){function b(a){var c;return e(this,b),c=k(this,b,[a]),c.itemContainer=new B(n(c),u),c}return r(b,a),g(b,[{key:'onRefresh',value:function a(){var c=this;o(q(b.prototype),'onRefresh',this).call(this);var d=[];this.props.data.forEach(function(a,b){var e,f,g,h;if(c.props.context.type==w.BorderMap3d)g=[+a.fromLng,+a.fromLat],e=new x.Vector3().set(g[0],c.getElevation(g),g[1]),c.context.coordTransform.toWorld(e,e),h=[+a.toLng,+a.toLat],f=new x.Vector3().set(h[0],c.getElevation(h),h[1]),c.context.coordTransform.toWorld(f,f);else{var i=a.fromPos,j=a.toPos;g=[],h=[],e=new x.Vector3().set(i[0],i[1],i[2]),f=new x.Vector3().set(j[0],j[1],j[2])}d.push({id:b+'',positions:[e,f],context:c,config:c.config,lnglats:[g,h]})}),this.itemContainer.refresh(d,{deep:['config'],ref:['context'],relatives:[this.context.coordTransform.uuid]})}},{key:'getAssetsListMap',value:function a(){o(q(b.prototype),'getAssetsListMap',this).call(this);var c=this.config.custom.landEffect,d={};return'\\u89C6\\u9891'===c.type?d.texture=[c.video]:'\\u56FE\\u7247'===c.type&&(d.texture=[c.image]),d}},{key:'getElevation',value:function b(a){var c=0,d=this.props.context.context.realTimeTilemap;return d&&d.demEnabled&&(c=d.elevationMgr.getElevation(a)),c}},{key:'onDispose',value:function a(){this.itemContainer.clear()}},{key:'onUpdate',value:function b(a){this.itemContainer.list.forEach(function(b){return b.update(a)})}}]),b}(z);return a.exports={BorderMap3dFlyLine:C},a.exports});", "requires": [ "pandav:/children/FlyLine/FlyLine.js", "pandav:/ComType.js" ], "buildLevel": 10, "outputDir": "/com/three-common/0.0.1/children/FlyLine", "outputPath": "/com/three-common/0.0.1/children/FlyLine/BorderMap3dFlyLine.js", "fileName": "/children/FlyLine/BorderMap3dFlyLine.js" }, "pandav:/children/Column/Column.js": { "cubeCode": "Cube('pandav:/com/three-common/0.0.1/children/Column/Column',['pandav:/com/three/0.145.0','pandav:/com/submodule-three-3d/1.0.0/src/ThreeChild','pandav:/com/submodule-three-3d/1.0.0','pandav:/com/three-common/0.0.1/utils','pandav:/com/three-common/0.0.1/children/lib/RisedObjectMgr','pandav:/com/three-common/0.0.1/geometry/CuboidGeometry','pandav:/com/submodule-three-3d/1.0.0','pandav:/com/border-3dmap/1.0.0/src/lib/SpiralRectPermutation','pandav:/com/three-common/0.0.1/children/Column/CategoryItem.jsx'],function(a,b,c){function d(a){\"@babel/helpers - typeof\";return d='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&'function'==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?'symbol':typeof a},d(a)}function e(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')}function f(a,b){for(var c,d=0;darguments.length?a:c):f.value}},o.apply(this,arguments)}function p(a,b){for(;!Object.prototype.hasOwnProperty.call(a,b)&&(a=q(a),null!==a););return a}function q(a){return q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function b(a){return a.__proto__||Object.getPrototypeOf(a)},q(a)}function r(a,b){if('function'!=typeof b&&null!==b)throw new TypeError('Super expression must either be null or a function');a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,'prototype',{writable:!1}),b&&s(a,b)}function s(a,b){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function c(a,b){return a.__proto__=b,a},s(a,b)}function t(a){for(var b=1,c=a.length;b=this.categoryMap.size)this.categoryItemList.refresh([]);else{var y=-Infinity,z=1/0;h.forEach(function(a){B(a.value)>y&&(y=+a.value),B(a.value)=this.carouselInterval&&this.carouselNext(),this.timer+=a)}},{key:'carouselNext',value:function a(){var b=(this.carouselIndex+1)%this.categoryItemList.list.length;this.setSelectedItem(b)}},{key:'setSelectedItem',value:function b(a){this.categoryItemList.list.forEach(function(b){b.selected=b.props.index===a}),this.timer=0,this.carouselIndex=a}}]),b}(w),N=function(){function a(b,c){e(this,a),this.n=0,this.distance=void 0,this.origin=void 0,this.distance=b,this.origin=c}return g(a,[{key:'next',value:function a(){return this.n++,this.get(this.n)}},{key:'get',value:function b(a){var c=J(a);return c[0]=c[0]*this.distance+this.origin[0],c[1]=-c[1]*this.distance+this.origin[1],c}}]),a}();return a.exports={Column:M},a.exports});", "requires": [ "pandav:/utils.js", "pandav:/children/lib/RisedObjectMgr.js", "pandav:/geometry/CuboidGeometry.js", "pandav:/children/Column/CategoryItem.jsx" ], "buildLevel": 9, "outputDir": "/com/three-common/0.0.1/children/Column", "outputPath": "/com/three-common/0.0.1/children/Column/Column.js", "fileName": "/children/Column/Column.js" }, "pandav:/children/Image/BorderMap3dImage.js": { "cubeCode": "Cube('pandav:/com/three-common/0.0.1/children/Image/BorderMap3dImage',['pandav:/com/three-common/0.0.1/children/Image/Image','pandav:/com/three/0.145.0','pandav:/com/submodule-three-3d/1.0.0/src/ThreeChild','pandav:/com/submodule-three-3d/1.0.0'],function(a,b,c){function d(a){\"@babel/helpers - typeof\";return d='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&'function'==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?'symbol':typeof a},d(a)}function e(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')}function f(a,b){for(var c,d=0;darguments.length?a:c):f.value}},o.apply(this,arguments)}function p(a,b){for(;!Object.prototype.hasOwnProperty.call(a,b)&&(a=q(a),null!==a););return a}function q(a){return q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function b(a){return a.__proto__||Object.getPrototypeOf(a)},q(a)}function r(a,b){if('function'!=typeof b&&null!==b)throw new TypeError('Super expression must either be null or a function');a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,'prototype',{writable:!1}),b&&s(a,b)}function s(a,b){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function c(a,b){return a.__proto__=b,a},s(a,b)}var t=c('pandav:/com/three-common/0.0.1/children/Image/Image'),u=t.Image,v=c('pandav:/com/three/0.145.0'),w=c('pandav:/com/submodule-three-3d/1.0.0/src/ThreeChild'),x=w.ThreeChild,y=c('pandav:/com/submodule-three-3d/1.0.0'),z=y.EObjectContainer,A=function(a){function b(a){var c;return e(this,b),c=k(this,b,[a]),c.itemContainer=new z(n(c),u),c}return r(b,a),g(b,[{key:'onRefresh',value:function a(){o(q(b.prototype),'onRefresh',this).call(this);var c=this,d=[];Object.values(this.config.imageList).forEach(function(a,b){d.push({id:b+'',context:c,config:a})}),this.itemContainer.refresh(d,{deep:['config'],ref:['context'],relatives:[this.context.coordTransform.uuid]})}},{key:'onDispose',value:function a(){this.itemContainer.clear()}},{key:'getAssetsListMap',value:function a(){var b=this.config.imageList?this.config.imageList:this.config,c=[];return Object.values(b).forEach(function(a){'\\u56FE\\u7247'===a.style.fillType?c.push(a.style.src):'\\u56FE\\u6848'===a.style.fillType&&c.push(a.style.pattern)}),{texture:c}}},{key:'onUpdate',value:function b(a){this.itemContainer.list.forEach(function(b){return b.updatePresetAnimation(a)})}}]),b}(x);return a.exports={BorderMap3dImage:A},a.exports});", "requires": [ "pandav:/children/Image/Image.js" ], "buildLevel": 7, "outputDir": "/com/three-common/0.0.1/children/Image", "outputPath": "/com/three-common/0.0.1/children/Image/BorderMap3dImage.js", "fileName": "/children/Image/BorderMap3dImage.js" }, "pandav:/children/FlyLine/LandEffect.js": { "cubeCode": "Cube('pandav:/com/three-common/0.0.1/children/FlyLine/LandEffect',['pandav:/com/three/0.145.0','pandav:/com/submodule-three-3d/1.0.0','pandav:/com/three-common/0.0.1/children/FlyLine/LandMesh','pandav:/com/three-common/0.0.1/object/ImageMesh'],function(a,b,c){function d(a,b,c){return b=k(b),f(a,h()?Reflect.construct(b,c||[],k(a).constructor):b.apply(a,c))}function f(a,b){if(b&&('object'===n(b)||'function'==typeof b))return b;if(void 0!==b)throw new TypeError('Derived constructors may only return object or undefined');return g(a)}function g(a){if(void 0===a)throw new ReferenceError('this hasn\\'t been initialised - super() hasn\\'t been called');return a}function h(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(a){}return(h=function b(){return!!a})()}function i(){return i='undefined'!=typeof Reflect&&Reflect.get?Reflect.get.bind():function d(a,b,c){var e=j(a,b);if(e){var f=Object.getOwnPropertyDescriptor(e,b);return f.get?f.get.call(3>arguments.length?a:c):f.value}},i.apply(this,arguments)}function j(a,b){for(;!Object.prototype.hasOwnProperty.call(a,b)&&(a=k(a),null!==a););return a}function k(a){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function b(a){return a.__proto__||Object.getPrototypeOf(a)},k(a)}function l(a,b){if('function'!=typeof b&&null!==b)throw new TypeError('Super expression must either be null or a function');a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,'prototype',{writable:!1}),b&&m(a,b)}function m(a,b){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function c(a,b){return a.__proto__=b,a},m(a,b)}function n(a){\"@babel/helpers - typeof\";return n='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&'function'==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?'symbol':typeof a},n(a)}function o(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')}function p(a,b){for(var c,d=0;d1-c&&!this.landing){this.landing=!0;for(var e=0;earguments.length?a:c):f.value}},o.apply(this,arguments)}function p(a,b){for(;!Object.prototype.hasOwnProperty.call(a,b)&&(a=q(a),null!==a););return a}function q(a){return q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function b(a){return a.__proto__||Object.getPrototypeOf(a)},q(a)}function r(a,b){if('function'!=typeof b&&null!==b)throw new TypeError('Super expression must either be null or a function');a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,'prototype',{writable:!1}),b&&s(a,b)}function s(a,b){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function c(a,b){return a.__proto__=b,a},s(a,b)}var t=c('pandav:/com/three-common/0.0.1/children/infoPanel/InfoPanel'),u=t.InfoPanel,v=c('pandav:/com/three-common/0.0.1/children/lib/RisedObjectMgr'),w=v.RisedObjectMgr,x=function(a){function b(a){var c;return e(this,b),c=k(this,b,[a]),c.risedObjectMgr=new w(n(c)),c}return r(b,a),g(b,[{key:'onRefresh',value:function a(){o(q(b.prototype),'onRefresh',this).call(this),this.risedObjectMgr.refresh(this.itemList.list)}},{key:'onDispose',value:function a(){o(q(b.prototype),'onDispose',this).call(this),this.risedObjectMgr.dispose()}}]),b}(u);return a.exports={BorderMap3dInfoPanel:x},a.exports});", "requires": [ "pandav:/children/infoPanel/InfoPanel.js", "pandav:/children/lib/RisedObjectMgr.js" ], "buildLevel": 3, "outputDir": "/com/three-common/0.0.1/children/infoPanel", "outputPath": "/com/three-common/0.0.1/children/infoPanel/BorderMap3dInfoPanel.js", "fileName": "/children/infoPanel/BorderMap3dInfoPanel.js" }, "pandav:/children/Column/CategoryItem.jsx": { "cubeCode": "Cube('pandav:/com/three-common/0.0.1/children/Column/CategoryItem.jsx',['pandav:/npm/react/17.0.2','pandav:/npm/react-dom/17.0.2','pandav:/com/three/0.145.0','pandav:/com/tween-animation/2.0.0','pandav:/com/three-common/0.0.1/children/Column/ColumnItem','pandav:/com/submodule-three-3d/1.0.0','pandav:/com/submodule-three-3d/1.0.0','pandav:/com/three-common/0.0.1/children/BoardBac','pandav:/com/three-common/0.0.1/utils'],function(a,b,c){function d(a){\"@babel/helpers - typeof\";return d='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&'function'==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?'symbol':typeof a},d(a)}function e(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')}function f(a,b){for(var c,d=0;d=k?e.min:e.min+(+b.value-j)/k*(e.max-e.min),n>l&&(l=n),m.push({x:o,y:p,seriesInfo:f,id:d,height:n,context:c,config:a.context.config,value:+b.value})}),this.columnItemList.refresh(m,{ref:['context','seriesInfo'],deep:['config']}),this.refreshBoard(l,a.info),this.hook.do('animation',function(){f?a.context.context.isFirstLoaded&&c.playAnimation():(c.tween&&c.tween.destroy(),c.animationRatio=1,c.columnItemList.list.forEach(function(a){return a.onUpdate(c.animationRatio)}),c.onAnimationEnd())},void 0,[f,a.curAdcode])}},{key:'dispose',value:function a(){this.tween&&this.tween.destroy(),this.columnItemList.clear(),this.removeFromParent(),this.props.context.context.removeFirstLoadedCallback(this.onFirstLoaded),s.unmountComponentAtNode(this.board.element)}},{key:'playAnimation',value:function a(){var b=this;this.board.visible=!1,this.tween&&this.tween.destroy(),this.animationRatio=0,this.columnItemList.list.forEach(function(a){a.label.visible=!1,a.onUpdate(b.animationRatio)});var c=new v(this).to({animationRatio:1},this.animationDuration,w.EaseInOut,1.8);c.onUpdate(function(a){var c=a.animationRatio;b.columnItemList.list.forEach(function(a){return a.onUpdate(c)})}),c.onComplete(this.onAnimationEnd),this.tween=c}},{key:'refreshBoard',value:function c(a,b){var d=this,e=this.props.context.config.custom.board,f=e.offset,g=e.orderNum,h=e.areaName,i=e.value,j=e.bg;this.hook.do('createBoard',function(){d.board=new t.HTMLObject(document.createElement('div')),d.add(d.board),d.board.anchor.set(0,0)},void 0,[]);var k=!!b.center&&(g.show||h.show||i.show||j.show);this.board.visible=k,b.center?this.board.position.set(b.center[0],a,b.center[1]):this.board.position.set(0,a,0),s.render(r.createElement('div',{style:{transform:H(f)}},j.show&&j.img&&r.createElement(F,{url:j.img,style:{width:j.size.width,height:j.size.height,position:'absolute',zIndex:-1,transform:'translate(-50%, -50%) translate('.concat(j.offset.x,'px, ').concat(j.offset.y,'px)')}}),g.show&&r.createElement(F,{url:g.bgImage,style:Object.assign({position:'absolute',width:g.size.width,height:g.size.height,transform:'translate(-100%, -50%) '+H(g.offset)},D(g.textStyle,'dom'))},r.createElement('div',{style:{textAlign:'center',position:'relative',top:'50%',transform:'translateY(-50%)'}},b.order+'')),i.show&&this.getBoardValue(b),h.show&&r.createElement('div',{style:Object.assign(Object.assign({position:'absolute',transform:'translate(0%, 0%)'+H(h.offset)},D(h.textStyle,'dom')),{},{whiteSpace:'nowrap'})},b.name+'')),this.board.element)}},{key:'getBoardValue',value:function b(a){var c=this.props.context.config.custom.board.value,d=c.textStyle,e=c.offset,f=c.bg,g=c.suffix;return r.createElement('div',{style:{position:'absolute',transform:'translate(0%,-100%)'+H(e),padding:I(f.padding),background:f.fill,borderRadius:f.borderRadius,border:J(f.strokeWidth,f.strokeColor),boxShadow:K(f.shadow),display:'flex',alignItems:'center'}},r.createElement('div',{style:Object.assign(Object.assign({},D(d,'dom')),{},{whiteSpace:'nowrap'})},a.totalValue+''),r.createElement('div',{style:Object.assign(Object.assign({},D(g.textStyle,'dom')),{},{marginLeft:g.offset.x,transform:'translateY('.concat(g.offset.y,'px)'),whiteSpace:'nowrap'})},g.text))}}]),b}(t.Object3D);return a.exports={CategoryItem:M},a.exports});", "requires": [ "pandav:/children/Column/ColumnItem.js", "pandav:/children/BoardBac.js", "pandav:/utils.js" ], "buildLevel": 11, "outputDir": "/com/three-common/0.0.1/children/Column", "outputPath": "/com/three-common/0.0.1/children/Column/CategoryItem.jsx", "fileName": "/children/Column/CategoryItem.jsx" }, "pandav:/children/Image/Image.js": { "cubeCode": "Cube('pandav:/com/three-common/0.0.1/children/Image/Image',['pandav:/com/three/0.145.0','pandav:/com/submodule-three-3d/1.0.0','pandav:/com/three-common/0.0.1/object/ImageMesh','pandav:/com/three-common/0.0.1/children/lib/PhysicalOrBasicMaterialGroup','pandav:/com/tween-animation/2.0.0'],function(a,b,c){function d(a){\"@babel/helpers - typeof\";return d='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&'function'==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?'symbol':typeof a},d(a)}function e(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')}function f(a,b){for(var c,d=0;d=j.length||1==j.length&&0==j[0].time)){if(0!=j[0].time){var k=this.context.props.config,l=k.style.opacity,m=k.objectSetting;i.push({obj:{opacity:l/100,tx:0,ty:0,tz:0,sx:1,sy:1,sz:1,rx:n(m.rotate.x),ry:n(m.rotate.y),rz:n(m.rotate.z)},ease:u.Linear,duration:0})}for(var o,q=0,r=0;ra.length)&&(b=a.length);for(var c=0,d=Array(b);carguments.length?a:c):f.value}},u.apply(this,arguments)}function v(a,b){for(;!Object.prototype.hasOwnProperty.call(a,b)&&(a=w(a),null!==a););return a}function w(a){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function b(a){return a.__proto__||Object.getPrototypeOf(a)},w(a)}function x(a,b){if('function'!=typeof b&&null!==b)throw new TypeError('Super expression must either be null or a function');a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,'prototype',{writable:!1}),b&&y(a,b)}function y(a,b){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function c(a,b){return a.__proto__=b,a},y(a,b)}var z=c('pandav:/npm/react/17.0.2'),A=c('pandav:/npm/react-dom/17.0.2'),B=c('pandav:/com/three-common/0.0.1/ComType'),C=B.ComType,D=c('pandav:/com/three/0.145.0'),E=c('pandav:/com/submodule-three-3d/1.0.0/src/ThreeChild'),F=E.ThreeChild,G=c('pandav:/com/submodule-three-3d/1.0.0'),H=G.EObjectContainer,I=c('pandav:/com/three-common/0.0.1/children/CommonBoardItem'),J=I.CommonBoardItem,K=c('pandav:/com/three-common/0.0.1/utils'),L=K.isInteractive,M=c('pandav:/com/submodule-three-3d/1.0.0'),N=M.parseTextStyle,O=c('pandav:/com/three-common/0.0.1/BlockClickDiv'),P=O.BlockClickDiv,Q=c('pandav:/com/three-common/0.0.1/children/BoardBac'),R=Q.BoardBac,S=c('pandav:/com/three-common/0.0.1/TransitionWrapper'),T=S.TransitionWrapper,U=function(a){function b(a){var c;l(this,b),c=q(this,b,[a]);var d=t(c);return c.itemList=new H(t(c),V),c.timer=0,c.carouselInterval=0,c.carouselEnable=!1,c.carouselIndex=-1,c.carouselPaused=!1,c.statusBgMap=new Map,c.firstStatus='',c.onMouseHoverEmpty=function(){var a=d.config.interactAnimation.interactType;'\\u60AC\\u505C'===a&&d.itemList.list.forEach(function(a){return a.onMouseLeave()})},c.onAction_setIndex=function(a){var b=+a.dynamicData;isNaN(b)||d.setSelectedItem(b)},c}return x(b,a),n(b,[{key:'getAssetsListMap',value:function a(){var b=this.config.content.statusBgList,c={HTMLImageElement:[],HTMLVideoElement:[]};return Object.values(b).forEach(function(a){c.HTMLImageElement.push(a.dot.normal.img,a.dot.select.img),'\\u89C6\\u9891'===a.type?c.HTMLVideoElement.push(a.video):c.HTMLImageElement.push(a.src)}),c}},{key:'onCreate',value:function a(){document.addEventListener('setIndex_'.concat(this.props.id),this.onAction_setIndex),this.context.onHoverDOMRootEvent.add(this.onMouseHoverEmpty)}},{key:'onRefresh',value:function a(){u(w(b.prototype),'onRefresh',this).call(this);var c=this.config,d=c.content,e=c.interactAnimation,f=this.config.common,g=f.useDepth,h=f.layer;this.renderOrder=g?0:h,this.carouselInterval=1e3*e.interval,this.carouselEnable=e.carouselEnable;var i=new Map,j=Object.values(d.statusBgList);j.forEach(function(a){i.set(a.status,a)}),this.statusBgMap=i,this.firstStatus=j[0]&&j[0].status,this.refreshItem(),this.setSelectedItem(this.carouselIndex)}},{key:'refreshItem',value:function a(){var b=this,c=[],d=this.props.data;d.forEach(function(a,d){var f,g;if(g=b.statusBgMap.get(a.status||b.firstStatus),!!g){if(b.context.type==C.BorderMap3d){if(void 0===a.lng||void 0===a.lat)return;f=new D.Vector3().set(+a.lng,0,+a.lat),b.context.coordTransform.toWorld(f,f)}else{var h=e(a.position,3),i=h[0],j=h[1],k=h[2];f=new D.Vector3().set(+i,+j,+k)}c.push({data:a,config:b.config,context:b,id:d+'',index:d,position:f,isEditing:!1,bgConfig:g})}}),this.itemList.refresh(c,{ref:['context'],deep:['data','config','bgConfig','position']})}},{key:'onDispose',value:function a(){u(w(b.prototype),'onDispose',this).call(this),this.itemList.clear(),document.removeEventListener('setIndex_'.concat(this.props.id),this.onAction_setIndex),this.context.onHoverDOMRootEvent.remove(this.onMouseHoverEmpty)}},{key:'setSelectedItem',value:function b(a){this.carouselIndex===a||(this.itemList.list.forEach(function(b){b.props.index===a?(b.selected=!0,b.sendSwitchInteraction()):b.selected=!1}),this.timer=0,this.carouselIndex=a)}},{key:'onUpdate',value:function b(a){this.carouselEnable&&0=this.carouselInterval&&this.carouselNext(),this.timer+=a)}},{key:'carouselNext',value:function a(){var b=(this.carouselIndex+1)%this.itemList.list.length;this.setSelectedItem(b)}}]),b}(F),V=function(a){function b(a){var c;l(this,b),c=q(this,b,[a]);var d=t(c);return c.config=null,c.context=null,c.data=null,c.props=null,c.index=-1,c.htmlObject=null,c.onClick=function(){var a=d.config.interactAnimation.interactType;d.sendMouseInteraction('click'),'\\u70B9\\u51FB'==a&&d.context.setSelectedItem(d.props.index)},c.onMouseMove=function(a){var b=d.config.interactAnimation.interactType;'\\u60AC\\u505C'===b&&(a.stopPropagation(),!d.selected&&(d.context.setSelectedItem(d.props.index),d.context.carouselPaused=!0,d.sendMouseInteraction('mouseEnter')))},c.onMouseLeave=function(){d.selected&&(d.context.carouselPaused=!1,d.context.setSelectedItem(-1),d.sendMouseInteraction('mouseLeave'),d.sendSwitchInteraction())},c}return x(b,a),n(b,[{key:'create',value:function b(a){this.htmlObject=new D.HTMLObject(document.createElement('div')),a.context.add(this),this.add(this.htmlObject),this.context=a.context,this.htmlObject.anchor.set(0,0),this.refresh(a)}},{key:'refreshHTML',value:function a(){var b,c,d=this,e=this.props.config,f=e.content,g=e.interactAnimation,h=this.props.bgConfig,i=h.dot,j=h.anchor,k=h.offset,l=h.src,m=h.size,n=g.interactType,o=g.carouselEnable,p=f.padding,q=f.lineList,r=f.leftTextAlign,s=f.rightTextAlign,t=f.leftColumnWidthRatio,u=L(Object.assign(this.props.context.props,{events:[]}))||'\\u70B9\\u51FB'===n;this.selected&&i.select.img?(c={width:i.select.size.width,height:i.select.size.height,transform:'translate(-50%, -50%) translate('.concat(i.select.offset.x,'px,').concat(i.select.offset.y,'px)'),cursor:u?'pointer':'default'},b=i.select.img):(c={width:i.normal.size.width,height:i.normal.size.height,transform:'translate(-50%, -50%) translate('.concat(i.normal.offset.x,'px,').concat(i.normal.offset.y,'px)'),cursor:u?'pointer':'default'},b=i.normal.img);var v='\\u65E0'==n&&!o||this.selected;A.render(z.createElement(z.Fragment,null,z.createElement(P,{eventThrough:!u,style:Object.assign({position:'absolute',transitionProperty:'background-image, width, height',transitionDuration:'0.2s',transitionTimingFunction:'ease-in-out',pointerEvents:'auto'},c),onClick:this.onClick,onMouseMove:this.onMouseMove,onMouseEnter:function a(){d.sendMouseInteraction('mouseEnter')},onMouseLeave:function a(){d.sendMouseInteraction('mouseEnter')}},z.createElement(R,{url:b,style:{width:'100%',height:'100%'}})),z.createElement(P,{eventThrough:!u,style:{transform:'translate(-'.concat(100*j.x,'%, -').concat(100*j.y,'%) translate(').concat(k.x,'px,').concat(k.y,'px)'),cursor:u?'pointer':'default'},onClick:function a(){d.sendMouseInteraction('click')},onMouseMove:function b(a){a.stopPropagation()},onMouseEnter:function b(a){d.sendMouseInteraction('mouseEnter')},onMouseLeave:function b(a){d.sendMouseInteraction('mouseLeave')}},z.createElement(T,{visible:v,getStyle:function b(a){return{pointerEvents:0===a?'none':'auto',opacity:a,transformOrigin:'center bottom',transform:'scale('.concat(a,')'),transitionProperty:'opacity, transform',transitionDuration:'0.2s',transitionTimingFunction:'ease-in-out'}}},z.createElement(R,{url:l,style:{width:m.width,height:m.height},contentStyle:{display:'flex',alignItems:'center',justifyContent:'flex-start',flexDirection:'column'}},z.createElement('div',{style:{width:'100%',height:'100%',display:'flex',flexDirection:'column',padding:''.concat(p.top,'px ').concat(p.right,'px ').concat(p.bottom,'px ').concat(p.left,'px')}},Object.values(q).map(function(a,b){var c=a.map.fieldName,e=a.labelStyle,f=a.valueStyle;return c&&void 0!==d.props.data[c]?z.createElement('div',{key:b,style:{display:'flex',flexDirection:'row',justifyContent:'space-between',width:'100%',height:100/Object.values(q).length+'%'}},z.createElement('div',{style:Object.assign(Object.assign({},N(e.textStyle,'dom')),{},{width:t+'%',height:'100%',textAlign:r,transform:'translate('.concat(e.offset.x,'px, ').concat(e.offset.y,'px)')})},a.map.displayName),z.createElement('div',{style:Object.assign(Object.assign({},N(f.textStyle,'dom')),{},{transform:'translate('.concat(f.offset.x,'px, ').concat(f.offset.y,'px)'),width:100-t+'%',height:'100%',textAlign:s})},z.createElement('span',null,d.props.data[c]),f.suffix.show&&z.createElement('span',{style:Object.assign(Object.assign({},N(f.suffix.textStyle,'dom')),{},{marginLeft:f.suffix.leftMargin})},f.suffix.content))):null})))))),this.htmlObject.element)}},{key:'focus',value:function a(){var b=this.config.interactAnimation.focus;if(b.show){var c=this.getWorldPosition(new D.Vector3);this.context.context.controller.focusUI(c,1e3*b.duration,b.viewDistance)}}},{key:'refresh',value:function b(a){this.props=a,this.config=a.context.config,this.refreshHTML(),this.position.copy(a.position)}},{key:'sendMouseInteraction',value:function b(a){this.context.emitCustomEvent(a,this.props.data)}},{key:'sendSwitchInteraction',value:function a(){this.context.emitCustomEvent('switch',this.props.data)}},{key:'dispose',value:function a(){u(w(b.prototype),'dispose',this).call(this),this.parent?.remove(this),this.htmlObject.dispose(),A.unmountComponentAtNode(this.htmlObject.element)}}]),b}(J);return a.exports={InfoPanel:U},a.exports});", "requires": [ "pandav:/ComType.js", "pandav:/children/CommonBoardItem.js", "pandav:/utils.js", "pandav:/BlockClickDiv.js", "pandav:/children/BoardBac.js", "pandav:/TransitionWrapper.js" ], "buildLevel": 4, "outputDir": "/com/three-common/0.0.1/children/infoPanel", "outputPath": "/com/three-common/0.0.1/children/infoPanel/InfoPanel.js", "fileName": "/children/infoPanel/InfoPanel.js" }, "pandav:/children/lib/RisedObjectMgr.js": { "cubeCode": "Cube('pandav:/com/three-common/0.0.1/children/lib/RisedObjectMgr',[],function(a){function b(a){\"@babel/helpers - typeof\";return b='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&'function'==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?'symbol':typeof a},b(a)}function c(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')}function d(a,b){for(var c,d=0;darguments.length?a:c):f.value}},o.apply(this,arguments)}function p(a,b){for(;!Object.prototype.hasOwnProperty.call(a,b)&&(a=q(a),null!==a););return a}function q(a){return q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function b(a){return a.__proto__||Object.getPrototypeOf(a)},q(a)}function r(a,b){if('function'!=typeof b&&null!==b)throw new TypeError('Super expression must either be null or a function');a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,'prototype',{writable:!1}),b&&s(a,b)}function s(a,b){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function c(a,b){return a.__proto__=b,a},s(a,b)}var t=c('pandav:/com/three-common/0.0.1/children/Light/Light'),u=t.Light,v=c('pandav:/com/three/0.145.0'),w=c('pandav:/com/submodule-three-3d/1.0.0/src/ThreeChild'),x=w.ThreeChild,y=c('pandav:/com/submodule-three-3d/1.0.0'),A=y.deg2rad,B=c('pandav:/com/submodule-three-3d/1.0.0'),C=B.EObjectContainer,D=function(a){function b(a){var c;return e(this,b),c=k(this,b,[a]),c.itemContainer=new C(n(c),u),c}return r(b,a),g(b,[{key:'onRefresh',value:function a(){o(q(b.prototype),'onRefresh',this).call(this),this.refreshItem()}},{key:'refreshItem',value:function a(){var b=this.config.local,c=b.position,d=b.rotate,e=d.x,f=d.y,g=d.z,h=[{config:this.config,context:this,id:v.MathUtils.generateUUID(),position:c,rotate:[A(e),A(f),A(g),'XYZ']}];this.itemContainer.refresh(h,{ref:['context'],deep:['config','position','rotate']})}},{key:'dispose',value:function a(){this.itemContainer.clear()}}]),b}(x);return a.exports={BorderMap3dLight:D},a.exports});", "requires": [ "pandav:/children/Light/Light.js" ], "buildLevel": 5, "outputDir": "/com/three-common/0.0.1/children/Light", "outputPath": "/com/three-common/0.0.1/children/Light/BorderMap3dLight.js", "fileName": "/children/Light/BorderMap3dLight.js" }, "pandav:/children/lib/StripLine2DGeometry.js": { "cubeCode": "Cube('pandav:/com/three-common/0.0.1/children/lib/StripLine2DGeometry',['pandav:/com/three/0.145.0'],function(a,b,c){function d(a){\"@babel/helpers - typeof\";return d='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&'function'==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?'symbol':typeof a},d(a)}function e(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')}function f(a,b){for(var c,d=0;d4*p||isNaN(b))&&(a.normalize(),a.multiplyScalar(4*p))}function i(a,b,c){return c.copy(b).multiplyScalar(-a.dot(b)),c.add(a)}if(2>a.length)return d;var j,l=this.vertices,m=this.indices,n=this.uvs,o=this.normals,p=c/2,q=new s.Vector3,r=new s.Vector3,t=new s.Vector3,v=new s.Vector3,y=new s.Vector3,z=new s.Vector3,A=0,B=0,D=d,F=new s.Vector3,G=new s.Vector3,b=new s.Vector3,x=new s.Vector3,w=new s.Vector3,E=new s.Vector3;if(q.copy(a[B]),j=f(a[B]),!j)return D;r.copy(j),t.subVectors(r,q).normalize(),G.copy(this.getNormal(0)),this.createArrowHelper(q,G),b.crossVectors(t,G).normalize(),b.multiplyScalar(p),z.addVectors(q,b),y.addVectors(q,E.copy(b).multiplyScalar(-1)),l.push(z.x,z.y,z.z),l.push(y.x,y.y,y.z),n.push(0,0),n.push(0,1),o.push(G.x,G.y,G.z),o.push(G.x,G.y,G.z),w.copy(q);for(var H=a.length;B\\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n\\nvoid main() {\\n\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\n\\tvViewPosition = - mvPosition.xyz;\\n\\n\\t// #include \\n\\tvec4 worldPosition = vec4( transformed, 1.0 );\\n\\t#ifdef USE_INSTANCING\\n\\t\\tworldPosition = instanceMatrix * worldPosition;\\n\\t#endif\\n\\tworldPosition = modelMatrix * worldPosition;\\n\\n\\t#include \\n\\t#include \\n\\t#include \\n\\n\\tvWorldPosition = worldPosition.xyz;\\n}\\n',c.fragmentShader='\\n#define STANDARD\\n\\n#ifdef PHYSICAL\\n\\t#define IOR\\n\\t#define SPECULAR\\n#endif\\n\\nuniform vec3 diffuse;\\nuniform vec3 emissive;\\nuniform float roughness;\\nuniform float metalness;\\nuniform float reflectivityDecay;\\nuniform float opacity;\\n\\n#ifdef IOR\\n\\tuniform float ior;\\n#endif\\n\\n#ifdef SPECULAR\\n\\tuniform float specularIntensity;\\n\\tuniform vec3 specularColor;\\n\\n\\t#ifdef USE_SPECULARINTENSITYMAP\\n\\t\\tuniform sampler2D specularIntensityMap;\\n\\t#endif\\n\\n\\t#ifdef USE_SPECULARCOLORMAP\\n\\t\\tuniform sampler2D specularColorMap;\\n\\t#endif\\n#endif\\n\\n#ifdef USE_CLEARCOAT\\n\\tuniform float clearcoat;\\n\\tuniform float clearcoatRoughness;\\n#endif\\n\\n#ifdef USE_IRIDESCENCE\\n\\tuniform float iridescence;\\n\\tuniform float iridescenceIOR;\\n\\tuniform float iridescenceThicknessMinimum;\\n\\tuniform float iridescenceThicknessMaximum;\\n#endif\\n\\n#ifdef USE_SHEEN\\n\\tuniform vec3 sheenColor;\\n\\tuniform float sheenRoughness;\\n\\n\\t#ifdef USE_SHEENCOLORMAP\\n\\t\\tuniform sampler2D sheenColorMap;\\n\\t#endif\\n\\n\\t#ifdef USE_SHEENROUGHNESSMAP\\n\\t\\tuniform sampler2D sheenRoughnessMap;\\n\\t#endif\\n#endif\\n\\nvarying vec3 vViewPosition;\\n\\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n\\n#ifndef DEFERRED_RENDER\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\n#endif\\n\\n#ifndef USE_TRANSMISSION\\n\\tvarying vec3 vWorldPosition;\\n\\tuniform mat4 projectionMatrix;\\n#endif\\n\\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n\\nuniform float time;\\nuniform sampler2D tNormalMap0;\\nuniform sampler2D tNormalMap1;\\nuniform sampler2D tNormalMap2;\\nuniform vec4 normalTilingVelocity_0;\\nuniform vec4 normalTilingVelocity_1;\\nuniform vec4 normalTilingVelocity_2;\\nuniform float normalScale_0;\\nuniform float normalScale_1;\\nuniform float normalScale_2;\\n\\nuniform sampler2D underSceneTexture;\\nuniform sampler2D underSceneDepthTexture;\\n/**\\u6700\\u5927\\u6298\\u5C04\\u8DDD\\u79BB */\\nuniform float maxRefractDistance;\\nuniform float waterIor;\\nuniform float noiseAmplitude;\\nuniform float noiseFrequency;\\n\\nuniform sampler2D noiseMap;\\n\\nvec3 deriveNormalZ(vec2 xy){\\n\\treturn vec3(xy, clamp( sqrt(1.0 - (xy.x * xy.x + xy.y * xy.y)), 0.001, 1.0 ));\\n}\\n\\nvec4 textureNoTile( sampler2D tex, in vec2 uv ) {\\n\\t// const float amplitude = 20.0;\\n // const float frequency = 0.005;\\n\\n // sample variation pattern \\n float k = texture2D( noiseMap, noiseFrequency * uv ).r; // cheap (cache friendly) lookup \\n \\n // compute index \\n float index = k * noiseAmplitude;\\n float i = floor( index );\\n float f = fract( index );\\n\\n // offsets for the different virtual patterns \\n vec2 offa = sin(vec2(3.0,7.0)*(i+0.0)); // can replace with any other hash \\n vec2 offb = sin(vec2(3.0,7.0)*(i+1.0)); // can replace with any other hash \\n\\n // compute derivatives for mip-mapping \\n vec2 dx = dFdx(uv), dy = dFdy(uv);\\n \\n // sample the two closest virtual patterns \\n vec4 cola = textureGrad( tex, uv + offa, dx, dy );\\n vec4 colb = textureGrad( tex, uv + offb, dx, dy );\\n\\n\\tvec4 diff = cola-colb;\\n\\tfloat sum = diff.x+diff.y+diff.z;\\n\\t\\n // interpolate between the two virtual patterns \\n return mix( cola, colb, smoothstep( 0.2, 0.8, f-0.1*sum ) );\\n\\n}\\n\\nvec3 getNormalPass(const in vec2 scale, const in vec2 velocity, sampler2D normalMap) {\\n\\tvec2 uv = ( vWorldPosition.xz + velocity * time ) * scale; \\n\\tuv.y = -uv.y; \\n\\t#ifdef USE_NOISE\\n\\tvec3 normal = textureNoTile( normalMap, uv ).xyz * 2.0 - 1.0;\\n\\t#else\\n\\tvec3 normal = texture( normalMap, uv ).xyz * 2.0 - 1.0;\\n\\t#endif\\n\\treturn normal;\\n}\\n\\nvec3 getNormal() {\\n\\tvec3 pass1 = getNormalPass(vec2(normalTilingVelocity_0.xy), vec2(normalTilingVelocity_0.zw), tNormalMap0);\\n\\tvec3 pass2 = getNormalPass(vec2(normalTilingVelocity_1.xy), vec2(normalTilingVelocity_1.zw), tNormalMap1);\\n\\tvec3 pass3 = getNormalPass(vec2(normalTilingVelocity_2.xy), vec2(normalTilingVelocity_2.zw), tNormalMap2);\\n\\tvec3 normal = normalize( deriveNormalZ( (pass1.xy*normalScale_0 + pass2.xy*normalScale_1 ) + pass3.xy * normalScale_2 ) );\\n\\treturn normal;\\n}\\n\\nvec3 perturbNormal2Arb( vec3 eye_pos, vec3 surf_norm, vec3 mapN, float faceDirection ) {\\n\\n\\tvec3 q0 = dFdx( eye_pos.xyz );\\n\\tvec3 q1 = dFdy( eye_pos.xyz );\\n\\tvec2 st0 = dFdx( vUv.st );\\n\\tvec2 st1 = dFdy( vUv.st );\\n\\n\\tvec3 N = surf_norm; // normalized\\n\\n\\tvec3 q1perp = cross( q1, N );\\n\\tvec3 q0perp = cross( N, q0 );\\n\\n\\tvec3 T = q1perp * st0.x + q0perp * st1.x;\\n\\tvec3 B = q1perp * st0.y + q0perp * st1.y;\\n\\n\\tfloat det = max( dot( T, T ), dot( B, B ) );\\n\\tfloat scale = ( det == 0.0 ) ? 0.0 : faceDirection * inversesqrt( det );\\n\\n\\treturn normalize( T * ( mapN.x * scale ) + B * ( mapN.y * scale ) + N * mapN.z );\\n\\n}\\n\\nvec3 viewPositionToNDC(vec3 viewPosition){\\n vec4 clip = projectionMatrix * vec4( viewPosition, 1.0 );\\n vec3 ndc = clip.xyz/clip.w;\\n return ndc * 0.5 + 0.5;\\n}\\n\\nvec3 getViewPosition(const in vec2 screenUv, const in float depth) {\\n\\tvec4 ndc = vec4(screenUv.x*2.0-1.0, screenUv.y*2.0-1.0, depth * 2.0-1.0, 1.0);\\n\\tmat4 projInverse = inverse(projectionMatrix);\\n\\tndc = projInverse * ndc;\\n\\treturn ndc.xyz / ndc.w;\\n}\\n\\nvoid main() {\\n\\n\\t#include \\n\\n\\tvec4 diffuseColor = vec4( diffuse, opacity );\\n\\n\\t#ifndef DEFERRED_RENDER\\n\\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\\n\\t#endif\\n\\n\\tvec3 totalEmissiveRadiance = emissive;\\n\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\n\\t// #include \\n\\tvec3 vertexNormal = vec3(normal);\\n\\tvec3 mapN = getNormal();\\n\\t#ifdef USE_TANGENT\\n\\t\\tnormal = normalize( vTBN * mapN );\\n\\t#else\\n\\t\\tnormal = perturbNormal2Arb( - vViewPosition, normal, mapN, faceDirection );\\n\\t#endif\\n\\n\\t#include \\n\\t#include \\n\\t#include \\n\\n\\t#ifndef DEFERRED_RENDER\\n\\n\\t\\t// accumulation\\n\\t\\t#include \\n\\t\\t#include \\n\\t\\t#include \\n\\t\\t#include \\n\\n\\t\\t// modulation\\n\\t\\t#include \\n\\n\\t\\tvec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;\\n\\t\\tvec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;\\n\\n\\t\\t#include \\n\\n\\t\\tvec3 outgoingLight = totalDiffuse + totalSpecular * (1.0 - reflectivityDecay) + totalEmissiveRadiance;\\n\\n\\t\\t#ifdef USE_SHEEN\\n\\n\\t\\t\\t// Sheen energy compensation approximation calculation can be found at the end of\\n\\t\\t\\t// https://drive.google.com/file/d/1T0D1VSyR4AllqIJTQAraEIzjlb5h4FKH/view?usp=sharing\\n\\t\\t\\tfloat sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor );\\n\\n\\t\\t\\toutgoingLight = outgoingLight * sheenEnergyComp + sheenSpecular;\\n\\n\\t\\t#endif\\n\\n\\t\\t#ifdef USE_CLEARCOAT\\n\\n\\t\\t\\tfloat dotNVcc = saturate( dot( geometry.clearcoatNormal, geometry.viewDir ) );\\n\\n\\t\\t\\tvec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc );\\n\\n\\t\\t\\toutgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + clearcoatSpecular * material.clearcoat;\\n\\n\\t\\t#endif\\n\\n\\t#else\\n\\n\\t\\t#include \\n\\t\\t#include \\n\\n\\t\\tvec3 outgoingLight = material.diffuseColor;\\n\\n\\t#endif\\n\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t// #include \\n\\t#include \\n\\t// #include \\n\\t#include \\n}\\n',c.uniforms=r.UniformsUtils.merge([r.ShaderLib.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatNormalScale:{value:new r.Vector2(1,1)},clearcoatNormalMap:{value:null},iridescence:{value:0},iridescenceMap:{value:null},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},sheen:{value:0},sheenColor:{value:new r.Color(0)},sheenColorMap:{value:null},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},transmission:{value:0},transmissionMap:{value:null},transmissionSamplerSize:{value:new r.Vector2},transmissionSamplerMap:{value:null},transmissionSamplerDepthMap:{value:null},thickness:{value:0},thicknessMap:{value:null},attenuationDistance:{value:0},attenuationColor:{value:new r.Color(0)},depthScatteringShallowestColor:{value:new r.Color(0)},depthScatteringDeepestColor:{value:new r.Color(0)},colorScatteringDistance:{value:0},specularIntensity:{value:1},specularIntensityMap:{value:null},specularColor:{value:new r.Color(1,1,1)},specularColorMap:{value:null},tNormalMap0:{value:null},tNormalMap1:{value:null},tNormalMap2:{value:null},normalTilingVelocity_0:{value:new r.Vector4(.01,.01,17.5,8.5)},normalTilingVelocity_1:{value:new r.Vector4(.005,.005,.25,-15)},normalTilingVelocity_2:{value:new r.Vector4(3e-4,.0012,2.15,2.8)},normalScale_0:{value:.1},normalScale_1:{value:.08},normalScale_2:{value:.01},time:{value:0},noiseMap:{value:null},underSceneTexture:{value:null},underSceneDepthTexture:{value:null},maxRefractDistance:{value:10},waterIor:{value:1.33},noiseAmplitude:{value:20},noiseFrequency:{value:.005}}]),c.type='GisMapWater',c.defines.WATER='',c.defines.USE_UV=!0,c}return o(b,a),f(b)}(r.MeshPhysicalMaterial);return a.exports={GisMapWater:s},a.exports});", "requires": [], "buildLevel": 8, "outputDir": "/com/three-common/0.0.1/children/material", "outputPath": "/com/three-common/0.0.1/children/material/GisMapWater.js", "fileName": "/children/material/GisMapWater.js" }, "pandav:/children/Light/Light.js": { "cubeCode": "Cube('pandav:/com/three-common/0.0.1/children/Light/Light',['pandav:/com/three/0.145.0','pandav:/com/submodule-three-3d/1.0.0','pandav:/com/three-common/0.0.1/utils'],function(a,b,c){function d(a){\"@babel/helpers - typeof\";return d='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&'function'==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?'symbol':typeof a},d(a)}function e(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')}function f(a,b){for(var c,d=0;d\\n#include \\n#include \\n#include \\n#include \\nvarying vec2 vUv;\\nvoid main() {\\n vUv = uv;\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n}\\n',fragmentShader:'\\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n\\nvarying vec2 vUv;\\nuniform float position;\\nuniform vec3 basicColor;\\nuniform float basicOpacity;\\nuniform vec3 startColor;\\nuniform float startOpacity;\\nuniform vec3 endColor;\\nuniform float endOpacity;\\nuniform float length;\\n\\nvoid main() {\\n\\t#include \\n\\n float t=(vUv.x-position)/length;\\n if((t>1.0||t<0.0)){\\n gl_FragColor=vec4(basicColor,basicOpacity);\\n }else{\\n float a=mix(startOpacity, endOpacity, t);\\n gl_FragColor =vec4(mix(basicColor,mix(startColor, endColor, t),a),clamp(basicOpacity+a,0.0,1.0));\\n }\\n\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t// #include \\n\\t// #include \\n #include \\n}\\n',transparent:!0},c)])}return q(b,a),g(b,[{key:'updateUniform',value:function b(a){for(var c in a)this.uniforms[c].value=a[c]}}]),b}(s.ShaderMaterial);return a.exports={StreamerMaterial:v},a.exports});", "requires": [], "buildLevel": 12, "outputDir": "/com/three-common/0.0.1/children/material", "outputPath": "/com/three-common/0.0.1/children/material/StreamerMaterial.js", "fileName": "/children/material/StreamerMaterial.js" }, "pandav:/children/material/PathMaterial.js": { "cubeCode": "Cube('pandav:/com/three-common/0.0.1/children/material/PathMaterial',['pandav:/com/three/0.145.0'],function(a,b,c){function d(a){\"@babel/helpers - typeof\";return d='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&'function'==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?'symbol':typeof a},d(a)}function e(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')}function f(a,b){for(var c,d=0;d\\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n\\nvoid main() {\\n\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\n\\tvViewPosition = - mvPosition.xyz;\\n\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\n\\t#ifdef USE_TRANSMISSION\\n\\tvWorldPosition = worldPosition.xyz;\\n\\t#endif\\n}\\n',c.fragmentShader='\\n#define STANDARD\\n\\n#ifndef USE_UV\\n\\t#define USE_UV\\n#endif\\n\\n#ifdef PHYSICAL\\n\\t#define IOR\\n\\t#define SPECULAR\\n#endif\\n\\nuniform vec3 diffuse;\\nuniform vec3 emissive;\\nuniform float roughness;\\nuniform float metalness;\\nuniform float reflectivityDecay;\\nuniform float opacity;\\n\\n#ifdef IOR\\n\\tuniform float ior;\\n#endif\\n\\n#ifdef SPECULAR\\n\\tuniform float specularIntensity;\\n\\tuniform vec3 specularColor;\\n\\n\\t#ifdef USE_SPECULARINTENSITYMAP\\n\\t\\tuniform sampler2D specularIntensityMap;\\n\\t#endif\\n\\n\\t#ifdef USE_SPECULARCOLORMAP\\n\\t\\tuniform sampler2D specularColorMap;\\n\\t#endif\\n#endif\\n\\n#ifdef USE_CLEARCOAT\\n\\tuniform float clearcoat;\\n\\tuniform float clearcoatRoughness;\\n#endif\\n\\n#ifdef USE_IRIDESCENCE\\n\\tuniform float iridescence;\\n\\tuniform float iridescenceIOR;\\n\\tuniform float iridescenceThicknessMinimum;\\n\\tuniform float iridescenceThicknessMaximum;\\n#endif\\n\\n#ifdef USE_SHEEN\\n\\tuniform vec3 sheenColor;\\n\\tuniform float sheenRoughness;\\n\\n\\t#ifdef USE_SHEENCOLORMAP\\n\\t\\tuniform sampler2D sheenColorMap;\\n\\t#endif\\n\\n\\t#ifdef USE_SHEENROUGHNESSMAP\\n\\t\\tuniform sampler2D sheenRoughnessMap;\\n\\t#endif\\n#endif\\n\\nvarying vec3 vViewPosition;\\n\\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n\\n#ifndef DEFERRED_RENDER\\n#include \\n#include \\n#include \\n#include \\n#endif\\n\\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n\\nuniform mat3 mapUvTransform;\\nuniform float baseEmissiveIntensity;\\n\\n#ifdef USE_STREAMER\\nuniform float maxUvValue;\\nuniform float streamerEmissiveIntensity;\\nuniform float streamerPosition;\\nuniform vec4 streamerStartColor;\\nuniform vec4 streamerEndColor;\\nuniform float streamerLength;\\n#endif\\n\\n#ifdef USE_STREAMER_MAP\\nuniform mat3 streamerMapUvTransform;\\nuniform sampler2D streamerMap;\\n#endif\\n\\nvec2 transformUv( const in vec2 uv, const in mat3 matrix ) {\\n return ( matrix * vec3( uv, 1 ) ).xy;\\n}\\n\\nvoid main() {\\n\\n\\t#include \\n\\n\\tvec4 diffuseColor = vec4( diffuse, opacity );\\n\\n\\t#ifndef DEFERRED_RENDER\\n\\t\\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\\n\\t#endif\\n\\n\\tvec3 totalEmissiveRadiance = emissive;\\n\\n\\t#include \\n\\n\\t// #include \\n\\t#ifdef USE_MAP\\n\\t\\tvec4 sampledDiffuseColor = texture2D( map, transformUv( vUv, mapUvTransform ) );\\n\\t\\thsvColorCorrectionFunc(sampledDiffuseColor, hsvColorCorrection);\\n\\t\\tbrightnessContrastFunc(sampledDiffuseColor, brightnessContrast); //\\u8BA9\\u7F16\\u8F91\\u5668\\u754C\\u9762\\u8C03\\u6574\\u5E45\\u5EA6\\u66F4\\u7F13\\u548C\\n\\t\\tdiffuseColor *= sampledDiffuseColor;\\n\\t#endif\\n\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\n\\t#ifdef USE_STREAMER\\n\\t\\tvec4 streamer;\\n\\t\\tfloat t = ( vUv.x - streamerPosition * maxUvValue ) / ( streamerLength * maxUvValue );\\n\\t\\tif ( t > 1.0 || t < 0.0 ) {\\n\\t\\t\\tstreamer = vec4(0.0);\\n\\t\\t} else {\\n\\t\\t\\tstreamer = mix( streamerStartColor, streamerEndColor, t );\\n\\t\\t}\\n\\n\\t\\t#ifdef USE_STREAMER_MAP\\n\\t\\t\\tvec2 streamerMapUv = vec2(vUv);\\n\\t\\t\\tstreamerMapUv.x = ( streamerPosition + streamerLength ) * maxUvValue - streamerMapUv.x;\\n\\t\\t\\tstreamer *= texture2D(streamerMap, transformUv( streamerMapUv, streamerMapUvTransform ));\\n\\t\\t#endif\\n\\n\\n\\t\\tdiffuseColor = mix( diffuseColor, streamer, streamer.a );\\n\\n\\t#endif\\n\\n\\t#ifdef USE_PBR\\n\\n\\t\\t#ifndef DEFERRED_RENDER\\n\\n\\t\\t\\t// accumulation\\n\\t\\t\\t#include \\n\\t\\t\\t#include \\n\\t\\t\\t#include \\n\\t\\t\\t#include \\n\\n\\t\\t\\t// modulation\\n\\t\\t\\t#include \\n\\n\\t\\t\\tvec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;\\n\\t\\t\\tvec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;\\n\\n\\t\\t\\t#include \\n\\n\\t\\t\\tvec3 outgoingLight = totalDiffuse + totalSpecular * (1.0 - reflectivityDecay) + totalEmissiveRadiance;\\n\\n\\t\\t\\toutgoingLight += diffuseColor.rgb * baseEmissiveIntensity;\\n\\n\\t\\t\\t#ifdef USE_STREAMER\\n\\t\\t\\t\\toutgoingLight += streamerEmissiveIntensity * streamer.rgb;\\n\\t\\t\\t#endif\\n\\n\\t\\t\\t#ifdef USE_SHEEN\\n\\n\\t\\t\\t\\t// Sheen energy compensation approximation calculation can be found at the end of\\n\\t\\t\\t\\t// https://drive.google.com/file/d/1T0D1VSyR4AllqIJTQAraEIzjlb5h4FKH/view?usp=sharing\\n\\t\\t\\t\\tfloat sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor );\\n\\n\\t\\t\\t\\toutgoingLight = outgoingLight * sheenEnergyComp + sheenSpecular;\\n\\n\\t\\t\\t#endif\\n\\n\\t\\t\\t#ifdef USE_CLEARCOAT\\n\\n\\t\\t\\t\\tfloat dotNVcc = saturate( dot( geometry.clearcoatNormal, geometry.viewDir ) );\\n\\n\\t\\t\\t\\tvec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc );\\n\\n\\t\\t\\t\\toutgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + clearcoatSpecular * material.clearcoat;\\n\\n\\t\\t\\t#endif\\n\\n\\t\\t#else\\n\\n\\t\\t\\t#include \\n\\t\\t\\t#include \\n\\n\\t\\t\\tvec3 outgoingLight = material.diffuseColor;\\n\\n\\t\\t#endif\\n\\n\\t#else\\n\\n\\t\\tvec3 outgoingLight = diffuseColor.rgb;\\n\\n\\t#endif\\n\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t// #include \\n\\t#include \\n\\t// #include \\n\\t#include \\n}\\n',c.uniforms=s.UniformsUtils.merge([s.UniformsLib.physical,{streamerPosition:{value:0},streamerStartColor:{value:new s.AlphaColor(0,0,0,0)},streamerEndColor:{value:new s.AlphaColor(0,0,0,0)},streamerLength:{value:new s.Matrix3},mapUvTransform:{value:new s.Matrix3},streamerMapUvTransform:{value:new s.Matrix3},streamerMap:{value:null},maxUvValue:{value:1},streamerEmissiveIntensity:{value:0},baseEmissiveIntensity:{value:0}}]),c.type='PathMaterial',c}return q(b,a),g(b,[{key:'setMap',value:function b(a){!!this.map!==!!a&&(this.needsUpdate=!0),this.map=a}},{key:'setStreamerEnable',value:function b(a){this.defines.USE_STREAMER!==a&&(this.needsUpdate=!0),this.defines.USE_STREAMER=a}},{key:'setStreamerMap',value:function b(a){!!this.defines.USE_STREAMER_MAP!==!!a&&(this.needsUpdate=!0),this.uniforms.streamerMap.value=a,this.defines.USE_STREAMER_MAP=!!a}},{key:'setPBR',value:function b(a){!!this.defines.USE_PBR!==a&&(this.defines.USE_PBR=a,this.needsUpdate=!0)}}]),b}(s.MeshPhysicalMaterial);return a.exports={PathMaterial:t},a.exports});", "requires": [], "buildLevel": 6, "outputDir": "/com/three-common/0.0.1/children/material", "outputPath": "/com/three-common/0.0.1/children/material/PathMaterial.js", "fileName": "/children/material/PathMaterial.js" }, "pandav:/children/TileMap/Tilemap.js": { "cubeCode": "Cube('pandav:/com/three-common/0.0.1/children/TileMap/Tilemap',[],function(a){return a.exports={TILE_IMAGE_SIZE:256,MAX_LEVEL:24},a.exports});", "requires": [], "buildLevel": 18, "outputDir": "/com/three-common/0.0.1/children/TileMap", "outputPath": "/com/three-common/0.0.1/children/TileMap/Tilemap.js", "fileName": "/children/TileMap/Tilemap.js" }, "pandav:/children/ParticleSystem/ParticleSystem.js": { "cubeCode": "Cube('pandav:/com/three-common/0.0.1/children/ParticleSystem/ParticleSystem',['pandav:/com/three/0.145.0','pandav:/com/submodule-three-3d/1.0.0/src/ThreeChild','pandav:/com/submodule-three-3d/1.0.0'],function(a,b,c){function d(a){\"@babel/helpers - typeof\";return d='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&'function'==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?'symbol':typeof a},d(a)}function e(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')}function f(a,b){for(var c,d=0;dd&&(d=0),(1-Math.random())*(c-d)+d}function t(a){var b=s(a.direction.x),c=s(a.direction.y),d=s(a.direction.z),e=new w.Vector3(b,c,d);return e.normalize(),e.multiplyScalar(s(a.value)),e}function u(a){throw new Error('Function not implemented.')}var w=c('pandav:/com/three/0.145.0'),x=c('pandav:/com/submodule-three-3d/1.0.0/src/ThreeChild'),y=x.ThreeChild,z=c('pandav:/com/submodule-three-3d/1.0.0'),A=z.deg2rad,B=z.MultiColorLerp,C=z.ColorLerp,D=function(a){function b(a){var c;return e(this,b),c=k(this,b,[a]),c.particleList=[],c.emitRate=0,c.emitTime=0,c.maxCount=0,c.emitAreaRotateMatrix=new w.Matrix4,c.geometry=new w.BufferGeometry,c.particleMaterial=null,c.instancedMesh=null,c.planeGeometry=new w.PlaneGeometry(1,1),c.texture=null,c.needsUpdate=!0,c}return q(b,a),g(b,[{key:'onRefresh',value:function a(){this.needsUpdate=!0;var b=this,c=this.config,d=c.basic,e=c.emit,f=e.rate,g=e.area;this.emitRate=f/1e3,this.maxCount=d.maxCount,this.emitAreaRotateMatrix=this.emitAreaRotateMatrix.makeRotationFromEuler(new w.Euler(A(g.rotate.x),A(g.rotate.y),A(g.rotate.z)));var h=d.transform,i=h.translate,j=h.rotation,k=h.scale;this.position.set(i.x,i.y,i.z),this.rotation.set(A(j.x),A(j.y),A(j.z)),this.scale.set(k.x,k.y,k.z),this.hook('refreshTexture',function(){var a=b.context.assetsMgr.getTextureImage(d.texture),c=new w.Texture(a);c.needsUpdate=!0,b.texture?.dispose(),b.texture=c},void 0,[d.texture])}},{key:'onDispose',value:function a(){this.needsUpdate=!1,this.clear(),this.geometry.dispose(),this.planeGeometry?.dispose(),this.particleList=[],this.particleMaterial?.dispose(),this.texture?.dispose(),this.instancedMesh?.dispose()}},{key:'getAssetsListMap',value:function a(){return{HTMLImageElement:[this.config.basic.texture]}}},{key:'emit',value:function b(){var c=Math.cos,d=Math.sin,e=Math.PI,f=this.config,g=f.basic,h=g.lifeTime,i=g.start,j=g.end,k=f.emit.area,l=s(k.x),m=s(k.y),n=s(k.z);if('\\u7403\\u5F62'==k.shape){var o=2*(Math.random()*e),p=Math.random()*e;l=l*d(p)*c(o),m=m*d(p)*d(o),n*=c(p)}else if('\\u5706\\u5F62'==k.shape){var q=2*(Math.random()*e);l*=c(q),m*=d(q),n=0;var a=new w.Vector3(l,m,n);a.applyMatrix4(this.emitAreaRotateMatrix),l=a.x,m=a.y,n=a.z}var r=new F(1e3*s(h,!0),this.config);this.particleList.push(r),r.setPosition(l,m,n)}},{key:'onUpdate',value:function b(a){this.needsUpdate&&(this.updateEmit(a),this.updateParticles(a))}},{key:'updateEmit',value:function b(a){if(this.particleList.lengththis.maxCount&&(c=this.maxCount-this.particleList.length),1\\n\\nvoid main() {\\n vec4 diffuseColor = texture2D( map, vUv );\\n gl_FragColor = diffuseColor*(vColor,vOpacity);\\n gl_FragColor*=vec4(vColor,vOpacity);\\n #include \\n}\\n',blending:w.AdditiveBlending,depthTest:!1,transparent:!0});this.particleMaterial=f,this.clear();var g=new w.InstancedMesh(this.planeGeometry,this.particleMaterial,c.length);this.add(g),this.instancedMesh?.dispose(),this.instancedMesh=g;for(var h,j=0;j=this.lifeTimer?this.isDead=!0:this.lifeTimer-=a,this.width&&(this.width.update(a),this.setWidth(this.width.value)),this.height&&(this.height.update(a),this.setHeight(this.height.value)),this.rotate&&(this.rotate.update(a),this.setRotate(this.rotate.value)),this.attOpacity&&(this.attOpacity.update(a),this.setOpacity(this.attOpacity.value)),this.colorLerpRatio&&(this.colorLerpRatio.update(a),this.setColor(this.colorLerpRatio.value)),this.physics.update(a/1e3),this.position.copy(this.physics.position),this.centripetalForce&&(this.centripetalForce.setPosition(this.position),this.physics.composite())}}]),a}(),G=function(){function a(){e(this,a),this.velocity=new w.Vector3,this.position=new w.Vector3,this.forceMap=new Map,this.resultantForce=new w.Vector3}return g(a,[{key:'setForce',value:function c(a,b){var d=this.forceMap.get(a);d?(this.forceMap.set(a,b),this.composite()):(this.forceMap.set(a,b),this.resultantForce.add(b))}},{key:'removeForce',value:function c(a,b){this.forceMap['delete'](a),this.resultantForce.sub(b)}},{key:'getForce',value:function b(a){return this.forceMap.get(a)}},{key:'composite',value:function a(){var b=new w.Vector3(0,0,0);this.forceMap.forEach(function(a,c){b.add(a)}),this.resultantForce=b}},{key:'update',value:function b(a){var c=this.velocity,d=new w.Vector3;d.copy(this.resultantForce),d.multiplyScalar(a),c.add(d),d.copy(c),d.multiplyScalar(a),this.position.add(d)}}]),a}(),H=function(a){function b(a,c){var d;return e(this,b),d.center=new w.Vector3,d.magnitude=0,d.center=a,d.magnitude=c,l(d)}return q(b,a),g(b,[{key:'setPosition',value:function b(a){this.subVectors(this.center,a),this.normalize(),this.multiplyScalar(this.magnitude)}}]),b}(w.Vector3);return a.exports={ParticleSystem:D},a.exports});", "requires": [], "buildLevel": 8, "outputDir": "/com/three-common/0.0.1/children/ParticleSystem", "outputPath": "/com/three-common/0.0.1/children/ParticleSystem/ParticleSystem.js", "fileName": "/children/ParticleSystem/ParticleSystem.js" }, "pandav:/children/Water/BorderMap3dWater.js": { "cubeCode": "Cube('pandav:/com/three-common/0.0.1/children/Water/BorderMap3dWater',['pandav:/com/three-common/0.0.1/children/Water/Water','pandav:/com/three/0.145.0','pandav:/com/submodule-three-3d/1.0.0','pandav:/com/three-common/0.0.1/children/Child'],function(a,b,c){function d(a){\"@babel/helpers - typeof\";return d='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&'function'==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?'symbol':typeof a},d(a)}function e(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')}function f(a,b){for(var c,d=0;darguments.length?a:c):f.value}},o.apply(this,arguments)}function p(a,b){for(;!Object.prototype.hasOwnProperty.call(a,b)&&(a=q(a),null!==a););return a}function q(a){return q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function b(a){return a.__proto__||Object.getPrototypeOf(a)},q(a)}function r(a,b){if('function'!=typeof b&&null!==b)throw new TypeError('Super expression must either be null or a function');a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,'prototype',{writable:!1}),b&&s(a,b)}function s(a,b){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function c(a,b){return a.__proto__=b,a},s(a,b)}var t=c('pandav:/com/three-common/0.0.1/children/Water/Water'),u=t.Water,v=t.Noise,w=c('pandav:/com/three/0.145.0'),x=c('pandav:/com/submodule-three-3d/1.0.0'),y=x.EObjectContainer,z=c('pandav:/com/three-common/0.0.1/children/Child'),A=z.Child,B=function(a){function b(a){var c;return e(this,b),c=k(this,b,[a]),c.itemList=new y(n(c),u),c}return r(b,a),g(b,[{key:'onCreate',value:function a(){document.addEventListener('executeCode_'.concat(this.props.id),this.onAction_ExecuteCode)}},{key:'onRefresh',value:function a(){o(q(b.prototype),'onRefresh',this).call(this),this.refreshItem();var c=this.config.params.position;this.position.set(c.x,c.y,c.z)}},{key:'refreshItem',value:function a(){var b=[{id:w.MathUtils.generateUUID(),points:[{id:w.MathUtils.generateUUID(),position:[5e3,0,5e3]},{id:w.MathUtils.generateUUID(),position:[5e3,0,-5e3]},{id:w.MathUtils.generateUUID(),position:[-5e3,0,-5e3]},{id:w.MathUtils.generateUUID(),position:[-5e3,0,5e3]}],context:this,config:this.config,coordTransform:this.context.coordTransform}];this.itemList.refresh(b,{ref:['context','points','coordTransform'],deep:['config'],relatives:[this.context.coordTransform.uuid]})}},{key:'getAssetsListMap',value:function a(){o(q(b.prototype),'getAssetsListMap',this).call(this);var c=this.config.params.waveList,d=Object.values(c).map(function(a){return a.texture});return d.push(v),{texture:d}}},{key:'onAction_ExecuteCode',value:function b(a){this.itemList.list.length&&this.itemList.list.forEach(function(b){return b.onAction_ExecuteCode(a)})}},{key:'onDispose',value:function a(){o(q(b.prototype),'onDispose',this).call(this),this.itemList.clear()}},{key:'update',value:function b(a){this.itemList.list.forEach(function(b){return b.onUpdate(a)})}}]),b}(A);return a.exports={BorderMap3dWater:B},a.exports});", "requires": [ "pandav:/children/Water/Water.js", "pandav:/children/Child.js" ], "buildLevel": 6, "outputDir": "/com/three-common/0.0.1/children/Water", "outputPath": "/com/three-common/0.0.1/children/Water/BorderMap3dWater.js", "fileName": "/children/Water/BorderMap3dWater.js" }, "pandav:/children/TileMap/TileImageMgr.js": { "cubeCode": "Cube('pandav:/com/three-common/0.0.1/children/TileMap/TileImageMgr',['pandav:/com/three/0.145.0','pandav:/com/three-common/0.0.1/children/TileMap/TilemapClipper'],function(a,b,c){function d(a,b,c){return b=h(b),f(a,g()?Reflect.construct(b,c||[],h(a).constructor):b.apply(a,c))}function f(a,b){if(b&&('object'===l(b)||'function'==typeof b))return b;if(void 0!==b)throw new TypeError('Derived constructors may only return object or undefined');return i(a)}function g(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(a){}return(g=function b(){return!!a})()}function h(a){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function b(a){return a.__proto__||Object.getPrototypeOf(a)},h(a)}function i(a){if(void 0===a)throw new ReferenceError('this hasn\\'t been initialised - super() hasn\\'t been called');return a}function j(a,b){if('function'!=typeof b&&null!==b)throw new TypeError('Super expression must either be null or a function');a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,'prototype',{writable:!1}),b&&k(a,b)}function k(a,b){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function c(a,b){return a.__proto__=b,a},k(a,b)}function l(a){\"@babel/helpers - typeof\";return l='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&'function'==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?'symbol':typeof a},l(a)}function m(a,b){var c='undefined'!=typeof Symbol&&a[Symbol.iterator]||a['@@iterator'];if(!c){if(Array.isArray(a)||(c=n(a))||b&&a&&'number'==typeof a.length){c&&(a=c);var d=0,e=function a(){};return{s:e,n:function b(){return d>=a.length?{done:!0}:{done:!1,value:a[d++]}},e:function b(a){throw a},f:e}}throw new TypeError('Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.')}var f,g=!0,h=!1;return{s:function b(){c=c.call(a)},n:function a(){var b=c.next();return g=b.done,b},e:function b(a){h=!0,f=a},f:function a(){try{g||null==c.return||c.return()}finally{if(h)throw f}}}}function n(a,b){if(a){if('string'==typeof a)return p(a,b);var c=Object.prototype.toString.call(a).slice(8,-1);return'Object'===c&&a.constructor&&(c=a.constructor.name),'Map'===c||'Set'===c?Array.from(a):'Arguments'===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?p(a,b):void 0}}function p(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);cc){for(var f=e(2,c),g=0;g=d.preloadRequestMap.size&&d.preloadCallback();else{var a,g=m(d.loadedCallbackMap.values());try{for(g.s();!(a=g.n()).done;){var h=a.value;h(!0,b,f,c)}}catch(a){g.e(a)}finally{g.f()}}},function(f){if(d.onRequested(),!d.isDisposed)if(d.caches.set(e,!1),d.preloadCallback)d.preloadRequestMap.delete(e),0>=d.preloadRequestMap.size&&d.preloadCallback();else{var a,g=m(d.loadedCallbackMap.values());try{for(g.s();!(a=g.n()).done;){var h=a.value;h(!1,b,f,c)}}catch(a){g.e(a)}finally{g.f()}}})}},{key:'onRequested',value:function a(){if(this.parallelRequestCount--,this.parallelRequestCount=f.maxCount)){var g=f.onComplete;g&&g.call(f,f.canvas),c.batchMap.delete(f.id)}},this.imageTilemapService=b,b.setLoadedCallback(this.uuid,this.onImageLoaded)}return i(a,[{key:'getImage',value:function f(a,b,c,e){var g=Math.max,h=Math.floor,k=Math.pow,m=Math.ceil,p=Math.log2,t=[];n(a,t);var v=t[0],w=t[1],x=[];n(b,x);var y=x[0],z=x[1],A=m(p(s/((y-v)/(c/q))));if(A>r)return null;var B=k(2,A),C=s/B,D=(v+o)/C,E=(y+o)/C,F=(o-z)/C,G=(o-w)/C,H=h(D),I=m(E),J=h(F),K=m(G),L=E-D,M=G-F,N=g(L,M),O=N-L,P=N-M,Q=d(c/N),R=d(-(D-O/2)*Q),S=d(-(F-P/2)*Q),T=l.MathUtils.generateUUID();this.curBatch=new u(T,R,S,Q,c,e),this.batchMap.set(T,this.curBatch);for(var U=0,V=H;V=this.maxCount)return void console.warn('unexpected');if(!c)this.ctx.fillStyle='#fff',this.ctx.fillRect(d(this.offsetX+a.tileX*this.scale),d(this.offsetY+a.tileY*this.scale),d(this.scale),d(this.scale));else{var f=d(this.offsetX+a.tileX*this.scale),g=d(this.offsetY+a.tileY*this.scale);this.ctx.drawImage(b,f,g,d(this.scale),d(this.scale))}this.count++}}]),a}();return a.exports={TilemapClipper:t},a.exports});", "requires": [ "pandav:/utils.js", "pandav:/children/TileMap/Tilemap.js" ], "buildLevel": 17, "outputDir": "/com/three-common/0.0.1/children/TileMap", "outputPath": "/com/three-common/0.0.1/children/TileMap/TilemapClipper.js", "fileName": "/children/TileMap/TilemapClipper.js" }, "pandav:/children/Path/Path.js": { "cubeCode": "Cube('pandav:/com/three-common/0.0.1/children/Path/Path',['pandav:/com/three/0.145.0','pandav:/com/three-common/0.0.1/ComType','pandav:/com/submodule-three-3d/1.0.0/src/ThreeChild','pandav:/com/submodule-three-3d/1.0.0','pandav:/com/submodule-three-3d/1.0.0','pandav:/com/three-common/0.0.1/children/lib/StripLine2DGeometry','pandav:/com/three-common/0.0.1/children/material/PathMaterial','pandav:/com/three-common/0.0.1/object/ImageMesh','pandav:/com/submodule-three-3d/1.0.0','pandav:/com/tween-animation/2.0.0'],function(a,b,c){function d(a){\"@babel/helpers - typeof\";return d='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&'function'==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?'symbol':typeof a},d(a)}function e(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')}function f(a,b){for(var c,d=0;darguments.length?a:c):f.value}},p.apply(this,arguments)}function q(a,b){for(;!Object.prototype.hasOwnProperty.call(a,b)&&(a=r(a),null!==a););return a}function r(a){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function b(a){return a.__proto__||Object.getPrototypeOf(a)},r(a)}function s(a,b){if('function'!=typeof b&&null!==b)throw new TypeError('Super expression must either be null or a function');a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,'prototype',{writable:!1}),b&&t(a,b)}function t(a,b){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function c(a,b){return a.__proto__=b,a},t(a,b)}var u=c('pandav:/com/three/0.145.0'),v=c('pandav:/com/three-common/0.0.1/ComType'),w=v.ComType,x=c('pandav:/com/submodule-three-3d/1.0.0/src/ThreeChild'),y=x.ThreeChild,z=c('pandav:/com/submodule-three-3d/1.0.0'),A=z.EObjectContainer,B=c('pandav:/com/submodule-three-3d/1.0.0'),C=B.Hook,D=B.parseMulticolor,E=B.deg2rad,F=c('pandav:/com/three-common/0.0.1/children/lib/StripLine2DGeometry'),G=F.StripLine2DGeometry,H=c('pandav:/com/three-common/0.0.1/children/material/PathMaterial'),I=H.PathMaterial,J=c('pandav:/com/three-common/0.0.1/object/ImageMesh'),K=J.ImageMesh,L=c('pandav:/com/submodule-three-3d/1.0.0'),M=L.EventType,N=c('pandav:/com/tween-animation/2.0.0'),O=N.Tween,P=N.EaseType,Q=function(a){function b(a){var c;e(this,b),c=k(this,b,[a]);var d=o(c);return c.worldPositionsCaches=new Map,c.itemList=new A(o(c),R),c.onSet_geojsonData=function(a){var b=a.dynamicData;d.refreshItem(b)},c}return s(b,a),g(b,[{key:'onCreate',value:function a(){document.addEventListener('setGeojsonData_'.concat(this.props.id),this.onSet_geojsonData)}},{key:'onRefresh',value:function a(){p(r(b.prototype),'onRefresh',this).call(this);var c=this.config.custom.position;this.position.set(c.x,c.y,c.z),this.refreshItem()}},{key:'refreshItem',value:function b(a){var c=this,d=a?a:this.props.data,e=[];0=1-this.length))&&this.enableStreamer)if(0b.length)e.curve=null;else{for(var a=new u.CurvePath,c=0;ca.length)this.curve=null;else{for(var c=new u.CurvePath,d=0;da||1arguments.length?a:c):f.value}},o.apply(this,arguments)}function p(a,b){for(;!Object.prototype.hasOwnProperty.call(a,b)&&(a=q(a),null!==a););return a}function q(a){return q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function b(a){return a.__proto__||Object.getPrototypeOf(a)},q(a)}function r(a,b){if('function'!=typeof b&&null!==b)throw new TypeError('Super expression must either be null or a function');a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,'prototype',{writable:!1}),b&&s(a,b)}function s(a,b){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function c(a,b){return a.__proto__=b,a},s(a,b)}var t=c('pandav:/npm/react/17.0.2'),u=c('pandav:/com/three/0.145.0'),v=c('pandav:/com/submodule-three-3d/1.0.0'),w=v.ThreeComponent,x=c('pandav:/com/three-common/0.0.1/TextureMgr'),y=x.TextureMgr,z=c('pandav:/com/three-common/0.0.1/Postprocessor'),A=z.Postprocessor,B=c('pandav:/com/submodule-three-3d/1.0.0'),C=B.EventMgr,D=c('pandav:/com/submodule-three-3d/1.0.0'),E=D.EventLayer,F=c('pandav:/com/three-common/0.0.1/Action'),G=F.Action,H=c('pandav:/com/submodule-three-3d/1.0.0'),I=H.ThreeFixedController,J=H.TargetMode,K=c('pandav:/com/three-common/0.0.1/utils'),L=K.translatelikeVector3,M=K.getFileSuffix,N=c('pandav:/com/submodule-three-3d/1.0.0'),O=N.deg2rad,P=c('pandav:/com/three-common/0.0.1/UILayer'),Q=P.UILayer,R=c('pandav:/com/three-common/0.0.1/children/TileMap/TileImageMgr'),S=R.ImageTilemapService,T=c('pandav:/com/three-common/0.0.1/children/infoPanel/BorderMap3dInfoPanel'),U=T.BorderMap3dInfoPanel,V=c('pandav:/com/three-common/0.0.1/children/Column/Column'),W=V.Column,X=c('pandav:/com/three-common/0.0.1/children/Path/Path'),Y=X.Path,Z=c('pandav:/com/three-common/0.0.1/children/Board/BorderMap3dBoard'),$=Z.BorderMap3dBoard,_=c('pandav:/com/three-common/0.0.1/children/Light/BorderMap3dLight'),aa=_.BorderMap3dLight,ba=c('pandav:/com/three-common/0.0.1/children/Water/BorderMap3dWater'),ca=ba.BorderMap3dWater,da=c('pandav:/com/three-common/0.0.1/children/Image/BorderMap3dImage'),ea=da.BorderMap3dImage,fa=c('pandav:/com/three-common/0.0.1/children/FlyLine/BorderMap3dFlyLine'),ga=fa.BorderMap3dFlyLine,ha=c('pandav:/com/three-common/0.0.1/children/ParticleSystem/ParticleSystem'),ia=ha.ParticleSystem,ja=c('pandav:/com/three-common/0.0.1/ComType'),ka=ja.ComType,la=function(a){function b(a){var c;e(this,b),c=k(this,b,[a]);var d=n(c);return c.textureMgr=new y(c.assetsMgr),c.postprocessor=new A,c.type=ka.None,c.eventMgr=new C,c.controller=null,c.unitPixelRatio=1,c.eventLayer=null,c.baseAction=new G(n(c)),c.refUILayer=null,c.firstView=null,c.shadowConfig=null,c.ambientLight=null,c.axesHelper=null,c.imageTilemapService=new S,c.debug=!1,c.debugCamera=null,c.debugCameraHelper=null,c.viewMap=new Map,c.autoPlayView=null,c.commonConfig=void 0,c.onAssetsMgrLoaded=function(a,b){d.refUILayer?.refLoading?.setState({percentageValue:100*(a/b)})},c}return r(b,a),g(b,[{key:'sunLight',get:function a(){for(var b=0;bi&&(d*=i/j,g*=i/j),c.setSize(d,g,a),c.eventLayer.setSize(c.props.width,c.props.height)},void 0,[this.props.width,this.props.height,e,f,h]);var i=this.renderer.getDrawingBufferSize(new u.Vector2);this.hook('initPostprocessor',function(){c.postprocessor.setSize(i.width,i.height),c.postprocessor.init(c)},[])}},{key:'onAllComplete',value:function a(){var b=this;this.hideLoading(),this.autoPlayView&&this.addNextFrameCallback(function(){b.baseAction.switchView(b.autoPlayView),b.firstView=b.autoPlayView,b.updateControllerStandardViewDistance(b.autoPlayView)})}},{key:'updateControllerStandardViewDistance',value:function b(a){var c=a.camera,d=c.position,e=c.target,f=ma.set(d.x,d.y,d.z).distanceTo(na.set(e.x,e.y,e.z));this.controller.standardViewDistance=f}},{key:'renderUI',value:function a(){var b=this;return t.createElement(Q,{context:this,ref:function c(a){return b.refUILayer=a}},[this.renderExtendedUI()])}},{key:'renderExtendedUI',value:function a(){return null}},{key:'resetAll',value:function a(){o(q(b.prototype),'resetAll',this).call(this);var c=this.firstView||this.viewMap.values().next().value;c&&this.controller.setView(c.camera.position,c.camera.target)}},{key:'initChildClassMap',value:function a(){this.childClassMap={infoPanel:U,path:Y,board:$,light:aa,water:ca,image:ea,flyLine:ga,column:W,particleSystem:ia}}}]),b}(w),ma=new u.Vector3,na=new u.Vector3;return a.exports={Entry3d:la,ComType:ka},a.exports});", "requires": [ "pandav:/TextureMgr.js", "pandav:/Postprocessor.js", "pandav:/Action.js", "pandav:/utils.js", "pandav:/UILayer.js", "pandav:/children/TileMap/TileImageMgr.js", "pandav:/children/infoPanel/BorderMap3dInfoPanel.js", "pandav:/children/Column/Column.js", "pandav:/children/Path/Path.js", "pandav:/children/Board/BorderMap3dBoard.js", "pandav:/children/Light/BorderMap3dLight.js", "pandav:/children/Water/BorderMap3dWater.js", "pandav:/children/Image/BorderMap3dImage.js", "pandav:/children/FlyLine/BorderMap3dFlyLine.js", "pandav:/children/ParticleSystem/ParticleSystem.js", "pandav:/ComType.js" ], "buildLevel": 11, "outputDir": "/com/three-common/0.0.1", "outputPath": "/com/three-common/0.0.1/Entry3d.js", "fileName": "/Entry3d.js" }, "pandav:/object/ImageMeshStateMachine.js": { "cubeCode": "Cube('pandav:/com/three-common/0.0.1/object/ImageMeshStateMachine',['pandav:/com/three-common/0.0.1/object/CanvasTextureStateMachine'],function(a,b,c){function d(a){\"@babel/helpers - typeof\";return d='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&'function'==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?'symbol':typeof a},d(a)}function e(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')}function f(a,b){for(var c,d=0;darguments.length?a:c):f.value}},o.apply(this,arguments)}function p(a,b){for(;!Object.prototype.hasOwnProperty.call(a,b)&&(a=q(a),null!==a););return a}function q(a){return q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function b(a){return a.__proto__||Object.getPrototypeOf(a)},q(a)}function r(a,b){if('function'!=typeof b&&null!==b)throw new TypeError('Super expression must either be null or a function');a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,'prototype',{writable:!1}),b&&s(a,b)}function s(a,b){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function c(a,b){return a.__proto__=b,a},s(a,b)}var t=c('pandav:/com/three-common/0.0.1/object/CanvasTextureStateMachine'),u=t.CanvasTextureStateMachine,v=function(a){function b(a){var c;return e(this,b),c=k(this,b,[a]),c.unitPixelRatio=1,c}return r(b,a),g(b,[{key:'switchState',value:function d(a,c){o(q(b.prototype),'switchState',this).call(this,a,c);var e=this.stateMap.get(a);if(e){var f=e.canvas.width/this.unitPixelRatio,g=e.canvas.height/this.unitPixelRatio;this._object.setSize(f,g)}}}]),b}(u);return a.exports={ImageMeshStateMachine:v},a.exports});", "requires": [ "pandav:/object/CanvasTextureStateMachine.js" ], "buildLevel": 12, "outputDir": "/com/three-common/0.0.1/object", "outputPath": "/com/three-common/0.0.1/object/ImageMeshStateMachine.js", "fileName": "/object/ImageMeshStateMachine.js" }, "pandav:/object/ImageMesh.js": { "cubeCode": "Cube('pandav:/com/three-common/0.0.1/object/ImageMesh',['pandav:/com/three/0.145.0'],function(a,b,c){var d=Math.PI;function f(a){\"@babel/helpers - typeof\";return f='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&'function'==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?'symbol':typeof a},f(a)}function g(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')}function h(a,b){for(var c,d=0;dd[0]&&(d[0]=b.x),b.xd[1]&&(d[1]=b.z),b.zg.x&&(g.x=b.x),b.y>g.y&&(g.y=b.y),b.z>g.z&&(g.z=b.z)});try{c=l(h)}catch(a){this.pointsInfo={maxPoint:g,minPoint:f,shapeMaxPoint:[0,0],shapeMinPoint:[0,0],shapePoints:[],worldPositions:h}}var i=c,j=i.points,k=i.minPoint,n=i.minPoint;this.pointsInfo={maxPoint:g,minPoint:f,shapeMaxPoint:n,shapeMinPoint:k,shapePoints:j,worldPositions:h}}},{key:'refresh',value:function b(a){var c=this;this.props=a;var d=this.props.config,e=d.params,f=e.waveList,g=e.color,h=e.metalness,i=e.roughness,j=d.effect,k=j.refract,l=j.noTiled,n=a.points,o=a.coordTransform;this.hook.do('refreshPoints',function(){return c.refreshPoints(n)},{shallow:[o.uuid]});var p=this.pointsInfo;this.hook.do('refreshGeometry',function(){if(c.geometry?.dispose(),3>p.shapePoints.length)c.geometry=new m.BufferGeometry;else{var a=new m.ShapeGeometry(new m.Shape(p.shapePoints)),b=[];p.worldPositions.forEach(function(a){return b.push(a.x,a.y,a.z)}),a.setAttribute('position',new m.Float32BufferAttribute(b,3)),a.computeVertexNormals(),c.geometry=a}},{shallow:[]}),this.hook.do('createMaterial',function(){var b=a.context.assetsMgr.getTexture(r);b&&(b.wrapS=m.RepeatWrapping,b.wrapT=m.RepeatWrapping),c.material=new q({side:m.DoubleSide}),c.material.uniforms.noiseMap.value=b},[]),this.material.setValues({color:g,metalness:h,roughness:i}),this.material.needsUpdate=!0,this.hook.do('refreshMaterialDefines',function(){l.show?(c.material.defines.USE_NOISE='',c.material.setUniforms({noiseAmplitude:l.amplitude,noiseFrequency:l.frequency})):(delete c.material.defines.USE_NOISE,c.material.needsUpdate=!0)},[l]),Object.values(f).forEach(function(a,b){return c.updateWaveUniforms(b,a)}),this.mesh.geometry=this.geometry,this.mesh.material=this.material,this.mesh.position.set(0,0,0),this.hook.do('refreshRefractEnable',function(){k.show?(c.material.transmission=k.transmission,c.material.ior=k.ior,c.material.thickness=k.refractDistance,c.material.depthScatteringDeepestColor.setStyle(k.deepestColor),c.material.depthScatteringShallowestColor.setStyle(k.shallowestColor),c.material.colorScatteringDistance=k.scatteringDistance):(c.material.transmission=0,c.material.needsUpdate=!0)},[k])}},{key:'createTexture',value:function c(a,b){var d=this;return this.hook.do('createTexture'+a,function(){var a=d.props.context.assetsMgr.getTexture(b);return a?(a.wrapS=m.RepeatWrapping,a.wrapT=m.RepeatWrapping,a.needsUpdate=!0,a):null},[b])}},{key:'updateWaveUniforms',value:function c(a,b){var d=new m.Vector2(b.flowDirection.x,b.flowDirection.y);d.normalize(),d.multiplyScalar(b.flowSpeed);var f=e(e(e({},'tNormalMap'.concat(a),this.createTexture(1,b.texture)),'normalTilingVelocity_'.concat(a),new m.Vector4(b.scale.x,b.scale.y,d.x,d.y)),'normalScale_'.concat(a),b.normalStrength);this.material.setUniforms(f)}},{key:'onUpdate',value:function b(a){this.material.uniforms.time.value+=a/1e3}},{key:'dispose',value:function a(){this.geometry.dispose(),this.material.dispose(),this.mesh.removeFromParent(),document.removeEventListener('executeCode_'.concat(this.props.id),this.onAction_ExecuteCode)}}]),a}();return a.exports={Water:s,Noise:r},a.exports});", "requires": [ "pandav:/children/material/GisMapWater.js" ], "buildLevel": 7, "outputDir": "/com/three-common/0.0.1/children/Water", "outputPath": "/com/three-common/0.0.1/children/Water/Water.js", "fileName": "/children/Water/Water.js" }, "pandav:/pass/ColorCorrectionPass.js": { "cubeCode": "Cube('pandav:/com/three-common/0.0.1/pass/ColorCorrectionPass',['pandav:/com/three/0.145.0'],function(a,b,c){function d(a){\"@babel/helpers - typeof\";return d='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&'function'==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?'symbol':typeof a},d(a)}function e(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')}function f(a,b){for(var c,d=0;d 0.0) {\\n\\t\\tcolor.rgb = mix(color.rgb, vec3(1.0), lightness);\\n\\t}else {\\n\\t\\tcolor.rgb = mix(color.rgb, vec3(0.0), -lightness);\\n\\t}\\n}\\n\\nvoid brightnessContrastFunc( inout vec4 color, const in vec2 brightnessContrast ) {\\n brightnessCorrection(color, brightnessContrast.x);\\n contrastCorrection(color, brightnessContrast.y + 1.0);\\n}\\n\\nvoid hsvColorCorrectionFunc( inout vec4 color, const in vec3 hsv ) {\\n hueCorrection(color, hsv.x/2.0);\\n saturationCorrection(color, hsv.y + 1.0);\\n lightnessCorrection(color, hsv.z);\\n}\\n\\nuniform sampler2D tDiffuse;\\nuniform vec2 brightnessContrast;\\nuniform vec3 hsv;\\n\\nvarying vec2 vUv;\\n\\nvoid main() {\\n\\n gl_FragColor = texture2D( tDiffuse, vUv );\\n hsvColorCorrectionFunc( gl_FragColor, hsv );\\n brightnessContrastFunc( gl_FragColor, brightnessContrast );\\n\\n}',depthTest:!1,depthWrite:!1}),c.needsSwap=!0,c.fsQuad=new u(c.material),c}return q(b,a),g(b,[{key:'setBrightnessContrast',value:function c(a,b){this.material.uniforms.brightnessContrast.value.set(a/100,b/100)}},{key:'setHSV',value:function d(a,b,c){this.material.uniforms.hsv.value.set(a/100,b/100,c/100)}},{key:'render',value:function d(a,b,c){this.material.uniforms.tDiffuse.value=c.texture,this.renderToScreen?a.setRenderTarget(null):(a.setRenderTarget(b),this.clear&&a.clear()),this.fsQuad.render(a)}},{key:'renderFromTexture',value:function d(a,b,c){this.material.uniforms.tDiffuse.value=c,a.setRenderTarget(b),this.fsQuad.render(a)}},{key:'dispose',value:function a(){this.material.dispose()}}]),b}(t);return a.exports={ColorCorrectionPass:v},a.exports});", "requires": [], "buildLevel": 16, "outputDir": "/com/three-common/0.0.1/pass", "outputPath": "/com/three-common/0.0.1/pass/ColorCorrectionPass.js", "fileName": "/pass/ColorCorrectionPass.js" }, "pandav:/pass/GammaCorrectionPass.js": { "cubeCode": "Cube('pandav:/com/three-common/0.0.1/pass/GammaCorrectionPass',['pandav:/com/three/0.145.0'],function(a,b,c){function d(a){\"@babel/helpers - typeof\";return d='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&'function'==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?'symbol':typeof a},d(a)}function e(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')}function f(a,b){for(var c,d=0;d=this.timer&&(this.setState({frameCost:this.frameCost.output(),drawCall:this.drawCall.output(),cpuCost:this.cpuCost.output(),gpuCost:this.gpuCost.output(),childrenCPUCost:this.childrenCPUCost.output(),usedJSHeapSize:this.usedJSHeapSize.output(),totalJSHeapSize:this.totalJSHeapSize.output(),fps:this.fps.output(),camera:''.concat(f.x.toFixed(2),' ').concat(f.y.toFixed(2),' ').concat(f.z.toFixed(2)),target:''.concat(h.value.toFixed(2),' ').concat(i.value.toFixed(2),' ').concat(j.value.toFixed(2))}),this.timer=this.duration)}}},{key:'handldeType',value:function a(){var b=this.props.context.props.context,c=b.type,d=b.camera.position,e=b.controller;switch(c){case v.BorderMap3d:return{camera:d,controller:e};case v.Panorama:var f=e.rotateX,g=e.rotateY,h=e.depth,i=z(f.value,g.value);return A.set(0,0,-h.value).applyMatrix4(i),{camera:A,controller:e};default:return{}}}},{key:'render',value:function a(){if(!this.state.visible)return null;var b=this.props.context.props.context.props.width,c=260,d=230;return s.createElement('div',{style:{width:c,height:d,color:'#fff',position:'absolute',background:'rgba(0,0,0,0.5)',left:b-c,top:0,display:'flex',flexDirection:'column',padding:'1em 2em 1em 2em'}},s.createElement(C,{name:'FPS',value:this.state.fps}),s.createElement(C,{name:'\\u6BCF\\u5E27\\u6D88\\u8017',value:this.state.frameCost}),s.createElement(C,{name:'CPU\\u6D88\\u8017',value:this.state.cpuCost}),s.createElement(C,{name:'GPU\\u6D88\\u8017',value:this.state.gpuCost}),s.createElement(C,{name:'DrawCall',value:this.state.drawCall}),s.createElement(C,{name:'\\u4F4D\\u7F6E',flag:!0,value:this.state.camera}),s.createElement(C,{name:'\\u89C6\\u89D2',flag:!0,value:this.state.target}))}}]),b}(x),C=function(a){function b(a){var c;return e(this,b),c=k(this,b,[a]),c.nameStyle={flexBasis:'66.66%',textAlign:'left'},c.valueStyle={flexBasis:'33.33%',textAlign:'left'},c}return q(b,a),g(b,[{key:'render',value:function a(){return s.createElement('div',{style:{display:'flex',width:'100%',flexGrow:1}},s.createElement('div',{style:this.props.flag?this.valueStyle:this.nameStyle},this.props.name),s.createElement('div',{style:this.props.flag?this.nameStyle:this.valueStyle},this.props.value))}}]),b}(s.Component),D=function(){function a(b){e(this,a),this.total=0,this.count=0,this.decimals=0,this.decimals=b}return g(a,[{key:'add',value:function b(a){this.total+=a,this.count++}},{key:'output',value:function a(){var b=(this.total/this.count).toFixed(this.decimals);return this.total=0,this.count=0,b}}]),a}();return a.exports={StatisInfoPanel:B},a.exports});", "requires": [ "pandav:/ComType.js" ], "buildLevel": 16, "outputDir": "/com/three-common/0.0.1", "outputPath": "/com/three-common/0.0.1/StatisInfoPanel.js", "fileName": "/StatisInfoPanel.js" }, "pandav:/Postprocessor.js": { "cubeCode": "Cube('pandav:/com/three-common/0.0.1/Postprocessor',['pandav:/com/three/0.145.0','pandav:/com/three-common/0.0.1/pass/LDRPass','pandav:/com/three-common/0.0.1/pass/GammaCorrectionPass','pandav:/com/three-common/0.0.1/pass/ColorCorrectionPass','pandav:/com/three-common/0.0.1/pass/FogPass','pandav:/com/three-common/0.0.1/pass/LinearFogPass','pandav:/com/submodule-three-3d/1.0.0/src/Pass/Bloom2Pass'],function(a,b,c){function d(a){\"@babel/helpers - typeof\";return d='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&'function'==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?'symbol':typeof a},d(a)}function e(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')}function f(a,b){for(var c,d=0;dl.x&&(l.x=a.max.x),a.max.y>l.y&&(l.y=a.max.y),a.max.z>l.z&&(l.z=a.max.z),a.min.x-d&&a-d&&bb)return null;var c=a.slice(b+1);return c?c.toLowerCase():null},temperatureToRgb:function(a,b){var c=Math.pow,d=a;1e3>d&&(d=1e3),4e4=(d/=100)?e=255:(e=d-60,e=0>329.698727446*c(e,-.1332047592)?e=0:255=d?(f=d,f=99.4708025861*h(f)-161.1195681661,0>f&&(f=0),255f&&(f=0),255=d?g=0:(g=d-10,g=138.5177312231*h(g)-305.0447927307,0>g&&(g=0),255\\n\\n '.concat(t(a),'\\n \\n void main() {\\n \\n gl_FragColor = texture2D( tDiffuse, vUv );\\n gl_FragColor.rgb = passToneMapping( gl_FragColor.rgb );\\n gl_FragColor = clamp( gl_FragColor, 0.0, 1.0 );\\n \\n }')}function t(a){var b;return a===u.LinearToneMapping?b='Linear':a===u.ReinhardToneMapping?b='Reinhard':a===u.CineonToneMapping?b='OptimizedCineon':a===u.ACESFilmicToneMapping?b='ACESFilmic':a===u.CustomToneMapping?b='Custom':(console.warn('THREE.WebGLProgram: Unsupported toneMapping:',a),b='Linear'),'vec3 passToneMapping( vec3 color ) { return '+b+'ToneMapping( color ); }'}var u=c('pandav:/com/three/0.145.0'),v=u.Pass,w=u.FullScreenQuad,x=function(a){function b(a){var c;return e(this,b),c=k(this,b),c.material=void 0,c.fsQuad=void 0,c.toneMappingExposure=1,c._toneMapping=u.LinearToneMapping,c.material=new u.ShaderMaterial({uniforms:{tDiffuse:{value:null},toneMappingExposure:{value:1}},vertexShader:'\\nvarying vec2 vUv;\\nvoid main() {\\n vUv = uv;\\n gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\\n}',fragmentShader:s(c._toneMapping),depthTest:!1,depthWrite:!1,toneMapped:!0}),c.needsSwap=!0,c.fsQuad=new w(c.material),c}return q(b,a),g(b,[{key:'toneMapping',get:function a(){return this._toneMapping},set:function b(a){this._toneMapping!==a&&(this._toneMapping=a,this.material.fragmentShader=s(a),this.material.needsUpdate=!0)}},{key:'render',value:function f(a,b,c,d,e){var g=this.material.uniforms;g.tDiffuse.value=c.texture,g.toneMappingExposure.value=this.toneMappingExposure,a.setRenderTarget(this.getOutput(c,b)),this.fsQuad.material=this.material,this.fsQuad.render(a)}},{key:'dispose',value:function a(){this.material.dispose()}}]),b}(v);return a.exports={LDRPass:x},a.exports});", "requires": [], "buildLevel": 14, "outputDir": "/com/three-common/0.0.1/pass", "outputPath": "/com/three-common/0.0.1/pass/LDRPass.js", "fileName": "/pass/LDRPass.js" }, "pandav:/TransitionWrapper.js": { "cubeCode": "Cube('pandav:/com/three-common/0.0.1/TransitionWrapper',['pandav:/npm/react/17.0.2'],function(a,b,c){function d(a){\"@babel/helpers - typeof\";return d='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&'function'==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?'symbol':typeof a},d(a)}function e(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')}function f(a,b){for(var c,d=0;d