@tolokoban/tgd 2.0.127 → 2.0.128

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 (358) hide show
  1. package/lib/dist/bounding-box.d.ts +2 -2
  2. package/lib/dist/bounding-box.d.ts.map +1 -1
  3. package/lib/dist/bounding-box.js +2 -2
  4. package/lib/dist/buffer/buffer.d.ts +1 -1
  5. package/lib/dist/buffer/index.js +1 -1
  6. package/lib/dist/camera/camera-orthographic.d.ts +1 -1
  7. package/lib/dist/camera/camera-orthographic.js +2 -2
  8. package/lib/dist/camera/camera-perspective.d.ts +1 -1
  9. package/lib/dist/camera/camera-perspective.js +2 -2
  10. package/lib/dist/camera/camera.d.ts +2 -2
  11. package/lib/dist/camera/camera.js +1 -1
  12. package/lib/dist/camera/index.js +3 -3
  13. package/lib/dist/canvas/gizmo/gizmo.d.ts +3 -3
  14. package/lib/dist/canvas/gizmo/gizmo.js +7 -7
  15. package/lib/dist/canvas/gizmo/index.js +1 -1
  16. package/lib/dist/canvas/gizmo/painter/tips.d.ts +2 -2
  17. package/lib/dist/canvas/gizmo/painter/tips.js +8 -8
  18. package/lib/dist/canvas/index.js +2 -2
  19. package/lib/dist/canvas/landscape/index.js +1 -1
  20. package/lib/dist/canvas/landscape/landscape.d.ts +1 -1
  21. package/lib/dist/canvas/landscape/landscape.js +1 -1
  22. package/lib/dist/code/color.d.ts +2 -2
  23. package/lib/dist/code/consts.d.ts +1 -1
  24. package/lib/dist/code/coords.d.ts +1 -1
  25. package/lib/dist/code/index.js +8 -8
  26. package/lib/dist/code/math.d.ts +1 -1
  27. package/lib/dist/code/noise.d.ts +1 -1
  28. package/lib/dist/code/noise.js +2 -2
  29. package/lib/dist/code/random.d.ts +1 -1
  30. package/lib/dist/code/space.d.ts +1 -1
  31. package/lib/dist/code/transfo.d.ts +1 -1
  32. package/lib/dist/color/color.d.ts +2 -2
  33. package/lib/dist/color/color.js +1 -1
  34. package/lib/dist/color/index.js +2 -2
  35. package/lib/dist/color/utils.js +2 -2
  36. package/lib/dist/context/animation/animation-manager.d.ts +1 -1
  37. package/lib/dist/context/animation/animation-manager.js +1 -1
  38. package/lib/dist/context/context.d.ts +4 -4
  39. package/lib/dist/context/context.js +11 -11
  40. package/lib/dist/context/index.js +3 -3
  41. package/lib/dist/context/ubo-manager.d.ts +1 -1
  42. package/lib/dist/context/webgl-params.d.ts +1 -1
  43. package/lib/dist/controller/camera/index.js +1 -1
  44. package/lib/dist/controller/camera/orbit.d.ts +4 -4
  45. package/lib/dist/controller/camera/orbit.js +5 -5
  46. package/lib/dist/controller/index.js +1 -1
  47. package/lib/dist/data/index.js +1 -1
  48. package/lib/dist/dataset/dataset.d.ts +2 -2
  49. package/lib/dist/dataset/index.js +1 -1
  50. package/lib/dist/debug/debug.js +1 -1
  51. package/lib/dist/debug/index.js +3 -3
  52. package/lib/dist/event/index.js +1 -1
  53. package/lib/dist/factory/index.js +1 -1
  54. package/lib/dist/factory/mesh-glb.d.ts +6 -6
  55. package/lib/dist/factory/mesh-glb.js +2 -2
  56. package/lib/dist/filter/anti-aliasing.js +1 -1
  57. package/lib/dist/filter/blur.js +3 -3
  58. package/lib/dist/filter/chromatic-aberration.js +1 -1
  59. package/lib/dist/filter/filter.d.ts +3 -3
  60. package/lib/dist/filter/hue-rotation.js +1 -1
  61. package/lib/dist/filter/index.js +8 -8
  62. package/lib/dist/filter/multiply.d.ts +2 -2
  63. package/lib/dist/filter/multiply.js +2 -2
  64. package/lib/dist/filter/verbatim.js +1 -1
  65. package/lib/dist/filter/zoom.js +2 -2
  66. package/lib/dist/geometry/box.d.ts +2 -2
  67. package/lib/dist/geometry/box.js +2 -2
  68. package/lib/dist/geometry/geometry.d.ts +2 -2
  69. package/lib/dist/geometry/geometry.js +4 -4
  70. package/lib/dist/geometry/gltf.d.ts +2 -2
  71. package/lib/dist/geometry/gltf.js +2 -2
  72. package/lib/dist/geometry/grid.d.ts +1 -1
  73. package/lib/dist/geometry/grid.js +4 -4
  74. package/lib/dist/geometry/index.js +7 -7
  75. package/lib/dist/geometry/plane.d.ts +1 -1
  76. package/lib/dist/geometry/plane.js +3 -3
  77. package/lib/dist/geometry/sphere-ico.d.ts +2 -2
  78. package/lib/dist/geometry/sphere-ico.js +3 -3
  79. package/lib/dist/geometry/tools/index.js +1 -1
  80. package/lib/dist/geometry/tools/marching-cubes/index.js +2 -2
  81. package/lib/dist/geometry/tools/marching-cubes/marching-cubes.d.ts +2 -2
  82. package/lib/dist/geometry/tools/marching-cubes/marching-cubes.js +3 -3
  83. package/lib/dist/index.js +37 -37
  84. package/lib/dist/input/frame.js +1 -1
  85. package/lib/dist/input/index.js +4 -4
  86. package/lib/dist/input/inputs.js +3 -3
  87. package/lib/dist/input/keyboard.js +1 -1
  88. package/lib/dist/input/pointer.d.ts +2 -2
  89. package/lib/dist/input/pointer.js +2 -2
  90. package/lib/dist/interface/index.js +1 -1
  91. package/lib/dist/interface/transformable.d.ts +1 -1
  92. package/lib/dist/light/index.js +1 -1
  93. package/lib/dist/light/light.d.ts +2 -2
  94. package/lib/dist/light/light.js +2 -2
  95. package/lib/dist/loader/asset.d.ts +1 -1
  96. package/lib/dist/loader/asset.js +2 -2
  97. package/lib/dist/loader/binary.d.ts +1 -1
  98. package/lib/dist/loader/binary.js +1 -1
  99. package/lib/dist/loader/image.js +1 -1
  100. package/lib/dist/loader/index.js +5 -5
  101. package/lib/dist/material/camera-light.d.ts +4 -4
  102. package/lib/dist/material/camera-light.js +4 -4
  103. package/lib/dist/material/depth.js +1 -1
  104. package/lib/dist/material/diffuse.d.ts +4 -4
  105. package/lib/dist/material/diffuse.js +4 -4
  106. package/lib/dist/material/face-orientation.d.ts +1 -1
  107. package/lib/dist/material/face-orientation.js +3 -3
  108. package/lib/dist/material/flat-texture.d.ts +1 -1
  109. package/lib/dist/material/flat-texture.js +1 -1
  110. package/lib/dist/material/flat.d.ts +2 -2
  111. package/lib/dist/material/flat.js +2 -2
  112. package/lib/dist/material/ghost.d.ts +2 -2
  113. package/lib/dist/material/ghost.js +2 -2
  114. package/lib/dist/material/glass.d.ts +4 -4
  115. package/lib/dist/material/glass.js +4 -4
  116. package/lib/dist/material/global.d.ts +4 -4
  117. package/lib/dist/material/global.js +4 -4
  118. package/lib/dist/material/gltf.d.ts +2 -2
  119. package/lib/dist/material/gltf.js +4 -4
  120. package/lib/dist/material/hull.d.ts +2 -2
  121. package/lib/dist/material/hull.js +3 -3
  122. package/lib/dist/material/index.js +17 -17
  123. package/lib/dist/material/mask.d.ts +1 -1
  124. package/lib/dist/material/mask.js +1 -1
  125. package/lib/dist/material/material.d.ts +3 -3
  126. package/lib/dist/material/material.js +1 -1
  127. package/lib/dist/material/mirror.d.ts +4 -4
  128. package/lib/dist/material/mirror.js +2 -2
  129. package/lib/dist/material/normal-map.js +1 -1
  130. package/lib/dist/material/normals.js +1 -1
  131. package/lib/dist/material/solid.d.ts +2 -2
  132. package/lib/dist/material/solid.js +2 -2
  133. package/lib/dist/material/toon.d.ts +4 -4
  134. package/lib/dist/material/toon.js +4 -4
  135. package/lib/dist/math/index.js +10 -10
  136. package/lib/dist/math/mat2.js +5 -5
  137. package/lib/dist/math/mat3.js +4 -4
  138. package/lib/dist/math/mat4.js +3 -3
  139. package/lib/dist/math/quat.d.ts +1 -1
  140. package/lib/dist/math/quat.js +3 -3
  141. package/lib/dist/math/random.d.ts +1 -1
  142. package/lib/dist/math/transfo.js +3 -3
  143. package/lib/dist/math/vec2.js +1 -1
  144. package/lib/dist/math/vec3.js +1 -1
  145. package/lib/dist/math/vec4.js +1 -1
  146. package/lib/dist/painter/axes/axes.d.ts +4 -4
  147. package/lib/dist/painter/axes/axes.js +7 -7
  148. package/lib/dist/painter/axes/index.js +1 -1
  149. package/lib/dist/painter/background/background.d.ts +2 -2
  150. package/lib/dist/painter/background/background.js +8 -8
  151. package/lib/dist/painter/background/index.js +1 -1
  152. package/lib/dist/painter/background-with-depth/background-with-depth.d.ts +2 -2
  153. package/lib/dist/painter/background-with-depth/background-with-depth.js +11 -11
  154. package/lib/dist/painter/background-with-depth/index.js +1 -1
  155. package/lib/dist/painter/clear.d.ts +1 -1
  156. package/lib/dist/painter/clear.js +1 -1
  157. package/lib/dist/painter/debug/index.js +2 -2
  158. package/lib/dist/painter/debug/point/index.js +1 -1
  159. package/lib/dist/painter/debug/point/point.d.ts +2 -2
  160. package/lib/dist/painter/debug/point/point.js +4 -4
  161. package/lib/dist/painter/debug/stencil/index.js +1 -1
  162. package/lib/dist/painter/debug/stencil/stencil.d.ts +1 -1
  163. package/lib/dist/painter/debug/stencil/stencil.js +7 -7
  164. package/lib/dist/painter/depth.js +1 -1
  165. package/lib/dist/painter/filter/filter.d.ts +4 -4
  166. package/lib/dist/painter/filter/filter.js +9 -9
  167. package/lib/dist/painter/filter/framebuffers.js +1 -1
  168. package/lib/dist/painter/filter/index.js +1 -1
  169. package/lib/dist/painter/fragment-shader/fragment-shader.d.ts +4 -4
  170. package/lib/dist/painter/fragment-shader/fragment-shader.js +5 -5
  171. package/lib/dist/painter/fragment-shader/index.js +1 -1
  172. package/lib/dist/painter/framebuffer-msaa.d.ts +1 -1
  173. package/lib/dist/painter/framebuffer-msaa.js +1 -1
  174. package/lib/dist/painter/framebuffer.d.ts +3 -3
  175. package/lib/dist/painter/framebuffer.js +2 -2
  176. package/lib/dist/painter/gizmo/gizmo.d.ts +4 -4
  177. package/lib/dist/painter/gizmo/gizmo.js +16 -16
  178. package/lib/dist/painter/gizmo/index.js +1 -1
  179. package/lib/dist/painter/gizmo/painters/axes.d.ts +3 -3
  180. package/lib/dist/painter/gizmo/painters/axes.js +5 -5
  181. package/lib/dist/painter/gizmo/painters/mask.d.ts +2 -2
  182. package/lib/dist/painter/gizmo/painters/mask.js +6 -6
  183. package/lib/dist/painter/gizmo/painters/normal.d.ts +4 -4
  184. package/lib/dist/painter/gizmo/painters/normal.js +3 -3
  185. package/lib/dist/painter/gizmo/painters/tips.d.ts +2 -2
  186. package/lib/dist/painter/gizmo/painters/tips.js +4 -4
  187. package/lib/dist/painter/group-camera.d.ts +3 -3
  188. package/lib/dist/painter/group-camera.js +1 -1
  189. package/lib/dist/painter/group.d.ts +2 -2
  190. package/lib/dist/painter/group.js +4 -4
  191. package/lib/dist/painter/icon/icon.d.ts +4 -4
  192. package/lib/dist/painter/icon/icon.js +6 -6
  193. package/lib/dist/painter/icon/index.js +1 -1
  194. package/lib/dist/painter/icon/sprite.d.ts +7 -7
  195. package/lib/dist/painter/icon/sprite.js +5 -5
  196. package/lib/dist/painter/index.js +29 -29
  197. package/lib/dist/painter/lines/index.js +1 -1
  198. package/lib/dist/painter/lines/lines.d.ts +2 -2
  199. package/lib/dist/painter/lines/lines.js +8 -8
  200. package/lib/dist/painter/lod/index.js +1 -1
  201. package/lib/dist/painter/lod/lod.d.ts +4 -4
  202. package/lib/dist/painter/lod/lod.js +5 -5
  203. package/lib/dist/painter/lod/octree.d.ts +3 -3
  204. package/lib/dist/painter/lod/octree.js +1 -1
  205. package/lib/dist/painter/logic.js +1 -1
  206. package/lib/dist/painter/mesh/gltf/gltf.d.ts +5 -5
  207. package/lib/dist/painter/mesh/gltf/gltf.js +9 -9
  208. package/lib/dist/painter/mesh/gltf/index.js +1 -1
  209. package/lib/dist/painter/mesh/index.js +3 -3
  210. package/lib/dist/painter/mesh/mesh/index.js +1 -1
  211. package/lib/dist/painter/mesh/mesh/mesh.d.ts +6 -6
  212. package/lib/dist/painter/mesh/mesh/mesh.js +10 -10
  213. package/lib/dist/painter/mesh/normals/index.js +1 -1
  214. package/lib/dist/painter/mesh/normals/normals.d.ts +3 -3
  215. package/lib/dist/painter/mesh/normals/normals.js +6 -6
  216. package/lib/dist/painter/mix/index.js +1 -1
  217. package/lib/dist/painter/mix/mix.d.ts +2 -2
  218. package/lib/dist/painter/mix/mix.js +6 -6
  219. package/lib/dist/painter/node/index.js +1 -1
  220. package/lib/dist/painter/node/node.js +4 -4
  221. package/lib/dist/painter/overlay/index.js +1 -1
  222. package/lib/dist/painter/overlay/overlay.d.ts +4 -4
  223. package/lib/dist/painter/overlay/overlay.js +6 -6
  224. package/lib/dist/painter/painter.d.ts +1 -1
  225. package/lib/dist/painter/painter.js +1 -1
  226. package/lib/dist/painter/points-cloud/index.js +2 -2
  227. package/lib/dist/painter/points-cloud/points-cloud-morphing.d.ts +3 -3
  228. package/lib/dist/painter/points-cloud/points-cloud-morphing.js +8 -8
  229. package/lib/dist/painter/points-cloud/points-cloud.d.ts +3 -3
  230. package/lib/dist/painter/points-cloud/points-cloud.js +8 -8
  231. package/lib/dist/painter/program.d.ts +5 -5
  232. package/lib/dist/painter/program.js +9 -9
  233. package/lib/dist/painter/scissor.js +1 -1
  234. package/lib/dist/painter/segments/capsule.d.ts +1 -1
  235. package/lib/dist/painter/segments/capsule.js +2 -2
  236. package/lib/dist/painter/segments/index.js +2 -2
  237. package/lib/dist/painter/segments/segments-morphing.d.ts +6 -6
  238. package/lib/dist/painter/segments/segments-morphing.js +9 -9
  239. package/lib/dist/painter/segments/segments.d.ts +7 -7
  240. package/lib/dist/painter/segments/segments.js +8 -8
  241. package/lib/dist/painter/skybox/index.js +1 -1
  242. package/lib/dist/painter/skybox/skybox.d.ts +7 -7
  243. package/lib/dist/painter/skybox/skybox.js +6 -6
  244. package/lib/dist/painter/sprites/accessor.d.ts +1 -1
  245. package/lib/dist/painter/sprites/index.js +2 -2
  246. package/lib/dist/painter/sprites/sprites-abstract.d.ts +2 -2
  247. package/lib/dist/painter/sprites/sprites-abstract.js +2 -2
  248. package/lib/dist/painter/sprites/sprites-hue.d.ts +1 -1
  249. package/lib/dist/painter/sprites/sprites-hue.js +3 -3
  250. package/lib/dist/painter/sprites/sprites.d.ts +8 -8
  251. package/lib/dist/painter/sprites/sprites.js +9 -9
  252. package/lib/dist/painter/state/index.js +1 -1
  253. package/lib/dist/painter/state/state.d.ts +4 -4
  254. package/lib/dist/painter/state/state.js +3 -3
  255. package/lib/dist/painter/tubes/ellipse.js +1 -1
  256. package/lib/dist/painter/tubes/geometry.d.ts +2 -2
  257. package/lib/dist/painter/tubes/geometry.js +2 -2
  258. package/lib/dist/painter/tubes/index.js +1 -1
  259. package/lib/dist/painter/tubes/tubes.d.ts +4 -4
  260. package/lib/dist/painter/tubes/tubes.js +3 -3
  261. package/lib/dist/painter/tubes/types.d.ts +4 -4
  262. package/lib/dist/painter/tubes/vertices.d.ts +1 -1
  263. package/lib/dist/painter/tubes/vertices.js +1 -1
  264. package/lib/dist/painter/x-ray/background.d.ts +1 -1
  265. package/lib/dist/painter/x-ray/background.js +6 -6
  266. package/lib/dist/painter/x-ray/index.js +1 -1
  267. package/lib/dist/painter/x-ray/x-ray.d.ts +3 -3
  268. package/lib/dist/painter/x-ray/x-ray.js +9 -9
  269. package/lib/dist/parser/gltf/gltf.d.ts +9 -9
  270. package/lib/dist/parser/gltf/gltf.js +8 -8
  271. package/lib/dist/parser/gltf/index.js +1 -1
  272. package/lib/dist/parser/gltf/parser.js +1 -1
  273. package/lib/dist/parser/index.js +2 -2
  274. package/lib/dist/parser/mesh/wavefront.d.ts +1 -1
  275. package/lib/dist/parser/mesh/wavefront.js +3 -3
  276. package/lib/dist/program/index.js +1 -1
  277. package/lib/dist/program/program.d.ts +2 -2
  278. package/lib/dist/program/program.js +3 -3
  279. package/lib/dist/sdf/_common.d.ts +2 -2
  280. package/lib/dist/sdf/capsule.js +1 -1
  281. package/lib/dist/sdf/index.js +2 -2
  282. package/lib/dist/shader/code.js +1 -1
  283. package/lib/dist/shader/fragment.js +2 -2
  284. package/lib/dist/shader/index.js +3 -3
  285. package/lib/dist/shader/vertex.js +2 -2
  286. package/lib/dist/table/index.js +1 -1
  287. package/lib/dist/texture/index.js +3 -3
  288. package/lib/dist/texture/procedural.d.ts +1 -1
  289. package/lib/dist/texture/texture-cube.d.ts +5 -5
  290. package/lib/dist/texture/texture-cube.js +3 -3
  291. package/lib/dist/texture/texture-depth.d.ts +1 -1
  292. package/lib/dist/texture/texture-depth.js +1 -1
  293. package/lib/dist/texture/texture2d.d.ts +8 -8
  294. package/lib/dist/texture/texture2d.js +8 -8
  295. package/lib/dist/texture/types.d.ts +1 -1
  296. package/lib/dist/texture/types.js +2 -2
  297. package/lib/dist/time/index.js +2 -2
  298. package/lib/dist/time/interval/index.js +1 -1
  299. package/lib/dist/time/time.d.ts +1 -1
  300. package/lib/dist/types/buffer.js +1 -1
  301. package/lib/dist/types/gltf.js +1 -1
  302. package/lib/dist/types/index.js +10 -10
  303. package/lib/dist/types/program.d.ts +2 -2
  304. package/lib/dist/uniform/index.js +2 -2
  305. package/lib/dist/uniform/ubo-camera.d.ts +3 -3
  306. package/lib/dist/uniform/ubo-camera.js +2 -2
  307. package/lib/dist/uniform/uniform-buffer-object.d.ts +3 -3
  308. package/lib/dist/uniform/uniform-buffer-object.js +4 -4
  309. package/lib/dist/utils/action/camera.d.ts +1 -1
  310. package/lib/dist/utils/action/camera.js +3 -3
  311. package/lib/dist/utils/action/index.js +3 -3
  312. package/lib/dist/utils/action/transfo.d.ts +1 -1
  313. package/lib/dist/utils/action/transfo.js +1 -1
  314. package/lib/dist/utils/action/vector.js +1 -1
  315. package/lib/dist/utils/animation/chain-transfo-interpolations.d.ts +2 -2
  316. package/lib/dist/utils/animation/chain-transfo-interpolations.js +3 -3
  317. package/lib/dist/utils/animation/chain.d.ts +1 -1
  318. package/lib/dist/utils/animation/chain.js +1 -1
  319. package/lib/dist/utils/animation/index.js +2 -2
  320. package/lib/dist/utils/bbox.d.ts +2 -2
  321. package/lib/dist/utils/bbox.js +1 -1
  322. package/lib/dist/utils/canvas.d.ts +3 -3
  323. package/lib/dist/utils/canvas.js +2 -2
  324. package/lib/dist/utils/easing-function/index.js +1 -1
  325. package/lib/dist/utils/ensure.d.ts +3 -3
  326. package/lib/dist/utils/ensure.js +2 -2
  327. package/lib/dist/utils/framebuffer.js +1 -1
  328. package/lib/dist/utils/index.js +13 -13
  329. package/lib/dist/utils/pbo.js +1 -1
  330. package/lib/dist/utils/state/blend.d.ts +2 -2
  331. package/lib/dist/utils/state/blend.js +2 -2
  332. package/lib/dist/utils/state/cull.d.ts +2 -2
  333. package/lib/dist/utils/state/cull.js +2 -2
  334. package/lib/dist/utils/state/depth.d.ts +2 -2
  335. package/lib/dist/utils/state/depth.js +2 -2
  336. package/lib/dist/utils/state/index.js +4 -4
  337. package/lib/dist/utils/state/stencil.d.ts +1 -1
  338. package/lib/dist/utils/state/stencil.js +2 -2
  339. package/lib/dist/utils/webgl.d.ts +1 -1
  340. package/lib/dist/utils/webgl.js +1 -1
  341. package/lib/dist/vao/index.js +1 -1
  342. package/lib/dist/vao/vao.d.ts +4 -4
  343. package/lib/dist/vao/vao.js +1 -1
  344. package/lib/dist/version.d.ts +1 -1
  345. package/lib/dist/version.js +1 -1
  346. package/lib/dist/wasm/code.d.ts +1 -1
  347. package/lib/dist/wasm/flow.d.ts +1 -1
  348. package/lib/dist/wasm/function.d.ts +1 -1
  349. package/lib/dist/wasm/index.js +8 -8
  350. package/lib/dist/wasm/local.d.ts +1 -1
  351. package/lib/dist/wasm/memory.d.ts +1 -1
  352. package/lib/dist/wasm/module.d.ts +1 -1
  353. package/lib/dist/wasm/module.js +1 -1
  354. package/lib/dist/wasm/types.d.ts +1 -1
  355. package/lib/dist/webgl/index.js +1 -1
  356. package/lib/dist/webgl/texture/index.js +2 -2
  357. package/lib/dist/webgl/texture/texture2d.d.ts +1 -1
  358. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import { TgdTransfo } from "@tgd/math";
