@p100-web/core 100.0.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (349) hide show
  1. package/dist/index.d.ts +136 -0
  2. package/dist/index.d.ts.map +1 -0
  3. package/dist/index.js +101 -0
  4. package/dist/index.js.map +1 -0
  5. package/dist/src/AdaptivePerformance.d.ts +20 -0
  6. package/dist/src/AdaptivePerformance.d.ts.map +1 -0
  7. package/dist/src/AdaptivePerformance.js +110 -0
  8. package/dist/src/AdaptivePerformance.js.map +1 -0
  9. package/dist/src/DBEvent.d.ts +22 -0
  10. package/dist/src/DBEvent.d.ts.map +1 -0
  11. package/dist/src/DBEvent.js +19 -0
  12. package/dist/src/DBEvent.js.map +1 -0
  13. package/dist/src/DBNode.d.ts +33 -0
  14. package/dist/src/DBNode.d.ts.map +1 -0
  15. package/dist/src/DBNode.js +31 -0
  16. package/dist/src/DBNode.js.map +1 -0
  17. package/dist/src/DBScene.d.ts +11 -0
  18. package/dist/src/DBScene.d.ts.map +1 -0
  19. package/dist/src/DBScene.js +9 -0
  20. package/dist/src/DBScene.js.map +1 -0
  21. package/dist/src/DBVariable.d.ts +22 -0
  22. package/dist/src/DBVariable.d.ts.map +1 -0
  23. package/dist/src/DBVariable.js +19 -0
  24. package/dist/src/DBVariable.js.map +1 -0
  25. package/dist/src/DevTools.d.ts +4 -0
  26. package/dist/src/DevTools.d.ts.map +1 -0
  27. package/dist/src/DevTools.js +10 -0
  28. package/dist/src/DevTools.js.map +1 -0
  29. package/dist/src/GameContext.d.ts +179 -0
  30. package/dist/src/GameContext.d.ts.map +1 -0
  31. package/dist/src/GameContext.js +594 -0
  32. package/dist/src/GameContext.js.map +1 -0
  33. package/dist/src/IAudioListener.d.ts +4 -0
  34. package/dist/src/IAudioListener.d.ts.map +1 -0
  35. package/dist/src/IAudioListener.js +2 -0
  36. package/dist/src/IAudioListener.js.map +1 -0
  37. package/dist/src/ICameraControls.d.ts +14 -0
  38. package/dist/src/ICameraControls.d.ts.map +1 -0
  39. package/dist/src/ICameraControls.js +2 -0
  40. package/dist/src/ICameraControls.js.map +1 -0
  41. package/dist/src/ICameraNode.d.ts +6 -0
  42. package/dist/src/ICameraNode.d.ts.map +1 -0
  43. package/dist/src/ICameraNode.js +2 -0
  44. package/dist/src/ICameraNode.js.map +1 -0
  45. package/dist/src/IComponentFactory.d.ts +8 -0
  46. package/dist/src/IComponentFactory.d.ts.map +1 -0
  47. package/dist/src/IComponentFactory.js +2 -0
  48. package/dist/src/IComponentFactory.js.map +1 -0
  49. package/dist/src/IEngine.d.ts +26 -0
  50. package/dist/src/IEngine.d.ts.map +1 -0
  51. package/dist/src/IEngine.js +2 -0
  52. package/dist/src/IEngine.js.map +1 -0
  53. package/dist/src/IMaterial.d.ts +5 -0
  54. package/dist/src/IMaterial.d.ts.map +1 -0
  55. package/dist/src/IMaterial.js +2 -0
  56. package/dist/src/IMaterial.js.map +1 -0
  57. package/dist/src/IPCanvas.d.ts +45 -0
  58. package/dist/src/IPCanvas.d.ts.map +1 -0
  59. package/dist/src/IPCanvas.js +2 -0
  60. package/dist/src/IPCanvas.js.map +1 -0
  61. package/dist/src/IPNodeRenderer.d.ts +23 -0
  62. package/dist/src/IPNodeRenderer.d.ts.map +1 -0
  63. package/dist/src/IPNodeRenderer.js +2 -0
  64. package/dist/src/IPNodeRenderer.js.map +1 -0
  65. package/dist/src/IStats.d.ts +9 -0
  66. package/dist/src/IStats.d.ts.map +1 -0
  67. package/dist/src/IStats.js +3 -0
  68. package/dist/src/IStats.js.map +1 -0
  69. package/dist/src/MathTools.d.ts +4 -0
  70. package/dist/src/MathTools.d.ts.map +1 -0
  71. package/dist/src/MathTools.js +7 -0
  72. package/dist/src/MathTools.js.map +1 -0
  73. package/dist/src/PAction.d.ts +64 -0
  74. package/dist/src/PAction.d.ts.map +1 -0
  75. package/dist/src/PAction.js +209 -0
  76. package/dist/src/PAction.js.map +1 -0
  77. package/dist/src/PComponent.d.ts +60 -0
  78. package/dist/src/PComponent.d.ts.map +1 -0
  79. package/dist/src/PComponent.js +44 -0
  80. package/dist/src/PComponent.js.map +1 -0
  81. package/dist/src/PEnums.d.ts +98 -0
  82. package/dist/src/PEnums.d.ts.map +1 -0
  83. package/dist/src/PEnums.js +110 -0
  84. package/dist/src/PEnums.js.map +1 -0
  85. package/dist/src/PEvent.d.ts +27 -0
  86. package/dist/src/PEvent.d.ts.map +1 -0
  87. package/dist/src/PEvent.js +40 -0
  88. package/dist/src/PEvent.js.map +1 -0
  89. package/dist/src/PNode.d.ts +111 -0
  90. package/dist/src/PNode.d.ts.map +1 -0
  91. package/dist/src/PNode.js +488 -0
  92. package/dist/src/PNode.js.map +1 -0
  93. package/dist/src/PPayload.d.ts +7 -0
  94. package/dist/src/PPayload.d.ts.map +1 -0
  95. package/dist/src/PPayload.js +19 -0
  96. package/dist/src/PPayload.js.map +1 -0
  97. package/dist/src/PTypes.d.ts +140 -0
  98. package/dist/src/PTypes.d.ts.map +1 -0
  99. package/dist/src/PTypes.js +2 -0
  100. package/dist/src/PTypes.js.map +1 -0
  101. package/dist/src/PVariable.d.ts +29 -0
  102. package/dist/src/PVariable.d.ts.map +1 -0
  103. package/dist/src/PVariable.js +51 -0
  104. package/dist/src/PVariable.js.map +1 -0
  105. package/dist/src/PVector2.d.ts +14 -0
  106. package/dist/src/PVector2.d.ts.map +1 -0
  107. package/dist/src/PVector2.js +25 -0
  108. package/dist/src/PVector2.js.map +1 -0
  109. package/dist/src/PVector3.d.ts +17 -0
  110. package/dist/src/PVector3.d.ts.map +1 -0
  111. package/dist/src/PVector3.js +36 -0
  112. package/dist/src/PVector3.js.map +1 -0
  113. package/dist/src/animations/IAnimationAction.d.ts +9 -0
  114. package/dist/src/animations/IAnimationAction.d.ts.map +1 -0
  115. package/dist/src/animations/IAnimationAction.js +2 -0
  116. package/dist/src/animations/IAnimationAction.js.map +1 -0
  117. package/dist/src/animations/IAnimationClip.d.ts +5 -0
  118. package/dist/src/animations/IAnimationClip.d.ts.map +1 -0
  119. package/dist/src/animations/IAnimationClip.js +2 -0
  120. package/dist/src/animations/IAnimationClip.js.map +1 -0
  121. package/dist/src/animations/IAnimationMixer.d.ts +7 -0
  122. package/dist/src/animations/IAnimationMixer.d.ts.map +1 -0
  123. package/dist/src/animations/IAnimationMixer.js +2 -0
  124. package/dist/src/animations/IAnimationMixer.js.map +1 -0
  125. package/dist/src/media/IMediaLoader.d.ts +31 -0
  126. package/dist/src/media/IMediaLoader.d.ts.map +1 -0
  127. package/dist/src/media/IMediaLoader.js +2 -0
  128. package/dist/src/media/IMediaLoader.js.map +1 -0
  129. package/dist/src/media/MediaManager.d.ts +17 -0
  130. package/dist/src/media/MediaManager.d.ts.map +1 -0
  131. package/dist/src/media/MediaManager.js +19 -0
  132. package/dist/src/media/MediaManager.js.map +1 -0
  133. package/dist/src/media/PFile.d.ts +13 -0
  134. package/dist/src/media/PFile.d.ts.map +1 -0
  135. package/dist/src/media/PFile.js +28 -0
  136. package/dist/src/media/PFile.js.map +1 -0
  137. package/dist/src/pcomponents/BaseBackground.d.ts +27 -0
  138. package/dist/src/pcomponents/BaseBackground.d.ts.map +1 -0
  139. package/dist/src/pcomponents/BaseBackground.js +21 -0
  140. package/dist/src/pcomponents/BaseBackground.js.map +1 -0
  141. package/dist/src/pcomponents/BaseMaterial.d.ts +45 -0
  142. package/dist/src/pcomponents/BaseMaterial.d.ts.map +1 -0
  143. package/dist/src/pcomponents/BaseMaterial.js +47 -0
  144. package/dist/src/pcomponents/BaseMaterial.js.map +1 -0
  145. package/dist/src/pcomponents/PAnimator.d.ts +37 -0
  146. package/dist/src/pcomponents/PAnimator.d.ts.map +1 -0
  147. package/dist/src/pcomponents/PAnimator.js +43 -0
  148. package/dist/src/pcomponents/PAnimator.js.map +1 -0
  149. package/dist/src/pcomponents/PBasicMaterial.d.ts +23 -0
  150. package/dist/src/pcomponents/PBasicMaterial.d.ts.map +1 -0
  151. package/dist/src/pcomponents/PBasicMaterial.js +38 -0
  152. package/dist/src/pcomponents/PBasicMaterial.js.map +1 -0
  153. package/dist/src/pcomponents/PCallAction.d.ts +19 -0
  154. package/dist/src/pcomponents/PCallAction.d.ts.map +1 -0
  155. package/dist/src/pcomponents/PCallAction.js +25 -0
  156. package/dist/src/pcomponents/PCallAction.js.map +1 -0
  157. package/dist/src/pcomponents/PCallActions.d.ts +24 -0
  158. package/dist/src/pcomponents/PCallActions.d.ts.map +1 -0
  159. package/dist/src/pcomponents/PCallActions.js +38 -0
  160. package/dist/src/pcomponents/PCallActions.js.map +1 -0
  161. package/dist/src/pcomponents/PCameraPosition.d.ts +29 -0
  162. package/dist/src/pcomponents/PCameraPosition.d.ts.map +1 -0
  163. package/dist/src/pcomponents/PCameraPosition.js +76 -0
  164. package/dist/src/pcomponents/PCameraPosition.js.map +1 -0
  165. package/dist/src/pcomponents/PCameraTarget.d.ts +29 -0
  166. package/dist/src/pcomponents/PCameraTarget.d.ts.map +1 -0
  167. package/dist/src/pcomponents/PCameraTarget.js +77 -0
  168. package/dist/src/pcomponents/PCameraTarget.js.map +1 -0
  169. package/dist/src/pcomponents/PCollider.d.ts +39 -0
  170. package/dist/src/pcomponents/PCollider.d.ts.map +1 -0
  171. package/dist/src/pcomponents/PCollider.js +56 -0
  172. package/dist/src/pcomponents/PCollider.js.map +1 -0
  173. package/dist/src/pcomponents/PCompareBoolean.d.ts +23 -0
  174. package/dist/src/pcomponents/PCompareBoolean.d.ts.map +1 -0
  175. package/dist/src/pcomponents/PCompareBoolean.js +39 -0
  176. package/dist/src/pcomponents/PCompareBoolean.js.map +1 -0
  177. package/dist/src/pcomponents/PCompareNumber.d.ts +25 -0
  178. package/dist/src/pcomponents/PCompareNumber.d.ts.map +1 -0
  179. package/dist/src/pcomponents/PCompareNumber.js +45 -0
  180. package/dist/src/pcomponents/PCompareNumber.js.map +1 -0
  181. package/dist/src/pcomponents/PCompareString.d.ts +25 -0
  182. package/dist/src/pcomponents/PCompareString.d.ts.map +1 -0
  183. package/dist/src/pcomponents/PCompareString.js +43 -0
  184. package/dist/src/pcomponents/PCompareString.js.map +1 -0
  185. package/dist/src/pcomponents/PCompareVariable.d.ts +28 -0
  186. package/dist/src/pcomponents/PCompareVariable.d.ts.map +1 -0
  187. package/dist/src/pcomponents/PCompareVariable.js +51 -0
  188. package/dist/src/pcomponents/PCompareVariable.js.map +1 -0
  189. package/dist/src/pcomponents/PControllerInput.d.ts +30 -0
  190. package/dist/src/pcomponents/PControllerInput.d.ts.map +1 -0
  191. package/dist/src/pcomponents/PControllerInput.js +42 -0
  192. package/dist/src/pcomponents/PControllerInput.js.map +1 -0
  193. package/dist/src/pcomponents/PCubeGeometry.d.ts +18 -0
  194. package/dist/src/pcomponents/PCubeGeometry.d.ts.map +1 -0
  195. package/dist/src/pcomponents/PCubeGeometry.js +22 -0
  196. package/dist/src/pcomponents/PCubeGeometry.js.map +1 -0
  197. package/dist/src/pcomponents/PDebug.d.ts +21 -0
  198. package/dist/src/pcomponents/PDebug.d.ts.map +1 -0
  199. package/dist/src/pcomponents/PDebug.js +31 -0
  200. package/dist/src/pcomponents/PDebug.js.map +1 -0
  201. package/dist/src/pcomponents/PEnvironment.d.ts +28 -0
  202. package/dist/src/pcomponents/PEnvironment.d.ts.map +1 -0
  203. package/dist/src/pcomponents/PEnvironment.js +44 -0
  204. package/dist/src/pcomponents/PEnvironment.js.map +1 -0
  205. package/dist/src/pcomponents/PFadeAnimation.d.ts +30 -0
  206. package/dist/src/pcomponents/PFadeAnimation.d.ts.map +1 -0
  207. package/dist/src/pcomponents/PFadeAnimation.js +94 -0
  208. package/dist/src/pcomponents/PFadeAnimation.js.map +1 -0
  209. package/dist/src/pcomponents/PHud.d.ts +12 -0
  210. package/dist/src/pcomponents/PHud.d.ts.map +1 -0
  211. package/dist/src/pcomponents/PHud.js +12 -0
  212. package/dist/src/pcomponents/PHud.js.map +1 -0
  213. package/dist/src/pcomponents/PImageBackground.d.ts +13 -0
  214. package/dist/src/pcomponents/PImageBackground.d.ts.map +1 -0
  215. package/dist/src/pcomponents/PImageBackground.js +18 -0
  216. package/dist/src/pcomponents/PImageBackground.js.map +1 -0
  217. package/dist/src/pcomponents/PImageCache.d.ts +22 -0
  218. package/dist/src/pcomponents/PImageCache.d.ts.map +1 -0
  219. package/dist/src/pcomponents/PImageCache.js +69 -0
  220. package/dist/src/pcomponents/PImageCache.js.map +1 -0
  221. package/dist/src/pcomponents/PImageDetector.d.ts +28 -0
  222. package/dist/src/pcomponents/PImageDetector.d.ts.map +1 -0
  223. package/dist/src/pcomponents/PImageDetector.js +38 -0
  224. package/dist/src/pcomponents/PImageDetector.js.map +1 -0
  225. package/dist/src/pcomponents/PLight.d.ts +15 -0
  226. package/dist/src/pcomponents/PLight.d.ts.map +1 -0
  227. package/dist/src/pcomponents/PLight.js +18 -0
  228. package/dist/src/pcomponents/PLight.js.map +1 -0
  229. package/dist/src/pcomponents/PLightDirectional.d.ts +19 -0
  230. package/dist/src/pcomponents/PLightDirectional.d.ts.map +1 -0
  231. package/dist/src/pcomponents/PLightDirectional.js +24 -0
  232. package/dist/src/pcomponents/PLightDirectional.js.map +1 -0
  233. package/dist/src/pcomponents/PMaskedMaterial.d.ts +20 -0
  234. package/dist/src/pcomponents/PMaskedMaterial.d.ts.map +1 -0
  235. package/dist/src/pcomponents/PMaskedMaterial.js +35 -0
  236. package/dist/src/pcomponents/PMaskedMaterial.js.map +1 -0
  237. package/dist/src/pcomponents/PModelGLTF.d.ts +33 -0
  238. package/dist/src/pcomponents/PModelGLTF.d.ts.map +1 -0
  239. package/dist/src/pcomponents/PModelGLTF.js +53 -0
  240. package/dist/src/pcomponents/PModelGLTF.js.map +1 -0
  241. package/dist/src/pcomponents/PMoveAnimation.d.ts +22 -0
  242. package/dist/src/pcomponents/PMoveAnimation.d.ts.map +1 -0
  243. package/dist/src/pcomponents/PMoveAnimation.js +44 -0
  244. package/dist/src/pcomponents/PMoveAnimation.js.map +1 -0
  245. package/dist/src/pcomponents/PMoveToAnimation.d.ts +26 -0
  246. package/dist/src/pcomponents/PMoveToAnimation.d.ts.map +1 -0
  247. package/dist/src/pcomponents/PMoveToAnimation.js +79 -0
  248. package/dist/src/pcomponents/PMoveToAnimation.js.map +1 -0
  249. package/dist/src/pcomponents/PPhysicalMaterial.d.ts +27 -0
  250. package/dist/src/pcomponents/PPhysicalMaterial.d.ts.map +1 -0
  251. package/dist/src/pcomponents/PPhysicalMaterial.js +41 -0
  252. package/dist/src/pcomponents/PPhysicalMaterial.js.map +1 -0
  253. package/dist/src/pcomponents/PPlaneDetector.d.ts +20 -0
  254. package/dist/src/pcomponents/PPlaneDetector.d.ts.map +1 -0
  255. package/dist/src/pcomponents/PPlaneDetector.js +26 -0
  256. package/dist/src/pcomponents/PPlaneDetector.js.map +1 -0
  257. package/dist/src/pcomponents/PPlaneGeometry.d.ts +20 -0
  258. package/dist/src/pcomponents/PPlaneGeometry.d.ts.map +1 -0
  259. package/dist/src/pcomponents/PPlaneGeometry.js +25 -0
  260. package/dist/src/pcomponents/PPlaneGeometry.js.map +1 -0
  261. package/dist/src/pcomponents/PProjectRoot.d.ts +38 -0
  262. package/dist/src/pcomponents/PProjectRoot.d.ts.map +1 -0
  263. package/dist/src/pcomponents/PProjectRoot.js +82 -0
  264. package/dist/src/pcomponents/PProjectRoot.js.map +1 -0
  265. package/dist/src/pcomponents/PRotateAnimation.d.ts +30 -0
  266. package/dist/src/pcomponents/PRotateAnimation.d.ts.map +1 -0
  267. package/dist/src/pcomponents/PRotateAnimation.js +72 -0
  268. package/dist/src/pcomponents/PRotateAnimation.js.map +1 -0
  269. package/dist/src/pcomponents/PScaleAnimation.d.ts +28 -0
  270. package/dist/src/pcomponents/PScaleAnimation.d.ts.map +1 -0
  271. package/dist/src/pcomponents/PScaleAnimation.js +75 -0
  272. package/dist/src/pcomponents/PScaleAnimation.js.map +1 -0
  273. package/dist/src/pcomponents/PSceneContainer.d.ts +22 -0
  274. package/dist/src/pcomponents/PSceneContainer.d.ts.map +1 -0
  275. package/dist/src/pcomponents/PSceneContainer.js +50 -0
  276. package/dist/src/pcomponents/PSceneContainer.js.map +1 -0
  277. package/dist/src/pcomponents/PSceneRoot.d.ts +16 -0
  278. package/dist/src/pcomponents/PSceneRoot.d.ts.map +1 -0
  279. package/dist/src/pcomponents/PSceneRoot.js +22 -0
  280. package/dist/src/pcomponents/PSceneRoot.js.map +1 -0
  281. package/dist/src/pcomponents/PSlider.d.ts +28 -0
  282. package/dist/src/pcomponents/PSlider.d.ts.map +1 -0
  283. package/dist/src/pcomponents/PSlider.js +37 -0
  284. package/dist/src/pcomponents/PSlider.js.map +1 -0
  285. package/dist/src/pcomponents/PSound.d.ts +34 -0
  286. package/dist/src/pcomponents/PSound.d.ts.map +1 -0
  287. package/dist/src/pcomponents/PSound.js +44 -0
  288. package/dist/src/pcomponents/PSound.js.map +1 -0
  289. package/dist/src/pcomponents/PSphereGeometry.d.ts +19 -0
  290. package/dist/src/pcomponents/PSphereGeometry.d.ts.map +1 -0
  291. package/dist/src/pcomponents/PSphereGeometry.js +24 -0
  292. package/dist/src/pcomponents/PSphereGeometry.js.map +1 -0
  293. package/dist/src/pcomponents/PSprite.d.ts +19 -0
  294. package/dist/src/pcomponents/PSprite.d.ts.map +1 -0
  295. package/dist/src/pcomponents/PSprite.js +26 -0
  296. package/dist/src/pcomponents/PSprite.js.map +1 -0
  297. package/dist/src/pcomponents/PSpriteAnimation.d.ts +25 -0
  298. package/dist/src/pcomponents/PSpriteAnimation.d.ts.map +1 -0
  299. package/dist/src/pcomponents/PSpriteAnimation.js +29 -0
  300. package/dist/src/pcomponents/PSpriteAnimation.js.map +1 -0
  301. package/dist/src/pcomponents/PText.d.ts +35 -0
  302. package/dist/src/pcomponents/PText.d.ts.map +1 -0
  303. package/dist/src/pcomponents/PText.js +48 -0
  304. package/dist/src/pcomponents/PText.js.map +1 -0
  305. package/dist/src/pcomponents/PTransform.d.ts +22 -0
  306. package/dist/src/pcomponents/PTransform.d.ts.map +1 -0
  307. package/dist/src/pcomponents/PTransform.js +37 -0
  308. package/dist/src/pcomponents/PTransform.js.map +1 -0
  309. package/dist/src/pcomponents/PVarList.d.ts +26 -0
  310. package/dist/src/pcomponents/PVarList.d.ts.map +1 -0
  311. package/dist/src/pcomponents/PVarList.js +52 -0
  312. package/dist/src/pcomponents/PVarList.js.map +1 -0
  313. package/dist/src/pcomponents/PVarReader.d.ts +19 -0
  314. package/dist/src/pcomponents/PVarReader.d.ts.map +1 -0
  315. package/dist/src/pcomponents/PVarReader.js +26 -0
  316. package/dist/src/pcomponents/PVarReader.js.map +1 -0
  317. package/dist/src/pcomponents/PVarWriter.d.ts +25 -0
  318. package/dist/src/pcomponents/PVarWriter.d.ts.map +1 -0
  319. package/dist/src/pcomponents/PVarWriter.js +46 -0
  320. package/dist/src/pcomponents/PVarWriter.js.map +1 -0
  321. package/dist/src/pcomponents/PVideoBackground.d.ts +36 -0
  322. package/dist/src/pcomponents/PVideoBackground.d.ts.map +1 -0
  323. package/dist/src/pcomponents/PVideoBackground.js +89 -0
  324. package/dist/src/pcomponents/PVideoBackground.js.map +1 -0
  325. package/dist/src/pcomponents/PVideoMaterial.d.ts +26 -0
  326. package/dist/src/pcomponents/PVideoMaterial.d.ts.map +1 -0
  327. package/dist/src/pcomponents/PVideoMaterial.js +40 -0
  328. package/dist/src/pcomponents/PVideoMaterial.js.map +1 -0
  329. package/dist/src/pcomponents/PVideoPlayer.d.ts +31 -0
  330. package/dist/src/pcomponents/PVideoPlayer.d.ts.map +1 -0
  331. package/dist/src/pcomponents/PVideoPlayer.js +70 -0
  332. package/dist/src/pcomponents/PVideoPlayer.js.map +1 -0
  333. package/dist/src/pcomponents/PVisibility.d.ts +33 -0
  334. package/dist/src/pcomponents/PVisibility.d.ts.map +1 -0
  335. package/dist/src/pcomponents/PVisibility.js +62 -0
  336. package/dist/src/pcomponents/PVisibility.js.map +1 -0
  337. package/dist/src/pcomponents/PXRTools.d.ts +32 -0
  338. package/dist/src/pcomponents/PXRTools.d.ts.map +1 -0
  339. package/dist/src/pcomponents/PXRTools.js +45 -0
  340. package/dist/src/pcomponents/PXRTools.js.map +1 -0
  341. package/dist/src/settings/Settings_Base.d.ts +7 -0
  342. package/dist/src/settings/Settings_Base.d.ts.map +1 -0
  343. package/dist/src/settings/Settings_Base.js +18 -0
  344. package/dist/src/settings/Settings_Base.js.map +1 -0
  345. package/dist/src/settings/Settings_Threejs.d.ts +9 -0
  346. package/dist/src/settings/Settings_Threejs.d.ts.map +1 -0
  347. package/dist/src/settings/Settings_Threejs.js +172 -0
  348. package/dist/src/settings/Settings_Threejs.js.map +1 -0
  349. package/package.json +23 -0
