@p100-web/core 100.0.65 → 100.0.66

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 (345) hide show
  1. package/package.json +1 -1
  2. package/dist/src/AdaptivePerformance.d.ts +0 -20
  3. package/dist/src/AdaptivePerformance.d.ts.map +0 -1
  4. package/dist/src/AdaptivePerformance.js +0 -110
  5. package/dist/src/AdaptivePerformance.js.map +0 -1
  6. package/dist/src/DBEvent.d.ts +0 -22
  7. package/dist/src/DBEvent.d.ts.map +0 -1
  8. package/dist/src/DBEvent.js +0 -19
  9. package/dist/src/DBEvent.js.map +0 -1
  10. package/dist/src/DBNode.d.ts +0 -33
  11. package/dist/src/DBNode.d.ts.map +0 -1
  12. package/dist/src/DBNode.js +0 -31
  13. package/dist/src/DBNode.js.map +0 -1
  14. package/dist/src/DBScene.d.ts +0 -11
  15. package/dist/src/DBScene.d.ts.map +0 -1
  16. package/dist/src/DBScene.js +0 -9
  17. package/dist/src/DBScene.js.map +0 -1
  18. package/dist/src/DBVariable.d.ts +0 -22
  19. package/dist/src/DBVariable.d.ts.map +0 -1
  20. package/dist/src/DBVariable.js +0 -19
  21. package/dist/src/DBVariable.js.map +0 -1
  22. package/dist/src/DevTools.d.ts +0 -4
  23. package/dist/src/DevTools.d.ts.map +0 -1
  24. package/dist/src/DevTools.js +0 -10
  25. package/dist/src/DevTools.js.map +0 -1
  26. package/dist/src/GameContext.d.ts +0 -179
  27. package/dist/src/GameContext.d.ts.map +0 -1
  28. package/dist/src/GameContext.js +0 -594
  29. package/dist/src/GameContext.js.map +0 -1
  30. package/dist/src/IAudioListener.d.ts +0 -4
  31. package/dist/src/IAudioListener.d.ts.map +0 -1
  32. package/dist/src/IAudioListener.js +0 -2
  33. package/dist/src/IAudioListener.js.map +0 -1
  34. package/dist/src/ICameraControls.d.ts +0 -14
  35. package/dist/src/ICameraControls.d.ts.map +0 -1
  36. package/dist/src/ICameraControls.js +0 -2
  37. package/dist/src/ICameraControls.js.map +0 -1
  38. package/dist/src/ICameraNode.d.ts +0 -6
  39. package/dist/src/ICameraNode.d.ts.map +0 -1
  40. package/dist/src/ICameraNode.js +0 -2
  41. package/dist/src/ICameraNode.js.map +0 -1
  42. package/dist/src/IComponentFactory.d.ts +0 -8
  43. package/dist/src/IComponentFactory.d.ts.map +0 -1
  44. package/dist/src/IComponentFactory.js +0 -2
  45. package/dist/src/IComponentFactory.js.map +0 -1
  46. package/dist/src/IEngine.d.ts +0 -26
  47. package/dist/src/IEngine.d.ts.map +0 -1
  48. package/dist/src/IEngine.js +0 -2
  49. package/dist/src/IEngine.js.map +0 -1
  50. package/dist/src/IMaterial.d.ts +0 -5
  51. package/dist/src/IMaterial.d.ts.map +0 -1
  52. package/dist/src/IMaterial.js +0 -2
  53. package/dist/src/IMaterial.js.map +0 -1
  54. package/dist/src/IPCanvas.d.ts +0 -45
  55. package/dist/src/IPCanvas.d.ts.map +0 -1
  56. package/dist/src/IPCanvas.js +0 -2
  57. package/dist/src/IPCanvas.js.map +0 -1
  58. package/dist/src/IPNodeRenderer.d.ts +0 -23
  59. package/dist/src/IPNodeRenderer.d.ts.map +0 -1
  60. package/dist/src/IPNodeRenderer.js +0 -2
  61. package/dist/src/IPNodeRenderer.js.map +0 -1
  62. package/dist/src/IStats.d.ts +0 -9
  63. package/dist/src/IStats.d.ts.map +0 -1
  64. package/dist/src/IStats.js +0 -3
  65. package/dist/src/IStats.js.map +0 -1
  66. package/dist/src/MathTools.d.ts +0 -4
  67. package/dist/src/MathTools.d.ts.map +0 -1
  68. package/dist/src/MathTools.js +0 -7
  69. package/dist/src/MathTools.js.map +0 -1
  70. package/dist/src/PAction.d.ts +0 -64
  71. package/dist/src/PAction.d.ts.map +0 -1
  72. package/dist/src/PAction.js +0 -209
  73. package/dist/src/PAction.js.map +0 -1
  74. package/dist/src/PComponent.d.ts +0 -60
  75. package/dist/src/PComponent.d.ts.map +0 -1
  76. package/dist/src/PComponent.js +0 -44
  77. package/dist/src/PComponent.js.map +0 -1
  78. package/dist/src/PEnums.d.ts +0 -98
  79. package/dist/src/PEnums.d.ts.map +0 -1
  80. package/dist/src/PEnums.js +0 -110
  81. package/dist/src/PEnums.js.map +0 -1
  82. package/dist/src/PEvent.d.ts +0 -27
  83. package/dist/src/PEvent.d.ts.map +0 -1
  84. package/dist/src/PEvent.js +0 -40
  85. package/dist/src/PEvent.js.map +0 -1
  86. package/dist/src/PNode.d.ts +0 -111
  87. package/dist/src/PNode.d.ts.map +0 -1
  88. package/dist/src/PNode.js +0 -488
  89. package/dist/src/PNode.js.map +0 -1
  90. package/dist/src/PPayload.d.ts +0 -7
  91. package/dist/src/PPayload.d.ts.map +0 -1
  92. package/dist/src/PPayload.js +0 -19
  93. package/dist/src/PPayload.js.map +0 -1
  94. package/dist/src/PTypes.d.ts +0 -140
  95. package/dist/src/PTypes.d.ts.map +0 -1
  96. package/dist/src/PTypes.js +0 -2
  97. package/dist/src/PTypes.js.map +0 -1
  98. package/dist/src/PVariable.d.ts +0 -29
  99. package/dist/src/PVariable.d.ts.map +0 -1
  100. package/dist/src/PVariable.js +0 -51
  101. package/dist/src/PVariable.js.map +0 -1
  102. package/dist/src/PVector2.d.ts +0 -14
  103. package/dist/src/PVector2.d.ts.map +0 -1
  104. package/dist/src/PVector2.js +0 -25
  105. package/dist/src/PVector2.js.map +0 -1
  106. package/dist/src/PVector3.d.ts +0 -17
  107. package/dist/src/PVector3.d.ts.map +0 -1
  108. package/dist/src/PVector3.js +0 -36
  109. package/dist/src/PVector3.js.map +0 -1
  110. package/dist/src/animations/IAnimationAction.d.ts +0 -9
  111. package/dist/src/animations/IAnimationAction.d.ts.map +0 -1
  112. package/dist/src/animations/IAnimationAction.js +0 -2
  113. package/dist/src/animations/IAnimationAction.js.map +0 -1
  114. package/dist/src/animations/IAnimationClip.d.ts +0 -5
  115. package/dist/src/animations/IAnimationClip.d.ts.map +0 -1
  116. package/dist/src/animations/IAnimationClip.js +0 -2
  117. package/dist/src/animations/IAnimationClip.js.map +0 -1
  118. package/dist/src/animations/IAnimationMixer.d.ts +0 -7
  119. package/dist/src/animations/IAnimationMixer.d.ts.map +0 -1
  120. package/dist/src/animations/IAnimationMixer.js +0 -2
  121. package/dist/src/animations/IAnimationMixer.js.map +0 -1
  122. package/dist/src/media/IMediaLoader.d.ts +0 -31
  123. package/dist/src/media/IMediaLoader.d.ts.map +0 -1
  124. package/dist/src/media/IMediaLoader.js +0 -2
  125. package/dist/src/media/IMediaLoader.js.map +0 -1
  126. package/dist/src/media/MediaManager.d.ts +0 -17
  127. package/dist/src/media/MediaManager.d.ts.map +0 -1
  128. package/dist/src/media/MediaManager.js +0 -19
  129. package/dist/src/media/MediaManager.js.map +0 -1
  130. package/dist/src/media/PFile.d.ts +0 -13
  131. package/dist/src/media/PFile.d.ts.map +0 -1
  132. package/dist/src/media/PFile.js +0 -28
  133. package/dist/src/media/PFile.js.map +0 -1
  134. package/dist/src/pcomponents/BaseBackground.d.ts +0 -27
  135. package/dist/src/pcomponents/BaseBackground.d.ts.map +0 -1
  136. package/dist/src/pcomponents/BaseBackground.js +0 -21
  137. package/dist/src/pcomponents/BaseBackground.js.map +0 -1
  138. package/dist/src/pcomponents/BaseMaterial.d.ts +0 -45
  139. package/dist/src/pcomponents/BaseMaterial.d.ts.map +0 -1
  140. package/dist/src/pcomponents/BaseMaterial.js +0 -47
  141. package/dist/src/pcomponents/BaseMaterial.js.map +0 -1
  142. package/dist/src/pcomponents/PAnimator.d.ts +0 -37
  143. package/dist/src/pcomponents/PAnimator.d.ts.map +0 -1
  144. package/dist/src/pcomponents/PAnimator.js +0 -43
  145. package/dist/src/pcomponents/PAnimator.js.map +0 -1
  146. package/dist/src/pcomponents/PBasicMaterial.d.ts +0 -23
  147. package/dist/src/pcomponents/PBasicMaterial.d.ts.map +0 -1
  148. package/dist/src/pcomponents/PBasicMaterial.js +0 -38
  149. package/dist/src/pcomponents/PBasicMaterial.js.map +0 -1
  150. package/dist/src/pcomponents/PCallAction.d.ts +0 -19
  151. package/dist/src/pcomponents/PCallAction.d.ts.map +0 -1
  152. package/dist/src/pcomponents/PCallAction.js +0 -25
  153. package/dist/src/pcomponents/PCallAction.js.map +0 -1
  154. package/dist/src/pcomponents/PCallActions.d.ts +0 -24
  155. package/dist/src/pcomponents/PCallActions.d.ts.map +0 -1
  156. package/dist/src/pcomponents/PCallActions.js +0 -38
  157. package/dist/src/pcomponents/PCallActions.js.map +0 -1
  158. package/dist/src/pcomponents/PCameraPosition.d.ts +0 -29
  159. package/dist/src/pcomponents/PCameraPosition.d.ts.map +0 -1
  160. package/dist/src/pcomponents/PCameraPosition.js +0 -76
  161. package/dist/src/pcomponents/PCameraPosition.js.map +0 -1
  162. package/dist/src/pcomponents/PCameraTarget.d.ts +0 -29
  163. package/dist/src/pcomponents/PCameraTarget.d.ts.map +0 -1
  164. package/dist/src/pcomponents/PCameraTarget.js +0 -77
  165. package/dist/src/pcomponents/PCameraTarget.js.map +0 -1
  166. package/dist/src/pcomponents/PCollider.d.ts +0 -39
  167. package/dist/src/pcomponents/PCollider.d.ts.map +0 -1
  168. package/dist/src/pcomponents/PCollider.js +0 -56
  169. package/dist/src/pcomponents/PCollider.js.map +0 -1
  170. package/dist/src/pcomponents/PCompareBoolean.d.ts +0 -23
  171. package/dist/src/pcomponents/PCompareBoolean.d.ts.map +0 -1
  172. package/dist/src/pcomponents/PCompareBoolean.js +0 -39
  173. package/dist/src/pcomponents/PCompareBoolean.js.map +0 -1
  174. package/dist/src/pcomponents/PCompareNumber.d.ts +0 -25
  175. package/dist/src/pcomponents/PCompareNumber.d.ts.map +0 -1
  176. package/dist/src/pcomponents/PCompareNumber.js +0 -45
  177. package/dist/src/pcomponents/PCompareNumber.js.map +0 -1
  178. package/dist/src/pcomponents/PCompareString.d.ts +0 -25
  179. package/dist/src/pcomponents/PCompareString.d.ts.map +0 -1
  180. package/dist/src/pcomponents/PCompareString.js +0 -43
  181. package/dist/src/pcomponents/PCompareString.js.map +0 -1
  182. package/dist/src/pcomponents/PCompareVariable.d.ts +0 -28
  183. package/dist/src/pcomponents/PCompareVariable.d.ts.map +0 -1
  184. package/dist/src/pcomponents/PCompareVariable.js +0 -51
  185. package/dist/src/pcomponents/PCompareVariable.js.map +0 -1
  186. package/dist/src/pcomponents/PControllerInput.d.ts +0 -30
  187. package/dist/src/pcomponents/PControllerInput.d.ts.map +0 -1
  188. package/dist/src/pcomponents/PControllerInput.js +0 -42
  189. package/dist/src/pcomponents/PControllerInput.js.map +0 -1
  190. package/dist/src/pcomponents/PCubeGeometry.d.ts +0 -18
  191. package/dist/src/pcomponents/PCubeGeometry.d.ts.map +0 -1
  192. package/dist/src/pcomponents/PCubeGeometry.js +0 -22
  193. package/dist/src/pcomponents/PCubeGeometry.js.map +0 -1
  194. package/dist/src/pcomponents/PDebug.d.ts +0 -21
  195. package/dist/src/pcomponents/PDebug.d.ts.map +0 -1
  196. package/dist/src/pcomponents/PDebug.js +0 -31
  197. package/dist/src/pcomponents/PDebug.js.map +0 -1
  198. package/dist/src/pcomponents/PEnvironment.d.ts +0 -28
  199. package/dist/src/pcomponents/PEnvironment.d.ts.map +0 -1
  200. package/dist/src/pcomponents/PEnvironment.js +0 -44
  201. package/dist/src/pcomponents/PEnvironment.js.map +0 -1
  202. package/dist/src/pcomponents/PFadeAnimation.d.ts +0 -30
  203. package/dist/src/pcomponents/PFadeAnimation.d.ts.map +0 -1
  204. package/dist/src/pcomponents/PFadeAnimation.js +0 -94
  205. package/dist/src/pcomponents/PFadeAnimation.js.map +0 -1
  206. package/dist/src/pcomponents/PHud.d.ts +0 -12
  207. package/dist/src/pcomponents/PHud.d.ts.map +0 -1
  208. package/dist/src/pcomponents/PHud.js +0 -12
  209. package/dist/src/pcomponents/PHud.js.map +0 -1
  210. package/dist/src/pcomponents/PImageBackground.d.ts +0 -13
  211. package/dist/src/pcomponents/PImageBackground.d.ts.map +0 -1
  212. package/dist/src/pcomponents/PImageBackground.js +0 -18
  213. package/dist/src/pcomponents/PImageBackground.js.map +0 -1
  214. package/dist/src/pcomponents/PImageCache.d.ts +0 -22
  215. package/dist/src/pcomponents/PImageCache.d.ts.map +0 -1
  216. package/dist/src/pcomponents/PImageCache.js +0 -69
  217. package/dist/src/pcomponents/PImageCache.js.map +0 -1
  218. package/dist/src/pcomponents/PImageDetector.d.ts +0 -28
  219. package/dist/src/pcomponents/PImageDetector.d.ts.map +0 -1
  220. package/dist/src/pcomponents/PImageDetector.js +0 -38
  221. package/dist/src/pcomponents/PImageDetector.js.map +0 -1
  222. package/dist/src/pcomponents/PLight.d.ts +0 -15
  223. package/dist/src/pcomponents/PLight.d.ts.map +0 -1
  224. package/dist/src/pcomponents/PLight.js +0 -18
  225. package/dist/src/pcomponents/PLight.js.map +0 -1
  226. package/dist/src/pcomponents/PLightDirectional.d.ts +0 -19
  227. package/dist/src/pcomponents/PLightDirectional.d.ts.map +0 -1
  228. package/dist/src/pcomponents/PLightDirectional.js +0 -24
  229. package/dist/src/pcomponents/PLightDirectional.js.map +0 -1
  230. package/dist/src/pcomponents/PMaskedMaterial.d.ts +0 -20
  231. package/dist/src/pcomponents/PMaskedMaterial.d.ts.map +0 -1
  232. package/dist/src/pcomponents/PMaskedMaterial.js +0 -35
  233. package/dist/src/pcomponents/PMaskedMaterial.js.map +0 -1
  234. package/dist/src/pcomponents/PModelGLTF.d.ts +0 -33
  235. package/dist/src/pcomponents/PModelGLTF.d.ts.map +0 -1
  236. package/dist/src/pcomponents/PModelGLTF.js +0 -53
  237. package/dist/src/pcomponents/PModelGLTF.js.map +0 -1
  238. package/dist/src/pcomponents/PMoveAnimation.d.ts +0 -22
  239. package/dist/src/pcomponents/PMoveAnimation.d.ts.map +0 -1
  240. package/dist/src/pcomponents/PMoveAnimation.js +0 -44
  241. package/dist/src/pcomponents/PMoveAnimation.js.map +0 -1
  242. package/dist/src/pcomponents/PMoveToAnimation.d.ts +0 -26
  243. package/dist/src/pcomponents/PMoveToAnimation.d.ts.map +0 -1
  244. package/dist/src/pcomponents/PMoveToAnimation.js +0 -79
  245. package/dist/src/pcomponents/PMoveToAnimation.js.map +0 -1
  246. package/dist/src/pcomponents/PPhysicalMaterial.d.ts +0 -27
  247. package/dist/src/pcomponents/PPhysicalMaterial.d.ts.map +0 -1
  248. package/dist/src/pcomponents/PPhysicalMaterial.js +0 -41
  249. package/dist/src/pcomponents/PPhysicalMaterial.js.map +0 -1
  250. package/dist/src/pcomponents/PPlaneDetector.d.ts +0 -20
  251. package/dist/src/pcomponents/PPlaneDetector.d.ts.map +0 -1
  252. package/dist/src/pcomponents/PPlaneDetector.js +0 -26
  253. package/dist/src/pcomponents/PPlaneDetector.js.map +0 -1
  254. package/dist/src/pcomponents/PPlaneGeometry.d.ts +0 -20
  255. package/dist/src/pcomponents/PPlaneGeometry.d.ts.map +0 -1
  256. package/dist/src/pcomponents/PPlaneGeometry.js +0 -25
  257. package/dist/src/pcomponents/PPlaneGeometry.js.map +0 -1
  258. package/dist/src/pcomponents/PProjectRoot.d.ts +0 -38
  259. package/dist/src/pcomponents/PProjectRoot.d.ts.map +0 -1
  260. package/dist/src/pcomponents/PProjectRoot.js +0 -82
  261. package/dist/src/pcomponents/PProjectRoot.js.map +0 -1
  262. package/dist/src/pcomponents/PRotateAnimation.d.ts +0 -30
  263. package/dist/src/pcomponents/PRotateAnimation.d.ts.map +0 -1
  264. package/dist/src/pcomponents/PRotateAnimation.js +0 -72
  265. package/dist/src/pcomponents/PRotateAnimation.js.map +0 -1
  266. package/dist/src/pcomponents/PScaleAnimation.d.ts +0 -28
  267. package/dist/src/pcomponents/PScaleAnimation.d.ts.map +0 -1
  268. package/dist/src/pcomponents/PScaleAnimation.js +0 -75
  269. package/dist/src/pcomponents/PScaleAnimation.js.map +0 -1
  270. package/dist/src/pcomponents/PSceneContainer.d.ts +0 -22
  271. package/dist/src/pcomponents/PSceneContainer.d.ts.map +0 -1
  272. package/dist/src/pcomponents/PSceneContainer.js +0 -50
  273. package/dist/src/pcomponents/PSceneContainer.js.map +0 -1
  274. package/dist/src/pcomponents/PSceneRoot.d.ts +0 -16
  275. package/dist/src/pcomponents/PSceneRoot.d.ts.map +0 -1
  276. package/dist/src/pcomponents/PSceneRoot.js +0 -22
  277. package/dist/src/pcomponents/PSceneRoot.js.map +0 -1
  278. package/dist/src/pcomponents/PSlider.d.ts +0 -28
  279. package/dist/src/pcomponents/PSlider.d.ts.map +0 -1
  280. package/dist/src/pcomponents/PSlider.js +0 -37
  281. package/dist/src/pcomponents/PSlider.js.map +0 -1
  282. package/dist/src/pcomponents/PSound.d.ts +0 -34
  283. package/dist/src/pcomponents/PSound.d.ts.map +0 -1
  284. package/dist/src/pcomponents/PSound.js +0 -44
  285. package/dist/src/pcomponents/PSound.js.map +0 -1
  286. package/dist/src/pcomponents/PSphereGeometry.d.ts +0 -19
  287. package/dist/src/pcomponents/PSphereGeometry.d.ts.map +0 -1
  288. package/dist/src/pcomponents/PSphereGeometry.js +0 -24
  289. package/dist/src/pcomponents/PSphereGeometry.js.map +0 -1
  290. package/dist/src/pcomponents/PSprite.d.ts +0 -19
  291. package/dist/src/pcomponents/PSprite.d.ts.map +0 -1
  292. package/dist/src/pcomponents/PSprite.js +0 -26
  293. package/dist/src/pcomponents/PSprite.js.map +0 -1
  294. package/dist/src/pcomponents/PSpriteAnimation.d.ts +0 -25
  295. package/dist/src/pcomponents/PSpriteAnimation.d.ts.map +0 -1
  296. package/dist/src/pcomponents/PSpriteAnimation.js +0 -29
  297. package/dist/src/pcomponents/PSpriteAnimation.js.map +0 -1
  298. package/dist/src/pcomponents/PText.d.ts +0 -35
  299. package/dist/src/pcomponents/PText.d.ts.map +0 -1
  300. package/dist/src/pcomponents/PText.js +0 -48
  301. package/dist/src/pcomponents/PText.js.map +0 -1
  302. package/dist/src/pcomponents/PTransform.d.ts +0 -22
  303. package/dist/src/pcomponents/PTransform.d.ts.map +0 -1
  304. package/dist/src/pcomponents/PTransform.js +0 -37
  305. package/dist/src/pcomponents/PTransform.js.map +0 -1
  306. package/dist/src/pcomponents/PVarList.d.ts +0 -26
  307. package/dist/src/pcomponents/PVarList.d.ts.map +0 -1
  308. package/dist/src/pcomponents/PVarList.js +0 -52
  309. package/dist/src/pcomponents/PVarList.js.map +0 -1
  310. package/dist/src/pcomponents/PVarReader.d.ts +0 -19
  311. package/dist/src/pcomponents/PVarReader.d.ts.map +0 -1
  312. package/dist/src/pcomponents/PVarReader.js +0 -26
  313. package/dist/src/pcomponents/PVarReader.js.map +0 -1
  314. package/dist/src/pcomponents/PVarWriter.d.ts +0 -25
  315. package/dist/src/pcomponents/PVarWriter.d.ts.map +0 -1
  316. package/dist/src/pcomponents/PVarWriter.js +0 -46
  317. package/dist/src/pcomponents/PVarWriter.js.map +0 -1
  318. package/dist/src/pcomponents/PVideoBackground.d.ts +0 -36
  319. package/dist/src/pcomponents/PVideoBackground.d.ts.map +0 -1
  320. package/dist/src/pcomponents/PVideoBackground.js +0 -89
  321. package/dist/src/pcomponents/PVideoBackground.js.map +0 -1
  322. package/dist/src/pcomponents/PVideoMaterial.d.ts +0 -26
  323. package/dist/src/pcomponents/PVideoMaterial.d.ts.map +0 -1
  324. package/dist/src/pcomponents/PVideoMaterial.js +0 -40
  325. package/dist/src/pcomponents/PVideoMaterial.js.map +0 -1
  326. package/dist/src/pcomponents/PVideoPlayer.d.ts +0 -31
  327. package/dist/src/pcomponents/PVideoPlayer.d.ts.map +0 -1
  328. package/dist/src/pcomponents/PVideoPlayer.js +0 -70
  329. package/dist/src/pcomponents/PVideoPlayer.js.map +0 -1
  330. package/dist/src/pcomponents/PVisibility.d.ts +0 -33
  331. package/dist/src/pcomponents/PVisibility.d.ts.map +0 -1
  332. package/dist/src/pcomponents/PVisibility.js +0 -62
  333. package/dist/src/pcomponents/PVisibility.js.map +0 -1
  334. package/dist/src/pcomponents/PXRTools.d.ts +0 -32
  335. package/dist/src/pcomponents/PXRTools.d.ts.map +0 -1
  336. package/dist/src/pcomponents/PXRTools.js +0 -45
  337. package/dist/src/pcomponents/PXRTools.js.map +0 -1
  338. package/dist/src/settings/Settings_Base.d.ts +0 -7
  339. package/dist/src/settings/Settings_Base.d.ts.map +0 -1
  340. package/dist/src/settings/Settings_Base.js +0 -18
  341. package/dist/src/settings/Settings_Base.js.map +0 -1
  342. package/dist/src/settings/Settings_Threejs.d.ts +0 -9
  343. package/dist/src/settings/Settings_Threejs.d.ts.map +0 -1
  344. package/dist/src/settings/Settings_Threejs.js +0 -172
  345. package/dist/src/settings/Settings_Threejs.js.map +0 -1
