@needle-tools/engine 4.14.0-next.31f837e → 4.14.0-next.52fdb13

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 (142) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/components.needle.json +1 -1
  3. package/dist/{generateMeshBVH.worker-DFcS3P04.js → generateMeshBVH.worker-DiCnZlf3.js} +1 -1
  4. package/dist/{gltf-progressive-8voIgNp_.js → gltf-progressive-Bm_6aEi4.js} +4 -4
  5. package/dist/{gltf-progressive-BRRBj-nY.umd.cjs → gltf-progressive-BttGBXw6.umd.cjs} +3 -3
  6. package/dist/{gltf-progressive-Dkh3tG4-.min.js → gltf-progressive-T5WKTux5.min.js} +1 -1
  7. package/dist/{loader.worker-C6cXDgR1.js → loader.worker-BqODMeeW.js} +1 -1
  8. package/dist/{materialx-Dx8st96L.min.js → materialx-CJyQZtjt.min.js} +1 -1
  9. package/dist/{materialx-D66rYPqe.js → materialx-DMs1E08Z.js} +2 -2
  10. package/dist/{materialx-CxlgposR.umd.cjs → materialx-DaKKOoVk.umd.cjs} +1 -1
  11. package/dist/{needle-engine.bundle-D7w0XD7M.min.js → needle-engine.bundle-BwfaInTa.min.js} +156 -148
  12. package/dist/{needle-engine.bundle-BQXG5qbQ.umd.cjs → needle-engine.bundle-DJE-Bjpa.umd.cjs} +141 -133
  13. package/dist/{needle-engine.bundle-Byl5i6zJ.js → needle-engine.bundle-TmE5-_na.js} +6741 -6449
  14. package/dist/needle-engine.d.ts +896 -51
  15. package/dist/needle-engine.js +571 -570
  16. package/dist/needle-engine.min.js +1 -1
  17. package/dist/needle-engine.umd.cjs +1 -1
  18. package/dist/{postprocessing-Ce5-UWiA.min.js → postprocessing-06AXuvdv.min.js} +2 -2
  19. package/dist/{postprocessing-BkSpxpYB.js → postprocessing-CI2x8Cln.js} +4 -4
  20. package/dist/{postprocessing-DFVElmAh.umd.cjs → postprocessing-CPDcA21P.umd.cjs} +2 -2
  21. package/dist/{three-Bad8p1pf.umd.cjs → three-BjYim-vL.umd.cjs} +47 -47
  22. package/dist/{three-DFV1-P9z.js → three-Bvk2VKbF.js} +2 -2
  23. package/dist/{three-CWn13_u1.min.js → three-IG2qPafA.min.js} +2 -2
  24. package/dist/{three-examples-CO-tx3Sp.umd.cjs → three-examples-BMmNgNCN.umd.cjs} +1 -1
  25. package/dist/{three-examples-43yqn3mL.js → three-examples-CMYCd5nH.js} +1 -1
  26. package/dist/{three-examples-DKuJVGT4.min.js → three-examples-CQl1fFZp.min.js} +1 -1
  27. package/dist/{three-mesh-ui-DyEA5HQF.min.js → three-mesh-ui-5HVE2RV-.min.js} +1 -1
  28. package/dist/{three-mesh-ui-fSAQJxdI.js → three-mesh-ui-BlakAItG.js} +1 -1
  29. package/dist/{three-mesh-ui-ChzVOraf.umd.cjs → three-mesh-ui-D828VbQp.umd.cjs} +1 -1
  30. package/dist/{vendor-pe19S9r5.min.js → vendor-BxK0WKmT.min.js} +1 -1
  31. package/dist/{vendor-B51YffMU.umd.cjs → vendor-CIDkyBaO.umd.cjs} +1 -1
  32. package/dist/{vendor-CgpZ5ivC.js → vendor-ixwD-vv2.js} +1 -1
  33. package/lib/engine/api.d.ts +203 -18
  34. package/lib/engine/api.js +271 -18
  35. package/lib/engine/api.js.map +1 -1
  36. package/lib/engine/engine_accessibility.d.ts +58 -0
  37. package/lib/engine/engine_accessibility.js +143 -0
  38. package/lib/engine/engine_accessibility.js.map +1 -0
  39. package/lib/engine/engine_context.d.ts +2 -0
  40. package/lib/engine/engine_context.js +7 -0
  41. package/lib/engine/engine_context.js.map +1 -1
  42. package/lib/engine/engine_materialpropertyblock.d.ts +309 -11
  43. package/lib/engine/engine_materialpropertyblock.js +396 -36
  44. package/lib/engine/engine_materialpropertyblock.js.map +1 -1
  45. package/lib/engine/engine_math.d.ts +34 -1
  46. package/lib/engine/engine_math.js +34 -1
  47. package/lib/engine/engine_math.js.map +1 -1
  48. package/lib/engine/engine_networking.js +1 -1
  49. package/lib/engine/engine_networking.js.map +1 -1
  50. package/lib/engine/engine_types.d.ts +2 -0
  51. package/lib/engine/engine_types.js +2 -0
  52. package/lib/engine/engine_types.js.map +1 -1
  53. package/lib/engine/webcomponents/icons.js +3 -0
  54. package/lib/engine/webcomponents/icons.js.map +1 -1
  55. package/lib/engine/webcomponents/logo-element.d.ts +1 -0
  56. package/lib/engine/webcomponents/logo-element.js +3 -1
  57. package/lib/engine/webcomponents/logo-element.js.map +1 -1
  58. package/lib/engine/webcomponents/needle-button.d.ts +37 -11
  59. package/lib/engine/webcomponents/needle-button.js +42 -11
  60. package/lib/engine/webcomponents/needle-button.js.map +1 -1
  61. package/lib/engine/webcomponents/needle-engine.d.ts +10 -2
  62. package/lib/engine/webcomponents/needle-engine.js +13 -3
  63. package/lib/engine/webcomponents/needle-engine.js.map +1 -1
  64. package/lib/engine-components/Camera.js.map +1 -1
  65. package/lib/engine-components/Component.d.ts +1 -2
  66. package/lib/engine-components/Component.js +1 -2
  67. package/lib/engine-components/Component.js.map +1 -1
  68. package/lib/engine-components/DragControls.d.ts +1 -0
  69. package/lib/engine-components/DragControls.js +21 -0
  70. package/lib/engine-components/DragControls.js.map +1 -1
  71. package/lib/engine-components/DropListener.js.map +1 -1
  72. package/lib/engine-components/Duplicatable.js.map +1 -1
  73. package/lib/engine-components/GroundProjection.js.map +1 -1
  74. package/lib/engine-components/NeedleMenu.d.ts +2 -0
  75. package/lib/engine-components/NeedleMenu.js +2 -0
  76. package/lib/engine-components/NeedleMenu.js.map +1 -1
  77. package/lib/engine-components/NestedGltf.js.map +1 -1
  78. package/lib/engine-components/Networking.d.ts +28 -3
  79. package/lib/engine-components/Networking.js +28 -3
  80. package/lib/engine-components/Networking.js.map +1 -1
  81. package/lib/engine-components/ReflectionProbe.d.ts +33 -3
  82. package/lib/engine-components/ReflectionProbe.js +76 -27
  83. package/lib/engine-components/ReflectionProbe.js.map +1 -1
  84. package/lib/engine-components/Renderer.d.ts +2 -0
  85. package/lib/engine-components/Renderer.js +30 -6
  86. package/lib/engine-components/Renderer.js.map +1 -1
  87. package/lib/engine-components/RendererLightmap.js +2 -3
  88. package/lib/engine-components/RendererLightmap.js.map +1 -1
  89. package/lib/engine-components/SeeThrough.d.ts +0 -2
  90. package/lib/engine-components/SeeThrough.js +114 -88
  91. package/lib/engine-components/SeeThrough.js.map +1 -1
  92. package/lib/engine-components/SmoothFollow.js.map +1 -1
  93. package/lib/engine-components/export/usdz/extensions/behavior/BehaviourComponents.d.ts +107 -13
  94. package/lib/engine-components/export/usdz/extensions/behavior/BehaviourComponents.js +167 -30
  95. package/lib/engine-components/export/usdz/extensions/behavior/BehaviourComponents.js.map +1 -1
  96. package/lib/engine-components/ui/Button.d.ts +1 -0
  97. package/lib/engine-components/ui/Button.js +11 -0
  98. package/lib/engine-components/ui/Button.js.map +1 -1
  99. package/lib/engine-components/ui/Raycaster.js.map +1 -1
  100. package/lib/engine-components/ui/Text.d.ts +1 -0
  101. package/lib/engine-components/ui/Text.js +11 -0
  102. package/lib/engine-components/ui/Text.js.map +1 -1
  103. package/lib/engine-components/web/ViewBox.d.ts +2 -2
  104. package/lib/engine-components/web/ViewBox.js +2 -2
  105. package/lib/engine-components/web/ViewBox.js.map +1 -1
  106. package/lib/engine-components/webxr/WebXRPlaneTracking.js.map +1 -1
  107. package/lib/engine-components/webxr/controllers/XRControllerFollow.js.map +1 -1
  108. package/lib/engine-components/webxr/controllers/XRControllerMovement.js.map +1 -1
  109. package/package.json +4 -4
  110. package/src/engine/api.ts +371 -19
  111. package/src/engine/engine_accessibility.ts +178 -0
  112. package/src/engine/engine_context.ts +9 -0
  113. package/src/engine/engine_materialpropertyblock.ts +499 -42
  114. package/src/engine/engine_math.ts +34 -1
  115. package/src/engine/engine_networking.ts +1 -1
  116. package/src/engine/engine_types.ts +5 -0
  117. package/src/engine/webcomponents/icons.ts +3 -0
  118. package/src/engine/webcomponents/logo-element.ts +4 -1
  119. package/src/engine/webcomponents/needle-button.ts +44 -13
  120. package/src/engine/webcomponents/needle-engine.ts +18 -7
  121. package/src/engine-components/Camera.ts +2 -2
  122. package/src/engine-components/Component.ts +1 -3
  123. package/src/engine-components/DragControls.ts +29 -4
  124. package/src/engine-components/DropListener.ts +1 -1
  125. package/src/engine-components/Duplicatable.ts +1 -1
  126. package/src/engine-components/GroundProjection.ts +3 -0
  127. package/src/engine-components/NeedleMenu.ts +8 -3
  128. package/src/engine-components/NestedGltf.ts +1 -1
  129. package/src/engine-components/Networking.ts +29 -4
  130. package/src/engine-components/ReflectionProbe.ts +81 -31
  131. package/src/engine-components/Renderer.ts +34 -6
  132. package/src/engine-components/RendererLightmap.ts +2 -3
  133. package/src/engine-components/SeeThrough.ts +122 -107
  134. package/src/engine-components/SmoothFollow.ts +2 -2
  135. package/src/engine-components/export/usdz/extensions/behavior/BehaviourComponents.ts +198 -65
  136. package/src/engine-components/ui/Button.ts +13 -1
  137. package/src/engine-components/ui/Raycaster.ts +1 -1
  138. package/src/engine-components/ui/Text.ts +13 -0
  139. package/src/engine-components/web/ViewBox.ts +9 -2
  140. package/src/engine-components/webxr/WebXRPlaneTracking.ts +3 -3
  141. package/src/engine-components/webxr/controllers/XRControllerFollow.ts +1 -1
  142. package/src/engine-components/webxr/controllers/XRControllerMovement.ts +4 -4
