@onerjs/gui 8.23.1
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/guiTask.d.ts +34 -0
- package/2D/FrameGraph/guiTask.js +62 -0
- package/2D/FrameGraph/guiTask.js.map +1 -0
- package/2D/FrameGraph/renderGraphGUIBlock.d.ts +43 -0
- package/2D/FrameGraph/renderGraphGUIBlock.js +66 -0
- package/2D/FrameGraph/renderGraphGUIBlock.js.map +1 -0
- package/2D/adtInstrumentation.d.ts +52 -0
- package/2D/adtInstrumentation.js +107 -0
- package/2D/adtInstrumentation.js.map +1 -0
- package/2D/advancedDynamicTexture.d.ts +548 -0
- package/2D/advancedDynamicTexture.js +1522 -0
- package/2D/advancedDynamicTexture.js.map +1 -0
- package/2D/controls/button.d.ts +109 -0
- package/2D/controls/button.js +246 -0
- package/2D/controls/button.js.map +1 -0
- package/2D/controls/checkbox.d.ts +53 -0
- package/2D/controls/checkbox.js +164 -0
- package/2D/controls/checkbox.js.map +1 -0
- package/2D/controls/colorpicker.d.ts +101 -0
- package/2D/controls/colorpicker.js +1396 -0
- package/2D/controls/colorpicker.js.map +1 -0
- package/2D/controls/container.d.ts +179 -0
- package/2D/controls/container.js +616 -0
- package/2D/controls/container.js.map +1 -0
- package/2D/controls/control.d.ts +943 -0
- package/2D/controls/control.js +2460 -0
- package/2D/controls/control.js.map +1 -0
- package/2D/controls/displayGrid.d.ts +53 -0
- package/2D/controls/displayGrid.js +202 -0
- package/2D/controls/displayGrid.js.map +1 -0
- package/2D/controls/ellipse.d.ts +25 -0
- package/2D/controls/ellipse.js +93 -0
- package/2D/controls/ellipse.js.map +1 -0
- package/2D/controls/focusableButton.d.ts +17 -0
- package/2D/controls/focusableButton.js +25 -0
- package/2D/controls/focusableButton.js.map +1 -0
- package/2D/controls/focusableControl.d.ts +43 -0
- package/2D/controls/focusableControl.js +2 -0
- package/2D/controls/focusableControl.js.map +1 -0
- package/2D/controls/gradient/BaseGradient.d.ts +69 -0
- package/2D/controls/gradient/BaseGradient.js +84 -0
- package/2D/controls/gradient/BaseGradient.js.map +1 -0
- package/2D/controls/gradient/LinearGradient.d.ts +45 -0
- package/2D/controls/gradient/LinearGradient.js +73 -0
- package/2D/controls/gradient/LinearGradient.js.map +1 -0
- package/2D/controls/gradient/RadialGradient.d.ts +53 -0
- package/2D/controls/gradient/RadialGradient.js +89 -0
- package/2D/controls/gradient/RadialGradient.js.map +1 -0
- package/2D/controls/grid.d.ts +151 -0
- package/2D/controls/grid.js +528 -0
- package/2D/controls/grid.js.map +1 -0
- package/2D/controls/image.d.ts +228 -0
- package/2D/controls/image.js +915 -0
- package/2D/controls/image.js.map +1 -0
- package/2D/controls/index.d.ts +34 -0
- package/2D/controls/index.js +35 -0
- package/2D/controls/index.js.map +1 -0
- package/2D/controls/inputPassword.d.ts +9 -0
- package/2D/controls/inputPassword.js +22 -0
- package/2D/controls/inputPassword.js.map +1 -0
- package/2D/controls/inputText.d.ts +197 -0
- package/2D/controls/inputText.js +1035 -0
- package/2D/controls/inputText.js.map +1 -0
- package/2D/controls/inputTextArea.d.ts +142 -0
- package/2D/controls/inputTextArea.js +1025 -0
- package/2D/controls/inputTextArea.js.map +1 -0
- package/2D/controls/line.d.ts +73 -0
- package/2D/controls/line.js +227 -0
- package/2D/controls/line.js.map +1 -0
- package/2D/controls/multiLine.d.ts +75 -0
- package/2D/controls/multiLine.js +237 -0
- package/2D/controls/multiLine.js.map +1 -0
- package/2D/controls/radioButton.d.ts +49 -0
- package/2D/controls/radioButton.js +185 -0
- package/2D/controls/radioButton.js.map +1 -0
- package/2D/controls/rectangle.d.ts +43 -0
- package/2D/controls/rectangle.js +204 -0
- package/2D/controls/rectangle.js.map +1 -0
- package/2D/controls/scrollViewers/scrollViewer.d.ts +178 -0
- package/2D/controls/scrollViewers/scrollViewer.js +587 -0
- package/2D/controls/scrollViewers/scrollViewer.js.map +1 -0
- package/2D/controls/scrollViewers/scrollViewerWindow.d.ts +51 -0
- package/2D/controls/scrollViewers/scrollViewerWindow.js +254 -0
- package/2D/controls/scrollViewers/scrollViewerWindow.js.map +1 -0
- package/2D/controls/selector.d.ts +237 -0
- package/2D/controls/selector.js +579 -0
- package/2D/controls/selector.js.map +1 -0
- package/2D/controls/sliders/baseSlider.d.ts +80 -0
- package/2D/controls/sliders/baseSlider.js +299 -0
- package/2D/controls/sliders/baseSlider.js.map +1 -0
- package/2D/controls/sliders/imageBasedSlider.d.ts +47 -0
- package/2D/controls/sliders/imageBasedSlider.js +168 -0
- package/2D/controls/sliders/imageBasedSlider.js.map +1 -0
- package/2D/controls/sliders/imageScrollBar.d.ts +67 -0
- package/2D/controls/sliders/imageScrollBar.js +248 -0
- package/2D/controls/sliders/imageScrollBar.js.map +1 -0
- package/2D/controls/sliders/scrollBar.d.ts +50 -0
- package/2D/controls/sliders/scrollBar.js +175 -0
- package/2D/controls/sliders/scrollBar.js.map +1 -0
- package/2D/controls/sliders/slider.d.ts +46 -0
- package/2D/controls/sliders/slider.js +281 -0
- package/2D/controls/sliders/slider.js.map +1 -0
- package/2D/controls/stackPanel.d.ts +64 -0
- package/2D/controls/stackPanel.js +244 -0
- package/2D/controls/stackPanel.js.map +1 -0
- package/2D/controls/statics.d.ts +6 -0
- package/2D/controls/statics.js +50 -0
- package/2D/controls/statics.js.map +1 -0
- package/2D/controls/textBlock.d.ts +219 -0
- package/2D/controls/textBlock.js +670 -0
- package/2D/controls/textBlock.js.map +1 -0
- package/2D/controls/textWrapper.d.ts +13 -0
- package/2D/controls/textWrapper.js +88 -0
- package/2D/controls/textWrapper.js.map +1 -0
- package/2D/controls/toggleButton.d.ts +93 -0
- package/2D/controls/toggleButton.js +229 -0
- package/2D/controls/toggleButton.js.map +1 -0
- package/2D/controls/virtualKeyboard.d.ts +102 -0
- package/2D/controls/virtualKeyboard.js +275 -0
- package/2D/controls/virtualKeyboard.js.map +1 -0
- package/2D/index.d.ts +11 -0
- package/2D/index.js +13 -0
- package/2D/index.js.map +1 -0
- package/2D/math2D.d.ts +136 -0
- package/2D/math2D.js +235 -0
- package/2D/math2D.js.map +1 -0
- package/2D/measure.d.ts +77 -0
- package/2D/measure.js +138 -0
- package/2D/measure.js.map +1 -0
- package/2D/multiLinePoint.d.ts +47 -0
- package/2D/multiLinePoint.js +110 -0
- package/2D/multiLinePoint.js.map +1 -0
- package/2D/style.d.ts +46 -0
- package/2D/style.js +80 -0
- package/2D/style.js.map +1 -0
- package/2D/valueAndUnit.d.ts +89 -0
- package/2D/valueAndUnit.js +194 -0
- package/2D/valueAndUnit.js.map +1 -0
- package/2D/xmlLoader.d.ts +60 -0
- package/2D/xmlLoader.js +348 -0
- package/2D/xmlLoader.js.map +1 -0
- package/3D/behaviors/defaultBehavior.d.ts +73 -0
- package/3D/behaviors/defaultBehavior.js +103 -0
- package/3D/behaviors/defaultBehavior.js.map +1 -0
- package/3D/controls/MRTK3/touchHolographicButton.d.ts +220 -0
- package/3D/controls/MRTK3/touchHolographicButton.js +868 -0
- package/3D/controls/MRTK3/touchHolographicButton.js.map +1 -0
- package/3D/controls/abstractButton3D.d.ts +15 -0
- package/3D/controls/abstractButton3D.js +22 -0
- package/3D/controls/abstractButton3D.js.map +1 -0
- package/3D/controls/button3D.d.ts +51 -0
- package/3D/controls/button3D.js +98 -0
- package/3D/controls/button3D.js.map +1 -0
- package/3D/controls/container3D.d.ts +72 -0
- package/3D/controls/container3D.js +126 -0
- package/3D/controls/container3D.js.map +1 -0
- package/3D/controls/contentDisplay3D.d.ts +42 -0
- package/3D/controls/contentDisplay3D.js +81 -0
- package/3D/controls/contentDisplay3D.js.map +1 -0
- package/3D/controls/control3D.d.ts +183 -0
- package/3D/controls/control3D.js +401 -0
- package/3D/controls/control3D.js.map +1 -0
- package/3D/controls/cylinderPanel.d.ts +17 -0
- package/3D/controls/cylinderPanel.js +57 -0
- package/3D/controls/cylinderPanel.js.map +1 -0
- package/3D/controls/handMenu.d.ts +28 -0
- package/3D/controls/handMenu.js +39 -0
- package/3D/controls/handMenu.js.map +1 -0
- package/3D/controls/holographicBackplate.d.ts +49 -0
- package/3D/controls/holographicBackplate.js +104 -0
- package/3D/controls/holographicBackplate.js.map +1 -0
- package/3D/controls/holographicButton.d.ts +84 -0
- package/3D/controls/holographicButton.js +300 -0
- package/3D/controls/holographicButton.js.map +1 -0
- package/3D/controls/holographicSlate.d.ts +134 -0
- package/3D/controls/holographicSlate.js +413 -0
- package/3D/controls/holographicSlate.js.map +1 -0
- package/3D/controls/index.d.ts +22 -0
- package/3D/controls/index.js +24 -0
- package/3D/controls/index.js.map +1 -0
- package/3D/controls/meshButton3D.d.ts +21 -0
- package/3D/controls/meshButton3D.js +58 -0
- package/3D/controls/meshButton3D.js.map +1 -0
- package/3D/controls/nearMenu.d.ts +44 -0
- package/3D/controls/nearMenu.js +103 -0
- package/3D/controls/nearMenu.js.map +1 -0
- package/3D/controls/planePanel.d.ts +9 -0
- package/3D/controls/planePanel.js +30 -0
- package/3D/controls/planePanel.js.map +1 -0
- package/3D/controls/scatterPanel.d.ts +18 -0
- package/3D/controls/scatterPanel.js +98 -0
- package/3D/controls/scatterPanel.js.map +1 -0
- package/3D/controls/slider3D.d.ts +95 -0
- package/3D/controls/slider3D.js +256 -0
- package/3D/controls/slider3D.js.map +1 -0
- package/3D/controls/spherePanel.d.ts +17 -0
- package/3D/controls/spherePanel.js +58 -0
- package/3D/controls/spherePanel.js.map +1 -0
- package/3D/controls/stackPanel3D.d.ts +22 -0
- package/3D/controls/stackPanel3D.js +95 -0
- package/3D/controls/stackPanel3D.js.map +1 -0
- package/3D/controls/touchButton3D.d.ts +77 -0
- package/3D/controls/touchButton3D.js +205 -0
- package/3D/controls/touchButton3D.js.map +1 -0
- package/3D/controls/touchHolographicButton.d.ts +110 -0
- package/3D/controls/touchHolographicButton.js +400 -0
- package/3D/controls/touchHolographicButton.js.map +1 -0
- package/3D/controls/touchHolographicMenu.d.ts +61 -0
- package/3D/controls/touchHolographicMenu.js +139 -0
- package/3D/controls/touchHolographicMenu.js.map +1 -0
- package/3D/controls/touchMeshButton3D.d.ts +21 -0
- package/3D/controls/touchMeshButton3D.js +58 -0
- package/3D/controls/touchMeshButton3D.js.map +1 -0
- package/3D/controls/volumeBasedPanel.d.ts +53 -0
- package/3D/controls/volumeBasedPanel.js +158 -0
- package/3D/controls/volumeBasedPanel.js.map +1 -0
- package/3D/gizmos/gizmoHandle.d.ts +108 -0
- package/3D/gizmos/gizmoHandle.js +175 -0
- package/3D/gizmos/gizmoHandle.js.map +1 -0
- package/3D/gizmos/index.d.ts +2 -0
- package/3D/gizmos/index.js +3 -0
- package/3D/gizmos/index.js.map +1 -0
- package/3D/gizmos/slateGizmo.d.ts +57 -0
- package/3D/gizmos/slateGizmo.js +353 -0
- package/3D/gizmos/slateGizmo.js.map +1 -0
- package/3D/gui3DManager.d.ts +94 -0
- package/3D/gui3DManager.js +233 -0
- package/3D/gui3DManager.js.map +1 -0
- package/3D/index.d.ts +5 -0
- package/3D/index.js +7 -0
- package/3D/index.js.map +1 -0
- package/3D/materials/fluent/fluentMaterial.d.ts +91 -0
- package/3D/materials/fluent/fluentMaterial.js +286 -0
- package/3D/materials/fluent/fluentMaterial.js.map +1 -0
- package/3D/materials/fluent/index.d.ts +1 -0
- package/3D/materials/fluent/index.js +2 -0
- package/3D/materials/fluent/index.js.map +1 -0
- package/3D/materials/fluent/shaders/fluent.fragment.d.ts +5 -0
- package/3D/materials/fluent/shaders/fluent.fragment.js +41 -0
- package/3D/materials/fluent/shaders/fluent.fragment.js.map +1 -0
- package/3D/materials/fluent/shaders/fluent.vertex.d.ts +5 -0
- package/3D/materials/fluent/shaders/fluent.vertex.js +40 -0
- package/3D/materials/fluent/shaders/fluent.vertex.js.map +1 -0
- package/3D/materials/fluentBackplate/fluentBackplateMaterial.d.ts +155 -0
- package/3D/materials/fluentBackplate/fluentBackplateMaterial.js +466 -0
- package/3D/materials/fluentBackplate/fluentBackplateMaterial.js.map +1 -0
- package/3D/materials/fluentBackplate/index.d.ts +1 -0
- package/3D/materials/fluentBackplate/index.js +2 -0
- package/3D/materials/fluentBackplate/index.js.map +1 -0
- package/3D/materials/fluentBackplate/shaders/fluentBackplate.fragment.d.ts +5 -0
- package/3D/materials/fluentBackplate/shaders/fluentBackplate.fragment.js +60 -0
- package/3D/materials/fluentBackplate/shaders/fluentBackplate.fragment.js.map +1 -0
- package/3D/materials/fluentBackplate/shaders/fluentBackplate.vertex.d.ts +5 -0
- package/3D/materials/fluentBackplate/shaders/fluentBackplate.vertex.js +127 -0
- package/3D/materials/fluentBackplate/shaders/fluentBackplate.vertex.js.map +1 -0
- package/3D/materials/fluentButton/fluentButtonMaterial.d.ts +190 -0
- package/3D/materials/fluentButton/fluentButtonMaterial.js +536 -0
- package/3D/materials/fluentButton/fluentButtonMaterial.js.map +1 -0
- package/3D/materials/fluentButton/index.d.ts +1 -0
- package/3D/materials/fluentButton/index.js +2 -0
- package/3D/materials/fluentButton/index.js.map +1 -0
- package/3D/materials/fluentButton/shaders/fluentButton.fragment.d.ts +5 -0
- package/3D/materials/fluentButton/shaders/fluentButton.fragment.js +57 -0
- package/3D/materials/fluentButton/shaders/fluentButton.fragment.js.map +1 -0
- package/3D/materials/fluentButton/shaders/fluentButton.vertex.d.ts +5 -0
- package/3D/materials/fluentButton/shaders/fluentButton.vertex.js +162 -0
- package/3D/materials/fluentButton/shaders/fluentButton.vertex.js.map +1 -0
- package/3D/materials/fluentMaterial.d.ts +4 -0
- package/3D/materials/fluentMaterial.js +5 -0
- package/3D/materials/fluentMaterial.js.map +1 -0
- package/3D/materials/handle/handleMaterial.d.ts +68 -0
- package/3D/materials/handle/handleMaterial.js +114 -0
- package/3D/materials/handle/handleMaterial.js.map +1 -0
- package/3D/materials/handle/index.d.ts +1 -0
- package/3D/materials/handle/index.js +2 -0
- package/3D/materials/handle/index.js.map +1 -0
- package/3D/materials/handle/shaders/handle.fragment.d.ts +5 -0
- package/3D/materials/handle/shaders/handle.fragment.js +11 -0
- package/3D/materials/handle/shaders/handle.fragment.js.map +1 -0
- package/3D/materials/handle/shaders/handle.vertex.d.ts +5 -0
- package/3D/materials/handle/shaders/handle.vertex.js +11 -0
- package/3D/materials/handle/shaders/handle.vertex.js.map +1 -0
- package/3D/materials/index.d.ts +5 -0
- package/3D/materials/index.js +7 -0
- package/3D/materials/index.js.map +1 -0
- package/3D/materials/mrdl/index.d.ts +3 -0
- package/3D/materials/mrdl/index.js +4 -0
- package/3D/materials/mrdl/index.js.map +1 -0
- package/3D/materials/mrdl/mrdlBackglowMaterial.d.ts +87 -0
- package/3D/materials/mrdl/mrdlBackglowMaterial.js +302 -0
- package/3D/materials/mrdl/mrdlBackglowMaterial.js.map +1 -0
- package/3D/materials/mrdl/mrdlBackplateMaterial.d.ts +148 -0
- package/3D/materials/mrdl/mrdlBackplateMaterial.js +433 -0
- package/3D/materials/mrdl/mrdlBackplateMaterial.js.map +1 -0
- package/3D/materials/mrdl/mrdlFrontplateMaterial.d.ts +186 -0
- package/3D/materials/mrdl/mrdlFrontplateMaterial.js +532 -0
- package/3D/materials/mrdl/mrdlFrontplateMaterial.js.map +1 -0
- package/3D/materials/mrdl/mrdlInnerquadMaterial.d.ts +56 -0
- package/3D/materials/mrdl/mrdlInnerquadMaterial.js +230 -0
- package/3D/materials/mrdl/mrdlInnerquadMaterial.js.map +1 -0
- package/3D/materials/mrdl/mrdlSliderBarMaterial.d.ts +337 -0
- package/3D/materials/mrdl/mrdlSliderBarMaterial.js +855 -0
- package/3D/materials/mrdl/mrdlSliderBarMaterial.js.map +1 -0
- package/3D/materials/mrdl/mrdlSliderThumbMaterial.d.ts +337 -0
- package/3D/materials/mrdl/mrdlSliderThumbMaterial.js +855 -0
- package/3D/materials/mrdl/mrdlSliderThumbMaterial.js.map +1 -0
- package/3D/materials/mrdl/shaders/mrdlBackglow.fragment.d.ts +5 -0
- package/3D/materials/mrdl/shaders/mrdlBackglow.fragment.js +25 -0
- package/3D/materials/mrdl/shaders/mrdlBackglow.fragment.js.map +1 -0
- package/3D/materials/mrdl/shaders/mrdlBackglow.vertex.d.ts +5 -0
- package/3D/materials/mrdl/shaders/mrdlBackglow.vertex.js +12 -0
- package/3D/materials/mrdl/shaders/mrdlBackglow.vertex.js.map +1 -0
- package/3D/materials/mrdl/shaders/mrdlBackplate.fragment.d.ts +5 -0
- package/3D/materials/mrdl/shaders/mrdlBackplate.fragment.js +88 -0
- package/3D/materials/mrdl/shaders/mrdlBackplate.fragment.js.map +1 -0
- package/3D/materials/mrdl/shaders/mrdlBackplate.vertex.d.ts +5 -0
- package/3D/materials/mrdl/shaders/mrdlBackplate.vertex.js +96 -0
- package/3D/materials/mrdl/shaders/mrdlBackplate.vertex.js.map +1 -0
- package/3D/materials/mrdl/shaders/mrdlFrontplate.fragment.d.ts +5 -0
- package/3D/materials/mrdl/shaders/mrdlFrontplate.fragment.js +48 -0
- package/3D/materials/mrdl/shaders/mrdlFrontplate.fragment.js.map +1 -0
- package/3D/materials/mrdl/shaders/mrdlFrontplate.vertex.d.ts +5 -0
- package/3D/materials/mrdl/shaders/mrdlFrontplate.vertex.js +158 -0
- package/3D/materials/mrdl/shaders/mrdlFrontplate.vertex.js.map +1 -0
- package/3D/materials/mrdl/shaders/mrdlInnerquad.fragment.d.ts +5 -0
- package/3D/materials/mrdl/shaders/mrdlInnerquad.fragment.js +27 -0
- package/3D/materials/mrdl/shaders/mrdlInnerquad.fragment.js.map +1 -0
- package/3D/materials/mrdl/shaders/mrdlInnerquad.vertex.d.ts +5 -0
- package/3D/materials/mrdl/shaders/mrdlInnerquad.vertex.js +13 -0
- package/3D/materials/mrdl/shaders/mrdlInnerquad.vertex.js.map +1 -0
- package/3D/materials/mrdl/shaders/mrdlSliderBar.fragment.d.ts +5 -0
- package/3D/materials/mrdl/shaders/mrdlSliderBar.fragment.js +236 -0
- package/3D/materials/mrdl/shaders/mrdlSliderBar.fragment.js.map +1 -0
- package/3D/materials/mrdl/shaders/mrdlSliderBar.vertex.d.ts +5 -0
- package/3D/materials/mrdl/shaders/mrdlSliderBar.vertex.js +137 -0
- package/3D/materials/mrdl/shaders/mrdlSliderBar.vertex.js.map +1 -0
- package/3D/materials/mrdl/shaders/mrdlSliderThumb.fragment.d.ts +5 -0
- package/3D/materials/mrdl/shaders/mrdlSliderThumb.fragment.js +236 -0
- package/3D/materials/mrdl/shaders/mrdlSliderThumb.fragment.js.map +1 -0
- package/3D/materials/mrdl/shaders/mrdlSliderThumb.vertex.d.ts +5 -0
- package/3D/materials/mrdl/shaders/mrdlSliderThumb.vertex.js +137 -0
- package/3D/materials/mrdl/shaders/mrdlSliderThumb.vertex.js.map +1 -0
- package/3D/vector3WithInfo.d.ts +16 -0
- package/3D/vector3WithInfo.js +18 -0
- package/3D/vector3WithInfo.js.map +1 -0
- package/index.d.ts +2 -0
- package/index.js +4 -0
- package/index.js.map +1 -0
- package/legacy/legacy.d.ts +1 -0
- package/legacy/legacy.js +17 -0
- package/legacy/legacy.js.map +1 -0
- package/license.md +71 -0
- package/package.json +47 -0
- package/readme.md +31 -0
|
@@ -0,0 +1,868 @@
|
|
|
1
|
+
import { AdvancedDynamicTexture } from "../../../2D/advancedDynamicTexture.js";
|
|
2
|
+
import { Animation } from "@babylonjs/core/Animations/animation.js";
|
|
3
|
+
import { AnimationGroup } from "@babylonjs/core/Animations/animationGroup.js";
|
|
4
|
+
import { Color3, Color4 } from "@babylonjs/core/Maths/math.color.js";
|
|
5
|
+
import { Control } from "../../../2D/controls/control.js";
|
|
6
|
+
import { CreatePlane } from "@babylonjs/core/Meshes/Builders/planeBuilder.js";
|
|
7
|
+
import { CreateBox } from "@babylonjs/core/Meshes/Builders/boxBuilder.js";
|
|
8
|
+
import { IsDocumentAvailable } from "@babylonjs/core/Misc/domManagement.js";
|
|
9
|
+
import { FadeInOutBehavior } from "@babylonjs/core/Behaviors/Meshes/fadeInOutBehavior.js";
|
|
10
|
+
import { Grid } from "../../../2D/controls/grid.js";
|
|
11
|
+
import { Image } from "../../../2D/controls/image.js";
|
|
12
|
+
import { MRDLBackglowMaterial } from "../../materials/mrdl/mrdlBackglowMaterial.js";
|
|
13
|
+
import { MRDLBackplateMaterial } from "../../materials/mrdl/mrdlBackplateMaterial.js";
|
|
14
|
+
import { MRDLFrontplateMaterial } from "../../materials/mrdl/mrdlFrontplateMaterial.js";
|
|
15
|
+
import { MRDLInnerquadMaterial } from "../../materials/mrdl/mrdlInnerquadMaterial.js";
|
|
16
|
+
import { Rectangle } from "../../../2D/controls/rectangle.js";
|
|
17
|
+
import { SceneLoader } from "@babylonjs/core/Loading/sceneLoader.js";
|
|
18
|
+
import { StackPanel } from "../../../2D/controls/stackPanel.js";
|
|
19
|
+
import { StandardMaterial } from "@babylonjs/core/Materials/standardMaterial.js";
|
|
20
|
+
import { TextBlock } from "../../../2D/controls/textBlock.js";
|
|
21
|
+
import { TouchButton3D } from "../touchButton3D.js";
|
|
22
|
+
import { TransformNode } from "@babylonjs/core/Meshes/transformNode.js";
|
|
23
|
+
import { Vector3 } from "@babylonjs/core/Maths/math.vector.js";
|
|
24
|
+
import { Tools } from "@babylonjs/core/Misc/tools.js";
|
|
25
|
+
/**
|
|
26
|
+
* Class used to create the mrtkv3 button
|
|
27
|
+
*/
|
|
28
|
+
export class TouchHolographicButton extends TouchButton3D {
|
|
29
|
+
_disposeTooltip() {
|
|
30
|
+
this._tooltipFade = null;
|
|
31
|
+
if (this._tooltipTextBlock) {
|
|
32
|
+
this._tooltipTextBlock.dispose();
|
|
33
|
+
}
|
|
34
|
+
if (this._tooltipTexture) {
|
|
35
|
+
this._tooltipTexture.dispose();
|
|
36
|
+
}
|
|
37
|
+
if (this._tooltipMesh) {
|
|
38
|
+
this._tooltipMesh.dispose();
|
|
39
|
+
}
|
|
40
|
+
this.onPointerEnterObservable.remove(this._tooltipHoverObserver);
|
|
41
|
+
this.onPointerOutObservable.remove(this._tooltipOutObserver);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Rendering ground id of all the mesh in the button
|
|
45
|
+
*/
|
|
46
|
+
set renderingGroupId(id) {
|
|
47
|
+
this._backPlate.renderingGroupId = id;
|
|
48
|
+
this._textPlate.renderingGroupId = id;
|
|
49
|
+
this._frontPlate.renderingGroupId = id;
|
|
50
|
+
this._backGlow.renderingGroupId = id;
|
|
51
|
+
this._innerQuad.renderingGroupId = id;
|
|
52
|
+
if (this._tooltipMesh) {
|
|
53
|
+
this._tooltipMesh.renderingGroupId = id;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
get renderingGroupId() {
|
|
57
|
+
return this._backPlate.renderingGroupId;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Gets the mesh used to render this control
|
|
61
|
+
*/
|
|
62
|
+
get mesh() {
|
|
63
|
+
return this._backPlate;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Text to be displayed on the tooltip shown when hovering on the button. When set to null tooltip is disabled. (Default: null)
|
|
67
|
+
* Set this property after adding the button to the GUI3DManager
|
|
68
|
+
*/
|
|
69
|
+
set tooltipText(text) {
|
|
70
|
+
if (!text) {
|
|
71
|
+
this._disposeTooltip();
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
if (!this._tooltipFade) {
|
|
75
|
+
const rightHandedScene = this._backPlate._scene.useRightHandedSystem;
|
|
76
|
+
// Create tooltip with mesh and text
|
|
77
|
+
this._tooltipMesh = CreatePlane("", { size: 1 }, this._backPlate._scene);
|
|
78
|
+
this._tooltipMesh.position = Vector3.Down().scale(0.7).add(Vector3.Forward(rightHandedScene).scale(-0.15));
|
|
79
|
+
this._tooltipMesh.isPickable = false;
|
|
80
|
+
this._tooltipMesh.parent = this._frontPlateCollisionMesh;
|
|
81
|
+
// Create text texture for the tooltip
|
|
82
|
+
this._tooltipTexture = AdvancedDynamicTexture.CreateForMesh(this._tooltipMesh);
|
|
83
|
+
const tooltipBackground = new Rectangle();
|
|
84
|
+
tooltipBackground.height = 0.25;
|
|
85
|
+
tooltipBackground.width = 0.8;
|
|
86
|
+
tooltipBackground.cornerRadius = 25;
|
|
87
|
+
tooltipBackground.color = "#ffffff";
|
|
88
|
+
tooltipBackground.thickness = 20;
|
|
89
|
+
tooltipBackground.background = "#060668";
|
|
90
|
+
this._tooltipTexture.addControl(tooltipBackground);
|
|
91
|
+
this._tooltipTextBlock = new TextBlock();
|
|
92
|
+
this._tooltipTextBlock.color = "white";
|
|
93
|
+
this._tooltipTextBlock.fontSize = 100;
|
|
94
|
+
this._tooltipTexture.addControl(this._tooltipTextBlock);
|
|
95
|
+
// Add hover action to tooltip
|
|
96
|
+
this._tooltipFade = new FadeInOutBehavior();
|
|
97
|
+
this._tooltipFade.delay = 500;
|
|
98
|
+
this._tooltipMesh.addBehavior(this._tooltipFade);
|
|
99
|
+
this._tooltipHoverObserver = this.onPointerEnterObservable.add(() => {
|
|
100
|
+
if (this._tooltipFade) {
|
|
101
|
+
this._tooltipFade.fadeIn(true);
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
this._tooltipOutObserver = this.onPointerOutObservable.add(() => {
|
|
105
|
+
if (this._tooltipFade) {
|
|
106
|
+
this._tooltipFade.fadeIn(false);
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
if (this._tooltipTextBlock) {
|
|
111
|
+
this._tooltipTextBlock.text = text;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
get tooltipText() {
|
|
115
|
+
return this._tooltipTextBlock?.text || null;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Gets or sets text for the button
|
|
119
|
+
*/
|
|
120
|
+
get text() {
|
|
121
|
+
return this._text;
|
|
122
|
+
}
|
|
123
|
+
set text(value) {
|
|
124
|
+
if (this._text === value) {
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
this._text = value;
|
|
128
|
+
this._rebuildContent();
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Gets or sets subtext for a button with larger width
|
|
132
|
+
*/
|
|
133
|
+
get subtext() {
|
|
134
|
+
return this._subtext;
|
|
135
|
+
}
|
|
136
|
+
set subtext(value) {
|
|
137
|
+
if (this._subtext === value) {
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
this._subtext = value;
|
|
141
|
+
this._rebuildContent();
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Gets or sets the image url for the button
|
|
145
|
+
*/
|
|
146
|
+
get imageUrl() {
|
|
147
|
+
return this._imageUrl;
|
|
148
|
+
}
|
|
149
|
+
set imageUrl(value) {
|
|
150
|
+
if (this._imageUrl === value) {
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
this._imageUrl = value;
|
|
154
|
+
this._rebuildContent();
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Gets the back material used by this button
|
|
158
|
+
*/
|
|
159
|
+
get backMaterial() {
|
|
160
|
+
return this._backMaterial;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Gets the front material used by this button
|
|
164
|
+
*/
|
|
165
|
+
get frontMaterial() {
|
|
166
|
+
return this._frontMaterial;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Gets the back glow material used by this button
|
|
170
|
+
*/
|
|
171
|
+
get backGlowMaterial() {
|
|
172
|
+
return this._backGlowMaterial;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Gets the inner quad material used by this button
|
|
176
|
+
*/
|
|
177
|
+
get innerQuadMaterial() {
|
|
178
|
+
return this._innerQuadMaterial;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Gets the plate material used by this button
|
|
182
|
+
*/
|
|
183
|
+
get plateMaterial() {
|
|
184
|
+
return this._plateMaterial;
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Gets a boolean indicating if this button shares its material with other V3 Buttons
|
|
188
|
+
*/
|
|
189
|
+
get shareMaterials() {
|
|
190
|
+
return this._shareMaterials;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Sets whether the backplate is visible or hidden. Hiding the backplate is not recommended without some sort of replacement
|
|
194
|
+
*/
|
|
195
|
+
set isBackplateVisible(isVisible) {
|
|
196
|
+
if (this.mesh && this._backMaterial) {
|
|
197
|
+
if (isVisible && !this._isBackplateVisible) {
|
|
198
|
+
this._backPlate.visibility = 1;
|
|
199
|
+
}
|
|
200
|
+
else if (!isVisible && this._isBackplateVisible) {
|
|
201
|
+
this._backPlate.visibility = 0;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
this._isBackplateVisible = isVisible;
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Creates a new button
|
|
208
|
+
* @param name defines the control name
|
|
209
|
+
* @param shareMaterials
|
|
210
|
+
*/
|
|
211
|
+
constructor(name, shareMaterials = true) {
|
|
212
|
+
super(name);
|
|
213
|
+
/**
|
|
214
|
+
* Gets or sets the horizontal scaling for the button.
|
|
215
|
+
*/
|
|
216
|
+
this.width = 1;
|
|
217
|
+
/**
|
|
218
|
+
* Gets or sets the vertical scaling for the button.
|
|
219
|
+
*/
|
|
220
|
+
this.height = 1;
|
|
221
|
+
/**
|
|
222
|
+
* Gets or sets the bevel radius for the button.
|
|
223
|
+
*/
|
|
224
|
+
this.radius = 0.14;
|
|
225
|
+
/**
|
|
226
|
+
* Gets or sets the font size of the button text in pixels.
|
|
227
|
+
* This is only adjustable for a button with width to height ratio greater than 1.
|
|
228
|
+
*/
|
|
229
|
+
this.textSizeInPixels = 18;
|
|
230
|
+
/**
|
|
231
|
+
* Gets or sets the size of the button image in pixels.
|
|
232
|
+
* This is only adjustable for a button with width to height ratio greater than 1.
|
|
233
|
+
*/
|
|
234
|
+
this.imageSizeInPixels = 40;
|
|
235
|
+
/**
|
|
236
|
+
* Gets or sets the color of the button plate.
|
|
237
|
+
*/
|
|
238
|
+
this.plateMaterialColor = new Color3(0.4, 0.4, 0.4);
|
|
239
|
+
// Shared variables for meshes
|
|
240
|
+
/**
|
|
241
|
+
* Gets or sets the depth of the button's front plate.
|
|
242
|
+
* This variable determines the z scaling and z position for some of the button's meshes.
|
|
243
|
+
*/
|
|
244
|
+
this.frontPlateDepth = 0.2;
|
|
245
|
+
/**
|
|
246
|
+
* Gets or sets the depth of the button's back plate.
|
|
247
|
+
* This variable determines the z scaling and z position for some of the button's meshes.
|
|
248
|
+
*/
|
|
249
|
+
this.backPlateDepth = 0.04;
|
|
250
|
+
/**
|
|
251
|
+
* Gets or sets the offset value for button's back glow.
|
|
252
|
+
* This variable determines the x, y scaling of the button's meshes.
|
|
253
|
+
*/
|
|
254
|
+
this.backGlowOffset = 0.1;
|
|
255
|
+
/**
|
|
256
|
+
* Gets or sets the value that determines the z scaling and z position for the innerQuad and BackGlow meshes.
|
|
257
|
+
*/
|
|
258
|
+
this.flatPlaneDepth = 0.001;
|
|
259
|
+
/**
|
|
260
|
+
* Gets or sets the radius for FrontMaterial and innerQuadMaterial.
|
|
261
|
+
*/
|
|
262
|
+
this.innerQuadRadius = this.radius - 0.04;
|
|
263
|
+
/**
|
|
264
|
+
* Gets or sets the color for innerQuadMaterial.
|
|
265
|
+
*/
|
|
266
|
+
this.innerQuadColor = new Color4(0, 0, 0, 0);
|
|
267
|
+
/**
|
|
268
|
+
* Gets or sets the color for innerQuadMaterial for when it is toggled.
|
|
269
|
+
*/
|
|
270
|
+
this.innerQuadToggledColor = new Color4(0.5197843, 0.6485234, 0.9607843, 0.6);
|
|
271
|
+
/**
|
|
272
|
+
* Gets or sets the color for innerQuadMaterial for when it is hovered.
|
|
273
|
+
*/
|
|
274
|
+
this.innerQuadHoverColor = new Color4(1, 1, 1, 0.05);
|
|
275
|
+
/**
|
|
276
|
+
* Gets or sets the color for innerQuadMaterial for when it is toggled and hovered.
|
|
277
|
+
*/
|
|
278
|
+
this.innerQuadToggledHoverColor = new Color4(0.5197843, 0.6485234, 0.9607843, 1);
|
|
279
|
+
this._isBackplateVisible = true;
|
|
280
|
+
// Materials
|
|
281
|
+
this._shareMaterials = true;
|
|
282
|
+
this._shareMaterials = shareMaterials;
|
|
283
|
+
this.pointerEnterAnimation = () => {
|
|
284
|
+
if (this._frontPlate && this._textPlate && !this.isToggleButton) {
|
|
285
|
+
this._performEnterExitAnimation(1);
|
|
286
|
+
}
|
|
287
|
+
if (this.isToggleButton && this._innerQuadMaterial) {
|
|
288
|
+
if (this.isToggled) {
|
|
289
|
+
this._innerQuadMaterial.color = this.innerQuadToggledHoverColor;
|
|
290
|
+
}
|
|
291
|
+
else {
|
|
292
|
+
this._innerQuadMaterial.color = this.innerQuadHoverColor;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
};
|
|
296
|
+
this.pointerOutAnimation = () => {
|
|
297
|
+
if (this._frontPlate && this._textPlate && !this.isToggleButton) {
|
|
298
|
+
this._performEnterExitAnimation(-0.8);
|
|
299
|
+
}
|
|
300
|
+
if (this.isToggleButton && this._innerQuadMaterial) {
|
|
301
|
+
this._onToggle(this.isToggled);
|
|
302
|
+
}
|
|
303
|
+
};
|
|
304
|
+
this.pointerDownAnimation = () => {
|
|
305
|
+
// Do nothing
|
|
306
|
+
};
|
|
307
|
+
this.pointerUpAnimation = () => {
|
|
308
|
+
// Do nothing
|
|
309
|
+
};
|
|
310
|
+
this._pointerClickObserver = this.onPointerClickObservable.add(() => {
|
|
311
|
+
if (this._frontPlate && this._backGlow && !this.isActiveNearInteraction) {
|
|
312
|
+
this._performClickAnimation();
|
|
313
|
+
}
|
|
314
|
+
if (this.isToggleButton && this._innerQuadMaterial) {
|
|
315
|
+
this._onToggle(this.isToggled);
|
|
316
|
+
}
|
|
317
|
+
});
|
|
318
|
+
this._pointerEnterObserver = this.onPointerEnterObservable.add(() => {
|
|
319
|
+
this.pointerEnterAnimation();
|
|
320
|
+
});
|
|
321
|
+
this._pointerOutObserver = this.onPointerOutObservable.add(() => {
|
|
322
|
+
this.pointerOutAnimation();
|
|
323
|
+
});
|
|
324
|
+
this._toggleObserver = this.onToggleObservable.add((isToggled) => {
|
|
325
|
+
if (isToggled) {
|
|
326
|
+
this._innerQuadMaterial.color = this.innerQuadToggledColor;
|
|
327
|
+
}
|
|
328
|
+
else {
|
|
329
|
+
this._innerQuadMaterial.color = this.innerQuadColor;
|
|
330
|
+
}
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
_getTypeName() {
|
|
334
|
+
return "TouchHolographicButton";
|
|
335
|
+
}
|
|
336
|
+
_rebuildContent() {
|
|
337
|
+
let content;
|
|
338
|
+
if (this._getAspectRatio() <= 1) {
|
|
339
|
+
// align text and image vertically
|
|
340
|
+
content = this._alignContentVertically();
|
|
341
|
+
}
|
|
342
|
+
else {
|
|
343
|
+
// align text and image horizontally
|
|
344
|
+
content = this._alignContentHorizontally();
|
|
345
|
+
}
|
|
346
|
+
this.content = content;
|
|
347
|
+
}
|
|
348
|
+
_getAspectRatio() {
|
|
349
|
+
return this.width / this.height;
|
|
350
|
+
}
|
|
351
|
+
_alignContentVertically() {
|
|
352
|
+
const panel = new StackPanel();
|
|
353
|
+
panel.isVertical = true;
|
|
354
|
+
if (IsDocumentAvailable() && !!document.createElement) {
|
|
355
|
+
if (this._imageUrl) {
|
|
356
|
+
const image = new Image();
|
|
357
|
+
image.source = this._imageUrl;
|
|
358
|
+
image.heightInPixels = 180;
|
|
359
|
+
image.widthInPixels = 100;
|
|
360
|
+
image.paddingTopInPixels = 40;
|
|
361
|
+
image.paddingBottomInPixels = 40;
|
|
362
|
+
panel.addControl(image);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
if (this._text) {
|
|
366
|
+
const text = new TextBlock();
|
|
367
|
+
text.text = this._text;
|
|
368
|
+
text.color = "white";
|
|
369
|
+
text.heightInPixels = 30;
|
|
370
|
+
text.fontSize = 24;
|
|
371
|
+
panel.addControl(text);
|
|
372
|
+
}
|
|
373
|
+
return panel;
|
|
374
|
+
}
|
|
375
|
+
_alignContentHorizontally() {
|
|
376
|
+
let totalPanelWidthInPixels = 240;
|
|
377
|
+
const padding = 15;
|
|
378
|
+
const contentContainer = new Rectangle();
|
|
379
|
+
contentContainer.widthInPixels = totalPanelWidthInPixels;
|
|
380
|
+
contentContainer.heightInPixels = totalPanelWidthInPixels;
|
|
381
|
+
contentContainer.color = "transparent";
|
|
382
|
+
contentContainer.setPaddingInPixels(padding, padding, padding, padding);
|
|
383
|
+
totalPanelWidthInPixels -= padding * 2;
|
|
384
|
+
const panel = new StackPanel();
|
|
385
|
+
panel.isVertical = false;
|
|
386
|
+
panel.scaleY = this._getAspectRatio();
|
|
387
|
+
if (IsDocumentAvailable() && !!document.createElement) {
|
|
388
|
+
if (this._imageUrl) {
|
|
389
|
+
const imageContainer = new Rectangle(`${this.name}_image`);
|
|
390
|
+
imageContainer.widthInPixels = this.imageSizeInPixels;
|
|
391
|
+
imageContainer.heightInPixels = this.imageSizeInPixels;
|
|
392
|
+
imageContainer.color = "transparent";
|
|
393
|
+
totalPanelWidthInPixels -= this.imageSizeInPixels;
|
|
394
|
+
const image = new Image();
|
|
395
|
+
image.source = this._imageUrl;
|
|
396
|
+
imageContainer.addControl(image);
|
|
397
|
+
panel.addControl(imageContainer);
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
if (this._text) {
|
|
401
|
+
const text = new TextBlock(`${this.name}_text`);
|
|
402
|
+
text.text = this._text;
|
|
403
|
+
text.color = "white";
|
|
404
|
+
text.fontSize = this.textSizeInPixels;
|
|
405
|
+
text.widthInPixels = totalPanelWidthInPixels;
|
|
406
|
+
if (this._imageUrl) {
|
|
407
|
+
text.textHorizontalAlignment = Control.HORIZONTAL_ALIGNMENT_LEFT;
|
|
408
|
+
text.paddingLeftInPixels = padding;
|
|
409
|
+
}
|
|
410
|
+
if (this._subtext) {
|
|
411
|
+
const textContainer = new Grid();
|
|
412
|
+
textContainer.addColumnDefinition(1);
|
|
413
|
+
textContainer.addRowDefinition(0.5);
|
|
414
|
+
textContainer.addRowDefinition(0.5);
|
|
415
|
+
textContainer.widthInPixels = totalPanelWidthInPixels;
|
|
416
|
+
textContainer.heightInPixels = 45;
|
|
417
|
+
const subtext = new TextBlock(`${this.name}_subtext`);
|
|
418
|
+
subtext.text = this._subtext;
|
|
419
|
+
subtext.color = "#EEEEEEAB";
|
|
420
|
+
subtext.fontSize = this.textSizeInPixels * 0.75;
|
|
421
|
+
subtext.fontWeight = "600";
|
|
422
|
+
if (this._imageUrl) {
|
|
423
|
+
subtext.textHorizontalAlignment = Control.HORIZONTAL_ALIGNMENT_LEFT;
|
|
424
|
+
subtext.paddingLeftInPixels = padding;
|
|
425
|
+
}
|
|
426
|
+
textContainer.addControl(text, 0);
|
|
427
|
+
textContainer.addControl(subtext, 1);
|
|
428
|
+
panel.addControl(textContainer);
|
|
429
|
+
}
|
|
430
|
+
else {
|
|
431
|
+
panel.addControl(text);
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
contentContainer.addControl(panel);
|
|
435
|
+
return contentContainer;
|
|
436
|
+
}
|
|
437
|
+
// Mesh association
|
|
438
|
+
_createNode(scene) {
|
|
439
|
+
this.name = this.name ?? "TouchHolographicButton";
|
|
440
|
+
const backPlateMesh = this._createBackPlate(scene);
|
|
441
|
+
const collisionMesh = this._createFrontPlate(scene);
|
|
442
|
+
const innerQuadMesh = this._createInnerQuad(scene);
|
|
443
|
+
const backGlowMesh = this._createBackGlow(scene);
|
|
444
|
+
this._frontPlateCollisionMesh = collisionMesh;
|
|
445
|
+
this._textPlate = super._createNode(scene);
|
|
446
|
+
this._textPlate.name = `${this.name}_textPlate`;
|
|
447
|
+
this._textPlate.isPickable = false;
|
|
448
|
+
this._textPlate.scaling.x = this.width;
|
|
449
|
+
this._textPlate.parent = collisionMesh;
|
|
450
|
+
this._backPlate = backPlateMesh;
|
|
451
|
+
this._backPlate.position = Vector3.Forward(scene.useRightHandedSystem).scale(this.backPlateDepth / 2);
|
|
452
|
+
this._backPlate.isPickable = false;
|
|
453
|
+
this._backPlate.addChild(collisionMesh);
|
|
454
|
+
this._backPlate.addChild(innerQuadMesh);
|
|
455
|
+
if (backGlowMesh) {
|
|
456
|
+
this._backPlate.addChild(backGlowMesh);
|
|
457
|
+
}
|
|
458
|
+
const tn = new TransformNode(`${this.name}_root`, scene);
|
|
459
|
+
this._backPlate.setParent(tn);
|
|
460
|
+
this.collisionMesh = collisionMesh;
|
|
461
|
+
this.collidableFrontDirection = this._backPlate.forward.negate(); // Mesh is facing the wrong way
|
|
462
|
+
return tn;
|
|
463
|
+
}
|
|
464
|
+
_createBackPlate(scene) {
|
|
465
|
+
const backPlateMesh = CreateBox(`${this.name}_backPlate`, {}, scene);
|
|
466
|
+
backPlateMesh.isPickable = false;
|
|
467
|
+
backPlateMesh.visibility = 0;
|
|
468
|
+
backPlateMesh.scaling.z = 0.2;
|
|
469
|
+
const baseUrl = Tools.GetAssetUrl(TouchHolographicButton.MRTK_ASSET_BASE_URL);
|
|
470
|
+
// eslint-disable-next-line @typescript-eslint/no-floating-promises, github/no-then
|
|
471
|
+
SceneLoader.ImportMeshAsync(undefined, baseUrl, TouchHolographicButton.BACKPLATE_MODEL_FILENAME, scene).then((result) => {
|
|
472
|
+
const backPlateModel = result.meshes[1];
|
|
473
|
+
backPlateModel.visibility = 0;
|
|
474
|
+
if (this._isBackplateVisible) {
|
|
475
|
+
backPlateModel.visibility = 1;
|
|
476
|
+
backPlateModel.name = `${this.name}_backPlate`;
|
|
477
|
+
backPlateModel.isPickable = false;
|
|
478
|
+
backPlateModel.scaling.x = this.width;
|
|
479
|
+
backPlateModel.scaling.y = this.height;
|
|
480
|
+
backPlateModel.parent = backPlateMesh;
|
|
481
|
+
}
|
|
482
|
+
if (this._backMaterial) {
|
|
483
|
+
backPlateModel.material = this._backMaterial;
|
|
484
|
+
}
|
|
485
|
+
this._backPlate = backPlateModel;
|
|
486
|
+
});
|
|
487
|
+
return backPlateMesh;
|
|
488
|
+
}
|
|
489
|
+
_createFrontPlate(scene) {
|
|
490
|
+
const collisionMesh = CreateBox(`${this.name}_frontPlate`, {
|
|
491
|
+
width: this.width,
|
|
492
|
+
height: this.height,
|
|
493
|
+
depth: this.frontPlateDepth,
|
|
494
|
+
}, scene);
|
|
495
|
+
collisionMesh.isPickable = true;
|
|
496
|
+
collisionMesh.isNearPickable = true;
|
|
497
|
+
collisionMesh.visibility = 0;
|
|
498
|
+
collisionMesh.position = Vector3.Forward(scene.useRightHandedSystem).scale((this.backPlateDepth - this.frontPlateDepth) / 2);
|
|
499
|
+
const baseUrl = Tools.GetAssetUrl(TouchHolographicButton.MRTK_ASSET_BASE_URL);
|
|
500
|
+
// eslint-disable-next-line @typescript-eslint/no-floating-promises, github/no-then
|
|
501
|
+
SceneLoader.ImportMeshAsync(undefined, baseUrl, TouchHolographicButton.FRONTPLATE_MODEL_FILENAME, scene).then((result) => {
|
|
502
|
+
const collisionPlate = CreateBox(`${this.name}_collisionPlate`, {
|
|
503
|
+
width: this.width,
|
|
504
|
+
height: this.height,
|
|
505
|
+
}, scene);
|
|
506
|
+
collisionPlate.isPickable = false;
|
|
507
|
+
collisionPlate.scaling.z = this.frontPlateDepth;
|
|
508
|
+
collisionPlate.visibility = 0;
|
|
509
|
+
collisionPlate.parent = collisionMesh;
|
|
510
|
+
this._collisionPlate = collisionPlate;
|
|
511
|
+
const frontPlateModel = result.meshes[1];
|
|
512
|
+
frontPlateModel.name = `${this.name}_frontPlate`;
|
|
513
|
+
frontPlateModel.isPickable = false;
|
|
514
|
+
frontPlateModel.scaling.x = this.width - this.backGlowOffset;
|
|
515
|
+
frontPlateModel.scaling.y = this.height - this.backGlowOffset;
|
|
516
|
+
frontPlateModel.position = Vector3.Forward(scene.useRightHandedSystem).scale(-0.5);
|
|
517
|
+
frontPlateModel.parent = collisionPlate;
|
|
518
|
+
if (this.isToggleButton) {
|
|
519
|
+
frontPlateModel.visibility = 0;
|
|
520
|
+
}
|
|
521
|
+
if (this._frontMaterial) {
|
|
522
|
+
frontPlateModel.material = this._frontMaterial;
|
|
523
|
+
}
|
|
524
|
+
this._textPlate.scaling.x = 1;
|
|
525
|
+
this._textPlate.parent = frontPlateModel;
|
|
526
|
+
this._frontPlate = frontPlateModel;
|
|
527
|
+
});
|
|
528
|
+
return collisionMesh;
|
|
529
|
+
}
|
|
530
|
+
_createInnerQuad(scene) {
|
|
531
|
+
const innerQuadMesh = CreateBox(`${this.name}_innerQuad`, {}, scene);
|
|
532
|
+
innerQuadMesh.isPickable = false;
|
|
533
|
+
innerQuadMesh.visibility = 0;
|
|
534
|
+
innerQuadMesh.scaling.z = this.flatPlaneDepth;
|
|
535
|
+
innerQuadMesh.position.z += this.backPlateDepth / 2 - this.flatPlaneDepth;
|
|
536
|
+
const baseUrl = Tools.GetAssetUrl(TouchHolographicButton.MRTK_ASSET_BASE_URL);
|
|
537
|
+
// eslint-disable-next-line @typescript-eslint/no-floating-promises, github/no-then
|
|
538
|
+
SceneLoader.ImportMeshAsync(undefined, baseUrl, TouchHolographicButton.INNERQUAD_MODEL_FILENAME, scene).then((result) => {
|
|
539
|
+
const innerQuadModel = result.meshes[1];
|
|
540
|
+
innerQuadModel.name = `${this.name}_innerQuad`;
|
|
541
|
+
innerQuadModel.isPickable = false;
|
|
542
|
+
innerQuadModel.scaling.x = this.width - this.backGlowOffset;
|
|
543
|
+
innerQuadModel.scaling.y = this.height - this.backGlowOffset;
|
|
544
|
+
innerQuadModel.parent = innerQuadMesh;
|
|
545
|
+
if (this._innerQuadMaterial) {
|
|
546
|
+
innerQuadModel.material = this._innerQuadMaterial;
|
|
547
|
+
}
|
|
548
|
+
this._innerQuad = innerQuadModel;
|
|
549
|
+
});
|
|
550
|
+
return innerQuadMesh;
|
|
551
|
+
}
|
|
552
|
+
_createBackGlow(scene) {
|
|
553
|
+
if (this.isToggleButton) {
|
|
554
|
+
return;
|
|
555
|
+
}
|
|
556
|
+
const backGlowMesh = CreateBox(`${this.name}_backGlow`, {}, scene);
|
|
557
|
+
backGlowMesh.isPickable = false;
|
|
558
|
+
backGlowMesh.visibility = 0;
|
|
559
|
+
backGlowMesh.scaling.z = this.flatPlaneDepth;
|
|
560
|
+
backGlowMesh.position.z += this.backPlateDepth / 2 - this.flatPlaneDepth * 2;
|
|
561
|
+
const baseUrl = Tools.GetAssetUrl(TouchHolographicButton.MRTK_ASSET_BASE_URL);
|
|
562
|
+
// eslint-disable-next-line @typescript-eslint/no-floating-promises, github/no-then
|
|
563
|
+
SceneLoader.ImportMeshAsync(undefined, baseUrl, TouchHolographicButton.BACKGLOW_MODEL_FILENAME, scene).then((result) => {
|
|
564
|
+
const backGlowModel = result.meshes[1];
|
|
565
|
+
backGlowModel.name = `${this.name}_backGlow`;
|
|
566
|
+
backGlowModel.isPickable = false;
|
|
567
|
+
backGlowModel.scaling.x = this.width - this.backGlowOffset;
|
|
568
|
+
backGlowModel.scaling.y = this.height - this.backGlowOffset;
|
|
569
|
+
backGlowModel.parent = backGlowMesh;
|
|
570
|
+
if (this._backGlowMaterial) {
|
|
571
|
+
backGlowModel.material = this._backGlowMaterial;
|
|
572
|
+
}
|
|
573
|
+
this._backGlow = backGlowModel;
|
|
574
|
+
});
|
|
575
|
+
return backGlowMesh;
|
|
576
|
+
}
|
|
577
|
+
_applyFacade(facadeTexture) {
|
|
578
|
+
this._plateMaterial.emissiveTexture = facadeTexture;
|
|
579
|
+
this._plateMaterial.opacityTexture = facadeTexture;
|
|
580
|
+
this._plateMaterial.diffuseColor = this.plateMaterialColor;
|
|
581
|
+
}
|
|
582
|
+
_performClickAnimation() {
|
|
583
|
+
const frameRate = 60;
|
|
584
|
+
const animationGroup = new AnimationGroup("Click Animation Group");
|
|
585
|
+
const animations = [
|
|
586
|
+
{
|
|
587
|
+
name: "backGlowMotion",
|
|
588
|
+
mesh: this._backGlow,
|
|
589
|
+
property: "material.motion",
|
|
590
|
+
keys: [
|
|
591
|
+
{
|
|
592
|
+
frame: 0,
|
|
593
|
+
values: [0, 0, 0],
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
frame: 20,
|
|
597
|
+
values: [1, 0.0144, 0.0144],
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
frame: 40,
|
|
601
|
+
values: [0.0027713229489760476, 0, 0],
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
frame: 45,
|
|
605
|
+
values: [0.0027713229489760476],
|
|
606
|
+
},
|
|
607
|
+
],
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
name: "_collisionPlateZSlide",
|
|
611
|
+
mesh: this._collisionPlate,
|
|
612
|
+
property: "position.z",
|
|
613
|
+
keys: [
|
|
614
|
+
{
|
|
615
|
+
frame: 0,
|
|
616
|
+
values: [0.0, 0.0, 0.0],
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
frame: 20,
|
|
620
|
+
values: [Vector3.Forward(this._collisionPlate._scene.useRightHandedSystem).scale(this.frontPlateDepth / 2).z, 0.0, 0.0],
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
frame: 40,
|
|
624
|
+
values: [0.0, 0.005403332496794331],
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
frame: 45,
|
|
628
|
+
values: [0.0],
|
|
629
|
+
},
|
|
630
|
+
],
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
name: "_collisionPlateZScale",
|
|
634
|
+
mesh: this._collisionPlate,
|
|
635
|
+
property: "scaling.z",
|
|
636
|
+
keys: [
|
|
637
|
+
{
|
|
638
|
+
frame: 0,
|
|
639
|
+
values: [this.frontPlateDepth, 0.0, 0.0],
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
frame: 20,
|
|
643
|
+
values: [this.backPlateDepth, 0.0, 0.0],
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
frame: 40,
|
|
647
|
+
values: [this.frontPlateDepth, 0.0054],
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
frame: 45,
|
|
651
|
+
values: [this.frontPlateDepth],
|
|
652
|
+
},
|
|
653
|
+
],
|
|
654
|
+
},
|
|
655
|
+
];
|
|
656
|
+
for (const animation of animations) {
|
|
657
|
+
const anim = new Animation(animation.name, animation.property, frameRate, Animation.ANIMATIONTYPE_FLOAT, Animation.ANIMATIONLOOPMODE_CYCLE);
|
|
658
|
+
const animkeyFrames = [];
|
|
659
|
+
for (const key of animation.keys) {
|
|
660
|
+
animkeyFrames.push({
|
|
661
|
+
frame: key.frame,
|
|
662
|
+
value: key.values[0],
|
|
663
|
+
inTangent: key.values[1],
|
|
664
|
+
outTangent: key.values[2],
|
|
665
|
+
interpolation: key.values[3],
|
|
666
|
+
});
|
|
667
|
+
}
|
|
668
|
+
anim.setKeys(animkeyFrames);
|
|
669
|
+
if (!animation.mesh) {
|
|
670
|
+
continue;
|
|
671
|
+
}
|
|
672
|
+
animationGroup.addTargetedAnimation(anim, animation.mesh);
|
|
673
|
+
}
|
|
674
|
+
animationGroup.normalize(0, 45);
|
|
675
|
+
animationGroup.speedRatio = 1;
|
|
676
|
+
animationGroup.play();
|
|
677
|
+
}
|
|
678
|
+
_performEnterExitAnimation(speedRatio) {
|
|
679
|
+
const frameRate = 60;
|
|
680
|
+
const animationGroup = new AnimationGroup("Enter Exit Animation Group");
|
|
681
|
+
const animations = [
|
|
682
|
+
{
|
|
683
|
+
name: "frontPlateFadeOut",
|
|
684
|
+
mesh: this._frontPlate,
|
|
685
|
+
property: "material.fadeOut",
|
|
686
|
+
keys: [
|
|
687
|
+
{
|
|
688
|
+
frame: 0,
|
|
689
|
+
values: [0, 0, 0.025045314830017686, 0],
|
|
690
|
+
},
|
|
691
|
+
{
|
|
692
|
+
frame: 40,
|
|
693
|
+
values: [1.00205599570012, 0.025045314830017686, 0, 0],
|
|
694
|
+
},
|
|
695
|
+
],
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
name: "textPlateZSlide",
|
|
699
|
+
mesh: this._textPlate,
|
|
700
|
+
property: "position.z",
|
|
701
|
+
keys: [
|
|
702
|
+
{
|
|
703
|
+
frame: 0,
|
|
704
|
+
values: [0, 0.0, 0.0],
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
frame: 40,
|
|
708
|
+
values: [Vector3.Forward(this._textPlate._scene.useRightHandedSystem).scale(-0.15).z, 0.0, 0.0],
|
|
709
|
+
},
|
|
710
|
+
],
|
|
711
|
+
},
|
|
712
|
+
];
|
|
713
|
+
for (const animation of animations) {
|
|
714
|
+
const anim = new Animation(animation.name, animation.property, frameRate, Animation.ANIMATIONTYPE_FLOAT, Animation.ANIMATIONLOOPMODE_CYCLE);
|
|
715
|
+
const animkeyFrames = [];
|
|
716
|
+
for (const key of animation.keys) {
|
|
717
|
+
animkeyFrames.push({
|
|
718
|
+
frame: key.frame,
|
|
719
|
+
value: key.values[0],
|
|
720
|
+
inTangent: key.values[1],
|
|
721
|
+
outTangent: key.values[2],
|
|
722
|
+
interpolation: key.values[3],
|
|
723
|
+
});
|
|
724
|
+
}
|
|
725
|
+
anim.setKeys(animkeyFrames);
|
|
726
|
+
if (!animation.mesh) {
|
|
727
|
+
continue;
|
|
728
|
+
}
|
|
729
|
+
animationGroup.addTargetedAnimation(anim, animation.mesh);
|
|
730
|
+
}
|
|
731
|
+
animationGroup.normalize(0, 45);
|
|
732
|
+
animationGroup.speedRatio = speedRatio;
|
|
733
|
+
animationGroup.play();
|
|
734
|
+
}
|
|
735
|
+
_createBackMaterial(mesh) {
|
|
736
|
+
this._backMaterial = this._backMaterial ?? new MRDLBackplateMaterial(this.name + "backPlateMaterial", mesh.getScene());
|
|
737
|
+
this._backMaterial.absoluteSizes = true;
|
|
738
|
+
this._backMaterial.radius = this.radius;
|
|
739
|
+
this._backMaterial.lineWidth = 0.02;
|
|
740
|
+
}
|
|
741
|
+
_createFrontMaterial(mesh) {
|
|
742
|
+
this._frontMaterial = this._frontMaterial ?? new MRDLFrontplateMaterial(this.name + "Front Material", mesh.getScene());
|
|
743
|
+
this.frontMaterial.radius = this.innerQuadRadius;
|
|
744
|
+
this.frontMaterial.fadeOut = 0.0;
|
|
745
|
+
}
|
|
746
|
+
_createBackGlowMaterial(mesh) {
|
|
747
|
+
const glowRadius = this.radius + 0.04;
|
|
748
|
+
this._backGlowMaterial = this._backGlowMaterial ?? new MRDLBackglowMaterial(this.name + "Back Glow Material", mesh.getScene());
|
|
749
|
+
this._backGlowMaterial.bevelRadius = glowRadius;
|
|
750
|
+
this._backGlowMaterial.lineWidth = glowRadius;
|
|
751
|
+
this._backGlowMaterial.motion = 0.0;
|
|
752
|
+
}
|
|
753
|
+
_createInnerQuadMaterial(mesh) {
|
|
754
|
+
this._innerQuadMaterial = this._innerQuadMaterial ?? new MRDLInnerquadMaterial("inner_quad", mesh.getScene());
|
|
755
|
+
this._innerQuadMaterial.radius = this.innerQuadRadius;
|
|
756
|
+
if (this.isToggleButton) {
|
|
757
|
+
this._innerQuadMaterial.color = this.innerQuadColor;
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
_createPlateMaterial(mesh) {
|
|
761
|
+
this._plateMaterial = this._plateMaterial ?? new StandardMaterial(this.name + "Plate Material", mesh.getScene());
|
|
762
|
+
this._plateMaterial.specularColor = Color3.Black();
|
|
763
|
+
}
|
|
764
|
+
_onToggle(newState) {
|
|
765
|
+
super._onToggle(newState);
|
|
766
|
+
}
|
|
767
|
+
_affectMaterial(mesh) {
|
|
768
|
+
if (this._shareMaterials) {
|
|
769
|
+
// Back
|
|
770
|
+
if (!this._host._touchSharedMaterials["mrdlBackplateMaterial"]) {
|
|
771
|
+
this._createBackMaterial(mesh);
|
|
772
|
+
this._host._touchSharedMaterials["mrdlBackplateMaterial"] = this._backMaterial;
|
|
773
|
+
}
|
|
774
|
+
else {
|
|
775
|
+
this._backMaterial = this._host._touchSharedMaterials["mrdlBackplateMaterial"];
|
|
776
|
+
}
|
|
777
|
+
// Front
|
|
778
|
+
if (!this._host._touchSharedMaterials["mrdlFrontplateMaterial"]) {
|
|
779
|
+
this._createFrontMaterial(mesh);
|
|
780
|
+
this._host._touchSharedMaterials["mrdlFrontplateMaterial"] = this._frontMaterial;
|
|
781
|
+
}
|
|
782
|
+
else {
|
|
783
|
+
this._frontMaterial = this._host._touchSharedMaterials["mrdlFrontplateMaterial"];
|
|
784
|
+
}
|
|
785
|
+
// Back glow
|
|
786
|
+
if (!this._host._touchSharedMaterials["mrdlBackglowMaterial"]) {
|
|
787
|
+
this._createBackGlowMaterial(mesh);
|
|
788
|
+
this._host._touchSharedMaterials["mrdlBackglowMaterial"] = this._backGlowMaterial;
|
|
789
|
+
}
|
|
790
|
+
else {
|
|
791
|
+
this._backGlowMaterial = this._host._touchSharedMaterials["mrdlBackglowMaterial"];
|
|
792
|
+
}
|
|
793
|
+
// Inner quad
|
|
794
|
+
if (!this._host._touchSharedMaterials["mrdlInnerQuadMaterial"]) {
|
|
795
|
+
this._createInnerQuadMaterial(mesh);
|
|
796
|
+
this._host._touchSharedMaterials["mrdlInnerQuadMaterial"] = this._innerQuadMaterial;
|
|
797
|
+
}
|
|
798
|
+
else {
|
|
799
|
+
this._innerQuadMaterial = this._host._touchSharedMaterials["mrdlInnerQuadMaterial"];
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
else {
|
|
803
|
+
this._createBackMaterial(mesh);
|
|
804
|
+
this._createFrontMaterial(mesh);
|
|
805
|
+
this._createBackGlowMaterial(mesh);
|
|
806
|
+
this._createInnerQuadMaterial(mesh);
|
|
807
|
+
}
|
|
808
|
+
this._createPlateMaterial(mesh);
|
|
809
|
+
this._backPlate.material = this._backMaterial;
|
|
810
|
+
this._textPlate.material = this._plateMaterial;
|
|
811
|
+
if (!this._isBackplateVisible) {
|
|
812
|
+
this._backPlate.visibility = 0;
|
|
813
|
+
}
|
|
814
|
+
if (this._frontPlate) {
|
|
815
|
+
this._frontPlate.material = this._frontMaterial;
|
|
816
|
+
}
|
|
817
|
+
if (this._backGlow) {
|
|
818
|
+
this._backGlow.material = this._backGlowMaterial;
|
|
819
|
+
}
|
|
820
|
+
if (this._innerQuad) {
|
|
821
|
+
this._innerQuad.material = this._innerQuadMaterial;
|
|
822
|
+
}
|
|
823
|
+
this._rebuildContent();
|
|
824
|
+
}
|
|
825
|
+
/**
|
|
826
|
+
* Releases all associated resources
|
|
827
|
+
*/
|
|
828
|
+
dispose() {
|
|
829
|
+
super.dispose(); // will dispose main mesh ie. back plate
|
|
830
|
+
this._disposeTooltip();
|
|
831
|
+
this.onPointerClickObservable.remove(this._pointerClickObserver);
|
|
832
|
+
this.onPointerEnterObservable.remove(this._pointerEnterObserver);
|
|
833
|
+
this.onPointerOutObservable.remove(this._pointerOutObserver);
|
|
834
|
+
this.onToggleObservable.remove(this._toggleObserver);
|
|
835
|
+
if (!this.shareMaterials) {
|
|
836
|
+
this._backMaterial.dispose();
|
|
837
|
+
this._frontMaterial.dispose();
|
|
838
|
+
this._plateMaterial.dispose();
|
|
839
|
+
this._backGlowMaterial.dispose();
|
|
840
|
+
this._innerQuadMaterial.dispose();
|
|
841
|
+
if (this._pickedPointObserver) {
|
|
842
|
+
this._host.onPickedPointChangedObservable.remove(this._pickedPointObserver);
|
|
843
|
+
this._pickedPointObserver = null;
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
/**
|
|
849
|
+
* Base Url for the frontplate model.
|
|
850
|
+
*/
|
|
851
|
+
TouchHolographicButton.MRTK_ASSET_BASE_URL = "https://assets.babylonjs.com/core/MRTK/";
|
|
852
|
+
/**
|
|
853
|
+
* File name for the frontplate model.
|
|
854
|
+
*/
|
|
855
|
+
TouchHolographicButton.FRONTPLATE_MODEL_FILENAME = "mrtk-fluent-frontplate.glb";
|
|
856
|
+
/**
|
|
857
|
+
* File name for the backplate model.
|
|
858
|
+
*/
|
|
859
|
+
TouchHolographicButton.BACKPLATE_MODEL_FILENAME = "mrtk-fluent-backplate.glb";
|
|
860
|
+
/**
|
|
861
|
+
* File name for the backglow model.
|
|
862
|
+
*/
|
|
863
|
+
TouchHolographicButton.BACKGLOW_MODEL_FILENAME = "mrtk-fluent-button.glb";
|
|
864
|
+
/**
|
|
865
|
+
* File name for the innerquad model.
|
|
866
|
+
*/
|
|
867
|
+
TouchHolographicButton.INNERQUAD_MODEL_FILENAME = "SlateProximity.glb";
|
|
868
|
+
//# sourceMappingURL=touchHolographicButton.js.map
|