@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,136 @@
1
+ export { default as GameContext, type IGameContextOwner, Workers, } from "./src/GameContext";
2
+ export { type IEngine } from "./src/IEngine";
3
+ export { type IMaterial } from "./src/IMaterial";
4
+ export { default as AdaptivePerformance } from "./src/AdaptivePerformance";
5
+ export { type IStats } from "./src/IStats";
6
+ export { default as PNode } from "./src/PNode";
7
+ export { default as DBNode, type IDBNode } from "./src/DBNode";
8
+ export { type IPNodeRenderer } from "./src/IPNodeRenderer";
9
+ export { default as DBScene, type IDBScene } from "./src/DBScene";
10
+ export { type IPCanvas } from "./src/IPCanvas";
11
+ export { type ICameraNode } from "./src/ICameraNode";
12
+ export { type ICameraControls } from "./src/ICameraControls";
13
+ export { PInAction, POutAction, type IOutAction, type IEmitter, } from "./src/PAction";
14
+ export { default as PEvent } from "./src/PEvent";
15
+ export { PVariable } from "./src/PVariable";
16
+ export { default as DBEvent, type IDBEvent } from "./src/DBEvent";
17
+ export { default as DBVariable, type IDBVariable } from "./src/DBVariable";
18
+ export { type IAnimationAction } from "./src/animations/IAnimationAction";
19
+ export { type IAnimationMixer } from "./src/animations/IAnimationMixer";
20
+ export { type IAnimationClip } from "./src/animations/IAnimationClip";
21
+ export { default as PVector2, type IVector2 } from "./src/PVector2";
22
+ export { default as PVector3, type IVector3 } from "./src/PVector3";
23
+ export { orNull, orEmpty } from "./src/DevTools";
24
+ export { type IComponentFactory } from "./src/IComponentFactory";
25
+ export { default as PComponent, type DBComponent, type IImageLoader, type IVideoLoader, type IModelLoader, type IAudioLoader, type IFileListener, type IEnvironmentLoader, } from "./src/PComponent";
26
+ export { Platform, PProperties, Language, PostProcessingSystems, FileSubType, FileType, DataType, Quality, ObjectType, ActionType, PayloadSource, } from "./src/PEnums";
27
+ export { type IColliderComponent, type ICameraSettings, type IThreeRendererSettings, type IThreeQualitySettings, type IThreePostProcessingSettings, type IPostProcessor, type IUpdate, type IUpdator, type IColliderObject, type INameId, } from "./src/PTypes";
28
+ export { type IMediaLoader, type IMediaLoader_Image, type IMediaLoader_Video, type IMediaLoader_Model, type IMediaLoader_Audio, type IMediaLoader_Environment, } from "./src/media/IMediaLoader";
29
+ export { default as PFile } from "./src/media/PFile";
30
+ export { default as MediaManager, type IMediaManager, } from "./src/media/MediaManager";
31
+ export { type IAudioListener } from "./src/IAudioListener";
32
+ export { default as Settings_Base } from "./src/settings/Settings_Base";
33
+ export { default as Settings_Threejs } from "./src/settings/Settings_Threejs";
34
+ export { default as PTransform } from "./src/pcomponents/PTransform";
35
+ export type { DBTransform } from "./src/pcomponents/PTransform";
36
+ export { default as BaseMaterial } from "./src/pcomponents/BaseMaterial";
37
+ export type { DBBaseMaterial } from "./src/pcomponents/BaseMaterial";
38
+ export { default as PCollider } from "./src/pcomponents/PCollider";
39
+ export type { DBCollider } from "./src/pcomponents/PCollider";
40
+ export { default as PSceneRoot } from "./src/pcomponents/PSceneRoot";
41
+ export type { DBSceneRoot } from "./src/pcomponents/PSceneRoot";
42
+ export { default as PProjectRoot } from "./src/pcomponents/PProjectRoot";
43
+ export type { DBProjectRoot } from "./src/pcomponents/PProjectRoot";
44
+ export { default as PSpriteAnimation } from "./src/pcomponents/PSpriteAnimation";
45
+ export type { DBSpriteAnimation } from "./src/pcomponents/PSpriteAnimation";
46
+ export { default as PCallAction } from "./src/pcomponents/PCallAction";
47
+ export { type DBCallAction } from "./src/pcomponents/PCallAction";
48
+ export { default as PCallActions } from "./src/pcomponents/PCallActions";
49
+ export { type DBCallActions } from "./src/pcomponents/PCallActions";
50
+ export { default as PCompareNumber } from "./src/pcomponents/PCompareNumber";
51
+ export { type DBCompareNumber } from "./src/pcomponents/PCompareNumber";
52
+ export { default as PCompareBoolean } from "./src/pcomponents/PCompareBoolean";
53
+ export { type DBCompareBoolean } from "./src/pcomponents/PCompareBoolean";
54
+ export { default as PCompareVariable } from "./src/pcomponents/PCompareVariable";
55
+ export { type DBCompareVariable } from "./src/pcomponents/PCompareVariable";
56
+ export { default as PCompareString } from "./src/pcomponents/PCompareString";
57
+ export { type DBCompareString } from "./src/pcomponents/PCompareString";
58
+ export { default as BaseBackground } from "./src/pcomponents/BaseBackground";
59
+ export { type DBBaseBackground } from "./src/pcomponents/BaseBackground";
60
+ export { default as PImageBackground } from "./src/pcomponents/PImageBackground";
61
+ export { type DBImageBackground } from "./src/pcomponents/PImageBackground";
62
+ export { default as PVideoPlayer } from "./src/pcomponents/PVideoPlayer";
63
+ export { type DBVideoPlayer } from "./src/pcomponents/PVideoPlayer";
64
+ export { default as PBasicMaterial } from "./src/pcomponents/PBasicMaterial";
65
+ export { type DBBasicMaterial } from "./src/pcomponents/PBasicMaterial";
66
+ export { default as PAnimator } from "./src/pcomponents/PAnimator";
67
+ export { type DBAnimator } from "./src/pcomponents/PAnimator";
68
+ export { default as PPlaneGeometry } from "./src/pcomponents/PPlaneGeometry";
69
+ export { type DBPlaneGeometry } from "./src/pcomponents/PPlaneGeometry";
70
+ export { default as PVisibility } from "./src/pcomponents/PVisibility";
71
+ export { type DBVisibility } from "./src/pcomponents/PVisibility";
72
+ export { default as PPhysicalMaterial } from "./src/pcomponents/PPhysicalMaterial";
73
+ export { type DBPhysicalMaterial } from "./src/pcomponents/PPhysicalMaterial";
74
+ export { default as PMoveAnimation } from "./src/pcomponents/PMoveAnimation";
75
+ export { type DBMoveAnimation } from "./src/pcomponents/PMoveAnimation";
76
+ export { default as PSphereGeometry } from "./src/pcomponents/PSphereGeometry";
77
+ export { type DBSphereGeometry } from "./src/pcomponents/PSphereGeometry";
78
+ export { default as PFadeAnimation } from "./src/pcomponents/PFadeAnimation";
79
+ export { type DBFadeAnimation } from "./src/pcomponents/PFadeAnimation";
80
+ export { default as PRotateAnimation } from "./src/pcomponents/PRotateAnimation";
81
+ export { type DBRotateAnimation } from "./src/pcomponents/PRotateAnimation";
82
+ export { default as PDebug } from "./src/pcomponents/PDebug";
83
+ export { type DBDebug } from "./src/pcomponents/PDebug";
84
+ export { default as PSceneContainer } from "./src/pcomponents/PSceneContainer";
85
+ export { type DBSceneContainer } from "./src/pcomponents/PSceneContainer";
86
+ export { default as PVarList } from "./src/pcomponents/PVarList";
87
+ export { type DBVarList } from "./src/pcomponents/PVarList";
88
+ export { default as PVarWriter } from "./src/pcomponents/PVarWriter";
89
+ export { type DBVarWriter } from "./src/pcomponents/PVarWriter";
90
+ export { default as PVarReader } from "./src/pcomponents/PVarReader";
91
+ export { type DBVarReader } from "./src/pcomponents/PVarReader";
92
+ export { default as PImageCache } from "./src/pcomponents/PImageCache";
93
+ export { type DBImageCache } from "./src/pcomponents/PImageCache";
94
+ export { default as PText } from "./src/pcomponents/PText";
95
+ export { type DBText } from "./src/pcomponents/PText";
96
+ export { default as PModelGLTF } from "./src/pcomponents/PModelGLTF";
97
+ export { type DBModelGLTF } from "./src/pcomponents/PModelGLTF";
98
+ export { default as PLight } from "./src/pcomponents/PLight";
99
+ export { type DBLight } from "./src/pcomponents/PLight";
100
+ export { default as PLightDirectional } from "./src/pcomponents/PLightDirectional";
101
+ export { type DBLightDirectional } from "./src/pcomponents/PLightDirectional";
102
+ export { default as PXRTools } from "./src/pcomponents/PXRTools";
103
+ export { type DBXRTools } from "./src/pcomponents/PXRTools";
104
+ export { default as PHud } from "./src/pcomponents/PHud";
105
+ export { type DBHud } from "./src/pcomponents/PHud";
106
+ export { default as PSlider } from "./src/pcomponents/PSlider";
107
+ export { type DBSlider } from "./src/pcomponents/PSlider";
108
+ export { default as PVideoMaterial } from "./src/pcomponents/PVideoMaterial";
109
+ export { type DBVideoMaterial } from "./src/pcomponents/PVideoMaterial";
110
+ export { default as PVideoBackground } from "./src/pcomponents/PVideoBackground";
111
+ export { type DBVideoBackground } from "./src/pcomponents/PVideoBackground";
112
+ export { default as PEnvironment } from "./src/pcomponents/PEnvironment";
113
+ export { type DBEnvironment } from "./src/pcomponents/PEnvironment";
114
+ export { default as PScaleAnimation } from "./src/pcomponents/PScaleAnimation";
115
+ export { type DBScaleAnimation } from "./src/pcomponents/PScaleAnimation";
116
+ export { default as PMoveToAnimation } from "./src/pcomponents/PMoveToAnimation";
117
+ export { type DBMoveToAnimation } from "./src/pcomponents/PMoveToAnimation";
118
+ export { default as PSound } from "./src/pcomponents/PSound";
119
+ export { type DBSound } from "./src/pcomponents/PSound";
120
+ export { default as PImageDetector } from "./src/pcomponents/PImageDetector";
121
+ export { type DBImageDetector } from "./src/pcomponents/PImageDetector";
122
+ export { default as PPlaneDetector } from "./src/pcomponents/PPlaneDetector";
123
+ export { type DBPlaneDetector } from "./src/pcomponents/PPlaneDetector";
124
+ export { default as PCubeGeometry } from "./src/pcomponents/PCubeGeometry";
125
+ export { type DBCubeGeometry } from "./src/pcomponents/PCubeGeometry";
126
+ export { default as PCameraPosition } from "./src/pcomponents/PCameraPosition";
127
+ export { type DBCameraPosition } from "./src/pcomponents/PCameraPosition";
128
+ export { default as PCameraTarget } from "./src/pcomponents/PCameraTarget";
129
+ export { type DBCameraTarget } from "./src/pcomponents/PCameraTarget";
130
+ export { default as PSprite } from "./src/pcomponents/PSprite";
131
+ export { type DBSprite } from "./src/pcomponents/PSprite";
132
+ export { default as PControllerInput } from "./src/pcomponents/PControllerInput";
133
+ export { type DBControllerInput } from "./src/pcomponents/PControllerInput";
134
+ export { default as PMaskedMaterial } from "./src/pcomponents/PMaskedMaterial";
135
+ export { type DBMaskedMaterial } from "./src/pcomponents/PMaskedMaterial";
136
+ //# sourceMappingURL=index.d.ts.map
@@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AAC/D,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACjF,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAE5E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,mCAAmC,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,101 @@
1
+ //
2
+ // CONTEXT
3
+ //
4
+ export { default as GameContext, Workers, } from "./src/GameContext";
5
+ //
6
+ // RENDERING
7
+ //
8
+ export { default as AdaptivePerformance } from "./src/AdaptivePerformance";
9
+ //
10
+ // NODES
11
+ //
12
+ export { default as PNode } from "./src/PNode";
13
+ export { default as DBNode } from "./src/DBNode";
14
+ //
15
+ // SCENES
16
+ //
17
+ export { default as DBScene } from "./src/DBScene";
18
+ //
19
+ // ACTIONS
20
+ //
21
+ export { PInAction, POutAction, } from "./src/PAction";
22
+ export { default as PEvent } from "./src/PEvent";
23
+ export { PVariable } from "./src/PVariable";
24
+ export { default as DBEvent } from "./src/DBEvent";
25
+ export { default as DBVariable } from "./src/DBVariable";
26
+ //
27
+ // MATH
28
+ //
29
+ export { default as PVector2 } from "./src/PVector2";
30
+ export { default as PVector3 } from "./src/PVector3";
31
+ //
32
+ // TOOLS
33
+ //
34
+ export { orNull, orEmpty } from "./src/DevTools";
35
+ export { default as PComponent, } from "./src/PComponent";
36
+ //
37
+ // ENUMS & TYPES
38
+ //
39
+ export { Platform, PProperties, Language, PostProcessingSystems, FileSubType, FileType, DataType, Quality, ObjectType, ActionType, PayloadSource, } from "./src/PEnums";
40
+ export { default as PFile } from "./src/media/PFile";
41
+ export { default as MediaManager, } from "./src/media/MediaManager";
42
+ //
43
+ // SETTINGS
44
+ //
45
+ export { default as Settings_Base } from "./src/settings/Settings_Base";
46
+ export { default as Settings_Threejs } from "./src/settings/Settings_Threejs";
47
+ //
48
+ // PCOMPONENTS
49
+ //
50
+ export { default as PTransform } from "./src/pcomponents/PTransform";
51
+ export { default as BaseMaterial } from "./src/pcomponents/BaseMaterial";
52
+ export { default as PCollider } from "./src/pcomponents/PCollider";
53
+ export { default as PSceneRoot } from "./src/pcomponents/PSceneRoot";
54
+ export { default as PProjectRoot } from "./src/pcomponents/PProjectRoot";
55
+ export { default as PSpriteAnimation } from "./src/pcomponents/PSpriteAnimation";
56
+ export { default as PCallAction } from "./src/pcomponents/PCallAction";
57
+ export { default as PCallActions } from "./src/pcomponents/PCallActions";
58
+ export { default as PCompareNumber } from "./src/pcomponents/PCompareNumber";
59
+ export { default as PCompareBoolean } from "./src/pcomponents/PCompareBoolean";
60
+ export { default as PCompareVariable } from "./src/pcomponents/PCompareVariable";
61
+ export { default as PCompareString } from "./src/pcomponents/PCompareString";
62
+ export { default as BaseBackground } from "./src/pcomponents/BaseBackground";
63
+ export { default as PImageBackground } from "./src/pcomponents/PImageBackground";
64
+ export { default as PVideoPlayer } from "./src/pcomponents/PVideoPlayer";
65
+ export { default as PBasicMaterial } from "./src/pcomponents/PBasicMaterial";
66
+ export { default as PAnimator } from "./src/pcomponents/PAnimator";
67
+ export { default as PPlaneGeometry } from "./src/pcomponents/PPlaneGeometry";
68
+ export { default as PVisibility } from "./src/pcomponents/PVisibility";
69
+ export { default as PPhysicalMaterial } from "./src/pcomponents/PPhysicalMaterial";
70
+ export { default as PMoveAnimation } from "./src/pcomponents/PMoveAnimation";
71
+ export { default as PSphereGeometry } from "./src/pcomponents/PSphereGeometry";
72
+ export { default as PFadeAnimation } from "./src/pcomponents/PFadeAnimation";
73
+ export { default as PRotateAnimation } from "./src/pcomponents/PRotateAnimation";
74
+ export { default as PDebug } from "./src/pcomponents/PDebug";
75
+ export { default as PSceneContainer } from "./src/pcomponents/PSceneContainer";
76
+ export { default as PVarList } from "./src/pcomponents/PVarList";
77
+ export { default as PVarWriter } from "./src/pcomponents/PVarWriter";
78
+ export { default as PVarReader } from "./src/pcomponents/PVarReader";
79
+ export { default as PImageCache } from "./src/pcomponents/PImageCache";
80
+ export { default as PText } from "./src/pcomponents/PText";
81
+ export { default as PModelGLTF } from "./src/pcomponents/PModelGLTF";
82
+ export { default as PLight } from "./src/pcomponents/PLight";
83
+ export { default as PLightDirectional } from "./src/pcomponents/PLightDirectional";
84
+ export { default as PXRTools } from "./src/pcomponents/PXRTools";
85
+ export { default as PHud } from "./src/pcomponents/PHud";
86
+ export { default as PSlider } from "./src/pcomponents/PSlider";
87
+ export { default as PVideoMaterial } from "./src/pcomponents/PVideoMaterial";
88
+ export { default as PVideoBackground } from "./src/pcomponents/PVideoBackground";
89
+ export { default as PEnvironment } from "./src/pcomponents/PEnvironment";
90
+ export { default as PScaleAnimation } from "./src/pcomponents/PScaleAnimation";
91
+ export { default as PMoveToAnimation } from "./src/pcomponents/PMoveToAnimation";
92
+ export { default as PSound } from "./src/pcomponents/PSound";
93
+ export { default as PImageDetector } from "./src/pcomponents/PImageDetector";
94
+ export { default as PPlaneDetector } from "./src/pcomponents/PPlaneDetector";
95
+ export { default as PCubeGeometry } from "./src/pcomponents/PCubeGeometry";
96
+ export { default as PCameraPosition } from "./src/pcomponents/PCameraPosition";
97
+ export { default as PCameraTarget } from "./src/pcomponents/PCameraTarget";
98
+ export { default as PSprite } from "./src/pcomponents/PSprite";
99
+ export { default as PControllerInput } from "./src/pcomponents/PControllerInput";
100
+ export { default as PMaskedMaterial } from "./src/pcomponents/PMaskedMaterial";
101
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,WAAW;AACX,EAAE;AAEF,OAAO,EACL,OAAO,IAAI,WAAW,EAEtB,OAAO,GACR,MAAM,mBAAmB,CAAC;AAM3B,EAAE;AACF,aAAa;AACb,EAAE;AAEF,OAAO,EAAE,OAAO,IAAI,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E,MAAM,4BAA4B,CAAC;AAGjE,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAGzD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAG/D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAG7E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAGjF,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAGzE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAG/E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAGjF,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAG7D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAG7E,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAG7E,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAG3E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAG/E,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAG3E,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAG/D,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAGjF,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mCAAmC,CAAC"}
@@ -0,0 +1,20 @@
1
+ export default class AdaptivePerformance {
2
+ private _elapsedTime;
3
+ private _fps;
4
+ private _lastQuality;
5
+ private _running;
6
+ private _paused;
7
+ private _estimating;
8
+ private _callback;
9
+ private _pid;
10
+ debug: boolean;
11
+ constructor(callback: (quality: number, fps: number, estimating: boolean) => void);
12
+ init(quality: number): Promise<void>;
13
+ pause(): void;
14
+ setCurrentQuality(quality: number): void;
15
+ private roundQuality;
16
+ private estimateFps;
17
+ dispose(): void;
18
+ update(dt: number): void;
19
+ }
20
+ //# sourceMappingURL=AdaptivePerformance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AdaptivePerformance.d.ts","sourceRoot":"","sources":["../../src/AdaptivePerformance.ts"],"names":[],"mappings":"AASA,MAAM,CAAC,OAAO,OAAO,mBAAmB;IACtC,OAAO,CAAC,YAAY,CAAK;IACzB,OAAO,CAAC,IAAI,CAAK;IACjB,OAAO,CAAC,YAAY,CAAO;IAC3B,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,SAAS,CAIP;IACV,OAAO,CAAC,IAAI,CAAM;IAClB,KAAK,UAAS;gBAGZ,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,KAAK,IAAI;IAKjE,IAAI,CAAC,OAAO,EAAE,MAAM;IAoB1B,KAAK;IAML,iBAAiB,CAAC,OAAO,EAAE,MAAM;IAIjC,OAAO,CAAC,YAAY;IAIpB,OAAO,CAAC,WAAW;IAoDnB,OAAO;IAMP,MAAM,CAAC,EAAE,EAAE,MAAM;CAoBlB"}
@@ -0,0 +1,110 @@
1
+ import { getGPUTier } from "detect-gpu";
2
+ //import { MathUtils } from "three";
3
+ const ESTIMATED_QUALITIES = [75, 30, 60, 100];
4
+ const ESTIMATED_FPS = [50, 30, 50, 60];
5
+ const TARGET_FPS = 50;
6
+ const TIMER = 0.5;
7
+ export default class AdaptivePerformance {
8
+ _elapsedTime = 0;
9
+ _fps = 0;
10
+ _lastQuality = 100;
11
+ _running = false;
12
+ _paused = false;
13
+ _estimating = false;
14
+ _callback;
15
+ _pid = -1;
16
+ debug = false;
17
+ constructor(callback) {
18
+ this._callback = callback;
19
+ }
20
+ async init(quality) {
21
+ this._lastQuality = quality;
22
+ const gpuTier = await getGPUTier();
23
+ console.log("[Q] getGPUTier() quality:", ESTIMATED_QUALITIES[gpuTier.tier], "fps:", ESTIMATED_FPS[gpuTier.tier], "tier:", gpuTier.tier);
24
+ this._callback(ESTIMATED_QUALITIES[gpuTier.tier], ESTIMATED_FPS[gpuTier.tier], true);
25
+ this._running = true;
26
+ this._estimating = true;
27
+ }
28
+ pause() {
29
+ this._paused = true;
30
+ this._elapsedTime = 0;
31
+ this._fps = 0;
32
+ }
33
+ setCurrentQuality(quality) {
34
+ this._lastQuality = quality;
35
+ }
36
+ roundQuality(quality) {
37
+ return Math.min(Math.round(quality / 5) * 5, 100);
38
+ }
39
+ estimateFps(fps) {
40
+ const diff = fps - TARGET_FPS;
41
+ if (this._estimating && this.debug)
42
+ console.log("[Q] estimateFps:", Math.round(fps), "diff:", parseFloat(diff.toFixed(2)), "Q:", this._lastQuality);
43
+ this._fps = 0;
44
+ const wasEstimating = this._estimating;
45
+ this._estimating = false;
46
+ if (diff > 5) {
47
+ // Above target FPS
48
+ if (this._lastQuality === 100) {
49
+ // Skip if already at top quality
50
+ this._elapsedTime = -2;
51
+ }
52
+ else {
53
+ // Otherwise try and increase quality
54
+ this._estimating = true;
55
+ const change = this.roundQuality(diff * 2);
56
+ const newQuality = Math.min(100, this._lastQuality + change);
57
+ if (this.debug)
58
+ console.log("[Q] +", change, " -> ", newQuality);
59
+ this._callback(newQuality, fps, true);
60
+ this._elapsedTime = -0.5;
61
+ }
62
+ }
63
+ else if (diff < 0) {
64
+ // Below target FPS
65
+ if (this._lastQuality === 0) {
66
+ this._elapsedTime = -2;
67
+ }
68
+ else {
69
+ // Try and reduce quality
70
+ this._estimating = true;
71
+ const change = Math.min(-5, this.roundQuality(diff * 2));
72
+ const newQuality = Math.max(0, this._lastQuality + change);
73
+ if (this.debug)
74
+ console.log("[Q] -", -change, " -> ", newQuality);
75
+ this._callback(newQuality, fps, true);
76
+ this._elapsedTime = -0.5;
77
+ }
78
+ }
79
+ else {
80
+ this._elapsedTime = -2;
81
+ }
82
+ if (!this._estimating && wasEstimating) {
83
+ this._callback(this._lastQuality, fps, false);
84
+ }
85
+ }
86
+ dispose() {
87
+ this._running = false;
88
+ clearTimeout(this._pid);
89
+ this._pid = -1;
90
+ }
91
+ update(dt) {
92
+ if (!this._running)
93
+ return;
94
+ if (this._paused) {
95
+ this._paused = false;
96
+ return;
97
+ }
98
+ this._elapsedTime += dt;
99
+ // Delay
100
+ if (this._elapsedTime < 0)
101
+ return;
102
+ this._fps++;
103
+ if (this._elapsedTime >= TIMER) {
104
+ // const fakeFPS = MathUtils.lerp(60, 25, this._lastQuality / 100.0);
105
+ // this.estimateFps(fakeFPS);
106
+ this.estimateFps(this._fps / this._elapsedTime);
107
+ }
108
+ }
109
+ }
110
+ //# sourceMappingURL=AdaptivePerformance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AdaptivePerformance.js","sourceRoot":"","sources":["../../src/AdaptivePerformance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,oCAAoC;AAEpC,MAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC;AAC9C,MAAM,aAAa,GAAG,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;AAEvC,MAAM,UAAU,GAAG,EAAE,CAAC;AACtB,MAAM,KAAK,GAAG,GAAG,CAAC;AAElB,MAAM,CAAC,OAAO,OAAO,mBAAmB;IAC9B,YAAY,GAAG,CAAC,CAAC;IACjB,IAAI,GAAG,CAAC,CAAC;IACT,YAAY,GAAG,GAAG,CAAC;IACnB,QAAQ,GAAG,KAAK,CAAC;IACjB,OAAO,GAAG,KAAK,CAAC;IAChB,WAAW,GAAG,KAAK,CAAC;IACpB,SAAS,CAIP;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AAC;QAEZ,IAAI,IAAI,CAAC,YAAY,IAAI,KAAK,EAAE,CAAC;YAC/B,qEAAqE;YACrE,6BAA6B;YAC7B,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,YAAY,CAAC,CAAC;QAClD,CAAC;IACH,CAAC;CACF"}
@@ -0,0 +1,22 @@
1
+ import { DataType } from "./PEnums";
2
+ interface IDBEvent {
3
+ _id?: string;
4
+ _project?: string;
5
+ _customer?: string;
6
+ name: string;
7
+ dataType: DataType;
8
+ description: string;
9
+ external: boolean;
10
+ }
11
+ export { type IDBEvent };
12
+ export default class DBEvent {
13
+ _id: string;
14
+ _project: string;
15
+ _customer: string;
16
+ name: string;
17
+ dataType: DataType;
18
+ description: string;
19
+ external: boolean;
20
+ constructor(dbItem: IDBEvent);
21
+ }
22
+ //# sourceMappingURL=DBEvent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DBEvent.d.ts","sourceRoot":"","sources":["../../src/DBEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,UAAU,QAAQ;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,QAAQ,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,OAAO,EAAE,KAAK,QAAQ,EAAE,CAAC;AAEzB,MAAM,CAAC,OAAO,OAAO,OAAO;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,QAAQ,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;gBAEN,MAAM,EAAE,QAAQ;CAS7B"}
@@ -0,0 +1,19 @@
1
+ export default class DBEvent {
2
+ _id;
3
+ _project;
4
+ _customer;
5
+ name;
6
+ dataType;
7
+ description;
8
+ external;
9
+ constructor(dbItem) {
10
+ this._id = dbItem._id || "";
11
+ this._project = dbItem._project || "";
12
+ this._customer = dbItem._customer || "";
13
+ this.name = dbItem.name;
14
+ this.dataType = dbItem.dataType;
15
+ this.description = dbItem.description;
16
+ this.external = dbItem.external || false;
17
+ }
18
+ }
19
+ //# sourceMappingURL=DBEvent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DBEvent.js","sourceRoot":"","sources":["../../src/DBEvent.ts"],"names":[],"mappings":"AAcA,MAAM,CAAC,OAAO,OAAO,OAAO;IAC1B,GAAG,CAAS;IACZ,QAAQ,CAAS;IACjB,SAAS,CAAS;IAClB,IAAI,CAAS;IACb,QAAQ,CAAW;IACnB,WAAW,CAAS;IACpB,QAAQ,CAAU;IAElB,YAAY,MAAgB;QAC1B,IAAI,CAAC,GAAG,GAAG,MAAM,CAAC,GAAG,IAAI,EAAE,CAAC;QAC5B,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,IAAI,EAAE,CAAC;QACtC,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,IAAI,EAAE,CAAC;QACxC,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QACxB,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;QAChC,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;QACtC,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,IAAI,KAAK,CAAC;IAC3C,CAAC;CACF"}
@@ -0,0 +1,33 @@
1
+ interface IDBNode {
2
+ _id?: string;
3
+ _parent: string | null;
4
+ _project: string | null;
5
+ _scene: string | null;
6
+ _blueprint: string | null;
7
+ layer: number;
8
+ index: number;
9
+ name: string;
10
+ platform: number;
11
+ language: number;
12
+ components: any[];
13
+ visible: boolean;
14
+ editor_visible: boolean;
15
+ }
16
+ export type { IDBNode };
17
+ export default class DBNode {
18
+ _id: string;
19
+ _parent: string | null;
20
+ _project: string;
21
+ _scene: string | null;
22
+ _blueprint: string | null;
23
+ index: number;
24
+ name: string;
25
+ layer: number;
26
+ components: any[];
27
+ visible: boolean;
28
+ platform: number;
29
+ language: number;
30
+ editor_visible: boolean;
31
+ constructor(dbItem: IDBNode);
32
+ }
33
+ //# sourceMappingURL=DBNode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DBNode.d.ts","sourceRoot":"","sources":["../../src/DBNode.ts"],"names":[],"mappings":"AAAA,UAAU,OAAO;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,GAAG,EAAE,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,EAAE,OAAO,CAAC;CACzB;AAED,YAAY,EAAE,OAAO,EAAE,CAAC;AAExB,MAAM,CAAC,OAAO,OAAO,MAAM;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,GAAG,EAAE,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,OAAO,CAAC;gBAEZ,MAAM,EAAE,OAAO;CAgB5B"}
@@ -0,0 +1,31 @@
1
+ export default class DBNode {
2
+ _id;
3
+ _parent;
4
+ _project;
5
+ _scene;
6
+ _blueprint;
7
+ index;
8
+ name;
9
+ layer;
10
+ components;
11
+ visible;
12
+ platform;
13
+ language;
14
+ editor_visible;
15
+ constructor(dbItem) {
16
+ this._id = dbItem._id || "";
17
+ this._parent = dbItem._parent;
18
+ this._project = dbItem._project || "";
19
+ this._scene = dbItem._scene;
20
+ this._blueprint = dbItem._blueprint;
21
+ this.index = dbItem.index;
22
+ this.name = dbItem.name;
23
+ this.components = dbItem.components;
24
+ this.visible = dbItem.visible;
25
+ this.editor_visible = dbItem.editor_visible;
26
+ this.platform = dbItem.platform;
27
+ this.language = dbItem.language;
28
+ this.layer = dbItem.layer;
29
+ }
30
+ }
31
+ //# sourceMappingURL=DBNode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DBNode.js","sourceRoot":"","sources":["../../src/DBNode.ts"],"names":[],"mappings":"AAkBA,MAAM,CAAC,OAAO,OAAO,MAAM;IACzB,GAAG,CAAS;IACZ,OAAO,CAAgB;IACvB,QAAQ,CAAS;IACjB,MAAM,CAAgB;IACtB,UAAU,CAAgB;IAE1B,KAAK,CAAS;IACd,IAAI,CAAS;IACb,KAAK,CAAS;IACd,UAAU,CAAQ;IAClB,OAAO,CAAU;IACjB,QAAQ,CAAS;IACjB,QAAQ,CAAS;IACjB,cAAc,CAAU;IAExB,YAAY,MAAe;QACzB,IAAI,CAAC,GAAG,GAAG,MAAM,CAAC,GAAG,IAAI,EAAE,CAAC;QAC5B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;QAC9B,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,IAAI,EAAE,CAAC;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;QAC5B,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;QACpC,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAC1B,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QACxB,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;QACpC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;QAC9B,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC;QAC5C,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;QAChC,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;QAChC,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;IAC5B,CAAC;CAEF"}
@@ -0,0 +1,11 @@
1
+ interface IDBScene {
2
+ _id?: string;
3
+ name: string;
4
+ }
5
+ export { type IDBScene };
6
+ export default class DBScene {
7
+ _id: string;
8
+ name: string;
9
+ constructor(dbItem: IDBScene);
10
+ }
11
+ //# sourceMappingURL=DBScene.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DBScene.d.ts","sourceRoot":"","sources":["../../src/DBScene.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,OAAO,EAAE,KAAK,QAAQ,EAAE,CAAA;AAExB,MAAM,CAAC,OAAO,OAAO,OAAO;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;gBAED,MAAM,EAAE,QAAQ;CAK7B"}
@@ -0,0 +1,9 @@
1
+ export default class DBScene {
2
+ _id;
3
+ name;
4
+ constructor(dbItem) {
5
+ this._id = dbItem._id || "";
6
+ this.name = dbItem.name;
7
+ }
8
+ }
9
+ //# sourceMappingURL=DBScene.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DBScene.js","sourceRoot":"","sources":["../../src/DBScene.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,OAAO,OAAO,OAAO;IAC1B,GAAG,CAAS;IACZ,IAAI,CAAS;IAEb,YAAY,MAAgB;QAC1B,IAAI,CAAC,GAAG,GAAG,MAAM,CAAC,GAAG,IAAI,EAAE,CAAC;QAC5B,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;IAC1B,CAAC;CAEF"}
@@ -0,0 +1,22 @@
1
+ import { DataType } from "./PEnums";
2
+ interface IDBVariable {
3
+ _id?: string;
4
+ _project?: string;
5
+ _customer?: string;
6
+ name: string;
7
+ dataType: DataType;
8
+ value: string;
9
+ description: string;
10
+ }
11
+ export { type IDBVariable };
12
+ export default class DBVariable {
13
+ _id: string;
14
+ _project: string;
15
+ _customer: string;
16
+ name: string;
17
+ value: string;
18
+ dataType: DataType;
19
+ description: string;
20
+ constructor(dbItem: IDBVariable);
21
+ }
22
+ //# sourceMappingURL=DBVariable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DBVariable.d.ts","sourceRoot":"","sources":["../../src/DBVariable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,UAAU,WAAW;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,QAAQ,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,OAAO,EAAE,KAAK,WAAW,EAAE,CAAC;AAE5B,MAAM,CAAC,OAAO,OAAO,UAAU;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,QAAQ,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;gBAER,MAAM,EAAE,WAAW;CAShC"}
@@ -0,0 +1,19 @@
1
+ export default class DBVariable {
2
+ _id;
3
+ _project;
4
+ _customer;
5
+ name;
6
+ value;
7
+ dataType;
8
+ description;
9
+ constructor(dbItem) {
10
+ this._id = dbItem._id || "";
11
+ this._project = dbItem._project || "";
12
+ this._customer = dbItem._customer || "";
13
+ this.name = dbItem.name;
14
+ this.value = dbItem.value;
15
+ this.dataType = dbItem.dataType;
16
+ this.description = dbItem.description;
17
+ }
18
+ }
19
+ //# sourceMappingURL=DBVariable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DBVariable.js","sourceRoot":"","sources":["../../src/DBVariable.ts"],"names":[],"mappings":"AAcA,MAAM,CAAC,OAAO,OAAO,UAAU;IAC7B,GAAG,CAAS;IACZ,QAAQ,CAAS;IACjB,SAAS,CAAS;IAClB,IAAI,CAAS;IACb,KAAK,CAAS;IACd,QAAQ,CAAW;IACnB,WAAW,CAAS;IAEpB,YAAY,MAAmB;QAC7B,IAAI,CAAC,GAAG,GAAG,MAAM,CAAC,GAAG,IAAI,EAAE,CAAC;QAC5B,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,IAAI,EAAE,CAAC;QACtC,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,IAAI,EAAE,CAAC;QACxC,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QACxB,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAC1B,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;QAChC,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;IACxC,CAAC;CACF"}
@@ -0,0 +1,4 @@
1
+ declare function orNull(value: string | null): string | null;
2
+ declare function orEmpty(value: string): string;
3
+ export { orNull, orEmpty };
4
+ //# sourceMappingURL=DevTools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DevTools.d.ts","sourceRoot":"","sources":["../../src/DevTools.ts"],"names":[],"mappings":"AAAA,iBAAS,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,iBAGnC;AAED,iBAAS,OAAO,CAAC,KAAK,EAAE,MAAM,UAE7B;AAED,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC"}