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(){window.parent.postMessage({type:"toScene",key:this.node.name},"*")},r.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}(u)).prototype,"camera_3d",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=e(g.prototype,"model",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=e(g.prototype,"isLookAtCam",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),M=e(g.prototype,"isCanClick",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_=e(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,s,n,a,r,o,l,c,h,g,u,m,d,F,p,P,f,S,y;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.inheritsLoose,s=t.initializerDefineProperty,n=t.assertThisInitialized},function(t){a=t.cclegacy,r=t._decorator,o=t.Node,l=t.CCInteger,c=t.systemEvent,h=t.SystemEventType,g=t.Layers,u=t.game,m=t.Vec2,d=t.geometry,F=t.CameraComponent,p=t.math,P=t.Vec3,f=t.PhysicsSystem,S=t.Component},function(t){y=t.FrontLabel}],execute:function(){var Y,v,M,w,T,x,C,_,L,R,D;t("Axis",void 0),a._RF.push({},"db84aBtpFpEGq0hVnSgIqtJ","typescript",void 0);var X,b=r.ccclass,E=r.property;!function(t){t[t.PositiveX=0]="PositiveX",t[t.PositiveY=1]="PositiveY",t[t.NegativeX=2]="NegativeX",t[t.NegativeY=3]="NegativeY"}(X||(X=t("Axis",{})));t("Typescript",(Y=b("Typescript"),v=E({type:o,tooltip:"围绕旋转的目标"}),M=E({type:l,tooltip:"手指移动控制模型移动的速度"}),w=E({type:l,tooltip:"模型移动的速度最大值"}),T=E({type:o,tooltip:"屏幕适配"}),Y((_=e((C=function(t){function e(){for(var e,i=arguments.length,a=new Array(i),r=0;r0?this.isScaling=!1:this.isScaling=!0,Math.abs(this.screamPos.x)<2e3&&(this.isFisrtFunc=!0))},a.ResetRadius=function(){var t;this.isFisrtFunc&&this.isFisrtStart&&this.screamAdapter&&(null===(t=this.camera_3d)||void 0===t||t.worldToScreen(this.screamAdapter.getPosition(),this.screamPos),this.isScaling?(this.screamPos.x>=0&&(this.isFisrtStart=!1),this.radius+=5):(this.screamPos.x<=0&&(this.isFisrtStart=!1),this.radius-=5))},a.update=function(t){this.startFunc(t),-1==this.oneFinger&&-1==this.twoFinger&&(this.isMultiFinger=!1),this.mouseScrollFunc(),this.setCamPostion(),this.LimitMaxSpeed(),this.LimitYMove(),this.SpeedDamping(t,this.firstStart),this.ResetAngle()},a.onDestroy=function(){c.off(h.TOUCH_MOVE),c.off(h.MOUSE_MOVE)},a.setMultiFingerScale=function(){var t=m.distance(this.oneFingerPosition,this.twoFingerPosition);this.radius=this.radius/(t/this.distance),this.distance=t,this.radius=p.clamp(this.radius,this.minScroll,this.maxScroll)},a.setCamPostion=function(){if(this.target){var t=Math.PI/180*this.angle,e=Math.PI/180*this.angleY,i=this.target.getPosition().z+this.radius*Math.cos(e),s=this.target.getPosition().y+this.radius*Math.sin(e),n=this.target.getPosition().x+Math.abs(i-this.target.getPosition().z)*Math.cos(t),a=this.target.getPosition().z+Math.abs(i-this.target.getPosition().z)*Math.sin(t);this.node.setPosition(n,s,a),this.node.lookAt(this.target.getPosition(),P.UP)}},a.startFunc=function(t){0!=this.firstStart&&(this.startstartFuncTime<0?(this.startRotaTimeX>0&&(this.anglePerFrame=.7,this.angle>=45&&this.angle<90&&(this.startRotaTimeX=1),this.angle>=85&&(this.firstStart=!1,this.startRotaTimeX=0)),this.startRotaTimeX<2&&this.startRotaTimeY>0&&(this.anglePerFrameY=.35,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,s,n,a){t&&(e.screenPointToRay(i,s,t),f.instance.raycastClosest(t)?n(f.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),this.anglePerFrame>.1?this.anglePerFrame-=t*i:this.anglePerFrame<-.1?this.anglePerFrame+=t*i:this.anglePerFrame=0,this.anglePerFrameY>.1?this.anglePerFrameY-=t*i:this.anglePerFrameY<-.1?this.anglePerFrameY+=t*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}(S)).prototype,"target",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=e(C.prototype,"speed",[M,E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),R=e(C.prototype,"maxSpeed",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 4}}),D=e(C.prototype,"screamAdapter",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=C))||x));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 () { } }; }); });