@tolokoban/tgd 2.0.127 → 2.0.129

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 (359) 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 +16 -8
  177. package/lib/dist/painter/gizmo/gizmo.d.ts.map +1 -1
  178. package/lib/dist/painter/gizmo/gizmo.js +72 -21
  179. package/lib/dist/painter/gizmo/index.js +1 -1
  180. package/lib/dist/painter/gizmo/painters/axes.d.ts +3 -3
  181. package/lib/dist/painter/gizmo/painters/axes.js +5 -5
  182. package/lib/dist/painter/gizmo/painters/mask.d.ts +2 -2
  183. package/lib/dist/painter/gizmo/painters/mask.js +6 -6
  184. package/lib/dist/painter/gizmo/painters/normal.d.ts +4 -4
  185. package/lib/dist/painter/gizmo/painters/normal.js +3 -3
  186. package/lib/dist/painter/gizmo/painters/tips.d.ts +2 -2
  187. package/lib/dist/painter/gizmo/painters/tips.js +4 -4
  188. package/lib/dist/painter/group-camera.d.ts +3 -3
  189. package/lib/dist/painter/group-camera.js +1 -1
  190. package/lib/dist/painter/group.d.ts +2 -2
  191. package/lib/dist/painter/group.js +4 -4
  192. package/lib/dist/painter/icon/icon.d.ts +4 -4
  193. package/lib/dist/painter/icon/icon.js +6 -6
  194. package/lib/dist/painter/icon/index.js +1 -1
  195. package/lib/dist/painter/icon/sprite.d.ts +7 -7
  196. package/lib/dist/painter/icon/sprite.js +5 -5
  197. package/lib/dist/painter/index.js +29 -29
  198. package/lib/dist/painter/lines/index.js +1 -1
  199. package/lib/dist/painter/lines/lines.d.ts +2 -2
  200. package/lib/dist/painter/lines/lines.js +8 -8
  201. package/lib/dist/painter/lod/index.js +1 -1
  202. package/lib/dist/painter/lod/lod.d.ts +4 -4
  203. package/lib/dist/painter/lod/lod.js +5 -5
  204. package/lib/dist/painter/lod/octree.d.ts +3 -3
  205. package/lib/dist/painter/lod/octree.js +1 -1
  206. package/lib/dist/painter/logic.js +1 -1
  207. package/lib/dist/painter/mesh/gltf/gltf.d.ts +5 -5
  208. package/lib/dist/painter/mesh/gltf/gltf.js +9 -9
  209. package/lib/dist/painter/mesh/gltf/index.js +1 -1
  210. package/lib/dist/painter/mesh/index.js +3 -3
  211. package/lib/dist/painter/mesh/mesh/index.js +1 -1
  212. package/lib/dist/painter/mesh/mesh/mesh.d.ts +6 -6
  213. package/lib/dist/painter/mesh/mesh/mesh.js +10 -10
  214. package/lib/dist/painter/mesh/normals/index.js +1 -1
  215. package/lib/dist/painter/mesh/normals/normals.d.ts +3 -3
  216. package/lib/dist/painter/mesh/normals/normals.js +6 -6
  217. package/lib/dist/painter/mix/index.js +1 -1
  218. package/lib/dist/painter/mix/mix.d.ts +2 -2
  219. package/lib/dist/painter/mix/mix.js +6 -6
  220. package/lib/dist/painter/node/index.js +1 -1
  221. package/lib/dist/painter/node/node.js +4 -4
  222. package/lib/dist/painter/overlay/index.js +1 -1
  223. package/lib/dist/painter/overlay/overlay.d.ts +4 -4
  224. package/lib/dist/painter/overlay/overlay.js +6 -6
  225. package/lib/dist/painter/painter.d.ts +1 -1
  226. package/lib/dist/painter/painter.js +1 -1
  227. package/lib/dist/painter/points-cloud/index.js +2 -2
  228. package/lib/dist/painter/points-cloud/points-cloud-morphing.d.ts +3 -3
  229. package/lib/dist/painter/points-cloud/points-cloud-morphing.js +8 -8
  230. package/lib/dist/painter/points-cloud/points-cloud.d.ts +3 -3
  231. package/lib/dist/painter/points-cloud/points-cloud.js +8 -8
  232. package/lib/dist/painter/program.d.ts +5 -5
  233. package/lib/dist/painter/program.js +9 -9
  234. package/lib/dist/painter/scissor.js +1 -1
  235. package/lib/dist/painter/segments/capsule.d.ts +1 -1
  236. package/lib/dist/painter/segments/capsule.js +2 -2
  237. package/lib/dist/painter/segments/index.js +2 -2
  238. package/lib/dist/painter/segments/segments-morphing.d.ts +6 -6
  239. package/lib/dist/painter/segments/segments-morphing.js +9 -9
  240. package/lib/dist/painter/segments/segments.d.ts +7 -7
  241. package/lib/dist/painter/segments/segments.js +8 -8
  242. package/lib/dist/painter/skybox/index.js +1 -1
  243. package/lib/dist/painter/skybox/skybox.d.ts +7 -7
  244. package/lib/dist/painter/skybox/skybox.js +6 -6
  245. package/lib/dist/painter/sprites/accessor.d.ts +1 -1
  246. package/lib/dist/painter/sprites/index.js +2 -2
  247. package/lib/dist/painter/sprites/sprites-abstract.d.ts +2 -2
  248. package/lib/dist/painter/sprites/sprites-abstract.js +2 -2
  249. package/lib/dist/painter/sprites/sprites-hue.d.ts +1 -1
  250. package/lib/dist/painter/sprites/sprites-hue.js +3 -3
  251. package/lib/dist/painter/sprites/sprites.d.ts +8 -8
  252. package/lib/dist/painter/sprites/sprites.js +9 -9
  253. package/lib/dist/painter/state/index.js +1 -1
  254. package/lib/dist/painter/state/state.d.ts +4 -4
  255. package/lib/dist/painter/state/state.js +3 -3
  256. package/lib/dist/painter/tubes/ellipse.js +1 -1
  257. package/lib/dist/painter/tubes/geometry.d.ts +2 -2
  258. package/lib/dist/painter/tubes/geometry.js +2 -2
  259. package/lib/dist/painter/tubes/index.js +1 -1
  260. package/lib/dist/painter/tubes/tubes.d.ts +4 -4
  261. package/lib/dist/painter/tubes/tubes.js +3 -3
  262. package/lib/dist/painter/tubes/types.d.ts +4 -4
  263. package/lib/dist/painter/tubes/vertices.d.ts +1 -1
  264. package/lib/dist/painter/tubes/vertices.js +1 -1
  265. package/lib/dist/painter/x-ray/background.d.ts +1 -1
  266. package/lib/dist/painter/x-ray/background.js +6 -6
  267. package/lib/dist/painter/x-ray/index.js +1 -1
  268. package/lib/dist/painter/x-ray/x-ray.d.ts +3 -3
  269. package/lib/dist/painter/x-ray/x-ray.js +9 -9
  270. package/lib/dist/parser/gltf/gltf.d.ts +9 -9
  271. package/lib/dist/parser/gltf/gltf.js +8 -8
  272. package/lib/dist/parser/gltf/index.js +1 -1
  273. package/lib/dist/parser/gltf/parser.js +1 -1
  274. package/lib/dist/parser/index.js +2 -2
  275. package/lib/dist/parser/mesh/wavefront.d.ts +1 -1
  276. package/lib/dist/parser/mesh/wavefront.js +3 -3
  277. package/lib/dist/program/index.js +1 -1
  278. package/lib/dist/program/program.d.ts +2 -2
  279. package/lib/dist/program/program.js +3 -3
  280. package/lib/dist/sdf/_common.d.ts +2 -2
  281. package/lib/dist/sdf/capsule.js +1 -1
  282. package/lib/dist/sdf/index.js +2 -2
  283. package/lib/dist/shader/code.js +1 -1
  284. package/lib/dist/shader/fragment.js +2 -2
  285. package/lib/dist/shader/index.js +3 -3
  286. package/lib/dist/shader/vertex.js +2 -2
  287. package/lib/dist/table/index.js +1 -1
  288. package/lib/dist/texture/index.js +3 -3
  289. package/lib/dist/texture/procedural.d.ts +1 -1
  290. package/lib/dist/texture/texture-cube.d.ts +5 -5
  291. package/lib/dist/texture/texture-cube.js +3 -3
  292. package/lib/dist/texture/texture-depth.d.ts +1 -1
  293. package/lib/dist/texture/texture-depth.js +1 -1
  294. package/lib/dist/texture/texture2d.d.ts +8 -8
  295. package/lib/dist/texture/texture2d.js +8 -8
  296. package/lib/dist/texture/types.d.ts +1 -1
  297. package/lib/dist/texture/types.js +2 -2
  298. package/lib/dist/time/index.js +2 -2
  299. package/lib/dist/time/interval/index.js +1 -1
  300. package/lib/dist/time/time.d.ts +1 -1
  301. package/lib/dist/types/buffer.js +1 -1
  302. package/lib/dist/types/gltf.js +1 -1
  303. package/lib/dist/types/index.js +10 -10
  304. package/lib/dist/types/program.d.ts +2 -2
  305. package/lib/dist/uniform/index.js +2 -2
  306. package/lib/dist/uniform/ubo-camera.d.ts +3 -3
  307. package/lib/dist/uniform/ubo-camera.js +2 -2
  308. package/lib/dist/uniform/uniform-buffer-object.d.ts +3 -3
  309. package/lib/dist/uniform/uniform-buffer-object.js +4 -4
  310. package/lib/dist/utils/action/camera.d.ts +1 -1
  311. package/lib/dist/utils/action/camera.js +3 -3
  312. package/lib/dist/utils/action/index.js +3 -3
  313. package/lib/dist/utils/action/transfo.d.ts +1 -1
  314. package/lib/dist/utils/action/transfo.js +1 -1
  315. package/lib/dist/utils/action/vector.js +1 -1
  316. package/lib/dist/utils/animation/chain-transfo-interpolations.d.ts +2 -2
  317. package/lib/dist/utils/animation/chain-transfo-interpolations.js +3 -3
  318. package/lib/dist/utils/animation/chain.d.ts +1 -1
  319. package/lib/dist/utils/animation/chain.js +1 -1
  320. package/lib/dist/utils/animation/index.js +2 -2
  321. package/lib/dist/utils/bbox.d.ts +2 -2
  322. package/lib/dist/utils/bbox.js +1 -1
  323. package/lib/dist/utils/canvas.d.ts +3 -3
  324. package/lib/dist/utils/canvas.js +2 -2
  325. package/lib/dist/utils/easing-function/index.js +1 -1
  326. package/lib/dist/utils/ensure.d.ts +3 -3
  327. package/lib/dist/utils/ensure.js +2 -2
  328. package/lib/dist/utils/framebuffer.js +1 -1
  329. package/lib/dist/utils/index.js +13 -13
  330. package/lib/dist/utils/pbo.js +1 -1
  331. package/lib/dist/utils/state/blend.d.ts +2 -2
  332. package/lib/dist/utils/state/blend.js +2 -2
  333. package/lib/dist/utils/state/cull.d.ts +2 -2
  334. package/lib/dist/utils/state/cull.js +2 -2
  335. package/lib/dist/utils/state/depth.d.ts +2 -2
  336. package/lib/dist/utils/state/depth.js +2 -2
  337. package/lib/dist/utils/state/index.js +4 -4
  338. package/lib/dist/utils/state/stencil.d.ts +1 -1
  339. package/lib/dist/utils/state/stencil.js +2 -2
  340. package/lib/dist/utils/webgl.d.ts +1 -1
  341. package/lib/dist/utils/webgl.js +1 -1
  342. package/lib/dist/vao/index.js +1 -1
  343. package/lib/dist/vao/vao.d.ts +4 -4
  344. package/lib/dist/vao/vao.js +1 -1
  345. package/lib/dist/version.d.ts +1 -1
  346. package/lib/dist/version.js +1 -1
  347. package/lib/dist/wasm/code.d.ts +1 -1
  348. package/lib/dist/wasm/flow.d.ts +1 -1
  349. package/lib/dist/wasm/function.d.ts +1 -1
  350. package/lib/dist/wasm/index.js +8 -8
  351. package/lib/dist/wasm/local.d.ts +1 -1
  352. package/lib/dist/wasm/memory.d.ts +1 -1
  353. package/lib/dist/wasm/module.d.ts +1 -1
  354. package/lib/dist/wasm/module.js +1 -1
  355. package/lib/dist/wasm/types.d.ts +1 -1
  356. package/lib/dist/webgl/index.js +1 -1
  357. package/lib/dist/webgl/texture/index.js +2 -2
  358. package/lib/dist/webgl/texture/texture2d.d.ts +1 -1
  359. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { TgdDataset } from "@tgd/dataset";
