@p100-web/core 100.1.26 → 100.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (389) hide show
  1. package/package.json +1 -1
  2. package/dist/AdaptivePerformance.d.ts +0 -20
  3. package/dist/AdaptivePerformance.d.ts.map +0 -1
  4. package/dist/AdaptivePerformance.js +0 -110
  5. package/dist/AdaptivePerformance.js.map +0 -1
  6. package/dist/DBEvent.d.ts +0 -22
  7. package/dist/DBEvent.d.ts.map +0 -1
  8. package/dist/DBEvent.js +0 -19
  9. package/dist/DBEvent.js.map +0 -1
  10. package/dist/DBNode.d.ts +0 -35
  11. package/dist/DBNode.d.ts.map +0 -1
  12. package/dist/DBNode.js +0 -33
  13. package/dist/DBNode.js.map +0 -1
  14. package/dist/DBScene.d.ts +0 -11
  15. package/dist/DBScene.d.ts.map +0 -1
  16. package/dist/DBScene.js +0 -9
  17. package/dist/DBScene.js.map +0 -1
  18. package/dist/DBVariable.d.ts +0 -22
  19. package/dist/DBVariable.d.ts.map +0 -1
  20. package/dist/DBVariable.js +0 -19
  21. package/dist/DBVariable.js.map +0 -1
  22. package/dist/DevTools.d.ts +0 -4
  23. package/dist/DevTools.d.ts.map +0 -1
  24. package/dist/DevTools.js +0 -10
  25. package/dist/DevTools.js.map +0 -1
  26. package/dist/GameContext.d.ts +0 -184
  27. package/dist/GameContext.d.ts.map +0 -1
  28. package/dist/GameContext.js +0 -602
  29. package/dist/GameContext.js.map +0 -1
  30. package/dist/IAudioListener.d.ts +0 -4
  31. package/dist/IAudioListener.d.ts.map +0 -1
  32. package/dist/IAudioListener.js +0 -2
  33. package/dist/IAudioListener.js.map +0 -1
  34. package/dist/ICameraControls.d.ts +0 -17
  35. package/dist/ICameraControls.d.ts.map +0 -1
  36. package/dist/ICameraControls.js +0 -2
  37. package/dist/ICameraControls.js.map +0 -1
  38. package/dist/IComponentFactory.d.ts +0 -8
  39. package/dist/IComponentFactory.d.ts.map +0 -1
  40. package/dist/IComponentFactory.js +0 -2
  41. package/dist/IComponentFactory.js.map +0 -1
  42. package/dist/IEngine.d.ts +0 -23
  43. package/dist/IEngine.d.ts.map +0 -1
  44. package/dist/IEngine.js +0 -2
  45. package/dist/IEngine.js.map +0 -1
  46. package/dist/IPMaterial.d.ts +0 -12
  47. package/dist/IPMaterial.d.ts.map +0 -1
  48. package/dist/IPMaterial.js +0 -2
  49. package/dist/IPMaterial.js.map +0 -1
  50. package/dist/IPNodeRenderer.d.ts +0 -25
  51. package/dist/IPNodeRenderer.d.ts.map +0 -1
  52. package/dist/IPNodeRenderer.js +0 -2
  53. package/dist/IPNodeRenderer.js.map +0 -1
  54. package/dist/IStats.d.ts +0 -9
  55. package/dist/IStats.d.ts.map +0 -1
  56. package/dist/IStats.js +0 -3
  57. package/dist/IStats.js.map +0 -1
  58. package/dist/MathTools.d.ts +0 -8
  59. package/dist/MathTools.d.ts.map +0 -1
  60. package/dist/MathTools.js +0 -20
  61. package/dist/MathTools.js.map +0 -1
  62. package/dist/PAction.d.ts +0 -77
  63. package/dist/PAction.d.ts.map +0 -1
  64. package/dist/PAction.js +0 -242
  65. package/dist/PAction.js.map +0 -1
  66. package/dist/PCanvas.d.ts +0 -171
  67. package/dist/PCanvas.d.ts.map +0 -1
  68. package/dist/PCanvas.js +0 -648
  69. package/dist/PCanvas.js.map +0 -1
  70. package/dist/PComponent.d.ts +0 -50
  71. package/dist/PComponent.d.ts.map +0 -1
  72. package/dist/PComponent.js +0 -73
  73. package/dist/PComponent.js.map +0 -1
  74. package/dist/PEnums.d.ts +0 -124
  75. package/dist/PEnums.d.ts.map +0 -1
  76. package/dist/PEnums.js +0 -138
  77. package/dist/PEnums.js.map +0 -1
  78. package/dist/PEvent.d.ts +0 -27
  79. package/dist/PEvent.d.ts.map +0 -1
  80. package/dist/PEvent.js +0 -40
  81. package/dist/PEvent.js.map +0 -1
  82. package/dist/PNode.d.ts +0 -135
  83. package/dist/PNode.d.ts.map +0 -1
  84. package/dist/PNode.js +0 -583
  85. package/dist/PNode.js.map +0 -1
  86. package/dist/POutValue.d.ts +0 -18
  87. package/dist/POutValue.d.ts.map +0 -1
  88. package/dist/POutValue.js +0 -28
  89. package/dist/POutValue.js.map +0 -1
  90. package/dist/PPayload.d.ts +0 -7
  91. package/dist/PPayload.d.ts.map +0 -1
  92. package/dist/PPayload.js +0 -19
  93. package/dist/PPayload.js.map +0 -1
  94. package/dist/PTypes.d.ts +0 -36
  95. package/dist/PTypes.d.ts.map +0 -1
  96. package/dist/PTypes.js +0 -2
  97. package/dist/PTypes.js.map +0 -1
  98. package/dist/PVariable.d.ts +0 -29
  99. package/dist/PVariable.d.ts.map +0 -1
  100. package/dist/PVariable.js +0 -51
  101. package/dist/PVariable.js.map +0 -1
  102. package/dist/PVector2.d.ts +0 -14
  103. package/dist/PVector2.d.ts.map +0 -1
  104. package/dist/PVector2.js +0 -25
  105. package/dist/PVector2.js.map +0 -1
  106. package/dist/PVector3.d.ts +0 -19
  107. package/dist/PVector3.d.ts.map +0 -1
  108. package/dist/PVector3.js +0 -44
  109. package/dist/PVector3.js.map +0 -1
  110. package/dist/animations/AnimationTools.d.ts +0 -3
  111. package/dist/animations/AnimationTools.d.ts.map +0 -1
  112. package/dist/animations/AnimationTools.js +0 -12
  113. package/dist/animations/AnimationTools.js.map +0 -1
  114. package/dist/animations/IModelAnimation.d.ts +0 -17
  115. package/dist/animations/IModelAnimation.d.ts.map +0 -1
  116. package/dist/animations/IModelAnimation.js +0 -2
  117. package/dist/animations/IModelAnimation.js.map +0 -1
  118. package/dist/assets/AssetLoader.d.ts +0 -10
  119. package/dist/assets/AssetLoader.d.ts.map +0 -1
  120. package/dist/assets/AssetLoader.js +0 -12
  121. package/dist/assets/AssetLoader.js.map +0 -1
  122. package/dist/index.d.ts +0 -151
  123. package/dist/index.d.ts.map +0 -1
  124. package/dist/index.js +0 -111
  125. package/dist/index.js.map +0 -1
  126. package/dist/media/MediaManager.d.ts +0 -17
  127. package/dist/media/MediaManager.d.ts.map +0 -1
  128. package/dist/media/MediaManager.js +0 -19
  129. package/dist/media/MediaManager.js.map +0 -1
  130. package/dist/media/PFile.d.ts +0 -13
  131. package/dist/media/PFile.d.ts.map +0 -1
  132. package/dist/media/PFile.js +0 -28
  133. package/dist/media/PFile.js.map +0 -1
  134. package/dist/pcomponents/BaseMaterial.d.ts +0 -50
  135. package/dist/pcomponents/BaseMaterial.d.ts.map +0 -1
  136. package/dist/pcomponents/BaseMaterial.js +0 -62
  137. package/dist/pcomponents/BaseMaterial.js.map +0 -1
  138. package/dist/pcomponents/PAnimator.d.ts +0 -40
  139. package/dist/pcomponents/PAnimator.d.ts.map +0 -1
  140. package/dist/pcomponents/PAnimator.js +0 -50
  141. package/dist/pcomponents/PAnimator.js.map +0 -1
  142. package/dist/pcomponents/PBackground.d.ts +0 -37
  143. package/dist/pcomponents/PBackground.d.ts.map +0 -1
  144. package/dist/pcomponents/PBackground.js +0 -48
  145. package/dist/pcomponents/PBackground.js.map +0 -1
  146. package/dist/pcomponents/PBasicMaterial.d.ts +0 -22
  147. package/dist/pcomponents/PBasicMaterial.d.ts.map +0 -1
  148. package/dist/pcomponents/PBasicMaterial.js +0 -31
  149. package/dist/pcomponents/PBasicMaterial.js.map +0 -1
  150. package/dist/pcomponents/PCallAction.d.ts +0 -19
  151. package/dist/pcomponents/PCallAction.d.ts.map +0 -1
  152. package/dist/pcomponents/PCallAction.js +0 -24
  153. package/dist/pcomponents/PCallAction.js.map +0 -1
  154. package/dist/pcomponents/PCallActions.d.ts +0 -24
  155. package/dist/pcomponents/PCallActions.d.ts.map +0 -1
  156. package/dist/pcomponents/PCallActions.js +0 -37
  157. package/dist/pcomponents/PCallActions.js.map +0 -1
  158. package/dist/pcomponents/PCameraPosition.d.ts +0 -32
  159. package/dist/pcomponents/PCameraPosition.d.ts.map +0 -1
  160. package/dist/pcomponents/PCameraPosition.js +0 -84
  161. package/dist/pcomponents/PCameraPosition.js.map +0 -1
  162. package/dist/pcomponents/PCameraTarget.d.ts +0 -32
  163. package/dist/pcomponents/PCameraTarget.d.ts.map +0 -1
  164. package/dist/pcomponents/PCameraTarget.js +0 -85
  165. package/dist/pcomponents/PCameraTarget.js.map +0 -1
  166. package/dist/pcomponents/PCollider.d.ts +0 -40
  167. package/dist/pcomponents/PCollider.d.ts.map +0 -1
  168. package/dist/pcomponents/PCollider.js +0 -58
  169. package/dist/pcomponents/PCollider.js.map +0 -1
  170. package/dist/pcomponents/PCompareBoolean.d.ts +0 -23
  171. package/dist/pcomponents/PCompareBoolean.d.ts.map +0 -1
  172. package/dist/pcomponents/PCompareBoolean.js +0 -38
  173. package/dist/pcomponents/PCompareBoolean.js.map +0 -1
  174. package/dist/pcomponents/PCompareInteger.d.ts +0 -32
  175. package/dist/pcomponents/PCompareInteger.d.ts.map +0 -1
  176. package/dist/pcomponents/PCompareInteger.js +0 -82
  177. package/dist/pcomponents/PCompareInteger.js.map +0 -1
  178. package/dist/pcomponents/PCompareNumber.d.ts +0 -25
  179. package/dist/pcomponents/PCompareNumber.d.ts.map +0 -1
  180. package/dist/pcomponents/PCompareNumber.js +0 -44
  181. package/dist/pcomponents/PCompareNumber.js.map +0 -1
  182. package/dist/pcomponents/PCompareString.d.ts +0 -25
  183. package/dist/pcomponents/PCompareString.d.ts.map +0 -1
  184. package/dist/pcomponents/PCompareString.js +0 -42
  185. package/dist/pcomponents/PCompareString.js.map +0 -1
  186. package/dist/pcomponents/PCompareVariable.d.ts +0 -28
  187. package/dist/pcomponents/PCompareVariable.d.ts.map +0 -1
  188. package/dist/pcomponents/PCompareVariable.js +0 -50
  189. package/dist/pcomponents/PCompareVariable.js.map +0 -1
  190. package/dist/pcomponents/PControllerInput.d.ts +0 -30
  191. package/dist/pcomponents/PControllerInput.d.ts.map +0 -1
  192. package/dist/pcomponents/PControllerInput.js +0 -39
  193. package/dist/pcomponents/PControllerInput.js.map +0 -1
  194. package/dist/pcomponents/PCubeGeometry.d.ts +0 -18
  195. package/dist/pcomponents/PCubeGeometry.d.ts.map +0 -1
  196. package/dist/pcomponents/PCubeGeometry.js +0 -23
  197. package/dist/pcomponents/PCubeGeometry.js.map +0 -1
  198. package/dist/pcomponents/PDebug.d.ts +0 -25
  199. package/dist/pcomponents/PDebug.d.ts.map +0 -1
  200. package/dist/pcomponents/PDebug.js +0 -34
  201. package/dist/pcomponents/PDebug.js.map +0 -1
  202. package/dist/pcomponents/PEnvironment.d.ts +0 -27
  203. package/dist/pcomponents/PEnvironment.d.ts.map +0 -1
  204. package/dist/pcomponents/PEnvironment.js +0 -43
  205. package/dist/pcomponents/PEnvironment.js.map +0 -1
  206. package/dist/pcomponents/PFadeAnimation.d.ts +0 -30
  207. package/dist/pcomponents/PFadeAnimation.d.ts.map +0 -1
  208. package/dist/pcomponents/PFadeAnimation.js +0 -113
  209. package/dist/pcomponents/PFadeAnimation.js.map +0 -1
  210. package/dist/pcomponents/PHud.d.ts +0 -12
  211. package/dist/pcomponents/PHud.d.ts.map +0 -1
  212. package/dist/pcomponents/PHud.js +0 -12
  213. package/dist/pcomponents/PHud.js.map +0 -1
  214. package/dist/pcomponents/PImageCache.d.ts +0 -18
  215. package/dist/pcomponents/PImageCache.d.ts.map +0 -1
  216. package/dist/pcomponents/PImageCache.js +0 -44
  217. package/dist/pcomponents/PImageCache.js.map +0 -1
  218. package/dist/pcomponents/PImageDetector.d.ts +0 -28
  219. package/dist/pcomponents/PImageDetector.d.ts.map +0 -1
  220. package/dist/pcomponents/PImageDetector.js +0 -39
  221. package/dist/pcomponents/PImageDetector.js.map +0 -1
  222. package/dist/pcomponents/PInteger.d.ts +0 -39
  223. package/dist/pcomponents/PInteger.d.ts.map +0 -1
  224. package/dist/pcomponents/PInteger.js +0 -75
  225. package/dist/pcomponents/PInteger.js.map +0 -1
  226. package/dist/pcomponents/PIntegerAnimator.d.ts +0 -36
  227. package/dist/pcomponents/PIntegerAnimator.d.ts.map +0 -1
  228. package/dist/pcomponents/PIntegerAnimator.js +0 -105
  229. package/dist/pcomponents/PIntegerAnimator.js.map +0 -1
  230. package/dist/pcomponents/PLight.d.ts +0 -15
  231. package/dist/pcomponents/PLight.d.ts.map +0 -1
  232. package/dist/pcomponents/PLight.js +0 -19
  233. package/dist/pcomponents/PLight.js.map +0 -1
  234. package/dist/pcomponents/PLightDirectional.d.ts +0 -19
  235. package/dist/pcomponents/PLightDirectional.d.ts.map +0 -1
  236. package/dist/pcomponents/PLightDirectional.js +0 -25
  237. package/dist/pcomponents/PLightDirectional.js.map +0 -1
  238. package/dist/pcomponents/PMaskedMaterial.d.ts +0 -19
  239. package/dist/pcomponents/PMaskedMaterial.d.ts.map +0 -1
  240. package/dist/pcomponents/PMaskedMaterial.js +0 -28
  241. package/dist/pcomponents/PMaskedMaterial.js.map +0 -1
  242. package/dist/pcomponents/PMaterialModifier.d.ts +0 -38
  243. package/dist/pcomponents/PMaterialModifier.d.ts.map +0 -1
  244. package/dist/pcomponents/PMaterialModifier.js +0 -68
  245. package/dist/pcomponents/PMaterialModifier.js.map +0 -1
  246. package/dist/pcomponents/PModelAnnotation.d.ts +0 -46
  247. package/dist/pcomponents/PModelAnnotation.d.ts.map +0 -1
  248. package/dist/pcomponents/PModelAnnotation.js +0 -119
  249. package/dist/pcomponents/PModelAnnotation.js.map +0 -1
  250. package/dist/pcomponents/PModelAnnotations.d.ts +0 -45
  251. package/dist/pcomponents/PModelAnnotations.d.ts.map +0 -1
  252. package/dist/pcomponents/PModelAnnotations.js +0 -128
  253. package/dist/pcomponents/PModelAnnotations.js.map +0 -1
  254. package/dist/pcomponents/PModelGLTF.d.ts +0 -36
  255. package/dist/pcomponents/PModelGLTF.d.ts.map +0 -1
  256. package/dist/pcomponents/PModelGLTF.js +0 -61
  257. package/dist/pcomponents/PModelGLTF.js.map +0 -1
  258. package/dist/pcomponents/PModelNode.d.ts +0 -16
  259. package/dist/pcomponents/PModelNode.d.ts.map +0 -1
  260. package/dist/pcomponents/PModelNode.js +0 -18
  261. package/dist/pcomponents/PModelNode.js.map +0 -1
  262. package/dist/pcomponents/PMoveAnimation.d.ts +0 -27
  263. package/dist/pcomponents/PMoveAnimation.d.ts.map +0 -1
  264. package/dist/pcomponents/PMoveAnimation.js +0 -65
  265. package/dist/pcomponents/PMoveAnimation.js.map +0 -1
  266. package/dist/pcomponents/PMoveToAnimation.d.ts +0 -26
  267. package/dist/pcomponents/PMoveToAnimation.d.ts.map +0 -1
  268. package/dist/pcomponents/PMoveToAnimation.js +0 -81
  269. package/dist/pcomponents/PMoveToAnimation.js.map +0 -1
  270. package/dist/pcomponents/PNumberAnimator.d.ts +0 -40
  271. package/dist/pcomponents/PNumberAnimator.d.ts.map +0 -1
  272. package/dist/pcomponents/PNumberAnimator.js +0 -103
  273. package/dist/pcomponents/PNumberAnimator.js.map +0 -1
  274. package/dist/pcomponents/PPhysicalMaterial.d.ts +0 -28
  275. package/dist/pcomponents/PPhysicalMaterial.d.ts.map +0 -1
  276. package/dist/pcomponents/PPhysicalMaterial.js +0 -35
  277. package/dist/pcomponents/PPhysicalMaterial.js.map +0 -1
  278. package/dist/pcomponents/PPlaneDetector.d.ts +0 -20
  279. package/dist/pcomponents/PPlaneDetector.d.ts.map +0 -1
  280. package/dist/pcomponents/PPlaneDetector.js +0 -25
  281. package/dist/pcomponents/PPlaneDetector.js.map +0 -1
  282. package/dist/pcomponents/PPlaneGeometry.d.ts +0 -20
  283. package/dist/pcomponents/PPlaneGeometry.d.ts.map +0 -1
  284. package/dist/pcomponents/PPlaneGeometry.js +0 -26
  285. package/dist/pcomponents/PPlaneGeometry.js.map +0 -1
  286. package/dist/pcomponents/PProjectRoot.d.ts +0 -41
  287. package/dist/pcomponents/PProjectRoot.d.ts.map +0 -1
  288. package/dist/pcomponents/PProjectRoot.js +0 -94
  289. package/dist/pcomponents/PProjectRoot.js.map +0 -1
  290. package/dist/pcomponents/PRotateAnimation.d.ts +0 -32
  291. package/dist/pcomponents/PRotateAnimation.d.ts.map +0 -1
  292. package/dist/pcomponents/PRotateAnimation.js +0 -81
  293. package/dist/pcomponents/PRotateAnimation.js.map +0 -1
  294. package/dist/pcomponents/PScaleAnimation.d.ts +0 -28
  295. package/dist/pcomponents/PScaleAnimation.d.ts.map +0 -1
  296. package/dist/pcomponents/PScaleAnimation.js +0 -82
  297. package/dist/pcomponents/PScaleAnimation.js.map +0 -1
  298. package/dist/pcomponents/PSceneContainer.d.ts +0 -22
  299. package/dist/pcomponents/PSceneContainer.d.ts.map +0 -1
  300. package/dist/pcomponents/PSceneContainer.js +0 -50
  301. package/dist/pcomponents/PSceneContainer.js.map +0 -1
  302. package/dist/pcomponents/PSceneRoot.d.ts +0 -16
  303. package/dist/pcomponents/PSceneRoot.d.ts.map +0 -1
  304. package/dist/pcomponents/PSceneRoot.js +0 -21
  305. package/dist/pcomponents/PSceneRoot.js.map +0 -1
  306. package/dist/pcomponents/PSlider.d.ts +0 -34
  307. package/dist/pcomponents/PSlider.d.ts.map +0 -1
  308. package/dist/pcomponents/PSlider.js +0 -39
  309. package/dist/pcomponents/PSlider.js.map +0 -1
  310. package/dist/pcomponents/PSound.d.ts +0 -34
  311. package/dist/pcomponents/PSound.d.ts.map +0 -1
  312. package/dist/pcomponents/PSound.js +0 -45
  313. package/dist/pcomponents/PSound.js.map +0 -1
  314. package/dist/pcomponents/PSphereGeometry.d.ts +0 -19
  315. package/dist/pcomponents/PSphereGeometry.d.ts.map +0 -1
  316. package/dist/pcomponents/PSphereGeometry.js +0 -25
  317. package/dist/pcomponents/PSphereGeometry.js.map +0 -1
  318. package/dist/pcomponents/PSprite.d.ts +0 -19
  319. package/dist/pcomponents/PSprite.d.ts.map +0 -1
  320. package/dist/pcomponents/PSprite.js +0 -27
  321. package/dist/pcomponents/PSprite.js.map +0 -1
  322. package/dist/pcomponents/PSpriteSheet.d.ts +0 -27
  323. package/dist/pcomponents/PSpriteSheet.d.ts.map +0 -1
  324. package/dist/pcomponents/PSpriteSheet.js +0 -42
  325. package/dist/pcomponents/PSpriteSheet.js.map +0 -1
  326. package/dist/pcomponents/PText.d.ts +0 -35
  327. package/dist/pcomponents/PText.d.ts.map +0 -1
  328. package/dist/pcomponents/PText.js +0 -49
  329. package/dist/pcomponents/PText.js.map +0 -1
  330. package/dist/pcomponents/PTransform.d.ts +0 -23
  331. package/dist/pcomponents/PTransform.d.ts.map +0 -1
  332. package/dist/pcomponents/PTransform.js +0 -67
  333. package/dist/pcomponents/PTransform.js.map +0 -1
  334. package/dist/pcomponents/PVarList.d.ts +0 -36
  335. package/dist/pcomponents/PVarList.d.ts.map +0 -1
  336. package/dist/pcomponents/PVarList.js +0 -71
  337. package/dist/pcomponents/PVarList.js.map +0 -1
  338. package/dist/pcomponents/PVarReader.d.ts +0 -19
  339. package/dist/pcomponents/PVarReader.d.ts.map +0 -1
  340. package/dist/pcomponents/PVarReader.js +0 -25
  341. package/dist/pcomponents/PVarReader.js.map +0 -1
  342. package/dist/pcomponents/PVarWriter.d.ts +0 -25
  343. package/dist/pcomponents/PVarWriter.d.ts.map +0 -1
  344. package/dist/pcomponents/PVarWriter.js +0 -45
  345. package/dist/pcomponents/PVarWriter.js.map +0 -1
  346. package/dist/pcomponents/PVideoPlayer.d.ts +0 -35
  347. package/dist/pcomponents/PVideoPlayer.d.ts.map +0 -1
  348. package/dist/pcomponents/PVideoPlayer.js +0 -94
  349. package/dist/pcomponents/PVideoPlayer.js.map +0 -1
  350. package/dist/pcomponents/PVisibility.d.ts +0 -36
  351. package/dist/pcomponents/PVisibility.d.ts.map +0 -1
  352. package/dist/pcomponents/PVisibility.js +0 -68
  353. package/dist/pcomponents/PVisibility.js.map +0 -1
  354. package/dist/pcomponents/PXRTools.d.ts +0 -32
  355. package/dist/pcomponents/PXRTools.d.ts.map +0 -1
  356. package/dist/pcomponents/PXRTools.js +0 -44
  357. package/dist/pcomponents/PXRTools.js.map +0 -1
  358. package/dist/settings/ICameraSettings.d.ts +0 -16
  359. package/dist/settings/ICameraSettings.d.ts.map +0 -1
  360. package/dist/settings/ICameraSettings.js +0 -2
  361. package/dist/settings/ICameraSettings.js.map +0 -1
  362. package/dist/settings/IQualitySettings.d.ts +0 -14
  363. package/dist/settings/IQualitySettings.d.ts.map +0 -1
  364. package/dist/settings/IQualitySettings.js +0 -2
  365. package/dist/settings/IQualitySettings.js.map +0 -1
  366. package/dist/settings/IRenderSetting.d.ts +0 -7
  367. package/dist/settings/IRenderSetting.d.ts.map +0 -1
  368. package/dist/settings/IRenderSetting.js +0 -2
  369. package/dist/settings/IRenderSetting.js.map +0 -1
  370. package/dist/settings/ISetting.d.ts +0 -4
  371. package/dist/settings/ISetting.d.ts.map +0 -1
  372. package/dist/settings/ISetting.js +0 -2
  373. package/dist/settings/ISetting.js.map +0 -1
  374. package/dist/settings/IWebSettings.d.ts +0 -6
  375. package/dist/settings/IWebSettings.d.ts.map +0 -1
  376. package/dist/settings/IWebSettings.js +0 -2
  377. package/dist/settings/IWebSettings.js.map +0 -1
  378. package/dist/settings/Settings_Babylonjs.d.ts +0 -101
  379. package/dist/settings/Settings_Babylonjs.d.ts.map +0 -1
  380. package/dist/settings/Settings_Babylonjs.js +0 -85
  381. package/dist/settings/Settings_Babylonjs.js.map +0 -1
  382. package/dist/settings/Settings_Base.d.ts +0 -11
  383. package/dist/settings/Settings_Base.d.ts.map +0 -1
  384. package/dist/settings/Settings_Base.js +0 -45
  385. package/dist/settings/Settings_Base.js.map +0 -1
  386. package/dist/settings/Settings_Threejs.d.ts +0 -106
  387. package/dist/settings/Settings_Threejs.d.ts.map +0 -1
  388. package/dist/settings/Settings_Threejs.js +0 -165
  389. package/dist/settings/Settings_Threejs.js.map +0 -1