@@ -1,94 +0,0 @@
1
- import PComponent from "../PComponent";
2
- import { PInAction, POutAction } from "../PAction";
3
- import { Easing, Tween } from "@tweenjs/tween.js";
4
- export default class PFadeAnimation extends PComponent {
5
- inevent_fadeInOn;
6
- inevent_fadeOutOn;
7
- outevent_onFadeOut;
8
- outevent_onFadeIn;
9
- duration = 1000;
10
- _tween = null;
11
- _maxValue = 1.0;
12
- constructor(dbComponent, node, context) {
13
- super("PFadeAnimation", "Fade Animation", node, context);
14
- this.inevent_fadeInOn = node.registerInAction("Fade In", dbComponent.inevent_fadeInOn, this.callback_onFadeIn);
15
- this.inevent_fadeOutOn = node.registerInAction("Fade Out", dbComponent.inevent_fadeOutOn, this.callback_onFadeOut);
16
- this.outevent_onFadeOut = node.registerOutAction(dbComponent.outevent_onFadeOut);
17
- this.outevent_onFadeIn = node.registerOutAction(dbComponent.outevent_onFadeIn);
18
- this.duration = dbComponent.duration;
19
- }
20
- toDB() {
21
- return {
22
- ...super.toDB(),
23
- inevent_fadeInOn: PInAction.toDB(this.inevent_fadeInOn),
24
- inevent_fadeOutOn: PInAction.toDB(this.inevent_fadeOutOn),
25
- duration: this.duration,
26
- outevent_onFadeOut: POutAction.toDB(this.outevent_onFadeOut),
27
- outevent_onFadeIn: POutAction.toDB(this.outevent_onFadeIn),
28
- };
29
- }
30
- render() { }
31
- unrender() {
32
- if (this._tween !== null) {
33
- this._tween.stop();
34
- this._tween = null;
35
- }
36
- }
37
- play() {
38
- if (!this.node.hasEl())
39
- return;
40
- const material = this.context.getNodeRenderer().getIMaterial(this.node);
41
- if (material === null)
42
- return;
43
- this._maxValue = material.opacity;
44
- if (this.node.isVisible()) {
45
- material.opacity = this._maxValue;
46
- }
47
- else {
48
- material.opacity = 0;
49
- }
50
- }
51
- callback_onFadeIn = () => {
52
- if (!this.node.isRunning() || !this.node.hasEl()) {
53
- return;
54
- }
55
- if (this._tween !== null) {
56
- this._tween.stop();
57
- this._tween = null;
58
- }
59
- const material = this.context.getNodeRenderer().getIMaterial(this.node);
60
- const distance = this._maxValue - material.opacity;
61
- this.node.setVisible(true);
62
- this._tween = new Tween(material)
63
- .easing(Easing.Quadratic.InOut)
64
- .to({ opacity: this._maxValue }, this.duration * distance)
65
- .start()
66
- .onComplete(() => {
67
- this._tween = null;
68
- this.outevent_onFadeIn?.emit(null, this);
69
- });
70
- this.context.addTween(this._tween);
71
- };
72
- callback_onFadeOut = () => {
73
- if (!this.node.isRunning() || !this.node.hasEl()) {
74
- return;
75
- }
76
- if (this._tween !== null) {
77
- this._tween.stop();
78
- this._tween = null;
79
- }
80
- const material = this.context.getNodeRenderer().getIMaterial(this.node);
81
- const distance = this._maxValue - (this._maxValue - material.opacity);
82
- this._tween = new Tween(material)
83
- .easing(Easing.Quadratic.InOut)
84
- .to({ opacity: 0 }, this.duration * distance)
85
- .start()
86
- .onComplete(() => {
87
- this._tween = null;
88
- this.node.setVisible(false);
89
- this.outevent_onFadeOut?.emit(null, this);
90
- });
91
- this.context.addTween(this._tween);
92
- };
93
- }
94
- //# sourceMappingURL=PFadeAnimation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PFadeAnimation.js","sourceRoot":"","sources":["../../../src/pcomponents/PFadeAnimation.ts"],"names":[],"mappings":"AAAA,OAAO,UAA2B,MAAM,eAAe,CAAC;AACxD,OAAO,EAAyB,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAG1E,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAalD,MAAM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,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;aAC5C,KAAK,EAAE;aACP,UAAU,CAAC,GAAG,EAAE;YACf,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;YACnB,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;YAC5B,IAAI,CAAC,kBAAkB,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAC5C,CAAC,CAAC,CAAC;QACL,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC,CAAC;CACH"}
@@ -1,12 +0,0 @@
1
- import GameContext from "../GameContext";
2
- import PNode from "../PNode";
3
- import PComponent, { DBComponent } from "../PComponent";
4
- interface DBHud extends DBComponent {
5
- }
6
- export type { DBHud };
7
- export default class PHud extends PComponent {
8
- constructor(_dbComponent: DBHud, node: PNode, context: GameContext);
9
- render(): void;
10
- unrender(): void;
11
- }
12
- //# sourceMappingURL=PHud.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PHud.d.ts","sourceRoot":"","sources":["../../../src/pcomponents/PHud.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAExD,UAAU,KAAM,SAAQ,WAAW;CAAG;AAEtC,YAAY,EAAE,KAAK,EAAE,CAAC;AAEtB,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,UAAU;gBAC9B,YAAY,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW;IAKlE,MAAM;IAIN,QAAQ,IAAI,IAAI;CACjB"}
@@ -1,12 +0,0 @@
1
- import PComponent from "../PComponent";
2
- export default class PHud extends PComponent {
3
- constructor(_dbComponent, node, context) {
4
- super("PHud", "Hud", node, context);
5
- this.abstract = true;
6
- }
7
- render() {
8
- this.context.getNodeRenderer().addToCamera(this.node);
9
- }
10
- unrender() { }
11
- }
12
- //# sourceMappingURL=PHud.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PHud.js","sourceRoot":"","sources":["../../../src/pcomponents/PHud.ts"],"names":[],"mappings":"AAEA,OAAO,UAA2B,MAAM,eAAe,CAAC;AAMxD,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,UAAU;IAC1C,YAAY,YAAmB,EAAE,IAAW,EAAE,OAAoB;QAChE,KAAK,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QACpC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;IACvB,CAAC;IAED,MAAM;QACJ,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACxD,CAAC;IAED,QAAQ,KAAU,CAAC;CACpB"}
@@ -1,13 +0,0 @@
1
- import GameContext from "../GameContext";
2
- import BaseBackground, { DBBaseBackground } from "./BaseBackground";
3
- import PNode from "../PNode";
4
- interface DBImageBackground extends DBBaseBackground {
5
- }
6
- export type { DBImageBackground };
7
- export default abstract class PImageBackground extends BaseBackground {
8
- constructor(dbComponent: DBImageBackground, node: PNode, context: GameContext);
9
- dispose(): void;
10
- protected abstract _dispose(unrender: boolean): void;
11
- unrender(): void;
12
- }
13
- //# sourceMappingURL=PImageBackground.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PImageBackground.d.ts","sourceRoot":"","sources":["../../../src/pcomponents/PImageBackground.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,cAAc,EAAE,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,KAAK,MAAM,UAAU,CAAC;AAE7B,UAAU,iBAAkB,SAAQ,gBAAgB;CAAG;AAEvD,YAAY,EAAE,iBAAiB,EAAE,CAAC;AAElC,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,gBAC5B,SAAQ,cAAc;gBAGpB,WAAW,EAAE,iBAAiB,EAC9B,IAAI,EAAE,KAAK,EACX,OAAO,EAAE,WAAW;IAStB,OAAO;IAKP,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI;IAEpD,QAAQ;CAIT"}
@@ -1,18 +0,0 @@
1
- import BaseBackground from "./BaseBackground";
2
- export default class PImageBackground extends BaseBackground {
3
- constructor(dbComponent, node, context) {
4
- super("PImageBackground", "Image Background", dbComponent, node, context);
5
- }
6
- //
7
- // PComponent
8
- //
9
- dispose() {
10
- // Release files
11
- if (this.file_texture)
12
- this.context.releaseFile(this.file_texture);
13
- }
14
- unrender() {
15
- this._dispose(true);
16
- }
17
- }
18
- //# sourceMappingURL=PImageBackground.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PImageBackground.js","sourceRoot":"","sources":["../../../src/pcomponents/PImageBackground.ts"],"names":[],"mappings":"AACA,OAAO,cAAoC,MAAM,kBAAkB,CAAC;AAOpE,MAAM,CAAC,OAAO,OAAgB,gBAC5B,SAAQ,cAAc;IAEtB,YACE,WAA8B,EAC9B,IAAW,EACX,OAAoB;QAEpB,KAAK,CAAC,kBAAkB,EAAE,kBAAkB,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAED,EAAE;IACF,cAAc;IACd,EAAE;IAEF,OAAO;QACL,gBAAgB;QAChB,IAAI,IAAI,CAAC,YAAY;YAAE,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IACrE,CAAC;IAID,QAAQ;QACN,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CAEF"}
@@ -1,22 +0,0 @@
1
- import GameContext from "../GameContext";
2
- import PNode from "../PNode";
3
- import PComponent, { DBComponent, type IImageLoader } from "../PComponent";
4
- import PFile from "../media/PFile";
5
- interface DBImageCache extends DBComponent {
6
- files_textures: (string | null)[] | null;
7
- size: number;
8
- }
9
- export type { DBImageCache };
10
- export default class PImageCache extends PComponent implements IImageLoader {
11
- _cacheKeys: number[];
12
- size: number;
13
- files_textures: (PFile | null)[];
14
- constructor(dbComponent: DBImageCache, node: PNode, context: GameContext);
15
- toDB(): DBImageCache;
16
- onImageLoaded(file: PFile, _img: any, cacheKey: number): void;
17
- dispose(): void;
18
- unrender(): void;
19
- render(): void;
20
- editor_setFile(_index: number, _file: string | null): void;
21
- }
22
- //# sourceMappingURL=PImageCache.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PImageCache.d.ts","sourceRoot":"","sources":["../../../src/pcomponents/PImageCache.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,KAAK,MAAM,gBAAgB,CAAC;AAEnC,UAAU,YAAa,SAAQ,WAAW;IACxC,cAAc,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC;IACzC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,YAAY,EAAE,YAAY,EAAE,CAAC;AAE7B,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,UAAW,YAAW,YAAY;IACzE,UAAU,EAAE,MAAM,EAAE,CAAC;IAErB,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,CAAC,KAAK,GAAG,IAAI,CAAC,EAAE,CAAC;gBAErB,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW;IAmBxE,IAAI,IAAI,YAAY;IAWpB,aAAa,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;IAS7D,OAAO;IAOP,QAAQ;IAaR,MAAM;IAUN,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;CACpD"}
@@ -1,69 +0,0 @@
1
- import PComponent from "../PComponent";
2
- export default class PImageCache extends PComponent {
3
- _cacheKeys;
4
- size;
5
- files_textures;
6
- constructor(dbComponent, node, context) {
7
- super("PImageCache", "Image Cache", node, context);
8
- this.abstract = true;
9
- this.size = dbComponent.size || 0;
10
- this.files_textures = new Array(this.size);
11
- this._cacheKeys = new Array(this.size);
12
- const dbList = dbComponent.files_textures;
13
- const inArray = dbList || new Array(this.size);
14
- for (let i = 0; i < this.size; i++) {
15
- const dbValue = inArray[i];
16
- if (dbValue)
17
- this.files_textures[i] = this.context.requestFile(dbValue);
18
- else
19
- this.files_textures[i] = null;
20
- }
21
- }
22
- toDB() {
23
- const fileIds = this.files_textures
24
- .filter((f) => f !== null)
25
- .map((f) => f._id);
26
- return {
27
- ...super.toDB(),
28
- files_textures: fileIds,
29
- size: fileIds.length,
30
- };
31
- }
32
- onImageLoaded(file, _img, cacheKey) {
33
- const index = this.files_textures.indexOf(file);
34
- this._cacheKeys[index] = cacheKey;
35
- }
36
- //
37
- // LIFE CYCLE
38
- //
39
- dispose() {
40
- // Release files
41
- for (const file of this.files_textures) {
42
- if (file)
43
- this.context.releaseFile(file);
44
- }
45
- }
46
- unrender() {
47
- // Dispose textures
48
- let i = 0;
49
- for (const file of this.files_textures) {
50
- if (file) {
51
- const cacheKey = this._cacheKeys[i];
52
- this.context.imageLoader().disposeImage(this, file, cacheKey);
53
- this._cacheKeys[i] = 0;
54
- }
55
- i++;
56
- }
57
- }
58
- render() {
59
- for (const file of this.files_textures) {
60
- if (file)
61
- this.context.imageLoader().load(this, file);
62
- }
63
- }
64
- //
65
- // EDITOR
66
- //
67
- editor_setFile(_index, _file) { }
68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AO,CAAC,WAAW,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACxD,CAAC;IACH,CAAC;IAED,EAAE;IACF,UAAU;IACV,EAAE;IAEF,cAAc,CAAC,MAAc,EAAE,KAAoB,IAAG,CAAC;CACxD"}
@@ -1,28 +0,0 @@
1
- import GameContext from "../GameContext";
2
- import PNode from "../PNode";
3
- import { IOutAction, POutAction } from "../PAction";
4
- import PComponent, { DBComponent } from "../PComponent";
5
- import PFile from "../media/PFile";
6
- interface DBImageDetector extends DBComponent {
7
- file_image: string | null;
8
- width: number;
9
- move: boolean;
10
- rotate: boolean;
11
- attach: boolean;
12
- outevent_onDetect: IOutAction | null;
13
- }
14
- export type { DBImageDetector };
15
- export default class PImageDetector extends PComponent {
16
- file_image: PFile | null;
17
- width: number;
18
- move: boolean;
19
- rotate: boolean;
20
- attach: boolean;
21
- outevent_onDetect: POutAction | null;
22
- constructor(dbComponent: DBImageDetector, node: PNode, context: GameContext);
23
- toDB(): DBImageDetector;
24
- dispose(): void;
25
- render(): void;
26
- unrender(): void;
27
- }
28
- //# sourceMappingURL=PImageDetector.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PImageDetector.d.ts","sourceRoot":"","sources":["../../../src/pcomponents/PImageDetector.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,KAAK,MAAM,gBAAgB,CAAC;AAEnC,UAAU,eAAgB,SAAQ,WAAW;IAC3C,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,iBAAiB,EAAE,UAAU,GAAG,IAAI,CAAC;CACtC;AAED,YAAY,EAAE,eAAe,EAAE,CAAC;AAEhC,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,UAAU;IACpD,UAAU,EAAE,KAAK,GAAG,IAAI,CAAC;IAEzB,KAAK,EAAE,MAAM,CAAC;IAEd,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAEhB,iBAAiB,EAAE,UAAU,GAAG,IAAI,CAAC;gBAEzB,WAAW,EAAE,eAAe,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW;IAgB3E,IAAI,IAAI,eAAe;IAYvB,OAAO;IAKP,MAAM,IAAI,IAAI;IAEd,QAAQ,IAAI,IAAI;CACjB"}
@@ -1,38 +0,0 @@
1
- import { POutAction } from "../PAction";
2
- import PComponent from "../PComponent";
3
- export default class PImageDetector extends PComponent {
4
- file_image;
5
- width;
6
- move;
7
- rotate;
8
- attach;
9
- outevent_onDetect;
10
- constructor(dbComponent, node, context) {
11
- super("PImageDetector", "Image Detector", node, context);
12
- this.file_image = this.context.requestFile(dbComponent.file_image);
13
- this.width = dbComponent.width;
14
- this.move = dbComponent.move;
15
- this.rotate = dbComponent.rotate;
16
- this.attach = dbComponent.attach;
17
- this.outevent_onDetect = node.registerOutAction(dbComponent.outevent_onDetect);
18
- }
19
- toDB() {
20
- return {
21
- ...super.toDB(),
22
- file_image: this.file_image?._id || null,
23
- outevent_onDetect: POutAction.toDB(this.outevent_onDetect),
24
- width: this.width,
25
- move: this.move,
26
- rotate: this.rotate,
27
- attach: this.attach,
28
- };
29
- }
30
- dispose() {
31
- // Release files
32
- if (this.file_image)
33
- this.context.releaseFile(this.file_image);
34
- }
35
- render() { }
36
- unrender() { }
37
- }
38
- //# sourceMappingURL=PImageDetector.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PImageDetector.js","sourceRo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AI,IAAI,CAAC,UAAU;YAAE,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACjE,CAAC;IAED,MAAM,KAAU,CAAC;IAEjB,QAAQ,KAAU,CAAC;CACpB"}
@@ -1,15 +0,0 @@
1
- import GameContext from "../GameContext";
2
- import PNode from "../PNode";
3
- import PComponent, { DBComponent } from "../PComponent";
4
- interface DBLight extends DBComponent {
5
- color: string;
6
- intensity: number;
7
- }
8
- export type { DBLight };
9
- export default abstract class PLight extends PComponent {
10
- color: string;
11
- intensity: number;
12
- constructor(dbComponent: DBLight, node: PNode, context: GameContext);
13
- toDB(): DBLight;
14
- }
15
- //# sourceMappingURL=PLight.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PLight.d.ts","sourceRoot":"","sources":["../../../src/pcomponents/PLight.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAExD,UAAU,OAAQ,SAAQ,WAAW;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,YAAY,EAAE,OAAO,EAAE,CAAC;AAExB,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,MAAO,SAAQ,UAAU;IACrD,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;gBAEN,WAAW,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW;IAMnE,IAAI,IAAI,OAAO;CAOhB"}
@@ -1,18 +0,0 @@
1
- import PComponent from "../PComponent";
2
- export default class PLight extends PComponent {
3
- color;
4
- intensity;
5
- constructor(dbComponent, node, context) {
6
- super("PLight", "Ambient Light", node, context);
7
- this.color = dbComponent.color;
8
- this.intensity = dbComponent.intensity;
9
- }
10
- toDB() {
11
- return {
12
- ...super.toDB(),
13
- color: this.color,
14
- intensity: this.intensity,
15
- };
16
- }
17
- }
18
- //# sourceMappingURL=PLight.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PLight.js","sourceRoot":"","sources":["../../../src/pcomponents/PLight.ts"],"names":[],"mappings":"AAEA,OAAO,UAA2B,MAAM,eAAe,CAAC;AASxD,MAAM,CAAC,OAAO,OAAgB,MAAO,SAAQ,UAAU;IACrD,KAAK,CAAS;IACd,SAAS,CAAS;IAElB,YAAY,WAAoB,EAAE,IAAW,EAAE,OAAoB;QACjE,KAAK,CAAC,QAAQ,EAAE,eAAe,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAChD,IAAI,CAAC,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC;QAC/B,IAAI,CAAC,SAAS,GAAG,WAAW,CAAC,SAAS,CAAC;IACzC,CAAC;IAED,IAAI;QACF,OAAO;YACL,GAAG,KAAK,CAAC,IAAI,EAAE;YACf,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,SAAS,EAAE,IAAI,CAAC,SAAS;SAC1B,CAAC;IACJ,CAAC;CACF"}
@@ -1,19 +0,0 @@
1
- import GameContext from "../GameContext";
2
- import PNode from "../PNode";
3
- import PComponent, { DBComponent } from "../PComponent";
4
- interface DBLightDirectional extends DBComponent {
5
- color: string;
6
- intensity: number;
7
- shadowSize: number;
8
- castShadow: boolean;
9
- }
10
- export type { DBLightDirectional };
11
- export default abstract class PLightDirectional extends PComponent {
12
- color: string;
13
- intensity: number;
14
- shadowSize: number;
15
- castShadow: boolean;
16
- constructor(dbComponent: DBLightDirectional, node: PNode, context: GameContext);
17
- toDB(): DBLightDirectional;
18
- }
19
- //# sourceMappingURL=PLightDirectional.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PLightDirectional.d.ts","sourceRoot":"","sources":["../../../src/pcomponents/PLightDirectional.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAExD,UAAU,kBAAmB,SAAQ,WAAW;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,YAAY,EAAE,kBAAkB,EAAE,CAAC;AAEnC,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,iBAAkB,SAAQ,UAAU;IAChE,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;gBAGlB,WAAW,EAAE,kBAAkB,EAC/B,IAAI,EAAE,KAAK,EACX,OAAO,EAAE,WAAW;IAUtB,IAAI,IAAI,kBAAkB;CAS3B"}
@@ -1,24 +0,0 @@
1
- import PComponent from "../PComponent";
2
- export default class PLightDirectional extends PComponent {
3
- color;
4
- intensity;
5
- shadowSize;
6
- castShadow;
7
- constructor(dbComponent, node, context) {
8
- super("PLightDirectional", "Directional Light", node, context);
9
- this.shadowSize = dbComponent.shadowSize;
10
- this.color = dbComponent.color;
11
- this.intensity = dbComponent.intensity;
12
- this.castShadow = dbComponent.castShadow;
13
- }
14
- toDB() {
15
- return {
16
- ...super.toDB(),
17
- shadowSize: this.shadowSize,
18
- castShadow: this.castShadow,
19
- color: this.color,
20
- intensity: this.intensity,
21
- };
22
- }
23
- }
24
- //# sourceMappingURL=PLightDirectional.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PLightDirectional.js","sourceRoot":"","sources":["../../../src/pcomponents/PLightDirectional.ts"],"names":[],"mappings":"AAEA,OAAO,UAA2B,MAAM,eAAe,CAAC;AAWxD,MAAM,CAAC,OAAO,OAAgB,iBAAkB,SAAQ,UAAU;IAChE,KAAK,CAAS;IACd,SAAS,CAAS;IAClB,UAAU,CAAS;IACnB,UAAU,CAAU;IAEpB,YACE,WAA+B,EAC/B,IAAW,EACX,OAAoB;QAEpB,KAAK,CAAC,mBAAmB,EAAE,mBAAmB,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAE/D,IAAI,CAAC,UAAU,GAAG,WAAW,CAAC,UAAU,CAAC;QACzC,IAAI,CAAC,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC;QAC/B,IAAI,CAAC,SAAS,GAAG,WAAW,CAAC,SAAS,CAAC;QACvC,IAAI,CAAC,UAAU,GAAG,WAAW,CAAC,UAAU,CAAC;IAC3C,CAAC;IAED,IAAI;QACF,OAAO;YACL,GAAG,KAAK,CAAC,IAAI,EAAE;YACf,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,SAAS,EAAE,IAAI,CAAC,SAAS;SAC1B,CAAC;IACJ,CAAC;CACF"}
@@ -1,20 +0,0 @@
1
- import BaseMaterial, { DBBaseMaterial } from "./BaseMaterial";
2
- import GameContext from "../GameContext";
3
- import PNode from "../PNode";
4
- interface DBMaskedMaterial extends DBBaseMaterial {
5
- maskColor: string;
6
- maskThreshold: number;
7
- maskSoftness: number;
8
- }
9
- export type { DBMaskedMaterial };
10
- export default abstract class PMaskedMaterial extends BaseMaterial {
11
- maskColor: string;
12
- maskThreshold: number;
13
- maskSoftness: number;
14
- constructor(dbComponent: DBMaskedMaterial, node: PNode, context: GameContext);
15
- toDB(): DBMaskedMaterial;
16
- protected abstract _dispose(unrender: boolean): void;
17
- dispose(): void;
18
- unrender(): void;
19
- }
20
- //# sourceMappingURL=PMaskedMaterial.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PMaskedMaterial.d.ts","sourceRoot":"","sources":["../../../src/pcomponents/PMaskedMaterial.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,EAAE,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,UAAU,CAAC;AAE7B,UAAU,gBAAiB,SAAQ,cAAc;IAC/C,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,YAAY,EAAE,gBAAgB,EAAE,CAAC;AAEjC,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,eAAgB,SAAQ,YAAY;IAChE,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;gBAGnB,WAAW,EAAE,gBAAgB,EAC7B,IAAI,EAAE,KAAK,EACX,OAAO,EAAE,WAAW;IActB,IAAI,IAAI,gBAAgB;IAaxB,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI;IAEpD,OAAO;IAKP,QAAQ;CAKT"}
@@ -1,35 +0,0 @@
1
- import BaseMaterial from "./BaseMaterial";
2
- export default class PMaskedMaterial extends BaseMaterial {
3
- maskColor;
4
- maskThreshold;
5
- maskSoftness;
6
- constructor(dbComponent, node, context) {
7
- super("PMaskedMaterial", "Masked Material", dbComponent, node, context);
8
- this.maskColor = dbComponent.maskColor;
9
- this.maskThreshold = dbComponent.maskThreshold;
10
- this.maskSoftness = dbComponent.maskSoftness;
11
- // Support image
12
- this.isImageMaterial = true;
13
- // Support video
14
- this.isVideoMaterial = true;
15
- }
16
- toDB() {
17
- return {
18
- ...super.toDB(),
19
- maskColor: this.maskColor,
20
- maskThreshold: this.maskThreshold,
21
- maskSoftness: this.maskSoftness,
22
- };
23
- }
24
- dispose() {
25
- // Release files
26
- if (this.file_texture)
27
- this.context.releaseFile(this.file_texture);
28
- }
29
- unrender() {
30
- this._dispose(true);
31
- // Unregister as material for PNode
32
- this.node.material = null;
33
- }
34
- }
35
- //# sourceMappingURL=PMaskedMaterial.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PMaskedMaterial.js","sourceRoot":"","sources":["../../../src/pcomponents/PMaskedMaterial.ts"],"names":[],"mappings":"AAAA,OAAO,YAAgC,MAAM,gBAAgB,CAAC;AAY9D,MAAM,CAAC,OAAO,OAAgB,eAAgB,SAAQ,YAAY;IAChE,SAAS,CAAS;IAClB,aAAa,CAAS;IACtB,YAAY,CAAS;IAErB,YACE,WAA6B,EAC7B,IAAW,EACX,OAAoB;QAEpB,KAAK,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAExE,IAAI,CAAC,SAAS,GAAG,WAAW,CAAC,SAAS,CAAC;QACvC,IAAI,CAAC,aAAa,GAAG,WAAW,CAAC,aAAa,CAAC;QAC/C,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC,YAAY,CAAC;QAE7C,gBAAgB;QAChB,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC;QAC5B,gBAAgB;QAChB,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC;IAC9B,CAAC;IAED,IAAI;QACF,OAAO;YACL,GAAG,KAAK,CAAC,IAAI,EAAE;YACf,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,YAAY,EAAE,IAAI,CAAC,YAAY;SAChC,CAAC;IACJ,CAAC;IAQD,OAAO;QACL,gBAAgB;QAChB,IAAI,IAAI,CAAC,YAAY;YAAE,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IACrE,CAAC;IAED,QAAQ;QACN,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACpB,mCAAmC;QACnC,IAAI,CAAC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;IAC5B,CAAC;CACF"}
@@ -1,33 +0,0 @@
1
- import PComponent, { DBComponent } from "../PComponent";
2
- import PFile from "../media/PFile";
3
- import { IOutAction, POutAction } from "../PAction";
4
- import GameContext from "../GameContext";
5
- import PNode from "../PNode";
6
- import { IAnimationAction } from "../animations/IAnimationAction";
7
- interface DBModelGLTF extends DBComponent {
8
- file_model: string | null;
9
- outevent_onProgress: IOutAction | null;
10
- outevent_onLoaded: IOutAction | null;
11
- castShadow: boolean;
12
- receiveShadow: boolean;
13
- forceDepthWrite: boolean;
14
- reflector: boolean;
15
- }
16
- export type { DBModelGLTF };
17
- export default abstract class PModelGLTF extends PComponent {
18
- file_model: PFile | null;
19
- outevent_onProgress: POutAction | null;
20
- outevent_onLoaded: POutAction | null;
21
- castShadow: boolean;
22
- receiveShadow: boolean;
23
- forceDepthWrite: boolean;
24
- reflector: boolean;
25
- constructor(dbComponent: DBModelGLTF, node: PNode, context: GameContext);
26
- toDB(): DBModelGLTF;
27
- dispose(): void;
28
- abstract getAnimationAction(clip: string): IAnimationAction | null;
29
- getCastShadow(): boolean;
30
- getReceiveShadow(): boolean;
31
- onModelProgress: (progress: number) => void;
32
- }
33
- //# sourceMappingURL=PModelGLTF.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PModelGLTF.d.ts","sourceRoot":"","sources":["../../../src/pcomponents/PModelGLTF.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAEpD,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAElE,UAAU,WAAY,SAAQ,WAAW;IACvC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,mBAAmB,EAAE,UAAU,GAAG,IAAI,CAAC;IACvC,iBAAiB,EAAE,UAAU,GAAG,IAAI,CAAC;IACrC,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,OAAO,CAAC;IACvB,eAAe,EAAE,OAAO,CAAC;IACzB,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,YAAY,EAAE,WAAW,EAAE,CAAC;AAE5B,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,UAAW,SAAQ,UAAU;IACzD,UAAU,EAAE,KAAK,GAAG,IAAI,CAAC;IAEzB,mBAAmB,EAAE,UAAU,GAAG,IAAI,CAAC;IACvC,iBAAiB,EAAE,UAAU,GAAG,IAAI,CAAC;IAErC,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,OAAO,CAAC;IACvB,eAAe,EAAE,OAAO,CAAC;IACzB,SAAS,EAAE,OAAO,CAAC;gBAEP,WAAW,EAAE,WAAW,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW;IAgBvE,IAAI,IAAI,WAAW;IAanB,OAAO;IAQP,QAAQ,CAAC,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,GAAG,IAAI;IAMlE,aAAa;IAGb,gBAAgB;IAIhB,eAAe,GAAI,UAAU,MAAM,UAIjC;CACH"}
@@ -1,53 +0,0 @@
1
- import PComponent from "../PComponent";
2
- import { POutAction } from "../PAction";
3
- import { DataType } from "../PEnums";
4
- export default class PModelGLTF extends PComponent {
5
- file_model;
6
- outevent_onProgress;
7
- outevent_onLoaded;
8
- castShadow;
9
- receiveShadow;
10
- forceDepthWrite;
11
- reflector;
12
- constructor(dbComponent, node, context) {
13
- super("PModelGLTF", "GLTF Model", node, context);
14
- this.file_model = this.context.requestFile(dbComponent.file_model);
15
- this.outevent_onProgress = node.registerOutAction(dbComponent.outevent_onProgress, DataType.Number);
16
- this.outevent_onLoaded = node.registerOutAction(dbComponent.outevent_onLoaded);
17
- this.castShadow = dbComponent.castShadow || false;
18
- this.receiveShadow = dbComponent.receiveShadow || false;
19
- this.forceDepthWrite = dbComponent.forceDepthWrite || false;
20
- this.reflector = dbComponent.reflector || false;
21
- }
22
- toDB() {
23
- return {
24
- ...super.toDB(),
25
- file_model: this.file_model !== null ? this.file_model._id : null,
26
- outevent_onProgress: POutAction.toDB(this.outevent_onProgress),
27
- outevent_onLoaded: POutAction.toDB(this.outevent_onLoaded),
28
- castShadow: this.castShadow,
29
- receiveShadow: this.receiveShadow,
30
- forceDepthWrite: this.forceDepthWrite,
31
- reflector: this.reflector,
32
- };
33
- }
34
- dispose() {
35
- if (this.file_model)
36
- this.context.releaseFile(this.file_model);
37
- }
38
- //
39
- // IModelLoader
40
- //
41
- getCastShadow() {
42
- return this.castShadow;
43
- }
44
- getReceiveShadow() {
45
- return this.receiveShadow;
46
- }
47
- onModelProgress = (progress) => {
48
- if (!this.context.editor) {
49
- this.outevent_onProgress?.emit("" + progress, this);
50
- }
51
- };
52
- }
53
- //# sourceMappingURL=PModelGLTF.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PModelGLTF.js","sourceRoot":"","sources":["../../../src/pcomponents/PModelGLTF.ts"],"names":[],"mappings":"AAAA,OAAO,UAA2B,MAAM,eAAe,CAAC;AAExD,OAAO,EAAc,UAAU,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAiBrC,MAAM,CAAC,OAAO,OAAgB,UAAW,SAAQ,UAAU;IACzD,UAAU,CAAe;IAEzB,mBAAmB,CAAoB;IACvC,iBAAiB,CAAoB;IAErC,UAAU,CAAU;IACpB,aAAa,CAAU;IACvB,eAAe,CAAU;IACzB,SAAS,CAAU;IAEnB,YAAY,WAAwB,EAAE,IAAW,EAAE,OAAoB;QACrE,KAAK,CAAC,YAAY,EAAE,YAAY,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QACjD,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;QACnE,IAAI,CAAC,mBA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