@babylonjs/gui 9.12.1 → 9.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/2D/FrameGraph/pure.d.ts +2 -0
- package/2D/FrameGraph/pure.js +3 -0
- package/2D/FrameGraph/pure.js.map +1 -0
- package/2D/FrameGraph/renderGraphGUIBlock.d.ts +3 -41
- package/2D/FrameGraph/renderGraphGUIBlock.js +5 -64
- package/2D/FrameGraph/renderGraphGUIBlock.js.map +1 -1
- package/2D/FrameGraph/renderGraphGUIBlock.pure.d.ts +48 -0
- package/2D/FrameGraph/renderGraphGUIBlock.pure.js +78 -0
- package/2D/FrameGraph/renderGraphGUIBlock.pure.js.map +1 -0
- package/2D/controls/button.d.ts +3 -107
- package/2D/controls/button.js +5 -243
- package/2D/controls/button.js.map +1 -1
- package/2D/controls/button.pure.d.ts +114 -0
- package/2D/controls/button.pure.js +257 -0
- package/2D/controls/button.pure.js.map +1 -0
- package/2D/controls/checkbox.d.ts +3 -51
- package/2D/controls/checkbox.js +5 -161
- package/2D/controls/checkbox.js.map +1 -1
- package/2D/controls/checkbox.pure.d.ts +58 -0
- package/2D/controls/checkbox.pure.js +175 -0
- package/2D/controls/checkbox.pure.js.map +1 -0
- package/2D/controls/colorpicker.d.ts +5 -101
- package/2D/controls/colorpicker.js +7 -1394
- package/2D/controls/colorpicker.js.map +1 -1
- package/2D/controls/colorpicker.pure.d.ts +106 -0
- package/2D/controls/colorpicker.pure.js +1406 -0
- package/2D/controls/colorpicker.pure.js.map +1 -0
- package/2D/controls/container.d.ts +3 -177
- package/2D/controls/container.js +5 -615
- package/2D/controls/container.js.map +1 -1
- package/2D/controls/container.pure.d.ts +184 -0
- package/2D/controls/container.pure.js +629 -0
- package/2D/controls/container.pure.js.map +1 -0
- package/2D/controls/control.d.ts +3 -944
- package/2D/controls/control.js +5 -2457
- package/2D/controls/control.js.map +1 -1
- package/2D/controls/control.pure.d.ts +951 -0
- package/2D/controls/control.pure.js +2471 -0
- package/2D/controls/control.pure.js.map +1 -0
- package/2D/controls/displayGrid.d.ts +5 -53
- package/2D/controls/displayGrid.js +7 -201
- package/2D/controls/displayGrid.js.map +1 -1
- package/2D/controls/displayGrid.pure.d.ts +58 -0
- package/2D/controls/displayGrid.pure.js +213 -0
- package/2D/controls/displayGrid.pure.js.map +1 -0
- package/2D/controls/ellipse.d.ts +5 -25
- package/2D/controls/ellipse.js +7 -92
- package/2D/controls/ellipse.js.map +1 -1
- package/2D/controls/ellipse.pure.d.ts +30 -0
- package/2D/controls/ellipse.pure.js +104 -0
- package/2D/controls/ellipse.pure.js.map +1 -0
- package/2D/controls/focusableButton.d.ts +3 -15
- package/2D/controls/focusableButton.js +5 -22
- package/2D/controls/focusableButton.js.map +1 -1
- package/2D/controls/focusableButton.pure.d.ts +22 -0
- package/2D/controls/focusableButton.pure.js +36 -0
- package/2D/controls/focusableButton.pure.js.map +1 -0
- package/2D/controls/gradient/LinearGradient.d.ts +3 -43
- package/2D/controls/gradient/LinearGradient.js +5 -70
- package/2D/controls/gradient/LinearGradient.js.map +1 -1
- package/2D/controls/gradient/LinearGradient.pure.d.ts +50 -0
- package/2D/controls/gradient/LinearGradient.pure.js +84 -0
- package/2D/controls/gradient/LinearGradient.pure.js.map +1 -0
- package/2D/controls/gradient/RadialGradient.d.ts +3 -51
- package/2D/controls/gradient/RadialGradient.js +5 -86
- package/2D/controls/gradient/RadialGradient.js.map +1 -1
- package/2D/controls/gradient/RadialGradient.pure.d.ts +58 -0
- package/2D/controls/gradient/RadialGradient.pure.js +100 -0
- package/2D/controls/gradient/RadialGradient.pure.js.map +1 -0
- package/2D/controls/gradient/pure.d.ts +3 -0
- package/2D/controls/gradient/pure.js +4 -0
- package/2D/controls/gradient/pure.js.map +1 -0
- package/2D/controls/grid.d.ts +3 -149
- package/2D/controls/grid.js +5 -525
- package/2D/controls/grid.js.map +1 -1
- package/2D/controls/grid.pure.d.ts +156 -0
- package/2D/controls/grid.pure.js +539 -0
- package/2D/controls/grid.pure.js.map +1 -0
- package/2D/controls/image.d.ts +3 -226
- package/2D/controls/image.js +5 -913
- package/2D/controls/image.js.map +1 -1
- package/2D/controls/image.pure.d.ts +233 -0
- package/2D/controls/image.pure.js +927 -0
- package/2D/controls/image.pure.js.map +1 -0
- package/2D/controls/inputPassword.d.ts +3 -7
- package/2D/controls/inputPassword.js +5 -19
- package/2D/controls/inputPassword.js.map +1 -1
- package/2D/controls/inputPassword.pure.d.ts +14 -0
- package/2D/controls/inputPassword.pure.js +33 -0
- package/2D/controls/inputPassword.pure.js.map +1 -0
- package/2D/controls/inputText.d.ts +3 -202
- package/2D/controls/inputText.js +5 -1050
- package/2D/controls/inputText.js.map +1 -1
- package/2D/controls/inputText.pure.d.ts +209 -0
- package/2D/controls/inputText.pure.js +1064 -0
- package/2D/controls/inputText.pure.js.map +1 -0
- package/2D/controls/inputTextArea.d.ts +3 -140
- package/2D/controls/inputTextArea.js +5 -1023
- package/2D/controls/inputTextArea.js.map +1 -1
- package/2D/controls/inputTextArea.pure.d.ts +147 -0
- package/2D/controls/inputTextArea.pure.js +1037 -0
- package/2D/controls/inputTextArea.pure.js.map +1 -0
- package/2D/controls/line.d.ts +5 -74
- package/2D/controls/line.js +7 -234
- package/2D/controls/line.js.map +1 -1
- package/2D/controls/line.pure.d.ts +79 -0
- package/2D/controls/line.pure.js +246 -0
- package/2D/controls/line.pure.js.map +1 -0
- package/2D/controls/multiLine.d.ts +3 -73
- package/2D/controls/multiLine.js +5 -234
- package/2D/controls/multiLine.js.map +1 -1
- package/2D/controls/multiLine.pure.d.ts +80 -0
- package/2D/controls/multiLine.pure.js +248 -0
- package/2D/controls/multiLine.pure.js.map +1 -0
- package/2D/controls/pure.d.ts +38 -0
- package/2D/controls/pure.js +39 -0
- package/2D/controls/pure.js.map +1 -0
- package/2D/controls/radioButton.d.ts +3 -47
- package/2D/controls/radioButton.js +5 -182
- package/2D/controls/radioButton.js.map +1 -1
- package/2D/controls/radioButton.pure.d.ts +54 -0
- package/2D/controls/radioButton.pure.js +196 -0
- package/2D/controls/radioButton.pure.js.map +1 -0
- package/2D/controls/rectangle.d.ts +5 -43
- package/2D/controls/rectangle.js +7 -205
- package/2D/controls/rectangle.js.map +1 -1
- package/2D/controls/rectangle.pure.d.ts +48 -0
- package/2D/controls/rectangle.pure.js +217 -0
- package/2D/controls/rectangle.pure.js.map +1 -0
- package/2D/controls/scrollViewers/pure.d.ts +2 -0
- package/2D/controls/scrollViewers/pure.js +3 -0
- package/2D/controls/scrollViewers/pure.js.map +1 -0
- package/2D/controls/scrollViewers/scrollViewer.d.ts +3 -176
- package/2D/controls/scrollViewers/scrollViewer.js +5 -584
- package/2D/controls/scrollViewers/scrollViewer.js.map +1 -1
- package/2D/controls/scrollViewers/scrollViewer.pure.d.ts +183 -0
- package/2D/controls/scrollViewers/scrollViewer.pure.js +598 -0
- package/2D/controls/scrollViewers/scrollViewer.pure.js.map +1 -0
- package/2D/controls/sliders/imageBasedSlider.d.ts +3 -45
- package/2D/controls/sliders/imageBasedSlider.js +5 -165
- package/2D/controls/sliders/imageBasedSlider.js.map +1 -1
- package/2D/controls/sliders/imageBasedSlider.pure.d.ts +52 -0
- package/2D/controls/sliders/imageBasedSlider.pure.js +179 -0
- package/2D/controls/sliders/imageBasedSlider.pure.js.map +1 -0
- package/2D/controls/sliders/pure.d.ts +4 -0
- package/2D/controls/sliders/pure.js +5 -0
- package/2D/controls/sliders/pure.js.map +1 -0
- package/2D/controls/sliders/scrollBar.d.ts +3 -48
- package/2D/controls/sliders/scrollBar.js +5 -170
- package/2D/controls/sliders/scrollBar.js.map +1 -1
- package/2D/controls/sliders/scrollBar.pure.d.ts +55 -0
- package/2D/controls/sliders/scrollBar.pure.js +184 -0
- package/2D/controls/sliders/scrollBar.pure.js.map +1 -0
- package/2D/controls/sliders/slider.d.ts +3 -44
- package/2D/controls/sliders/slider.js +5 -278
- package/2D/controls/sliders/slider.js.map +1 -1
- package/2D/controls/sliders/slider.pure.d.ts +51 -0
- package/2D/controls/sliders/slider.pure.js +292 -0
- package/2D/controls/sliders/slider.pure.js.map +1 -0
- package/2D/controls/stackPanel.d.ts +3 -62
- package/2D/controls/stackPanel.js +5 -243
- package/2D/controls/stackPanel.js.map +1 -1
- package/2D/controls/stackPanel.pure.d.ts +69 -0
- package/2D/controls/stackPanel.pure.js +257 -0
- package/2D/controls/stackPanel.pure.js.map +1 -0
- package/2D/controls/statics.d.ts +3 -4
- package/2D/controls/statics.js +5 -47
- package/2D/controls/statics.js.map +1 -1
- package/2D/controls/statics.pure.d.ts +11 -0
- package/2D/controls/statics.pure.js +61 -0
- package/2D/controls/statics.pure.js.map +1 -0
- package/2D/controls/textBlock.d.ts +3 -217
- package/2D/controls/textBlock.js +5 -676
- package/2D/controls/textBlock.js.map +1 -1
- package/2D/controls/textBlock.pure.d.ts +224 -0
- package/2D/controls/textBlock.pure.js +690 -0
- package/2D/controls/textBlock.pure.js.map +1 -0
- package/2D/controls/toggleButton.d.ts +3 -91
- package/2D/controls/toggleButton.js +5 -226
- package/2D/controls/toggleButton.js.map +1 -1
- package/2D/controls/toggleButton.pure.d.ts +98 -0
- package/2D/controls/toggleButton.pure.js +240 -0
- package/2D/controls/toggleButton.pure.js.map +1 -0
- package/2D/controls/virtualKeyboard.d.ts +3 -100
- package/2D/controls/virtualKeyboard.js +5 -272
- package/2D/controls/virtualKeyboard.js.map +1 -1
- package/2D/controls/virtualKeyboard.pure.d.ts +107 -0
- package/2D/controls/virtualKeyboard.pure.js +286 -0
- package/2D/controls/virtualKeyboard.pure.js.map +1 -0
- package/2D/pure.d.ts +13 -0
- package/2D/pure.js +15 -0
- package/2D/pure.js.map +1 -0
- package/3D/controls/pure.d.ts +23 -0
- package/3D/controls/pure.js +24 -0
- package/3D/controls/pure.js.map +1 -0
- package/3D/gizmos/pure.d.ts +3 -0
- package/3D/gizmos/pure.js +4 -0
- package/3D/gizmos/pure.js.map +1 -0
- package/3D/materials/fluent/fluentMaterial.d.ts +5 -100
- package/3D/materials/fluent/fluentMaterial.js +7 -305
- package/3D/materials/fluent/fluentMaterial.js.map +1 -1
- package/3D/materials/fluent/fluentMaterial.pure.d.ts +105 -0
- package/3D/materials/fluent/fluentMaterial.pure.js +317 -0
- package/3D/materials/fluent/fluentMaterial.pure.js.map +1 -0
- package/3D/materials/fluent/pure.d.ts +2 -0
- package/3D/materials/fluent/pure.js +3 -0
- package/3D/materials/fluent/pure.js.map +1 -0
- package/3D/materials/fluentBackplate/fluentBackplateMaterial.d.ts +5 -164
- package/3D/materials/fluentBackplate/fluentBackplateMaterial.js +7 -488
- package/3D/materials/fluentBackplate/fluentBackplateMaterial.js.map +1 -1
- package/3D/materials/fluentBackplate/fluentBackplateMaterial.pure.d.ts +169 -0
- package/3D/materials/fluentBackplate/fluentBackplateMaterial.pure.js +500 -0
- package/3D/materials/fluentBackplate/fluentBackplateMaterial.pure.js.map +1 -0
- package/3D/materials/fluentBackplate/pure.d.ts +2 -0
- package/3D/materials/fluentBackplate/pure.js +3 -0
- package/3D/materials/fluentBackplate/pure.js.map +1 -0
- package/3D/materials/fluentButton/fluentButtonMaterial.d.ts +5 -200
- package/3D/materials/fluentButton/fluentButtonMaterial.js +7 -563
- package/3D/materials/fluentButton/fluentButtonMaterial.js.map +1 -1
- package/3D/materials/fluentButton/fluentButtonMaterial.pure.d.ts +205 -0
- package/3D/materials/fluentButton/fluentButtonMaterial.pure.js +575 -0
- package/3D/materials/fluentButton/fluentButtonMaterial.pure.js.map +1 -0
- package/3D/materials/fluentButton/pure.d.ts +2 -0
- package/3D/materials/fluentButton/pure.js +3 -0
- package/3D/materials/fluentButton/pure.js.map +1 -0
- package/3D/materials/handle/handleMaterial.d.ts +5 -66
- package/3D/materials/handle/handleMaterial.js +5 -118
- package/3D/materials/handle/handleMaterial.js.map +1 -1
- package/3D/materials/handle/handleMaterial.pure.d.ts +66 -0
- package/3D/materials/handle/handleMaterial.pure.js +119 -0
- package/3D/materials/handle/handleMaterial.pure.js.map +1 -0
- package/3D/materials/handle/pure.d.ts +2 -0
- package/3D/materials/handle/pure.js +3 -0
- package/3D/materials/handle/pure.js.map +1 -0
- package/3D/materials/mrdl/mrdlBackglowMaterial.d.ts +5 -85
- package/3D/materials/mrdl/mrdlBackglowMaterial.js +7 -299
- package/3D/materials/mrdl/mrdlBackglowMaterial.js.map +1 -1
- package/3D/materials/mrdl/mrdlBackglowMaterial.pure.d.ts +90 -0
- package/3D/materials/mrdl/mrdlBackglowMaterial.pure.js +311 -0
- package/3D/materials/mrdl/mrdlBackglowMaterial.pure.js.map +1 -0
- package/3D/materials/mrdl/mrdlBackplateMaterial.d.ts +5 -145
- package/3D/materials/mrdl/mrdlBackplateMaterial.js +7 -433
- package/3D/materials/mrdl/mrdlBackplateMaterial.js.map +1 -1
- package/3D/materials/mrdl/mrdlBackplateMaterial.pure.d.ts +157 -0
- package/3D/materials/mrdl/mrdlBackplateMaterial.pure.js +452 -0
- package/3D/materials/mrdl/mrdlBackplateMaterial.pure.js.map +1 -0
- package/3D/materials/mrdl/mrdlFrontplateMaterial.d.ts +5 -183
- package/3D/materials/mrdl/mrdlFrontplateMaterial.js +7 -532
- package/3D/materials/mrdl/mrdlFrontplateMaterial.js.map +1 -1
- package/3D/materials/mrdl/mrdlFrontplateMaterial.pure.d.ts +188 -0
- package/3D/materials/mrdl/mrdlFrontplateMaterial.pure.js +544 -0
- package/3D/materials/mrdl/mrdlFrontplateMaterial.pure.js.map +1 -0
- package/3D/materials/mrdl/mrdlInnerquadMaterial.d.ts +5 -54
- package/3D/materials/mrdl/mrdlInnerquadMaterial.js +7 -227
- package/3D/materials/mrdl/mrdlInnerquadMaterial.js.map +1 -1
- package/3D/materials/mrdl/mrdlInnerquadMaterial.pure.d.ts +59 -0
- package/3D/materials/mrdl/mrdlInnerquadMaterial.pure.js +239 -0
- package/3D/materials/mrdl/mrdlInnerquadMaterial.pure.js.map +1 -0
- package/3D/materials/mrdl/mrdlSliderBarMaterial.d.ts +5 -334
- package/3D/materials/mrdl/mrdlSliderBarMaterial.js +7 -855
- package/3D/materials/mrdl/mrdlSliderBarMaterial.js.map +1 -1
- package/3D/materials/mrdl/mrdlSliderBarMaterial.pure.d.ts +346 -0
- package/3D/materials/mrdl/mrdlSliderBarMaterial.pure.js +874 -0
- package/3D/materials/mrdl/mrdlSliderBarMaterial.pure.js.map +1 -0
- package/3D/materials/mrdl/mrdlSliderThumbMaterial.d.ts +5 -334
- package/3D/materials/mrdl/mrdlSliderThumbMaterial.js +7 -855
- package/3D/materials/mrdl/mrdlSliderThumbMaterial.js.map +1 -1
- package/3D/materials/mrdl/mrdlSliderThumbMaterial.pure.d.ts +346 -0
- package/3D/materials/mrdl/mrdlSliderThumbMaterial.pure.js +874 -0
- package/3D/materials/mrdl/mrdlSliderThumbMaterial.pure.js.map +1 -0
- package/3D/materials/mrdl/pure.d.ts +7 -0
- package/3D/materials/mrdl/pure.js +8 -0
- package/3D/materials/mrdl/pure.js.map +1 -0
- package/3D/materials/pure.d.ts +6 -0
- package/3D/materials/pure.js +8 -0
- package/3D/materials/pure.js.map +1 -0
- package/3D/pure.d.ts +6 -0
- package/3D/pure.js +8 -0
- package/3D/pure.js.map +1 -0
- package/package.json +50 -3
- package/pure.d.ts +3 -0
- package/pure.js +5 -0
- package/pure.js.map +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"virtualKeyboard.js","sourceRoot":"","sources":["../../../../../dev/gui/src/2D/controls/virtualKeyboard.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEjE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIlC,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD;;GAEG;AACH,MAAM,OAAO,cAAc;CAiB1B;AAQD;;GAEG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G,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;QACrF,WAAW,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;QAEpD,OAAO,WAAW,CAAC;IACvB,CAAC;IAED;;OAEG;IACa,iBAAiB,CAAC,gBAAqB,EAAE,IAA4B;QACjF,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,EAAE,IAAI,CAAC,CAAC;QAChD,KAAK,MAAM,GAAG,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAC9B,IAAI,GAAG,CAAC,YAAY,EAAE,KAAK,YAAY,EAAE,CAAC;gBACtC,MAAM,UAAU,GAAG,GAAiB,CAAC;gBACrC,KAAK,MAAM,GAAG,IAAI,UAAU,CAAC,QAAQ,EAAE,CAAC;oBACpC,IAAI,GAAG,CAAC,YAAY,EAAE,KAAK,QAAQ,IAAI,GAAG,CAAC,IAAI,EAAE,CAAC;wBAC9C,GAAG,CAAC,qBAAqB,CAAC,GAAG,CAAC,GAAG,EAAE;4BAC/B,IAAI,CAAC,oBAAoB,CAAC,eAAe,CAAC,GAAG,CAAC,IAAc,CAAC,CAAC;wBAClE,CAAC,CAAC,CAAC;oBACP,CAAC;gBACL,CAAC;YACL,CAAC;QACL,CAAC;IACL,CAAC;CACJ;AAED,aAAa,CAAC,6BAA6B,EAAE,eAAe,CAAC,CAAC","sourcesContent":["import { type Nullable } from \"core/types\";\r\nimport { type Observer, Observable } from \"core/Misc/observable\";\r\n\r\nimport { StackPanel } from \"./stackPanel\";\r\nimport { Button } from \"./button\";\r\nimport { type Container } from \"./container\";\r\nimport { type TextBlock } from \"./textBlock\";\r\nimport { type InputText } from \"./inputText\";\r\nimport { RegisterClass } from \"core/Misc/typeStore\";\r\nimport { type AdvancedDynamicTexture } from \"../advancedDynamicTexture\";\r\nimport { InputTextArea } from \"./inputTextArea\";\r\nimport { type Control } from \"./control\";\r\n\r\n/**\r\n * Class used to store key control properties\r\n */\r\nexport class KeyPropertySet {\r\n /** Width */\r\n width?: string;\r\n /** Height */\r\n height?: string;\r\n /** Left padding */\r\n paddingLeft?: string;\r\n /** Right padding */\r\n paddingRight?: string;\r\n /** Top padding */\r\n paddingTop?: string;\r\n /** Bottom padding */\r\n paddingBottom?: string;\r\n /** Foreground color */\r\n color?: string;\r\n /** Background color */\r\n background?: string;\r\n}\r\n\r\ntype ConnectedInputText = {\r\n input: InputText;\r\n onFocusObserver: Nullable<Observer<Control>>;\r\n onBlurObserver: Nullable<Observer<Control>>;\r\n};\r\n\r\n/**\r\n * Class used to create virtual keyboard\r\n */\r\nexport class VirtualKeyboard extends StackPanel {\r\n /** Observable raised when a key is pressed */\r\n public onKeyPressObservable = new Observable<string>();\r\n\r\n /** Gets or sets default key button width */\r\n public defaultButtonWidth = \"40px\";\r\n /** Gets or sets default key button height */\r\n public defaultButtonHeight = \"40px\";\r\n\r\n /** Gets or sets default key button left padding */\r\n public defaultButtonPaddingLeft = \"2px\";\r\n /** Gets or sets default key button right padding */\r\n public defaultButtonPaddingRight = \"2px\";\r\n /** Gets or sets default key button top padding */\r\n public defaultButtonPaddingTop = \"2px\";\r\n /** Gets or sets default key button bottom padding */\r\n public defaultButtonPaddingBottom = \"2px\";\r\n\r\n /** Gets or sets default key button foreground color */\r\n public defaultButtonColor = \"#DDD\";\r\n /** Gets or sets default key button background color */\r\n public defaultButtonBackground = \"#070707\";\r\n\r\n /** Gets or sets shift button foreground color */\r\n public shiftButtonColor = \"#7799FF\";\r\n /** Gets or sets shift button thickness*/\r\n public selectedShiftThickness = 1;\r\n\r\n /** Gets shift key state */\r\n public shiftState = 0;\r\n\r\n protected override _getTypeName(): string {\r\n return \"VirtualKeyboard\";\r\n }\r\n\r\n private _createKey(key: string, propertySet: Nullable<KeyPropertySet>) {\r\n const button = Button.CreateSimpleButton(key, key);\r\n\r\n button.width = propertySet && propertySet.width ? propertySet.width : this.defaultButtonWidth;\r\n button.height = propertySet && propertySet.height ? propertySet.height : this.defaultButtonHeight;\r\n button.color = propertySet && propertySet.color ? propertySet.color : this.defaultButtonColor;\r\n button.background = propertySet && propertySet.background ? propertySet.background : this.defaultButtonBackground;\r\n button.paddingLeft = propertySet && propertySet.paddingLeft ? propertySet.paddingLeft : this.defaultButtonPaddingLeft;\r\n button.paddingRight = propertySet && propertySet.paddingRight ? propertySet.paddingRight : this.defaultButtonPaddingRight;\r\n button.paddingTop = propertySet && propertySet.paddingTop ? propertySet.paddingTop : this.defaultButtonPaddingTop;\r\n button.paddingBottom = propertySet && propertySet.paddingBottom ? propertySet.paddingBottom : this.defaultButtonPaddingBottom;\r\n\r\n button.thickness = 0;\r\n button.isFocusInvisible = true;\r\n\r\n button.shadowColor = this.shadowColor;\r\n button.shadowBlur = this.shadowBlur;\r\n button.shadowOffsetX = this.shadowOffsetX;\r\n button.shadowOffsetY = this.shadowOffsetY;\r\n\r\n button.onPointerUpObservable.add(() => {\r\n this.onKeyPressObservable.notifyObservers(key);\r\n });\r\n\r\n return button;\r\n }\r\n\r\n /**\r\n * Adds a new row of keys\r\n * @param keys defines the list of keys to add\r\n * @param propertySets defines the associated property sets\r\n */\r\n public addKeysRow(keys: Array<string>, propertySets?: Array<KeyPropertySet>): void {\r\n const panel = new StackPanel();\r\n panel.isVertical = false;\r\n panel.isFocusInvisible = true;\r\n\r\n let maxKey: Nullable<Button> = null;\r\n for (let i = 0; i < keys.length; i++) {\r\n let properties = null;\r\n\r\n if (propertySets && propertySets.length === keys.length) {\r\n properties = propertySets[i];\r\n }\r\n\r\n const key = this._createKey(keys[i], properties);\r\n if (!maxKey || key.heightInPixels > maxKey.heightInPixels) {\r\n maxKey = key;\r\n }\r\n\r\n panel.addControl(key);\r\n }\r\n\r\n panel.height = maxKey ? maxKey.height : this.defaultButtonHeight;\r\n\r\n this.addControl(panel);\r\n }\r\n\r\n /**\r\n * Set the shift key to a specific state\r\n * @param shiftState defines the new shift state\r\n */\r\n public applyShiftState(shiftState: number): void {\r\n if (!this.children) {\r\n return;\r\n }\r\n\r\n for (let i = 0; i < this.children.length; i++) {\r\n const row = this.children[i];\r\n if (!row || !(<Container>row).children) {\r\n continue;\r\n }\r\n\r\n const rowContainer = <Container>row;\r\n for (let j = 0; j < rowContainer.children.length; j++) {\r\n const button = rowContainer.children[j] as Button;\r\n\r\n if (!button || !button.children[0]) {\r\n continue;\r\n }\r\n\r\n const buttonTblock = button.children[0] as TextBlock;\r\n\r\n if (buttonTblock.text === \"\\u21E7\") {\r\n button.color = shiftState ? this.shiftButtonColor : this.defaultButtonColor;\r\n button.thickness = shiftState > 1 ? this.selectedShiftThickness : 0;\r\n }\r\n\r\n buttonTblock.text = shiftState > 0 ? buttonTblock.text.toUpperCase() : buttonTblock.text.toLowerCase();\r\n }\r\n }\r\n }\r\n\r\n private _currentlyConnectedInputText: Nullable<InputText | InputTextArea> = null;\r\n private _connectedInputTexts: ConnectedInputText[] = [];\r\n private _onKeyPressObserver: Nullable<Observer<string>> = null;\r\n\r\n /** Gets the input text control currently attached to the keyboard */\r\n public get connectedInputText(): Nullable<InputText | InputTextArea> {\r\n return this._currentlyConnectedInputText;\r\n }\r\n\r\n /**\r\n * Connects the keyboard with an input text control\r\n *\r\n * @param input defines the target control\r\n */\r\n public connect(input: InputText): void {\r\n const inputTextAlreadyConnected = this._connectedInputTexts.some((a) => a.input === input);\r\n if (inputTextAlreadyConnected) {\r\n return;\r\n }\r\n\r\n if (this._onKeyPressObserver === null) {\r\n this._onKeyPressObserver = this.onKeyPressObservable.add((key) => {\r\n if (!this._currentlyConnectedInputText) {\r\n return;\r\n }\r\n\r\n this._currentlyConnectedInputText._host.focusedControl = this._currentlyConnectedInputText;\r\n\r\n switch (key) {\r\n case \"\\u21E7\":\r\n this.shiftState++;\r\n if (this.shiftState > 2) {\r\n this.shiftState = 0;\r\n }\r\n this.applyShiftState(this.shiftState);\r\n return;\r\n case \"\\u2190\":\r\n if (this._currentlyConnectedInputText instanceof InputTextArea) {\r\n this._currentlyConnectedInputText.alternativeProcessKey(\"Backspace\");\r\n } else {\r\n this._currentlyConnectedInputText.processKey(8);\r\n }\r\n return;\r\n case \"\\u21B5\":\r\n if (this._currentlyConnectedInputText instanceof InputTextArea) {\r\n this._currentlyConnectedInputText.alternativeProcessKey(\"Enter\");\r\n } else {\r\n this._currentlyConnectedInputText.processKey(13);\r\n }\r\n return;\r\n }\r\n if (this._currentlyConnectedInputText instanceof InputTextArea) {\r\n this._currentlyConnectedInputText.alternativeProcessKey(\"\", this.shiftState ? key.toUpperCase() : key);\r\n } else {\r\n this._currentlyConnectedInputText.processKey(-1, this.shiftState ? key.toUpperCase() : key);\r\n }\r\n\r\n if (this.shiftState === 1) {\r\n this.shiftState = 0;\r\n this.applyShiftState(this.shiftState);\r\n }\r\n });\r\n }\r\n\r\n this.isVisible = false;\r\n this._currentlyConnectedInputText = input;\r\n input._connectedVirtualKeyboard = this;\r\n\r\n // Events hooking\r\n const onFocusObserver: Nullable<Observer<Control>> = input.onFocusObservable.add(() => {\r\n this._currentlyConnectedInputText = input;\r\n input._connectedVirtualKeyboard = this;\r\n this.isVisible = true;\r\n });\r\n\r\n const onBlurObserver: Nullable<Observer<Control>> = input.onBlurObservable.add(() => {\r\n input._connectedVirtualKeyboard = null;\r\n this._currentlyConnectedInputText = null;\r\n this.isVisible = false;\r\n });\r\n\r\n this._connectedInputTexts.push({\r\n input,\r\n onBlurObserver,\r\n onFocusObserver,\r\n });\r\n }\r\n\r\n /**\r\n * Disconnects the keyboard from connected InputText controls\r\n *\r\n * @param input optionally defines a target control, otherwise all are disconnected\r\n */\r\n public disconnect(input?: InputText): void {\r\n if (input) {\r\n // .find not available on IE\r\n const filtered = this._connectedInputTexts.filter((a) => a.input === input);\r\n if (filtered.length === 1) {\r\n this._removeConnectedInputObservables(filtered[0]);\r\n\r\n this._connectedInputTexts = this._connectedInputTexts.filter((a) => a.input !== input);\r\n if (this._currentlyConnectedInputText === input) {\r\n this._currentlyConnectedInputText = null;\r\n }\r\n }\r\n } else {\r\n for (const connectedInputText of this._connectedInputTexts) {\r\n this._removeConnectedInputObservables(connectedInputText);\r\n }\r\n this._connectedInputTexts.length = 0;\r\n }\r\n\r\n if (this._connectedInputTexts.length === 0) {\r\n this._currentlyConnectedInputText = null;\r\n this.onKeyPressObservable.remove(this._onKeyPressObserver);\r\n this._onKeyPressObserver = null;\r\n }\r\n }\r\n\r\n private _removeConnectedInputObservables(connectedInputText: ConnectedInputText): void {\r\n connectedInputText.input._connectedVirtualKeyboard = null;\r\n connectedInputText.input.onFocusObservable.remove(connectedInputText.onFocusObserver);\r\n connectedInputText.input.onBlurObservable.remove(connectedInputText.onBlurObserver);\r\n }\r\n\r\n /**\r\n * Release all resources\r\n */\r\n public override dispose(): void {\r\n super.dispose();\r\n\r\n this.disconnect();\r\n }\r\n\r\n // Statics\r\n\r\n /**\r\n * Creates a new keyboard using a default layout\r\n *\r\n * @param name defines control name\r\n * @returns a new VirtualKeyboard\r\n */\r\n public static CreateDefaultLayout(name?: string): VirtualKeyboard {\r\n const returnValue = new VirtualKeyboard(name);\r\n\r\n returnValue.addKeysRow([\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"0\", \"\\u2190\"]);\r\n returnValue.addKeysRow([\"q\", \"w\", \"e\", \"r\", \"t\", \"y\", \"u\", \"i\", \"o\", \"p\"]);\r\n returnValue.addKeysRow([\"a\", \"s\", \"d\", \"f\", \"g\", \"h\", \"j\", \"k\", \"l\", \";\", \"'\", \"\\u21B5\"]);\r\n returnValue.addKeysRow([\"\\u21E7\", \"z\", \"x\", \"c\", \"v\", \"b\", \"n\", \"m\", \",\", \".\", \"/\"]);\r\n returnValue.addKeysRow([\" \"], [{ width: \"200px\" }]);\r\n\r\n return returnValue;\r\n }\r\n\r\n /**\r\n * @internal\r\n */\r\n public override _parseFromContent(serializedObject: any, host: AdvancedDynamicTexture) {\r\n super._parseFromContent(serializedObject, host);\r\n for (const row of this.children) {\r\n if (row.getClassName() === \"StackPanel\") {\r\n const stackPanel = row as StackPanel;\r\n for (const key of stackPanel.children) {\r\n if (key.getClassName() === \"Button\" && key.name) {\r\n key.onPointerUpObservable.add(() => {\r\n this.onKeyPressObservable.notifyObservers(key.name as string);\r\n });\r\n }\r\n }\r\n }\r\n }\r\n }\r\n}\r\n\r\nRegisterClass(\"BABYLON.GUI.VirtualKeyboard\", VirtualKeyboard);\r\n"]}
|
|
1
|
+
{"version":3,"file":"virtualKeyboard.js","sourceRoot":"","sources":["../../../../../dev/gui/src/2D/controls/virtualKeyboard.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,cAAc,wBAAwB,CAAC;AAEvC,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,uBAAuB,EAAE,CAAC","sourcesContent":["/**\r\n * Re-exports the pure implementation and applies the runtime registration side effect.\r\n * Import \"./virtualKeyboard.pure\" for tree-shakeable, side-effect-free usage.\r\n */\r\nexport * from \"./virtualKeyboard.pure\";\r\n\r\nimport { RegisterVirtualKeyboard } from \"./virtualKeyboard.pure\";\r\nRegisterVirtualKeyboard();\r\n"]}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { type Nullable } from "@babylonjs/core/types.js";
|
|
2
|
+
import { Observable } from "@babylonjs/core/Misc/observable.js";
|
|
3
|
+
import { StackPanel } from "./stackPanel.pure.js";
|
|
4
|
+
import { type InputText } from "./inputText.pure.js";
|
|
5
|
+
import { type AdvancedDynamicTexture } from "../advancedDynamicTexture.js";
|
|
6
|
+
import { InputTextArea } from "./inputTextArea.pure.js";
|
|
7
|
+
/**
|
|
8
|
+
* Class used to store key control properties
|
|
9
|
+
*/
|
|
10
|
+
export declare class KeyPropertySet {
|
|
11
|
+
/** Width */
|
|
12
|
+
width?: string;
|
|
13
|
+
/** Height */
|
|
14
|
+
height?: string;
|
|
15
|
+
/** Left padding */
|
|
16
|
+
paddingLeft?: string;
|
|
17
|
+
/** Right padding */
|
|
18
|
+
paddingRight?: string;
|
|
19
|
+
/** Top padding */
|
|
20
|
+
paddingTop?: string;
|
|
21
|
+
/** Bottom padding */
|
|
22
|
+
paddingBottom?: string;
|
|
23
|
+
/** Foreground color */
|
|
24
|
+
color?: string;
|
|
25
|
+
/** Background color */
|
|
26
|
+
background?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Class used to create virtual keyboard
|
|
30
|
+
*/
|
|
31
|
+
export declare class VirtualKeyboard extends StackPanel {
|
|
32
|
+
/** Observable raised when a key is pressed */
|
|
33
|
+
onKeyPressObservable: Observable<string>;
|
|
34
|
+
/** Gets or sets default key button width */
|
|
35
|
+
defaultButtonWidth: string;
|
|
36
|
+
/** Gets or sets default key button height */
|
|
37
|
+
defaultButtonHeight: string;
|
|
38
|
+
/** Gets or sets default key button left padding */
|
|
39
|
+
defaultButtonPaddingLeft: string;
|
|
40
|
+
/** Gets or sets default key button right padding */
|
|
41
|
+
defaultButtonPaddingRight: string;
|
|
42
|
+
/** Gets or sets default key button top padding */
|
|
43
|
+
defaultButtonPaddingTop: string;
|
|
44
|
+
/** Gets or sets default key button bottom padding */
|
|
45
|
+
defaultButtonPaddingBottom: string;
|
|
46
|
+
/** Gets or sets default key button foreground color */
|
|
47
|
+
defaultButtonColor: string;
|
|
48
|
+
/** Gets or sets default key button background color */
|
|
49
|
+
defaultButtonBackground: string;
|
|
50
|
+
/** Gets or sets shift button foreground color */
|
|
51
|
+
shiftButtonColor: string;
|
|
52
|
+
/** Gets or sets shift button thickness*/
|
|
53
|
+
selectedShiftThickness: number;
|
|
54
|
+
/** Gets shift key state */
|
|
55
|
+
shiftState: number;
|
|
56
|
+
protected _getTypeName(): string;
|
|
57
|
+
private _createKey;
|
|
58
|
+
/**
|
|
59
|
+
* Adds a new row of keys
|
|
60
|
+
* @param keys defines the list of keys to add
|
|
61
|
+
* @param propertySets defines the associated property sets
|
|
62
|
+
*/
|
|
63
|
+
addKeysRow(keys: Array<string>, propertySets?: Array<KeyPropertySet>): void;
|
|
64
|
+
/**
|
|
65
|
+
* Set the shift key to a specific state
|
|
66
|
+
* @param shiftState defines the new shift state
|
|
67
|
+
*/
|
|
68
|
+
applyShiftState(shiftState: number): void;
|
|
69
|
+
private _currentlyConnectedInputText;
|
|
70
|
+
private _connectedInputTexts;
|
|
71
|
+
private _onKeyPressObserver;
|
|
72
|
+
/** Gets the input text control currently attached to the keyboard */
|
|
73
|
+
get connectedInputText(): Nullable<InputText | InputTextArea>;
|
|
74
|
+
/**
|
|
75
|
+
* Connects the keyboard with an input text control
|
|
76
|
+
*
|
|
77
|
+
* @param input defines the target control
|
|
78
|
+
*/
|
|
79
|
+
connect(input: InputText): void;
|
|
80
|
+
/**
|
|
81
|
+
* Disconnects the keyboard from connected InputText controls
|
|
82
|
+
*
|
|
83
|
+
* @param input optionally defines a target control, otherwise all are disconnected
|
|
84
|
+
*/
|
|
85
|
+
disconnect(input?: InputText): void;
|
|
86
|
+
private _removeConnectedInputObservables;
|
|
87
|
+
/**
|
|
88
|
+
* Release all resources
|
|
89
|
+
*/
|
|
90
|
+
dispose(): void;
|
|
91
|
+
/**
|
|
92
|
+
* Creates a new keyboard using a default layout
|
|
93
|
+
*
|
|
94
|
+
* @param name defines control name
|
|
95
|
+
* @returns a new VirtualKeyboard
|
|
96
|
+
*/
|
|
97
|
+
static CreateDefaultLayout(name?: string): VirtualKeyboard;
|
|
98
|
+
/**
|
|
99
|
+
* @internal
|
|
100
|
+
*/
|
|
101
|
+
_parseFromContent(serializedObject: any, host: AdvancedDynamicTexture): void;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Registers the VirtualKeyboard class with the type store for serialization support.
|
|
105
|
+
* Safe to call multiple times; only the first call has an effect.
|
|
106
|
+
*/
|
|
107
|
+
export declare function RegisterVirtualKeyboard(): void;
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
import { Observable } from "@babylonjs/core/Misc/observable.js";
|
|
2
|
+
import { StackPanel } from "./stackPanel.pure.js";
|
|
3
|
+
import { Button } from "./button.pure.js";
|
|
4
|
+
import { RegisterClass } from "@babylonjs/core/Misc/typeStore.js";
|
|
5
|
+
import { InputTextArea } from "./inputTextArea.pure.js";
|
|
6
|
+
/**
|
|
7
|
+
* Class used to store key control properties
|
|
8
|
+
*/
|
|
9
|
+
export class KeyPropertySet {
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Class used to create virtual keyboard
|
|
13
|
+
*/
|
|
14
|
+
export class VirtualKeyboard extends StackPanel {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
/** Observable raised when a key is pressed */
|
|
18
|
+
this.onKeyPressObservable = new Observable();
|
|
19
|
+
/** Gets or sets default key button width */
|
|
20
|
+
this.defaultButtonWidth = "40px";
|
|
21
|
+
/** Gets or sets default key button height */
|
|
22
|
+
this.defaultButtonHeight = "40px";
|
|
23
|
+
/** Gets or sets default key button left padding */
|
|
24
|
+
this.defaultButtonPaddingLeft = "2px";
|
|
25
|
+
/** Gets or sets default key button right padding */
|
|
26
|
+
this.defaultButtonPaddingRight = "2px";
|
|
27
|
+
/** Gets or sets default key button top padding */
|
|
28
|
+
this.defaultButtonPaddingTop = "2px";
|
|
29
|
+
/** Gets or sets default key button bottom padding */
|
|
30
|
+
this.defaultButtonPaddingBottom = "2px";
|
|
31
|
+
/** Gets or sets default key button foreground color */
|
|
32
|
+
this.defaultButtonColor = "#DDD";
|
|
33
|
+
/** Gets or sets default key button background color */
|
|
34
|
+
this.defaultButtonBackground = "#070707";
|
|
35
|
+
/** Gets or sets shift button foreground color */
|
|
36
|
+
this.shiftButtonColor = "#7799FF";
|
|
37
|
+
/** Gets or sets shift button thickness*/
|
|
38
|
+
this.selectedShiftThickness = 1;
|
|
39
|
+
/** Gets shift key state */
|
|
40
|
+
this.shiftState = 0;
|
|
41
|
+
this._currentlyConnectedInputText = null;
|
|
42
|
+
this._connectedInputTexts = [];
|
|
43
|
+
this._onKeyPressObserver = null;
|
|
44
|
+
}
|
|
45
|
+
_getTypeName() {
|
|
46
|
+
return "VirtualKeyboard";
|
|
47
|
+
}
|
|
48
|
+
_createKey(key, propertySet) {
|
|
49
|
+
const button = Button.CreateSimpleButton(key, key);
|
|
50
|
+
button.width = propertySet && propertySet.width ? propertySet.width : this.defaultButtonWidth;
|
|
51
|
+
button.height = propertySet && propertySet.height ? propertySet.height : this.defaultButtonHeight;
|
|
52
|
+
button.color = propertySet && propertySet.color ? propertySet.color : this.defaultButtonColor;
|
|
53
|
+
button.background = propertySet && propertySet.background ? propertySet.background : this.defaultButtonBackground;
|
|
54
|
+
button.paddingLeft = propertySet && propertySet.paddingLeft ? propertySet.paddingLeft : this.defaultButtonPaddingLeft;
|
|
55
|
+
button.paddingRight = propertySet && propertySet.paddingRight ? propertySet.paddingRight : this.defaultButtonPaddingRight;
|
|
56
|
+
button.paddingTop = propertySet && propertySet.paddingTop ? propertySet.paddingTop : this.defaultButtonPaddingTop;
|
|
57
|
+
button.paddingBottom = propertySet && propertySet.paddingBottom ? propertySet.paddingBottom : this.defaultButtonPaddingBottom;
|
|
58
|
+
button.thickness = 0;
|
|
59
|
+
button.isFocusInvisible = true;
|
|
60
|
+
button.shadowColor = this.shadowColor;
|
|
61
|
+
button.shadowBlur = this.shadowBlur;
|
|
62
|
+
button.shadowOffsetX = this.shadowOffsetX;
|
|
63
|
+
button.shadowOffsetY = this.shadowOffsetY;
|
|
64
|
+
button.onPointerUpObservable.add(() => {
|
|
65
|
+
this.onKeyPressObservable.notifyObservers(key);
|
|
66
|
+
});
|
|
67
|
+
return button;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Adds a new row of keys
|
|
71
|
+
* @param keys defines the list of keys to add
|
|
72
|
+
* @param propertySets defines the associated property sets
|
|
73
|
+
*/
|
|
74
|
+
addKeysRow(keys, propertySets) {
|
|
75
|
+
const panel = new StackPanel();
|
|
76
|
+
panel.isVertical = false;
|
|
77
|
+
panel.isFocusInvisible = true;
|
|
78
|
+
let maxKey = null;
|
|
79
|
+
for (let i = 0; i < keys.length; i++) {
|
|
80
|
+
let properties = null;
|
|
81
|
+
if (propertySets && propertySets.length === keys.length) {
|
|
82
|
+
properties = propertySets[i];
|
|
83
|
+
}
|
|
84
|
+
const key = this._createKey(keys[i], properties);
|
|
85
|
+
if (!maxKey || key.heightInPixels > maxKey.heightInPixels) {
|
|
86
|
+
maxKey = key;
|
|
87
|
+
}
|
|
88
|
+
panel.addControl(key);
|
|
89
|
+
}
|
|
90
|
+
panel.height = maxKey ? maxKey.height : this.defaultButtonHeight;
|
|
91
|
+
this.addControl(panel);
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Set the shift key to a specific state
|
|
95
|
+
* @param shiftState defines the new shift state
|
|
96
|
+
*/
|
|
97
|
+
applyShiftState(shiftState) {
|
|
98
|
+
if (!this.children) {
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
for (let i = 0; i < this.children.length; i++) {
|
|
102
|
+
const row = this.children[i];
|
|
103
|
+
if (!row || !row.children) {
|
|
104
|
+
continue;
|
|
105
|
+
}
|
|
106
|
+
const rowContainer = row;
|
|
107
|
+
for (let j = 0; j < rowContainer.children.length; j++) {
|
|
108
|
+
const button = rowContainer.children[j];
|
|
109
|
+
if (!button || !button.children[0]) {
|
|
110
|
+
continue;
|
|
111
|
+
}
|
|
112
|
+
const buttonTblock = button.children[0];
|
|
113
|
+
if (buttonTblock.text === "\u21E7") {
|
|
114
|
+
button.color = shiftState ? this.shiftButtonColor : this.defaultButtonColor;
|
|
115
|
+
button.thickness = shiftState > 1 ? this.selectedShiftThickness : 0;
|
|
116
|
+
}
|
|
117
|
+
buttonTblock.text = shiftState > 0 ? buttonTblock.text.toUpperCase() : buttonTblock.text.toLowerCase();
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
/** Gets the input text control currently attached to the keyboard */
|
|
122
|
+
get connectedInputText() {
|
|
123
|
+
return this._currentlyConnectedInputText;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Connects the keyboard with an input text control
|
|
127
|
+
*
|
|
128
|
+
* @param input defines the target control
|
|
129
|
+
*/
|
|
130
|
+
connect(input) {
|
|
131
|
+
const inputTextAlreadyConnected = this._connectedInputTexts.some((a) => a.input === input);
|
|
132
|
+
if (inputTextAlreadyConnected) {
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
if (this._onKeyPressObserver === null) {
|
|
136
|
+
this._onKeyPressObserver = this.onKeyPressObservable.add((key) => {
|
|
137
|
+
if (!this._currentlyConnectedInputText) {
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
this._currentlyConnectedInputText._host.focusedControl = this._currentlyConnectedInputText;
|
|
141
|
+
switch (key) {
|
|
142
|
+
case "\u21E7":
|
|
143
|
+
this.shiftState++;
|
|
144
|
+
if (this.shiftState > 2) {
|
|
145
|
+
this.shiftState = 0;
|
|
146
|
+
}
|
|
147
|
+
this.applyShiftState(this.shiftState);
|
|
148
|
+
return;
|
|
149
|
+
case "\u2190":
|
|
150
|
+
if (this._currentlyConnectedInputText instanceof InputTextArea) {
|
|
151
|
+
this._currentlyConnectedInputText.alternativeProcessKey("Backspace");
|
|
152
|
+
}
|
|
153
|
+
else {
|
|
154
|
+
this._currentlyConnectedInputText.processKey(8);
|
|
155
|
+
}
|
|
156
|
+
return;
|
|
157
|
+
case "\u21B5":
|
|
158
|
+
if (this._currentlyConnectedInputText instanceof InputTextArea) {
|
|
159
|
+
this._currentlyConnectedInputText.alternativeProcessKey("Enter");
|
|
160
|
+
}
|
|
161
|
+
else {
|
|
162
|
+
this._currentlyConnectedInputText.processKey(13);
|
|
163
|
+
}
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
if (this._currentlyConnectedInputText instanceof InputTextArea) {
|
|
167
|
+
this._currentlyConnectedInputText.alternativeProcessKey("", this.shiftState ? key.toUpperCase() : key);
|
|
168
|
+
}
|
|
169
|
+
else {
|
|
170
|
+
this._currentlyConnectedInputText.processKey(-1, this.shiftState ? key.toUpperCase() : key);
|
|
171
|
+
}
|
|
172
|
+
if (this.shiftState === 1) {
|
|
173
|
+
this.shiftState = 0;
|
|
174
|
+
this.applyShiftState(this.shiftState);
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
this.isVisible = false;
|
|
179
|
+
this._currentlyConnectedInputText = input;
|
|
180
|
+
input._connectedVirtualKeyboard = this;
|
|
181
|
+
// Events hooking
|
|
182
|
+
const onFocusObserver = input.onFocusObservable.add(() => {
|
|
183
|
+
this._currentlyConnectedInputText = input;
|
|
184
|
+
input._connectedVirtualKeyboard = this;
|
|
185
|
+
this.isVisible = true;
|
|
186
|
+
});
|
|
187
|
+
const onBlurObserver = input.onBlurObservable.add(() => {
|
|
188
|
+
input._connectedVirtualKeyboard = null;
|
|
189
|
+
this._currentlyConnectedInputText = null;
|
|
190
|
+
this.isVisible = false;
|
|
191
|
+
});
|
|
192
|
+
this._connectedInputTexts.push({
|
|
193
|
+
input,
|
|
194
|
+
onBlurObserver,
|
|
195
|
+
onFocusObserver,
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Disconnects the keyboard from connected InputText controls
|
|
200
|
+
*
|
|
201
|
+
* @param input optionally defines a target control, otherwise all are disconnected
|
|
202
|
+
*/
|
|
203
|
+
disconnect(input) {
|
|
204
|
+
if (input) {
|
|
205
|
+
// .find not available on IE
|
|
206
|
+
const filtered = this._connectedInputTexts.filter((a) => a.input === input);
|
|
207
|
+
if (filtered.length === 1) {
|
|
208
|
+
this._removeConnectedInputObservables(filtered[0]);
|
|
209
|
+
this._connectedInputTexts = this._connectedInputTexts.filter((a) => a.input !== input);
|
|
210
|
+
if (this._currentlyConnectedInputText === input) {
|
|
211
|
+
this._currentlyConnectedInputText = null;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
else {
|
|
216
|
+
for (const connectedInputText of this._connectedInputTexts) {
|
|
217
|
+
this._removeConnectedInputObservables(connectedInputText);
|
|
218
|
+
}
|
|
219
|
+
this._connectedInputTexts.length = 0;
|
|
220
|
+
}
|
|
221
|
+
if (this._connectedInputTexts.length === 0) {
|
|
222
|
+
this._currentlyConnectedInputText = null;
|
|
223
|
+
this.onKeyPressObservable.remove(this._onKeyPressObserver);
|
|
224
|
+
this._onKeyPressObserver = null;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
_removeConnectedInputObservables(connectedInputText) {
|
|
228
|
+
connectedInputText.input._connectedVirtualKeyboard = null;
|
|
229
|
+
connectedInputText.input.onFocusObservable.remove(connectedInputText.onFocusObserver);
|
|
230
|
+
connectedInputText.input.onBlurObservable.remove(connectedInputText.onBlurObserver);
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Release all resources
|
|
234
|
+
*/
|
|
235
|
+
dispose() {
|
|
236
|
+
super.dispose();
|
|
237
|
+
this.disconnect();
|
|
238
|
+
}
|
|
239
|
+
// Statics
|
|
240
|
+
/**
|
|
241
|
+
* Creates a new keyboard using a default layout
|
|
242
|
+
*
|
|
243
|
+
* @param name defines control name
|
|
244
|
+
* @returns a new VirtualKeyboard
|
|
245
|
+
*/
|
|
246
|
+
static CreateDefaultLayout(name) {
|
|
247
|
+
const returnValue = new VirtualKeyboard(name);
|
|
248
|
+
returnValue.addKeysRow(["1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "\u2190"]);
|
|
249
|
+
returnValue.addKeysRow(["q", "w", "e", "r", "t", "y", "u", "i", "o", "p"]);
|
|
250
|
+
returnValue.addKeysRow(["a", "s", "d", "f", "g", "h", "j", "k", "l", ";", "'", "\u21B5"]);
|
|
251
|
+
returnValue.addKeysRow(["\u21E7", "z", "x", "c", "v", "b", "n", "m", ",", ".", "/"]);
|
|
252
|
+
returnValue.addKeysRow([" "], [{ width: "200px" }]);
|
|
253
|
+
return returnValue;
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* @internal
|
|
257
|
+
*/
|
|
258
|
+
_parseFromContent(serializedObject, host) {
|
|
259
|
+
super._parseFromContent(serializedObject, host);
|
|
260
|
+
for (const row of this.children) {
|
|
261
|
+
if (row.getClassName() === "StackPanel") {
|
|
262
|
+
const stackPanel = row;
|
|
263
|
+
for (const key of stackPanel.children) {
|
|
264
|
+
if (key.getClassName() === "Button" && key.name) {
|
|
265
|
+
key.onPointerUpObservable.add(() => {
|
|
266
|
+
this.onKeyPressObservable.notifyObservers(key.name);
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
let _Registered = false;
|
|
275
|
+
/**
|
|
276
|
+
* Registers the VirtualKeyboard class with the type store for serialization support.
|
|
277
|
+
* Safe to call multiple times; only the first call has an effect.
|
|
278
|
+
*/
|
|
279
|
+
export function RegisterVirtualKeyboard() {
|
|
280
|
+
if (_Registered) {
|
|
281
|
+
return;
|
|
282
|
+
}
|
|
283
|
+
_Registered = true;
|
|
284
|
+
RegisterClass("BABYLON.GUI.VirtualKeyboard", VirtualKeyboard);
|
|
285
|
+
}
|
|
286
|
+
//# sourceMappingURL=virtualKeyboard.pure.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"virtualKeyboard.pure.js","sourceRoot":"","sources":["../../../../../dev/gui/src/2D/controls/virtualKeyboard.pure.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEjE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAIvC,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAGrD;;GAEG;AACH,MAAM,OAAO,cAAc;CAiB1B;A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,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;QACrF,WAAW,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;QAEpD,OAAO,WAAW,CAAC;IACvB,CAAC;IAED;;OAEG;IACa,iBAAiB,CAAC,gBAAqB,EAAE,IAA4B;QACjF,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,EAAE,IAAI,CAAC,CAAC;QAChD,KAAK,MAAM,GAAG,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAC9B,IAAI,GAAG,CAAC,YAAY,EAAE,KAAK,YAAY,EAAE,CAAC;gBACtC,MAAM,UAAU,GAAG,GAAiB,CAAC;gBACrC,KAAK,MAAM,GAAG,IAAI,UAAU,CAAC,QAAQ,EAAE,CAAC;oBACpC,IAAI,GAAG,CAAC,YAAY,EAAE,KAAK,QAAQ,IAAI,GAAG,CAAC,IAAI,EAAE,CAAC;wBAC9C,GAAG,CAAC,qBAAqB,CAAC,GAAG,CAAC,GAAG,EAAE;4BAC/B,IAAI,CAAC,oBAAoB,CAAC,eAAe,CAAC,GAAG,CAAC,IAAc,CAAC,CAAC;wBAClE,CAAC,CAAC,CAAC;oBACP,CAAC;gBACL,CAAC;YACL,CAAC;QACL,CAAC;IACL,CAAC;CACJ;AAED,IAAI,WAAW,GAAG,KAAK,CAAC;AACxB;;;GAGG;AACH,MAAM,UAAU,uBAAuB;IACnC,IAAI,WAAW,EAAE,CAAC;QACd,OAAO;IACX,CAAC;IACD,WAAW,GAAG,IAAI,CAAC;IAEnB,aAAa,CAAC,6BAA6B,EAAE,eAAe,CAAC,CAAC;AAClE,CAAC","sourcesContent":["import { type Nullable } from \"core/types\";\r\nimport { type Observer, Observable } from \"core/Misc/observable\";\r\n\r\nimport { StackPanel } from \"./stackPanel.pure\";\r\nimport { Button } from \"./button.pure\";\r\nimport { type Container } from \"./container.pure\";\r\nimport { type TextBlock } from \"./textBlock.pure\";\r\nimport { type InputText } from \"./inputText.pure\";\r\nimport { RegisterClass } from \"core/Misc/typeStore\";\r\nimport { type AdvancedDynamicTexture } from \"../advancedDynamicTexture\";\r\nimport { InputTextArea } from \"./inputTextArea.pure\";\r\nimport { type Control } from \"./control.pure\";\r\n\r\n/**\r\n * Class used to store key control properties\r\n */\r\nexport class KeyPropertySet {\r\n /** Width */\r\n width?: string;\r\n /** Height */\r\n height?: string;\r\n /** Left padding */\r\n paddingLeft?: string;\r\n /** Right padding */\r\n paddingRight?: string;\r\n /** Top padding */\r\n paddingTop?: string;\r\n /** Bottom padding */\r\n paddingBottom?: string;\r\n /** Foreground color */\r\n color?: string;\r\n /** Background color */\r\n background?: string;\r\n}\r\n\r\ntype ConnectedInputText = {\r\n input: InputText;\r\n onFocusObserver: Nullable<Observer<Control>>;\r\n onBlurObserver: Nullable<Observer<Control>>;\r\n};\r\n\r\n/**\r\n * Class used to create virtual keyboard\r\n */\r\nexport class VirtualKeyboard extends StackPanel {\r\n /** Observable raised when a key is pressed */\r\n public onKeyPressObservable = new Observable<string>();\r\n\r\n /** Gets or sets default key button width */\r\n public defaultButtonWidth = \"40px\";\r\n /** Gets or sets default key button height */\r\n public defaultButtonHeight = \"40px\";\r\n\r\n /** Gets or sets default key button left padding */\r\n public defaultButtonPaddingLeft = \"2px\";\r\n /** Gets or sets default key button right padding */\r\n public defaultButtonPaddingRight = \"2px\";\r\n /** Gets or sets default key button top padding */\r\n public defaultButtonPaddingTop = \"2px\";\r\n /** Gets or sets default key button bottom padding */\r\n public defaultButtonPaddingBottom = \"2px\";\r\n\r\n /** Gets or sets default key button foreground color */\r\n public defaultButtonColor = \"#DDD\";\r\n /** Gets or sets default key button background color */\r\n public defaultButtonBackground = \"#070707\";\r\n\r\n /** Gets or sets shift button foreground color */\r\n public shiftButtonColor = \"#7799FF\";\r\n /** Gets or sets shift button thickness*/\r\n public selectedShiftThickness = 1;\r\n\r\n /** Gets shift key state */\r\n public shiftState = 0;\r\n\r\n protected override _getTypeName(): string {\r\n return \"VirtualKeyboard\";\r\n }\r\n\r\n private _createKey(key: string, propertySet: Nullable<KeyPropertySet>) {\r\n const button = Button.CreateSimpleButton(key, key);\r\n\r\n button.width = propertySet && propertySet.width ? propertySet.width : this.defaultButtonWidth;\r\n button.height = propertySet && propertySet.height ? propertySet.height : this.defaultButtonHeight;\r\n button.color = propertySet && propertySet.color ? propertySet.color : this.defaultButtonColor;\r\n button.background = propertySet && propertySet.background ? propertySet.background : this.defaultButtonBackground;\r\n button.paddingLeft = propertySet && propertySet.paddingLeft ? propertySet.paddingLeft : this.defaultButtonPaddingLeft;\r\n button.paddingRight = propertySet && propertySet.paddingRight ? propertySet.paddingRight : this.defaultButtonPaddingRight;\r\n button.paddingTop = propertySet && propertySet.paddingTop ? propertySet.paddingTop : this.defaultButtonPaddingTop;\r\n button.paddingBottom = propertySet && propertySet.paddingBottom ? propertySet.paddingBottom : this.defaultButtonPaddingBottom;\r\n\r\n button.thickness = 0;\r\n button.isFocusInvisible = true;\r\n\r\n button.shadowColor = this.shadowColor;\r\n button.shadowBlur = this.shadowBlur;\r\n button.shadowOffsetX = this.shadowOffsetX;\r\n button.shadowOffsetY = this.shadowOffsetY;\r\n\r\n button.onPointerUpObservable.add(() => {\r\n this.onKeyPressObservable.notifyObservers(key);\r\n });\r\n\r\n return button;\r\n }\r\n\r\n /**\r\n * Adds a new row of keys\r\n * @param keys defines the list of keys to add\r\n * @param propertySets defines the associated property sets\r\n */\r\n public addKeysRow(keys: Array<string>, propertySets?: Array<KeyPropertySet>): void {\r\n const panel = new StackPanel();\r\n panel.isVertical = false;\r\n panel.isFocusInvisible = true;\r\n\r\n let maxKey: Nullable<Button> = null;\r\n for (let i = 0; i < keys.length; i++) {\r\n let properties = null;\r\n\r\n if (propertySets && propertySets.length === keys.length) {\r\n properties = propertySets[i];\r\n }\r\n\r\n const key = this._createKey(keys[i], properties);\r\n if (!maxKey || key.heightInPixels > maxKey.heightInPixels) {\r\n maxKey = key;\r\n }\r\n\r\n panel.addControl(key);\r\n }\r\n\r\n panel.height = maxKey ? maxKey.height : this.defaultButtonHeight;\r\n\r\n this.addControl(panel);\r\n }\r\n\r\n /**\r\n * Set the shift key to a specific state\r\n * @param shiftState defines the new shift state\r\n */\r\n public applyShiftState(shiftState: number): void {\r\n if (!this.children) {\r\n return;\r\n }\r\n\r\n for (let i = 0; i < this.children.length; i++) {\r\n const row = this.children[i];\r\n if (!row || !(<Container>row).children) {\r\n continue;\r\n }\r\n\r\n const rowContainer = <Container>row;\r\n for (let j = 0; j < rowContainer.children.length; j++) {\r\n const button = rowContainer.children[j] as Button;\r\n\r\n if (!button || !button.children[0]) {\r\n continue;\r\n }\r\n\r\n const buttonTblock = button.children[0] as TextBlock;\r\n\r\n if (buttonTblock.text === \"\\u21E7\") {\r\n button.color = shiftState ? this.shiftButtonColor : this.defaultButtonColor;\r\n button.thickness = shiftState > 1 ? this.selectedShiftThickness : 0;\r\n }\r\n\r\n buttonTblock.text = shiftState > 0 ? buttonTblock.text.toUpperCase() : buttonTblock.text.toLowerCase();\r\n }\r\n }\r\n }\r\n\r\n private _currentlyConnectedInputText: Nullable<InputText | InputTextArea> = null;\r\n private _connectedInputTexts: ConnectedInputText[] = [];\r\n private _onKeyPressObserver: Nullable<Observer<string>> = null;\r\n\r\n /** Gets the input text control currently attached to the keyboard */\r\n public get connectedInputText(): Nullable<InputText | InputTextArea> {\r\n return this._currentlyConnectedInputText;\r\n }\r\n\r\n /**\r\n * Connects the keyboard with an input text control\r\n *\r\n * @param input defines the target control\r\n */\r\n public connect(input: InputText): void {\r\n const inputTextAlreadyConnected = this._connectedInputTexts.some((a) => a.input === input);\r\n if (inputTextAlreadyConnected) {\r\n return;\r\n }\r\n\r\n if (this._onKeyPressObserver === null) {\r\n this._onKeyPressObserver = this.onKeyPressObservable.add((key) => {\r\n if (!this._currentlyConnectedInputText) {\r\n return;\r\n }\r\n\r\n this._currentlyConnectedInputText._host.focusedControl = this._currentlyConnectedInputText;\r\n\r\n switch (key) {\r\n case \"\\u21E7\":\r\n this.shiftState++;\r\n if (this.shiftState > 2) {\r\n this.shiftState = 0;\r\n }\r\n this.applyShiftState(this.shiftState);\r\n return;\r\n case \"\\u2190\":\r\n if (this._currentlyConnectedInputText instanceof InputTextArea) {\r\n this._currentlyConnectedInputText.alternativeProcessKey(\"Backspace\");\r\n } else {\r\n this._currentlyConnectedInputText.processKey(8);\r\n }\r\n return;\r\n case \"\\u21B5\":\r\n if (this._currentlyConnectedInputText instanceof InputTextArea) {\r\n this._currentlyConnectedInputText.alternativeProcessKey(\"Enter\");\r\n } else {\r\n this._currentlyConnectedInputText.processKey(13);\r\n }\r\n return;\r\n }\r\n if (this._currentlyConnectedInputText instanceof InputTextArea) {\r\n this._currentlyConnectedInputText.alternativeProcessKey(\"\", this.shiftState ? key.toUpperCase() : key);\r\n } else {\r\n this._currentlyConnectedInputText.processKey(-1, this.shiftState ? key.toUpperCase() : key);\r\n }\r\n\r\n if (this.shiftState === 1) {\r\n this.shiftState = 0;\r\n this.applyShiftState(this.shiftState);\r\n }\r\n });\r\n }\r\n\r\n this.isVisible = false;\r\n this._currentlyConnectedInputText = input;\r\n input._connectedVirtualKeyboard = this;\r\n\r\n // Events hooking\r\n const onFocusObserver: Nullable<Observer<Control>> = input.onFocusObservable.add(() => {\r\n this._currentlyConnectedInputText = input;\r\n input._connectedVirtualKeyboard = this;\r\n this.isVisible = true;\r\n });\r\n\r\n const onBlurObserver: Nullable<Observer<Control>> = input.onBlurObservable.add(() => {\r\n input._connectedVirtualKeyboard = null;\r\n this._currentlyConnectedInputText = null;\r\n this.isVisible = false;\r\n });\r\n\r\n this._connectedInputTexts.push({\r\n input,\r\n onBlurObserver,\r\n onFocusObserver,\r\n });\r\n }\r\n\r\n /**\r\n * Disconnects the keyboard from connected InputText controls\r\n *\r\n * @param input optionally defines a target control, otherwise all are disconnected\r\n */\r\n public disconnect(input?: InputText): void {\r\n if (input) {\r\n // .find not available on IE\r\n const filtered = this._connectedInputTexts.filter((a) => a.input === input);\r\n if (filtered.length === 1) {\r\n this._removeConnectedInputObservables(filtered[0]);\r\n\r\n this._connectedInputTexts = this._connectedInputTexts.filter((a) => a.input !== input);\r\n if (this._currentlyConnectedInputText === input) {\r\n this._currentlyConnectedInputText = null;\r\n }\r\n }\r\n } else {\r\n for (const connectedInputText of this._connectedInputTexts) {\r\n this._removeConnectedInputObservables(connectedInputText);\r\n }\r\n this._connectedInputTexts.length = 0;\r\n }\r\n\r\n if (this._connectedInputTexts.length === 0) {\r\n this._currentlyConnectedInputText = null;\r\n this.onKeyPressObservable.remove(this._onKeyPressObserver);\r\n this._onKeyPressObserver = null;\r\n }\r\n }\r\n\r\n private _removeConnectedInputObservables(connectedInputText: ConnectedInputText): void {\r\n connectedInputText.input._connectedVirtualKeyboard = null;\r\n connectedInputText.input.onFocusObservable.remove(connectedInputText.onFocusObserver);\r\n connectedInputText.input.onBlurObservable.remove(connectedInputText.onBlurObserver);\r\n }\r\n\r\n /**\r\n * Release all resources\r\n */\r\n public override dispose(): void {\r\n super.dispose();\r\n\r\n this.disconnect();\r\n }\r\n\r\n // Statics\r\n\r\n /**\r\n * Creates a new keyboard using a default layout\r\n *\r\n * @param name defines control name\r\n * @returns a new VirtualKeyboard\r\n */\r\n public static CreateDefaultLayout(name?: string): VirtualKeyboard {\r\n const returnValue = new VirtualKeyboard(name);\r\n\r\n returnValue.addKeysRow([\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"0\", \"\\u2190\"]);\r\n returnValue.addKeysRow([\"q\", \"w\", \"e\", \"r\", \"t\", \"y\", \"u\", \"i\", \"o\", \"p\"]);\r\n returnValue.addKeysRow([\"a\", \"s\", \"d\", \"f\", \"g\", \"h\", \"j\", \"k\", \"l\", \";\", \"'\", \"\\u21B5\"]);\r\n returnValue.addKeysRow([\"\\u21E7\", \"z\", \"x\", \"c\", \"v\", \"b\", \"n\", \"m\", \",\", \".\", \"/\"]);\r\n returnValue.addKeysRow([\" \"], [{ width: \"200px\" }]);\r\n\r\n return returnValue;\r\n }\r\n\r\n /**\r\n * @internal\r\n */\r\n public override _parseFromContent(serializedObject: any, host: AdvancedDynamicTexture) {\r\n super._parseFromContent(serializedObject, host);\r\n for (const row of this.children) {\r\n if (row.getClassName() === \"StackPanel\") {\r\n const stackPanel = row as StackPanel;\r\n for (const key of stackPanel.children) {\r\n if (key.getClassName() === \"Button\" && key.name) {\r\n key.onPointerUpObservable.add(() => {\r\n this.onKeyPressObservable.notifyObservers(key.name as string);\r\n });\r\n }\r\n }\r\n }\r\n }\r\n }\r\n}\r\n\r\nlet _Registered = false;\r\n/**\r\n * Registers the VirtualKeyboard class with the type store for serialization support.\r\n * Safe to call multiple times; only the first call has an effect.\r\n */\r\nexport function RegisterVirtualKeyboard(): void {\r\n if (_Registered) {\r\n return;\r\n }\r\n _Registered = true;\r\n\r\n RegisterClass(\"BABYLON.GUI.VirtualKeyboard\", VirtualKeyboard);\r\n}\r\n"]}
|
package/2D/pure.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** Pure barrel — re-exports only side-effect-free modules */
|
|
2
|
+
export * from "./controls/pure.js";
|
|
3
|
+
export * from "./advancedDynamicTexture.js";
|
|
4
|
+
export * from "./adtInstrumentation.js";
|
|
5
|
+
export * from "./math2D.js";
|
|
6
|
+
export * from "./measure.js";
|
|
7
|
+
export * from "./multiLinePoint.js";
|
|
8
|
+
export * from "./FrameGraph/guiTask.js";
|
|
9
|
+
export * from "./FrameGraph/renderGraphGUIBlock.pure.js";
|
|
10
|
+
export * from "./style.js";
|
|
11
|
+
export * from "./valueAndUnit.js";
|
|
12
|
+
export * from "./xmlLoader.js";
|
|
13
|
+
export * from "./FrameGraph/pure.js";
|
package/2D/pure.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** Pure barrel — re-exports only side-effect-free modules */
|
|
2
|
+
/* eslint-disable @typescript-eslint/no-restricted-imports */
|
|
3
|
+
export * from "./controls/pure.js";
|
|
4
|
+
export * from "./advancedDynamicTexture.js";
|
|
5
|
+
export * from "./adtInstrumentation.js";
|
|
6
|
+
export * from "./math2D.js";
|
|
7
|
+
export * from "./measure.js";
|
|
8
|
+
export * from "./multiLinePoint.js";
|
|
9
|
+
export * from "./FrameGraph/guiTask.js";
|
|
10
|
+
export * from "./FrameGraph/renderGraphGUIBlock.pure.js";
|
|
11
|
+
export * from "./style.js";
|
|
12
|
+
export * from "./valueAndUnit.js";
|
|
13
|
+
export * from "./xmlLoader.js";
|
|
14
|
+
export * from "./FrameGraph/pure.js";
|
|
15
|
+
//# sourceMappingURL=pure.js.map
|
package/2D/pure.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pure.js","sourceRoot":"","sources":["../../../../dev/gui/src/2D/pure.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,6DAA6D;AAC7D,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uCAAuC,CAAC;AACtD,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC","sourcesContent":["/** Pure barrel — re-exports only side-effect-free modules */\n/* eslint-disable @typescript-eslint/no-restricted-imports */\nexport * from \"./controls/pure\";\nexport * from \"./advancedDynamicTexture\";\nexport * from \"./adtInstrumentation\";\nexport * from \"./math2D\";\nexport * from \"./measure\";\nexport * from \"./multiLinePoint\";\nexport * from \"./FrameGraph/guiTask\";\nexport * from \"./FrameGraph/renderGraphGUIBlock.pure\";\nexport * from \"./style\";\nexport * from \"./valueAndUnit\";\nexport * from \"./xmlLoader\";\nexport * from \"./FrameGraph/pure\";\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** Pure barrel — re-exports only side-effect-free modules */
|
|
2
|
+
export * from "./abstractButton3D.js";
|
|
3
|
+
export * from "./button3D.js";
|
|
4
|
+
export * from "./container3D.js";
|
|
5
|
+
export * from "./control3D.js";
|
|
6
|
+
export * from "./cylinderPanel.js";
|
|
7
|
+
export * from "./handMenu.js";
|
|
8
|
+
export * from "./holographicBackplate.js";
|
|
9
|
+
export * from "./holographicButton.js";
|
|
10
|
+
export * from "./holographicSlate.js";
|
|
11
|
+
export * from "./meshButton3D.js";
|
|
12
|
+
export * from "./nearMenu.js";
|
|
13
|
+
export * from "./planePanel.js";
|
|
14
|
+
export * from "./scatterPanel.js";
|
|
15
|
+
export * from "./slider3D.js";
|
|
16
|
+
export * from "./spherePanel.js";
|
|
17
|
+
export * from "./stackPanel3D.js";
|
|
18
|
+
export * from "./touchButton3D.js";
|
|
19
|
+
export * from "./touchMeshButton3D.js";
|
|
20
|
+
export * from "./touchHolographicButton.js";
|
|
21
|
+
export * from "./touchHolographicMenu.js";
|
|
22
|
+
export * from "./volumeBasedPanel.js";
|
|
23
|
+
export { TouchHolographicButton as TouchHolographicButtonV3 } from "./MRTK3/touchHolographicButton.js";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/** Pure barrel — re-exports only side-effect-free modules */
|
|
2
|
+
export * from "./abstractButton3D.js";
|
|
3
|
+
export * from "./button3D.js";
|
|
4
|
+
export * from "./container3D.js";
|
|
5
|
+
export * from "./control3D.js";
|
|
6
|
+
export * from "./cylinderPanel.js";
|
|
7
|
+
export * from "./handMenu.js";
|
|
8
|
+
export * from "./holographicBackplate.js";
|
|
9
|
+
export * from "./holographicButton.js";
|
|
10
|
+
export * from "./holographicSlate.js";
|
|
11
|
+
export * from "./meshButton3D.js";
|
|
12
|
+
export * from "./nearMenu.js";
|
|
13
|
+
export * from "./planePanel.js";
|
|
14
|
+
export * from "./scatterPanel.js";
|
|
15
|
+
export * from "./slider3D.js";
|
|
16
|
+
export * from "./spherePanel.js";
|
|
17
|
+
export * from "./stackPanel3D.js";
|
|
18
|
+
export * from "./touchButton3D.js";
|
|
19
|
+
export * from "./touchMeshButton3D.js";
|
|
20
|
+
export * from "./touchHolographicButton.js";
|
|
21
|
+
export * from "./touchHolographicMenu.js";
|
|
22
|
+
export * from "./volumeBasedPanel.js";
|
|
23
|
+
export { TouchHolographicButton as TouchHolographicButtonV3 } from "./MRTK3/touchHolographicButton.js";
|
|
24
|
+
//# sourceMappingURL=pure.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pure.js","sourceRoot":"","sources":["../../../../../dev/gui/src/3D/controls/pure.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,sBAAsB,IAAI,wBAAwB,EAAE,MAAM,gCAAgC,CAAC","sourcesContent":["/** Pure barrel — re-exports only side-effect-free modules */\nexport * from \"./abstractButton3D\";\nexport * from \"./button3D\";\nexport * from \"./container3D\";\nexport * from \"./control3D\";\nexport * from \"./cylinderPanel\";\nexport * from \"./handMenu\";\nexport * from \"./holographicBackplate\";\nexport * from \"./holographicButton\";\nexport * from \"./holographicSlate\";\nexport * from \"./meshButton3D\";\nexport * from \"./nearMenu\";\nexport * from \"./planePanel\";\nexport * from \"./scatterPanel\";\nexport * from \"./slider3D\";\nexport * from \"./spherePanel\";\nexport * from \"./stackPanel3D\";\nexport * from \"./touchButton3D\";\nexport * from \"./touchMeshButton3D\";\nexport * from \"./touchHolographicButton\";\nexport * from \"./touchHolographicMenu\";\nexport * from \"./volumeBasedPanel\";\nexport { TouchHolographicButton as TouchHolographicButtonV3 } from \"./MRTK3/touchHolographicButton\";\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pure.js","sourceRoot":"","sources":["../../../../../dev/gui/src/3D/gizmos/pure.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC","sourcesContent":["/** Pure barrel — re-exports only side-effect-free modules */\nexport * from \"./slateGizmo\";\nexport * from \"./gizmoHandle\";\n"]}
|