1
+ import { TgdDataset } from "../../dataset";
2
2
  import { Accessor } from "./types";
3
3
  export declare class AccessorProxy implements Accessor {
4
4
  readonly attributeName: string;
@@ -1,3 +1,3 @@
1
- export * from "./sprites";
2
- export * from "./sprites-hue";
1
+ export * from "./sprites.js";
2
+ export * from "./sprites-hue.js";
3
3
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcGFpbnRlci9zcHJpdGVzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsV0FBVyxDQUFBO0FBQ3pCLGNBQWMsZUFBZSxDQUFBIn0=
@@ -1,5 +1,5 @@
1
- import type { TgdInterfaceTransformable } from "@tgd/interface";
2
- import { TgdTransfo } from "@tgd/math";
1
+ import type { TgdInterfaceTransformable } from "../../interface";
2
+ import { TgdTransfo } from "../../math";
3
3
  import { TgdPainter } from "../painter";
4
4
  import type { TgdSprite } from "./types";
5
5
  export type { TgdSprite } from "./types";
@@ -1,5 +1,5 @@
1
- import { TgdTransfo } from "@tgd/math";
2
- import { TgdPainter } from "../painter";
1
+ import { TgdTransfo } from "./../../math/index.js";
2
+ import { TgdPainter } from "../painter.js";
3
3
  export class TgdPainterSpritesAbstract extends TgdPainter {
4
4
  constructor() {
5
5
  super(...arguments);
@@ -1,4 +1,4 @@
1
- import type { TgdContext } from "@tgd/context";
1
+ import type { TgdContext } from "../../context";
2
2
  import type { TgdSpriteHue } from "./types";
3
3
  import { TgdPainterSpritesOptions } from "./sprites";
4
4
  import { TgdPainterSpritesAbstract } from "./sprites-abstract";
@@ -1,6 +1,6 @@
1
- import { TgdPainterSprites } from "./sprites";
2
- import { tgdCodeFunction_shiftHue } from "@tgd/code";
3
- import { TgdPainterSpritesAbstract } from "./sprites-abstract";
1
+ import { TgdPainterSprites } from "./sprites.js";
2
+ import { tgdCodeFunction_shiftHue } from "./../../code/index.js";
3
+ import { TgdPainterSpritesAbstract } from "./sprites-abstract.js";
4
4
  export class TgdPainterSpritesHue extends TgdPainterSpritesAbstract {
5
5
  constructor(context, options) {
6
6
  super();
@@ -1,11 +1,11 @@
1
- import type { TgdContext } from "@tgd/context";
2
- import { TgdDataset, type TgdDatasetTypeRecord } from "@tgd/dataset";
3
- import { TgdTransfo, TgdVec2 } from "@tgd/math";
4
- import { TgdProgram } from "@tgd/program";
5
- import { type TgdCodeBloc, type TgdCodeFunctions } from "@tgd/shader";
6
- import type { TgdTexture2D } from "@tgd/texture";
7
- import type { WebglAttributeType } from "@tgd/types";
8
- import { TgdVertexArray } from "@tgd/vao";
1
+ import type { TgdContext } from "../../context";
2
+ import { TgdDataset, type TgdDatasetTypeRecord } from "../../dataset";
3
+ import { TgdTransfo, TgdVec2 } from "../../math";
4
+ import { TgdProgram } from "../../program";
5
+ import { type TgdCodeBloc, type TgdCodeFunctions } from "../../shader";
6
+ import type { TgdTexture2D } from "../../texture";
7
+ import type { WebglAttributeType } from "../../types";
8
+ import { TgdVertexArray } from "../../vao";
9
9
  import { AccessorProxy } from "./accessor";
10
10
  import { TgdPainterSpritesAbstract } from "./sprites-abstract";
11
11
  import type { AtlasItem, TgdSprite } from "./types";
@@ -1,12 +1,12 @@
1
- import { TgdDataset } from "@tgd/dataset";
2
- import { TgdConsole } from "@tgd/debug";
3
- import { TgdMat4, TgdTransfo, TgdVec2 } from "@tgd/math";
4
- import { TgdProgram } from "@tgd/program";
5
- import { TgdShaderFragment, TgdShaderVertex, } from "@tgd/shader";
6
- import { isNumber } from "@tgd/types/guards";
7
- import { TgdVertexArray } from "@tgd/vao";
8
- import { AccessorProxy } from "./accessor";
9
- import { TgdPainterSpritesAbstract } from "./sprites-abstract";
1
+ import { TgdDataset } from "./../../dataset/index.js";
2
+ import { TgdConsole } from "./../../debug/index.js";
3
+ import { TgdMat4, TgdTransfo, TgdVec2 } from "./../../math/index.js";
4
+ import { TgdProgram } from "./../../program/index.js";
5
+ import { TgdShaderFragment, TgdShaderVertex, } from "./../../shader/index.js";
6
+ import { isNumber } from "./../../types/guards.js";
7
+ import { TgdVertexArray } from "./../../vao/index.js";
8
+ import { AccessorProxy } from "./accessor.js";
9
+ import { TgdPainterSpritesAbstract } from "./sprites-abstract.js";
10
10
  const DEBUG_COL_SIZE = 8;
11
11
  export class TgdPainterSprites extends TgdPainterSpritesAbstract {
12
12
  constructor(context, options) {
@@ -1,2 +1,2 @@
1
- export * from "./state";
1
+ export * from "./state.js";
2
2
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcGFpbnRlci9zdGF0ZS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLFNBQVMsQ0FBQSJ9
@@ -1,7 +1,7 @@
1
- import type { WebglParams } from "@tgd/context/webgl-params";
2
- import type { ArrayNumber4 } from "@tgd/types";
3
- import type { TgdPainterFunction } from "@tgd/types/painter";
4
- import { type WebglBlendOptions, type WebglCullOptions, type WebglDepthOptions, type WebglStencilOptions, webglPresetBlend, webglPresetCull, webglPresetDepth, webglPresetStencil } from "@tgd/utils/state";
1
+ import type { WebglParams } from "../../context/webgl-params";
2
+ import type { ArrayNumber4 } from "../../types";
3
+ import type { TgdPainterFunction } from "../../types/painter";
4
+ import { type WebglBlendOptions, type WebglCullOptions, type WebglDepthOptions, type WebglStencilOptions, webglPresetBlend, webglPresetCull, webglPresetDepth, webglPresetStencil } from "../../utils/state";
5
5
  import { TgdPainterGroup } from "../group";
6
6
  import type { TgdPainter } from "../painter";
7
7
  type Keys<T2, T1> = {
@@ -1,6 +1,6 @@
1
- import { webglLookup } from "@tgd/utils";
2
- import { webglBlendGet, webglBlendSet, webglCullGet, webglCullSet, webglDepthGet, webglDepthSet, webglPresetBlend, webglPresetCull, webglPresetDepth, webglPresetStencil, webglStencilGet, webglStencilSet, } from "@tgd/utils/state";
3
- import { TgdPainterGroup } from "../group";
1
+ import { webglLookup } from "./../../utils/index.js";
2
+ import { webglBlendGet, webglBlendSet, webglCullGet, webglCullSet, webglDepthGet, webglDepthSet, webglPresetBlend, webglPresetCull, webglPresetDepth, webglPresetStencil, webglStencilGet, webglStencilSet, } from "./../../utils/state/index.js";
3
+ import { TgdPainterGroup } from "../group.js";
4
4
  export class TgdPainterState extends TgdPainterGroup {
5
5
  static do(context, options) {
6
6
  const self = {
@@ -1,4 +1,4 @@
1
- import { TgdVec3 } from "@tgd/index";
1
+ import { TgdVec3 } from "./../../index.js";
2
2
  const EPSILON = 1e-12;
3
3
  /**
4
4
  * This class deals with the joint between two segments,
@@ -1,6 +1,6 @@
1
- import { TgdDataset } from "@tgd/dataset";
1
+ import { TgdDataset } from "../../dataset";
2
2
  import { TgdPainterTubesBranch } from "./types";
3
- import { TgdTypeArrayForElements } from "@tgd/types";
3
+ import { TgdTypeArrayForElements } from "../../types";
4
4
  export declare function makeDatasetAndElements(branches: TgdPainterTubesBranch[], roundness: number): {
5
5
  dataset: TgdDataset;
6
6
  elements: TgdTypeArrayForElements;
@@ -1,5 +1,5 @@
1
- import { Vertices } from "./vertices";
2
- import { Ellipse } from "./ellipse";
1
+ import { Vertices } from "./vertices.js";
2
+ import { Ellipse } from "./ellipse.js";
3
3
  const TAU = 2 * Math.PI;
4
4
  export function makeDatasetAndElements(branches, roundness) {
5
5
  const vertices = new Vertices();
@@ -1,2 +1,2 @@
1
- export * from "./tubes";
1
+ export * from "./tubes.js";
2
2
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcGFpbnRlci90dWJlcy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLFNBQVMsQ0FBQSJ9
@@ -1,8 +1,8 @@
1
- import { type TgdMaterial } from "@tgd/material";
2
- import { TgdTransfo } from "@tgd/math";
3
- import { TgdPainter } from "@tgd/painter/painter";
1
+ import { type TgdMaterial } from "../../material";
2
+ import { TgdTransfo } from "../../math";
3
+ import { TgdPainter } from "../painter";
4
4
  import { TgdPainterTubesOptions } from "./types";
5
- import { TgdContext } from "@tgd/context";
5
+ import { TgdContext } from "../../context";
6
6
  export declare class TgdPainterTubes extends TgdPainter {
7
7
  protected readonly context: TgdContext;
8
8
  readonly transfo: TgdTransfo;
@@ -1,6 +1,6 @@
1
- import { TgdMaterialFaceOrientation } from "@tgd/material";
2
- import { TgdTransfo } from "@tgd/math";
3
- import { TgdPainter } from "@tgd/painter/painter";
1
+ import { TgdMaterialFaceOrientation } from "./../../material/index.js";
2
+ import { TgdTransfo } from "./../../math/index.js";
3
+ import { TgdPainter } from "./../painter.js";
4
4
  export class TgdPainterTubes extends TgdPainter {
5
5
  // private readonly vao: TgdVertexArray
6
6
  // private readonly prg: TgdProgram
@@ -1,7 +1,7 @@
1
- import { TgdVec3 } from "@tgd/index";
2
- import { TgdMaterial } from "@tgd/material";
3
- import { TgdVec2 } from "@tgd/math";
4
- import { ArrayNumber3 } from "@tgd/types";
1
+ import { TgdVec3 } from "../../index";
2
+ import { TgdMaterial } from "../../material";
3
+ import { TgdVec2 } from "../../math";
4
+ import { ArrayNumber3 } from "../../types";
5
5
  export interface Section {
6
6
  roundness: number;
7
7
  points: SectionPoint[];
@@ -1,4 +1,4 @@
1
- import { TgdDataset } from "@tgd/dataset";
1
+ import { TgdDataset } from "../../dataset";
2
2
  export declare class Vertices {
3
3
  private _points;
4
4
  private _count;
@@ -1,4 +1,4 @@
1
- import { TgdDataset } from "@tgd/dataset";
1
+ import { TgdDataset } from "./../../dataset/index.js";
2
2
  export class Vertices {
3
3
  constructor() {
4
4
  this._points = [];
@@ -1,4 +1,4 @@
1
- import type { TgdTexture2D } from "@tgd/texture";
1
+ import type { TgdTexture2D } from "../../texture";
2
2
  import { TgdPainter } from "../painter";
3
3
  export interface TgdPainterBackgroundOptions {
4
4
  texture: TgdTexture2D;
@@ -1,9 +1,9 @@
1
- import { TgdDataset } from "@tgd/dataset/dataset";
2
- import { TgdProgram } from "@tgd/program";
3
- import { TgdVertexArray } from "@tgd/vao";
4
- import { TgdPainter } from "../painter";
5
- import { FRAG } from "./background.frag";
6
- import { VERT } from "./background.vert";
1
+ import { TgdDataset } from "./../../dataset/dataset.js";
2
+ import { TgdProgram } from "./../../program/index.js";
3
+ import { TgdVertexArray } from "./../../vao/index.js";
4
+ import { TgdPainter } from "../painter.js";
5
+ import { FRAG } from "./background.frag.js";
6
+ import { VERT } from "./background.vert.js";
7
7
  export class TgdPainterBackground extends TgdPainter {
8
8
  constructor(context, { texture } = {}) {
9
9
  super();
@@ -1,2 +1,2 @@
1
- export * from "./x-ray";
1
+ export * from "./x-ray.js";
2
2
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcGFpbnRlci94LXJheS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLFNBQVMsQ0FBQSJ9
@@ -1,6 +1,6 @@
1
- import type { TgdContext } from "@tgd/context/context";
2
- import type { TgdGeometry } from "@tgd/geometry";
3
- import { type TgdMaterialGhostOptions } from "@tgd/material";
1
+ import type { TgdContext } from "../../context/context";
2
+ import type { TgdGeometry } from "../../geometry";
3
+ import { type TgdMaterialGhostOptions } from "../../material";
4
4
  import { TgdPainter } from "../painter";
5
5
  export interface TgdPainterXRayOptions extends TgdMaterialGhostOptions {
6
6
  geometry: TgdGeometry;
@@ -1,12 +1,12 @@
1
- import { TgdMaterialGhost } from "@tgd/material";
2
- import { TgdTexture2D } from "@tgd/texture";
3
- import { webglPresetBlend, webglPresetCull, webglPresetDepth } from "@tgd/utils";
4
- import { TgdPainterClear } from "../clear";
5
- import { TgdPainterFramebufferWithAntiAliasing } from "../framebuffer-msaa";
6
- import { TgdPainterMesh } from "../mesh";
7
- import { TgdPainter } from "../painter";
8
- import { TgdPainterState } from "../state";
9
- import { TgdPainterBackground } from "./background";
1
+ import { TgdMaterialGhost } from "./../../material/index.js";
2
+ import { TgdTexture2D } from "./../../texture/index.js";
3
+ import { webglPresetBlend, webglPresetCull, webglPresetDepth } from "./../../utils/index.js";
4
+ import { TgdPainterClear } from "../clear.js";
5
+ import { TgdPainterFramebufferWithAntiAliasing } from "../framebuffer-msaa.js";
6
+ import { TgdPainterMesh } from "../mesh/index.js";
7
+ import { TgdPainter } from "../painter.js";
8
+ import { TgdPainterState } from "../state/index.js";
9
+ import { TgdPainterBackground } from "./background.js";
10
10
  export class TgdPainterXRay extends TgdPainter {
11
11
  constructor(context, options) {
12
12
  super();
@@ -1,12 +1,12 @@
1
- import { type TgdCamera } from "@tgd/camera";
2
- import { TgdColor } from "@tgd/color";
3
- import { TgdContext } from "@tgd/context";
4
- import { TgdDataset } from "@tgd/dataset";
5
- import { TgdGeometry } from "@tgd/geometry";
6
- import { TgdTransfo, TgdVec4 } from "@tgd/math";
7
- import { TgdTexture2D } from "@tgd/texture";
8
- import { ArrayNumber4, type TgdTypeArrayForElements } from "@tgd/types";
9
- import type { TgdFormatGltf, TgdFormatGltfAccessor, TgdFormatGltfBufferView, TgdFormatGltfCamera, TgdFormatGltfEmbededData, TgdFormatGltfImage, TgdFormatGltfMaterial, TgdFormatGltfMesh, TgdFormatGltfMeshPrimitive, TgdFormatGltfNode, TgdFormatGltfScene } from "@tgd/types/gltf";
1
+ import { type TgdCamera } from "../../camera";
2
+ import { TgdColor } from "../../color";
3
+ import { TgdContext } from "../../context";
4
+ import { TgdDataset } from "../../dataset";
5
+ import { TgdGeometry } from "../../geometry";
6
+ import { TgdTransfo, TgdVec4 } from "../../math";
7
+ import { TgdTexture2D } from "../../texture";
8
+ import { ArrayNumber4, type TgdTypeArrayForElements } from "../../types";
9
+ import type { TgdFormatGltf, TgdFormatGltfAccessor, TgdFormatGltfBufferView, TgdFormatGltfCamera, TgdFormatGltfEmbededData, TgdFormatGltfImage, TgdFormatGltfMaterial, TgdFormatGltfMesh, TgdFormatGltfMeshPrimitive, TgdFormatGltfNode, TgdFormatGltfScene } from "../../types/gltf";
10
10
  export declare class TgdDataGlb {
11
11
  private readonly chunks;
12
12
  private readonly images;
@@ -5,14 +5,14 @@
5
5
  import { load } from "@loaders.gl/core";
6
6
  import { DracoLoader } from "@loaders.gl/draco";
7
7
  import { GLTFLoader } from "@loaders.gl/gltf";
8
- import { TgdCameraPerspective } from "@tgd/camera";
9
- import { TgdDataset } from "@tgd/dataset";
10
- import { TgdGeometry } from "@tgd/geometry";
11
- import { tgdLoadImage, tgdLoadImageFromArrayBuffer } from "@tgd/loader";
12
- import { TgdQuat, TgdTransfo, TgdVec3 } from "@tgd/math";
13
- import { TgdTexture2D } from "@tgd/texture";
14
- import { assertTgdFormatGltf, assertTgdTypeArrayForElements, } from "@tgd/types";
15
- import { isNumber } from "@tgd/types/guards";
8
+ import { TgdCameraPerspective } from "./../../camera/index.js";
9
+ import { TgdDataset } from "./../../dataset/index.js";
10
+ import { TgdGeometry } from "./../../geometry/index.js";
11
+ import { tgdLoadImage, tgdLoadImageFromArrayBuffer } from "./../../loader/index.js";
12
+ import { TgdQuat, TgdTransfo, TgdVec3 } from "./../../math/index.js";
13
+ import { TgdTexture2D } from "./../../texture/index.js";
14
+ import { assertTgdFormatGltf, assertTgdTypeArrayForElements, } from "./../../types/index.js";
15
+ import { isNumber } from "./../../types/guards.js";
16
16
  const EMPTY_IMAGE = new Image();
17
17
  export class TgdDataGlb {
18
18
  static async parse(content) {
@@ -1,2 +1,2 @@
1
- export * from "./gltf";
1
+ export * from "./gltf.js";
2
2
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcGFyc2VyL2dsdGYvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxRQUFRLENBQUEifQ==
@@ -1,4 +1,4 @@
1
- import { assertTgdFormatGltf } from "../../types/gltf";
1
+ import { assertTgdFormatGltf } from "../../types/gltf.js";
2
2
  /**
3
3
  * @see https://www.khronos.org/files/gltf20-reference-guide.pdf
4
4
  */
@@ -1,3 +1,3 @@
1
- export * from "./gltf";
2
- export * from "./mesh/wavefront";
1
+ export * from "./gltf/index.js";
2
+ export * from "./mesh/wavefront.js";
3
3
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcGFyc2VyL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsUUFBUSxDQUFBO0FBQ3RCLGNBQWMsa0JBQWtCLENBQUEifQ==
@@ -1,4 +1,4 @@
1
- import { TgdGeometry } from "@tgd/geometry";
1
+ import { TgdGeometry } from "../../geometry";
2
2
  export interface TgdParserMeshWavefrontAttributes {
3
3
  vertex: number;
4
4
  normal?: number;
@@ -1,6 +1,6 @@
1
- import { forEachLine } from "../for-each-line";
2
- import { TgdVec3 } from "@tgd/math";
3
- import { TgdGeometry } from "@tgd/geometry";
1
+ import { forEachLine } from "../for-each-line.js";
2
+ import { TgdVec3 } from "./../../math/index.js";
3
+ import { TgdGeometry } from "./../../geometry/index.js";
4
4
  /**
5
5
  * This [Wavefront](https://en.wikipedia.org/wiki/Wavefront_.obj_file)
6
6
  * parser only finds the object name,
@@ -1,2 +1,2 @@
1
- export * from "./program";
1
+ export * from "./program.js";
2
2
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcHJvZ3JhbS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLFdBQVcsQ0FBQSJ9
@@ -1,5 +1,5 @@
1
- import { TgdMat2, TgdMat3, TgdMat4, TgdVec2, TgdVec3, TgdVec4 } from "@tgd/math";
2
- import { TgdProgramOptions } from "@tgd/types";
1
+ import { TgdMat2, TgdMat3, TgdMat4, TgdVec2, TgdVec3, TgdVec4 } from "../math";
2
+ import { TgdProgramOptions } from "../types";
3
3
  /**
4
4
  * This class helps to manage a WebGLProgram.
5
5
  * It will report meaninfull errors and help you with
@@ -1,6 +1,6 @@
1
- import { TgdConsole } from "@tgd/debug";
2
- import { TgdShaderFragment, TgdShaderVertex } from "@tgd/shader";
3
- import { tgdCodeStringify } from "@tgd/shader/code";
1
+ import { TgdConsole } from "./../debug/index.js";
2
+ import { TgdShaderFragment, TgdShaderVertex } from "./../shader/index.js";
3
+ import { tgdCodeStringify } from "./../shader/code.js";
4
4
  /**
5
5
  * This class helps to manage a WebGLProgram.
6
6
  * It will report meaninfull errors and help you with
@@ -1,5 +1,5 @@
1
- import { TgdVec3, TgdVec4 } from "@tgd/math";
2
- import { ArrayNumber3, ArrayNumber4 } from "@tgd/types";
1
+ import { TgdVec3, TgdVec4 } from "../math";
2
+ import { ArrayNumber3, ArrayNumber4 } from "../types";
3
3
  export type Vec3 = ArrayNumber3 | ArrayNumber4 | TgdVec3 | TgdVec4;
4
4
  export declare function subtract(a: Vec3, b: Vec3): Vec3;
5
5
  export declare function dot(a: Vec3, b: Vec3): number;
@@ -1,4 +1,4 @@
1
- import { dot, dot2, scale, sign, subtract } from "./_common";
1
+ import { dot, dot2, scale, sign, subtract } from "./_common.js";
2
2
  export function tgdSdfCapsule(p, a, b, r1, r2) {
3
3
  // sampling independent computations (only depend on shape)
4
4
  const ba = subtract(b, a);
@@ -1,3 +1,3 @@
1
- export * from "./capsule";
2
- export * from "./sphere";
1
+ export * from "./capsule.js";
2
+ export * from "./sphere.js";
3
3
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvc2RmL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsV0FBVyxDQUFBO0FBQ3pCLGNBQWMsVUFBVSxDQUFBIn0=
@@ -1,4 +1,4 @@
1
- import { isString } from "@tgd/types/guards";
1
+ import { isString } from "./../types/guards.js";
2
2
  export function isTgdCodeBloc(data) {
3
3
  if (!data || typeof data === "string")
4
4
  return true;
@@ -1,5 +1,5 @@
1
- import { ensureArray, TgdConsole } from "..";
2
- import { expandFunctions, expandVariables, tgdCodeStringify, } from "./code";
1
+ import { ensureArray, TgdConsole } from "../index.js";
2
+ import { expandFunctions, expandVariables, tgdCodeStringify, } from "./code.js";
3
3
  /**
4
4
  * Helper to write the code of a fragment Shader.
5
5
  * @see https://registry.khronos.org/OpenGL/specs/es/3.0/GLSL_ES_Specification_3.00.pdf
@@ -1,4 +1,4 @@
1
- export * from "./code";
2
- export * from "./fragment";
3
- export * from "./vertex";
1
+ export * from "./code.js";
2
+ export * from "./fragment.js";
3
+ export * from "./vertex.js";
4
4
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvc2hhZGVyL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsUUFBUSxDQUFBO0FBQ3RCLGNBQWMsWUFBWSxDQUFBO0FBQzFCLGNBQWMsVUFBVSxDQUFBIn0=
@@ -1,5 +1,5 @@
1
- import { ensureArray, TgdConsole, } from "..";
2
- import { expandFunctions, expandVariables, tgdCodeStringify as tgdCodeToString, } from "./code";
1
+ import { ensureArray, TgdConsole, } from "../index.js";
2
+ import { expandFunctions, expandVariables, tgdCodeStringify as tgdCodeToString, } from "./code.js";
3
3
  /**
4
4
  * Helper to create a Vertex Shader.
5
5
  *
@@ -1,2 +1,2 @@
1
- export * from "./table";
1
+ export * from "./table.js";
2
2
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdGFibGUvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxTQUFTLENBQUEifQ==
@@ -1,4 +1,4 @@
1
- export * from "./texture2d";
2
- export * from "./texture-cube";
3
- export * from "./texture-depth";
1
+ export * from "./texture2d.js";
2
+ export * from "./texture-cube.js";
3
+ export * from "./texture-depth.js";
4
4
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdGV4dHVyZS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGFBQWEsQ0FBQTtBQUMzQixjQUFjLGdCQUFnQixDQUFBO0FBQzlCLGNBQWMsaUJBQWlCLENBQUEifQ==
@@ -1,4 +1,4 @@
1
- import { TgdMaterialOptions } from "@tgd/material";
1
+ import { TgdMaterialOptions } from "../material";
2
2
  export declare class TgdTextureProcedural {
3
3
  /**
4
4
  * Name of the vec4 attribute holding the vertex position.
@@ -1,8 +1,8 @@
1
- import { TgdColor } from "@tgd/color";
2
- import type { TgdContext } from "@tgd/context";
3
- import type { TgdVec4 } from "@tgd/math";
4
- import type { TgdProgram } from "@tgd/program";
5
- import type { ArrayNumber4, TgdTextureCubeOptions } from "@tgd/types";
1
+ import { TgdColor } from "../color";
2
+ import type { TgdContext } from "../context";
3
+ import type { TgdVec4 } from "../math";
4
+ import type { TgdProgram } from "../program";
5
+ import type { ArrayNumber4, TgdTextureCubeOptions } from "../types";
6
6
  export declare class TgdTextureCube {
7
7
  readonly context: TgdContext;
8
8
  static lazyLoad(context: TgdContext, { size, initialColor, name, posX, posY, posZ, negX, negY, negZ, }: {
@@ -1,6 +1,6 @@
1
- import { TgdColor } from "@tgd/color";
2
- import { tgdLoadImage } from "@tgd/loader";
3
- import { tgdCanvasCreateFill } from "@tgd/utils";
1
+ import { TgdColor } from "./../color/index.js";
2
+ import { tgdLoadImage } from "./../loader/index.js";
3
+ import { tgdCanvasCreateFill } from "./../utils/index.js";
4
4
  export class TgdTextureCube {
5
5
  static lazyLoad(context, { size, initialColor, name, posX, posY, posZ, negX, negY, negZ, }) {
6
6
  const color = new TgdColor(initialColor ?? "#888").toString();
@@ -1,5 +1,5 @@
1
1
  import { TgdTexture2D } from "./texture2d";
2
- import { TgdContext } from "@tgd/context";
2
+ import { TgdContext } from "../context";
3
3
  interface TgdTextureDepthStorage {
4
4
  width: number;
5
5
  height: number;
@@ -1,4 +1,4 @@
1
- import { TgdTexture2D } from "./texture2d";
1
+ import { TgdTexture2D } from "./texture2d.js";
2
2
  export class TgdTextureDepth extends TgdTexture2D {
3
3
  constructor(context, { width = 1, height = 1, type = "DEPTH_COMPONENT24" } = {}) {
4
4
  super(context, {
@@ -1,11 +1,11 @@
1
- import { TgdColor } from "@tgd/color";
2
- import { TgdContext } from "@tgd/context";
3
- import { TgdEvent } from "@tgd/event";
4
- import type { TgdFilter } from "@tgd/filter";
5
- import { TgdVec4 } from "@tgd/math";
6
- import { TgdProgram } from "@tgd/program";
7
- import { ArrayNumber4, type WebglImage, type WebglTexParameter } from "@tgd/types";
8
- import { type WebglTextureInternalFormat, type WebglTextureParameters } from "@tgd/webgl";
1
+ import { TgdColor } from "../color";
2
+ import { TgdContext } from "../context";
3
+ import { TgdEvent } from "../event";
4
+ import type { TgdFilter } from "../filter";
5
+ import { TgdVec4 } from "../math";
6
+ import { TgdProgram } from "../program";
7
+ import { ArrayNumber4, type WebglImage, type WebglTexParameter } from "../types";
8
+ import { type WebglTextureInternalFormat, type WebglTextureParameters } from "../webgl";
9
9
  import { type LoadBmpOptions } from "./types";
10
10
  interface TgdTexture2DStorage {
11
11
  width: number;
@@ -1,11 +1,11 @@
1
- import { TgdEvent } from "@tgd/event";
2
- import { tgdLoadImage } from "@tgd/loader/image";
3
- import { TgdPainterFilter, TgdPainterFramebuffer } from "@tgd/painter";
4
- import { isWebglImage } from "@tgd/types";
5
- import { isString } from "@tgd/types/guards";
6
- import { ensureArrayNumber4, tgdCanvasCreate, webglLookup } from "@tgd/utils";
7
- import { webglTextureParametersSet } from "@tgd/webgl";
8
- import { isLoadBmpOptions } from "./types";
1
+ import { TgdEvent } from "./../event/index.js";
2
+ import { tgdLoadImage } from "./../loader/image.js";
3
+ import { TgdPainterFilter, TgdPainterFramebuffer } from "./../painter/index.js";
4
+ import { isWebglImage } from "./../types/index.js";
5
+ import { isString } from "./../types/guards.js";
6
+ import { ensureArrayNumber4, tgdCanvasCreate, webglLookup } from "./../utils/index.js";
7
+ import { webglTextureParametersSet } from "./../webgl/index.js";
8
+ import { isLoadBmpOptions } from "./types.js";
9
9
  export class TgdTexture2D {
10
10
  constructor(context, options = {}) {
11
11
  this.context = context;
@@ -1,4 +1,4 @@
1
- import { WebglImage } from "@tgd/types";
1
+ import { WebglImage } from "../types";
2
2
  export interface LoadBmpOptions {
3
3
  bmp: string | WebglImage | Promise<WebglImage | null>;
4
4
  level?: number;
@@ -1,5 +1,5 @@
1
- import { isWebglImage } from "@tgd/types";
2
- import { isString, isType } from "@tgd/types/guards";
1
+ import { isWebglImage } from "./../types/index.js";
2
+ import { isString, isType } from "./../types/guards.js";
3
3
  export function isLoadBmpOptions(data) {
4
4
  if (!isType(data, {
5
5
  bmp: "unknown",
@@ -1,3 +1,3 @@
1
- export * from "./interval";
2
- export * from "./time";
1
+ export * from "./interval/index.js";
2
+ export * from "./time.js";
3
3
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdGltZS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLFlBQVksQ0FBQTtBQUMxQixjQUFjLFFBQVEsQ0FBQSJ9
@@ -1,2 +1,2 @@
1
- export * from "./interval";
1
+ export * from "./interval.js";
2
2
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdGltZS9pbnRlcnZhbC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLFlBQVksQ0FBQSJ9
@@ -1,4 +1,4 @@
1
- import type { TgdEvent } from "@tgd/event";
1
+ import type { TgdEvent } from "../event";
2
2
  export interface TgdTimeOptions {
3
3
  speed: number;
4
4
  context: {
@@ -1,4 +1,4 @@
1
- import { assertTgdTypeArrayForElements } from "./elements";
1
+ import { assertTgdTypeArrayForElements } from "./elements.js";
2
2
  export function assertTgdTypeArray(data) {
3
3
  if (data instanceof Float32Array)
4
4
  return;