@p100-web/core 100.0.61
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/dist/index.d.ts +136 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +101 -0
- package/dist/index.js.map +1 -0
- package/dist/src/AdaptivePerformance.d.ts +20 -0
- package/dist/src/AdaptivePerformance.d.ts.map +1 -0
- package/dist/src/AdaptivePerformance.js +110 -0
- package/dist/src/AdaptivePerformance.js.map +1 -0
- package/dist/src/DBEvent.d.ts +22 -0
- package/dist/src/DBEvent.d.ts.map +1 -0
- package/dist/src/DBEvent.js +19 -0
- package/dist/src/DBEvent.js.map +1 -0
- package/dist/src/DBNode.d.ts +33 -0
- package/dist/src/DBNode.d.ts.map +1 -0
- package/dist/src/DBNode.js +31 -0
- package/dist/src/DBNode.js.map +1 -0
- package/dist/src/DBScene.d.ts +11 -0
- package/dist/src/DBScene.d.ts.map +1 -0
- package/dist/src/DBScene.js +9 -0
- package/dist/src/DBScene.js.map +1 -0
- package/dist/src/DBVariable.d.ts +22 -0
- package/dist/src/DBVariable.d.ts.map +1 -0
- package/dist/src/DBVariable.js +19 -0
- package/dist/src/DBVariable.js.map +1 -0
- package/dist/src/DevTools.d.ts +4 -0
- package/dist/src/DevTools.d.ts.map +1 -0
- package/dist/src/DevTools.js +10 -0
- package/dist/src/DevTools.js.map +1 -0
- package/dist/src/GameContext.d.ts +179 -0
- package/dist/src/GameContext.d.ts.map +1 -0
- package/dist/src/GameContext.js +594 -0
- package/dist/src/GameContext.js.map +1 -0
- package/dist/src/IAudioListener.d.ts +4 -0
- package/dist/src/IAudioListener.d.ts.map +1 -0
- package/dist/src/IAudioListener.js +2 -0
- package/dist/src/IAudioListener.js.map +1 -0
- package/dist/src/ICameraControls.d.ts +14 -0
- package/dist/src/ICameraControls.d.ts.map +1 -0
- package/dist/src/ICameraControls.js +2 -0
- package/dist/src/ICameraControls.js.map +1 -0
- package/dist/src/ICameraNode.d.ts +6 -0
- package/dist/src/ICameraNode.d.ts.map +1 -0
- package/dist/src/ICameraNode.js +2 -0
- package/dist/src/ICameraNode.js.map +1 -0
- package/dist/src/IComponentFactory.d.ts +8 -0
- package/dist/src/IComponentFactory.d.ts.map +1 -0
- package/dist/src/IComponentFactory.js +2 -0
- package/dist/src/IComponentFactory.js.map +1 -0
- package/dist/src/IEngine.d.ts +26 -0
- package/dist/src/IEngine.d.ts.map +1 -0
- package/dist/src/IEngine.js +2 -0
- package/dist/src/IEngine.js.map +1 -0
- package/dist/src/IMaterial.d.ts +5 -0
- package/dist/src/IMaterial.d.ts.map +1 -0
- package/dist/src/IMaterial.js +2 -0
- package/dist/src/IMaterial.js.map +1 -0
- package/dist/src/IPCanvas.d.ts +45 -0
- package/dist/src/IPCanvas.d.ts.map +1 -0
- package/dist/src/IPCanvas.js +2 -0
- package/dist/src/IPCanvas.js.map +1 -0
- package/dist/src/IPNodeRenderer.d.ts +23 -0
- package/dist/src/IPNodeRenderer.d.ts.map +1 -0
- package/dist/src/IPNodeRenderer.js +2 -0
- package/dist/src/IPNodeRenderer.js.map +1 -0
- package/dist/src/IStats.d.ts +9 -0
- package/dist/src/IStats.d.ts.map +1 -0
- package/dist/src/IStats.js +3 -0
- package/dist/src/IStats.js.map +1 -0
- package/dist/src/MathTools.d.ts +4 -0
- package/dist/src/MathTools.d.ts.map +1 -0
- package/dist/src/MathTools.js +7 -0
- package/dist/src/MathTools.js.map +1 -0
- package/dist/src/PAction.d.ts +64 -0
- package/dist/src/PAction.d.ts.map +1 -0
- package/dist/src/PAction.js +209 -0
- package/dist/src/PAction.js.map +1 -0
- package/dist/src/PComponent.d.ts +60 -0
- package/dist/src/PComponent.d.ts.map +1 -0
- package/dist/src/PComponent.js +44 -0
- package/dist/src/PComponent.js.map +1 -0
- package/dist/src/PEnums.d.ts +98 -0
- package/dist/src/PEnums.d.ts.map +1 -0
- package/dist/src/PEnums.js +110 -0
- package/dist/src/PEnums.js.map +1 -0
- package/dist/src/PEvent.d.ts +27 -0
- package/dist/src/PEvent.d.ts.map +1 -0
- package/dist/src/PEvent.js +40 -0
- package/dist/src/PEvent.js.map +1 -0
- package/dist/src/PNode.d.ts +111 -0
- package/dist/src/PNode.d.ts.map +1 -0
- package/dist/src/PNode.js +488 -0
- package/dist/src/PNode.js.map +1 -0
- package/dist/src/PPayload.d.ts +7 -0
- package/dist/src/PPayload.d.ts.map +1 -0
- package/dist/src/PPayload.js +19 -0
- package/dist/src/PPayload.js.map +1 -0
- package/dist/src/PTypes.d.ts +140 -0
- package/dist/src/PTypes.d.ts.map +1 -0
- package/dist/src/PTypes.js +2 -0
- package/dist/src/PTypes.js.map +1 -0
- package/dist/src/PVariable.d.ts +29 -0
- package/dist/src/PVariable.d.ts.map +1 -0
- package/dist/src/PVariable.js +51 -0
- package/dist/src/PVariable.js.map +1 -0
- package/dist/src/PVector2.d.ts +14 -0
- package/dist/src/PVector2.d.ts.map +1 -0
- package/dist/src/PVector2.js +25 -0
- package/dist/src/PVector2.js.map +1 -0
- package/dist/src/PVector3.d.ts +17 -0
- package/dist/src/PVector3.d.ts.map +1 -0
- package/dist/src/PVector3.js +36 -0
- package/dist/src/PVector3.js.map +1 -0
- package/dist/src/animations/IAnimationAction.d.ts +9 -0
- package/dist/src/animations/IAnimationAction.d.ts.map +1 -0
- package/dist/src/animations/IAnimationAction.js +2 -0
- package/dist/src/animations/IAnimationAction.js.map +1 -0
- package/dist/src/animations/IAnimationClip.d.ts +5 -0
- package/dist/src/animations/IAnimationClip.d.ts.map +1 -0
- package/dist/src/animations/IAnimationClip.js +2 -0
- package/dist/src/animations/IAnimationClip.js.map +1 -0
- package/dist/src/animations/IAnimationMixer.d.ts +7 -0
- package/dist/src/animations/IAnimationMixer.d.ts.map +1 -0
- package/dist/src/animations/IAnimationMixer.js +2 -0
- package/dist/src/animations/IAnimationMixer.js.map +1 -0
- package/dist/src/media/IMediaLoader.d.ts +31 -0
- package/dist/src/media/IMediaLoader.d.ts.map +1 -0
- package/dist/src/media/IMediaLoader.js +2 -0
- package/dist/src/media/IMediaLoader.js.map +1 -0
- package/dist/src/media/MediaManager.d.ts +17 -0
- package/dist/src/media/MediaManager.d.ts.map +1 -0
- package/dist/src/media/MediaManager.js +19 -0
- package/dist/src/media/MediaManager.js.map +1 -0
- package/dist/src/media/PFile.d.ts +13 -0
- package/dist/src/media/PFile.d.ts.map +1 -0
- package/dist/src/media/PFile.js +28 -0
- package/dist/src/media/PFile.js.map +1 -0
- package/dist/src/pcomponents/BaseBackground.d.ts +27 -0
- package/dist/src/pcomponents/BaseBackground.d.ts.map +1 -0
- package/dist/src/pcomponents/BaseBackground.js +21 -0
- package/dist/src/pcomponents/BaseBackground.js.map +1 -0
- package/dist/src/pcomponents/BaseMaterial.d.ts +45 -0
- package/dist/src/pcomponents/BaseMaterial.d.ts.map +1 -0
- package/dist/src/pcomponents/BaseMaterial.js +47 -0
- package/dist/src/pcomponents/BaseMaterial.js.map +1 -0
- package/dist/src/pcomponents/PAnimator.d.ts +37 -0
- package/dist/src/pcomponents/PAnimator.d.ts.map +1 -0
- package/dist/src/pcomponents/PAnimator.js +43 -0
- package/dist/src/pcomponents/PAnimator.js.map +1 -0
- package/dist/src/pcomponents/PBasicMaterial.d.ts +23 -0
- package/dist/src/pcomponents/PBasicMaterial.d.ts.map +1 -0
- package/dist/src/pcomponents/PBasicMaterial.js +38 -0
- package/dist/src/pcomponents/PBasicMaterial.js.map +1 -0
- package/dist/src/pcomponents/PCallAction.d.ts +19 -0
- package/dist/src/pcomponents/PCallAction.d.ts.map +1 -0
- package/dist/src/pcomponents/PCallAction.js +25 -0
- package/dist/src/pcomponents/PCallAction.js.map +1 -0
- package/dist/src/pcomponents/PCallActions.d.ts +24 -0
- package/dist/src/pcomponents/PCallActions.d.ts.map +1 -0
- package/dist/src/pcomponents/PCallActions.js +38 -0
- package/dist/src/pcomponents/PCallActions.js.map +1 -0
- package/dist/src/pcomponents/PCameraPosition.d.ts +29 -0
- package/dist/src/pcomponents/PCameraPosition.d.ts.map +1 -0
- package/dist/src/pcomponents/PCameraPosition.js +76 -0
- package/dist/src/pcomponents/PCameraPosition.js.map +1 -0
- package/dist/src/pcomponents/PCameraTarget.d.ts +29 -0
- package/dist/src/pcomponents/PCameraTarget.d.ts.map +1 -0
- package/dist/src/pcomponents/PCameraTarget.js +77 -0
- package/dist/src/pcomponents/PCameraTarget.js.map +1 -0
- package/dist/src/pcomponents/PCollider.d.ts +39 -0
- package/dist/src/pcomponents/PCollider.d.ts.map +1 -0
- package/dist/src/pcomponents/PCollider.js +56 -0
- package/dist/src/pcomponents/PCollider.js.map +1 -0
- package/dist/src/pcomponents/PCompareBoolean.d.ts +23 -0
- package/dist/src/pcomponents/PCompareBoolean.d.ts.map +1 -0
- package/dist/src/pcomponents/PCompareBoolean.js +39 -0
- package/dist/src/pcomponents/PCompareBoolean.js.map +1 -0
- package/dist/src/pcomponents/PCompareNumber.d.ts +25 -0
- package/dist/src/pcomponents/PCompareNumber.d.ts.map +1 -0
- package/dist/src/pcomponents/PCompareNumber.js +45 -0
- package/dist/src/pcomponents/PCompareNumber.js.map +1 -0
- package/dist/src/pcomponents/PCompareString.d.ts +25 -0
- package/dist/src/pcomponents/PCompareString.d.ts.map +1 -0
- package/dist/src/pcomponents/PCompareString.js +43 -0
- package/dist/src/pcomponents/PCompareString.js.map +1 -0
- package/dist/src/pcomponents/PCompareVariable.d.ts +28 -0
- package/dist/src/pcomponents/PCompareVariable.d.ts.map +1 -0
- package/dist/src/pcomponents/PCompareVariable.js +51 -0
- package/dist/src/pcomponents/PCompareVariable.js.map +1 -0
- package/dist/src/pcomponents/PControllerInput.d.ts +30 -0
- package/dist/src/pcomponents/PControllerInput.d.ts.map +1 -0
- package/dist/src/pcomponents/PControllerInput.js +42 -0
- package/dist/src/pcomponents/PControllerInput.js.map +1 -0
- package/dist/src/pcomponents/PCubeGeometry.d.ts +18 -0
- package/dist/src/pcomponents/PCubeGeometry.d.ts.map +1 -0
- package/dist/src/pcomponents/PCubeGeometry.js +22 -0
- package/dist/src/pcomponents/PCubeGeometry.js.map +1 -0
- package/dist/src/pcomponents/PDebug.d.ts +21 -0
- package/dist/src/pcomponents/PDebug.d.ts.map +1 -0
- package/dist/src/pcomponents/PDebug.js +31 -0
- package/dist/src/pcomponents/PDebug.js.map +1 -0
- package/dist/src/pcomponents/PEnvironment.d.ts +28 -0
- package/dist/src/pcomponents/PEnvironment.d.ts.map +1 -0
- package/dist/src/pcomponents/PEnvironment.js +44 -0
- package/dist/src/pcomponents/PEnvironment.js.map +1 -0
- package/dist/src/pcomponents/PFadeAnimation.d.ts +30 -0
- package/dist/src/pcomponents/PFadeAnimation.d.ts.map +1 -0
- package/dist/src/pcomponents/PFadeAnimation.js +94 -0
- package/dist/src/pcomponents/PFadeAnimation.js.map +1 -0
- package/dist/src/pcomponents/PHud.d.ts +12 -0
- package/dist/src/pcomponents/PHud.d.ts.map +1 -0
- package/dist/src/pcomponents/PHud.js +12 -0
- package/dist/src/pcomponents/PHud.js.map +1 -0
- package/dist/src/pcomponents/PImageBackground.d.ts +13 -0
- package/dist/src/pcomponents/PImageBackground.d.ts.map +1 -0
- package/dist/src/pcomponents/PImageBackground.js +18 -0
- package/dist/src/pcomponents/PImageBackground.js.map +1 -0
- package/dist/src/pcomponents/PImageCache.d.ts +22 -0
- package/dist/src/pcomponents/PImageCache.d.ts.map +1 -0
- package/dist/src/pcomponents/PImageCache.js +69 -0
- package/dist/src/pcomponents/PImageCache.js.map +1 -0
- package/dist/src/pcomponents/PImageDetector.d.ts +28 -0
- package/dist/src/pcomponents/PImageDetector.d.ts.map +1 -0
- package/dist/src/pcomponents/PImageDetector.js +38 -0
- package/dist/src/pcomponents/PImageDetector.js.map +1 -0
- package/dist/src/pcomponents/PLight.d.ts +15 -0
- package/dist/src/pcomponents/PLight.d.ts.map +1 -0
- package/dist/src/pcomponents/PLight.js +18 -0
- package/dist/src/pcomponents/PLight.js.map +1 -0
- package/dist/src/pcomponents/PLightDirectional.d.ts +19 -0
- package/dist/src/pcomponents/PLightDirectional.d.ts.map +1 -0
- package/dist/src/pcomponents/PLightDirectional.js +24 -0
- package/dist/src/pcomponents/PLightDirectional.js.map +1 -0
- package/dist/src/pcomponents/PMaskedMaterial.d.ts +20 -0
- package/dist/src/pcomponents/PMaskedMaterial.d.ts.map +1 -0
- package/dist/src/pcomponents/PMaskedMaterial.js +35 -0
- package/dist/src/pcomponents/PMaskedMaterial.js.map +1 -0
- package/dist/src/pcomponents/PModelGLTF.d.ts +33 -0
- package/dist/src/pcomponents/PModelGLTF.d.ts.map +1 -0
- package/dist/src/pcomponents/PModelGLTF.js +53 -0
- package/dist/src/pcomponents/PModelGLTF.js.map +1 -0
- package/dist/src/pcomponents/PMoveAnimation.d.ts +22 -0
- package/dist/src/pcomponents/PMoveAnimation.d.ts.map +1 -0
- package/dist/src/pcomponents/PMoveAnimation.js +44 -0
- package/dist/src/pcomponents/PMoveAnimation.js.map +1 -0
- package/dist/src/pcomponents/PMoveToAnimation.d.ts +26 -0
- package/dist/src/pcomponents/PMoveToAnimation.d.ts.map +1 -0
- package/dist/src/pcomponents/PMoveToAnimation.js +79 -0
- package/dist/src/pcomponents/PMoveToAnimation.js.map +1 -0
- package/dist/src/pcomponents/PPhysicalMaterial.d.ts +27 -0
- package/dist/src/pcomponents/PPhysicalMaterial.d.ts.map +1 -0
- package/dist/src/pcomponents/PPhysicalMaterial.js +41 -0
- package/dist/src/pcomponents/PPhysicalMaterial.js.map +1 -0
- package/dist/src/pcomponents/PPlaneDetector.d.ts +20 -0
- package/dist/src/pcomponents/PPlaneDetector.d.ts.map +1 -0
- package/dist/src/pcomponents/PPlaneDetector.js +26 -0
- package/dist/src/pcomponents/PPlaneDetector.js.map +1 -0
- package/dist/src/pcomponents/PPlaneGeometry.d.ts +20 -0
- package/dist/src/pcomponents/PPlaneGeometry.d.ts.map +1 -0
- package/dist/src/pcomponents/PPlaneGeometry.js +25 -0
- package/dist/src/pcomponents/PPlaneGeometry.js.map +1 -0
- package/dist/src/pcomponents/PProjectRoot.d.ts +38 -0
- package/dist/src/pcomponents/PProjectRoot.d.ts.map +1 -0
- package/dist/src/pcomponents/PProjectRoot.js +82 -0
- package/dist/src/pcomponents/PProjectRoot.js.map +1 -0
- package/dist/src/pcomponents/PRotateAnimation.d.ts +30 -0
- package/dist/src/pcomponents/PRotateAnimation.d.ts.map +1 -0
- package/dist/src/pcomponents/PRotateAnimation.js +72 -0
- package/dist/src/pcomponents/PRotateAnimation.js.map +1 -0
- package/dist/src/pcomponents/PScaleAnimation.d.ts +28 -0
- package/dist/src/pcomponents/PScaleAnimation.d.ts.map +1 -0
- package/dist/src/pcomponents/PScaleAnimation.js +75 -0
- package/dist/src/pcomponents/PScaleAnimation.js.map +1 -0
- package/dist/src/pcomponents/PSceneContainer.d.ts +22 -0
- package/dist/src/pcomponents/PSceneContainer.d.ts.map +1 -0
- package/dist/src/pcomponents/PSceneContainer.js +50 -0
- package/dist/src/pcomponents/PSceneContainer.js.map +1 -0
- package/dist/src/pcomponents/PSceneRoot.d.ts +16 -0
- package/dist/src/pcomponents/PSceneRoot.d.ts.map +1 -0
- package/dist/src/pcomponents/PSceneRoot.js +22 -0
- package/dist/src/pcomponents/PSceneRoot.js.map +1 -0
- package/dist/src/pcomponents/PSlider.d.ts +28 -0
- package/dist/src/pcomponents/PSlider.d.ts.map +1 -0
- package/dist/src/pcomponents/PSlider.js +37 -0
- package/dist/src/pcomponents/PSlider.js.map +1 -0
- package/dist/src/pcomponents/PSound.d.ts +34 -0
- package/dist/src/pcomponents/PSound.d.ts.map +1 -0
- package/dist/src/pcomponents/PSound.js +44 -0
- package/dist/src/pcomponents/PSound.js.map +1 -0
- package/dist/src/pcomponents/PSphereGeometry.d.ts +19 -0
- package/dist/src/pcomponents/PSphereGeometry.d.ts.map +1 -0
- package/dist/src/pcomponents/PSphereGeometry.js +24 -0
- package/dist/src/pcomponents/PSphereGeometry.js.map +1 -0
- package/dist/src/pcomponents/PSprite.d.ts +19 -0
- package/dist/src/pcomponents/PSprite.d.ts.map +1 -0
- package/dist/src/pcomponents/PSprite.js +26 -0
- package/dist/src/pcomponents/PSprite.js.map +1 -0
- package/dist/src/pcomponents/PSpriteAnimation.d.ts +25 -0
- package/dist/src/pcomponents/PSpriteAnimation.d.ts.map +1 -0
- package/dist/src/pcomponents/PSpriteAnimation.js +29 -0
- package/dist/src/pcomponents/PSpriteAnimation.js.map +1 -0
- package/dist/src/pcomponents/PText.d.ts +35 -0
- package/dist/src/pcomponents/PText.d.ts.map +1 -0
- package/dist/src/pcomponents/PText.js +48 -0
- package/dist/src/pcomponents/PText.js.map +1 -0
- package/dist/src/pcomponents/PTransform.d.ts +22 -0
- package/dist/src/pcomponents/PTransform.d.ts.map +1 -0
- package/dist/src/pcomponents/PTransform.js +37 -0
- package/dist/src/pcomponents/PTransform.js.map +1 -0
- package/dist/src/pcomponents/PVarList.d.ts +26 -0
- package/dist/src/pcomponents/PVarList.d.ts.map +1 -0
- package/dist/src/pcomponents/PVarList.js +52 -0
- package/dist/src/pcomponents/PVarList.js.map +1 -0
- package/dist/src/pcomponents/PVarReader.d.ts +19 -0
- package/dist/src/pcomponents/PVarReader.d.ts.map +1 -0
- package/dist/src/pcomponents/PVarReader.js +26 -0
- package/dist/src/pcomponents/PVarReader.js.map +1 -0
- package/dist/src/pcomponents/PVarWriter.d.ts +25 -0
- package/dist/src/pcomponents/PVarWriter.d.ts.map +1 -0
- package/dist/src/pcomponents/PVarWriter.js +46 -0
- package/dist/src/pcomponents/PVarWriter.js.map +1 -0
- package/dist/src/pcomponents/PVideoBackground.d.ts +36 -0
- package/dist/src/pcomponents/PVideoBackground.d.ts.map +1 -0
- package/dist/src/pcomponents/PVideoBackground.js +89 -0
- package/dist/src/pcomponents/PVideoBackground.js.map +1 -0
- package/dist/src/pcomponents/PVideoMaterial.d.ts +26 -0
- package/dist/src/pcomponents/PVideoMaterial.d.ts.map +1 -0
- package/dist/src/pcomponents/PVideoMaterial.js +40 -0
- package/dist/src/pcomponents/PVideoMaterial.js.map +1 -0
- package/dist/src/pcomponents/PVideoPlayer.d.ts +31 -0
- package/dist/src/pcomponents/PVideoPlayer.d.ts.map +1 -0
- package/dist/src/pcomponents/PVideoPlayer.js +70 -0
- package/dist/src/pcomponents/PVideoPlayer.js.map +1 -0
- package/dist/src/pcomponents/PVisibility.d.ts +33 -0
- package/dist/src/pcomponents/PVisibility.d.ts.map +1 -0
- package/dist/src/pcomponents/PVisibility.js +62 -0
- package/dist/src/pcomponents/PVisibility.js.map +1 -0
- package/dist/src/pcomponents/PXRTools.d.ts +32 -0
- package/dist/src/pcomponents/PXRTools.d.ts.map +1 -0
- package/dist/src/pcomponents/PXRTools.js +45 -0
- package/dist/src/pcomponents/PXRTools.js.map +1 -0
- package/dist/src/settings/Settings_Base.d.ts +7 -0
- package/dist/src/settings/Settings_Base.d.ts.map +1 -0
- package/dist/src/settings/Settings_Base.js +18 -0
- package/dist/src/settings/Settings_Base.js.map +1 -0
- package/dist/src/settings/Settings_Threejs.d.ts +9 -0
- package/dist/src/settings/Settings_Threejs.d.ts.map +1 -0
- package/dist/src/settings/Settings_Threejs.js +172 -0
- package/dist/src/settings/Settings_Threejs.js.map +1 -0
- package/package.json +23 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import PComponent, { DBComponent } from "../PComponent";
|
|
2
|
+
import { IInAction, PInAction } from "../PAction";
|
|
3
|
+
import PVector3 from "../PVector3";
|
|
4
|
+
import GameContext from "../GameContext";
|
|
5
|
+
import PNode from "../PNode";
|
|
6
|
+
import { Tween } from "@tweenjs/tween.js";
|
|
7
|
+
interface DBMoveAnimation extends DBComponent {
|
|
8
|
+
inevent_on: IInAction | null;
|
|
9
|
+
target: PVector3;
|
|
10
|
+
}
|
|
11
|
+
export type { DBMoveAnimation };
|
|
12
|
+
export default class PMoveAnimation extends PComponent {
|
|
13
|
+
inevent_on: PInAction | null;
|
|
14
|
+
target: PVector3;
|
|
15
|
+
protected _tween: Tween<any> | null;
|
|
16
|
+
constructor(dbComponent: DBMoveAnimation, node: PNode, context: GameContext);
|
|
17
|
+
toDB(): DBMoveAnimation;
|
|
18
|
+
render(): void;
|
|
19
|
+
unrender(): void;
|
|
20
|
+
callback_onMove: () => void;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=PMoveAnimation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PMoveAnimation.d.ts","sourceRoot":"","sources":["../../../src/pcomponents/PMoveAnimation.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,UAAU,eAAgB,SAAQ,WAAW;IAC3C,UAAU,EAAE,SAAS,GAAG,IAAI,CAAC;IAC7B,MAAM,EAAE,QAAQ,CAAC;CAClB;AACD,YAAY,EAAE,eAAe,EAAE,CAAC;AAEhC,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,UAAU;IACpD,UAAU,EAAE,SAAS,GAAG,IAAI,CAAC;IAC7B,MAAM,EAAE,QAAQ,CAAC;IAEjB,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,IAAI,CAAQ;gBAE/B,WAAW,EAAE,eAAe,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW;IAU3E,IAAI,IAAI,eAAe;IAQvB,MAAM,IAAI,IAAI;IAEd,QAAQ;IAOR,eAAe,aAkBb;CACH"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import PComponent from "../PComponent";
|
|
2
|
+
import { PInAction } from "../PAction";
|
|
3
|
+
import PVector3 from "../PVector3";
|
|
4
|
+
import { Tween } from "@tweenjs/tween.js";
|
|
5
|
+
export default class PMoveAnimation extends PComponent {
|
|
6
|
+
inevent_on;
|
|
7
|
+
target;
|
|
8
|
+
_tween = null;
|
|
9
|
+
constructor(dbComponent, node, context) {
|
|
10
|
+
super("PMoveAnimation", "Move Animation", node, context);
|
|
11
|
+
this.inevent_on = node.registerInAction("Move", dbComponent.inevent_on, this.callback_onMove);
|
|
12
|
+
this.target = new PVector3(dbComponent.target);
|
|
13
|
+
}
|
|
14
|
+
toDB() {
|
|
15
|
+
return {
|
|
16
|
+
...super.toDB(),
|
|
17
|
+
inevent_on: PInAction.toDB(this.inevent_on),
|
|
18
|
+
target: this.target,
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
render() { }
|
|
22
|
+
unrender() {
|
|
23
|
+
if (this._tween !== null) {
|
|
24
|
+
this._tween.stop();
|
|
25
|
+
this._tween = null;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
callback_onMove = () => {
|
|
29
|
+
if (!this.node.isRunning() || !this.node.hasEl()) {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
if (this._tween !== null) {
|
|
33
|
+
this._tween.stop();
|
|
34
|
+
this._tween = null;
|
|
35
|
+
}
|
|
36
|
+
const nodePosition = this.context
|
|
37
|
+
.getNodeRenderer()
|
|
38
|
+
.getPositionVector(this.node);
|
|
39
|
+
const target = new PVector3(nodePosition).add(this.target);
|
|
40
|
+
this._tween = new Tween(nodePosition).to(target, 1000).start();
|
|
41
|
+
this.context.addTween(this._tween);
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=PMoveAnimation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PMoveAnimation.js","sourceRoot":"","sources":["../../../src/pcomponents/PMoveAnimation.ts"],"names":[],"mappings":"AAAA,OAAO,UAA2B,MAAM,eAAe,CAAC;AACxD,OAAO,EAAa,SAAS,EAA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AAC,MAAM,GAAG,IAAI,CAAC;QACrB,CAAC;QAED,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO;aAC9B,eAAe,EAAE;aACjB,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAEhC,MAAM,MAAM,GAAG,IAAI,QAAQ,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAE3D,IAAI,CAAC,MAAM,GAAG,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,KAAK,EAAE,CAAC;QAC/D,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC,CAAC;CACH"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import GameContext from "../GameContext";
|
|
2
|
+
import PNode from "../PNode";
|
|
3
|
+
import { IInAction, PInAction } from "../PAction";
|
|
4
|
+
import PComponent, { DBComponent } from "../PComponent";
|
|
5
|
+
import PVector3 from "../PVector3";
|
|
6
|
+
import { Tween } from "@tweenjs/tween.js";
|
|
7
|
+
interface DBMoveToAnimation extends DBComponent {
|
|
8
|
+
inevent_animate: IInAction | null;
|
|
9
|
+
inevent_move: IInAction | null;
|
|
10
|
+
duration: number;
|
|
11
|
+
}
|
|
12
|
+
export type { DBMoveToAnimation };
|
|
13
|
+
export default class PMoveToAnimation extends PComponent {
|
|
14
|
+
inevent_move: PInAction | null;
|
|
15
|
+
inevent_animate: PInAction | null;
|
|
16
|
+
duration: number;
|
|
17
|
+
offset: PVector3;
|
|
18
|
+
protected _tween: Tween<any> | null;
|
|
19
|
+
constructor(dbComponent: DBMoveToAnimation, node: PNode, context: GameContext);
|
|
20
|
+
toDB(): DBMoveToAnimation;
|
|
21
|
+
render(): void;
|
|
22
|
+
unrender(): void;
|
|
23
|
+
callback_animate: (payloadValue: string | null) => void;
|
|
24
|
+
callback_move: (payloadValue: string | null)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|
+
import { PInAction } from "../PAction";
|
|
2
|
+
import PComponent from "../PComponent";
|
|
3
|
+
import { DataType } from "../PEnums";
|
|
4
|
+
import PVector3 from "../PVector3";
|
|
5
|
+
import { Tween } from "@tweenjs/tween.js";
|
|
6
|
+
export default class PMoveToAnimation extends PComponent {
|
|
7
|
+
inevent_move;
|
|
8
|
+
inevent_animate;
|
|
9
|
+
duration;
|
|
10
|
+
offset;
|
|
11
|
+
_tween = null;
|
|
12
|
+
constructor(dbComponent, node, context) {
|
|
13
|
+
super("PMoveToAnimation", "Move To Animation", node, context);
|
|
14
|
+
this.inevent_move = node.registerInAction("Move", dbComponent.inevent_move, this.callback_move, DataType.Node);
|
|
15
|
+
this.inevent_animate = node.registerInAction("Animate", dbComponent.inevent_animate, this.callback_animate, DataType.Node);
|
|
16
|
+
this.offset = new PVector3({
|
|
17
|
+
x: -0.2390492162847235 + 0.2373700708000117,
|
|
18
|
+
y: 0.2762298606347971 - 0.2411092078849318,
|
|
19
|
+
z: 0.001 - 0.003,
|
|
20
|
+
});
|
|
21
|
+
this.duration = dbComponent.duration || 500;
|
|
22
|
+
}
|
|
23
|
+
toDB() {
|
|
24
|
+
return {
|
|
25
|
+
...super.toDB(),
|
|
26
|
+
inevent_animate: PInAction.toDB(this.inevent_animate),
|
|
27
|
+
inevent_move: PInAction.toDB(this.inevent_move),
|
|
28
|
+
duration: this.duration,
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
render() { }
|
|
32
|
+
unrender() {
|
|
33
|
+
if (this._tween !== null) {
|
|
34
|
+
this._tween.stop();
|
|
35
|
+
this._tween = null;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
callback_animate = (payloadValue) => {
|
|
39
|
+
if (!this.node.isRunning() || !payloadValue || !this.node.hasEl()) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
if (this._tween !== null) {
|
|
43
|
+
this._tween.stop();
|
|
44
|
+
this._tween = null;
|
|
45
|
+
}
|
|
46
|
+
const node = this.context.findNode(payloadValue);
|
|
47
|
+
if (!node || !node.hasEl())
|
|
48
|
+
return;
|
|
49
|
+
const nodePosition = this.context
|
|
50
|
+
.getNodeRenderer()
|
|
51
|
+
.getPositionVector(node);
|
|
52
|
+
const target = {
|
|
53
|
+
x: nodePosition.x + this.offset.x,
|
|
54
|
+
y: nodePosition.y + this.offset.y,
|
|
55
|
+
z: nodePosition.z + this.offset.z,
|
|
56
|
+
};
|
|
57
|
+
this._tween = new Tween(nodePosition).to(target, this.duration).start();
|
|
58
|
+
this.context.addTween(this._tween);
|
|
59
|
+
};
|
|
60
|
+
callback_move = (payloadValue) => {
|
|
61
|
+
if (!this.node.isRunning() || !payloadValue || !this.node.hasEl()) {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
if (this._tween !== null) {
|
|
65
|
+
this._tween.stop();
|
|
66
|
+
this._tween = null;
|
|
67
|
+
}
|
|
68
|
+
const node = this.context.findNode(payloadValue);
|
|
69
|
+
if (!node || !node.hasEl())
|
|
70
|
+
return;
|
|
71
|
+
const nodePosition = this.context
|
|
72
|
+
.getNodeRenderer()
|
|
73
|
+
.getPositionVector(node);
|
|
74
|
+
nodePosition.x += this.offset.x;
|
|
75
|
+
nodePosition.y += this.offset.y;
|
|
76
|
+
nodePosition.z += this.offset.z;
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=PMoveToAnimation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PMoveToAnimation.js","sourceRoot":"","sources":["../../../src/pcomponents/PMoveToAnimation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,SAAS,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,UAA2B,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAS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AAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,YAAY,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC;YAClE,OAAO;QACT,CAAC;QAED,IAAI,IAAI,CAAC,MAAM,KAAK,IAAI,EAAE,CAAC;YACzB,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;YACnB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACrB,CAAC;QAED,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;QACjD,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;YAAE,OAAO;QACnC,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO;aAC9B,eAAe,EAAE;aACjB,iBAAiB,CAAC,IAAI,CAAC,CAAC;QAE3B,YAAY,CAAC,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;QAChC,YAAY,CAAC,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;QAChC,YAAY,CAAC,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;IAClC,CAAC,CAAC;CACH"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import BaseMaterial, { DBBaseMaterial } from "./BaseMaterial";
|
|
2
|
+
import PVector2, { IVector2 } from "../PVector2";
|
|
3
|
+
import { IInAction, PInAction } from "../PAction";
|
|
4
|
+
import GameContext from "../GameContext";
|
|
5
|
+
import PNode from "../PNode";
|
|
6
|
+
interface DBPhysicalMaterial extends DBBaseMaterial {
|
|
7
|
+
inevent_setOpacity: IInAction | null;
|
|
8
|
+
repeat: IVector2;
|
|
9
|
+
offset: IVector2;
|
|
10
|
+
metalness: number;
|
|
11
|
+
roughness: number;
|
|
12
|
+
}
|
|
13
|
+
export type { DBPhysicalMaterial };
|
|
14
|
+
export default abstract class PPhysicalMaterial extends BaseMaterial {
|
|
15
|
+
inevent_setOpacity: PInAction | null;
|
|
16
|
+
repeat: PVector2;
|
|
17
|
+
offset: PVector2;
|
|
18
|
+
metalness: number;
|
|
19
|
+
roughness: number;
|
|
20
|
+
constructor(dbComponent: DBPhysicalMaterial, node: PNode, context: GameContext);
|
|
21
|
+
toDB(): DBPhysicalMaterial;
|
|
22
|
+
dispose(): void;
|
|
23
|
+
abstract _dispose(unrender: boolean): void;
|
|
24
|
+
unrender(): void;
|
|
25
|
+
abstract callback_setOpacity(payloadValue: string | null): void;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=PPhysicalMaterial.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PPhysicalMaterial.d.ts","sourceRoot":"","sources":["../../../src/pcomponents/PPhysicalMaterial.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,EAAE,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,QAAQ,EAAE,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAElD,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,UAAU,CAAC;AAE7B,UAAU,kBAAmB,SAAQ,cAAc;IACjD,kBAAkB,EAAE,SAAS,GAAG,IAAI,CAAC;IACrC,MAAM,EAAE,QAAQ,CAAC;IACjB,MAAM,EAAE,QAAQ,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,YAAY,EAAE,kBAAkB,EAAE,CAAC;AAEnC,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,iBAAkB,SAAQ,YAAY;IAClE,kBAAkB,EAAE,SAAS,GAAG,IAAI,CAAC;IAErC,MAAM,EAAE,QAAQ,CAAC;IACjB,MAAM,EAAE,QAAQ,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;gBAGhB,WAAW,EAAE,kBAAkB,EAC/B,IAAI,EAAE,KAAK,EACX,OAAO,EAAE,WAAW;IAkBtB,IAAI,IAAI,kBAAkB;IAe1B,OAAO;IAKP,QAAQ,CAAC,QAAQ,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI;IAE1C,QAAQ;IAQR,QAAQ,CAAC,mBAAmB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;CAChE"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import BaseMaterial from "./BaseMaterial";
|
|
2
|
+
import PVector2 from "../PVector2";
|
|
3
|
+
import { PInAction } from "../PAction";
|
|
4
|
+
import { DataType } from "../PEnums";
|
|
5
|
+
export default class PPhysicalMaterial extends BaseMaterial {
|
|
6
|
+
inevent_setOpacity;
|
|
7
|
+
repeat;
|
|
8
|
+
offset;
|
|
9
|
+
metalness;
|
|
10
|
+
roughness;
|
|
11
|
+
constructor(dbComponent, node, context) {
|
|
12
|
+
super("PPhysicalMaterial", "Physical Material", dbComponent, node, context);
|
|
13
|
+
this.inevent_setOpacity = node.registerInAction("Set Opacity", dbComponent.inevent_setOpacity, (payloadValue) => this.callback_setOpacity(payloadValue), DataType.Number);
|
|
14
|
+
this.metalness = dbComponent.metalness;
|
|
15
|
+
this.roughness = dbComponent.roughness;
|
|
16
|
+
this.repeat = new PVector2(dbComponent.repeat);
|
|
17
|
+
this.offset = new PVector2(dbComponent.offset || { x: 0, y: 0 });
|
|
18
|
+
}
|
|
19
|
+
toDB() {
|
|
20
|
+
return {
|
|
21
|
+
...super.toDB(),
|
|
22
|
+
inevent_setOpacity: PInAction.toDB(this.inevent_setOpacity),
|
|
23
|
+
repeat: this.repeat,
|
|
24
|
+
offset: this.offset,
|
|
25
|
+
metalness: this.metalness,
|
|
26
|
+
roughness: this.roughness,
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
//
|
|
30
|
+
// PComponent
|
|
31
|
+
//
|
|
32
|
+
dispose() {
|
|
33
|
+
// Release files
|
|
34
|
+
if (this.file_texture)
|
|
35
|
+
this.context.releaseFile(this.file_texture);
|
|
36
|
+
}
|
|
37
|
+
unrender() {
|
|
38
|
+
this._dispose(true);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=PPhysicalMaterial.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PPhysicalMaterial.js","sourceRoot":"","sources":["../../../src/pcomponents/PPhysicalMaterial.ts"],"names":[],"mappings":"AAAA,OAAO,YAAgC,MAAM,gBAAgB,CAAC;AAC9D,OAAO,QAAsB,MAAM,aAAa,CAAC;AACjD,OAAO,EAAa,SAAS,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAcrC,MAAM,CAAC,OAAO,OAAgB,iBAAkB,SAAQ,YAAY;IAClE,kBAAkB,CAAmB;IAErC,MAAM,CAAW;IACjB,MAAM,CAAW;IACjB,SAAS,CAAS;IAClB,SAAS,CAAS;IAElB,YACE,WAA+B,EAC/B,IAAW,EACX,OAAoB;QAEpB,KAAK,CAAC,mBAAmB,EAAE,mBAAmB,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAE5E,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC,gBAAgB,CAC7C,aAAa,EACb,WAAW,CAAC,kBAAkB,EAC9B,CAAC,YAA2B,EAAE,EAAE,CAAC,IAAI,CAAC,mBAAmB,CAAC,YAAY,CAAC,EACvE,QAAQ,CAAC,MAAM,CAChB,CAAC;QAEF,IAAI,CAAC,SAAS,GAAG,WAAW,CAAC,SAAS,CAAC;QACvC,IAAI,CAAC,SAAS,GAAG,WAAW,CAAC,SAAS,CAAC;QAEvC,IAAI,CAAC,MAAM,GAAG,IAAI,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QAC/C,IAAI,CAAC,MAAM,GAAG,IAAI,QAAQ,CAAC,WAAW,CAAC,MAAM,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IACnE,CAAC;IAED,IAAI;QACF,OAAO;YACL,GAAG,KAAK,CAAC,IAAI,EAAE;YACf,kBAAkB,EAAE,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC;YAC3D,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,SAAS,EAAE,IAAI,CAAC,SAAS;SAC1B,CAAC;IACJ,CAAC;IAED,EAAE;IACF,cAAc;IACd,EAAE;IAEF,OAAO;QACL,gBAAgB;QAChB,IAAI,IAAI,CAAC,YAAY;YAAE,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IACrE,CAAC;IAID,QAAQ;QACN,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CAOF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import GameContext from "../GameContext";
|
|
2
|
+
import PNode from "../PNode";
|
|
3
|
+
import { IOutAction, POutAction } from "../PAction";
|
|
4
|
+
import PComponent, { DBComponent } from "../PComponent";
|
|
5
|
+
interface DBPlaneDetector extends DBComponent {
|
|
6
|
+
move: boolean;
|
|
7
|
+
rotate: boolean;
|
|
8
|
+
outevent_onDetect: IOutAction | null;
|
|
9
|
+
}
|
|
10
|
+
export type { DBPlaneDetector };
|
|
11
|
+
export default class PPlaneDetector extends PComponent {
|
|
12
|
+
move: boolean;
|
|
13
|
+
rotate: boolean;
|
|
14
|
+
outevent_onDetect: POutAction | null;
|
|
15
|
+
constructor(dbComponent: DBPlaneDetector, node: PNode, context: GameContext);
|
|
16
|
+
toDB(): DBPlaneDetector;
|
|
17
|
+
render(): void;
|
|
18
|
+
unrender(): void;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=PPlaneDetector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PPlaneDetector.d.ts","sourceRoot":"","sources":["../../../src/pcomponents/PPlaneDetector.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAExD,UAAU,eAAgB,SAAQ,WAAW;IAC3C,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,iBAAiB,EAAE,UAAU,GAAG,IAAI,CAAC;CACtC;AAED,YAAY,EAAE,eAAe,EAAE,CAAC;AAEhC,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,UAAU;IACpD,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,iBAAiB,EAAE,UAAU,GAAG,IAAI,CAAC;gBAEzB,WAAW,EAAE,eAAe,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW;IAW1E,IAAI,IAAI,eAAe;IASxB,MAAM,IAAI,IAAI;IAId,QAAQ,IAAI,IAAI;CAGjB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { POutAction } from "../PAction";
|
|
2
|
+
import PComponent from "../PComponent";
|
|
3
|
+
export default class PPlaneDetector extends PComponent {
|
|
4
|
+
move;
|
|
5
|
+
rotate;
|
|
6
|
+
outevent_onDetect;
|
|
7
|
+
constructor(dbComponent, node, context) {
|
|
8
|
+
super("PPlaneDetector", "Plane Detector", node, context);
|
|
9
|
+
this.move = dbComponent.move;
|
|
10
|
+
this.rotate = dbComponent.rotate;
|
|
11
|
+
this.outevent_onDetect = node.registerOutAction(dbComponent.outevent_onDetect);
|
|
12
|
+
}
|
|
13
|
+
toDB() {
|
|
14
|
+
return {
|
|
15
|
+
...super.toDB(),
|
|
16
|
+
outevent_onDetect: POutAction.toDB(this.outevent_onDetect),
|
|
17
|
+
move: this.move,
|
|
18
|
+
rotate: this.rotate,
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
render() {
|
|
22
|
+
}
|
|
23
|
+
unrender() {
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=PPlaneDetector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PPlaneDetector.js","sourceRoot":"","sources":["../../../src/pcomponents/PPlaneDetector.ts"],"names":[],"mappings":"AAEA,OAAO,EAAc,UAAU,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,UAA2B,MAAM,eAAe,CAAC;AAUxD,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,UAAU;IACpD,IAAI,CAAU;IACd,MAAM,CAAU;IAChB,iBAAiB,CAAoB;IAErC,YAAY,WAA4B,EAAE,IAAW,EAAE,OAAoB;QACzE,KAAK,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAEzD,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC;QAC7B,IAAI,CAAC,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC;QAEjC,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,iBAAiB,CAC7C,WAAW,CAAC,iBAAiB,CAC9B,CAAC;IACJ,CAAC;IAEA,IAAI;QACH,OAAO;YACL,GAAG,KAAK,CAAC,IAAI,EAAE;YACf,iBAAiB,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC;YAC1D,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,MAAM,EAAE,IAAI,CAAC,MAAM;SACpB,CAAC;IACJ,CAAC;IAED,MAAM;IAEN,CAAC;IAED,QAAQ;IAER,CAAC;CACF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import GameContext from "../GameContext";
|
|
2
|
+
import PComponent, { DBComponent } from "../PComponent";
|
|
3
|
+
import PVector2, { IVector2 } from "../PVector2";
|
|
4
|
+
import PNode from "../PNode";
|
|
5
|
+
interface DBPlaneGeometry extends DBComponent {
|
|
6
|
+
size: IVector2;
|
|
7
|
+
segments: IVector2;
|
|
8
|
+
castShadow: boolean;
|
|
9
|
+
receiveShadow: boolean;
|
|
10
|
+
}
|
|
11
|
+
export type { DBPlaneGeometry };
|
|
12
|
+
export default abstract class PPlaneGeometry extends PComponent {
|
|
13
|
+
size: PVector2;
|
|
14
|
+
segments: PVector2;
|
|
15
|
+
castShadow: boolean;
|
|
16
|
+
receiveShadow: boolean;
|
|
17
|
+
constructor(dbComponent: DBPlaneGeometry, node: PNode, context: GameContext);
|
|
18
|
+
toDB(): DBPlaneGeometry;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=PPlaneGeometry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PPlaneGeometry.d.ts","sourceRoot":"","sources":["../../../src/pcomponents/PPlaneGeometry.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,QAAQ,EAAE,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,MAAM,UAAU,CAAC;AAE7B,UAAU,eAAgB,SAAQ,WAAW;IAC3C,IAAI,EAAE,QAAQ,CAAC;IACf,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,YAAY,EAAE,eAAe,EAAE,CAAC;AAEhC,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,cAAe,SAAQ,UAAU;IAC7D,IAAI,EAAE,QAAQ,CAAC;IACf,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,OAAO,CAAC;gBAEX,WAAW,EAAE,eAAe,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW;IAQ3E,IAAI,IAAI,eAAe;CASxB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import PComponent from "../PComponent";
|
|
2
|
+
import PVector2 from "../PVector2";
|
|
3
|
+
export default class PPlaneGeometry extends PComponent {
|
|
4
|
+
size;
|
|
5
|
+
segments;
|
|
6
|
+
castShadow;
|
|
7
|
+
receiveShadow;
|
|
8
|
+
constructor(dbComponent, node, context) {
|
|
9
|
+
super("PPlaneGeometry", "Plane Geometry", node, context);
|
|
10
|
+
this.size = new PVector2(dbComponent.size);
|
|
11
|
+
this.segments = new PVector2(dbComponent.segments);
|
|
12
|
+
this.castShadow = dbComponent.castShadow;
|
|
13
|
+
this.receiveShadow = dbComponent.receiveShadow || false;
|
|
14
|
+
}
|
|
15
|
+
toDB() {
|
|
16
|
+
return {
|
|
17
|
+
...super.toDB(),
|
|
18
|
+
size: this.size,
|
|
19
|
+
segments: this.segments,
|
|
20
|
+
castShadow: this.castShadow,
|
|
21
|
+
receiveShadow: this.receiveShadow,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=PPlaneGeometry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PPlaneGeometry.js","sourceRoot":"","sources":["../../../src/pcomponents/PPlaneGeometry.ts"],"names":[],"mappings":"AACA,OAAO,UAA2B,MAAM,eAAe,CAAC;AACxD,OAAO,QAAsB,MAAM,aAAa,CAAC;AAYjD,MAAM,CAAC,OAAO,OAAgB,cAAe,SAAQ,UAAU;IAC7D,IAAI,CAAW;IACf,QAAQ,CAAW;IACnB,UAAU,CAAU;IACpB,aAAa,CAAU;IAEvB,YAAY,WAA4B,EAAE,IAAW,EAAE,OAAoB;QACzE,KAAK,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QACzD,IAAI,CAAC,IAAI,GAAG,IAAI,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,QAAQ,GAAG,IAAI,QAAQ,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;QACnD,IAAI,CAAC,UAAU,GAAG,WAAW,CAAC,UAAU,CAAC;QACzC,IAAI,CAAC,aAAa,GAAG,WAAW,CAAC,aAAa,IAAI,KAAK,CAAC;IAC1D,CAAC;IAED,IAAI;QACF,OAAO;YACL,GAAG,KAAK,CAAC,IAAI,EAAE;YACf,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,aAAa,EAAE,IAAI,CAAC,aAAa;SAClC,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { IInAction, IOutAction, PInAction, POutAction } from "../PAction";
|
|
2
|
+
import PComponent, { DBComponent } from "../PComponent";
|
|
3
|
+
import GameContext from "../GameContext";
|
|
4
|
+
import PNode from "../PNode";
|
|
5
|
+
interface DBProjectRoot extends DBComponent {
|
|
6
|
+
outevent_onPlay: IOutAction | null;
|
|
7
|
+
outevent_onPlaying: IOutAction | null;
|
|
8
|
+
inevent_enableOn: IInAction | null;
|
|
9
|
+
inevent_disableOn: IInAction | null;
|
|
10
|
+
inevent_setLayer: IInAction | null;
|
|
11
|
+
inevent_setCameraNear: IInAction | null;
|
|
12
|
+
inevent_setCameraFar: IInAction | null;
|
|
13
|
+
inevent_setCameraFov: IInAction | null;
|
|
14
|
+
enabled: boolean;
|
|
15
|
+
}
|
|
16
|
+
export { type DBProjectRoot };
|
|
17
|
+
export default abstract class PProjectRoot extends PComponent {
|
|
18
|
+
outevent_onPlay: POutAction | null;
|
|
19
|
+
outevent_onPlaying: POutAction | null;
|
|
20
|
+
inevent_enableOn: PInAction | null;
|
|
21
|
+
inevent_disableOn: PInAction | null;
|
|
22
|
+
inevent_setLayer: PInAction | null;
|
|
23
|
+
inevent_setCameraNear: PInAction | null;
|
|
24
|
+
inevent_setCameraFar: PInAction | null;
|
|
25
|
+
inevent_setCameraFov: PInAction | null;
|
|
26
|
+
enabled: boolean;
|
|
27
|
+
constructor(dbComponent: DBProjectRoot, node: PNode, context: GameContext);
|
|
28
|
+
toDB(): DBProjectRoot;
|
|
29
|
+
native_OnPlay(): void;
|
|
30
|
+
native_OnPlaying(): void;
|
|
31
|
+
onEnable: () => void;
|
|
32
|
+
onDisable: () => void;
|
|
33
|
+
onSetLayer: (payload: string | null) => void;
|
|
34
|
+
onSetCameraNear: (payload: string | null) => void;
|
|
35
|
+
onSetCameraFar: (payload: string | null) => void;
|
|
36
|
+
onSetCameraFov: (payload: string | null) => void;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=PProjectRoot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PProjectRoot.d.ts","sourceRoot":"","sources":["../../../src/pcomponents/PProjectRoot.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE1E,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,UAAU,CAAC;AAE7B,UAAU,aAAc,SAAQ,WAAW;IACzC,eAAe,EAAE,UAAU,GAAG,IAAI,CAAC;IACnC,kBAAkB,EAAE,UAAU,GAAG,IAAI,CAAC;IACtC,gBAAgB,EAAE,SAAS,GAAG,IAAI,CAAC;IACnC,iBAAiB,EAAE,SAAS,GAAG,IAAI,CAAC;IACpC,gBAAgB,EAAE,SAAS,GAAG,IAAI,CAAC;IAEnC,qBAAqB,EAAE,SAAS,GAAG,IAAI,CAAC;IACxC,oBAAoB,EAAE,SAAS,GAAG,IAAI,CAAC;IACvC,oBAAoB,EAAE,SAAS,GAAG,IAAI,CAAC;IAEvC,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,OAAO,EAAE,KAAK,aAAa,EAAE,CAAC;AAE9B,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,YAAa,SAAQ,UAAU;IAC3D,eAAe,EAAE,UAAU,GAAG,IAAI,CAAC;IACnC,kBAAkB,EAAE,UAAU,GAAG,IAAI,CAAC;IACtC,gBAAgB,EAAE,SAAS,GAAG,IAAI,CAAC;IACnC,iBAAiB,EAAE,SAAS,GAAG,IAAI,CAAC;IACpC,gBAAgB,EAAE,SAAS,GAAG,IAAI,CAAC;IAEnC,qBAAqB,EAAE,SAAS,GAAG,IAAI,CAAC;IACxC,oBAAoB,EAAE,SAAS,GAAG,IAAI,CAAC;IACvC,oBAAoB,EAAE,SAAS,GAAG,IAAI,CAAC;IAEvC,OAAO,EAAE,OAAO,CAAC;gBAEL,WAAW,EAAE,aAAa,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW;IAiDzE,IAAI,IAAI,aAAa;IAerB,aAAa;IAIb,gBAAgB;IAQhB,QAAQ,aAEN;IAEF,SAAS,aAEP;IAMF,UAAU,GAAI,SAAS,MAAM,GAAG,IAAI,UAIlC;IAMF,eAAe,GAAI,SAAS,MAAM,GAAG,IAAI,UAGvC;IAEF,cAAc,GAAI,SAAS,MAAM,GAAG,IAAI,UAGtC;IAEF,cAAc,GAAI,SAAS,MAAM,GAAG,IAAI,UAGtC;CACH"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { DataType, PProperties } from "../PEnums";
|
|
2
|
+
import { PInAction, POutAction } from "../PAction";
|
|
3
|
+
import PPayload from "../PPayload";
|
|
4
|
+
import PComponent from "../PComponent";
|
|
5
|
+
export default class PProjectRoot extends PComponent {
|
|
6
|
+
outevent_onPlay;
|
|
7
|
+
outevent_onPlaying;
|
|
8
|
+
inevent_enableOn;
|
|
9
|
+
inevent_disableOn;
|
|
10
|
+
inevent_setLayer;
|
|
11
|
+
inevent_setCameraNear;
|
|
12
|
+
inevent_setCameraFar;
|
|
13
|
+
inevent_setCameraFov;
|
|
14
|
+
enabled;
|
|
15
|
+
constructor(dbComponent, node, context) {
|
|
16
|
+
super("PProjectRoot", "Root", node, context);
|
|
17
|
+
this.properties = PProperties.RootNode | PProperties.ProjectRoot;
|
|
18
|
+
this.outevent_onPlay = node.registerOutAction(dbComponent.outevent_onPlay);
|
|
19
|
+
this.outevent_onPlaying = node.registerOutAction(dbComponent.outevent_onPlaying);
|
|
20
|
+
this.inevent_enableOn = node.registerInAction("Enable Raycaster", dbComponent.inevent_enableOn, this.onEnable);
|
|
21
|
+
this.inevent_disableOn = node.registerInAction("Disable Raycaster", dbComponent.inevent_disableOn, this.onDisable);
|
|
22
|
+
this.inevent_setLayer = node.registerInAction("Set Layer", dbComponent.inevent_setLayer, this.onSetLayer, DataType.Layer);
|
|
23
|
+
this.inevent_setCameraNear = node.registerInAction("Set Camera Near", dbComponent.inevent_setCameraNear, this.onSetCameraFar, DataType.Number);
|
|
24
|
+
this.inevent_setCameraFar = node.registerInAction("Set Camera Far", dbComponent.inevent_setCameraFar, this.onSetCameraFar, DataType.Number);
|
|
25
|
+
this.inevent_setCameraFov = node.registerInAction("Set Camera Fov", dbComponent.inevent_setCameraFov, this.onSetCameraFov, DataType.Number);
|
|
26
|
+
this.enabled = dbComponent.enabled;
|
|
27
|
+
}
|
|
28
|
+
toDB() {
|
|
29
|
+
return {
|
|
30
|
+
...super.toDB(),
|
|
31
|
+
outevent_onPlay: POutAction.toDB(this.outevent_onPlay),
|
|
32
|
+
outevent_onPlaying: POutAction.toDB(this.outevent_onPlaying),
|
|
33
|
+
inevent_enableOn: PInAction.toDB(this.inevent_enableOn),
|
|
34
|
+
inevent_disableOn: PInAction.toDB(this.inevent_disableOn),
|
|
35
|
+
inevent_setLayer: PInAction.toDB(this.inevent_setLayer),
|
|
36
|
+
inevent_setCameraFar: PInAction.toDB(this.inevent_setCameraFar),
|
|
37
|
+
inevent_setCameraNear: PInAction.toDB(this.inevent_setCameraNear),
|
|
38
|
+
inevent_setCameraFov: PInAction.toDB(this.inevent_setCameraFov),
|
|
39
|
+
enabled: this.enabled,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
native_OnPlay() {
|
|
43
|
+
this.outevent_onPlay?.emit(null, this);
|
|
44
|
+
}
|
|
45
|
+
native_OnPlaying() {
|
|
46
|
+
this.outevent_onPlaying?.emit(null, this);
|
|
47
|
+
}
|
|
48
|
+
//
|
|
49
|
+
// RAYCASTING
|
|
50
|
+
//
|
|
51
|
+
onEnable = () => {
|
|
52
|
+
this.context.enableInput();
|
|
53
|
+
};
|
|
54
|
+
onDisable = () => {
|
|
55
|
+
this.context.disableInput();
|
|
56
|
+
};
|
|
57
|
+
//
|
|
58
|
+
// LAYERS
|
|
59
|
+
//
|
|
60
|
+
onSetLayer = (payload) => {
|
|
61
|
+
if (!payload)
|
|
62
|
+
return;
|
|
63
|
+
const layer = PPayload.asNumber(payload);
|
|
64
|
+
this.context.setLayers(layer);
|
|
65
|
+
};
|
|
66
|
+
//
|
|
67
|
+
// CAMERA
|
|
68
|
+
//
|
|
69
|
+
onSetCameraNear = (payload) => {
|
|
70
|
+
const value = PPayload.asNumber(payload);
|
|
71
|
+
this.context.getCanvas().setNearFar(value, -1);
|
|
72
|
+
};
|
|
73
|
+
onSetCameraFar = (payload) => {
|
|
74
|
+
const value = PPayload.asNumber(payload);
|
|
75
|
+
this.context.getCanvas().setNearFar(-1, value);
|
|
76
|
+
};
|
|
77
|
+
onSetCameraFov = (payload) => {
|
|
78
|
+
const value = PPayload.asNumber(payload);
|
|
79
|
+
this.context.getCanvas().setFOV(value);
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
//# sourceMappingURL=PProjectRoot.js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C,EAAE,KAAK,CAAC,CAAC;IAClD,CAAC,CAAC;IAEF,cAAc,GAAG,CAAC,OAAsB,EAAE,EAAE;QAC1C,MAAM,KAAK,GAAG,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC1C,CAAC,CAAC;CACH"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import GameContext from "../GameContext";
|
|
2
|
+
import PComponent, { DBComponent } from "../PComponent";
|
|
3
|
+
import PNode from "../PNode";
|
|
4
|
+
import { IInAction, PInAction } from "../PAction";
|
|
5
|
+
import { Tween } from "@tweenjs/tween.js";
|
|
6
|
+
interface DBRotateAnimation extends DBComponent {
|
|
7
|
+
inevent_startOn: IInAction | null;
|
|
8
|
+
inevent_stopOn: IInAction | null;
|
|
9
|
+
loop: boolean;
|
|
10
|
+
from: number;
|
|
11
|
+
to: number;
|
|
12
|
+
duration: number;
|
|
13
|
+
}
|
|
14
|
+
export type { DBRotateAnimation };
|
|
15
|
+
export default class PRotateAnimation extends PComponent {
|
|
16
|
+
inevent_startOn: PInAction | null;
|
|
17
|
+
inevent_stopOn: PInAction | null;
|
|
18
|
+
from: number;
|
|
19
|
+
to: number;
|
|
20
|
+
duration: number;
|
|
21
|
+
loop: boolean;
|
|
22
|
+
protected _tween: Tween<any> | null;
|
|
23
|
+
constructor(dbComponent: DBRotateAnimation, node: PNode, context: GameContext);
|
|
24
|
+
toDB(): DBRotateAnimation;
|
|
25
|
+
render(): void;
|
|
26
|
+
unrender(): void;
|
|
27
|
+
callback_start: () => void;
|
|
28
|
+
callback_stop: () => void;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=PRotateAnimation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PRotateAnimation.d.ts","sourceRoot":"","sources":["../../../src/pcomponents/PRotateAnimation.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG1C,UAAU,iBAAkB,SAAQ,WAAW;IAC7C,eAAe,EAAE,SAAS,GAAG,IAAI,CAAC;IAClC,cAAc,EAAE,SAAS,GAAG,IAAI,CAAC;IACjC,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,YAAY,EAAE,iBAAiB,EAAE,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,UAAU;IACtD,eAAe,EAAE,SAAS,GAAG,IAAI,CAAC;IAClC,cAAc,EAAE,SAAS,GAAG,IAAI,CAAC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;IAEd,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,IAAI,CAAQ;gBAGzC,WAAW,EAAE,iBAAiB,EAC9B,IAAI,EAAE,KAAK,EACX,OAAO,EAAE,WAAW;IAqBtB,IAAI,IAAI,iBAAiB;IAYzB,MAAM,IAAI,IAAI;IAEd,QAAQ;IAOR,cAAc,aAyBZ;IAEF,aAAa,aAQX;CACH"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import PComponent from "../PComponent";
|
|
2
|
+
import { PInAction } from "../PAction";
|
|
3
|
+
import { Tween } from "@tweenjs/tween.js";
|
|
4
|
+
import MathTools from "../MathTools";
|
|
5
|
+
export default class PRotateAnimation extends PComponent {
|
|
6
|
+
inevent_startOn;
|
|
7
|
+
inevent_stopOn;
|
|
8
|
+
from;
|
|
9
|
+
to;
|
|
10
|
+
duration;
|
|
11
|
+
loop;
|
|
12
|
+
_tween = null;
|
|
13
|
+
constructor(dbComponent, node, context) {
|
|
14
|
+
super("PRotateAnimation", "Rotate Animation", node, context);
|
|
15
|
+
this.inevent_startOn = node.registerInAction("Start Event", dbComponent.inevent_startOn, this.callback_start);
|
|
16
|
+
this.inevent_stopOn = node.registerInAction("Stop Event", dbComponent.inevent_stopOn, this.callback_stop);
|
|
17
|
+
this.loop = dbComponent.loop;
|
|
18
|
+
this.from = dbComponent.from;
|
|
19
|
+
this.to = dbComponent.to;
|
|
20
|
+
this.duration = dbComponent.duration;
|
|
21
|
+
}
|
|
22
|
+
toDB() {
|
|
23
|
+
return {
|
|
24
|
+
...super.toDB(),
|
|
25
|
+
inevent_startOn: PInAction.toDB(this.inevent_startOn),
|
|
26
|
+
inevent_stopOn: PInAction.toDB(this.inevent_stopOn),
|
|
27
|
+
from: this.from,
|
|
28
|
+
to: this.to,
|
|
29
|
+
loop: this.loop,
|
|
30
|
+
duration: this.duration,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
render() { }
|
|
34
|
+
unrender() {
|
|
35
|
+
if (this._tween !== null) {
|
|
36
|
+
this._tween.stop();
|
|
37
|
+
this._tween = null;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
callback_start = () => {
|
|
41
|
+
if (!this.node.isRunning() || !this.node.hasEl()) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
if (this._tween !== null) {
|
|
45
|
+
this._tween.stop();
|
|
46
|
+
this._tween = null;
|
|
47
|
+
}
|
|
48
|
+
const nodeRotation = this.context
|
|
49
|
+
.getNodeRenderer()
|
|
50
|
+
.getRotationVector(this.node);
|
|
51
|
+
const target = {
|
|
52
|
+
x: nodeRotation.x,
|
|
53
|
+
y: nodeRotation.y,
|
|
54
|
+
z: MathTools.degToRad(this.to),
|
|
55
|
+
};
|
|
56
|
+
this._tween = new Tween(nodeRotation)
|
|
57
|
+
.repeat(this.loop ? Infinity : 1)
|
|
58
|
+
.to(target, this.duration)
|
|
59
|
+
.start();
|
|
60
|
+
this.context.addTween(this._tween);
|
|
61
|
+
};
|
|
62
|
+
callback_stop = () => {
|
|
63
|
+
if (!this.node.isRunning() || !this.node.hasEl()) {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
if (this._tween !== null) {
|
|
67
|
+
this._tween.stop();
|
|
68
|
+
this._tween = null;
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=PRotateAnimation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PRotateAnimation.js","sourceRoot":"","sources":["../../../src/pcomponents/PRotateAnimation.ts"],"names":[],"mappings":"AACA,OAAO,UAA2B,MAAM,eAAe,CAAC;AAExD,OAAO,EAAa,SAAS,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,SAAS,MAAM,cAAc,CAAC;AAarC,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,UAAU;IACtD,eAAe,CAAmB;IAClC,cAAc,CAAmB;IACjC,IAAI,CAAS;IACb,EAAE,CAAS;IACX,QAAQ,CAAS;IACjB,IAAI,CAAU;IAEJ,MAAM,GAAsB,IAAI,CAAC;IAE3C,YACE,WAA8B,EAC9B,IAAW,EACX,OAAoB;QAEpB,KAAK,CAAC,kBAAkB,EAAE,kBAAkB,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAE7D,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,gBAAgB,CAC1C,aAAa,EACb,WAAW,CAAC,eAAe,EAC3B,IAAI,CAAC,cAAc,CACpB,CAAC;QACF,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,gBAAgB,CACzC,YAA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