System.register("chunks:///_virtual/MouseMoveCamera.ts",["./_rollupPluginModLoBabelHelpers.js","cc"],(function(o){"use strict";var e,n,t,i,s,c,r,u,l,a,f,h,p;return{setters:[function(o){e=o.applyDecoratedDescriptor,n=o.inheritsLoose,t=o.initializerDefineProperty,i=o.assertThisInitialized},function(o){s=o.cclegacy,c=o._decorator,r=o.math,u=o.Node,l=o.UITransform,a=o.systemEvent,f=o.SystemEventType,h=o.macro,p=o.Component}],execute:function(){var y,E,m,g,_,U,M;s._RF.push({},"56a49UHlh1Efpm7PoqaoX/L","MouseMoveCamera",void 0);var v=c.ccclass,O=c.property;r.Vec2,r.Vec3,r.Quat,o("MouseMoveCamera",(y=v("MouseMoveCamera"),E=O({type:u}),m=O({type:l}),y((U=e((_=function(o){function e(){for(var e,n=arguments.length,s=new Array(n),c=0;c0?this.node.setRotationFromEuler(0,180*-Math.acos(-n)/Math.PI,0):this.node.setRotationFromEuler(0,180*Math.acos(-n)/Math.PI,0)}},r.OnClickEvent=function(){console.log(this.node.name),window.parent.postMessage({type:"toScene",key:this.node.name},"*")},r.getDistance=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)+Math.pow(t.z-e.z,2))},t}(u)).prototype,"camera_3d",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=t(g.prototype,"model",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=t(g.prototype,"isLookAtCam",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),M=t(g.prototype,"isCanClick",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_=t(g.prototype,"websiteUrl",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),b=g))||b));r._RF.pop()}}})); System.register("chunks:///_virtual/typescript.ts",["./_rollupPluginModLoBabelHelpers.js","cc","./FrontLabel.ts"],(function(e){"use strict";var t,i,n,o,s,a,r,l,g,c,h,u,m,d,F,p,P,f,y,Y;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.inheritsLoose,n=e.initializerDefineProperty,o=e.assertThisInitialized},function(e){s=e.cclegacy,a=e._decorator,r=e.Node,l=e.CCInteger,g=e.systemEvent,c=e.SystemEventType,h=e.Layers,u=e.game,m=e.Vec2,d=e.geometry,F=e.CameraComponent,p=e.math,P=e.Vec3,f=e.PhysicsSystem,y=e.Component},function(e){Y=e.FrontLabel}],execute:function(){var S,v,M,x,C,w,_,D,L,E;e("Axis",void 0),s._RF.push({},"db84aBtpFpEGq0hVnSgIqtJ","typescript",void 0);var b,I=a.ccclass,O=a.property;!function(e){e[e.PositiveX=0]="PositiveX",e[e.PositiveY=1]="PositiveY",e[e.NegativeX=2]="NegativeX",e[e.NegativeY=3]="NegativeY"}(b||(b=e("Axis",{})));e("Typescript",(S=I("Typescript"),v=O({type:r,tooltip:"围绕旋转的目标"}),M=O({type:l,tooltip:"手指移动控制模型移动的速度"}),x=O({type:l,tooltip:"模型移动的速度最大值"}),S((_=t((w=function(e){function t(){for(var t,i=arguments.length,s=new Array(i),a=0;athis.maxSpeed&&(this.anglePerFrame=this.maxSpeed),this.anglePerFrameY>this.maxSpeed&&(this.anglePerFrameY=this.maxSpeed),this.anglePerFrame<-this.maxSpeed&&(this.anglePerFrame=-this.maxSpeed),this.anglePerFrameY<-this.maxSpeed&&(this.anglePerFrameY=-this.maxSpeed),this.angle+=this.anglePerFrame},s.mouseScrollFunc=function(){this.mouseScrollY>0?(this.mouseScrollY=0,this.radius-=20,this.radius=p.clamp(this.radius,this.minScroll,this.maxScroll)):this.mouseScrollY<0&&(this.mouseScrollY=0,this.radius+=20,this.radius=p.clamp(this.radius,this.minScroll,this.maxScroll))},s.LimitYMove=function(){this.node.getPosition().y>=this.radius-.05*this.radius?this.anglePerFrameY<=0||(this.angleY+=this.anglePerFrameY):this.node.getPosition().y<=.2*this.radius&&this.anglePerFrameY>=0||(this.angleY+=this.anglePerFrameY)},s.SpeedDamping=function(e){this.anglePerFrame>.1?this.anglePerFrame-=.08:this.anglePerFrame<-.1?this.anglePerFrame+=.08:this.anglePerFrame=0,this.anglePerFrameY>.1?this.anglePerFrameY-=.08:this.anglePerFrameY<-.1?this.anglePerFrameY+=.08:this.anglePerFrameY=0},s.ResetAngle=function(){this.angle>=360?this.angle%=360:this.angle<=-360&&(this.angle%=-360),this.angleY>=360?this.angleY%=360:this.angleY<=-360&&(this.angleY%=-360)},s.run=function(e){e&&(this.target=e),this.target||console.log("No target!")},s.getAngle=function(e,t){return t.x-e.x==0?t.z>e.z?90:-90:Math.atan(t.y-e.y/t.x-e.x)},s.getDistance=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)+Math.pow(t.z-e.z,2))},t}(y)).prototype,"target",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=t(w.prototype,"radius",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),L=t(w.prototype,"speed",[M,O],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),E=t(w.prototype,"maxSpeed",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 5}}),C=w))||C));s._RF.pop()}}})); System.register("chunks:///_virtual/main",["./MouseMoveCamera.ts","./FrontLabel.ts","./typescript.ts"],(function(){"use strict";return{setters:[null,null,null],execute:function(){}}})); (function(r) { r('virtual:///prerequisite-imports/main', 'chunks:///_virtual/main'); })(function(mid, cid) { System.register(mid, [cid], function (_export, _context) { return { setters: [function(_m) { var _exportObj = {}; for (var _key in _m) { if (_key !== "default" && _key !== "__esModule") _exportObj[_key] = _m[_key]; } _export(_exportObj); }], execute: function () { } }; }); });