@p100-web/core 100.2.16 → 100.2.18
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/AdaptivePerformance.d.ts +20 -0
- package/dist/AdaptivePerformance.d.ts.map +1 -0
- package/dist/AdaptivePerformance.js +110 -0
- package/dist/AdaptivePerformance.js.map +1 -0
- package/dist/DevTools.d.ts +4 -0
- package/dist/DevTools.d.ts.map +1 -0
- package/dist/DevTools.js +10 -0
- package/dist/DevTools.js.map +1 -0
- package/dist/GameContext.d.ts +218 -0
- package/dist/GameContext.d.ts.map +1 -0
- package/dist/GameContext.js +814 -0
- package/dist/GameContext.js.map +1 -0
- package/dist/IAudioListener.d.ts +4 -0
- package/dist/IAudioListener.d.ts.map +1 -0
- package/dist/IAudioListener.js +2 -0
- package/dist/IAudioListener.js.map +1 -0
- package/dist/ICameraControls.d.ts +17 -0
- package/dist/ICameraControls.d.ts.map +1 -0
- package/dist/ICameraControls.js +2 -0
- package/dist/ICameraControls.js.map +1 -0
- package/dist/IComponentFactory.d.ts +8 -0
- package/dist/IComponentFactory.d.ts.map +1 -0
- package/dist/IComponentFactory.js +2 -0
- package/dist/IComponentFactory.js.map +1 -0
- package/dist/IDBApp.d.ts +27 -0
- package/dist/IDBApp.d.ts.map +1 -0
- package/dist/IDBApp.js +2 -0
- package/dist/IDBApp.js.map +1 -0
- package/dist/IDBEvent.d.ts +10 -0
- package/dist/IDBEvent.d.ts.map +1 -0
- package/dist/IDBEvent.js +2 -0
- package/dist/IDBEvent.js.map +1 -0
- package/dist/IDBFileUsage.d.ts +9 -0
- package/dist/IDBFileUsage.d.ts.map +1 -0
- package/dist/IDBFileUsage.js +2 -0
- package/dist/IDBFileUsage.js.map +1 -0
- package/dist/IDBItem.d.ts +9 -0
- package/dist/IDBItem.d.ts.map +1 -0
- package/dist/IDBItem.js +2 -0
- package/dist/IDBItem.js.map +1 -0
- package/dist/IDBLogic.d.ts +7 -0
- package/dist/IDBLogic.d.ts.map +1 -0
- package/dist/IDBLogic.js +2 -0
- package/dist/IDBLogic.js.map +1 -0
- package/dist/IDBNode.d.ts +21 -0
- package/dist/IDBNode.d.ts.map +1 -0
- package/dist/IDBNode.js +42 -0
- package/dist/IDBNode.js.map +1 -0
- package/dist/IDBScene.d.ts +7 -0
- package/dist/IDBScene.d.ts.map +1 -0
- package/dist/IDBScene.js +2 -0
- package/dist/IDBScene.js.map +1 -0
- package/dist/IDBValue.d.ts +19 -0
- package/dist/IDBValue.d.ts.map +1 -0
- package/dist/IDBValue.js +2 -0
- package/dist/IDBValue.js.map +1 -0
- package/dist/IDBVariable.d.ts +10 -0
- package/dist/IDBVariable.d.ts.map +1 -0
- package/dist/IDBVariable.js +2 -0
- package/dist/IDBVariable.js.map +1 -0
- package/dist/IEngine.d.ts +23 -0
- package/dist/IEngine.d.ts.map +1 -0
- package/dist/IEngine.js +2 -0
- package/dist/IEngine.js.map +1 -0
- package/dist/IEntity.d.ts +4 -0
- package/dist/IEntity.d.ts.map +1 -0
- package/dist/IEntity.js +2 -0
- package/dist/IEntity.js.map +1 -0
- package/dist/IPMaterial.d.ts +12 -0
- package/dist/IPMaterial.d.ts.map +1 -0
- package/dist/IPMaterial.js +2 -0
- package/dist/IPMaterial.js.map +1 -0
- package/dist/IPNodeRenderer.d.ts +25 -0
- package/dist/IPNodeRenderer.d.ts.map +1 -0
- package/dist/IPNodeRenderer.js +2 -0
- package/dist/IPNodeRenderer.js.map +1 -0
- package/dist/IStats.d.ts +9 -0
- package/dist/IStats.d.ts.map +1 -0
- package/dist/IStats.js +3 -0
- package/dist/IStats.js.map +1 -0
- package/dist/MathTools.d.ts +8 -0
- package/dist/MathTools.d.ts.map +1 -0
- package/dist/MathTools.js +20 -0
- package/dist/MathTools.js.map +1 -0
- package/dist/PCanvas.d.ts +171 -0
- package/dist/PCanvas.d.ts.map +1 -0
- package/dist/PCanvas.js +648 -0
- package/dist/PCanvas.js.map +1 -0
- package/dist/PComponent.d.ts +70 -0
- package/dist/PComponent.d.ts.map +1 -0
- package/dist/PComponent.js +144 -0
- package/dist/PComponent.js.map +1 -0
- package/dist/PEnums.d.ts +125 -0
- package/dist/PEnums.d.ts.map +1 -0
- package/dist/PEnums.js +155 -0
- package/dist/PEnums.js.map +1 -0
- package/dist/PEvent.d.ts +24 -0
- package/dist/PEvent.d.ts.map +1 -0
- package/dist/PEvent.js +50 -0
- package/dist/PEvent.js.map +1 -0
- package/dist/PFileSlot.d.ts +14 -0
- package/dist/PFileSlot.d.ts.map +1 -0
- package/dist/PFileSlot.js +14 -0
- package/dist/PFileSlot.js.map +1 -0
- package/dist/PFileUsage.d.ts +11 -0
- package/dist/PFileUsage.d.ts.map +1 -0
- package/dist/PFileUsage.js +24 -0
- package/dist/PFileUsage.js.map +1 -0
- package/dist/PItem.d.ts +14 -0
- package/dist/PItem.d.ts.map +1 -0
- package/dist/PItem.js +36 -0
- package/dist/PItem.js.map +1 -0
- package/dist/PLogic.d.ts +19 -0
- package/dist/PLogic.d.ts.map +1 -0
- package/dist/PLogic.js +24 -0
- package/dist/PLogic.js.map +1 -0
- package/dist/PNode.d.ts +147 -0
- package/dist/PNode.d.ts.map +1 -0
- package/dist/PNode.js +531 -0
- package/dist/PNode.js.map +1 -0
- package/dist/PPayload.d.ts +7 -0
- package/dist/PPayload.d.ts.map +1 -0
- package/dist/PPayload.js +19 -0
- package/dist/PPayload.js.map +1 -0
- package/dist/PScene.d.ts +8 -0
- package/dist/PScene.d.ts.map +1 -0
- package/dist/PScene.js +12 -0
- package/dist/PScene.js.map +1 -0
- package/dist/PTypes.d.ts +54 -0
- package/dist/PTypes.d.ts.map +1 -0
- package/dist/PTypes.js +2 -0
- package/dist/PTypes.js.map +1 -0
- package/dist/PValue.d.ts +20 -0
- package/dist/PValue.d.ts.map +1 -0
- package/dist/PValue.js +68 -0
- package/dist/PValue.js.map +1 -0
- package/dist/PVariable.d.ts +29 -0
- package/dist/PVariable.d.ts.map +1 -0
- package/dist/PVariable.js +52 -0
- package/dist/PVariable.js.map +1 -0
- package/dist/PVector2.d.ts +14 -0
- package/dist/PVector2.d.ts.map +1 -0
- package/dist/PVector2.js +25 -0
- package/dist/PVector2.js.map +1 -0
- package/dist/PVector3.d.ts +19 -0
- package/dist/PVector3.d.ts.map +1 -0
- package/dist/PVector3.js +44 -0
- package/dist/PVector3.js.map +1 -0
- package/dist/animations/AnimationTools.d.ts +3 -0
- package/dist/animations/AnimationTools.d.ts.map +1 -0
- package/dist/animations/AnimationTools.js +12 -0
- package/dist/animations/AnimationTools.js.map +1 -0
- package/dist/animations/IModelAnimation.d.ts +19 -0
- package/dist/animations/IModelAnimation.d.ts.map +1 -0
- package/dist/animations/IModelAnimation.js +2 -0
- package/dist/animations/IModelAnimation.js.map +1 -0
- package/dist/assets/AssetLoader.d.ts +10 -0
- package/dist/assets/AssetLoader.d.ts.map +1 -0
- package/dist/assets/AssetLoader.js +12 -0
- package/dist/assets/AssetLoader.js.map +1 -0
- package/dist/index.d.ts +166 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +126 -0
- package/dist/index.js.map +1 -0
- package/dist/media/IDBFile.d.ts +18 -0
- package/dist/media/IDBFile.d.ts.map +1 -0
- package/dist/media/IDBFile.js +2 -0
- package/dist/media/IDBFile.js.map +1 -0
- package/dist/media/PFile.d.ts +13 -0
- package/dist/media/PFile.d.ts.map +1 -0
- package/dist/media/PFile.js +34 -0
- package/dist/media/PFile.js.map +1 -0
- package/dist/pcomponents/BaseMaterial.d.ts +48 -0
- package/dist/pcomponents/BaseMaterial.d.ts.map +1 -0
- package/dist/pcomponents/BaseMaterial.js +59 -0
- package/dist/pcomponents/BaseMaterial.js.map +1 -0
- package/dist/pcomponents/PAnimator.d.ts +48 -0
- package/dist/pcomponents/PAnimator.d.ts.map +1 -0
- package/dist/pcomponents/PAnimator.js +57 -0
- package/dist/pcomponents/PAnimator.js.map +1 -0
- package/dist/pcomponents/PBackground.d.ts +36 -0
- package/dist/pcomponents/PBackground.d.ts.map +1 -0
- package/dist/pcomponents/PBackground.js +45 -0
- package/dist/pcomponents/PBackground.js.map +1 -0
- package/dist/pcomponents/PBasicMaterial.d.ts +22 -0
- package/dist/pcomponents/PBasicMaterial.d.ts.map +1 -0
- package/dist/pcomponents/PBasicMaterial.js +30 -0
- package/dist/pcomponents/PBasicMaterial.js.map +1 -0
- package/dist/pcomponents/PCallAction.d.ts +24 -0
- package/dist/pcomponents/PCallAction.d.ts.map +1 -0
- package/dist/pcomponents/PCallAction.js +34 -0
- package/dist/pcomponents/PCallAction.js.map +1 -0
- package/dist/pcomponents/PCameraPosition.d.ts +33 -0
- package/dist/pcomponents/PCameraPosition.d.ts.map +1 -0
- package/dist/pcomponents/PCameraPosition.js +83 -0
- package/dist/pcomponents/PCameraPosition.js.map +1 -0
- package/dist/pcomponents/PCameraTarget.d.ts +33 -0
- package/dist/pcomponents/PCameraTarget.d.ts.map +1 -0
- package/dist/pcomponents/PCameraTarget.js +84 -0
- package/dist/pcomponents/PCameraTarget.js.map +1 -0
- package/dist/pcomponents/PCollider.d.ts +40 -0
- package/dist/pcomponents/PCollider.d.ts.map +1 -0
- package/dist/pcomponents/PCollider.js +57 -0
- package/dist/pcomponents/PCollider.js.map +1 -0
- package/dist/pcomponents/PCompare.d.ts +33 -0
- package/dist/pcomponents/PCompare.d.ts.map +1 -0
- package/dist/pcomponents/PCompare.js +75 -0
- package/dist/pcomponents/PCompare.js.map +1 -0
- package/dist/pcomponents/PControllerInput.d.ts +30 -0
- package/dist/pcomponents/PControllerInput.d.ts.map +1 -0
- package/dist/pcomponents/PControllerInput.js +38 -0
- package/dist/pcomponents/PControllerInput.js.map +1 -0
- package/dist/pcomponents/PCubeGeometry.d.ts +18 -0
- package/dist/pcomponents/PCubeGeometry.d.ts.map +1 -0
- package/dist/pcomponents/PCubeGeometry.js +23 -0
- package/dist/pcomponents/PCubeGeometry.js.map +1 -0
- package/dist/pcomponents/PDebug.d.ts +21 -0
- package/dist/pcomponents/PDebug.d.ts.map +1 -0
- package/dist/pcomponents/PDebug.js +31 -0
- package/dist/pcomponents/PDebug.js.map +1 -0
- package/dist/pcomponents/PEnvironment.d.ts +28 -0
- package/dist/pcomponents/PEnvironment.d.ts.map +1 -0
- package/dist/pcomponents/PEnvironment.js +34 -0
- package/dist/pcomponents/PEnvironment.js.map +1 -0
- package/dist/pcomponents/PFadeAnimation.d.ts +31 -0
- package/dist/pcomponents/PFadeAnimation.d.ts.map +1 -0
- package/dist/pcomponents/PFadeAnimation.js +112 -0
- package/dist/pcomponents/PFadeAnimation.js.map +1 -0
- package/dist/pcomponents/PHud.d.ts +12 -0
- package/dist/pcomponents/PHud.d.ts.map +1 -0
- package/dist/pcomponents/PHud.js +12 -0
- package/dist/pcomponents/PHud.js.map +1 -0
- package/dist/pcomponents/PImageCache.d.ts +16 -0
- package/dist/pcomponents/PImageCache.d.ts.map +1 -0
- package/dist/pcomponents/PImageCache.js +30 -0
- package/dist/pcomponents/PImageCache.js.map +1 -0
- package/dist/pcomponents/PImageDetector.d.ts +26 -0
- package/dist/pcomponents/PImageDetector.d.ts.map +1 -0
- package/dist/pcomponents/PImageDetector.js +32 -0
- package/dist/pcomponents/PImageDetector.js.map +1 -0
- package/dist/pcomponents/PInteger.d.ts +41 -0
- package/dist/pcomponents/PInteger.d.ts.map +1 -0
- package/dist/pcomponents/PInteger.js +73 -0
- package/dist/pcomponents/PInteger.js.map +1 -0
- package/dist/pcomponents/PIntegerAnimator.d.ts +37 -0
- package/dist/pcomponents/PIntegerAnimator.d.ts.map +1 -0
- package/dist/pcomponents/PIntegerAnimator.js +104 -0
- package/dist/pcomponents/PIntegerAnimator.js.map +1 -0
- package/dist/pcomponents/PLayerManager.d.ts +30 -0
- package/dist/pcomponents/PLayerManager.d.ts.map +1 -0
- package/dist/pcomponents/PLayerManager.js +57 -0
- package/dist/pcomponents/PLayerManager.js.map +1 -0
- package/dist/pcomponents/PLight.d.ts +15 -0
- package/dist/pcomponents/PLight.d.ts.map +1 -0
- package/dist/pcomponents/PLight.js +19 -0
- package/dist/pcomponents/PLight.js.map +1 -0
- package/dist/pcomponents/PLightDirectional.d.ts +19 -0
- package/dist/pcomponents/PLightDirectional.d.ts.map +1 -0
- package/dist/pcomponents/PLightDirectional.js +25 -0
- package/dist/pcomponents/PLightDirectional.js.map +1 -0
- package/dist/pcomponents/PMaskedMaterial.d.ts +19 -0
- package/dist/pcomponents/PMaskedMaterial.d.ts.map +1 -0
- package/dist/pcomponents/PMaskedMaterial.js +28 -0
- package/dist/pcomponents/PMaskedMaterial.js.map +1 -0
- package/dist/pcomponents/PMaterialModifier.d.ts +38 -0
- package/dist/pcomponents/PMaterialModifier.d.ts.map +1 -0
- package/dist/pcomponents/PMaterialModifier.js +67 -0
- package/dist/pcomponents/PMaterialModifier.js.map +1 -0
- package/dist/pcomponents/PModelAnnotation.d.ts +47 -0
- package/dist/pcomponents/PModelAnnotation.d.ts.map +1 -0
- package/dist/pcomponents/PModelAnnotation.js +118 -0
- package/dist/pcomponents/PModelAnnotation.js.map +1 -0
- package/dist/pcomponents/PModelAnnotations.d.ts +46 -0
- package/dist/pcomponents/PModelAnnotations.d.ts.map +1 -0
- package/dist/pcomponents/PModelAnnotations.js +127 -0
- package/dist/pcomponents/PModelAnnotations.js.map +1 -0
- package/dist/pcomponents/PModelGLTF.d.ts +34 -0
- package/dist/pcomponents/PModelGLTF.d.ts.map +1 -0
- package/dist/pcomponents/PModelGLTF.js +55 -0
- package/dist/pcomponents/PModelGLTF.js.map +1 -0
- package/dist/pcomponents/PModelNode.d.ts +16 -0
- package/dist/pcomponents/PModelNode.d.ts.map +1 -0
- package/dist/pcomponents/PModelNode.js +18 -0
- package/dist/pcomponents/PModelNode.js.map +1 -0
- package/dist/pcomponents/PMoveAnimation.d.ts +27 -0
- package/dist/pcomponents/PMoveAnimation.d.ts.map +1 -0
- package/dist/pcomponents/PMoveAnimation.js +64 -0
- package/dist/pcomponents/PMoveAnimation.js.map +1 -0
- package/dist/pcomponents/PMoveToAnimation.d.ts +26 -0
- package/dist/pcomponents/PMoveToAnimation.d.ts.map +1 -0
- package/dist/pcomponents/PMoveToAnimation.js +80 -0
- package/dist/pcomponents/PMoveToAnimation.js.map +1 -0
- package/dist/pcomponents/PNodeVariable.d.ts +34 -0
- package/dist/pcomponents/PNodeVariable.d.ts.map +1 -0
- package/dist/pcomponents/PNodeVariable.js +52 -0
- package/dist/pcomponents/PNodeVariable.js.map +1 -0
- package/dist/pcomponents/PNumberAnimator.d.ts +41 -0
- package/dist/pcomponents/PNumberAnimator.d.ts.map +1 -0
- package/dist/pcomponents/PNumberAnimator.js +102 -0
- package/dist/pcomponents/PNumberAnimator.js.map +1 -0
- package/dist/pcomponents/PPhysicalMaterial.d.ts +28 -0
- package/dist/pcomponents/PPhysicalMaterial.d.ts.map +1 -0
- package/dist/pcomponents/PPhysicalMaterial.js +34 -0
- package/dist/pcomponents/PPhysicalMaterial.js.map +1 -0
- package/dist/pcomponents/PPlaneDetector.d.ts +20 -0
- package/dist/pcomponents/PPlaneDetector.d.ts.map +1 -0
- package/dist/pcomponents/PPlaneDetector.js +24 -0
- package/dist/pcomponents/PPlaneDetector.js.map +1 -0
- package/dist/pcomponents/PPlaneGeometry.d.ts +20 -0
- package/dist/pcomponents/PPlaneGeometry.d.ts.map +1 -0
- package/dist/pcomponents/PPlaneGeometry.js +26 -0
- package/dist/pcomponents/PPlaneGeometry.js.map +1 -0
- package/dist/pcomponents/PProjectRoot.d.ts +42 -0
- package/dist/pcomponents/PProjectRoot.d.ts.map +1 -0
- package/dist/pcomponents/PProjectRoot.js +93 -0
- package/dist/pcomponents/PProjectRoot.js.map +1 -0
- package/dist/pcomponents/PRotateAnimation.d.ts +33 -0
- package/dist/pcomponents/PRotateAnimation.d.ts.map +1 -0
- package/dist/pcomponents/PRotateAnimation.js +80 -0
- package/dist/pcomponents/PRotateAnimation.js.map +1 -0
- package/dist/pcomponents/PScaleAnimation.d.ts +28 -0
- package/dist/pcomponents/PScaleAnimation.d.ts.map +1 -0
- package/dist/pcomponents/PScaleAnimation.js +81 -0
- package/dist/pcomponents/PScaleAnimation.js.map +1 -0
- package/dist/pcomponents/PSceneContainer.d.ts +23 -0
- package/dist/pcomponents/PSceneContainer.d.ts.map +1 -0
- package/dist/pcomponents/PSceneContainer.js +45 -0
- package/dist/pcomponents/PSceneContainer.js.map +1 -0
- package/dist/pcomponents/PSceneRoot.d.ts +16 -0
- package/dist/pcomponents/PSceneRoot.d.ts.map +1 -0
- package/dist/pcomponents/PSceneRoot.js +20 -0
- package/dist/pcomponents/PSceneRoot.js.map +1 -0
- package/dist/pcomponents/PSlider.d.ts +34 -0
- package/dist/pcomponents/PSlider.d.ts.map +1 -0
- package/dist/pcomponents/PSlider.js +38 -0
- package/dist/pcomponents/PSlider.js.map +1 -0
- package/dist/pcomponents/PSound.d.ts +33 -0
- package/dist/pcomponents/PSound.d.ts.map +1 -0
- package/dist/pcomponents/PSound.js +39 -0
- package/dist/pcomponents/PSound.js.map +1 -0
- package/dist/pcomponents/PSphereGeometry.d.ts +19 -0
- package/dist/pcomponents/PSphereGeometry.d.ts.map +1 -0
- package/dist/pcomponents/PSphereGeometry.js +25 -0
- package/dist/pcomponents/PSphereGeometry.js.map +1 -0
- package/dist/pcomponents/PSprite.d.ts +17 -0
- package/dist/pcomponents/PSprite.d.ts.map +1 -0
- package/dist/pcomponents/PSprite.js +21 -0
- package/dist/pcomponents/PSprite.js.map +1 -0
- package/dist/pcomponents/PSpriteSheet.d.ts +28 -0
- package/dist/pcomponents/PSpriteSheet.d.ts.map +1 -0
- package/dist/pcomponents/PSpriteSheet.js +41 -0
- package/dist/pcomponents/PSpriteSheet.js.map +1 -0
- package/dist/pcomponents/PText.d.ts +34 -0
- package/dist/pcomponents/PText.d.ts.map +1 -0
- package/dist/pcomponents/PText.js +43 -0
- package/dist/pcomponents/PText.js.map +1 -0
- package/dist/pcomponents/PTransform.d.ts +23 -0
- package/dist/pcomponents/PTransform.d.ts.map +1 -0
- package/dist/pcomponents/PTransform.js +67 -0
- package/dist/pcomponents/PTransform.js.map +1 -0
- package/dist/pcomponents/PVarList.d.ts +42 -0
- package/dist/pcomponents/PVarList.d.ts.map +1 -0
- package/dist/pcomponents/PVarList.js +84 -0
- package/dist/pcomponents/PVarList.js.map +1 -0
- package/dist/pcomponents/PVideoPlayer.d.ts +36 -0
- package/dist/pcomponents/PVideoPlayer.d.ts.map +1 -0
- package/dist/pcomponents/PVideoPlayer.js +93 -0
- package/dist/pcomponents/PVideoPlayer.js.map +1 -0
- package/dist/pcomponents/PVisibility.d.ts +43 -0
- package/dist/pcomponents/PVisibility.d.ts.map +1 -0
- package/dist/pcomponents/PVisibility.js +83 -0
- package/dist/pcomponents/PVisibility.js.map +1 -0
- package/dist/pcomponents/PXRTools.d.ts +32 -0
- package/dist/pcomponents/PXRTools.d.ts.map +1 -0
- package/dist/pcomponents/PXRTools.js +43 -0
- package/dist/pcomponents/PXRTools.js.map +1 -0
- package/dist/plogics/PLAnd.d.ts +18 -0
- package/dist/plogics/PLAnd.d.ts.map +1 -0
- package/dist/plogics/PLAnd.js +45 -0
- package/dist/plogics/PLAnd.js.map +1 -0
- package/dist/plogics/PLCompare.d.ts +31 -0
- package/dist/plogics/PLCompare.d.ts.map +1 -0
- package/dist/plogics/PLCompare.js +107 -0
- package/dist/plogics/PLCompare.js.map +1 -0
- package/dist/plogics/PLEquals.d.ts +18 -0
- package/dist/plogics/PLEquals.d.ts.map +1 -0
- package/dist/plogics/PLEquals.js +46 -0
- package/dist/plogics/PLEquals.js.map +1 -0
- package/dist/plogics/PLOr.d.ts +18 -0
- package/dist/plogics/PLOr.d.ts.map +1 -0
- package/dist/plogics/PLOr.js +43 -0
- package/dist/plogics/PLOr.js.map +1 -0
- package/dist/ports/IDBEventLink.d.ts +17 -0
- package/dist/ports/IDBEventLink.d.ts.map +1 -0
- package/dist/ports/IDBEventLink.js +2 -0
- package/dist/ports/IDBEventLink.js.map +1 -0
- package/dist/ports/IDBValueLink.d.ts +14 -0
- package/dist/ports/IDBValueLink.d.ts.map +1 -0
- package/dist/ports/IDBValueLink.js +2 -0
- package/dist/ports/IDBValueLink.js.map +1 -0
- package/dist/ports/PInEventPort.d.ts +18 -0
- package/dist/ports/PInEventPort.d.ts.map +1 -0
- package/dist/ports/PInEventPort.js +29 -0
- package/dist/ports/PInEventPort.js.map +1 -0
- package/dist/ports/PInValuePort.d.ts +21 -0
- package/dist/ports/PInValuePort.d.ts.map +1 -0
- package/dist/ports/PInValuePort.js +36 -0
- package/dist/ports/PInValuePort.js.map +1 -0
- package/dist/ports/PLink.d.ts +25 -0
- package/dist/ports/PLink.d.ts.map +1 -0
- package/dist/ports/PLink.js +53 -0
- package/dist/ports/PLink.js.map +1 -0
- package/dist/ports/POutEventPort.d.ts +22 -0
- package/dist/ports/POutEventPort.d.ts.map +1 -0
- package/dist/ports/POutEventPort.js +48 -0
- package/dist/ports/POutEventPort.js.map +1 -0
- package/dist/ports/POutValuePort.d.ts +23 -0
- package/dist/ports/POutValuePort.d.ts.map +1 -0
- package/dist/ports/POutValuePort.js +44 -0
- package/dist/ports/POutValuePort.js.map +1 -0
- package/dist/ports/PPort.d.ts +24 -0
- package/dist/ports/PPort.d.ts.map +1 -0
- package/dist/ports/PPort.js +25 -0
- package/dist/ports/PPort.js.map +1 -0
- package/dist/ports/PValueLink.d.ts +20 -0
- package/dist/ports/PValueLink.d.ts.map +1 -0
- package/dist/ports/PValueLink.js +39 -0
- package/dist/ports/PValueLink.js.map +1 -0
- package/dist/settings/ICameraSettings.d.ts +16 -0
- package/dist/settings/ICameraSettings.d.ts.map +1 -0
- package/dist/settings/ICameraSettings.js +2 -0
- package/dist/settings/ICameraSettings.js.map +1 -0
- package/dist/settings/IQualitySettings.d.ts +14 -0
- package/dist/settings/IQualitySettings.d.ts.map +1 -0
- package/dist/settings/IQualitySettings.js +2 -0
- package/dist/settings/IQualitySettings.js.map +1 -0
- package/dist/settings/IRenderSetting.d.ts +7 -0
- package/dist/settings/IRenderSetting.d.ts.map +1 -0
- package/dist/settings/IRenderSetting.js +2 -0
- package/dist/settings/IRenderSetting.js.map +1 -0
- package/dist/settings/ISetting.d.ts +4 -0
- package/dist/settings/ISetting.d.ts.map +1 -0
- package/dist/settings/ISetting.js +2 -0
- package/dist/settings/ISetting.js.map +1 -0
- package/dist/settings/IWebSettings.d.ts +6 -0
- package/dist/settings/IWebSettings.d.ts.map +1 -0
- package/dist/settings/IWebSettings.js +2 -0
- package/dist/settings/IWebSettings.js.map +1 -0
- package/dist/settings/Settings_Babylonjs.d.ts +101 -0
- package/dist/settings/Settings_Babylonjs.d.ts.map +1 -0
- package/dist/settings/Settings_Babylonjs.js +85 -0
- package/dist/settings/Settings_Babylonjs.js.map +1 -0
- package/dist/settings/Settings_Base.d.ts +11 -0
- package/dist/settings/Settings_Base.d.ts.map +1 -0
- package/dist/settings/Settings_Base.js +45 -0
- package/dist/settings/Settings_Base.js.map +1 -0
- package/dist/settings/Settings_Threejs.d.ts +106 -0
- package/dist/settings/Settings_Threejs.d.ts.map +1 -0
- package/dist/settings/Settings_Threejs.js +165 -0
- package/dist/settings/Settings_Threejs.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IDBLogic } from "../IDBLogic";
|
|
2
|
+
import PLogic from "../PLogic";
|
|
3
|
+
import { IDBInValuePort } from "../ports/PInValuePort";
|
|
4
|
+
import { IDBOutValuePort } from "../ports/POutValuePort";
|
|
5
|
+
interface IDBLOr extends IDBLogic {
|
|
6
|
+
numPorts: number;
|
|
7
|
+
inValuePorts: IDBInValuePort[];
|
|
8
|
+
outValuePort?: IDBOutValuePort;
|
|
9
|
+
}
|
|
10
|
+
export default class PLOr extends PLogic {
|
|
11
|
+
numPorts: number;
|
|
12
|
+
constructor(db: IDBLogic);
|
|
13
|
+
toDB(): IDBLOr;
|
|
14
|
+
private getValue;
|
|
15
|
+
editor_addPorts(count: number): void;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=PLOr.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PLOr.d.ts","sourceRoot":"","sources":["../../src/plogics/PLOr.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAqB,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAsB,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAExE,UAAU,MAAO,SAAQ,QAAQ;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,cAAc,EAAE,CAAC;IAC/B,YAAY,CAAC,EAAE,eAAe,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,MAAM;IACtC,QAAQ,EAAE,MAAM,CAAC;gBAEL,EAAE,EAAE,QAAQ;IAqCxB,IAAI,IAAI,MAAM;IASd,OAAO,CAAC,QAAQ;IAQhB,eAAe,CAAC,KAAK,EAAE,MAAM;CAoB9B"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { DataType, PortTypes } from "../PEnums";
|
|
2
|
+
import PLogic from "../PLogic";
|
|
3
|
+
import PInValuePort from "../ports/PInValuePort";
|
|
4
|
+
import POutValuePort from "../ports/POutValuePort";
|
|
5
|
+
export default class PLOr extends PLogic {
|
|
6
|
+
numPorts;
|
|
7
|
+
constructor(db) {
|
|
8
|
+
super(db, "Or");
|
|
9
|
+
const dbItem = db;
|
|
10
|
+
this.numPorts = dbItem.numPorts;
|
|
11
|
+
this.outValuePorts.push(new POutValuePort(PortTypes.Logic, this, this.pid, 0, 1, "Value", dbItem.outValuePort, DataType.Boolean, this.getValue));
|
|
12
|
+
for (let i = 0; i < this.numPorts; i++) {
|
|
13
|
+
const portId = 2 + i;
|
|
14
|
+
this.inValuePorts.push(new PInValuePort(PortTypes.Logic, this, portId, this.pid, 0, `In Value ${i + 1}`, dbItem.inValuePorts.find((p) => p?.portId === portId), DataType.Boolean));
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
toDB() {
|
|
18
|
+
return {
|
|
19
|
+
...super.toDB(),
|
|
20
|
+
numPorts: this.numPorts,
|
|
21
|
+
outValuePort: this.outValuePorts[0].toDB(),
|
|
22
|
+
inValuePorts: this.inValuePorts.map((p) => p.toDB()).filter((p) => !!p),
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
getValue() {
|
|
26
|
+
// Break if true
|
|
27
|
+
for (const port of this.inValuePorts) {
|
|
28
|
+
if (port.runtime_value() === "1")
|
|
29
|
+
return "1";
|
|
30
|
+
}
|
|
31
|
+
return "0";
|
|
32
|
+
}
|
|
33
|
+
editor_addPorts(count) {
|
|
34
|
+
if (count > 0) {
|
|
35
|
+
const lastPortId = this.inValuePorts[this.inValuePorts.length - 1].portId;
|
|
36
|
+
for (let i = 0; i < count; i++) {
|
|
37
|
+
const portId = lastPortId + i + 1;
|
|
38
|
+
this.inValuePorts.push(new PInValuePort(PortTypes.Logic, this, portId, this.pid, 0, `In Value ${this.inValuePorts.length + 1}`, null, DataType.Boolean));
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=PLOr.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PLOr.js","sourceRoot":"","sources":["../../src/plogics/PLOr.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,YAAgC,MAAM,uBAAuB,CAAC;AACrE,OAAO,aAAkC,MAAM,wBAAwB,CAAC;AAQxE,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,MAAM;IACtC,QAAQ,CAAS;IAEjB,YAAY,EAAY;QACtB,KAAK,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;QAChB,MAAM,MAAM,GAAG,EAAY,CAAC;QAE5B,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;QAEhC,IAAI,CAAC,aAAa,CAAC,IAAI,CACrB,IAAI,aAAa,CACf,SAAS,CAAC,KAAK,EACf,IAAI,EACJ,IAAI,CAAC,GAAG,EACR,CAAC,EACD,CAAC,EACD,OAAO,EACP,MAAM,CAAC,YAAY,EACnB,QAAQ,CAAC,OAAO,EAChB,IAAI,CAAC,QAAQ,CACd,CACF,CAAC;QAEF,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC,EAAE,EAAE,CAAC;YACvC,MAAM,MAAM,GAAG,CAAC,GAAG,CAAC,CAAC;YACrB,IAAI,CAAC,YAAY,CAAC,IAAI,CACpB,IAAI,YAAY,CACd,SAAS,CAAC,KAAK,EACf,IAAI,EACJ,MAAM,EACN,IAAI,CAAC,GAAG,EACR,CAAC,EACD,YAAY,CAAC,GAAG,CAAC,EAAE,EACnB,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC,EACrD,QAAQ,CAAC,OAAO,CACjB,CACF,CAAC;QACJ,CAAC;IACH,CAAC;IAED,IAAI;QACF,OAAO;YACL,GAAG,KAAK,CAAC,IAAI,EAAE;YACf,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE;YAC1C,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;SACxE,CAAC;IACJ,CAAC;IAEO,QAAQ;QACd,gBAAgB;QAChB,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;YACrC,IAAI,IAAI,CAAC,aAAa,EAAE,KAAK,GAAG;gBAAE,OAAO,GAAG,CAAC;QAC/C,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC;IAED,eAAe,CAAC,KAAa;QAC3B,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC;YACd,MAAM,UAAU,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC;YAC1E,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC;gBAC/B,MAAM,MAAM,GAAG,UAAU,GAAG,CAAC,GAAG,CAAC,CAAC;gBAClC,IAAI,CAAC,YAAY,CAAC,IAAI,CACpB,IAAI,YAAY,CACd,SAAS,CAAC,KAAK,EACf,IAAI,EACJ,MAAM,EACN,IAAI,CAAC,GAAG,EACR,CAAC,EACD,YAAY,IAAI,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE,EAC1C,IAAI,EACJ,QAAQ,CAAC,OAAO,CACjB,CACF,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IDBItem } from "../IDBItem";
|
|
2
|
+
import { PortTypes } from "../PEnums";
|
|
3
|
+
import { IDBInValuePort } from "./PInValuePort";
|
|
4
|
+
interface IDBEventLink extends IDBItem {
|
|
5
|
+
index: number;
|
|
6
|
+
outPortType: PortTypes;
|
|
7
|
+
outPid: number;
|
|
8
|
+
outComponentPid: number;
|
|
9
|
+
outPortId: number;
|
|
10
|
+
inPortType: PortTypes;
|
|
11
|
+
inPid: number;
|
|
12
|
+
inComponentPid: number;
|
|
13
|
+
inPortId: number;
|
|
14
|
+
inValuePort?: IDBInValuePort;
|
|
15
|
+
}
|
|
16
|
+
export { type IDBEventLink };
|
|
17
|
+
//# sourceMappingURL=IDBEventLink.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDBEventLink.d.ts","sourceRoot":"","sources":["../../src/ports/IDBEventLink.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,UAAU,YAAa,SAAQ,OAAO;IACpC,KAAK,EAAE,MAAM,CAAC;IAEd,WAAW,EAAE,SAAS,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAElB,UAAU,EAAE,SAAS,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IAEjB,WAAW,CAAC,EAAE,cAAc,CAAC;CAC9B;AAED,OAAO,EAAE,KAAK,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDBEventLink.js","sourceRoot":"","sources":["../../src/ports/IDBEventLink.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IDBItem } from "../IDBItem";
|
|
2
|
+
import { PortTypes } from "../PEnums";
|
|
3
|
+
interface IDBValueLink extends IDBItem {
|
|
4
|
+
outPortType: PortTypes;
|
|
5
|
+
outPid: number;
|
|
6
|
+
outComponentPid: number;
|
|
7
|
+
outPortId: number;
|
|
8
|
+
inPortType: PortTypes;
|
|
9
|
+
inPid: number;
|
|
10
|
+
inComponentPid: number;
|
|
11
|
+
inPortId: number;
|
|
12
|
+
}
|
|
13
|
+
export { type IDBValueLink };
|
|
14
|
+
//# sourceMappingURL=IDBValueLink.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDBValueLink.d.ts","sourceRoot":"","sources":["../../src/ports/IDBValueLink.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,UAAU,YAAa,SAAQ,OAAO;IACpC,WAAW,EAAE,SAAS,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAElB,UAAU,EAAE,SAAS,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,OAAO,EAAE,KAAK,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDBValueLink.js","sourceRoot":"","sources":["../../src/ports/IDBValueLink.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PortTypes, DataType } from "../PEnums";
|
|
2
|
+
import PLink from "./PLink";
|
|
3
|
+
import PPort, { PortCallback, PortOwner, type Payload } from "./PPort";
|
|
4
|
+
interface IDBInEventPort {
|
|
5
|
+
portId: number;
|
|
6
|
+
label: string | null;
|
|
7
|
+
}
|
|
8
|
+
export { type IDBInEventPort };
|
|
9
|
+
export default class PInEventPort extends PPort {
|
|
10
|
+
links: PLink[];
|
|
11
|
+
callback: PortCallback;
|
|
12
|
+
label: string | null;
|
|
13
|
+
constructor(portType: PortTypes, owner: PortOwner, portId: number, pid: number, componentPid: number, name: string, dbItem: IDBInEventPort | null | undefined, dataType: DataType, callback: PortCallback);
|
|
14
|
+
toDB(): IDBInEventPort | undefined;
|
|
15
|
+
active(): boolean;
|
|
16
|
+
onEmit(payload: Payload): void;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=PInEventPort.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PInEventPort.d.ts","sourceRoot":"","sources":["../../src/ports/PInEventPort.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,KAAK,EAAE,EAAE,YAAY,EAAE,SAAS,EAAE,KAAK,OAAO,EAAE,MAAM,SAAS,CAAC;AAEvE,UAAU,cAAc;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,OAAO,EAAE,KAAK,cAAc,EAAE,CAAC;AAE/B,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,KAAK;IAC7C,KAAK,EAAE,KAAK,EAAE,CAAM;IAEpB,QAAQ,EAAE,YAAY,CAAC;IAGvB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAQ;gBAG1B,QAAQ,EAAE,SAAS,EACnB,KAAK,EAAE,SAAS,EAChB,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,MAAM,EACX,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,cAAc,GAAG,IAAI,GAAG,SAAS,EACzC,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,YAAY;IAUxB,IAAI,IAAI,cAAc,GAAG,SAAS;IAQlC,MAAM;IAIN,MAAM,CAAC,OAAO,EAAE,OAAO;CAGxB"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import PPort from "./PPort";
|
|
2
|
+
export default class PInEventPort extends PPort {
|
|
3
|
+
links = [];
|
|
4
|
+
callback;
|
|
5
|
+
// Port label
|
|
6
|
+
label = null;
|
|
7
|
+
constructor(portType, owner, portId, pid, componentPid, name, dbItem, dataType, callback) {
|
|
8
|
+
super(portType, owner, pid, componentPid, portId, name, dataType);
|
|
9
|
+
this.callback = callback;
|
|
10
|
+
if (dbItem) {
|
|
11
|
+
this.label = dbItem.label || null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
toDB() {
|
|
15
|
+
if (!this.label)
|
|
16
|
+
return undefined;
|
|
17
|
+
return {
|
|
18
|
+
portId: this.portId,
|
|
19
|
+
label: this.label,
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
active() {
|
|
23
|
+
return this.owner.active();
|
|
24
|
+
}
|
|
25
|
+
onEmit(payload) {
|
|
26
|
+
this.callback.apply(this.owner, [payload]);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=PInEventPort.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PInEventPort.js","sourceRoot":"","sources":["../../src/ports/PInEventPort.ts"],"names":[],"mappings":"AAEA,OAAO,KAAgD,MAAM,SAAS,CAAC;AASvE,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,KAAK;IAC7C,KAAK,GAAY,EAAE,CAAC;IAEpB,QAAQ,CAAe;IAEvB,aAAa;IACb,KAAK,GAAkB,IAAI,CAAC;IAE5B,YACE,QAAmB,EACnB,KAAgB,EAChB,MAAc,EACd,GAAW,EACX,YAAoB,EACpB,IAAY,EACZ,MAAyC,EACzC,QAAkB,EAClB,QAAsB;QAEtB,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;QAClE,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAEzB,IAAI,MAAM,EAAE,CAAC;YACX,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,IAAI,IAAI,CAAC;QACpC,CAAC;IACH,CAAC;IAED,IAAI;QACF,IAAI,CAAC,IAAI,CAAC,KAAK;YAAE,OAAO,SAAS,CAAC;QAClC,OAAO;YACL,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC;IACJ,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IAC7B,CAAC;IAED,MAAM,CAAC,OAAgB;QACrB,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAC7C,CAAC;CACF"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DataType, PortTypes } from "../PEnums";
|
|
2
|
+
import PPort, { Payload, PortOwner } from "./PPort";
|
|
3
|
+
import PValueLink from "./PValueLink";
|
|
4
|
+
interface IDBInValuePort {
|
|
5
|
+
portId: number;
|
|
6
|
+
label: string | null;
|
|
7
|
+
staticValue: string | null;
|
|
8
|
+
}
|
|
9
|
+
export { type IDBInValuePort };
|
|
10
|
+
/**
|
|
11
|
+
* PInValuePort only exists on PNodes at the moment.
|
|
12
|
+
*/
|
|
13
|
+
export default class PInValuePort extends PPort {
|
|
14
|
+
links: PValueLink | null;
|
|
15
|
+
staticValue: string | null;
|
|
16
|
+
label: string | null;
|
|
17
|
+
constructor(portType: PortTypes, owner: PortOwner, portId: number, pid: number, componentPid: number, name: string, dbItem: IDBInValuePort | null | undefined, pinDataType: DataType);
|
|
18
|
+
toDB(): IDBInValuePort | undefined;
|
|
19
|
+
runtime_value(): Payload;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=PInValuePort.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PInValuePort.d.ts","sourceRoot":"","sources":["../../src/ports/PInValuePort.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,UAAU,cAAc;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,OAAO,EAAE,KAAK,cAAc,EAAE,CAAC;AAE/B;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,KAAK;IAC7C,KAAK,EAAE,UAAU,GAAG,IAAI,CAAQ;IAChC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAQ;IAElC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAQ;gBAG1B,QAAQ,EAAE,SAAS,EACnB,KAAK,EAAE,SAAS,EAChB,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,MAAM,EACX,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,cAAc,GAAG,IAAI,GAAG,SAAS,EACzC,WAAW,EAAE,QAAQ;IASvB,IAAI,IAAI,cAAc,GAAG,SAAS;IASlC,aAAa,IAAI,OAAO;CASzB"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import PPort from "./PPort";
|
|
2
|
+
/**
|
|
3
|
+
* PInValuePort only exists on PNodes at the moment.
|
|
4
|
+
*/
|
|
5
|
+
export default class PInValuePort extends PPort {
|
|
6
|
+
links = null;
|
|
7
|
+
staticValue = null;
|
|
8
|
+
label = null;
|
|
9
|
+
constructor(portType, owner, portId, pid, componentPid, name, dbItem, pinDataType) {
|
|
10
|
+
super(portType, owner, pid, componentPid, portId, name, pinDataType);
|
|
11
|
+
if (dbItem) {
|
|
12
|
+
this.label = dbItem.label;
|
|
13
|
+
this.staticValue = dbItem.staticValue;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
toDB() {
|
|
17
|
+
if (!this.label && !this.staticValue)
|
|
18
|
+
return undefined;
|
|
19
|
+
return {
|
|
20
|
+
portId: this.portId,
|
|
21
|
+
label: this.label || null,
|
|
22
|
+
staticValue: this.staticValue || null,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
runtime_value() {
|
|
26
|
+
if (this.links !== null) {
|
|
27
|
+
if (this.links.outPort !== null)
|
|
28
|
+
return this.links.outPort.runtime_value();
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
return this.staticValue || null;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=PInValuePort.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PInValuePort.js","sourceRoot":"","sources":["../../src/ports/PInValuePort.ts"],"names":[],"mappings":"AACA,OAAO,KAA6B,MAAM,SAAS,CAAC;AAWpD;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,KAAK;IAC7C,KAAK,GAAsB,IAAI,CAAC;IAChC,WAAW,GAAkB,IAAI,CAAC;IAElC,KAAK,GAAkB,IAAI,CAAC;IAE5B,YACE,QAAmB,EACnB,KAAgB,EAChB,MAAc,EACd,GAAW,EACX,YAAoB,EACpB,IAAY,EACZ,MAAyC,EACzC,WAAqB;QAErB,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC;QACrE,IAAI,MAAM,EAAE,CAAC;YACX,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;YAC1B,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;QACxC,CAAC;IACH,CAAC;IAED,IAAI;QACF,IAAI,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,WAAW;YAAE,OAAO,SAAS,CAAC;QACvD,OAAO;YACL,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,KAAK,EAAE,IAAI,CAAC,KAAK,IAAI,IAAI;YACzB,WAAW,EAAE,IAAI,CAAC,WAAW,IAAI,IAAI;SACtC,CAAC;IACJ,CAAC;IAED,aAAa;QACX,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,EAAE,CAAC;YACxB,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,KAAK,IAAI;gBAC7B,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,aAAa,EAAE,CAAC;YAC5C,OAAO,IAAI,CAAC;QACd,CAAC;aAAM,CAAC;YACN,OAAO,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC;QAClC,CAAC;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import PInEventPort from "./PInEventPort";
|
|
2
|
+
import POutEventPort from "./POutEventPort";
|
|
3
|
+
import { type IDBEventLink } from "./IDBEventLink";
|
|
4
|
+
import { PortTypes } from "../PEnums";
|
|
5
|
+
import PItem from "../PItem";
|
|
6
|
+
import PInValuePort from "./PInValuePort";
|
|
7
|
+
export default class PLink extends PItem {
|
|
8
|
+
index: number;
|
|
9
|
+
outPortType: PortTypes;
|
|
10
|
+
outPid: number;
|
|
11
|
+
outComponentPid: number;
|
|
12
|
+
outPortId: number;
|
|
13
|
+
inPortType: PortTypes;
|
|
14
|
+
inPid: number;
|
|
15
|
+
inComponentPid: number;
|
|
16
|
+
inPortId: number;
|
|
17
|
+
inValuePort: PInValuePort;
|
|
18
|
+
outPort: POutEventPort | null;
|
|
19
|
+
inPort: PInEventPort | null;
|
|
20
|
+
constructor(dbItem: IDBEventLink);
|
|
21
|
+
toDB(): IDBEventLink;
|
|
22
|
+
active(): boolean;
|
|
23
|
+
hasCustomPayload(): boolean;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=PLink.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PLink.d.ts","sourceRoot":"","sources":["../../src/ports/PLink.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAY,SAAS,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,KAAK;IACtC,KAAK,EAAE,MAAM,CAAC;IAEd,WAAW,EAAE,SAAS,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAElB,UAAU,EAAE,SAAS,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IAEjB,WAAW,EAAE,YAAY,CAAC;IAG1B,OAAO,EAAE,aAAa,GAAG,IAAI,CAAQ;IACrC,MAAM,EAAE,YAAY,GAAG,IAAI,CAAQ;gBAEvB,MAAM,EAAE,YAAY;IA2BhC,IAAI,IAAI,YAAY;IAoBpB,MAAM,IAAI,OAAO;IAIjB,gBAAgB;CAKjB"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { DataType, PortTypes } from "../PEnums";
|
|
2
|
+
import PItem from "../PItem";
|
|
3
|
+
import PInValuePort from "./PInValuePort";
|
|
4
|
+
export default class PLink extends PItem {
|
|
5
|
+
index;
|
|
6
|
+
outPortType;
|
|
7
|
+
outPid;
|
|
8
|
+
outComponentPid;
|
|
9
|
+
outPortId;
|
|
10
|
+
inPortType;
|
|
11
|
+
inPid;
|
|
12
|
+
inComponentPid;
|
|
13
|
+
inPortId;
|
|
14
|
+
inValuePort;
|
|
15
|
+
// Bound ports
|
|
16
|
+
outPort = null;
|
|
17
|
+
inPort = null;
|
|
18
|
+
constructor(dbItem) {
|
|
19
|
+
super(dbItem);
|
|
20
|
+
this.index = dbItem.index || 0;
|
|
21
|
+
this.outPortType = dbItem.outPortType;
|
|
22
|
+
this.outPid = dbItem.outPid;
|
|
23
|
+
this.outComponentPid = dbItem.outComponentPid;
|
|
24
|
+
this.outPortId = dbItem.outPortId;
|
|
25
|
+
this.inPortType = dbItem.inPortType;
|
|
26
|
+
this.inPid = dbItem.inPid;
|
|
27
|
+
this.inComponentPid = dbItem.inComponentPid;
|
|
28
|
+
this.inPortId = dbItem.inPortId;
|
|
29
|
+
this.inValuePort = new PInValuePort(PortTypes.EventLink, this, 1, this.pid, 0, "Payload Value", dbItem.inValuePort, DataType.None);
|
|
30
|
+
}
|
|
31
|
+
toDB() {
|
|
32
|
+
return {
|
|
33
|
+
...super.toDB(),
|
|
34
|
+
index: this.index,
|
|
35
|
+
outPortType: this.outPortType,
|
|
36
|
+
outPid: this.outPid,
|
|
37
|
+
outComponentPid: this.outComponentPid,
|
|
38
|
+
outPortId: this.outPortId,
|
|
39
|
+
inPortType: this.inPortType,
|
|
40
|
+
inPid: this.inPid,
|
|
41
|
+
inComponentPid: this.inComponentPid,
|
|
42
|
+
inPortId: this.inPortId,
|
|
43
|
+
inValuePort: this.inValuePort.toDB(),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
active() {
|
|
47
|
+
return this.outPort.owner.active() && this.inPort.owner.active();
|
|
48
|
+
}
|
|
49
|
+
hasCustomPayload() {
|
|
50
|
+
return (this.inValuePort.links !== null || this.inValuePort.staticValue !== null);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=PLink.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PLink.js","sourceRoot":"","sources":["../../src/ports/PLink.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,KAAK;IACtC,KAAK,CAAS;IAEd,WAAW,CAAY;IACvB,MAAM,CAAS;IACf,eAAe,CAAS;IACxB,SAAS,CAAS;IAElB,UAAU,CAAY;IACtB,KAAK,CAAS;IACd,cAAc,CAAS;IACvB,QAAQ,CAAS;IAEjB,WAAW,CAAe;IAE1B,cAAc;IACd,OAAO,GAAyB,IAAI,CAAC;IACrC,MAAM,GAAwB,IAAI,CAAC;IAEnC,YAAY,MAAoB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAC;QAEd,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,IAAI,CAAC,CAAC;QAE/B,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;QAC5B,IAAI,CAAC,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;QAC9C,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;QAElC,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;QACpC,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAC1B,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC;QAC5C,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;QAEhC,IAAI,CAAC,WAAW,GAAG,IAAI,YAAY,CACjC,SAAS,CAAC,SAAS,EACnB,IAAI,EACJ,CAAC,EACD,IAAI,CAAC,GAAG,EACR,CAAC,EACD,eAAe,EACf,MAAM,CAAC,WAAW,EAClB,QAAQ,CAAC,IAAI,CACd,CAAC;IACJ,CAAC;IAED,IAAI;QACF,OAAO;YACL,GAAG,KAAK,CAAC,IAAI,EAAE;YAEf,KAAK,EAAE,IAAI,CAAC,KAAK;YAEjB,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,SAAS,EAAE,IAAI,CAAC,SAAS;YAEzB,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,QAAQ,EAAE,IAAI,CAAC,QAAQ;YAEvB,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE;SACrC,CAAC;IACJ,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,OAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,IAAI,CAAC,MAAO,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IACrE,CAAC;IAED,gBAAgB;QACd,OAAO,CACL,IAAI,CAAC,WAAW,CAAC,KAAK,KAAK,IAAI,IAAI,IAAI,CAAC,WAAW,CAAC,WAAW,KAAK,IAAI,CACzE,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DataType, PortTypes } from "../PEnums";
|
|
2
|
+
import PLink from "./PLink";
|
|
3
|
+
import PInEventPort from "./PInEventPort";
|
|
4
|
+
import PPort, { Payload, PortOwner } from "./PPort";
|
|
5
|
+
interface IDBOutEventPort {
|
|
6
|
+
portId: number;
|
|
7
|
+
label: string | null;
|
|
8
|
+
}
|
|
9
|
+
export { type IDBOutEventPort };
|
|
10
|
+
export default class POutEventPort extends PPort {
|
|
11
|
+
links: PLink[];
|
|
12
|
+
label: string | null;
|
|
13
|
+
constructor(portType: PortTypes, owner: PortOwner, portId: number, pid: number, componentPid: number, name: string, dbItem: IDBOutEventPort | null | undefined, dataType: DataType);
|
|
14
|
+
toDB(): IDBOutEventPort | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* This can be called from all Out Event Port types: Nodes, Events and Variables.
|
|
17
|
+
*/
|
|
18
|
+
link(inPort: PInEventPort, plink: PLink): void;
|
|
19
|
+
isLinked(to: PInEventPort): boolean;
|
|
20
|
+
emit(payload: Payload): void;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=POutEventPort.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"POutEventPort.d.ts","sourceRoot":"","sources":["../../src/ports/POutEventPort.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpD,UAAU,eAAe;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,OAAO,EAAE,KAAK,eAAe,EAAE,CAAC;AAEhC,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,KAAK;IAC9C,KAAK,EAAE,KAAK,EAAE,CAAM;IAGpB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAQ;gBAG1B,QAAQ,EAAE,SAAS,EACnB,KAAK,EAAE,SAAS,EAChB,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,MAAM,EACX,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,eAAe,GAAG,IAAI,GAAG,SAAS,EAC1C,QAAQ,EAAE,QAAQ;IASpB,IAAI,IAAI,eAAe,GAAG,SAAS;IAQnC;;OAEG;IACH,IAAI,CAAC,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,KAAK;IAWvC,QAAQ,CAAC,EAAE,EAAE,YAAY;IAIzB,IAAI,CAAC,OAAO,EAAE,OAAO;CAatB"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import PPort from "./PPort";
|
|
2
|
+
export default class POutEventPort extends PPort {
|
|
3
|
+
links = [];
|
|
4
|
+
// Port label
|
|
5
|
+
label = null;
|
|
6
|
+
constructor(portType, owner, portId, pid, componentPid, name, dbItem, dataType) {
|
|
7
|
+
super(portType, owner, pid, componentPid, portId, name, dataType);
|
|
8
|
+
this.owner = owner;
|
|
9
|
+
if (dbItem) {
|
|
10
|
+
this.label = dbItem.label || null;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
toDB() {
|
|
14
|
+
if (!this.label)
|
|
15
|
+
return undefined;
|
|
16
|
+
return {
|
|
17
|
+
portId: this.portId,
|
|
18
|
+
label: this.label,
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* This can be called from all Out Event Port types: Nodes, Events and Variables.
|
|
23
|
+
*/
|
|
24
|
+
link(inPort, plink) {
|
|
25
|
+
plink.outPort = this;
|
|
26
|
+
plink.inPort = inPort;
|
|
27
|
+
this.links.push(plink);
|
|
28
|
+
inPort.links.push(plink);
|
|
29
|
+
// Set index
|
|
30
|
+
plink.index = this.links.length - 1;
|
|
31
|
+
}
|
|
32
|
+
isLinked(to) {
|
|
33
|
+
return this.links.some((l) => l.inPort === to);
|
|
34
|
+
}
|
|
35
|
+
emit(payload) {
|
|
36
|
+
for (const link of this.links) {
|
|
37
|
+
// Skip unrendered nodes
|
|
38
|
+
if (!link.inPort?.active())
|
|
39
|
+
continue;
|
|
40
|
+
if (link.inValuePort.links !== null ||
|
|
41
|
+
link.inValuePort.staticValue !== null) {
|
|
42
|
+
payload = link.inValuePort.runtime_value();
|
|
43
|
+
}
|
|
44
|
+
link.inPort?.onEmit(payload);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=POutEventPort.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"POutEventPort.js","sourceRoot":"","sources":["../../src/ports/POutEventPort.ts"],"names":[],"mappings":"AAGA,OAAO,KAA6B,MAAM,SAAS,CAAC;AASpD,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,KAAK;IAC9C,KAAK,GAAY,EAAE,CAAC;IAEpB,aAAa;IACb,KAAK,GAAkB,IAAI,CAAC;IAE5B,YACE,QAAmB,EACnB,KAAgB,EAChB,MAAc,EACd,GAAW,EACX,YAAoB,EACpB,IAAY,EACZ,MAA0C,EAC1C,QAAkB;QAElB,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;QAClE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,MAAM,EAAE,CAAC;YACX,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,IAAI,IAAI,CAAC;QACpC,CAAC;IACH,CAAC;IAED,IAAI;QACF,IAAI,CAAC,IAAI,CAAC,KAAK;YAAE,OAAO,SAAS,CAAC;QAClC,OAAO;YACL,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,MAAoB,EAAE,KAAY;QACrC,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC;QACrB,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;QAEtB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACvB,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAEzB,YAAY;QACZ,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;IACtC,CAAC;IAED,QAAQ,CAAC,EAAgB;QACvB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,EAAE,CAAC,CAAC;IACjD,CAAC;IAED,IAAI,CAAC,OAAgB;QACnB,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YAC9B,wBAAwB;YACxB,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE;gBAAE,SAAS;YACrC,IACE,IAAI,CAAC,WAAW,CAAC,KAAK,KAAK,IAAI;gBAC/B,IAAI,CAAC,WAAW,CAAC,WAAW,KAAK,IAAI,EACrC,CAAC;gBACD,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC,aAAa,EAAE,CAAC;YAC7C,CAAC;YACD,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;QAC/B,CAAC;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { DataType, PortTypes } from "../PEnums";
|
|
2
|
+
import PPort, { OutValueGetter, PortOwner } from "./PPort";
|
|
3
|
+
import PInValuePort from "./PInValuePort";
|
|
4
|
+
import PValueLink from "./PValueLink";
|
|
5
|
+
interface IDBOutValuePort {
|
|
6
|
+
portId: number;
|
|
7
|
+
label: string | null;
|
|
8
|
+
}
|
|
9
|
+
export { type IDBOutValuePort };
|
|
10
|
+
export default class POutValuePort extends PPort {
|
|
11
|
+
links: PValueLink[];
|
|
12
|
+
label: string | null;
|
|
13
|
+
private getValue;
|
|
14
|
+
constructor(portType: PortTypes, owner: PortOwner, pid: number, componentPid: number, portId: number, name: string, dbItem: IDBOutValuePort | null | undefined, pinDataType: DataType, getValue: OutValueGetter);
|
|
15
|
+
runtime_value(): string | null;
|
|
16
|
+
toDB(): IDBOutValuePort | undefined;
|
|
17
|
+
isLinked(to: PInValuePort): boolean;
|
|
18
|
+
/**
|
|
19
|
+
* This can be called from all Out Event Port types: Nodes, Events and Variables.
|
|
20
|
+
*/
|
|
21
|
+
link(inPort: PInValuePort, pvalueLink: PValueLink): void;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=POutValuePort.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"POutValuePort.d.ts","sourceRoot":"","sources":["../../src/ports/POutValuePort.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,KAAK,EAAE,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAC3D,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,UAAU,eAAe;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,OAAO,EAAE,KAAK,eAAe,EAAE,CAAC;AAEhC,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,KAAK;IAC9C,KAAK,EAAE,UAAU,EAAE,CAAM;IAGzB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAQ;IAE5B,OAAO,CAAC,QAAQ,CAAiB;gBAG/B,QAAQ,EAAE,SAAS,EACnB,KAAK,EAAE,SAAS,EAChB,GAAG,EAAE,MAAM,EACX,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,eAAe,GAAG,IAAI,GAAG,SAAS,EAC1C,WAAW,EAAE,QAAQ,EACrB,QAAQ,EAAE,cAAc;IAS1B,aAAa;IAIb,IAAI,IAAI,eAAe,GAAG,SAAS;IAQnC,QAAQ,CAAC,EAAE,EAAE,YAAY;IAIzB;;OAEG;IACH,IAAI,CAAC,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU;CAclD"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import PPort from "./PPort";
|
|
2
|
+
export default class POutValuePort extends PPort {
|
|
3
|
+
links = [];
|
|
4
|
+
// Port label
|
|
5
|
+
label = null;
|
|
6
|
+
getValue;
|
|
7
|
+
constructor(portType, owner, pid, componentPid, portId, name, dbItem, pinDataType, getValue) {
|
|
8
|
+
super(portType, owner, pid, componentPid, portId, name, pinDataType);
|
|
9
|
+
this.getValue = getValue;
|
|
10
|
+
if (dbItem) {
|
|
11
|
+
this.label = dbItem.label;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
runtime_value() {
|
|
15
|
+
return this.getValue.apply(this.owner, [this.portId]);
|
|
16
|
+
}
|
|
17
|
+
toDB() {
|
|
18
|
+
if (!this.label)
|
|
19
|
+
return undefined;
|
|
20
|
+
return {
|
|
21
|
+
portId: this.portId,
|
|
22
|
+
label: this.label,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
isLinked(to) {
|
|
26
|
+
return this.links.some((l) => l.inPort === to);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* This can be called from all Out Event Port types: Nodes, Events and Variables.
|
|
30
|
+
*/
|
|
31
|
+
link(inPort, pvalueLink) {
|
|
32
|
+
pvalueLink.outPort = this;
|
|
33
|
+
pvalueLink.inPort = inPort;
|
|
34
|
+
// Add to my out links
|
|
35
|
+
this.links.push(pvalueLink);
|
|
36
|
+
// Set as target in link (single
|
|
37
|
+
inPort.links = pvalueLink;
|
|
38
|
+
// PLink
|
|
39
|
+
// if (inPort.portType === 64) {
|
|
40
|
+
// inPort.dataType = 64;
|
|
41
|
+
// }
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=POutValuePort.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"POutValuePort.js","sourceRoot":"","sources":["../../src/ports/POutValuePort.ts"],"names":[],"mappings":"AACA,OAAO,KAAoC,MAAM,SAAS,CAAC;AAW3D,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,KAAK;IAC9C,KAAK,GAAiB,EAAE,CAAC;IAEzB,aAAa;IACb,KAAK,GAAkB,IAAI,CAAC;IAEpB,QAAQ,CAAiB;IAEjC,YACE,QAAmB,EACnB,KAAgB,EAChB,GAAW,EACX,YAAoB,EACpB,MAAc,EACd,IAAY,EACZ,MAA0C,EAC1C,WAAqB,EACrB,QAAwB;QAExB,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC;QACrE,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,MAAM,EAAE,CAAC;YACX,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAC5B,CAAC;IACH,CAAC;IAED,aAAa;QACX,OAAO,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;IACxD,CAAC;IAED,IAAI;QACF,IAAI,CAAC,IAAI,CAAC,KAAK;YAAE,OAAO,SAAS,CAAC;QAClC,OAAO;YACL,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ,CAAC,EAAgB;QACvB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,EAAE,CAAC,CAAC;IACjD,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,MAAoB,EAAE,UAAsB;QAC/C,UAAU,CAAC,OAAO,GAAG,IAAI,CAAC;QAC1B,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC;QAE3B,sBAAsB;QACtB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC5B,gCAAgC;QAChC,MAAM,CAAC,KAAK,GAAG,UAAU,CAAC;QAE1B,QAAQ;QACR,gCAAgC;QAChC,0BAA0B;QAC1B,IAAI;IACN,CAAC;CACF"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IPort } from "../PTypes";
|
|
2
|
+
import { DataType, PortTypes } from "../PEnums";
|
|
3
|
+
import PComponent from "../PComponent";
|
|
4
|
+
import PEvent from "../PEvent";
|
|
5
|
+
import { PVariable } from "../PVariable";
|
|
6
|
+
import PValue from "../PValue";
|
|
7
|
+
import PLogic from "../PLogic";
|
|
8
|
+
import PLink from "./PLink";
|
|
9
|
+
type Payload = string | null;
|
|
10
|
+
type PortCallback = (payload: Payload) => void;
|
|
11
|
+
type OutValueGetter = (portId: number) => string | null;
|
|
12
|
+
type PortOwner = PComponent | PEvent | PVariable | PValue | PLogic | PLink;
|
|
13
|
+
export { type Payload, type PortCallback, type PortOwner, type OutValueGetter };
|
|
14
|
+
export default abstract class PPort implements IPort {
|
|
15
|
+
owner: PortOwner;
|
|
16
|
+
portType: PortTypes;
|
|
17
|
+
pid: number;
|
|
18
|
+
componentPid: number;
|
|
19
|
+
portId: number;
|
|
20
|
+
name: string;
|
|
21
|
+
dataType: DataType;
|
|
22
|
+
constructor(portType: PortTypes, owner: PortOwner, pid: number, componentPid: number, portId: number, name: string, dataType: DataType);
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=PPort.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PPort.d.ts","sourceRoot":"","sources":["../../src/ports/PPort.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B,KAAK,OAAO,GAAG,MAAM,GAAG,IAAI,CAAC;AAC7B,KAAK,YAAY,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;AAC/C,KAAK,cAAc,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAC;AAExD,KAAK,SAAS,GAAG,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC;AAE3E,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,KAAK,cAAc,EAAE,CAAC;AAEhF,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,KAAM,YAAW,KAAK;IAClD,KAAK,EAAE,SAAS,CAAC;IAGjB,QAAQ,EAAE,SAAS,CAAC;IAGpB,GAAG,EAAE,MAAM,CAAC;IAGZ,YAAY,EAAE,MAAM,CAAC;IAGrB,MAAM,EAAE,MAAM,CAAC;IAGf,IAAI,EAAE,MAAM,CAAC;IAGb,QAAQ,EAAE,QAAQ,CAAC;gBAGjB,QAAQ,EAAE,SAAS,EACnB,KAAK,EAAE,SAAS,EAChB,GAAG,EAAE,MAAM,EACX,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,QAAQ;CAUrB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export default class PPort {
|
|
2
|
+
owner;
|
|
3
|
+
// Type of port
|
|
4
|
+
portType;
|
|
5
|
+
// Node, event, variable pid
|
|
6
|
+
pid;
|
|
7
|
+
// Possible node component pid
|
|
8
|
+
componentPid;
|
|
9
|
+
// Static port id, unique within owner
|
|
10
|
+
portId;
|
|
11
|
+
// Port name
|
|
12
|
+
name;
|
|
13
|
+
// Datatype of port
|
|
14
|
+
dataType;
|
|
15
|
+
constructor(portType, owner, pid, componentPid, portId, name, dataType) {
|
|
16
|
+
this.portType = portType;
|
|
17
|
+
this.owner = owner;
|
|
18
|
+
this.pid = pid;
|
|
19
|
+
this.componentPid = componentPid;
|
|
20
|
+
this.portId = portId;
|
|
21
|
+
this.name = name;
|
|
22
|
+
this.dataType = dataType;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=PPort.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PPort.js","sourceRoot":"","sources":["../../src/ports/PPort.ts"],"names":[],"mappings":"AAiBA,MAAM,CAAC,OAAO,OAAgB,KAAK;IACjC,KAAK,CAAY;IAEjB,eAAe;IACf,QAAQ,CAAY;IAEpB,4BAA4B;IAC5B,GAAG,CAAS;IAEZ,8BAA8B;IAC9B,YAAY,CAAS;IAErB,sCAAsC;IACtC,MAAM,CAAS;IAEf,YAAY;IACZ,IAAI,CAAS;IAEb,mBAAmB;IACnB,QAAQ,CAAW;IAEnB,YACE,QAAmB,EACnB,KAAgB,EAChB,GAAW,EACX,YAAoB,EACpB,MAAc,EACd,IAAY,EACZ,QAAkB;QAElB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;CACF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PortTypes } from "../PEnums";
|
|
2
|
+
import PItem from "../PItem";
|
|
3
|
+
import POutValuePort from "./POutValuePort";
|
|
4
|
+
import PInValuePort from "./PInValuePort";
|
|
5
|
+
import { IDBValueLink } from "./IDBValueLink";
|
|
6
|
+
export default class PValueLink extends PItem {
|
|
7
|
+
outPortType: PortTypes;
|
|
8
|
+
outPid: number;
|
|
9
|
+
outComponentPid: number;
|
|
10
|
+
outPortId: number;
|
|
11
|
+
inPortType: PortTypes;
|
|
12
|
+
inPid: number;
|
|
13
|
+
inComponentPid: number;
|
|
14
|
+
inPortId: number;
|
|
15
|
+
outPort: POutValuePort | null;
|
|
16
|
+
inPort: PInValuePort | null;
|
|
17
|
+
constructor(dbItem: IDBValueLink);
|
|
18
|
+
toDB(): IDBValueLink;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=PValueLink.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PValueLink.d.ts","sourceRoot":"","sources":["../../src/ports/PValueLink.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,KAAK;IAC3C,WAAW,EAAE,SAAS,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAElB,UAAU,EAAE,SAAS,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IAGjB,OAAO,EAAE,aAAa,GAAG,IAAI,CAAQ;IACrC,MAAM,EAAE,YAAY,GAAG,IAAI,CAAQ;gBAEvB,MAAM,EAAE,YAAY;IAchC,IAAI,IAAI,YAAY;CAerB"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import PItem from "../PItem";
|
|
2
|
+
export default class PValueLink extends PItem {
|
|
3
|
+
outPortType;
|
|
4
|
+
outPid;
|
|
5
|
+
outComponentPid;
|
|
6
|
+
outPortId;
|
|
7
|
+
inPortType;
|
|
8
|
+
inPid;
|
|
9
|
+
inComponentPid;
|
|
10
|
+
inPortId;
|
|
11
|
+
// Linked ports
|
|
12
|
+
outPort = null;
|
|
13
|
+
inPort = null;
|
|
14
|
+
constructor(dbItem) {
|
|
15
|
+
super(dbItem);
|
|
16
|
+
this.outPortType = dbItem.outPortType;
|
|
17
|
+
this.outPid = dbItem.outPid;
|
|
18
|
+
this.outComponentPid = dbItem.outComponentPid;
|
|
19
|
+
this.outPortId = dbItem.outPortId;
|
|
20
|
+
this.inPortType = dbItem.inPortType;
|
|
21
|
+
this.inPid = dbItem.inPid;
|
|
22
|
+
this.inComponentPid = dbItem.inComponentPid;
|
|
23
|
+
this.inPortId = dbItem.inPortId;
|
|
24
|
+
}
|
|
25
|
+
toDB() {
|
|
26
|
+
return {
|
|
27
|
+
...super.toDB(),
|
|
28
|
+
outPortType: this.outPortType,
|
|
29
|
+
outPid: this.outPid,
|
|
30
|
+
outComponentPid: this.outComponentPid,
|
|
31
|
+
outPortId: this.outPortId,
|
|
32
|
+
inPortType: this.inPortType,
|
|
33
|
+
inPid: this.inPid,
|
|
34
|
+
inComponentPid: this.inComponentPid,
|
|
35
|
+
inPortId: this.inPortId,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=PValueLink.js.map
|