a0ead50bb45e26a98fe87a466e4b6f0b66b3814eb9aeab263f775f890c1e6c85.json 5.5 KB

1
  1. {"ast":null,"code":"/**\n * Gather the list of keyboard event types as constants.\n */\nexport class KeyboardEventTypes {}\n/**\n * The keydown event is fired when a key becomes active (pressed).\n */\nKeyboardEventTypes.KEYDOWN = 0x01;\n/**\n * The keyup event is fired when a key has been released.\n */\nKeyboardEventTypes.KEYUP = 0x02;\n/**\n * This class is used to store keyboard related info for the onKeyboardObservable event.\n */\nexport class KeyboardInfo {\n /**\n * Instantiates a new keyboard info.\n * This class is used to store keyboard related info for the onKeyboardObservable event.\n * @param type Defines the type of event (KeyboardEventTypes)\n * @param event Defines the related dom event\n */\n constructor(\n /**\n * Defines the type of event (KeyboardEventTypes)\n */\n type,\n /**\n * Defines the related dom event\n */\n event) {\n this.type = type;\n this.event = event;\n }\n}\n/**\n * This class is used to store keyboard related info for the onPreKeyboardObservable event.\n * Set the skipOnKeyboardObservable property to true if you want the engine to stop any process after this event is triggered, even not calling onKeyboardObservable\n */\nexport class KeyboardInfoPre extends KeyboardInfo {\n /**\n * Defines whether the engine should skip the next onKeyboardObservable associated to this pre.\n * @deprecated use skipOnKeyboardObservable property instead\n */\n get skipOnPointerObservable() {\n return this.skipOnKeyboardObservable;\n }\n set skipOnPointerObservable(value) {\n this.skipOnKeyboardObservable = value;\n }\n /**\n * Instantiates a new keyboard pre info.\n * This class is used to store keyboard related info for the onPreKeyboardObservable event.\n * @param type Defines the type of event (KeyboardEventTypes)\n * @param event Defines the related dom event\n */\n constructor(\n /**\n * Defines the type of event (KeyboardEventTypes)\n */\n type,\n /**\n * Defines the related dom event\n */\n event) {\n super(type, event);\n this.type = type;\n this.event = event;\n this.skipOnKeyboardObservable = false;\n }\n}","map":{"version":3,"names":["KeyboardEventTypes","KEYDOWN","KEYUP","KeyboardInfo","constructor","type","event","KeyboardInfoPre","skipOnPointerObservable","skipOnKeyboardObservable","value"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/Events/keyboardEvents.js"],"sourcesContent":["/**\n * Gather the list of keyboard event types as constants.\n */\nexport class KeyboardEventTypes {\n}\n/**\n * The keydown event is fired when a key becomes active (pressed).\n */\nKeyboardEventTypes.KEYDOWN = 0x01;\n/**\n * The keyup event is fired when a key has been released.\n */\nKeyboardEventTypes.KEYUP = 0x02;\n/**\n * This class is used to store keyboard related info for the onKeyboardObservable event.\n */\nexport class KeyboardInfo {\n /**\n * Instantiates a new keyboard info.\n * This class is used to store keyboard related info for the onKeyboardObservable event.\n * @param type Defines the type of event (KeyboardEventTypes)\n * @param event Defines the related dom event\n */\n constructor(\n /**\n * Defines the type of event (KeyboardEventTypes)\n */\n type, \n /**\n * Defines the related dom event\n */\n event) {\n this.type = type;\n this.event = event;\n }\n}\n/**\n * This class is used to store keyboard related info for the onPreKeyboardObservable event.\n * Set the skipOnKeyboardObservable property to true if you want the engine to stop any process after this event is triggered, even not calling onKeyboardObservable\n */\nexport class KeyboardInfoPre extends KeyboardInfo {\n /**\n * Defines whether the engine should skip the next onKeyboardObservable associated to this pre.\n * @deprecated use skipOnKeyboardObservable property instead\n */\n get skipOnPointerObservable() {\n return this.skipOnKeyboardObservable;\n }\n set skipOnPointerObservable(value) {\n this.skipOnKeyboardObservable = value;\n }\n /**\n * Instantiates a new keyboard pre info.\n * This class is used to store keyboard related info for the onPreKeyboardObservable event.\n * @param type Defines the type of event (KeyboardEventTypes)\n * @param event Defines the related dom event\n */\n constructor(\n /**\n * Defines the type of event (KeyboardEventTypes)\n */\n type, \n /**\n * Defines the related dom event\n */\n event) {\n super(type, event);\n this.type = type;\n this.event = event;\n this.skipOnKeyboardObservable = false;\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAO,MAAMA,kBAAkB,CAAC;AAEhC;AACA;AACA;AACAA,kBAAkB,CAACC,OAAO,GAAG,IAAI;AACjC;AACA;AACA;AACAD,kBAAkB,CAACE,KAAK,GAAG,IAAI;AAC/B;AACA;AACA;AACA,OAAO,MAAMC,YAAY,CAAC;EACtB;AACJ;AACA;AACA;AACA;AACA;EACIC,WAAWA;EACX;AACJ;AACA;EACIC,IAAI;EACJ;AACJ;AACA;EACIC,KAAK,EAAE;IACH,IAAI,CAACD,IAAI,GAAGA,IAAI;IAChB,IAAI,CAACC,KAAK,GAAGA,KAAK;EACtB;AACJ;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,eAAe,SAASJ,YAAY,CAAC;EAC9C;AACJ;AACA;AACA;EACI,IAAIK,uBAAuBA,CAAA,EAAG;IAC1B,OAAO,IAAI,CAACC,wBAAwB;EACxC;EACA,IAAID,uBAAuBA,CAACE,KAAK,EAAE;IAC/B,IAAI,CAACD,wBAAwB,GAAGC,KAAK;EACzC;EACA;AACJ;AACA;AACA;AACA;AACA;EACIN,WAAWA;EACX;AACJ;AACA;EACIC,IAAI;EACJ;AACJ;AACA;EACIC,KAAK,EAAE;IACH,KAAK,CAACD,IAAI,EAAEC,KAAK,CAAC;IAClB,IAAI,CAACD,IAAI,GAAGA,IAAI;IAChB,IAAI,CAACC,KAAK,GAAGA,KAAK;IAClB,IAAI,CAACG,wBAAwB,GAAG,KAAK;EACzC;AACJ","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}