1 |
- {"ast":null,"code":"import { Logger } from \"../Misc/logger.js\";\nimport { CameraInputsManager } from \"./cameraInputsManager.js\";\nimport { FollowCameraKeyboardMoveInput } from \"./Inputs/followCameraKeyboardMoveInput.js\";\nimport { FollowCameraMouseWheelInput } from \"./Inputs/followCameraMouseWheelInput.js\";\nimport { FollowCameraPointersInput } from \"./Inputs/followCameraPointersInput.js\";\n/**\n * Default Inputs manager for the FollowCamera.\n * It groups all the default supported inputs for ease of use.\n * @see https://doc.babylonjs.com/features/featuresDeepDive/cameras/customizingCameraInputs\n */\nexport class FollowCameraInputsManager extends CameraInputsManager {\n /**\n * Instantiates a new FollowCameraInputsManager.\n * @param camera Defines the camera the inputs belong to\n */\n constructor(camera) {\n super(camera);\n }\n /**\n * Add keyboard input support to the input manager.\n * @returns the current input manager\n */\n addKeyboard() {\n this.add(new FollowCameraKeyboardMoveInput());\n return this;\n }\n /**\n * Add mouse wheel input support to the input manager.\n * @returns the current input manager\n */\n addMouseWheel() {\n this.add(new FollowCameraMouseWheelInput());\n return this;\n }\n /**\n * Add pointers input support to the input manager.\n * @returns the current input manager\n */\n addPointers() {\n this.add(new FollowCameraPointersInput());\n return this;\n }\n /**\n * Add orientation input support to the input manager.\n * @returns the current input manager\n */\n addVRDeviceOrientation() {\n Logger.Warn(\"DeviceOrientation support not yet implemented for FollowCamera.\");\n return this;\n }\n}","map":{"version":3,"names":["Logger","CameraInputsManager","FollowCameraKeyboardMoveInput","FollowCameraMouseWheelInput","FollowCameraPointersInput","FollowCameraInputsManager","constructor","camera","addKeyboard","add","addMouseWheel","addPointers","addVRDeviceOrientation","Warn"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/Cameras/followCameraInputsManager.js"],"sourcesContent":["import { Logger } from \"../Misc/logger.js\";\nimport { CameraInputsManager } from \"./cameraInputsManager.js\";\nimport { FollowCameraKeyboardMoveInput } from \"./Inputs/followCameraKeyboardMoveInput.js\";\nimport { FollowCameraMouseWheelInput } from \"./Inputs/followCameraMouseWheelInput.js\";\nimport { FollowCameraPointersInput } from \"./Inputs/followCameraPointersInput.js\";\n/**\n * Default Inputs manager for the FollowCamera.\n * It groups all the default supported inputs for ease of use.\n * @see https://doc.babylonjs.com/features/featuresDeepDive/cameras/customizingCameraInputs\n */\nexport class FollowCameraInputsManager extends CameraInputsManager {\n /**\n * Instantiates a new FollowCameraInputsManager.\n * @param camera Defines the camera the inputs belong to\n */\n constructor(camera) {\n super(camera);\n }\n /**\n * Add keyboard input support to the input manager.\n * @returns the current input manager\n */\n addKeyboard() {\n this.add(new FollowCameraKeyboardMoveInput());\n return this;\n }\n /**\n * Add mouse wheel input support to the input manager.\n * @returns the current input manager\n */\n addMouseWheel() {\n this.add(new FollowCameraMouseWheelInput());\n return this;\n }\n /**\n * Add pointers input support to the input manager.\n * @returns the current input manager\n */\n addPointers() {\n this.add(new FollowCameraPointersInput());\n return this;\n }\n /**\n * Add orientation input support to the input manager.\n * @returns the current input manager\n */\n addVRDeviceOrientation() {\n Logger.Warn(\"DeviceOrientation support not yet implemented for FollowCamera.\");\n return this;\n }\n}\n"],"mappings":"AAAA,SAASA,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,mBAAmB,QAAQ,0BAA0B;AAC9D,SAASC,6BAA6B,QAAQ,2CAA2C;AACzF,SAASC,2BAA2B,QAAQ,yCAAyC;AACrF,SAASC,yBAAyB,QAAQ,uCAAuC;AACjF;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,yBAAyB,SAASJ,mBAAmB,CAAC;EAC/D;AACJ;AACA;AACA;EACIK,WAAWA,CAACC,MAAM,EAAE;IAChB,KAAK,CAACA,MAAM,CAAC;EACjB;EACA;AACJ;AACA;AACA;EACIC,WAAWA,CAAA,EAAG;IACV,IAAI,CAACC,GAAG,CAAC,IAAIP,6BAA6B,CAAC,CAAC,CAAC;IAC7C,OAAO,IAAI;EACf;EACA;AACJ;AACA;AACA;EACIQ,aAAaA,CAAA,EAAG;IACZ,IAAI,CAACD,GAAG,CAAC,IAAIN,2BAA2B,CAAC,CAAC,CAAC;IAC3C,OAAO,IAAI;EACf;EACA;AACJ;AACA;AACA;EACIQ,WAAWA,CAAA,EAAG;IACV,IAAI,CAACF,GAAG,CAAC,IAAIL,yBAAyB,CAAC,CAAC,CAAC;IACzC,OAAO,IAAI;EACf;EACA;AACJ;AACA;AACA;EACIQ,sBAAsBA,CAAA,EAAG;IACrBZ,MAAM,CAACa,IAAI,CAAC,iEAAiE,CAAC;IAC9E,OAAO,IAAI;EACf;AACJ","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}
|