@p100-web/core 100.1.27 → 100.2.2
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/GameContext.d.ts +60 -42
- package/dist/GameContext.d.ts.map +1 -1
- package/dist/GameContext.js +219 -127
- package/dist/GameContext.js.map +1 -1
- package/dist/IDBApp.d.ts +21 -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/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/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/PCanvas.d.ts +1 -1
- package/dist/PCanvas.d.ts.map +1 -1
- package/dist/PCanvas.js +7 -7
- package/dist/PCanvas.js.map +1 -1
- package/dist/PComponent.d.ts +31 -8
- package/dist/PComponent.d.ts.map +1 -1
- package/dist/PComponent.js +86 -7
- package/dist/PComponent.js.map +1 -1
- package/dist/PEnums.d.ts +7 -15
- package/dist/PEnums.d.ts.map +1 -1
- package/dist/PEnums.js +24 -17
- package/dist/PEnums.js.map +1 -1
- package/dist/PEvent.d.ts +9 -15
- package/dist/PEvent.d.ts.map +1 -1
- package/dist/PEvent.js +18 -23
- package/dist/PEvent.js.map +1 -1
- 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/PNode.d.ts +9 -28
- package/dist/PNode.d.ts.map +1 -1
- package/dist/PNode.js +61 -185
- package/dist/PNode.js.map +1 -1
- 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 +15 -1
- package/dist/PTypes.d.ts.map +1 -1
- package/dist/PVariable.d.ts +14 -15
- package/dist/PVariable.d.ts.map +1 -1
- package/dist/PVariable.js +26 -28
- package/dist/PVariable.js.map +1 -1
- package/dist/index.d.ts +27 -25
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -19
- package/dist/index.js.map +1 -1
- 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 +5 -5
- package/dist/media/PFile.d.ts.map +1 -1
- package/dist/media/PFile.js +16 -10
- package/dist/media/PFile.js.map +1 -1
- package/dist/pcomponents/BaseMaterial.d.ts +5 -6
- package/dist/pcomponents/BaseMaterial.d.ts.map +1 -1
- package/dist/pcomponents/BaseMaterial.js +3 -6
- package/dist/pcomponents/BaseMaterial.js.map +1 -1
- package/dist/pcomponents/PAnimator.d.ts +16 -14
- package/dist/pcomponents/PAnimator.d.ts.map +1 -1
- package/dist/pcomponents/PAnimator.js +21 -20
- package/dist/pcomponents/PAnimator.js.map +1 -1
- package/dist/pcomponents/PBackground.d.ts +4 -4
- package/dist/pcomponents/PBackground.d.ts.map +1 -1
- package/dist/pcomponents/PBackground.js +2 -5
- package/dist/pcomponents/PBackground.js.map +1 -1
- package/dist/pcomponents/PBasicMaterial.d.ts +3 -3
- package/dist/pcomponents/PBasicMaterial.d.ts.map +1 -1
- package/dist/pcomponents/PBasicMaterial.js +4 -5
- package/dist/pcomponents/PBasicMaterial.js.map +1 -1
- package/dist/pcomponents/PCallAction.d.ts +10 -5
- package/dist/pcomponents/PCallAction.d.ts.map +1 -1
- package/dist/pcomponents/PCallAction.js +20 -9
- package/dist/pcomponents/PCallAction.js.map +1 -1
- package/dist/pcomponents/PCameraPosition.d.ts +10 -9
- package/dist/pcomponents/PCameraPosition.d.ts.map +1 -1
- package/dist/pcomponents/PCameraPosition.js +15 -16
- package/dist/pcomponents/PCameraPosition.js.map +1 -1
- package/dist/pcomponents/PCameraTarget.d.ts +10 -9
- package/dist/pcomponents/PCameraTarget.d.ts.map +1 -1
- package/dist/pcomponents/PCameraTarget.js +15 -16
- package/dist/pcomponents/PCameraTarget.js.map +1 -1
- package/dist/pcomponents/PCollider.d.ts +7 -7
- package/dist/pcomponents/PCollider.d.ts.map +1 -1
- package/dist/pcomponents/PCollider.js +13 -14
- package/dist/pcomponents/PCollider.js.map +1 -1
- package/dist/pcomponents/PCompare.d.ts +32 -0
- package/dist/pcomponents/PCompare.d.ts.map +1 -0
- package/dist/pcomponents/PCompare.js +73 -0
- package/dist/pcomponents/PCompare.js.map +1 -0
- package/dist/pcomponents/PControllerInput.d.ts +9 -9
- package/dist/pcomponents/PControllerInput.d.ts.map +1 -1
- package/dist/pcomponents/PControllerInput.js +13 -14
- package/dist/pcomponents/PControllerInput.js.map +1 -1
- package/dist/pcomponents/PCubeGeometry.js +1 -1
- package/dist/pcomponents/PCubeGeometry.js.map +1 -1
- package/dist/pcomponents/PDebug.d.ts +7 -11
- package/dist/pcomponents/PDebug.d.ts.map +1 -1
- package/dist/pcomponents/PDebug.js +13 -17
- package/dist/pcomponents/PDebug.js.map +1 -1
- package/dist/pcomponents/PEnvironment.js +1 -1
- package/dist/pcomponents/PEnvironment.js.map +1 -1
- package/dist/pcomponents/PFadeAnimation.d.ts +10 -9
- package/dist/pcomponents/PFadeAnimation.d.ts.map +1 -1
- package/dist/pcomponents/PFadeAnimation.js +15 -16
- package/dist/pcomponents/PFadeAnimation.js.map +1 -1
- package/dist/pcomponents/PHud.js +1 -1
- package/dist/pcomponents/PHud.js.map +1 -1
- package/dist/pcomponents/PImageCache.d.ts +2 -4
- package/dist/pcomponents/PImageCache.d.ts.map +1 -1
- package/dist/pcomponents/PImageCache.js +9 -23
- package/dist/pcomponents/PImageCache.js.map +1 -1
- package/dist/pcomponents/PImageDetector.d.ts +5 -7
- package/dist/pcomponents/PImageDetector.d.ts.map +1 -1
- package/dist/pcomponents/PImageDetector.js +5 -12
- package/dist/pcomponents/PImageDetector.js.map +1 -1
- package/dist/pcomponents/PInteger.d.ts +18 -16
- package/dist/pcomponents/PInteger.d.ts.map +1 -1
- package/dist/pcomponents/PInteger.js +29 -31
- package/dist/pcomponents/PInteger.js.map +1 -1
- package/dist/pcomponents/PIntegerAnimator.d.ts +10 -9
- package/dist/pcomponents/PIntegerAnimator.d.ts.map +1 -1
- package/dist/pcomponents/PIntegerAnimator.js +17 -18
- package/dist/pcomponents/PIntegerAnimator.js.map +1 -1
- package/dist/pcomponents/PLight.js +1 -1
- package/dist/pcomponents/PLight.js.map +1 -1
- package/dist/pcomponents/PLightDirectional.js +1 -1
- package/dist/pcomponents/PLightDirectional.js.map +1 -1
- package/dist/pcomponents/PMaskedMaterial.js +1 -1
- package/dist/pcomponents/PMaskedMaterial.js.map +1 -1
- package/dist/pcomponents/PMaterialModifier.d.ts +9 -9
- package/dist/pcomponents/PMaterialModifier.d.ts.map +1 -1
- package/dist/pcomponents/PMaterialModifier.js +13 -14
- package/dist/pcomponents/PMaterialModifier.js.map +1 -1
- package/dist/pcomponents/PModelAnnotation.d.ts +12 -11
- package/dist/pcomponents/PModelAnnotation.d.ts.map +1 -1
- package/dist/pcomponents/PModelAnnotation.js +19 -20
- package/dist/pcomponents/PModelAnnotation.js.map +1 -1
- package/dist/pcomponents/PModelAnnotations.d.ts +12 -11
- package/dist/pcomponents/PModelAnnotations.d.ts.map +1 -1
- package/dist/pcomponents/PModelAnnotations.js +19 -20
- package/dist/pcomponents/PModelAnnotations.js.map +1 -1
- package/dist/pcomponents/PModelGLTF.d.ts +7 -9
- package/dist/pcomponents/PModelGLTF.d.ts.map +1 -1
- package/dist/pcomponents/PModelGLTF.js +9 -15
- package/dist/pcomponents/PModelGLTF.js.map +1 -1
- package/dist/pcomponents/PModelNode.js +1 -1
- package/dist/pcomponents/PModelNode.js.map +1 -1
- package/dist/pcomponents/PMoveAnimation.d.ts +3 -3
- package/dist/pcomponents/PMoveAnimation.d.ts.map +1 -1
- package/dist/pcomponents/PMoveAnimation.js +4 -5
- package/dist/pcomponents/PMoveAnimation.js.map +1 -1
- package/dist/pcomponents/PMoveToAnimation.d.ts +5 -5
- package/dist/pcomponents/PMoveToAnimation.d.ts.map +1 -1
- package/dist/pcomponents/PMoveToAnimation.js +7 -8
- package/dist/pcomponents/PMoveToAnimation.js.map +1 -1
- package/dist/pcomponents/PNumberAnimator.d.ts +14 -13
- package/dist/pcomponents/PNumberAnimator.d.ts.map +1 -1
- package/dist/pcomponents/PNumberAnimator.js +25 -26
- package/dist/pcomponents/PNumberAnimator.js.map +1 -1
- package/dist/pcomponents/PPhysicalMaterial.d.ts +3 -3
- package/dist/pcomponents/PPhysicalMaterial.d.ts.map +1 -1
- package/dist/pcomponents/PPhysicalMaterial.js +4 -5
- package/dist/pcomponents/PPhysicalMaterial.js.map +1 -1
- package/dist/pcomponents/PPlaneDetector.d.ts +3 -3
- package/dist/pcomponents/PPlaneDetector.d.ts.map +1 -1
- package/dist/pcomponents/PPlaneDetector.js +4 -5
- package/dist/pcomponents/PPlaneDetector.js.map +1 -1
- package/dist/pcomponents/PPlaneGeometry.js +1 -1
- package/dist/pcomponents/PPlaneGeometry.js.map +1 -1
- package/dist/pcomponents/PProjectRoot.d.ts +20 -19
- package/dist/pcomponents/PProjectRoot.d.ts.map +1 -1
- package/dist/pcomponents/PProjectRoot.js +30 -31
- package/dist/pcomponents/PProjectRoot.js.map +1 -1
- package/dist/pcomponents/PRotateAnimation.d.ts +8 -7
- package/dist/pcomponents/PRotateAnimation.d.ts.map +1 -1
- package/dist/pcomponents/PRotateAnimation.js +11 -12
- package/dist/pcomponents/PRotateAnimation.js.map +1 -1
- package/dist/pcomponents/PScaleAnimation.d.ts +5 -5
- package/dist/pcomponents/PScaleAnimation.d.ts.map +1 -1
- package/dist/pcomponents/PScaleAnimation.js +7 -8
- package/dist/pcomponents/PScaleAnimation.js.map +1 -1
- package/dist/pcomponents/PSceneContainer.d.ts +8 -7
- package/dist/pcomponents/PSceneContainer.d.ts.map +1 -1
- package/dist/pcomponents/PSceneContainer.js +15 -19
- package/dist/pcomponents/PSceneContainer.js.map +1 -1
- package/dist/pcomponents/PSceneRoot.d.ts +3 -3
- package/dist/pcomponents/PSceneRoot.d.ts.map +1 -1
- package/dist/pcomponents/PSceneRoot.js +4 -5
- package/dist/pcomponents/PSceneRoot.js.map +1 -1
- package/dist/pcomponents/PSlider.d.ts +9 -9
- package/dist/pcomponents/PSlider.d.ts.map +1 -1
- package/dist/pcomponents/PSlider.js +15 -16
- package/dist/pcomponents/PSlider.js.map +1 -1
- package/dist/pcomponents/PSound.d.ts +12 -13
- package/dist/pcomponents/PSound.d.ts.map +1 -1
- package/dist/pcomponents/PSound.js +14 -20
- package/dist/pcomponents/PSound.js.map +1 -1
- package/dist/pcomponents/PSphereGeometry.js +1 -1
- package/dist/pcomponents/PSphereGeometry.js.map +1 -1
- package/dist/pcomponents/PSprite.d.ts +2 -4
- package/dist/pcomponents/PSprite.d.ts.map +1 -1
- package/dist/pcomponents/PSprite.js +2 -8
- package/dist/pcomponents/PSprite.js.map +1 -1
- package/dist/pcomponents/PSpriteSheet.d.ts +6 -5
- package/dist/pcomponents/PSpriteSheet.d.ts.map +1 -1
- package/dist/pcomponents/PSpriteSheet.js +7 -8
- package/dist/pcomponents/PSpriteSheet.js.map +1 -1
- package/dist/pcomponents/PText.d.ts +8 -9
- package/dist/pcomponents/PText.d.ts.map +1 -1
- package/dist/pcomponents/PText.js +8 -14
- package/dist/pcomponents/PText.js.map +1 -1
- package/dist/pcomponents/PTransform.js +1 -1
- package/dist/pcomponents/PTransform.js.map +1 -1
- package/dist/pcomponents/PVarList.d.ts +21 -14
- package/dist/pcomponents/PVarList.d.ts.map +1 -1
- package/dist/pcomponents/PVarList.js +45 -29
- package/dist/pcomponents/PVarList.js.map +1 -1
- package/dist/pcomponents/PVideoPlayer.d.ts +10 -9
- package/dist/pcomponents/PVideoPlayer.d.ts.map +1 -1
- package/dist/pcomponents/PVideoPlayer.js +15 -16
- package/dist/pcomponents/PVideoPlayer.js.map +1 -1
- package/dist/pcomponents/PVisibility.d.ts +20 -18
- package/dist/pcomponents/PVisibility.d.ts.map +1 -1
- package/dist/pcomponents/PVisibility.js +32 -32
- package/dist/pcomponents/PVisibility.js.map +1 -1
- package/dist/pcomponents/PXRTools.d.ts +13 -13
- package/dist/pcomponents/PXRTools.d.ts.map +1 -1
- package/dist/pcomponents/PXRTools.js +19 -20
- package/dist/pcomponents/PXRTools.js.map +1 -1
- package/dist/ports/IDBInValue.d.ts +6 -0
- package/dist/ports/IDBInValue.d.ts.map +1 -0
- package/dist/ports/IDBInValue.js +2 -0
- package/dist/ports/IDBInValue.js.map +1 -0
- package/dist/ports/IDBLink.d.ts +17 -0
- package/dist/ports/IDBLink.d.ts.map +1 -0
- package/dist/ports/IDBLink.js +2 -0
- package/dist/ports/IDBLink.js.map +1 -0
- package/dist/ports/IDBPayloadValue.d.ts +5 -0
- package/dist/ports/IDBPayloadValue.d.ts.map +1 -0
- package/dist/ports/IDBPayloadValue.js +2 -0
- package/dist/ports/IDBPayloadValue.js.map +1 -0
- package/dist/ports/IValue.d.ts +10 -0
- package/dist/ports/IValue.d.ts.map +1 -0
- package/dist/ports/IValue.js +2 -0
- package/dist/ports/IValue.js.map +1 -0
- package/dist/ports/PInEventPort.d.ts +16 -0
- package/dist/ports/PInEventPort.d.ts.map +1 -0
- package/dist/ports/PInEventPort.js +22 -0
- package/dist/ports/PInEventPort.js.map +1 -0
- package/dist/ports/PInValue.d.ts +17 -0
- package/dist/ports/PInValue.d.ts.map +1 -0
- package/dist/ports/PInValue.js +31 -0
- package/dist/ports/PInValue.js.map +1 -0
- package/dist/ports/PInValuePort.d.ts +18 -0
- package/dist/ports/PInValuePort.d.ts.map +1 -0
- package/dist/ports/PInValuePort.js +49 -0
- package/dist/ports/PInValuePort.js.map +1 -0
- package/dist/ports/PLink.d.ts +23 -0
- package/dist/ports/PLink.d.ts.map +1 -0
- package/dist/ports/PLink.js +50 -0
- package/dist/ports/PLink.js.map +1 -0
- package/dist/ports/POutEventPort.d.ts +20 -0
- package/dist/ports/POutEventPort.d.ts.map +1 -0
- package/dist/ports/POutEventPort.js +65 -0
- package/dist/ports/POutEventPort.js.map +1 -0
- package/dist/ports/POutValuePort.d.ts +13 -0
- package/dist/ports/POutValuePort.d.ts.map +1 -0
- package/dist/ports/POutValuePort.js +21 -0
- package/dist/ports/POutValuePort.js.map +1 -0
- package/dist/ports/PPayloadValue.d.ts +16 -0
- package/dist/ports/PPayloadValue.d.ts.map +1 -0
- package/dist/ports/PPayloadValue.js +28 -0
- package/dist/ports/PPayloadValue.js.map +1 -0
- package/dist/ports/PPort.d.ts +21 -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/package.json +1 -1
- package/dist/DBEvent.d.ts +0 -22
- package/dist/DBEvent.d.ts.map +0 -1
- package/dist/DBEvent.js +0 -19
- package/dist/DBEvent.js.map +0 -1
- package/dist/DBNode.d.ts +0 -35
- package/dist/DBNode.d.ts.map +0 -1
- package/dist/DBNode.js +0 -33
- package/dist/DBNode.js.map +0 -1
- package/dist/DBScene.d.ts +0 -11
- package/dist/DBScene.d.ts.map +0 -1
- package/dist/DBScene.js +0 -9
- package/dist/DBScene.js.map +0 -1
- package/dist/DBVariable.d.ts +0 -22
- package/dist/DBVariable.d.ts.map +0 -1
- package/dist/DBVariable.js +0 -19
- package/dist/DBVariable.js.map +0 -1
- package/dist/PAction.d.ts +0 -77
- package/dist/PAction.d.ts.map +0 -1
- package/dist/PAction.js +0 -242
- package/dist/PAction.js.map +0 -1
- package/dist/POutValue.d.ts +0 -18
- package/dist/POutValue.d.ts.map +0 -1
- package/dist/POutValue.js +0 -28
- package/dist/POutValue.js.map +0 -1
- package/dist/media/MediaManager.d.ts +0 -17
- package/dist/media/MediaManager.d.ts.map +0 -1
- package/dist/media/MediaManager.js +0 -19
- package/dist/media/MediaManager.js.map +0 -1
- package/dist/pcomponents/PCallActions.d.ts +0 -24
- package/dist/pcomponents/PCallActions.d.ts.map +0 -1
- package/dist/pcomponents/PCallActions.js +0 -37
- package/dist/pcomponents/PCallActions.js.map +0 -1
- package/dist/pcomponents/PCompareBoolean.d.ts +0 -23
- package/dist/pcomponents/PCompareBoolean.d.ts.map +0 -1
- package/dist/pcomponents/PCompareBoolean.js +0 -38
- package/dist/pcomponents/PCompareBoolean.js.map +0 -1
- package/dist/pcomponents/PCompareInteger.d.ts +0 -32
- package/dist/pcomponents/PCompareInteger.d.ts.map +0 -1
- package/dist/pcomponents/PCompareInteger.js +0 -82
- package/dist/pcomponents/PCompareInteger.js.map +0 -1
- package/dist/pcomponents/PCompareNumber.d.ts +0 -25
- package/dist/pcomponents/PCompareNumber.d.ts.map +0 -1
- package/dist/pcomponents/PCompareNumber.js +0 -44
- package/dist/pcomponents/PCompareNumber.js.map +0 -1
- package/dist/pcomponents/PCompareString.d.ts +0 -25
- package/dist/pcomponents/PCompareString.d.ts.map +0 -1
- package/dist/pcomponents/PCompareString.js +0 -42
- package/dist/pcomponents/PCompareString.js.map +0 -1
- package/dist/pcomponents/PCompareVariable.d.ts +0 -28
- package/dist/pcomponents/PCompareVariable.d.ts.map +0 -1
- package/dist/pcomponents/PCompareVariable.js +0 -50
- package/dist/pcomponents/PCompareVariable.js.map +0 -1
- package/dist/pcomponents/PVarReader.d.ts +0 -19
- package/dist/pcomponents/PVarReader.d.ts.map +0 -1
- package/dist/pcomponents/PVarReader.js +0 -25
- package/dist/pcomponents/PVarReader.js.map +0 -1
- package/dist/pcomponents/PVarWriter.d.ts +0 -25
- package/dist/pcomponents/PVarWriter.d.ts.map +0 -1
- package/dist/pcomponents/PVarWriter.js +0 -45
- package/dist/pcomponents/PVarWriter.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PImageCache.d.ts","sourceRoot":"","sources":["../../src/pcomponents/PImageCache.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,
|
|
1
|
+
{"version":3,"file":"PImageCache.d.ts","sourceRoot":"","sources":["../../src/pcomponents/PImageCache.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,SAAS,MAAM,cAAc,CAAC;AAErC,UAAU,YAAa,SAAQ,WAAW;IACxC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,YAAY,EAAE,YAAY,EAAE,CAAC;AAE7B,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,WAAY,SAAQ,UAAU;IAC1D,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,SAAS,EAAE,CAAC;gBAEhB,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW;IAcxE,IAAI,IAAI,YAAY;IAepB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;CACpD"}
|
|
@@ -3,40 +3,26 @@ export default class PImageCache extends PComponent {
|
|
|
3
3
|
size;
|
|
4
4
|
files_textures;
|
|
5
5
|
constructor(dbComponent, node, context) {
|
|
6
|
-
super(dbComponent, "
|
|
6
|
+
super(dbComponent, "Image Cache", node, context);
|
|
7
7
|
this.size = dbComponent.size || 0;
|
|
8
8
|
this.files_textures = new Array(this.size);
|
|
9
|
-
const dbList = dbComponent.files_textures;
|
|
10
|
-
const inArray =
|
|
9
|
+
// const dbList = dbComponent.files_textures;
|
|
10
|
+
// const inArray = new Array(this.size);
|
|
11
11
|
for (let i = 0; i < this.size; i++) {
|
|
12
|
-
|
|
13
|
-
if (dbValue)
|
|
14
|
-
this.files_textures[i] = this.context.requestFile(dbValue);
|
|
15
|
-
else
|
|
16
|
-
this.files_textures[i] = null;
|
|
12
|
+
this.files_textures[i] = this.registerFileSlot(i + 1);
|
|
17
13
|
}
|
|
18
14
|
}
|
|
19
15
|
toDB() {
|
|
20
|
-
const fileIds = this.files_textures
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
// const fileIds = this.files_textures
|
|
17
|
+
// .filter((f) => f !== null)
|
|
18
|
+
// .map((f) => f!._id);
|
|
23
19
|
return {
|
|
24
20
|
...super.toDB(),
|
|
25
|
-
files_textures: fileIds,
|
|
26
|
-
size:
|
|
21
|
+
// files_textures: fileIds,
|
|
22
|
+
size: this.size,
|
|
27
23
|
};
|
|
28
24
|
}
|
|
29
25
|
//
|
|
30
|
-
// LIFE CYCLE
|
|
31
|
-
//
|
|
32
|
-
dispose() {
|
|
33
|
-
// Release files
|
|
34
|
-
for (const file of this.files_textures) {
|
|
35
|
-
if (file)
|
|
36
|
-
this.context.releaseFile(file);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
//
|
|
40
26
|
// EDITOR
|
|
41
27
|
//
|
|
42
28
|
editor_setFile(_index, _file) { }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PImageCache.js","sourceRoot":"","sources":["../../src/pcomponents/PImageCache.ts"],"names":[],"mappings":"AAEA,OAAO,UAA2B,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"PImageCache.js","sourceRoot":"","sources":["../../src/pcomponents/PImageCache.ts"],"names":[],"mappings":"AAEA,OAAO,UAA2B,MAAM,eAAe,CAAC;AASxD,MAAM,CAAC,OAAO,OAAgB,WAAY,SAAQ,UAAU;IAC1D,IAAI,CAAS;IACb,cAAc,CAAc;IAE5B,YAAY,WAAyB,EAAE,IAAW,EAAE,OAAoB;QACtE,KAAK,CAAC,WAAW,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAEjD,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC,IAAI,IAAI,CAAC,CAAC;QAElC,IAAI,CAAC,cAAc,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAE3C,gDAAgD;QAChD,wCAAwC;QACxC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC;YACnC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,gBAAgB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QACxD,CAAC;IACH,CAAC;IAED,IAAI;QACF,sCAAsC;QACtC,+BAA+B;QAC/B,yBAAyB;QACzB,OAAO;YACL,GAAG,KAAK,CAAC,IAAI,EAAE;YACf,gCAAgC;YAChC,IAAI,EAAE,IAAI,CAAC,IAAI;SAChB,CAAC;IACJ,CAAC;IAED,EAAE;IACF,UAAU;IACV,EAAE;IAEF,cAAc,CAAC,MAAc,EAAE,KAAoB,IAAG,CAAC;CACxD"}
|
|
@@ -1,27 +1,25 @@
|
|
|
1
1
|
import GameContext from "../GameContext";
|
|
2
2
|
import PNode from "../PNode";
|
|
3
|
-
import { IOutAction, POutAction } from "../PAction";
|
|
4
3
|
import PComponent, { DBComponent } from "../PComponent";
|
|
5
|
-
import
|
|
4
|
+
import POutEventPort, { DBOutPort } from "../ports/POutEventPort";
|
|
5
|
+
import PFileSlot from "../PFileSlot";
|
|
6
6
|
interface DBImageDetector extends DBComponent {
|
|
7
|
-
file_image: string | null;
|
|
8
7
|
width: number;
|
|
9
8
|
move: boolean;
|
|
10
9
|
rotate: boolean;
|
|
11
10
|
attach: boolean;
|
|
12
|
-
|
|
11
|
+
outport_onDetect?: DBOutPort;
|
|
13
12
|
}
|
|
14
13
|
export type { DBImageDetector };
|
|
15
14
|
export default class PImageDetector extends PComponent {
|
|
16
|
-
file_image:
|
|
15
|
+
file_image: PFileSlot;
|
|
17
16
|
width: number;
|
|
18
17
|
move: boolean;
|
|
19
18
|
rotate: boolean;
|
|
20
19
|
attach: boolean;
|
|
21
|
-
|
|
20
|
+
outport_onDetect: POutEventPort;
|
|
22
21
|
constructor(dbComponent: DBImageDetector, node: PNode, context: GameContext);
|
|
23
22
|
toDB(): DBImageDetector;
|
|
24
|
-
dispose(): void;
|
|
25
23
|
render(): void;
|
|
26
24
|
unrender(): void;
|
|
27
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PImageDetector.d.ts","sourceRoot":"","sources":["../../src/pcomponents/PImageDetector.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,
|
|
1
|
+
{"version":3,"file":"PImageDetector.d.ts","sourceRoot":"","sources":["../../src/pcomponents/PImageDetector.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAExD,OAAO,aAAa,EAAE,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,SAAS,MAAM,cAAc,CAAC;AAErC,UAAU,eAAgB,SAAQ,WAAW;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,gBAAgB,CAAC,EAAE,SAAS,CAAC;CAC9B;AAED,YAAY,EAAE,eAAe,EAAE,CAAC;AAEhC,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,UAAU;IACpD,UAAU,EAAE,SAAS,CAAC;IAEtB,KAAK,EAAE,MAAM,CAAC;IAEd,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAEhB,gBAAgB,EAAE,aAAa,CAAC;gBAEpB,WAAW,EAAE,eAAe,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW;IAoB3E,IAAI,IAAI,eAAe;IAWvB,MAAM,IAAI,IAAI;IAEd,QAAQ,IAAI,IAAI;CACjB"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { POutAction } from "../PAction";
|
|
2
1
|
import PComponent from "../PComponent";
|
|
3
2
|
export default class PImageDetector extends PComponent {
|
|
4
3
|
file_image;
|
|
@@ -6,33 +5,27 @@ export default class PImageDetector extends PComponent {
|
|
|
6
5
|
move;
|
|
7
6
|
rotate;
|
|
8
7
|
attach;
|
|
9
|
-
|
|
8
|
+
outport_onDetect;
|
|
10
9
|
constructor(dbComponent, node, context) {
|
|
11
|
-
super(dbComponent, "
|
|
10
|
+
super(dbComponent, "Image Detector", node, context);
|
|
12
11
|
this.requireTransform = true;
|
|
13
|
-
this.file_image = this.
|
|
12
|
+
this.file_image = this.registerFileSlot(1);
|
|
14
13
|
this.width = dbComponent.width;
|
|
15
14
|
this.move = dbComponent.move;
|
|
16
15
|
this.rotate = dbComponent.rotate;
|
|
17
16
|
this.attach = dbComponent.attach;
|
|
18
|
-
this.
|
|
17
|
+
this.outport_onDetect = this.registerOutPort(1, "On Detect", dbComponent.outport_onDetect);
|
|
19
18
|
}
|
|
20
19
|
toDB() {
|
|
21
20
|
return {
|
|
22
21
|
...super.toDB(),
|
|
23
|
-
|
|
24
|
-
outevent_onDetect: POutAction.toDB(this.outevent_onDetect),
|
|
22
|
+
outport_onDetect: this.outport_onDetect.toDB(),
|
|
25
23
|
width: this.width,
|
|
26
24
|
move: this.move,
|
|
27
25
|
rotate: this.rotate,
|
|
28
26
|
attach: this.attach,
|
|
29
27
|
};
|
|
30
28
|
}
|
|
31
|
-
dispose() {
|
|
32
|
-
// Release files
|
|
33
|
-
if (this.file_image)
|
|
34
|
-
this.context.releaseFile(this.file_image);
|
|
35
|
-
}
|
|
36
29
|
render() { }
|
|
37
30
|
unrender() { }
|
|
38
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PImageDetector.js","sourceRoot":"","sources":["../../src/pcomponents/PImageDetector.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"PImageDetector.js","sourceRoot":"","sources":["../../src/pcomponents/PImageDetector.ts"],"names":[],"mappings":"AAEA,OAAO,UAA2B,MAAM,eAAe,CAAC;AAexD,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,UAAU;IACpD,UAAU,CAAY;IAEtB,KAAK,CAAS;IAEd,IAAI,CAAU;IACd,MAAM,CAAU;IAChB,MAAM,CAAU;IAEhB,gBAAgB,CAAgB;IAEhC,YAAY,WAA4B,EAAE,IAAW,EAAE,OAAoB;QACzE,KAAK,CAAC,WAAW,EAAE,gBAAgB,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAEpD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;QAE7B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC;QAE3C,IAAI,CAAC,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC;QAE/B,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC;QAC7B,IAAI,CAAC,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC;QACjC,IAAI,CAAC,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC;QAEjC,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,eAAe,CAC1C,CAAC,EACD,WAAW,EACX,WAAW,CAAC,gBAAgB,CAC7B,CAAC;IACJ,CAAC;IAED,IAAI;QACF,OAAO;YACL,GAAG,KAAK,CAAC,IAAI,EAAE;YACf,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,CAAC,IAAI,EAAE;YAC9C,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,MAAM,EAAE,IAAI,CAAC,MAAM;SACpB,CAAC;IACJ,CAAC;IAED,MAAM,KAAU,CAAC;IAEjB,QAAQ,KAAU,CAAC;CACpB"}
|
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
import PComponent, { DBComponent } from "../PComponent";
|
|
2
|
-
import { IInAction, IOutAction, PInAction, POutAction } from "../PAction";
|
|
3
2
|
import GameContext from "../GameContext";
|
|
4
3
|
import PNode from "../PNode";
|
|
5
|
-
import
|
|
4
|
+
import POutValuePort from "../ports/POutValuePort";
|
|
5
|
+
import PInEventPort, { DBInPort } from "../ports/PInEventPort";
|
|
6
|
+
import POutEventPort, { DBOutPort } from "../ports/POutEventPort";
|
|
6
7
|
interface DBInteger extends DBComponent {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
outvalue_value
|
|
8
|
+
inport_set?: DBInPort;
|
|
9
|
+
inport_increase?: DBInPort;
|
|
10
|
+
inport_decrease?: DBInPort;
|
|
11
|
+
outport_onChange?: DBOutPort;
|
|
12
|
+
outport_onIncrease?: DBOutPort;
|
|
13
|
+
outport_onDecrease?: DBOutPort;
|
|
14
|
+
outvalue_value?: DBOutPort;
|
|
14
15
|
min: number;
|
|
15
16
|
max: number;
|
|
16
17
|
initial: number;
|
|
17
18
|
}
|
|
18
19
|
export type { DBInteger };
|
|
19
20
|
export default class PInteger extends PComponent {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
outvalue_value:
|
|
21
|
+
inport_set: PInEventPort;
|
|
22
|
+
inport_increase: PInEventPort;
|
|
23
|
+
inport_decrease: PInEventPort;
|
|
24
|
+
outport_onChange: POutEventPort;
|
|
25
|
+
outport_onIncrease: POutEventPort;
|
|
26
|
+
outport_onDecrease: POutEventPort;
|
|
27
|
+
outvalue_value: POutValuePort;
|
|
27
28
|
min: number;
|
|
28
29
|
max: number;
|
|
29
30
|
initial: number;
|
|
@@ -32,6 +33,7 @@ export default class PInteger extends PComponent {
|
|
|
32
33
|
toDB(): DBInteger;
|
|
33
34
|
render(): void;
|
|
34
35
|
unrender(): void;
|
|
36
|
+
getValue(): string;
|
|
35
37
|
callback_onSet(payload: string | null): void;
|
|
36
38
|
callback_onIncrease(): void;
|
|
37
39
|
callback_onDecrease(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PInteger.d.ts","sourceRoot":"","sources":["../../src/pcomponents/PInteger.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,
|
|
1
|
+
{"version":3,"file":"PInteger.d.ts","sourceRoot":"","sources":["../../src/pcomponents/PInteger.ts"],"names":[],"mappings":"AAAA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B,MAAM,IAAI,IAAI;IAEd,QAAQ;IAER,QAAQ;IAIR,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAQrC,mBAAmB;IASnB,mBAAmB;CAQpB"}
|
|
@@ -1,43 +1,41 @@
|
|
|
1
1
|
import PComponent from "../PComponent";
|
|
2
|
-
import { PInAction, POutAction } from "../PAction";
|
|
3
2
|
import { DataType } from "../PEnums";
|
|
4
|
-
import POutValue from "../POutValue";
|
|
5
3
|
export default class PInteger extends PComponent {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
inport_set;
|
|
5
|
+
inport_increase;
|
|
6
|
+
inport_decrease;
|
|
7
|
+
outport_onChange;
|
|
8
|
+
outport_onIncrease;
|
|
9
|
+
outport_onDecrease;
|
|
12
10
|
outvalue_value;
|
|
13
11
|
min;
|
|
14
12
|
max;
|
|
15
13
|
initial;
|
|
16
14
|
_value;
|
|
17
15
|
constructor(dbComponent, node, context) {
|
|
18
|
-
super(dbComponent, "
|
|
16
|
+
super(dbComponent, "Integer Variable", node, context);
|
|
19
17
|
this.min = dbComponent.min;
|
|
20
18
|
this.max = dbComponent.max;
|
|
21
19
|
this.initial = dbComponent.initial;
|
|
22
20
|
this._value = this.initial;
|
|
23
|
-
this.
|
|
24
|
-
this.
|
|
25
|
-
this.
|
|
26
|
-
this.
|
|
27
|
-
this.
|
|
28
|
-
this.
|
|
29
|
-
this.outvalue_value =
|
|
21
|
+
this.inport_set = this.registerInPort(1, "Set Value", dbComponent.inport_set, this.callback_onSet, DataType.Integer);
|
|
22
|
+
this.inport_increase = this.registerInPort(2, "Increase Value", dbComponent.inport_increase, this.callback_onIncrease);
|
|
23
|
+
this.inport_decrease = this.registerInPort(3, "Decrease Value", dbComponent.inport_decrease, this.callback_onDecrease);
|
|
24
|
+
this.outport_onChange = this.registerOutPort(4, "On Change", dbComponent.outport_onChange, DataType.Integer);
|
|
25
|
+
this.outport_onIncrease = this.registerOutPort(5, "On Increase", dbComponent.outport_onIncrease, DataType.Integer);
|
|
26
|
+
this.outport_onDecrease = this.registerOutPort(6, "On Decrease", dbComponent.outport_onDecrease, DataType.Integer);
|
|
27
|
+
this.outvalue_value = this.registerOutValuePort(7, "Value", dbComponent.outvalue_value, DataType.Integer, this.getValue);
|
|
30
28
|
}
|
|
31
29
|
toDB() {
|
|
32
30
|
return {
|
|
33
31
|
...super.toDB(),
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
outvalue_value:
|
|
32
|
+
inport_set: this.inport_set.toDB(),
|
|
33
|
+
inport_increase: this.inport_increase.toDB(),
|
|
34
|
+
inport_decrease: this.inport_decrease.toDB(),
|
|
35
|
+
outport_onChange: this.outport_onChange.toDB(),
|
|
36
|
+
outport_onIncrease: this.outport_onIncrease.toDB(),
|
|
37
|
+
outport_onDecrease: this.outport_onDecrease.toDB(),
|
|
38
|
+
outvalue_value: this.outvalue_value?.toDB(),
|
|
41
39
|
min: this.min,
|
|
42
40
|
max: this.max,
|
|
43
41
|
initial: this.initial,
|
|
@@ -45,30 +43,30 @@ export default class PInteger extends PComponent {
|
|
|
45
43
|
}
|
|
46
44
|
render() { }
|
|
47
45
|
unrender() { }
|
|
46
|
+
getValue() {
|
|
47
|
+
return this._value.toString();
|
|
48
|
+
}
|
|
48
49
|
callback_onSet(payload) {
|
|
49
50
|
const value = parseInt(payload);
|
|
50
51
|
if (value !== this._value) {
|
|
51
52
|
this._value = value;
|
|
52
|
-
this.
|
|
53
|
-
this.outevent_onChange?.emit(payload);
|
|
53
|
+
this.outport_onChange?.emit(payload);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
callback_onIncrease() {
|
|
57
57
|
if (this._value + 1 <= this.max) {
|
|
58
58
|
this._value++;
|
|
59
59
|
const stringValue = this._value.toString();
|
|
60
|
-
this.
|
|
61
|
-
this.
|
|
62
|
-
this.outevent_onChange?.emit(stringValue);
|
|
60
|
+
this.outport_onIncrease?.emit(stringValue);
|
|
61
|
+
this.outport_onChange?.emit(stringValue);
|
|
63
62
|
}
|
|
64
63
|
}
|
|
65
64
|
callback_onDecrease() {
|
|
66
65
|
if (this._value - 1 >= this.min) {
|
|
67
66
|
this._value--;
|
|
68
67
|
const stringValue = this._value.toString();
|
|
69
|
-
this.
|
|
70
|
-
this.
|
|
71
|
-
this.outevent_onChange?.emit(stringValue);
|
|
68
|
+
this.outport_onDecrease?.emit(stringValue);
|
|
69
|
+
this.outport_onChange?.emit(stringValue);
|
|
72
70
|
}
|
|
73
71
|
}
|
|
74
72
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PInteger.js","sourceRoot":"","sources":["../../src/pcomponents/PInteger.ts"],"names":[],"mappings":"AAAA,OAAO,UAA2B,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"PInteger.js","sourceRoot":"","sources":["../../src/pcomponents/PInteger.ts"],"names":[],"mappings":"AAAA,OAAO,UAA2B,MAAM,eAAe,CAAC;AAGxD,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAuBrC,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,UAAU;IAC9C,UAAU,CAAe;IACzB,eAAe,CAAe;IAC9B,eAAe,CAAe;IAC9B,gBAAgB,CAAgB;IAChC,kBAAkB,CAAgB;IAClC,kBAAkB,CAAgB;IAElC,cAAc,CAAgB;IAE9B,GAAG,CAAS;IACZ,GAAG,CAAS;IACZ,OAAO,CAAS;IAEhB,MAAM,CAAS;IAEf,YAAY,WAAsB,EAAE,IAAW,EAAE,OAAoB;QACnE,KAAK,CAAC,WAAW,EAAE,kBAAkB,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAEtD,IAAI,CAAC,GAAG,GAAG,WAAW,CAAC,GAAG,CAAC;QAC3B,IAAI,CAAC,GAAG,GAAG,WAAW,CAAC,GAAG,CAAC;QAC3B,IAAI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AAI,CAAC,MAAM,GAAG,CAAC,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC;YAChC,IAAI,CAAC,MAAM,EAAE,CAAC;YACd,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;YAC3C,IAAI,CAAC,kBAAkB,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;YAC3C,IAAI,CAAC,gBAAgB,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;QAC3C,CAAC;IACH,CAAC;CACF"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import PComponent, { DBComponent } from "../PComponent";
|
|
2
|
-
import { IInAction, IOutAction, PInAction, POutAction } from "../PAction";
|
|
3
2
|
import GameContext from "../GameContext";
|
|
4
3
|
import PNode from "../PNode";
|
|
5
4
|
import { Tween } from "@tweenjs/tween.js";
|
|
5
|
+
import PInEventPort, { DBInPort } from "../ports/PInEventPort";
|
|
6
|
+
import POutEventPort, { DBOutPort } from "../ports/POutEventPort";
|
|
6
7
|
interface DBIntegerAnimator extends DBComponent {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
inport_forward?: DBInPort;
|
|
9
|
+
inport_backward?: DBInPort;
|
|
10
|
+
inport_stop?: DBInPort;
|
|
11
|
+
outport_onChange?: DBOutPort;
|
|
11
12
|
duration: number;
|
|
12
13
|
from: number;
|
|
13
14
|
to: number;
|
|
@@ -15,10 +16,10 @@ interface DBIntegerAnimator extends DBComponent {
|
|
|
15
16
|
}
|
|
16
17
|
export type { DBIntegerAnimator };
|
|
17
18
|
export default class PIntegerAnimator extends PComponent {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
inport_forward: PInEventPort;
|
|
20
|
+
inport_backward: PInEventPort;
|
|
21
|
+
inport_stop: PInEventPort;
|
|
22
|
+
outport_onChange: POutEventPort;
|
|
22
23
|
duration: number;
|
|
23
24
|
from: number;
|
|
24
25
|
to: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PIntegerAnimator.d.ts","sourceRoot":"","sources":["../../src/pcomponents/PIntegerAnimator.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,
|
|
1
|
+
{"version":3,"file":"PIntegerAnimator.d.ts","sourceRoot":"","sources":["../../src/pcomponents/PIntegerAnimator.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG1C,OAAO,YAAY,EAAE,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,aAAa,EAAE,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAElE,UAAU,iBAAkB,SAAQ,WAAW;IAC7C,cAAc,CAAC,EAAE,QAAQ,CAAC;IAC1B,eAAe,CAAC,EAAE,QAAQ,CAAC;IAC3B,WAAW,CAAC,EAAE,QAAQ,CAAC;IACvB,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,OAAO,CAAC;CACf;AACD,YAAY,EAAE,iBAAiB,EAAE,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,UAAU;IACtD,cAAc,EAAE,YAAY,CAAC;IAC7B,eAAe,EAAE,YAAY,CAAC;IAC9B,WAAW,EAAE,YAAY,CAAC;IAC1B,gBAAgB,EAAE,aAAa,CAAC;IAEhC,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,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;IAsCtB,IAAI,IAAI,iBAAiB;IAczB,MAAM,IAAI,IAAI;IAEd,QAAQ;IAOR,OAAO,CAAC,MAAM,CAAgB;IAE9B,eAAe;IAOf,kBAAkB;IA6BlB,mBAAmB;CA+BpB"}
|
|
@@ -1,35 +1,34 @@
|
|
|
1
1
|
import PComponent from "../PComponent";
|
|
2
|
-
import { PInAction, POutAction } from "../PAction";
|
|
3
2
|
import { Tween } from "@tweenjs/tween.js";
|
|
4
3
|
import { DataType } from "../PEnums";
|
|
5
4
|
export default class PIntegerAnimator extends PComponent {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
inport_forward;
|
|
6
|
+
inport_backward;
|
|
7
|
+
inport_stop;
|
|
8
|
+
outport_onChange;
|
|
10
9
|
duration;
|
|
11
10
|
from;
|
|
12
11
|
to;
|
|
13
12
|
loop;
|
|
14
13
|
_tween = null;
|
|
15
14
|
constructor(dbComponent, node, context) {
|
|
16
|
-
super(dbComponent, "
|
|
15
|
+
super(dbComponent, "Integer Animator", node, context);
|
|
17
16
|
this.duration = dbComponent.duration;
|
|
18
17
|
this.from = dbComponent.from;
|
|
19
18
|
this.to = dbComponent.to;
|
|
20
19
|
this.loop = dbComponent.loop;
|
|
21
|
-
this.
|
|
22
|
-
this.
|
|
23
|
-
this.
|
|
24
|
-
this.
|
|
20
|
+
this.inport_forward = this.registerInPort(1, "Animate Forward", dbComponent.inport_forward, this.callback_onForward);
|
|
21
|
+
this.inport_backward = this.registerInPort(2, "Animate Backward", dbComponent.inport_backward, this.callback_onBackward);
|
|
22
|
+
this.inport_stop = this.registerInPort(3, "Stop Animation", dbComponent.inport_stop, this.callback_onStop);
|
|
23
|
+
this.outport_onChange = this.registerOutPort(4, "On Change", dbComponent.outport_onChange, DataType.Integer);
|
|
25
24
|
}
|
|
26
25
|
toDB() {
|
|
27
26
|
return {
|
|
28
27
|
...super.toDB(),
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
inport_forward: this.inport_forward.toDB(),
|
|
29
|
+
inport_backward: this.inport_backward.toDB(),
|
|
30
|
+
inport_stop: this.inport_stop.toDB(),
|
|
31
|
+
outport_onChange: this.outport_onChange.toDB(),
|
|
33
32
|
duration: this.duration,
|
|
34
33
|
from: this.from,
|
|
35
34
|
to: this.to,
|
|
@@ -51,7 +50,7 @@ export default class PIntegerAnimator extends PComponent {
|
|
|
51
50
|
}
|
|
52
51
|
}
|
|
53
52
|
callback_onForward() {
|
|
54
|
-
if (!this.node.isRunning() || !this.
|
|
53
|
+
if (!this.node.isRunning() || !this.outport_onChange) {
|
|
55
54
|
return;
|
|
56
55
|
}
|
|
57
56
|
if (this._tween !== null) {
|
|
@@ -66,7 +65,7 @@ export default class PIntegerAnimator extends PComponent {
|
|
|
66
65
|
const currentInt = Math.round(this._state.value);
|
|
67
66
|
if (currentInt !== lastInt) {
|
|
68
67
|
lastInt = currentInt;
|
|
69
|
-
this.
|
|
68
|
+
this.outport_onChange.emit(currentInt.toString());
|
|
70
69
|
}
|
|
71
70
|
})
|
|
72
71
|
.onComplete(() => {
|
|
@@ -76,7 +75,7 @@ export default class PIntegerAnimator extends PComponent {
|
|
|
76
75
|
this.context.addTween(this._tween);
|
|
77
76
|
}
|
|
78
77
|
callback_onBackward() {
|
|
79
|
-
if (!this.node.isRunning() || !this.
|
|
78
|
+
if (!this.node.isRunning() || !this.outport_onChange) {
|
|
80
79
|
return;
|
|
81
80
|
}
|
|
82
81
|
if (this._tween !== null) {
|
|
@@ -92,7 +91,7 @@ export default class PIntegerAnimator extends PComponent {
|
|
|
92
91
|
const currentInt = Math.floor(this._state.value);
|
|
93
92
|
if (currentInt !== lastInt) {
|
|
94
93
|
lastInt = currentInt;
|
|
95
|
-
this.
|
|
94
|
+
this.outport_onChange.emit(currentInt.toString());
|
|
96
95
|
}
|
|
97
96
|
})
|
|
98
97
|
.onComplete(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PIntegerAnimator.js","sourceRoot":"","sources":["../../src/pcomponents/PIntegerAnimator.ts"],"names":[],"mappings":"AAAA,OAAO,UAA2B,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"PIntegerAnimator.js","sourceRoot":"","sources":["../../src/pcomponents/PIntegerAnimator.ts"],"names":[],"mappings":"AAAA,OAAO,UAA2B,MAAM,eAAe,CAAC;AAGxD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAiBrC,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,UAAU;IACtD,cAAc,CAAe;IAC7B,eAAe,CAAe;IAC9B,WAAW,CAAe;IAC1B,gBAAgB,CAAgB;IAEhC,QAAQ,CAAS;IACjB,IAAI,CAAS;IACb,EAAE,CAAS;IACX,IAAI,CAAU;IAEJ,MAAM,GAAsB,IAAI,CAAC;IAE3C,YACE,WAA8B,EAC9B,IAAW,EACX,OAAoB;QAEpB,KAAK,CAAC,WAAW,EAAE,kBAAkB,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAEtD,IAAI,CAAC,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC;QACrC,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC;QAC7B,IAAI,CAAC,EAAE,GAAG,WAAW,CAAC,EAAE,CAAC;QACzB,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC;QAE7B,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CACvC,CAAC,EACD,iBAAiB,EACjB,WAAW,CAAC,cAAc,EAC1B,IAAI,CAAC,kB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-
super(dbComponent, "
|
|
6
|
+
super(dbComponent, "Ambient Light", node, context);
|
|
7
7
|
this.requireTransform = true;
|
|
8
8
|
this.color = dbComponent.color;
|
|
9
9
|
this.intensity = dbComponent.intensity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PLight.js","sourceRoot":"","sources":["../../src/pcomponents/PLight.ts"],"names":[],"mappings":"AAEA,OAAO,UAA2B,MAAM,eAAe,CAAC;AASxD,MAAM,CAAC,OAAO,OAAgB,MAAO,SAAQ,UAAU;IACrD,KAAK,CAAS;IACd,SAAS,CAAS;IAElB,YAAY,WAAoB,EAAE,IAAW,EAAE,OAAoB;QACjE,KAAK,CAAC,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"PLight.js","sourceRoot":"","sources":["../../src/pcomponents/PLight.ts"],"names":[],"mappings":"AAEA,OAAO,UAA2B,MAAM,eAAe,CAAC;AASxD,MAAM,CAAC,OAAO,OAAgB,MAAO,SAAQ,UAAU;IACrD,KAAK,CAAS;IACd,SAAS,CAAS;IAElB,YAAY,WAAoB,EAAE,IAAW,EAAE,OAAoB;QACjE,KAAK,CAAC,WAAW,EAAE,eAAe,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAEnD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;QAE7B,IAAI,CAAC,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC;QAC/B,IAAI,CAAC,SAAS,GAAG,WAAW,CAAC,SAAS,CAAC;IACzC,CAAC;IAED,IAAI;QACF,OAAO;YACL,GAAG,KAAK,CAAC,IAAI,EAAE;YACf,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,SAAS,EAAE,IAAI,CAAC,SAAS;SAC1B,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -5,7 +5,7 @@ export default class PLightDirectional extends PComponent {
|
|
|
5
5
|
shadowSize;
|
|
6
6
|
castShadow;
|
|
7
7
|
constructor(dbComponent, node, context) {
|
|
8
|
-
super(dbComponent, "
|
|
8
|
+
super(dbComponent, "Directional Light", node, context);
|
|
9
9
|
this.requireTransform = true;
|
|
10
10
|
this.shadowSize = dbComponent.shadowSize;
|
|
11
11
|
this.color = dbComponent.color;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PLightDirectional.js","sourceRoot":"","sources":["../../src/pcomponents/PLightDirectional.ts"],"names":[],"mappings":"AAEA,OAAO,UAA2B,MAAM,eAAe,CAAC;AAWxD,MAAM,CAAC,OAAO,OAAgB,iBAAkB,SAAQ,UAAU;IAChE,KAAK,CAAS;IACd,SAAS,CAAS;IAClB,UAAU,CAAS;IACnB,UAAU,CAAU;IAEpB,YACE,WAA+B,EAC/B,IAAW,EACX,OAAoB;QAEpB,KAAK,CAAC,WAAW,EAAE,mBAAmB,EAAE,
|
|
1
|
+
{"version":3,"file":"PLightDirectional.js","sourceRoot":"","sources":["../../src/pcomponents/PLightDirectional.ts"],"names":[],"mappings":"AAEA,OAAO,UAA2B,MAAM,eAAe,CAAC;AAWxD,MAAM,CAAC,OAAO,OAAgB,iBAAkB,SAAQ,UAAU;IAChE,KAAK,CAAS;IACd,SAAS,CAAS;IAClB,UAAU,CAAS;IACnB,UAAU,CAAU;IAEpB,YACE,WAA+B,EAC/B,IAAW,EACX,OAAoB;QAEpB,KAAK,CAAC,WAAW,EAAE,mBAAmB,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAEvD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;QAE7B,IAAI,CAAC,UAAU,GAAG,WAAW,CAAC,UAAU,CAAC;QACzC,IAAI,CAAC,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC;QAC/B,IAAI,CAAC,SAAS,GAAG,WAAW,CAAC,SAAS,CAAC;QACvC,IAAI,CAAC,UAAU,GAAG,WAAW,CAAC,UAAU,CAAC;IAC3C,CAAC;IAED,IAAI;QACF,OAAO;YACL,GAAG,KAAK,CAAC,IAAI,EAAE;YACf,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,SAAS,EAAE,IAAI,CAAC,SAAS;SAC1B,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -4,7 +4,7 @@ export default class PMaskedMaterial extends BaseMaterial {
|
|
|
4
4
|
maskThreshold;
|
|
5
5
|
maskSoftness;
|
|
6
6
|
constructor(dbComponent, node, context) {
|
|
7
|
-
super("
|
|
7
|
+
super("Masked Material", dbComponent, node, context);
|
|
8
8
|
this.maskColor = dbComponent.maskColor;
|
|
9
9
|
this.maskThreshold = dbComponent.maskThreshold;
|
|
10
10
|
this.maskSoftness = dbComponent.maskSoftness;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PMaskedMaterial.js","sourceRoot":"","sources":["../../src/pcomponents/PMaskedMaterial.ts"],"names":[],"mappings":"AAAA,OAAO,YAAgC,MAAM,gBAAgB,CAAC;AAY9D,MAAM,CAAC,OAAO,OAAgB,eAAgB,SAAQ,YAAY;IAChE,SAAS,CAAS;IAClB,aAAa,CAAS;IACtB,YAAY,CAAS;IAErB,YACE,WAA6B,EAC7B,IAAW,EACX,OAAoB;QAEpB,KAAK,CAAC,iBAAiB,EAAE,
|
|
1
|
+
{"version":3,"file":"PMaskedMaterial.js","sourceRoot":"","sources":["../../src/pcomponents/PMaskedMaterial.ts"],"names":[],"mappings":"AAAA,OAAO,YAAgC,MAAM,gBAAgB,CAAC;AAY9D,MAAM,CAAC,OAAO,OAAgB,eAAgB,SAAQ,YAAY;IAChE,SAAS,CAAS;IAClB,aAAa,CAAS;IACtB,YAAY,CAAS;IAErB,YACE,WAA6B,EAC7B,IAAW,EACX,OAAoB;QAEpB,KAAK,CAAC,iBAAiB,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAErD,IAAI,CAAC,SAAS,GAAG,WAAW,CAAC,SAAS,CAAC;QACvC,IAAI,CAAC,aAAa,GAAG,WAAW,CAAC,aAAa,CAAC;QAC/C,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC,YAAY,CAAC;QAE7C,gBAAgB;QAChB,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC;QAC5B,gBAAgB;QAChB,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC;IAC9B,CAAC;IAED,IAAI;QACF,OAAO;YACL,GAAG,KAAK,CAAC,IAAI,EAAE;YACf,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,YAAY,EAAE,IAAI,CAAC,YAAY;SAChC,CAAC;IACJ,CAAC;IAQD,QAAQ;QACN,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CACF"}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import PComponent, { DBComponent } from "../PComponent";
|
|
2
|
-
import { IInAction, PInAction } from "../PAction";
|
|
3
2
|
import PNode from "../PNode";
|
|
4
3
|
import GameContext from "../GameContext";
|
|
5
4
|
import { NodeEvents } from "../PEnums";
|
|
6
5
|
import { INodeEventListener, INodeEventSender } from "../PTypes";
|
|
6
|
+
import PInEventPort, { DBInPort } from "../ports/PInEventPort";
|
|
7
7
|
interface DBMaterialModifier extends DBComponent {
|
|
8
8
|
recursive: boolean;
|
|
9
9
|
forceTransparency: boolean;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
inport_setOpacity?: DBInPort;
|
|
11
|
+
inport_setBaseColor?: DBInPort;
|
|
12
|
+
inport_setEmissiveColor?: DBInPort;
|
|
13
|
+
inport_setEmissiveIntensity?: DBInPort;
|
|
14
14
|
}
|
|
15
15
|
export type { DBMaterialModifier };
|
|
16
16
|
export default abstract class PMaterialModifier extends PComponent implements INodeEventListener {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
inport_setOpacity: PInEventPort;
|
|
18
|
+
inport_setBaseColor: PInEventPort;
|
|
19
|
+
inport_setEmissiveColor: PInEventPort;
|
|
20
|
+
inport_setEmissiveIntensity: PInEventPort;
|
|
21
21
|
recursive: boolean;
|
|
22
22
|
forceTransparency: boolean;
|
|
23
23
|
linked: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PMaterialModifier.d.ts","sourceRoot":"","sources":["../../src/pcomponents/PMaterialModifier.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,
|
|
1
|
+
{"version":3,"file":"PMaterialModifier.d.ts","sourceRoot":"","sources":["../../src/pcomponents/PMaterialModifier.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAY,UAAU,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAEjE,OAAO,YAAY,EAAE,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE/D,UAAU,kBAAmB,SAAQ,WAAW;IAC9C,SAAS,EAAE,OAAO,CAAC;IACnB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,iBAAiB,CAAC,EAAE,QAAQ,CAAC;IAC7B,mBAAmB,CAAC,EAAE,QAAQ,CAAC;IAC/B,uBAAuB,CAAC,EAAE,QAAQ,CAAC;IACnC,2BAA2B,CAAC,EAAE,QAAQ,CAAC;CACxC;AAED,YAAY,EAAE,kBAAkB,EAAE,CAAC;AAEnC,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,iBAC5B,SAAQ,UACR,YAAW,kBAAkB;IAE7B,iBAAiB,EAAE,YAAY,CAAC;IAChC,mBAAmB,EAAE,YAAY,CAAC;IAClC,uBAAuB,EAAE,YAAY,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