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(t){"use strict";var e,i,n,s,a,r,o,l,g,c,h,u,m,d,F,p,f,P,y,S;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.inheritsLoose,n=t.initializerDefineProperty,s=t.assertThisInitialized},function(t){a=t.cclegacy,r=t._decorator,o=t.Node,l=t.CCInteger,g=t.systemEvent,c=t.SystemEventType,h=t.Layers,u=t.game,m=t.Vec2,d=t.geometry,F=t.CameraComponent,p=t.math,f=t.Vec3,P=t.PhysicsSystem,y=t.Component},function(t){S=t.FrontLabel}],execute:function(){var Y,v,M,T,w,x,C,_,D;t("Axis",void 0),a._RF.push({},"db84aBtpFpEGq0hVnSgIqtJ","typescript",void 0);var L,E=r.ccclass,R=r.property;!function(t){t[t.PositiveX=0]="PositiveX",t[t.PositiveY=1]="PositiveY",t[t.NegativeX=2]="NegativeX",t[t.NegativeY=3]="NegativeY"}(L||(L=t("Axis",{})));t("Typescript",(Y=E("Typescript"),v=R({type:o,tooltip:"围绕旋转的目标"}),M=R({type:l,tooltip:"手指移动控制模型移动的速度"}),T=R({type:l,tooltip:"模型移动的速度最大值"}),Y((C=e((x=function(t){function e(){for(var e,i=arguments.length,a=new Array(i),r=0;r0&&(this.anglePerFrame=.7,this.startRotaTimeX-=t),this.startRotaTimeX<2&&this.startRotaTimeY>0&&(this.anglePerFrameY=.2,this.startRotaTimeY-=t),this.startRotaTimeX<=0&&this.startRotaTimeY<=0&&(this.delayTime>0?this.delayTime-=t:this.firstStart=!1)):this.startstartFuncTime-=t)},a.rayCheck=function(t,e,i,n,s,a){t&&(e.screenPointToRay(i,n,t),P.instance.raycastClosest(t)?s(P.instance.raycastClosestResult):null!=a&&a())},a.LimitMaxSpeed=function(){this.anglePerFrame>this.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},a.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))},a.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)},a.SpeedDamping=function(t,e){var i=3;e&&(i=.2),console.log(i),this.anglePerFrame>.1?this.anglePerFrame-=.02*i:this.anglePerFrame<-.1?this.anglePerFrame+=.02*i:this.anglePerFrame=0,this.anglePerFrameY>.1?this.anglePerFrameY-=.02*i:this.anglePerFrameY<-.1?this.anglePerFrameY+=.02*i:this.anglePerFrameY=0},a.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)},a.run=function(t){t&&(this.target=t),this.target||console.log("No target!")},a.getAngle=function(t,e){return e.x-t.x==0?e.z>t.z?90:-90:Math.atan(e.y-t.y/e.x-t.x)},a.getDistance=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)+Math.pow(e.z-t.z,2))},e}(y)).prototype,"target",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=e(x.prototype,"speed",[M,R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),D=e(x.prototype,"maxSpeed",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 4}}),w=x))||w));a._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 () { } }; }); });