2
- import { tgdActionCreateTransfoInterpolation } from "../action";
3
- import { tgdAnimChain } from "./chain";
1
+ import { TgdTransfo } from "./../../math/index.js";
2
+ import { tgdActionCreateTransfoInterpolation } from "../action/index.js";
3
+ import { tgdAnimChain } from "./chain.js";
4
4
  export function tgdAnimChainTransfoInterpolations(transfo, steps, options = {}) {
5
5
  const animations = [];
6
6
  let previousTransfo = transfo;
@@ -1,4 +1,4 @@
1
- import { TgdAnimation } from "@tgd/types/animation";
1
+ import { TgdAnimation } from "../../types/animation";
2
2
  /**
3
3
  * Create an animation which is the chain of `animations`.
4
4
  */
@@ -1,4 +1,4 @@
1
- import { tgdEasingFunctionLinear } from "../easing-function";
1
+ import { tgdEasingFunctionLinear } from "../easing-function/index.js";
2
2
  /**
3
3
  * Create an animation which is the chain of `animations`.
4
4
  */
@@ -1,3 +1,3 @@
1
- export * from "./chain";
2
- export * from "./chain-transfo-interpolations";
1
+ export * from "./chain.js";
2
+ export * from "./chain-transfo-interpolations.js";
3
3
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdXRpbHMvYW5pbWF0aW9uL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsU0FBUyxDQUFBO0FBQ3ZCLGNBQWMsZ0NBQWdDLENBQUEifQ==
@@ -1,5 +1,5 @@
1
- import { TgdDataset } from "@tgd/dataset";
2
- import { TgdVec3 } from "@tgd/math";
1
+ import { TgdDataset } from "../dataset";
2
+ import { TgdVec3 } from "../math";
3
3
  /**
4
4
  * Compute the bounding box of a Dataset.
5
5
  * @param dataset
@@ -1,4 +1,4 @@
1
- import { TgdVec3 } from "@tgd/math";
1
+ import { TgdVec3 } from "./../math/index.js";
2
2
  /**
3
3
  * Compute the bounding box of a Dataset.
4
4
  * @param dataset
@@ -1,6 +1,6 @@
1
- import { TgdColor } from "@tgd/color";
2
- import { TgdVec3, TgdVec4 } from "@tgd/math";
3
- import { ArrayNumber3, ArrayNumber4 } from "@tgd/types";
1
+ import { TgdColor } from "../color";
2
+ import { TgdVec3, TgdVec4 } from "../math";
3
+ import { ArrayNumber3, ArrayNumber4 } from "../types";
4
4
  /**
5
5
  * Helper to get a canvas with the given size.
6
6
  */
@@ -1,5 +1,5 @@
1
- import { TgdColor } from "@tgd/color";
2
- import { TgdVec4 } from "@tgd/math";
1
+ import { TgdColor } from "./../color/index.js";
2
+ import { TgdVec4 } from "./../math/index.js";
3
3
  /**
4
4
  * Helper to get a canvas with the given size.
5
5
  */
@@ -1,2 +1,2 @@
1
- export * from "./easing-function";
1
+ export * from "./easing-function.js";
2
2
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdXRpbHMvZWFzaW5nLWZ1bmN0aW9uL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsbUJBQW1CLENBQUEifQ==
@@ -1,6 +1,6 @@
1
- import { TgdColor } from "@tgd/color";
2
- import { TgdVec2, TgdVec3, TgdVec4 } from "@tgd/math";
3
- import { ArrayNumber4 } from "@tgd/types";
1
+ import { TgdColor } from "../color";
2
+ import { TgdVec2, TgdVec3, TgdVec4 } from "../math";
3
+ import { ArrayNumber4 } from "../types";
4
4
  export declare function ensureArray<T>(items: T | T[] | undefined): T[];
5
5
  export declare function ensureTgdVec3(vec?: TgdColor | TgdVec2 | TgdVec3 | TgdVec4 | number[] | number | null, defaultValue?: TgdVec3): TgdVec3;
6
6
  export declare function ensureTgdVec4(vec?: TgdColor | TgdVec2 | TgdVec3 | TgdVec4 | number[] | number | null, defaultValue?: TgdVec4): TgdVec4;
@@ -1,5 +1,5 @@
1
- import { TgdColor } from "@tgd/color";
2
- import { TgdVec2, TgdVec3, TgdVec4 } from "@tgd/math";
1
+ import { TgdColor } from "./../color/index.js";
2
+ import { TgdVec2, TgdVec3, TgdVec4 } from "./../math/index.js";
3
3
  export function ensureArray(items) {
4
4
  if (items === undefined)
5
5
  return [];
@@ -1,4 +1,4 @@
1
- import { webglLookup } from "./webgl";
1
+ import { webglLookup } from "./webgl.js";
2
2
  export function webglCreateFramebuffer(gl) {
3
3
  const fb = gl.createFramebuffer();
4
4
  if (!fb)
@@ -1,14 +1,14 @@
1
- export * from "./action";
2
- export * from "./animation";
3
- export * from "./ensure";
4
- export * from "./assert";
5
- export * from "./bbox";
6
- export * from "./canvas";
7
- export * from "./cyclic-buffer";
8
- export * from "./easing-function";
9
- export * from "./framebuffer";
10
- export * from "./fullscreen";
11
- export * from "./pbo";
12
- export * from "./state";
13
- export * from "./webgl";
1
+ export * from "./action/index.js";
2
+ export * from "./animation/index.js";
3
+ export * from "./ensure.js";
4
+ export * from "./assert.js";
5
+ export * from "./bbox.js";
6
+ export * from "./canvas.js";
7
+ export * from "./cyclic-buffer.js";
8
+ export * from "./easing-function/index.js";
9
+ export * from "./framebuffer.js";
10
+ export * from "./fullscreen.js";
11
+ export * from "./pbo.js";
12
+ export * from "./state/index.js";
13
+ export * from "./webgl.js";
14
14
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdXRpbHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxVQUFVLENBQUE7QUFDeEIsY0FBYyxhQUFhLENBQUE7QUFDM0IsY0FBYyxVQUFVLENBQUE7QUFDeEIsY0FBYyxVQUFVLENBQUE7QUFDeEIsY0FBYyxRQUFRLENBQUE7QUFDdEIsY0FBYyxVQUFVLENBQUE7QUFDeEIsY0FBYyxpQkFBaUIsQ0FBQTtBQUMvQixjQUFjLG1CQUFtQixDQUFBO0FBQ2pDLGNBQWMsZUFBZSxDQUFBO0FBQzdCLGNBQWMsY0FBYyxDQUFBO0FBQzVCLGNBQWMsT0FBTyxDQUFBO0FBQ3JCLGNBQWMsU0FBUyxDQUFBO0FBQ3ZCLGNBQWMsU0FBUyxDQUFBIn0=
@@ -1,4 +1,4 @@
1
- import { tgdCanvasCreateWithContext2D } from "./canvas";
1
+ import { tgdCanvasCreateWithContext2D } from "./canvas.js";
2
2
  /**
3
3
  * Creating a Pixel Buffer Object is usefull to store big images into the GPU.
4
4
  *
@@ -1,5 +1,5 @@
1
- import type { WebglParams } from "@tgd/context/webgl-params";
2
- import { WebglEnumBlendEquation, WebglEnumBlendFunction } from "@tgd/types";
1
+ import type { WebglParams } from "../../context/webgl-params";
2
+ import { WebglEnumBlendEquation, WebglEnumBlendFunction } from "../../types";
3
3
  export interface WebglBlendOptions {
4
4
  enabled: boolean;
5
5
  equationColor: WebglEnumBlendEquation;
@@ -1,5 +1,5 @@
1
- import { debug, highlightEnum } from "@tgd/debug/debug";
2
- import { WebglEnumBlendEquation, WebglEnumBlendFunction } from "@tgd/types";
1
+ import { debug, highlightEnum } from "./../../debug/debug.js";
2
+ import { WebglEnumBlendEquation, WebglEnumBlendFunction } from "./../../types/index.js";
3
3
  export const webglPresetBlend = {
4
4
  off: {
5
5
  enabled: false,
@@ -1,5 +1,5 @@
1
- import type { WebglParams } from "@tgd/context/webgl-params";
2
- import { WebglEnumCullFace } from "@tgd/types";
1
+ import type { WebglParams } from "../../context/webgl-params";
2
+ import { WebglEnumCullFace } from "../../types";
3
3
  export interface WebglCullOptions {
4
4
  enabled: boolean;
5
5
  cullFace: WebglEnumCullFace;
@@ -1,5 +1,5 @@
1
- import { debug, highlightEnum } from "@tgd/debug/debug";
2
- import { WebglEnumCullFace } from "@tgd/types";
1
+ import { debug, highlightEnum } from "./../../debug/debug.js";
2
+ import { WebglEnumCullFace } from "./../../types/index.js";
3
3
  export const webglPresetCull = {
4
4
  off: {
5
5
  enabled: false,
@@ -1,5 +1,5 @@
1
- import { WebglParams } from "@tgd/context/webgl-params";
2
- import { WebglEnumDepthFunction } from "@tgd/types/webgl";
1
+ import { WebglParams } from "../../context/webgl-params";
2
+ import { WebglEnumDepthFunction } from "../../types/webgl";
3
3
  export interface WebglDepthOptions {
4
4
  enabled: boolean;
5
5
  func: WebglEnumDepthFunction;
@@ -1,5 +1,5 @@
1
- import { debug, highlightEnum } from "@tgd/debug/debug";
2
- import { WebglEnumDepthFunction } from "@tgd/types/webgl";
1
+ import { debug, highlightEnum } from "./../../debug/debug.js";
2
+ import { WebglEnumDepthFunction } from "./../../types/webgl.js";
3
3
  export const webglPresetDepth = {
4
4
  off: {
5
5
  enabled: false,
@@ -1,5 +1,5 @@
1
- export * from "./blend";
2
- export * from "./cull";
3
- export * from "./depth";
4
- export * from "./stencil";
1
+ export * from "./blend.js";
2
+ export * from "./cull.js";
3
+ export * from "./depth.js";
4
+ export * from "./stencil.js";
5
5
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdXRpbHMvc3RhdGUvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxTQUFTLENBQUE7QUFDdkIsY0FBYyxRQUFRLENBQUE7QUFDdEIsY0FBYyxTQUFTLENBQUE7QUFDdkIsY0FBYyxXQUFXLENBQUEifQ==
@@ -1,4 +1,4 @@
1
- import { WebglEnumStencilFunction, WebglEnumStencilOperation } from "@tgd/types";
1
+ import { WebglEnumStencilFunction, WebglEnumStencilOperation } from "../../types";
2
2
  export interface WebglStencilOptions {
3
3
  enabled: boolean;
4
4
  maskBack: number;
@@ -1,5 +1,5 @@
1
- import { debug, highlightEnum } from "@tgd/debug";
2
- import { WebglEnumStencilFunction, WebglEnumStencilOperation } from "@tgd/types";
1
+ import { debug, highlightEnum } from "./../../debug/index.js";
2
+ import { WebglEnumStencilFunction, WebglEnumStencilOperation } from "./../../types/index.js";
3
3
  export const webglPresetStencil = {
4
4
  off: {
5
5
  enabled: false,
@@ -1,4 +1,4 @@
1
- import { TgdTypeArrayForElements } from "@tgd/types";
1
+ import { TgdTypeArrayForElements } from "../types";
2
2
  /**
3
3
  * drawElements() can be used with 8, 16 or 32 unsinged ints arrays.
4
4
  * But the function does not know what type was passed as argument.
@@ -1,4 +1,4 @@
1
- import { isNumber } from "@tgd/types/guards";
1
+ import { isNumber } from "./../types/guards.js";
2
2
  /**
3
3
  * drawElements() can be used with 8, 16 or 32 unsinged ints arrays.
4
4
  * But the function does not know what type was passed as argument.
@@ -1,2 +1,2 @@
1
- export * from "./vao";
1
+ export * from "./vao.js";
2
2
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdmFvL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsT0FBTyxDQUFBIn0=
@@ -1,7 +1,7 @@
1
- import { TgdBuffer } from "@tgd/buffer";
2
- import type { TgdDataset } from "@tgd/dataset";
3
- import type { TgdProgram } from "@tgd/program";
4
- import type { TgdTypeArrayForElements } from "@tgd/types";
1
+ import { TgdBuffer } from "../buffer";
2
+ import type { TgdDataset } from "../dataset";
3
+ import type { TgdProgram } from "../program";
4
+ import type { TgdTypeArrayForElements } from "../types";
5
5
  export declare class TgdVertexArray {
6
6
  readonly gl: WebGL2RenderingContext;
7
7
  private readonly program?;
@@ -1,4 +1,4 @@
1
- import { TgdBuffer } from "@tgd/buffer";
1
+ import { TgdBuffer } from "./../buffer/index.js";
2
2
  export class TgdVertexArray {
3
3
  constructor(gl, program, datasets, elements) {
4
4
  this.gl = gl;
@@ -1,2 +1,2 @@
1
- export declare const version = "2.0.127";
1
+ export declare const version = "2.0.128";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1,2 +1,2 @@
1
- export const version = "2.0.127";
1
+ export const version = "2.0.128";
2
2
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy92ZXJzaW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sQ0FBQyxNQUFNLE9BQU8sR0FBRyxTQUFTLENBQUEifQ==
@@ -1,4 +1,4 @@
1
- import { TgdCodeBloc } from "@tgd/shader";
1
+ import { TgdCodeBloc } from "../shader";
2
2
  export declare function wasm_i32_load(offset: TgdCodeBloc[], memory?: string): TgdCodeBloc[];
3
3
  export declare function wasm_i64_load(offset: TgdCodeBloc[], memory?: string): TgdCodeBloc[];
4
4
  export declare function wasm_f32_load(offset: TgdCodeBloc[], memory?: string): TgdCodeBloc[];
@@ -1,4 +1,4 @@
1
- import { TgdCodeBloc } from "@tgd/shader";
1
+ import { TgdCodeBloc } from "../shader";
2
2
  import { WasmType } from "./types";
3
3
  export declare function wasm_call(funcName: string, ...args: TgdCodeBloc[]): TgdCodeBloc[];
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { TgdCodeBloc } from "@tgd/shader";
1
+ import { TgdCodeBloc } from "../shader";
2
2
  import { WasmFunction, WasmFunctionImport } from "./types";
3
3
  export declare function wasm_function_import(func: WasmFunctionImport): TgdCodeBloc[];
4
4
  export declare function wasm_function(name: string, func: WasmFunction): TgdCodeBloc[];
@@ -1,12 +1,12 @@
1
1
  /* eslint-disable unicorn/prevent-abbreviations */
2
- import { tgdCodeStringify } from "@tgd/shader";
3
- import { wasm_module } from "./module";
4
- import * as WAST from "./wast";
5
- export * from "./code";
6
- export * from "./flow";
7
- export * from "./local";
8
- export * from "./memory";
9
- export * from "./module";
2
+ import { tgdCodeStringify } from "./../shader/index.js";
3
+ import { wasm_module } from "./module.js";
4
+ import * as WAST from "./wast.js";
5
+ export * from "./code.js";
6
+ export * from "./flow.js";
7
+ export * from "./local.js";
8
+ export * from "./memory.js";
9
+ export * from "./module.js";
10
10
  export async function tgdWasmCompile(typeGuard, module, importObject = {}) {
11
11
  const { WebAssemblyText } = WAST;
12
12
  const code = tgdCodeStringify(wasm_module(module));
@@ -1,4 +1,4 @@
1
- import { TgdCodeBloc } from "@tgd/shader";
1
+ import { TgdCodeBloc } from "../shader";
2
2
  export declare function wasm_local_get(name: string): TgdCodeBloc[];
3
3
  export declare function wasm_local_set(name: string, value: TgdCodeBloc[]): TgdCodeBloc[];
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { TgdCodeBloc } from "@tgd/shader";
1
+ import { TgdCodeBloc } from "../shader";
2
2
  /**
3
3
  * Copy data from one place to another,
4
4
  * in memory.
@@ -1,4 +1,4 @@
1
- import { TgdCodeBloc } from "@tgd/shader";
1
+ import { TgdCodeBloc } from "../shader";
2
2
  import { WasmModule } from "./types";
3
3
  export declare function wasm_module(module: WasmModule): TgdCodeBloc;
4
4
  //# sourceMappingURL=module.d.ts.map
@@ -1,4 +1,4 @@
1
- import { wasm_function, wasm_function_import } from "./function";
1
+ import { wasm_function, wasm_function_import } from "./function.js";
2
2
  export function wasm_module(module) {
3
3
  const body = [];
4
4
  const { imports, exports, functions } = module;
@@ -1,4 +1,4 @@
1
- import { TgdCodeBloc } from "@tgd/shader";
1
+ import { TgdCodeBloc } from "../shader";
2
2
  export type WasmModule = {
3
3
  /** Names of the functions to export */
4
4
  imports?: WasmFunctionImport[];
@@ -1,2 +1,2 @@
1
- export * from "./texture";
1
+ export * from "./texture/index.js";
2
2
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvd2ViZ2wvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxXQUFXLENBQUEifQ==
@@ -1,3 +1,3 @@
1
- export * from "./texture2d";
2
- export * from "./types";
1
+ export * from "./texture2d.js";
2
+ export * from "./types.js";
3
3
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvd2ViZ2wvdGV4dHVyZS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGFBQWEsQ0FBQTtBQUMzQixjQUFjLFNBQVMsQ0FBQSJ9
@@ -1,4 +1,4 @@
1
- import { WebglMagFilter, WebglMinFilter, WebglWrap } from "@tgd/types";
1
+ import { WebglMagFilter, WebglMinFilter, WebglWrap } from "../../types";
2
2
  import { WebglTextureFormat, WebglTextureInternalFormat, WebglTextureType } from "./types";
3
3
  export interface WebglTextureParameters {
4
4
  wrapS?: WebglWrap;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tolokoban/tgd",
3
- "version": "2.0.127",
3
+ "version": "2.0.128",
4
4
  "description": "ToloGameDev library for WebGL2",
5
5
  "homepage": "https://tolokoban.github.io/tgd2",
6
6
  "main": "./lib/dist/index.js",