@@ -1,4 +1,4 @@
1
- const Dr = "169.17", lw = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, uw = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, x_ = 0, Ap = 1, __ = 2, hw = 3, dw = 0, of = 1, y_ = 2, si = 3, Is = 0, dn = 1, rs = 2, Wi = 0, qs = 1, hu = 2, Np = 3, Ep = 4, v_ = 5, Ws = 100, M_ = 101, S_ = 102, T_ = 103, b_ = 104, w_ = 200, A_ = 201, N_ = 202, E_ = 203, du = 204, pu = 205, C_ = 206, R_ = 207, I_ = 208, P_ = 209, L_ = 210, D_ = 211, U_ = 212, F_ = 213, O_ = 214, fu = 0, mu = 1, gu = 2, Wr = 3, xu = 4, _u = 5, yu = 6, vu = 7, Ko = 0, af = 1, cf = 2, Pi = 0, lf = 1, uf = 2, hf = 3, df = 4, V_ = 5, pf = 6, ff = 7, Cp = "attached", z_ = "detached", ph = 300, vi = 301, Li = 302, Xr = 303, qr = 304, eo = 306, $r = 1e3, Ci = 1001, Za = 1002, sn = 1003, mf = 1004, pw = 1004, Xs = 1005, fw = 1005, Bt = 1006, Ur = 1007, mw = 1007, ci = 1008, B_ = 1008, us = 1009, gf = 1010, xf = 1011, Go = 1012, jo = 1013, $i = 1014, qn = 1015, Vn = 1016, fh = 1017, mh = 1018, Yr = 1020, _f = 35902, yf = 35899, vf = 1021, Mf = 1022, On = 1023, Sf = 1024, Tf = 1025, Fr = 1026, Zr = 1027, gh = 1028, yc = 1029, Ja = 1030, xh = 1031, gw = 1032, _h = 1033, La = 33776, Da = 33777, Ua = 33778, Fa = 33779, Mu = 35840, Su = 35841, Tu = 35842, bu = 35843, wu = 36196, Au = 37492, Nu = 37496, Eu = 37808, Cu = 37809, Ru = 37810, Iu = 37811, Pu = 37812, Lu = 37813, Du = 37814, Uu = 37815, Fu = 37816, Ou = 37817, Vu = 37818, zu = 37819, Bu = 37820, ku = 37821, Oa = 36492, Hu = 36494, Gu = 36495, bf = 36283, Wu = 36284, Xu = 36285, qu = 36286, k_ = 2200, H_ = 2201, G_ = 2202, Ka = 2300, $u = 2301, nu = 2302, Er = 2400, Cr = 2401, ja = 2402, yh = 2500, wf = 2501, xw = 0, _w = 1, yw = 2, W_ = 3200, X_ = 3201, vw = 3202, Mw = 3203, hs = 0, Af = 1, Hi = "", Wn = "srgb", Mi = "srgb-linear", vh = "display-p3", vc = "display-p3-linear", Qa = "linear", Ot = "srgb", ec = "rec709", tc = "p3", Sw = 0, Tr = 7680, Tw = 7681, bw = 7682, ww = 7683, Aw = 34055, Nw = 34056, Ew = 5386, Cw = 512, Rw = 513, Iw = 514, Pw = 515, Lw = 516, Dw = 517, Uw = 518, Rp = 519, q_ = 512, Nf = 513, $_ = 514, Ef = 515, Y_ = 516, Z_ = 517, J_ = 518, K_ = 519, Wo = 35044, Lo = 35048, Fw = 35040, Ow = 35045, Vw = 35049, zw = 35041, Bw = 35046, kw = 35050, Hw = 35042, Gw = "100", Ip = "300 es", Ri = 2e3, Jr = 2001;
1
+ const Dr = "169.19", lw = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, uw = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, x_ = 0, Ap = 1, __ = 2, hw = 3, dw = 0, of = 1, y_ = 2, si = 3, Is = 0, dn = 1, rs = 2, Wi = 0, qs = 1, hu = 2, Np = 3, Ep = 4, v_ = 5, Ws = 100, M_ = 101, S_ = 102, T_ = 103, b_ = 104, w_ = 200, A_ = 201, N_ = 202, E_ = 203, du = 204, pu = 205, C_ = 206, R_ = 207, I_ = 208, P_ = 209, L_ = 210, D_ = 211, U_ = 212, F_ = 213, O_ = 214, fu = 0, mu = 1, gu = 2, Wr = 3, xu = 4, _u = 5, yu = 6, vu = 7, Ko = 0, af = 1, cf = 2, Pi = 0, lf = 1, uf = 2, hf = 3, df = 4, V_ = 5, pf = 6, ff = 7, Cp = "attached", z_ = "detached", ph = 300, vi = 301, Li = 302, Xr = 303, qr = 304, eo = 306, $r = 1e3, Ci = 1001, Za = 1002, sn = 1003, mf = 1004, pw = 1004, Xs = 1005, fw = 1005, Bt = 1006, Ur = 1007, mw = 1007, ci = 1008, B_ = 1008, us = 1009, gf = 1010, xf = 1011, Go = 1012, jo = 1013, $i = 1014, qn = 1015, Vn = 1016, fh = 1017, mh = 1018, Yr = 1020, _f = 35902, yf = 35899, vf = 1021, Mf = 1022, On = 1023, Sf = 1024, Tf = 1025, Fr = 1026, Zr = 1027, gh = 1028, yc = 1029, Ja = 1030, xh = 1031, gw = 1032, _h = 1033, La = 33776, Da = 33777, Ua = 33778, Fa = 33779, Mu = 35840, Su = 35841, Tu = 35842, bu = 35843, wu = 36196, Au = 37492, Nu = 37496, Eu = 37808, Cu = 37809, Ru = 37810, Iu = 37811, Pu = 37812, Lu = 37813, Du = 37814, Uu = 37815, Fu = 37816, Ou = 37817, Vu = 37818, zu = 37819, Bu = 37820, ku = 37821, Oa = 36492, Hu = 36494, Gu = 36495, bf = 36283, Wu = 36284, Xu = 36285, qu = 36286, k_ = 2200, H_ = 2201, G_ = 2202, Ka = 2300, $u = 2301, nu = 2302, Er = 2400, Cr = 2401, ja = 2402, yh = 2500, wf = 2501, xw = 0, _w = 1, yw = 2, W_ = 3200, X_ = 3201, vw = 3202, Mw = 3203, hs = 0, Af = 1, Hi = "", Wn = "srgb", Mi = "srgb-linear", vh = "display-p3", vc = "display-p3-linear", Qa = "linear", Ot = "srgb", ec = "rec709", tc = "p3", Sw = 0, Tr = 7680, Tw = 7681, bw = 7682, ww = 7683, Aw = 34055, Nw = 34056, Ew = 5386, Cw = 512, Rw = 513, Iw = 514, Pw = 515, Lw = 516, Dw = 517, Uw = 518, Rp = 519, q_ = 512, Nf = 513, $_ = 514, Ef = 515, Y_ = 516, Z_ = 517, J_ = 518, K_ = 519, Wo = 35044, Lo = 35048, Fw = 35040, Ow = 35045, Vw = 35049, zw = 35041, Bw = 35046, kw = 35050, Hw = 35042, Gw = "100", Ip = "300 es", Ri = 2e3, Jr = 2001;
2
2
  class Di {
3
3
  addEventListener(e, t) {
4
4
  this._listeners === void 0 && (this._listeners = {});
@@ -11462,7 +11462,7 @@ function P0() {
11462
11462
  }
11463
11463
  function a(h, d, p, f, x, m) {
11464
11464
  const g = o(h, d, p, f, x, m);
11465
- p.transmission > 0 ? n.push(g) : p.transparent === !0 ? i.push(g) : t.push(g);
11465
+ h.onBeforeRenderListPush?.(h, d, p, m), p.transmission > 0 ? n.push(g) : p.transparent === !0 ? i.push(g) : t.push(g), h.onAfterRenderListPush?.(h, d, p, m);
11466
11466
  }
11467
11467
  function c(h, d, p, f, x, m) {
11468
11468
  const g = o(h, d, p, f, x, m);