@@ -0,0 +1,488 @@
1
+ import { PInAction, POutAction, } from "./PAction";
2
+ import { ActionType, DataType, Language, PayloadSource, Platform, PProperties, } from "./PEnums";
3
+ export default class PNode {
4
+ // Runtime state
5
+ _enabled = false;
6
+ _rendered = false;
7
+ _running = false;
8
+ _disposed = false;
9
+ // If this node's is set to be visible
10
+ _visible = false;
11
+ // _inVariables: PInVariable[] = [];
12
+ // _outVariables: POutVariable[] = [];
13
+ _inActions = [];
14
+ _outActions = [];
15
+ // Database fields
16
+ id;
17
+ sceneId;
18
+ projectId;
19
+ blueprintId;
20
+ name;
21
+ parentId;
22
+ visible;
23
+ components;
24
+ layer;
25
+ // Renderer
26
+ renderer;
27
+ // Editor fields
28
+ editor_visible;
29
+ // Runtime fields
30
+ parent = null;
31
+ children = [];
32
+ _el = null;
33
+ context;
34
+ _properties = PProperties.None;
35
+ _abstract = false;
36
+ _platforms = Platform.All;
37
+ _languages = Language.All;
38
+ _nodeLink = false;
39
+ // Shortcuts
40
+ transform = null;
41
+ collider = null;
42
+ material = null;
43
+ //
44
+ // CONSTRUCTION & DESTRUCTION
45
+ //
46
+ constructor(dbItem, context, renderer) {
47
+ this.id = dbItem._id;
48
+ this.projectId = dbItem._project;
49
+ this.sceneId = dbItem._scene;
50
+ this.parentId = dbItem._parent;
51
+ this.blueprintId = dbItem._blueprint;
52
+ this.name = dbItem.name;
53
+ this.visible = dbItem.visible;
54
+ this.editor_visible = dbItem.editor_visible;
55
+ this.context = context;
56
+ this._platforms = dbItem.platform === 0 ? Platform.All : dbItem.platform;
57
+ this._languages = dbItem.language === 0 ? Language.All : dbItem.language;
58
+ this.layer = dbItem.layer;
59
+ // Visible is true by default
60
+ this._visible = this.context.editor ? this.editor_visible : this.visible;
61
+ this.renderer = renderer;
62
+ // Components
63
+ this.components = context.createComponents(this, dbItem.components);
64
+ }
65
+ //
66
+ // EL
67
+ //
68
+ hasEl() {
69
+ return this._el !== null;
70
+ }
71
+ getEl() {
72
+ return this._el;
73
+ }
74
+ //
75
+ // TYPES
76
+ //
77
+ isAbstract() {
78
+ return this._abstract;
79
+ }
80
+ updateByComponent() {
81
+ this._properties = 0;
82
+ this._abstract = true;
83
+ for (const component of this.components) {
84
+ if (component === null)
85
+ continue;
86
+ this._abstract = this._abstract && component.abstract;
87
+ if (component.properties !== 0) {
88
+ this._properties = this._properties | component.properties;
89
+ }
90
+ }
91
+ }
92
+ updateAbstract() {
93
+ // Root is never abstract
94
+ if (this.parent === null)
95
+ this._abstract = false;
96
+ else if (this._abstract === false) {
97
+ let parent = this.parent;
98
+ while (parent.isAbstract()) {
99
+ parent._abstract = false;
100
+ if (parent.parent === null)
101
+ break;
102
+ parent = parent.parent;
103
+ }
104
+ }
105
+ for (const kid of this.children) {
106
+ kid.updateAbstract();
107
+ }
108
+ }
109
+ hasProperty(value) {
110
+ return (this._properties & value) > 0;
111
+ }
112
+ //
113
+ // LIFE CYCLE
114
+ //
115
+ isEnabled() {
116
+ return this._enabled;
117
+ }
118
+ isRendered() {
119
+ return this._rendered;
120
+ }
121
+ isRunning() {
122
+ return this._running;
123
+ }
124
+ enable() {
125
+ this._enabled = true;
126
+ for (const outAction of this._outActions) {
127
+ if (outAction.actionType === ActionType.LocalEvent) {
128
+ outAction.update_local_event(this.context);
129
+ }
130
+ }
131
+ this.render();
132
+ for (const child of this.children) {
133
+ if (child.hasValidPlatform()) {
134
+ child.enable();
135
+ }
136
+ }
137
+ }
138
+ disable() {
139
+ if (!this._enabled) {
140
+ return;
141
+ }
142
+ this._enabled = false;
143
+ if (this._running) {
144
+ this.context.error("You need to stop first");
145
+ }
146
+ if (this._rendered) {
147
+ this.unrender();
148
+ }
149
+ for (const child of this.children) {
150
+ child.disable();
151
+ }
152
+ }
153
+ /**
154
+ * Create the Object3D object.
155
+ */
156
+ render() {
157
+ this._rendered = true;
158
+ for (const component of this.components) {
159
+ // This might set this.el
160
+ component.render();
161
+ component.rendered = true;
162
+ }
163
+ if (!this._nodeLink) {
164
+ if (!this.hasEl() && !this.isAbstract()) {
165
+ this.set_default_el();
166
+ }
167
+ if (this.hasEl()) {
168
+ this.renderer.render(this);
169
+ }
170
+ }
171
+ }
172
+ /**
173
+ * Destroys the node and its components, it will not remove the PNode.
174
+ */
175
+ unrender() {
176
+ this._rendered = false;
177
+ for (const component of this.components) {
178
+ if (component.rendered) {
179
+ component.unrender();
180
+ component.rendered = false;
181
+ }
182
+ }
183
+ // Components and child classes are in charge of destroying the Object3D
184
+ if (this.hasEl()) {
185
+ if (!this._nodeLink) {
186
+ this.renderer.unrender(this);
187
+ }
188
+ this._el = null;
189
+ }
190
+ }
191
+ dispose(recursive = true) {
192
+ if (this._disposed)
193
+ return;
194
+ this._disposed = true;
195
+ if (recursive) {
196
+ for (const child of this.children) {
197
+ child.dispose();
198
+ }
199
+ }
200
+ for (const component of this.components) {
201
+ component.dispose();
202
+ }
203
+ this.removeFromParent();
204
+ }
205
+ /**
206
+ * Called when we have both an el and a transform
207
+ */
208
+ updateElTransform() {
209
+ this.renderer.updateElTransform(this);
210
+ }
211
+ set_transform(transform) {
212
+ this.transform = transform;
213
+ if (this.hasEl()) {
214
+ this.updateElTransform();
215
+ }
216
+ }
217
+ set_default_el() {
218
+ this.renderer.set_default_el(this);
219
+ }
220
+ /**
221
+ * If nodeLink, this PNode is not in charge of adding and removing the node
222
+ */
223
+ set_el(node, nodeLink) {
224
+ this._nodeLink = nodeLink;
225
+ if (this.parent !== null && !this.parent.hasEl()) {
226
+ this.context.error("No parent");
227
+ console.log(this);
228
+ return;
229
+ }
230
+ if (this.hasEl()) {
231
+ this.context.error("PNode had .el");
232
+ }
233
+ this._el = node;
234
+ if (this.transform !== null) {
235
+ this.updateElTransform();
236
+ }
237
+ if (!nodeLink && this.parent !== null && this.parent.hasEl()) {
238
+ this.renderer.addToParent(this);
239
+ }
240
+ }
241
+ //
242
+ // LAYERS & VISIBILITY
243
+ //
244
+ isVisible() {
245
+ return (this._visible &&
246
+ (this.layer & this.context.mask()) > 0 &&
247
+ (this.parent === null || this.parent.isVisible()));
248
+ }
249
+ /**
250
+ * Called by eg components when we want to change the visiblity of this node.
251
+ */
252
+ setVisible(value) {
253
+ this._visible = value;
254
+ this.update();
255
+ }
256
+ hide() {
257
+ if (this.hasEl()) {
258
+ this.renderer.hide(this);
259
+ }
260
+ this.collider?.getColliderObject()?.hide();
261
+ }
262
+ show() {
263
+ if (this.hasEl()) {
264
+ this.renderer.show(this);
265
+ }
266
+ if (this.collider) {
267
+ this.collider.getColliderObject()?.show();
268
+ }
269
+ }
270
+ /**
271
+ * Update visiblity recursive
272
+ */
273
+ update() {
274
+ if (this.isVisible()) {
275
+ // Show
276
+ this.show();
277
+ }
278
+ else {
279
+ // Hide
280
+ this.hide();
281
+ }
282
+ for (const child of this.children) {
283
+ child.update();
284
+ }
285
+ }
286
+ //
287
+ // VARIABLES
288
+ //
289
+ //
290
+ // EVENTS
291
+ //
292
+ /**
293
+ * Called by component constructors
294
+ */
295
+ registerInAction(name, dbAction, callback, pinDataType = DataType.None) {
296
+ // Check if we should skip action
297
+ if (this.context.editor === false && !dbAction)
298
+ return null;
299
+ const actionType = dbAction ? dbAction.actionType : ActionType.None;
300
+ const payloadSource = dbAction
301
+ ? dbAction.payloadSource
302
+ : PayloadSource.None;
303
+ const pInEvent = new PInAction(this.id, name, pinDataType, actionType, dbAction ? dbAction.event : "", payloadSource, dbAction ? dbAction.payloadValue : "", dbAction ? dbAction.payloadDataType : DataType.None, callback);
304
+ if (actionType === ActionType.GlobalEvent) {
305
+ pInEvent.update_global_event(this.context);
306
+ }
307
+ else if (actionType === ActionType.Variable) {
308
+ pInEvent.update_variable(this.context);
309
+ }
310
+ if (payloadSource === PayloadSource.Variable) {
311
+ pInEvent.update_payload_variable(this.context);
312
+ }
313
+ this._inActions.push(pInEvent);
314
+ return pInEvent;
315
+ }
316
+ registerInVariable(dbVariable, callback, pinDataType = DataType.None) {
317
+ // Check if we should skip action
318
+ if (this.context.editor === false && !dbVariable)
319
+ return null;
320
+ const pInAction = new PInAction(this.id, "", pinDataType, ActionType.Variable, dbVariable || "", PayloadSource.VariableValue, "", DataType.None, callback);
321
+ var variable = pInAction.update_variable(this.context);
322
+ if (variable !== null) {
323
+ pInAction.payloadDataType = variable.dataType;
324
+ }
325
+ this._inActions.push(pInAction);
326
+ return pInAction;
327
+ }
328
+ registerOutAction(dbAction, pinDataType = DataType.None) {
329
+ // Check if we should skip action
330
+ if (this.context.editor === false && !dbAction)
331
+ return null;
332
+ const actionType = dbAction ? dbAction.actionType : ActionType.None;
333
+ const payloadSource = dbAction
334
+ ? dbAction.payloadSource
335
+ : PayloadSource.None;
336
+ const pOutEvent = new POutAction(this.id, "", pinDataType, actionType, dbAction ? dbAction.event : "", dbAction ? dbAction.target : "", payloadSource, dbAction ? dbAction.payloadValue : "", dbAction ? dbAction.payloadDataType : DataType.None);
337
+ if (actionType === ActionType.GlobalEvent) {
338
+ pOutEvent.update_global_event(this.context);
339
+ // } else if (actionType === ActionType.LocalEvent) {
340
+ // pOutEvent.update_local_event(this.context);
341
+ }
342
+ else if (actionType === ActionType.Variable) {
343
+ pOutEvent.update_variable(this.context);
344
+ }
345
+ if (payloadSource === PayloadSource.Variable) {
346
+ pOutEvent.update_payload_variable(this.context);
347
+ }
348
+ this._outActions.push(pOutEvent);
349
+ return pOutEvent;
350
+ }
351
+ registerOutVariable(dbVariable, pinDataType = DataType.None) {
352
+ // Check if we should skip action
353
+ if (this.context.editor === false && !dbVariable)
354
+ return null;
355
+ const pOutEvent = new POutAction(this.id, "", pinDataType, ActionType.Variable, dbVariable || "", "", PayloadSource.ActionOutput, "", DataType.None);
356
+ var variable = pOutEvent.update_variable(this.context);
357
+ if (variable) {
358
+ pOutEvent.payloadDataType = variable.dataType;
359
+ }
360
+ this._outActions.push(pOutEvent);
361
+ return pOutEvent;
362
+ }
363
+ getLocalInAction(name) {
364
+ return (this._inActions.find((a) => a.actionType === ActionType.LocalEvent && a.eventValue === name) || null);
365
+ }
366
+ getLocalInEvents() {
367
+ const actions = this._inActions
368
+ .filter((a) => a.actionType === ActionType.LocalEvent && a.eventValue)
369
+ .map((a) => a.eventValue);
370
+ const result = [];
371
+ for (const action of actions) {
372
+ if (result.indexOf(action) === -1) {
373
+ result.push(action);
374
+ }
375
+ }
376
+ return result;
377
+ }
378
+ //
379
+ // TOOLS
380
+ //
381
+ traverse(f, childrenFirst = false) {
382
+ if (!childrenFirst) {
383
+ f(this);
384
+ }
385
+ for (const child of this.children) {
386
+ child.traverse(f);
387
+ }
388
+ if (childrenFirst) {
389
+ f(this);
390
+ }
391
+ }
392
+ //
393
+ // PLATFORMS
394
+ //
395
+ hasValidPlatform() {
396
+ return this.hasPlatform(this.context.platform(), this.context.language());
397
+ }
398
+ getPlatforms() {
399
+ return this._platforms;
400
+ }
401
+ getLanguages() {
402
+ return this._languages;
403
+ }
404
+ hasPlatform(platform, language) {
405
+ return ((this._platforms === 0 || this._platforms & platform) &&
406
+ (this._languages === 0 || this._languages & language));
407
+ }
408
+ setPlatforms(platforms) {
409
+ this._platforms = platforms;
410
+ }
411
+ setLanguages(languages) {
412
+ this._languages = languages;
413
+ }
414
+ //
415
+ // CHILDREN
416
+ //
417
+ /**
418
+ * Add a child node.
419
+ */
420
+ add(child) {
421
+ this.children = [...this.children, child];
422
+ child.parent = this;
423
+ }
424
+ /**
425
+ * Remove this node reference in parent's children array.
426
+ */
427
+ removeFromParent() {
428
+ if (this.parent !== null) {
429
+ this.parent.children = this.parent.children.filter((c) => c !== this);
430
+ this.parent = null;
431
+ }
432
+ }
433
+ //
434
+ // COMPONENTS
435
+ //
436
+ findComponent(type) {
437
+ return this.components.find((c) => c.primitive === type) || null;
438
+ }
439
+ //
440
+ // LIFE CYCLE
441
+ //
442
+ play() {
443
+ if (!this.isEnabled()) {
444
+ return;
445
+ }
446
+ this._running = true;
447
+ // Handle in actions.
448
+ for (const e of this._inActions) {
449
+ // Listen to global events
450
+ if (e.actionType === ActionType.GlobalEvent && e.runtime_global_event) {
451
+ e.runtime_global_event.listen(e);
452
+ }
453
+ else if (e.actionType === ActionType.Variable && e.runtime_variable) {
454
+ e.runtime_variable.listen(e);
455
+ }
456
+ }
457
+ for (const component of this.components) {
458
+ if (component.rendered)
459
+ component.play();
460
+ }
461
+ for (const child of this.children) {
462
+ child.play();
463
+ }
464
+ }
465
+ stop() {
466
+ if (!this.isEnabled()) {
467
+ return;
468
+ }
469
+ this._running = false;
470
+ for (const e of this._inActions) {
471
+ // Unregister global event listeners
472
+ if (e.actionType === ActionType.GlobalEvent && e.runtime_global_event) {
473
+ e.runtime_global_event.unlisten(e);
474
+ }
475
+ else if (e.actionType === ActionType.Variable && e.runtime_variable) {
476
+ e.runtime_variable.unlisten(e);
477
+ }
478
+ }
479
+ for (const component of this.components) {
480
+ if (component.rendered)
481
+ component.stop();
482
+ }
483
+ for (const child of this.children) {
484
+ child.stop();
485
+ }
486
+ }
487
+ }
488
+ //# sourceMappingURL=PNode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PNode.js","sourceRoot":"","sources":["../../src/PNode.ts"],"names":[],"mappings":"AAKA,OAAO,EAIL,SAAS,EACT,UAAU,GACX,MAAM,WAAW,CAAC;AAGnB,OAAO,EACL,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,QAAQ,EACR,WAAW,GACZ,MAAM,UAAU,CAAC;AAIlB,MAAM,CAAC,OAAO,OAAO,KAAK;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,CAAC;IACH,CAAC;IAED,IAAI;QACF,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,CAAC;YACtB,OAAO;QACT,CAAC;QAED,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;QAEtB,KAAK,MAAM,CAAC,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;YAChC,oCAAoC;YACpC,IAAI,CAAC,CAAC,UAAU,KAAK,UAAU,CAAC,WAAW,IAAI,CAAC,CAAC,oBAAoB,EAAE,CAAC;gBACtE,CAAC,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;YACrC,CAAC;iBAAM,IAAI,CAAC,CAAC,UAAU,KAAK,UAAU,CAAC,QAAQ,IAAI,CAAC,CAAC,gBAAgB,EAAE,CAAC;gBACtE,CAAC,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;YACjC,CAAC;QACH,CAAC;QAED,KAAK,MAAM,SAAS,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;YACxC,IAAI,SAAS,CAAC,QAAQ;gBAAE,SAAS,CAAC,IAAI,EAAE,CAAC;QAC3C,CAAC;QACD,KAAK,MAAM,KAAK,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAClC,KAAK,CAAC,IAAI,EAAE,CAAC;QACf,CAAC;IACH,CAAC;CACF"}
@@ -0,0 +1,7 @@
1
+ export default class PPayload {
2
+ static asNumber(value: string | null): number;
3
+ static asBoolean(value: string | null): boolean;
4
+ static fromNumber(value: number): string;
5
+ static fromBoolean(value: boolean): string;
6
+ }
7
+ //# sourceMappingURL=PPayload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PPayload.d.ts","sourceRoot":"","sources":["../../src/PPayload.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,OAAO,QAAQ;IAC3B,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM;IAK7C,MAAM,CAAC,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO;IAK/C,MAAM,CAAC,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAIxC,MAAM,CAAC,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM;CAI3C"}
@@ -0,0 +1,19 @@
1
+ export default class PPayload {
2
+ static asNumber(value) {
3
+ if (!value || value === "")
4
+ return 0;
5
+ return parseInt(value);
6
+ }
7
+ static asBoolean(value) {
8
+ if (!value || value === "")
9
+ return false;
10
+ return value === "1";
11
+ }
12
+ static fromNumber(value) {
13
+ return "" + value;
14
+ }
15
+ static fromBoolean(value) {
16
+ return value ? "1" : "0";
17
+ }
18
+ }
19
+ //# sourceMappingURL=PPayload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PPayload.js","sourceRoot":"","sources":["../../src/PPayload.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,OAAO,QAAQ;IAC3B,MAAM,CAAC,QAAQ,CAAC,KAAoB;QAClC,IAAI,CAAC,KAAK,IAAI,KAAK,KAAK,EAAE;YAAE,OAAO,CAAC,CAAC;QACrC,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC;IACzB,CAAC;IAED,MAAM,CAAC,SAAS,CAAC,KAAoB;QACnC,IAAI,CAAC,KAAK,IAAI,KAAK,KAAK,EAAE;YAAE,OAAO,KAAK,CAAC;QACzC,OAAO,KAAK,KAAK,GAAG,CAAC;IACvB,CAAC;IAED,MAAM,CAAC,UAAU,CAAC,KAAa;QAC7B,OAAO,EAAE,GAAG,KAAK,CAAC;IACpB,CAAC;IAED,MAAM,CAAC,WAAW,CAAC,KAAc;QAC/B,OAAO,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;IAC3B,CAAC;CAEF"}
@@ -0,0 +1,140 @@
1
+ import { PostProcessingSystems } from "./PEnums";
2
+ import PVector3, { type IVector3 } from "./PVector3";
3
+ type IUpdate = (dt: number) => void;
4
+ interface IUpdator {
5
+ update: IUpdate;
6
+ }
7
+ export { type IUpdate, type IUpdator };
8
+ interface IColliderObject {
9
+ hide(): void;
10
+ show(): void;
11
+ }
12
+ interface IColliderComponent {
13
+ computeBounds(): void;
14
+ addColliderNode(): void;
15
+ native_onClick(): void;
16
+ native_onHoverEnter(point: IVector3): void;
17
+ native_onHoverExit(): void;
18
+ getColliderObject(): IColliderObject | null;
19
+ hidden: boolean;
20
+ }
21
+ export { type IColliderObject, type IColliderComponent };
22
+ interface INameId {
23
+ _id: string;
24
+ name: string;
25
+ }
26
+ export { type INameId };
27
+ interface IThreeQualitySettings {
28
+ maxScale: number;
29
+ minScale: number;
30
+ sleep: boolean;
31
+ adaptive: boolean;
32
+ debug: boolean;
33
+ skipFrame: boolean;
34
+ baseQuality: number;
35
+ }
36
+ interface ICameraSettings {
37
+ position: PVector3;
38
+ target: PVector3;
39
+ type: number;
40
+ damping: number;
41
+ }
42
+ interface IThreeRendererSettings {
43
+ near: number;
44
+ far: number;
45
+ useShadows: number;
46
+ background: string;
47
+ antialias: boolean;
48
+ toneMapping: number;
49
+ toneMappingExposure: number;
50
+ depth: boolean;
51
+ stencil: boolean;
52
+ fov: number;
53
+ }
54
+ interface IBloomSettings {
55
+ enabled: boolean;
56
+ intensity: number;
57
+ threshold: number;
58
+ smoothing: number;
59
+ radius: number;
60
+ filter: boolean;
61
+ }
62
+ interface ISSAOSettings {
63
+ enabled: boolean;
64
+ debug: number;
65
+ radius: number;
66
+ minDistance: number;
67
+ maxDistance: number;
68
+ }
69
+ interface ISAOSettings {
70
+ enabled: boolean;
71
+ debug: number;
72
+ saoBias: number;
73
+ saoIntensity: number;
74
+ saoScale: number;
75
+ saoKernelRadius: number;
76
+ saoMinResolution: number;
77
+ saoBlur: number;
78
+ saoBlurRadius: number;
79
+ saoBlurStdDev: number;
80
+ saoBlurDepthCutoff: number;
81
+ }
82
+ interface IVignetteSettings {
83
+ enabled: boolean;
84
+ darkness: number;
85
+ offset: number;
86
+ }
87
+ interface IDofSettings {
88
+ enabled: boolean;
89
+ focus: number;
90
+ aperture: number;
91
+ maxBlur: number;
92
+ }
93
+ interface IToneMapSettings {
94
+ enabled: boolean;
95
+ mode: number;
96
+ exposure: number;
97
+ }
98
+ interface ISSRSettings {
99
+ enabled: boolean;
100
+ debug: number;
101
+ maxScale: number;
102
+ minScale: number;
103
+ blur: number;
104
+ thickness: number;
105
+ maxDistance: number;
106
+ opacity: number;
107
+ distanceAttenuation: number;
108
+ infiniteThick: number;
109
+ ground: number;
110
+ }
111
+ interface ISMAASettings {
112
+ enabled: boolean;
113
+ }
114
+ interface IThreePostProcessingSettings {
115
+ enabled: PostProcessingSystems;
116
+ samples: number;
117
+ bloom: IBloomSettings;
118
+ ssao: ISSAOSettings;
119
+ sao: ISAOSettings;
120
+ vignette: IVignetteSettings;
121
+ dof: IDofSettings;
122
+ tonemap: IToneMapSettings;
123
+ ssr: ISSRSettings;
124
+ smaa: ISMAASettings;
125
+ }
126
+ interface IPostProcessor {
127
+ render: () => void;
128
+ dispose: () => void;
129
+ setSize(x: number, y: number): void;
130
+ updateAASamples(samples: number): void;
131
+ setPixelRatio(scale: number): void;
132
+ addSSRSelectors(selectors: any[]): void;
133
+ removeSSRSelectors(selectors: any[]): void;
134
+ resize(x: number, y: number): void;
135
+ resizeEffects(): void;
136
+ setCurrentQuality(quality: number): boolean;
137
+ updatePostProcessing(settings: IThreePostProcessingSettings, field: string): boolean;
138
+ }
139
+ export { type IThreeRendererSettings, type IThreePostProcessingSettings, type IBloomSettings, type IVignetteSettings, type IDofSettings, type IToneMapSettings, type IPostProcessor, type ISSAOSettings, type ISAOSettings, type IThreeQualitySettings, type ICameraSettings, };
140
+ //# sourceMappingURL=PTypes.d.ts.map