@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.
- package/lib/dist/bounding-box.d.ts +2 -2
- package/lib/dist/bounding-box.d.ts.map +1 -1
- package/lib/dist/bounding-box.js +2 -2
- package/lib/dist/buffer/buffer.d.ts +1 -1
- package/lib/dist/buffer/index.js +1 -1
- package/lib/dist/camera/camera-orthographic.d.ts +1 -1
- package/lib/dist/camera/camera-orthographic.js +2 -2
- package/lib/dist/camera/camera-perspective.d.ts +1 -1
- package/lib/dist/camera/camera-perspective.js +2 -2
- package/lib/dist/camera/camera.d.ts +2 -2
- package/lib/dist/camera/camera.js +1 -1
- package/lib/dist/camera/index.js +3 -3
- package/lib/dist/canvas/gizmo/gizmo.d.ts +3 -3
- package/lib/dist/canvas/gizmo/gizmo.js +7 -7
- package/lib/dist/canvas/gizmo/index.js +1 -1
- package/lib/dist/canvas/gizmo/painter/tips.d.ts +2 -2
- package/lib/dist/canvas/gizmo/painter/tips.js +8 -8
- package/lib/dist/canvas/index.js +2 -2
- package/lib/dist/canvas/landscape/index.js +1 -1
- package/lib/dist/canvas/landscape/landscape.d.ts +1 -1
- package/lib/dist/canvas/landscape/landscape.js +1 -1
- package/lib/dist/code/color.d.ts +2 -2
- package/lib/dist/code/consts.d.ts +1 -1
- package/lib/dist/code/coords.d.ts +1 -1
- package/lib/dist/code/index.js +8 -8
- package/lib/dist/code/math.d.ts +1 -1
- package/lib/dist/code/noise.d.ts +1 -1
- package/lib/dist/code/noise.js +2 -2
- package/lib/dist/code/random.d.ts +1 -1
- package/lib/dist/code/space.d.ts +1 -1
- package/lib/dist/code/transfo.d.ts +1 -1
- package/lib/dist/color/color.d.ts +2 -2
- package/lib/dist/color/color.js +1 -1
- package/lib/dist/color/index.js +2 -2
- package/lib/dist/color/utils.js +2 -2
- package/lib/dist/context/animation/animation-manager.d.ts +1 -1
- package/lib/dist/context/animation/animation-manager.js +1 -1
- package/lib/dist/context/context.d.ts +4 -4
- package/lib/dist/context/context.js +11 -11
- package/lib/dist/context/index.js +3 -3
- package/lib/dist/context/ubo-manager.d.ts +1 -1
- package/lib/dist/context/webgl-params.d.ts +1 -1
- package/lib/dist/controller/camera/index.js +1 -1
- package/lib/dist/controller/camera/orbit.d.ts +4 -4
- package/lib/dist/controller/camera/orbit.js +5 -5
- package/lib/dist/controller/index.js +1 -1
- package/lib/dist/data/index.js +1 -1
- package/lib/dist/dataset/dataset.d.ts +2 -2
- package/lib/dist/dataset/index.js +1 -1
- package/lib/dist/debug/debug.js +1 -1
- package/lib/dist/debug/index.js +3 -3
- package/lib/dist/event/index.js +1 -1
- package/lib/dist/factory/index.js +1 -1
- package/lib/dist/factory/mesh-glb.d.ts +6 -6
- package/lib/dist/factory/mesh-glb.js +2 -2
- package/lib/dist/filter/anti-aliasing.js +1 -1
- package/lib/dist/filter/blur.js +3 -3
- package/lib/dist/filter/chromatic-aberration.js +1 -1
- package/lib/dist/filter/filter.d.ts +3 -3
- package/lib/dist/filter/hue-rotation.js +1 -1
- package/lib/dist/filter/index.js +8 -8
- package/lib/dist/filter/multiply.d.ts +2 -2
- package/lib/dist/filter/multiply.js +2 -2
- package/lib/dist/filter/verbatim.js +1 -1
- package/lib/dist/filter/zoom.js +2 -2
- package/lib/dist/geometry/box.d.ts +2 -2
- package/lib/dist/geometry/box.js +2 -2
- package/lib/dist/geometry/geometry.d.ts +2 -2
- package/lib/dist/geometry/geometry.js +4 -4
- package/lib/dist/geometry/gltf.d.ts +2 -2
- package/lib/dist/geometry/gltf.js +2 -2
- package/lib/dist/geometry/grid.d.ts +1 -1
- package/lib/dist/geometry/grid.js +4 -4
- package/lib/dist/geometry/index.js +7 -7
- package/lib/dist/geometry/plane.d.ts +1 -1
- package/lib/dist/geometry/plane.js +3 -3
- package/lib/dist/geometry/sphere-ico.d.ts +2 -2
- package/lib/dist/geometry/sphere-ico.js +3 -3
- package/lib/dist/geometry/tools/index.js +1 -1
- package/lib/dist/geometry/tools/marching-cubes/index.js +2 -2
- package/lib/dist/geometry/tools/marching-cubes/marching-cubes.d.ts +2 -2
- package/lib/dist/geometry/tools/marching-cubes/marching-cubes.js +3 -3
- package/lib/dist/index.js +37 -37
- package/lib/dist/input/frame.js +1 -1
- package/lib/dist/input/index.js +4 -4
- package/lib/dist/input/inputs.js +3 -3
- package/lib/dist/input/keyboard.js +1 -1
- package/lib/dist/input/pointer.d.ts +2 -2
- package/lib/dist/input/pointer.js +2 -2
- package/lib/dist/interface/index.js +1 -1
- package/lib/dist/interface/transformable.d.ts +1 -1
- package/lib/dist/light/index.js +1 -1
- package/lib/dist/light/light.d.ts +2 -2
- package/lib/dist/light/light.js +2 -2
- package/lib/dist/loader/asset.d.ts +1 -1
- package/lib/dist/loader/asset.js +2 -2
- package/lib/dist/loader/binary.d.ts +1 -1
- package/lib/dist/loader/binary.js +1 -1
- package/lib/dist/loader/image.js +1 -1
- package/lib/dist/loader/index.js +5 -5
- package/lib/dist/material/camera-light.d.ts +4 -4
- package/lib/dist/material/camera-light.js +4 -4
- package/lib/dist/material/depth.js +1 -1
- package/lib/dist/material/diffuse.d.ts +4 -4
- package/lib/dist/material/diffuse.js +4 -4
- package/lib/dist/material/face-orientation.d.ts +1 -1
- package/lib/dist/material/face-orientation.js +3 -3
- package/lib/dist/material/flat-texture.d.ts +1 -1
- package/lib/dist/material/flat-texture.js +1 -1
- package/lib/dist/material/flat.d.ts +2 -2
- package/lib/dist/material/flat.js +2 -2
- package/lib/dist/material/ghost.d.ts +2 -2
- package/lib/dist/material/ghost.js +2 -2
- package/lib/dist/material/glass.d.ts +4 -4
- package/lib/dist/material/glass.js +4 -4
- package/lib/dist/material/global.d.ts +4 -4
- package/lib/dist/material/global.js +4 -4
- package/lib/dist/material/gltf.d.ts +2 -2
- package/lib/dist/material/gltf.js +4 -4
- package/lib/dist/material/hull.d.ts +2 -2
- package/lib/dist/material/hull.js +3 -3
- package/lib/dist/material/index.js +17 -17
- package/lib/dist/material/mask.d.ts +1 -1
- package/lib/dist/material/mask.js +1 -1
- package/lib/dist/material/material.d.ts +3 -3
- package/lib/dist/material/material.js +1 -1
- package/lib/dist/material/mirror.d.ts +4 -4
- package/lib/dist/material/mirror.js +2 -2
- package/lib/dist/material/normal-map.js +1 -1
- package/lib/dist/material/normals.js +1 -1
- package/lib/dist/material/solid.d.ts +2 -2
- package/lib/dist/material/solid.js +2 -2
- package/lib/dist/material/toon.d.ts +4 -4
- package/lib/dist/material/toon.js +4 -4
- package/lib/dist/math/index.js +10 -10
- package/lib/dist/math/mat2.js +5 -5
- package/lib/dist/math/mat3.js +4 -4
- package/lib/dist/math/mat4.js +3 -3
- package/lib/dist/math/quat.d.ts +1 -1
- package/lib/dist/math/quat.js +3 -3
- package/lib/dist/math/random.d.ts +1 -1
- package/lib/dist/math/transfo.js +3 -3
- package/lib/dist/math/vec2.js +1 -1
- package/lib/dist/math/vec3.js +1 -1
- package/lib/dist/math/vec4.js +1 -1
- package/lib/dist/painter/axes/axes.d.ts +4 -4
- package/lib/dist/painter/axes/axes.js +7 -7
- package/lib/dist/painter/axes/index.js +1 -1
- package/lib/dist/painter/background/background.d.ts +2 -2
- package/lib/dist/painter/background/background.js +8 -8
- package/lib/dist/painter/background/index.js +1 -1
- package/lib/dist/painter/background-with-depth/background-with-depth.d.ts +2 -2
- package/lib/dist/painter/background-with-depth/background-with-depth.js +11 -11
- package/lib/dist/painter/background-with-depth/index.js +1 -1
- package/lib/dist/painter/clear.d.ts +1 -1
- package/lib/dist/painter/clear.js +1 -1
- package/lib/dist/painter/debug/index.js +2 -2
- package/lib/dist/painter/debug/point/index.js +1 -1
- package/lib/dist/painter/debug/point/point.d.ts +2 -2
- package/lib/dist/painter/debug/point/point.js +4 -4
- package/lib/dist/painter/debug/stencil/index.js +1 -1
- package/lib/dist/painter/debug/stencil/stencil.d.ts +1 -1
- package/lib/dist/painter/debug/stencil/stencil.js +7 -7
- package/lib/dist/painter/depth.js +1 -1
- package/lib/dist/painter/filter/filter.d.ts +4 -4
- package/lib/dist/painter/filter/filter.js +9 -9
- package/lib/dist/painter/filter/framebuffers.js +1 -1
- package/lib/dist/painter/filter/index.js +1 -1
- package/lib/dist/painter/fragment-shader/fragment-shader.d.ts +4 -4
- package/lib/dist/painter/fragment-shader/fragment-shader.js +5 -5
- package/lib/dist/painter/fragment-shader/index.js +1 -1
- package/lib/dist/painter/framebuffer-msaa.d.ts +1 -1
- package/lib/dist/painter/framebuffer-msaa.js +1 -1
- package/lib/dist/painter/framebuffer.d.ts +3 -3
- package/lib/dist/painter/framebuffer.js +2 -2
- package/lib/dist/painter/gizmo/gizmo.d.ts +4 -4
- package/lib/dist/painter/gizmo/gizmo.js +16 -16
- package/lib/dist/painter/gizmo/index.js +1 -1
- package/lib/dist/painter/gizmo/painters/axes.d.ts +3 -3
- package/lib/dist/painter/gizmo/painters/axes.js +5 -5
- package/lib/dist/painter/gizmo/painters/mask.d.ts +2 -2
- package/lib/dist/painter/gizmo/painters/mask.js +6 -6
- package/lib/dist/painter/gizmo/painters/normal.d.ts +4 -4
- package/lib/dist/painter/gizmo/painters/normal.js +3 -3
- package/lib/dist/painter/gizmo/painters/tips.d.ts +2 -2
- package/lib/dist/painter/gizmo/painters/tips.js +4 -4
- package/lib/dist/painter/group-camera.d.ts +3 -3
- package/lib/dist/painter/group-camera.js +1 -1
- package/lib/dist/painter/group.d.ts +2 -2
- package/lib/dist/painter/group.js +4 -4
- package/lib/dist/painter/icon/icon.d.ts +4 -4
- package/lib/dist/painter/icon/icon.js +6 -6
- package/lib/dist/painter/icon/index.js +1 -1
- package/lib/dist/painter/icon/sprite.d.ts +7 -7
- package/lib/dist/painter/icon/sprite.js +5 -5
- package/lib/dist/painter/index.js +29 -29
- package/lib/dist/painter/lines/index.js +1 -1
- package/lib/dist/painter/lines/lines.d.ts +2 -2
- package/lib/dist/painter/lines/lines.js +8 -8
- package/lib/dist/painter/lod/index.js +1 -1
- package/lib/dist/painter/lod/lod.d.ts +4 -4
- package/lib/dist/painter/lod/lod.js +5 -5
- package/lib/dist/painter/lod/octree.d.ts +3 -3
- package/lib/dist/painter/lod/octree.js +1 -1
- package/lib/dist/painter/logic.js +1 -1
- package/lib/dist/painter/mesh/gltf/gltf.d.ts +5 -5
- package/lib/dist/painter/mesh/gltf/gltf.js +9 -9
- package/lib/dist/painter/mesh/gltf/index.js +1 -1
- package/lib/dist/painter/mesh/index.js +3 -3
- package/lib/dist/painter/mesh/mesh/index.js +1 -1
- package/lib/dist/painter/mesh/mesh/mesh.d.ts +6 -6
- package/lib/dist/painter/mesh/mesh/mesh.js +10 -10
- package/lib/dist/painter/mesh/normals/index.js +1 -1
- package/lib/dist/painter/mesh/normals/normals.d.ts +3 -3
- package/lib/dist/painter/mesh/normals/normals.js +6 -6
- package/lib/dist/painter/mix/index.js +1 -1
- package/lib/dist/painter/mix/mix.d.ts +2 -2
- package/lib/dist/painter/mix/mix.js +6 -6
- package/lib/dist/painter/node/index.js +1 -1
- package/lib/dist/painter/node/node.js +4 -4
- package/lib/dist/painter/overlay/index.js +1 -1
- package/lib/dist/painter/overlay/overlay.d.ts +4 -4
- package/lib/dist/painter/overlay/overlay.js +6 -6
- package/lib/dist/painter/painter.d.ts +1 -1
- package/lib/dist/painter/painter.js +1 -1
- package/lib/dist/painter/points-cloud/index.js +2 -2
- package/lib/dist/painter/points-cloud/points-cloud-morphing.d.ts +3 -3
- package/lib/dist/painter/points-cloud/points-cloud-morphing.js +8 -8
- package/lib/dist/painter/points-cloud/points-cloud.d.ts +3 -3
- package/lib/dist/painter/points-cloud/points-cloud.js +8 -8
- package/lib/dist/painter/program.d.ts +5 -5
- package/lib/dist/painter/program.js +9 -9
- package/lib/dist/painter/scissor.js +1 -1
- package/lib/dist/painter/segments/capsule.d.ts +1 -1
- package/lib/dist/painter/segments/capsule.js +2 -2
- package/lib/dist/painter/segments/index.js +2 -2
- package/lib/dist/painter/segments/segments-morphing.d.ts +6 -6
- package/lib/dist/painter/segments/segments-morphing.js +9 -9
- package/lib/dist/painter/segments/segments.d.ts +7 -7
- package/lib/dist/painter/segments/segments.js +8 -8
- package/lib/dist/painter/skybox/index.js +1 -1
- package/lib/dist/painter/skybox/skybox.d.ts +7 -7
- package/lib/dist/painter/skybox/skybox.js +6 -6
- package/lib/dist/painter/sprites/accessor.d.ts +1 -1
- package/lib/dist/painter/sprites/index.js +2 -2
- package/lib/dist/painter/sprites/sprites-abstract.d.ts +2 -2
- package/lib/dist/painter/sprites/sprites-abstract.js +2 -2
- package/lib/dist/painter/sprites/sprites-hue.d.ts +1 -1
- package/lib/dist/painter/sprites/sprites-hue.js +3 -3
- package/lib/dist/painter/sprites/sprites.d.ts +8 -8
- package/lib/dist/painter/sprites/sprites.js +9 -9
- package/lib/dist/painter/state/index.js +1 -1
- package/lib/dist/painter/state/state.d.ts +4 -4
- package/lib/dist/painter/state/state.js +3 -3
- package/lib/dist/painter/tubes/ellipse.js +1 -1
- package/lib/dist/painter/tubes/geometry.d.ts +2 -2
- package/lib/dist/painter/tubes/geometry.js +2 -2
- package/lib/dist/painter/tubes/index.js +1 -1
- package/lib/dist/painter/tubes/tubes.d.ts +4 -4
- package/lib/dist/painter/tubes/tubes.js +3 -3
- package/lib/dist/painter/tubes/types.d.ts +4 -4
- package/lib/dist/painter/tubes/vertices.d.ts +1 -1
- package/lib/dist/painter/tubes/vertices.js +1 -1
- package/lib/dist/painter/x-ray/background.d.ts +1 -1
- package/lib/dist/painter/x-ray/background.js +6 -6
- package/lib/dist/painter/x-ray/index.js +1 -1
- package/lib/dist/painter/x-ray/x-ray.d.ts +3 -3
- package/lib/dist/painter/x-ray/x-ray.js +9 -9
- package/lib/dist/parser/gltf/gltf.d.ts +9 -9
- package/lib/dist/parser/gltf/gltf.js +8 -8
- package/lib/dist/parser/gltf/index.js +1 -1
- package/lib/dist/parser/gltf/parser.js +1 -1
- package/lib/dist/parser/index.js +2 -2
- package/lib/dist/parser/mesh/wavefront.d.ts +1 -1
- package/lib/dist/parser/mesh/wavefront.js +3 -3
- package/lib/dist/program/index.js +1 -1
- package/lib/dist/program/program.d.ts +2 -2
- package/lib/dist/program/program.js +3 -3
- package/lib/dist/sdf/_common.d.ts +2 -2
- package/lib/dist/sdf/capsule.js +1 -1
- package/lib/dist/sdf/index.js +2 -2
- package/lib/dist/shader/code.js +1 -1
- package/lib/dist/shader/fragment.js +2 -2
- package/lib/dist/shader/index.js +3 -3
- package/lib/dist/shader/vertex.js +2 -2
- package/lib/dist/table/index.js +1 -1
- package/lib/dist/texture/index.js +3 -3
- package/lib/dist/texture/procedural.d.ts +1 -1
- package/lib/dist/texture/texture-cube.d.ts +5 -5
- package/lib/dist/texture/texture-cube.js +3 -3
- package/lib/dist/texture/texture-depth.d.ts +1 -1
- package/lib/dist/texture/texture-depth.js +1 -1
- package/lib/dist/texture/texture2d.d.ts +8 -8
- package/lib/dist/texture/texture2d.js +8 -8
- package/lib/dist/texture/types.d.ts +1 -1
- package/lib/dist/texture/types.js +2 -2
- package/lib/dist/time/index.js +2 -2
- package/lib/dist/time/interval/index.js +1 -1
- package/lib/dist/time/time.d.ts +1 -1
- package/lib/dist/types/buffer.js +1 -1
- package/lib/dist/types/gltf.js +1 -1
- package/lib/dist/types/index.js +10 -10
- package/lib/dist/types/program.d.ts +2 -2
- package/lib/dist/uniform/index.js +2 -2
- package/lib/dist/uniform/ubo-camera.d.ts +3 -3
- package/lib/dist/uniform/ubo-camera.js +2 -2
- package/lib/dist/uniform/uniform-buffer-object.d.ts +3 -3
- package/lib/dist/uniform/uniform-buffer-object.js +4 -4
- package/lib/dist/utils/action/camera.d.ts +1 -1
- package/lib/dist/utils/action/camera.js +3 -3
- package/lib/dist/utils/action/index.js +3 -3
- package/lib/dist/utils/action/transfo.d.ts +1 -1
- package/lib/dist/utils/action/transfo.js +1 -1
- package/lib/dist/utils/action/vector.js +1 -1
- package/lib/dist/utils/animation/chain-transfo-interpolations.d.ts +2 -2
- package/lib/dist/utils/animation/chain-transfo-interpolations.js +3 -3
- package/lib/dist/utils/animation/chain.d.ts +1 -1
- package/lib/dist/utils/animation/chain.js +1 -1
- package/lib/dist/utils/animation/index.js +2 -2
- package/lib/dist/utils/bbox.d.ts +2 -2
- package/lib/dist/utils/bbox.js +1 -1
- package/lib/dist/utils/canvas.d.ts +3 -3
- package/lib/dist/utils/canvas.js +2 -2
- package/lib/dist/utils/easing-function/index.js +1 -1
- package/lib/dist/utils/ensure.d.ts +3 -3
- package/lib/dist/utils/ensure.js +2 -2
- package/lib/dist/utils/framebuffer.js +1 -1
- package/lib/dist/utils/index.js +13 -13
- package/lib/dist/utils/pbo.js +1 -1
- package/lib/dist/utils/state/blend.d.ts +2 -2
- package/lib/dist/utils/state/blend.js +2 -2
- package/lib/dist/utils/state/cull.d.ts +2 -2
- package/lib/dist/utils/state/cull.js +2 -2
- package/lib/dist/utils/state/depth.d.ts +2 -2
- package/lib/dist/utils/state/depth.js +2 -2
- package/lib/dist/utils/state/index.js +4 -4
- package/lib/dist/utils/state/stencil.d.ts +1 -1
- package/lib/dist/utils/state/stencil.js +2 -2
- package/lib/dist/utils/webgl.d.ts +1 -1
- package/lib/dist/utils/webgl.js +1 -1
- package/lib/dist/vao/index.js +1 -1
- package/lib/dist/vao/vao.d.ts +4 -4
- package/lib/dist/vao/vao.js +1 -1
- package/lib/dist/version.d.ts +1 -1
- package/lib/dist/version.js +1 -1
- package/lib/dist/wasm/code.d.ts +1 -1
- package/lib/dist/wasm/flow.d.ts +1 -1
- package/lib/dist/wasm/function.d.ts +1 -1
- package/lib/dist/wasm/index.js +8 -8
- package/lib/dist/wasm/local.d.ts +1 -1
- package/lib/dist/wasm/memory.d.ts +1 -1
- package/lib/dist/wasm/module.d.ts +1 -1
- package/lib/dist/wasm/module.js +1 -1
- package/lib/dist/wasm/types.d.ts +1 -1
- package/lib/dist/webgl/index.js +1 -1
- package/lib/dist/webgl/texture/index.js +2 -2
- package/lib/dist/webgl/texture/texture2d.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TgdTransfo } from "
|
|
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,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==
|
package/lib/dist/utils/bbox.d.ts
CHANGED
package/lib/dist/utils/bbox.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TgdColor } from "
|
|
2
|
-
import { TgdVec3, TgdVec4 } from "
|
|
3
|
-
import { ArrayNumber3, ArrayNumber4 } from "
|
|
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
|
*/
|
package/lib/dist/utils/canvas.js
CHANGED
|
@@ -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 "
|
|
2
|
-
import { TgdVec2, TgdVec3, TgdVec4 } from "
|
|
3
|
-
import { ArrayNumber4 } from "
|
|
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;
|
package/lib/dist/utils/ensure.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TgdColor } from "
|
|
2
|
-
import { TgdVec2, TgdVec3, TgdVec4 } from "
|
|
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 [];
|
package/lib/dist/utils/index.js
CHANGED
|
@@ -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=
|
package/lib/dist/utils/pbo.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { WebglParams } from "
|
|
2
|
-
import { WebglEnumBlendEquation, WebglEnumBlendFunction } from "
|
|
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 "
|
|
2
|
-
import { WebglEnumBlendEquation, WebglEnumBlendFunction } from "
|
|
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 "
|
|
2
|
-
import { WebglEnumCullFace } from "
|
|
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 "
|
|
2
|
-
import { WebglEnumCullFace } from "
|
|
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 "
|
|
2
|
-
import { WebglEnumDepthFunction } from "
|
|
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 "
|
|
2
|
-
import { WebglEnumDepthFunction } from "
|
|
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,5 +1,5 @@
|
|
|
1
|
-
import { debug, highlightEnum } from "
|
|
2
|
-
import { WebglEnumStencilFunction, WebglEnumStencilOperation } from "
|
|
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,
|
package/lib/dist/utils/webgl.js
CHANGED
package/lib/dist/vao/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./vao";
|
|
1
|
+
export * from "./vao.js";
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdmFvL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsT0FBTyxDQUFBIn0=
|
package/lib/dist/vao/vao.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TgdBuffer } from "
|
|
2
|
-
import type { TgdDataset } from "
|
|
3
|
-
import type { TgdProgram } from "
|
|
4
|
-
import type { TgdTypeArrayForElements } from "
|
|
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?;
|
package/lib/dist/vao/vao.js
CHANGED
package/lib/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "2.0.
|
|
1
|
+
export declare const version = "2.0.128";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/lib/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = "2.0.
|
|
1
|
+
export const version = "2.0.128";
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy92ZXJzaW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sQ0FBQyxNQUFNLE9BQU8sR0FBRyxTQUFTLENBQUEifQ==
|
package/lib/dist/wasm/code.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TgdCodeBloc } from "
|
|
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[];
|
package/lib/dist/wasm/flow.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TgdCodeBloc } from "
|
|
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[];
|
package/lib/dist/wasm/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* eslint-disable unicorn/prevent-abbreviations */
|
|
2
|
-
import { tgdCodeStringify } from "
|
|
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));
|
package/lib/dist/wasm/local.d.ts
CHANGED
package/lib/dist/wasm/module.js
CHANGED
package/lib/dist/wasm/types.d.ts
CHANGED
package/lib/dist/webgl/index.js
CHANGED
|
@@ -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 "
|
|
1
|
+
import { WebglMagFilter, WebglMinFilter, WebglWrap } from "../../types";
|
|
2
2
|
import { WebglTextureFormat, WebglTextureInternalFormat, WebglTextureType } from "./types";
|
|
3
3
|
export interface WebglTextureParameters {
|
|
4
4
|
wrapS?: WebglWrap;
|