@@ -1,25 +0,0 @@
1
- import { POutAction } from "../PAction";
2
- import PComponent from "../PComponent";
3
- export default class PPlaneDetector extends PComponent {
4
- move;
5
- rotate;
6
- outevent_onDetect;
7
- constructor(dbComponent, node, context) {
8
- super(dbComponent, "PPlaneDetector", "Plane Detector", node, context);
9
- this.requireTransform = true;
10
- this.move = dbComponent.move;
11
- this.rotate = dbComponent.rotate;
12
- this.outevent_onDetect = node.registerOutAction(this, "On Detect", dbComponent.outevent_onDetect);
13
- }
14
- toDB() {
15
- return {
16
- ...super.toDB(),
17
- outevent_onDetect: POutAction.toDB(this.outevent_onDetect),
18
- move: this.move,
19
- rotate: this.rotate,
20
- };
21
- }
22
- render() { }
23
- unrender() { }
24
- }
25
- //# sourceMappingURL=PPlaneDetector.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PPlaneDetector.js","sourceRoot":"","sources":["../../src/pcomponents/PPlaneDetector.ts"],"names":[],"mappings":"AAEA,OAAO,EAAc,UAAU,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,UAA2B,MAAM,eAAe,CAAC;AAUxD,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,UAAU;IACpD,IAAI,CAAU;IACd,MAAM,CAAU;IAChB,iBAAiB,CAAoB;IAErC,YAAY,WAA4B,EAAE,IAAW,EAAE,OAAoB;QACzE,KAAK,CAAC,WAAW,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAEtE,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;QAE7B,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC;QAC7B,IAAI,CAAC,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC;QAEjC,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,iBAAiB,CAC7C,IAAI,EACJ,WAAW,EACX,WAAW,CAAC,iBAAiB,CAC9B,CAAC;IACJ,CAAC;IAED,IAAI;QACF,OAAO;YACL,GAAG,KAAK,CAAC,IAAI,EAAE;YACf,iBAAiB,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC;YAC1D,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,MAAM,EAAE,IAAI,CAAC,MAAM;SACpB,CAAC;IACJ,CAAC;IAED,MAAM,KAAU,CAAC;IAEjB,QAAQ,KAAU,CAAC;CACpB"}
@@ -1,20 +0,0 @@
1
- import GameContext from "../GameContext";
2
- import PComponent, { DBComponent } from "../PComponent";
3
- import PVector2, { IVector2 } from "../PVector2";
4
- import PNode from "../PNode";
5
- interface DBPlaneGeometry extends DBComponent {
6
- size: IVector2;
7
- segments: IVector2;
8
- castShadow: boolean;
9
- receiveShadow: boolean;
10
- }
11
- export type { DBPlaneGeometry };
12
- export default abstract class PPlaneGeometry extends PComponent {
13
- size: PVector2;
14
- segments: PVector2;
15
- castShadow: boolean;
16
- receiveShadow: boolean;
17
- constructor(dbComponent: DBPlaneGeometry, node: PNode, context: GameContext);
18
- toDB(): DBPlaneGeometry;
19
- }
20
- //# sourceMappingURL=PPlaneGeometry.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PPlaneGeometry.d.ts","sourceRoot":"","sources":["../../src/pcomponents/PPlaneGeometry.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,QAAQ,EAAE,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,MAAM,UAAU,CAAC;AAE7B,UAAU,eAAgB,SAAQ,WAAW;IAC3C,IAAI,EAAE,QAAQ,CAAC;IACf,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,YAAY,EAAE,eAAe,EAAE,CAAC;AAEhC,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,cAAe,SAAQ,UAAU;IAC7D,IAAI,EAAE,QAAQ,CAAC;IACf,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,OAAO,CAAC;gBAEX,WAAW,EAAE,eAAe,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW;IAW3E,IAAI,IAAI,eAAe;CASxB"}
@@ -1,26 +0,0 @@
1
- import PComponent from "../PComponent";
2
- import PVector2 from "../PVector2";
3
- export default class PPlaneGeometry extends PComponent {
4
- size;
5
- segments;
6
- castShadow;
7
- receiveShadow;
8
- constructor(dbComponent, node, context) {
9
- super(dbComponent, "PPlaneGeometry", "Plane Geometry", node, context);
10
- this.requireTransform = true;
11
- this.size = new PVector2(dbComponent.size);
12
- this.segments = new PVector2(dbComponent.segments);
13
- this.castShadow = dbComponent.castShadow;
14
- this.receiveShadow = dbComponent.receiveShadow || false;
15
- }
16
- toDB() {
17
- return {
18
- ...super.toDB(),
19
- size: this.size,
20
- segments: this.segments,
21
- castShadow: this.castShadow,
22
- receiveShadow: this.receiveShadow,
23
- };
24
- }
25
- }
26
- //# sourceMappingURL=PPlaneGeometry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PPlaneGeometry.js","sourceRoot":"","sources":["../../src/pcomponents/PPlaneGeometry.ts"],"names":[],"mappings":"AACA,OAAO,UAA2B,MAAM,eAAe,CAAC;AACxD,OAAO,QAAsB,MAAM,aAAa,CAAC;AAYjD,MAAM,CAAC,OAAO,OAAgB,cAAe,SAAQ,UAAU;IAC7D,IAAI,CAAW;IACf,QAAQ,CAAW;IACnB,UAAU,CAAU;IACpB,aAAa,CAAU;IAEvB,YAAY,WAA4B,EAAE,IAAW,EAAE,OAAoB;QACzE,KAAK,CAAC,WAAW,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAEtE,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;QAE7B,IAAI,CAAC,IAAI,GAAG,IAAI,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,QAAQ,GAAG,IAAI,QAAQ,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;QACnD,IAAI,CAAC,UAAU,GAAG,WAAW,CAAC,UAAU,CAAC;QACzC,IAAI,CAAC,aAAa,GAAG,WAAW,CAAC,aAAa,IAAI,KAAK,CAAC;IAC1D,CAAC;IAED,IAAI;QACF,OAAO;YACL,GAAG,KAAK,CAAC,IAAI,EAAE;YACf,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,aAAa,EAAE,IAAI,CAAC,aAAa;SAClC,CAAC;IACJ,CAAC;CACF"}
@@ -1,41 +0,0 @@
1
- import { IInAction, IOutAction, PInAction, POutAction } from "../PAction";
2
- import PComponent, { DBComponent } from "../PComponent";
3
- import GameContext from "../GameContext";
4
- import PNode from "../PNode";
5
- interface DBProjectRoot extends DBComponent {
6
- outevent_onPlay: IOutAction | null;
7
- outevent_onPlaying: IOutAction | null;
8
- inevent_enableOn: IInAction | null;
9
- inevent_disableOn: IInAction | null;
10
- inevent_setLayer: IInAction | null;
11
- inevent_setBackground: IInAction | null;
12
- inevent_setCameraNear: IInAction | null;
13
- inevent_setCameraFar: IInAction | null;
14
- inevent_setCameraFov: IInAction | null;
15
- enabled: boolean;
16
- }
17
- export { type DBProjectRoot };
18
- export default abstract class PProjectRoot extends PComponent {
19
- outevent_onPlay: POutAction | null;
20
- outevent_onPlaying: POutAction | null;
21
- inevent_enableOn: PInAction | null;
22
- inevent_disableOn: PInAction | null;
23
- inevent_setLayer: PInAction | null;
24
- inevent_setBackground: PInAction | null;
25
- inevent_setCameraNear: PInAction | null;
26
- inevent_setCameraFar: PInAction | null;
27
- inevent_setCameraFov: PInAction | null;
28
- enabled: boolean;
29
- constructor(dbComponent: DBProjectRoot, node: PNode, context: GameContext);
30
- toDB(): DBProjectRoot;
31
- native_OnPlay(): void;
32
- native_OnPlaying(): void;
33
- callback_onEnable(): void;
34
- callback_onDisable(): void;
35
- callback_onSetLayer(payload: string | null): void;
36
- callback_onSetBackground(payload: string | null): void;
37
- callback_onSetCameraNear(payload: string | null): void;
38
- callback_onSetCameraFar(payload: string | null): void;
39
- callback_onSetCameraFov(payload: string | null):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S,GAAG,IAAI,CAAC;IACxC,oBAAoB,EAAE,SAAS,GAAG,IAAI,CAAC;IACvC,oBAAoB,EAAE,SAAS,GAAG,IAAI,CAAC;IAEvC,OAAO,EAAE,OAAO,CAAC;gBAEL,WAAW,EAAE,aAAa,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW;IAqEzE,IAAI,IAAI,aAAa;IAgBrB,aAAa;IAIb,gBAAgB;IAQhB,iBAAiB;IAIjB,kBAAkB;IAQlB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAU1C,wBAAwB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAU/C,wBAAwB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAK/C,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAK9C,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;CAI/C"}
@@ -1,94 +0,0 @@
1
- import { DataType } from "../PEnums";
2
- import { PInAction, POutAction } from "../PAction";
3
- import PPayload from "../PPayload";
4
- import PComponent from "../PComponent";
5
- export default class PProjectRoot extends PComponent {
6
- outevent_onPlay;
7
- outevent_onPlaying;
8
- inevent_enableOn;
9
- inevent_disableOn;
10
- inevent_setLayer;
11
- inevent_setBackground;
12
- inevent_setCameraNear;
13
- inevent_setCameraFar;
14
- inevent_setCameraFov;
15
- enabled;
16
- constructor(dbComponent, node, context) {
17
- super(dbComponent, "PProjectRoot", "Root", node, context);
18
- this.link = true;
19
- this.outevent_onPlay = node.registerOutAction(this, "On Play", dbComponent.outevent_onPlay);
20
- this.outevent_onPlaying = node.registerOutAction(this, "On Playing", dbComponent.outevent_onPlaying);
21
- this.inevent_setBackground = node.registerInAction(this, "Set Background", dbComponent.inevent_setBackground, this.callback_onSetBackground, DataType.Color);
22
- this.inevent_enableOn = node.registerInAction(this, "Enable Raycaster", dbComponent.inevent_enableOn, this.callback_onEnable);
23
- this.inevent_disableOn = node.registerInAction(this, "Disable Raycaster", dbComponent.inevent_disableOn, this.callback_onDisable);
24
- this.inevent_setLayer = node.registerInAction(this, "Set Layer", dbComponent.inevent_setLayer, this.callback_onSetLayer, DataType.Layer);
25
- this.inevent_setCameraNear = node.registerInAction(this, "Set Camera Near", dbComponent.inevent_setCameraNear, this.callback_onSetCameraFar, DataType.Number);
26
- this.inevent_setCameraFar = node.registerInAction(this, "Set Camera Far", dbComponent.inevent_setCameraFar, this.callback_onSetCameraFar, DataType.Number);
27
- this.inevent_setCameraFov = node.registerInAction(this, "Set Camera Fov", dbComponent.inevent_setCameraFov, this.callback_onSetCameraFov, DataType.Number);
28
- this.enabled = dbComponent.enabled;
29
- }
30
- toDB() {
31
- return {
32
- ...super.toDB(),
33
- outevent_onPlay: POutAction.toDB(this.outevent_onPlay),
34
- outevent_onPlaying: POutAction.toDB(this.outevent_onPlaying),
35
- inevent_enableOn: PInAction.toDB(this.inevent_enableOn),
36
- inevent_disableOn: PInAction.toDB(this.inevent_disableOn),
37
- inevent_setLayer: PInAction.toDB(this.inevent_setLayer),
38
- inevent_setCameraFar: PInAction.toDB(this.inevent_setCameraFar),
39
- inevent_setCameraNear: PInAction.toDB(this.inevent_setCameraNear),
40
- inevent_setCameraFov: PInAction.toDB(this.inevent_setCameraFov),
41
- inevent_setBackground: PInAction.toDB(this.inevent_setBackground),
42
- enabled: this.enabled,
43
- };
44
- }
45
- native_OnPlay() {
46
- this.outevent_onPlay?.emit(null);
47
- }
48
- native_OnPlaying() {
49
- this.outevent_onPlaying?.emit(null);
50
- }
51
- //
52
- // RAYCASTING
53
- //
54
- callback_onEnable() {
55
- this.context.enableInput();
56
- }
57
- callback_onDisable() {
58
- this.context.disableInput();
59
- }
60
- //
61
- // LAYERS
62
- //
63
- callback_onSetLayer(payload) {
64
- if (!payload)
65
- return;
66
- const layer = PPayload.asNumber(payload);
67
- this.context.setLayers(layer);
68
- }
69
- //
70
- // BACKGROUND
71
- //
72
- callback_onSetBackground(payload) {
73
- if (payload)
74
- this.context.getCanvas().setBackgroundColor(payload);
75
- // const value = PPayload.asNumber(payload);
76
- // this.context.getCanvas()!.setNearFar(value, -1);
77
- }
78
- //
79
- // CAMERA
80
- //
81
- callback_onSetCameraNear(payload) {
82
- const value = PPayload.asNumber(payload);
83
- this.context.getCanvas().setNearFar(value, -1);
84
- }
85
- callback_onSetCameraFar(payload) {
86
- const value = PPayload.asNumber(payload);
87
- this.context.getCanvas().setNearFar(-1, value);
88
- }
89
- callback_onSetCameraFov(payload) {
90
- const value = PPayload.asNumber(payload);
91
- this.context.getCanvas().setFOV(value);
92
- }
93
- }
94
- //# sourceMappingURL=PProjectRoot.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PProjectRoot.js","sourceRoot":"","sources":["../../src/pcomponents/PProjectRoot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAyB,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC1E,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,UAA2B,MAAM,eAAe,CAAC;AAsBxD,MAAM,CAAC,OAAO,OAAgB,YAAa,SAAQ,UAAU;IAC3D,eAAe,CAAoB;IACnC,kBAAkB,CAAoB;IACtC,gBAAgB,CAAmB;IACnC,iBAAiB,CAAmB;IACpC,gBAAgB,CAAmB;IAEnC,qBAAqB,CAAmB;IAExC,qBAAqB,CAAmB;IACxC,oBAAoB,CAAmB;IACvC,oBAAoB,CAAmB;IAEvC,OAAO,CAAU;IAEjB,YAAY,WAA0B,EAAE,IAAW,EAAE,OAAoB;QACvE,KAAK,CAAC,WAAW,EAAE,cAAc,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAE1D,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QAEjB,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,iBAAiB,CAC3C,IAAI,EACJ,SAAS,EACT,WAAW,CAAC,eAAe,CAC5B,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;IAEF,mBAAmB,CAAC,OAAsB;QACxC,IAAI,CAAC,OAAO;YAAE,OAAO;QACrB,MAAM,KAAK,GAAG,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;IAED,EAAE;IACF,cAAc;IACd,EAAE;IAEF,wBAAwB,CAAC,OAAsB;QAC7C,IAAI,OAAO;YAAE,IAAI,CAAC,OAAO,CAAC,SAAS,EAAG,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;QACnE,4CAA4C;QAC5C,mDAAmD;IACrD,CAAC;IAED,EAAE;IACF,UAAU;IACV,EAAE;IAEF,wBAAwB,CAAC,OAAsB;QAC7C,MAAM,KAAK,GAAG,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAG,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;IAClD,CAAC;IAED,uBAAuB,CAAC,OAAsB;QAC5C,MAAM,KAAK,GAAG,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAG,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;IAClD,CAAC;IAED,uBAAuB,CAAC,OAAsB;QAC5C,MAAM,KAAK,GAAG,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC1C,CAAC;CACF"}
@@ -1,32 +0,0 @@
1
- import GameContext from "../GameContext";
2
- import PComponent, { DBComponent } from "../PComponent";
3
- import PNode from "../PNode";
4
- import { IInAction, IOutAction, PInAction, POutAction } from "../PAction";
5
- import { Tween } from "@tweenjs/tween.js";
6
- interface DBRotateAnimation extends DBComponent {
7
- inevent_startOn: IInAction | null;
8
- inevent_stopOn: IInAction | null;
9
- outevent_onFinished: IOutAction | null;
10
- loop: boolean;
11
- from: number;
12
- to: number;
13
- duration: number;
14
- }
15
- export type { DBRotateAnimation };
16
- export default class PRotateAnimation extends PComponent {
17
- inevent_startOn: PInAction | null;
18
- inevent_stopOn: PInAction | null;
19
- outevent_onFinished: POutAction | null;
20
- from: number;
21
- to: number;
22
- duration: number;
23
- loop: boolean;
24
- protected _tween: Tween<any> | null;
25
- constructor(dbComponent: DBRotateAnimation, node: PNode, context: GameContext);
26
- toDB(): DBRotateAnimation;
27
- render(): void;
28
- unrender(): void;
29
- callback_start(): void;
30
- callback_stop(): void;
31
- }
32
- //# sourceMappingURL=PRotateAnimation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PRotateAnimation.d.ts","sourceRoot":"","sources":["../../src/pcomponents/PRotateAnimation.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC1E,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG1C,UAAU,iBAAkB,SAAQ,WAAW;IAC7C,eAAe,EAAE,SAAS,GAAG,IAAI,CAAC;IAClC,cAAc,EAAE,SAAS,GAAG,IAAI,CAAC;IACjC,mBAAmB,EAAE,UAAU,GAAG,IAAI,CAAC;IACvC,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,YAAY,EAAE,iBAAiB,EAAE,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,UAAU;IACtD,eAAe,EAAE,SAAS,GAAG,IAAI,CAAC;IAClC,cAAc,EAAE,SAAS,GAAG,IAAI,CAAC;IACjC,mBAAmB,EAAE,UAAU,GAAG,IAAI,CAAC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;IAEd,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,IAAI,CAAQ;gBAGzC,WAAW,EAAE,iBAAiB,EAC9B,IAAI,EAAE,KAAK,EACX,OAAO,EAAE,WAAW;IAgCtB,IAAI,IAAI,iBAAiB;IAazB,MAAM,IAAI,IAAI;IAEd,QAAQ;IAOR,cAAc;IAiCd,aAAa;CASd"}
@@ -1,81 +0,0 @@
1
- import PComponent from "../PComponent";
2
- import { PInAction, POutAction } from "../PAction";
3
- import { Tween } from "@tweenjs/tween.js";
4
- import MathTools from "../MathTools";
5
- export default class PRotateAnimation extends PComponent {
6
- inevent_startOn;
7
- inevent_stopOn;
8
- outevent_onFinished;
9
- from;
10
- to;
11
- duration;
12
- loop;
13
- _tween = null;
14
- constructor(dbComponent, node, context) {
15
- super(dbComponent, "PRotateAnimation", "Rotate Animation", node, context);
16
- this.requireTransform = true;
17
- this.inevent_startOn = node.registerInAction(this, "Start Rotation", dbComponent.inevent_startOn, this.callback_start);
18
- this.inevent_stopOn = node.registerInAction(this, "Stop Rotation", dbComponent.inevent_stopOn, this.callback_stop);
19
- this.outevent_onFinished = node.registerOutAction(this, "On Finished", dbComponent.outevent_onFinished);
20
- this.loop = dbComponent.loop;
21
- this.from = dbComponent.from;
22
- this.to = dbComponent.to;
23
- this.duration = dbComponent.duration;
24
- }
25
- toDB() {
26
- return {
27
- ...super.toDB(),
28
- inevent_startOn: PInAction.toDB(this.inevent_startOn),
29
- inevent_stopOn: PInAction.toDB(this.inevent_stopOn),
30
- outevent_onFinished: POutAction.toDB(this.outevent_onFinished),
31
- from: this.from,
32
- to: this.to,
33
- loop: this.loop,
34
- duration: this.duration,
35
- };
36
- }
37
- render() { }
38
- unrender() {
39
- if (this._tween !== null) {
40
- this._tween.stop();
41
- this._tween = null;
42
- }
43
- }
44
- callback_start() {
45
- if (!this.node.isRunning() || !this.node.hasEl()) {
46
- return;
47
- }
48
- if (this._tween !== null) {
49
- this._tween.stop();
50
- this._tween = null;
51
- }
52
- const nodeRotation = this.context
53
- .getNodeRenderer()
54
- .getRotationVector(this.node);
55
- nodeRotation.y = MathTools.degToRad(this.from);
56
- const target = {
57
- x: nodeRotation.x,
58
- y: MathTools.degToRad(this.to),
59
- z: nodeRotation.z,
60
- };
61
- this._tween = new Tween(nodeRotation)
62
- .repeat(this.loop ? Infinity : 0)
63
- .to(target, this.duration)
64
- .onComplete(() => {
65
- this._tween = null;
66
- this.outevent_onFinished?.emit(null);
67
- })
68
- .start();
69
- this.context.addTween(this._tween);
70
- }
71
- callback_stop() {
72
- if (!this.node.isRunning() || !this.node.hasEl()) {
73
- return;
74
- }
75
- if (this._tween !== null) {
76
- this._tween.stop();
77
- this._tween = null;
78
- }
79
- }
80
- }
81
- //# sourceMappingURL=PRotateAnimation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PRotateAnimation.js","sourceRoot":"","sources":["../../src/pcomponents/PRotateAnimation.ts"],"names":[],"mappings":"AACA,OAAO,UAA2B,MAAM,eAAe,CAAC;AAExD,OAAO,EAAyB,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC1E,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,SAAS,MAAM,cAAc,CAAC;AAcrC,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,UAAU;IACtD,eAAe,CAAmB;IAClC,cAAc,CAAmB;IACjC,mBAAmB,CAAoB;IACvC,IAAI,CAAS;IACb,EAAE,CAAS;IACX,QAAQ,CAAS;IACjB,IAAI,CAAU;IAEJ,MAAM,GAAsB,I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QACvC,CAAC,CAAC;aACD,KAAK,EAAE,CAAC;QACX,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;IAED,aAAa;QACX,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC;YACjD,OAAO;QACT,CAAC;QACD,IAAI,IAAI,CAAC,MAAM,KAAK,IAAI,EAAE,CAAC;YACzB,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;YACnB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACrB,CAAC;IACH,CAAC;CACF"}
@@ -1,28 +0,0 @@
1
- import GameContext from "../GameContext";
2
- import PNode from "../PNode";
3
- import { IInAction, PInAction } from "../PAction";
4
- import PComponent, { DBComponent } from "../PComponent";
5
- import { Tween } from "@tweenjs/tween.js";
6
- interface DBScaleAnimation extends DBComponent {
7
- inevent_scaleInOn: IInAction | null;
8
- inevent_scaleOutOn: IInAction | null;
9
- from: number;
10
- to: number;
11
- duration: number;
12
- }
13
- export type { DBScaleAnimation };
14
- export default class PScaleAnimation extends PComponent {
15
- inevent_scaleInOn: PInAction | null;
16
- inevent_scaleOutOn: PInAction | null;
17
- from: number;
18
- to: number;
19
- duration: number;
20
- protected _tween: Tween<any> | null;
21
- constructor(dbComponent: DBScaleAnimation, node: PNode, context: GameContext);
22
- toDB(): DBScaleAnimation;
23
- render(): void;
24
- unrender(): void;
25
- callback_scaleInOn(): void;
26
- callback_scaleOutOn(): void;
27
- }
28
- //# sourceMappingURL=PScaleAnimation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PScaleAnimation.d.ts","sourceRoot":"","sources":["../../src/pcomponents/PScaleAnimation.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,UAAU,gBAAiB,SAAQ,WAAW;IAC5C,iBAAiB,EAAE,SAAS,GAAG,IAAI,CAAC;IACpC,kBAAkB,EAAE,SAAS,GAAG,IAAI,CAAC;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;CAClB;AACD,YAAY,EAAE,gBAAgB,EAAE,CAAC;AAEjC,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,UAAU;IACrD,iBAAiB,EAAE,SAAS,GAAG,IAAI,CAAC;IACpC,kBAAkB,EAAE,SAAS,GAAG,IAAI,CAAC;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IAEjB,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,IAAI,CAAQ;gBAGzC,WAAW,EAAE,gBAAgB,EAC7B,IAAI,EAAE,KAAK,EACX,OAAO,EAAE,WAAW;IAwBtB,IAAI,IAAI,gBAAgB;IAWxB,MAAM,IAAI,IAAI;IAEd,QAAQ;IAOR,kBAAkB;IA0BlB,mBAAmB;CA0BpB"}
@@ -1,82 +0,0 @@
1
- import { PInAction } from "../PAction";
2
- import PComponent from "../PComponent";
3
- import { Tween } from "@tweenjs/tween.js";
4
- export default class PScaleAnimation extends PComponent {
5
- inevent_scaleInOn;
6
- inevent_scaleOutOn;
7
- from;
8
- to;
9
- duration;
10
- _tween = null;
11
- constructor(dbComponent, node, context) {
12
- super(dbComponent, "PScaleAnimation", "Scale Animation", node, context);
13
- this.requireTransform = true;
14
- this.inevent_scaleInOn = node.registerInAction(this, "Scale In", dbComponent.inevent_scaleInOn, this.callback_scaleInOn);
15
- this.inevent_scaleOutOn = node.registerInAction(this, "Scale Out", dbComponent.inevent_scaleOutOn, this.callback_scaleOutOn);
16
- this.from = dbComponent.from || 1.0;
17
- this.to = dbComponent.to || 1.25;
18
- this.duration = dbComponent.duration || 500;
19
- }
20
- toDB() {
21
- return {
22
- ...super.toDB(),
23
- inevent_scaleInOn: PInAction.toDB(this.inevent_scaleInOn),
24
- inevent_scaleOutOn: PInAction.toDB(this.inevent_scaleOutOn),
25
- from: this.from,
26
- to: this.to,
27
- duration: this.duration,
28
- };
29
- }
30
- render() { }
31
- unrender() {
32
- if (this._tween !== null) {
33
- this._tween.stop();
34
- this._tween = null;
35
- }
36
- }
37
- callback_scaleInOn() {
38
- if (!this.node.isRunning() || !this.node.hasEl()) {
39
- return;
40
- }
41
- if (this._tween !== null) {
42
- this._tween.stop();
43
- this._tween = null;
44
- }
45
- const target = {
46
- x: this.to,
47
- y: this.to,
48
- z: this.to,
49
- };
50
- const nodeScale = this.context.getNodeRenderer().getScaleVector(this.node);
51
- this._tween = new Tween(nodeScale)
52
- .to(target, this.duration)
53
- .onComplete(() => {
54
- this._tween = null;
55
- })
56
- .start();
57
- this.context.addTween(this._tween);
58
- }
59
- callback_scaleOutOn() {
60
- if (!this.node.isRunning() || !this.node.hasEl()) {
61
- return;
62
- }
63
- if (this._tween !== null) {
64
- this._tween.stop();
65
- this._tween = null;
66
- }
67
- const target = {
68
- x: this.from,
69
- y: this.from,
70
- z: this.from,
71
- };
72
- const nodeScale = this.context.getNodeRenderer().getScaleVector(this.node);
73
- this._tween = new Tween(nodeScale)
74
- .to(target, this.duration)
75
- .onComplete(() => {
76
- this._tween = null;
77
- })
78
- .start();
79
- this.context.addTween(this._tween);
80
- }
81
- }
82
- //# sourceMappingURL=PScaleAnimation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PScaleAnimation.js","sourceRoot":"","sources":["../../src/pcomponents/PScaleAnimation.ts"],"names":[],"mappings":"AAEA,OAAO,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AAI,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC;YACjD,OAAO;QACT,CAAC;QAED,IAAI,IAAI,CAAC,MAAM,KAAK,IAAI,EAAE,CAAC;YACzB,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;YACnB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACrB,CAAC;QAED,MAAM,MAAM,GAAG;YACb,CAAC,EAAE,IAAI,CAAC,IAAI;YACZ,CAAC,EAAE,IAAI,CAAC,IAAI;YACZ,CAAC,EAAE,IAAI,CAAC,IAAI;SACb,CAAC;QAEF,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAE3E,IAAI,CAAC,MAAM,GAAG,IAAI,KAAK,CAAC,SAAS,CAAC;aAC/B,EAAE,CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC;aACzB,UAAU,CAAC,GAAG,EAAE;YACf,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACrB,CAAC,CAAC;aACD,KAAK,EAAE,CAAC;QACX,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;CACF"}
@@ -1,22 +0,0 @@
1
- import PComponent, { DBComponent } from "../PComponent";
2
- import { IInAction, IOutAction, PInAction, POutAction } from "../PAction";
3
- import GameContext from "../GameContext";
4
- import PNode from "../PNode";
5
- interface DBSceneContainer extends DBComponent {
6
- inevent_loadScene: IInAction | null;
7
- inevent_unloadScene: IInAction | null;
8
- outevent_onSceneLoaded: IOutAction | null;
9
- }
10
- export type { DBSceneContainer };
11
- export default class PSceneContainer extends PComponent {
12
- inevent_loadScene: PInAction | null;
13
- inevent_unloadScene: PInAction | null;
14
- outevent_onSceneLoaded: POutAction | null;
15
- constructor(dbComponent: DBSceneContainer, node: PNode, context: GameContext);
16
- toDB(): DBSceneContainer;
17
- render(): void;
18
- unrender(): void;
19
- callback_loadScene(payloadValue: string | null): void;
20
- callback_unloadScene(_payloadValue: string | null): void;
21
- }
22
- //# sourceMappingURL=PSceneContainer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PSceneContainer.d.ts","sourceRoot":"","sources":["../../src/pcomponents/PSceneContainer.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE1E,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,UAAU,CAAC;AAE7B,UAAU,gBAAiB,SAAQ,WAAW;IAC5C,iBAAiB,EAAE,SAAS,GAAG,IAAI,CAAC;IACpC,mBAAmB,EAAE,SAAS,GAAG,IAAI,CAAC;IACtC,sBAAsB,EAAE,UAAU,GAAG,IAAI,CAAC;CAC3C;AAED,YAAY,EAAE,gBAAgB,EAAE,CAAC;AAEjC,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,UAAU;IACrD,iBAAiB,EAAE,SAAS,GAAG,IAAI,CAAC;IACpC,mBAAmB,EAAE,SAAS,GAAG,IAAI,CAAC;IACtC,sBAAsB,EAAE,UAAU,GAAG,IAAI,CAAC;gBAGxC,WAAW,EAAE,gBAAgB,EAC7B,IAAI,EAAE,KAAK,EACX,OAAO,EAAE,WAAW;IA8BtB,IAAI,IAAI,gBAAgB;IASxB,MAAM,IAAI,IAAI;IAEd,QAAQ,IAAI,IAAI;IAEhB,kBAAkB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI;IAyB9C,oBAAoB,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI;CAOlD"}
@@ -1,50 +0,0 @@
1
- import PComponent from "../PComponent";
2
- import { PInAction, POutAction } from "../PAction";
3
- import { DataType } from "../PEnums";
4
- export default class PSceneContainer extends PComponent {
5
- inevent_loadScene;
6
- inevent_unloadScene;
7
- outevent_onSceneLoaded;
8
- constructor(dbComponent, node, context) {
9
- super(dbComponent, "PSceneContainer", "Scene Container", node, context);
10
- this.requireTransform = true;
11
- this.inevent_loadScene = node.registerInAction(this, "Load Scene", dbComponent.inevent_loadScene, this.callback_loadScene, DataType.Scene);
12
- this.inevent_unloadScene = node.registerInAction(this, "Unload Scene", dbComponent.inevent_unloadScene, this.callback_unloadScene, DataType.None);
13
- this.outevent_onSceneLoaded = node.registerOutAction(this, "On Scene Loaded", dbComponent.outevent_onSceneLoaded, DataType.Scene);
14
- }
15
- toDB() {
16
- return {
17
- ...super.toDB(),
18
- inevent_loadScene: PInAction.toDB(this.inevent_loadScene),
19
- inevent_unloadScene: PInAction.toDB(this.inevent_unloadScene),
20
- outevent_onSceneLoaded: POutAction.toDB(this.outevent_onSceneLoaded),
21
- };
22
- }
23
- render() { }
24
- unrender() { }
25
- callback_loadScene(payloadValue) {
26
- if (!payloadValue || payloadValue === "") {
27
- this.context.error("Scene has not been set");
28
- return;
29
- }
30
- // Unload scenes
31
- const scenes = this.node.children.filter((n) => n.isSceneRoot());
32
- for (const scene of scenes) {
33
- this.context.unloadScene(scene);
34
- }
35
- const pscene = this.context.getScene(payloadValue);
36
- if (!pscene) {
37
- this.context.error("Could not find scene: " + payloadValue);
38
- return;
39
- }
40
- this.context.loadScene(pscene, this.node, true, this.outevent_onSceneLoaded);
41
- }
42
- callback_unloadScene(_payloadValue) {
43
- // Unload scenes
44
- const scenes = this.node.children.filter((n) => n.isSceneRoot());
45
- for (const scene of scenes) {
46
- this.context.unloadScene(scene);
47
- }
48
- }
49
- }
50
- //# sourceMappingURL=PSceneContainer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PSceneContainer.js","sourceRoot":"","sources":["../../src/pcomponents/PSceneContainer.ts"],"names":[],"mappings":"AAAA,OAAO,UAA2B,MAAM,eAAe,CAAC;AACxD,OAAO,EAAyB,SAAS,EAAE,UAAU,EAAE,MAAM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AI,CAAC,YAAY,IAAI,YAAY,KAAK,EAAE,EAAE,CAAC;YACzC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC;YAC7C,OAAO;QACT,CAAC;QAED,gBAAgB;QAChB,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;QACjE,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;YAC3B,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAClC,CAAC;QAED,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;QACnD,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,wBAAwB,GAAG,YAAY,CAAC,CAAC;YAC5D,OAAO;QACT,CAAC;QACD,IAAI,CAAC,OAAO,CAAC,SAAS,CACpB,MAAM,EACN,IAAI,CAAC,IAAI,EACT,IAAI,EACJ,IAAI,CAAC,sBAAsB,CAC5B,CAAC;IACJ,CAAC;IAED,oBAAoB,CAAC,aAA4B;QAC/C,gBAAgB;QAChB,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;QACjE,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;YAC3B,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAClC,CAAC;IACH,CAAC;CACF"}
@@ -1,16 +0,0 @@
1
- import { IOutAction, POutAction } from "../PAction";
2
- import GameContext from "../GameContext";
3
- import PComponent, { DBComponent } from "../PComponent";
4
- import PNode from "../PNode";
5
- interface DBSceneRoot extends DBComponent {
6
- outevent_onSceneLoaded: IOutAction | null;
7
- }
8
- export { type DBSceneRoot };
9
- export default abstract class PSceneRoot extends PComponent {
10
- outevent_onSceneLoaded: POutAction | null;
11
- constructor(dbComponent: DBSceneRoot, node: PNode, context: GameContext);
12
- toDB(): DBSceneRoot;
13
- render(): void;
14
- unrender(): void;
15
- }
16
- //# sourceMappingURL=PSceneRoot.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PSceneRoot.d.ts","sourceRoot":"","sources":["../../src/pcomponents/PSceneRoot.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,KAAK,MAAM,UAAU,CAAC;AAE7B,UAAU,WAAY,SAAQ,WAAW;IACvC,sBAAsB,EAAE,UAAU,GAAG,IAAI,CAAC;CAC3C;AACD,OAAO,EAAE,KAAK,WAAW,EAAE,CAAC;AAE5B,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,UAAW,SAAQ,UAAU;IACzD,sBAAsB,EAAE,UAAU,GAAG,IAAI,CAAC;gBAE9B,WAAW,EAAE,WAAW,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW;IAcvE,IAAI,IAAI,WAAW;IAOnB,MAAM,IAAI,IAAI;IAEd,QAAQ,IAAI,IAAI;CACjB"}
@@ -1,21 +0,0 @@
1
- import { DataType } from "../PEnums";
2
- import { POutAction } from "../PAction";
3
- import PComponent from "../PComponent";
4
- export default class PSceneRoot extends PComponent {
5
- outevent_onSceneLoaded;
6
- constructor(dbComponent, node, context) {
7
- super(dbComponent, "PSceneRoot", "Scene", node, context);
8
- this.requireTransform = true;
9
- this.sceneRoot = true;
10
- this.outevent_onSceneLoaded = node.registerOutAction(this, "On Scene Loaded", dbComponent.outevent_onSceneLoaded, DataType.Scene);
11
- }
12
- toDB() {
13
- return {
14
- ...super.toDB(),
15
- outevent_onSceneLoaded: POutAction.toDB(this.outevent_onSceneLoaded),
16
- };
17
- }
18
- render() { }
19
- unrender() { }
20
- }
21
- //# sourceMappingURL=PSceneRoot.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PSceneRoot.js","sourceRoot":"","sources":["../../src/pcomponents/PSceneRoot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAc,UAAU,EAAE,MAAM,YAAY,CAAC;AAEpD,OAAO,UAA2B,MAAM,eAAe,CAAC;AAQxD,MAAM,CAAC,OAAO,OAAgB,UAAW,SAAQ,UAAU;IACzD,sBAAsB,CAAoB;IAE1C,YAAY,WAAwB,EAAE,IAAW,EAAE,OAAoB;QACrE,KAAK,CAAC,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAEzD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;QAC7B,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QAEtB,IAAI,CAAC,sBAAsB,GAAG,IAAI,CAAC,iBAAiB,CAClD,IAAI,EACJ,iBAAiB,EACjB,WAAW,CAAC,sBAAsB,EAClC,QAAQ,CAAC,KAAK,CACf,CAAC;IACJ,CAAC;IAED,IAAI;QACF,OAAO;YACL,GAAG,KAAK,CAAC,IAAI,EAAE;YACf,sBAAsB,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,sBAAsB,CAAC;SACrE,CAAC;IACJ,CAAC;IAED,MAAM,KAAU,CAAC;IAEjB,QAAQ,KAAU,CAAC;CACpB"}