@tolokoban/tgd 2.0.125 → 2.0.127
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 +8 -2
- package/lib/dist/bounding-box.d.ts.map +1 -1
- package/lib/dist/bounding-box.js +16 -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/shader.frag.d.ts +1 -1
- package/lib/dist/canvas/gizmo/painter/shader.frag.d.ts.map +1 -1
- package/lib/dist/canvas/gizmo/painter/shader.frag.js +3 -2
- 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 -5
- package/lib/dist/controller/camera/orbit.d.ts.map +1 -1
- package/lib/dist/controller/camera/orbit.js +9 -15
- 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,12 +1,12 @@
|
|
|
1
|
-
import { TgdMaterialFaceOrientation } from "
|
|
2
|
-
import { TgdTransfo } from "
|
|
3
|
-
import { TgdPainter } from "
|
|
4
|
-
import { TgdProgram } from "
|
|
5
|
-
import { TgdShaderFragment, TgdShaderVertex } from "
|
|
6
|
-
import { TgdTexture2D } from "
|
|
7
|
-
import { tgdCanvasCreatePalette } from "
|
|
8
|
-
import { TgdVertexArray } from "
|
|
9
|
-
import { makeCapsule } from "./capsule
|
|
1
|
+
import { TgdMaterialFaceOrientation } from "@tgd/material";
|
|
2
|
+
import { TgdTransfo } from "@tgd/math";
|
|
3
|
+
import { TgdPainter } from "@tgd/painter/painter";
|
|
4
|
+
import { TgdProgram } from "@tgd/program";
|
|
5
|
+
import { TgdShaderFragment, TgdShaderVertex } from "@tgd/shader";
|
|
6
|
+
import { TgdTexture2D } from "@tgd/texture";
|
|
7
|
+
import { tgdCanvasCreatePalette } from "@tgd/utils";
|
|
8
|
+
import { TgdVertexArray } from "@tgd/vao";
|
|
9
|
+
import { makeCapsule } from "./capsule";
|
|
10
10
|
/**
|
|
11
11
|
* @example
|
|
12
12
|
* ```
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { TgdBuffer, TgdBufferOptionTarget, TgdBufferOptionUsage } from "
|
|
2
|
-
import { TgdContext } from "
|
|
3
|
-
import { TgdDataset } from "
|
|
4
|
-
import { type TgdMaterial } from "
|
|
5
|
-
import { TgdTransfo } from "
|
|
6
|
-
import { TgdPainter } from "
|
|
7
|
-
import type { ArrayNumber2, ArrayNumber4 } from "
|
|
1
|
+
import type { TgdBuffer, TgdBufferOptionTarget, TgdBufferOptionUsage } from "@tgd/buffer";
|
|
2
|
+
import { TgdContext } from "@tgd/context";
|
|
3
|
+
import { TgdDataset } from "@tgd/dataset";
|
|
4
|
+
import { type TgdMaterial } from "@tgd/material";
|
|
5
|
+
import { TgdTransfo } from "@tgd/math";
|
|
6
|
+
import { TgdPainter } from "@tgd/painter/painter";
|
|
7
|
+
import type { ArrayNumber2, ArrayNumber4 } from "@tgd/types";
|
|
8
8
|
type DatasetOption = TgdPainterSegments | InstanceDataset | (() => InstanceDataset);
|
|
9
9
|
export type TgdPainterSegmentsOptions = {
|
|
10
10
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { TgdDataset } from "
|
|
2
|
-
import { TgdMaterialFaceOrientation } from "
|
|
3
|
-
import { TgdTransfo } from "
|
|
4
|
-
import { TgdPainter } from "
|
|
5
|
-
import { TgdProgram } from "
|
|
6
|
-
import { TgdShaderFragment, TgdShaderVertex } from "
|
|
7
|
-
import { TgdVertexArray } from "
|
|
8
|
-
import { makeCapsule } from "./capsule
|
|
1
|
+
import { TgdDataset } from "@tgd/dataset";
|
|
2
|
+
import { TgdMaterialFaceOrientation } from "@tgd/material";
|
|
3
|
+
import { TgdTransfo } from "@tgd/math";
|
|
4
|
+
import { TgdPainter } from "@tgd/painter/painter";
|
|
5
|
+
import { TgdProgram } from "@tgd/program";
|
|
6
|
+
import { TgdShaderFragment, TgdShaderVertex } from "@tgd/shader";
|
|
7
|
+
import { TgdVertexArray } from "@tgd/vao";
|
|
8
|
+
import { makeCapsule } from "./capsule";
|
|
9
9
|
/**
|
|
10
10
|
* @example
|
|
11
11
|
* ```
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./skybox
|
|
1
|
+
export * from "./skybox";
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcGFpbnRlci9za3lib3gvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxVQUFVLENBQUEifQ==
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { TgdCamera } from "
|
|
2
|
-
import { TgdColor } from "
|
|
3
|
-
import type { TgdContext } from "
|
|
4
|
-
import { TgdTransfo, type TgdTransfoOptions, TgdVec4 } from "
|
|
5
|
-
import { TgdPainter } from "
|
|
6
|
-
import { TgdTextureCube } from "
|
|
7
|
-
import type { ArrayNumber4, TgdTextureCubeOptions } from "
|
|
1
|
+
import type { TgdCamera } from "@tgd/camera";
|
|
2
|
+
import { TgdColor } from "@tgd/color";
|
|
3
|
+
import type { TgdContext } from "@tgd/context";
|
|
4
|
+
import { TgdTransfo, type TgdTransfoOptions, TgdVec4 } from "@tgd/math";
|
|
5
|
+
import { TgdPainter } from "@tgd/painter/painter";
|
|
6
|
+
import { TgdTextureCube } from "@tgd/texture";
|
|
7
|
+
import type { ArrayNumber4, TgdTextureCubeOptions } from "@tgd/types";
|
|
8
8
|
export type TgdPainterSkyboxOptions = {
|
|
9
9
|
texture: TgdTextureCubeOptions | TgdTextureCube;
|
|
10
10
|
camera?: TgdCamera;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { TgdMat4, TgdTransfo, TgdVec4 } from "
|
|
2
|
-
import { TgdPainter } from "
|
|
3
|
-
import { TgdTextureCube } from "
|
|
4
|
-
import { TgdUniformBufferObject } from "
|
|
5
|
-
import { ensureArrayNumber4 } from "
|
|
6
|
-
import { TgdPainterProgram } from "../program
|
|
1
|
+
import { TgdMat4, TgdTransfo, TgdVec4 } from "@tgd/math";
|
|
2
|
+
import { TgdPainter } from "@tgd/painter/painter";
|
|
3
|
+
import { TgdTextureCube } from "@tgd/texture";
|
|
4
|
+
import { TgdUniformBufferObject } from "@tgd/uniform";
|
|
5
|
+
import { ensureArrayNumber4 } from "@tgd/utils";
|
|
6
|
+
import { TgdPainterProgram } from "../program";
|
|
7
7
|
export class TgdPainterSkybox extends TgdPainter {
|
|
8
8
|
constructor(context, options) {
|
|
9
9
|
super();
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./sprites
|
|
2
|
-
export * from "./sprites-hue
|
|
1
|
+
export * from "./sprites";
|
|
2
|
+
export * from "./sprites-hue";
|
|
3
3
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcGFpbnRlci9zcHJpdGVzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsV0FBVyxDQUFBO0FBQ3pCLGNBQWMsZUFBZSxDQUFBIn0=
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TgdInterfaceTransformable } from "
|
|
2
|
-
import { TgdTransfo } from "
|
|
1
|
+
import type { TgdInterfaceTransformable } from "@tgd/interface";
|
|
2
|
+
import { TgdTransfo } from "@tgd/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 "
|
|
2
|
-
import { TgdPainter } from "../painter
|
|
1
|
+
import { TgdTransfo } from "@tgd/math";
|
|
2
|
+
import { TgdPainter } from "../painter";
|
|
3
3
|
export class TgdPainterSpritesAbstract extends TgdPainter {
|
|
4
4
|
constructor() {
|
|
5
5
|
super(...arguments);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TgdPainterSprites } from "./sprites
|
|
2
|
-
import { tgdCodeFunction_shiftHue } from "
|
|
3
|
-
import { TgdPainterSpritesAbstract } from "./sprites-abstract
|
|
1
|
+
import { TgdPainterSprites } from "./sprites";
|
|
2
|
+
import { tgdCodeFunction_shiftHue } from "@tgd/code";
|
|
3
|
+
import { TgdPainterSpritesAbstract } from "./sprites-abstract";
|
|
4
4
|
export class TgdPainterSpritesHue extends TgdPainterSpritesAbstract {
|
|
5
5
|
constructor(context, options) {
|
|
6
6
|
super();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { TgdContext } from "
|
|
2
|
-
import { TgdDataset, type TgdDatasetTypeRecord } from "
|
|
3
|
-
import { TgdTransfo, TgdVec2 } from "
|
|
4
|
-
import { TgdProgram } from "
|
|
5
|
-
import { type TgdCodeBloc, type TgdCodeFunctions } from "
|
|
6
|
-
import type { TgdTexture2D } from "
|
|
7
|
-
import type { WebglAttributeType } from "
|
|
8
|
-
import { TgdVertexArray } from "
|
|
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";
|
|
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 "
|
|
2
|
-
import { TgdConsole } from "
|
|
3
|
-
import { TgdMat4, TgdTransfo, TgdVec2 } from "
|
|
4
|
-
import { TgdProgram } from "
|
|
5
|
-
import { TgdShaderFragment, TgdShaderVertex, } from "
|
|
6
|
-
import { isNumber } from "
|
|
7
|
-
import { TgdVertexArray } from "
|
|
8
|
-
import { AccessorProxy } from "./accessor
|
|
9
|
-
import { TgdPainterSpritesAbstract } from "./sprites-abstract
|
|
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";
|
|
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";
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcGFpbnRlci9zdGF0ZS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLFNBQVMsQ0FBQSJ9
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { WebglParams } from "
|
|
2
|
-
import type { ArrayNumber4 } from "
|
|
3
|
-
import type { TgdPainterFunction } from "
|
|
4
|
-
import { type WebglBlendOptions, type WebglCullOptions, type WebglDepthOptions, type WebglStencilOptions, webglPresetBlend, webglPresetCull, webglPresetDepth, webglPresetStencil } from "
|
|
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";
|
|
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 "
|
|
2
|
-
import { webglBlendGet, webglBlendSet, webglCullGet, webglCullSet, webglDepthGet, webglDepthSet, webglPresetBlend, webglPresetCull, webglPresetDepth, webglPresetStencil, webglStencilGet, webglStencilSet, } from "
|
|
3
|
-
import { TgdPainterGroup } from "../group
|
|
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";
|
|
4
4
|
export class TgdPainterState extends TgdPainterGroup {
|
|
5
5
|
static do(context, options) {
|
|
6
6
|
const self = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TgdDataset } from "
|
|
1
|
+
import { TgdDataset } from "@tgd/dataset";
|
|
2
2
|
import { TgdPainterTubesBranch } from "./types";
|
|
3
|
-
import { TgdTypeArrayForElements } from "
|
|
3
|
+
import { TgdTypeArrayForElements } from "@tgd/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";
|
|
2
|
+
import { Ellipse } from "./ellipse";
|
|
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";
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcGFpbnRlci90dWJlcy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLFNBQVMsQ0FBQSJ9
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { type TgdMaterial } from "
|
|
2
|
-
import { TgdTransfo } from "
|
|
3
|
-
import { TgdPainter } from "
|
|
1
|
+
import { type TgdMaterial } from "@tgd/material";
|
|
2
|
+
import { TgdTransfo } from "@tgd/math";
|
|
3
|
+
import { TgdPainter } from "@tgd/painter/painter";
|
|
4
4
|
import { TgdPainterTubesOptions } from "./types";
|
|
5
|
-
import { TgdContext } from "
|
|
5
|
+
import { TgdContext } from "@tgd/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 "
|
|
2
|
-
import { TgdTransfo } from "
|
|
3
|
-
import { TgdPainter } from "
|
|
1
|
+
import { TgdMaterialFaceOrientation } from "@tgd/material";
|
|
2
|
+
import { TgdTransfo } from "@tgd/math";
|
|
3
|
+
import { TgdPainter } from "@tgd/painter/painter";
|
|
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 "
|
|
2
|
-
import { TgdMaterial } from "
|
|
3
|
-
import { TgdVec2 } from "
|
|
4
|
-
import { ArrayNumber3 } from "
|
|
1
|
+
import { TgdVec3 } from "@tgd/index";
|
|
2
|
+
import { TgdMaterial } from "@tgd/material";
|
|
3
|
+
import { TgdVec2 } from "@tgd/math";
|
|
4
|
+
import { ArrayNumber3 } from "@tgd/types";
|
|
5
5
|
export interface Section {
|
|
6
6
|
roundness: number;
|
|
7
7
|
points: SectionPoint[];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { TgdDataset } from "
|
|
2
|
-
import { TgdProgram } from "
|
|
3
|
-
import { TgdVertexArray } from "
|
|
4
|
-
import { TgdPainter } from "../painter
|
|
5
|
-
import { FRAG } from "./background.frag
|
|
6
|
-
import { VERT } from "./background.vert
|
|
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";
|
|
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";
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcGFpbnRlci94LXJheS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLFNBQVMsQ0FBQSJ9
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { TgdContext } from "
|
|
2
|
-
import type { TgdGeometry } from "
|
|
3
|
-
import { type TgdMaterialGhostOptions } from "
|
|
1
|
+
import type { TgdContext } from "@tgd/context/context";
|
|
2
|
+
import type { TgdGeometry } from "@tgd/geometry";
|
|
3
|
+
import { type TgdMaterialGhostOptions } from "@tgd/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 "
|
|
2
|
-
import { TgdTexture2D } from "
|
|
3
|
-
import { webglPresetBlend, webglPresetCull, webglPresetDepth } from "
|
|
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 "@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";
|
|
10
10
|
export class TgdPainterXRay extends TgdPainter {
|
|
11
11
|
constructor(context, options) {
|
|
12
12
|
super();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { type TgdCamera } from "
|
|
2
|
-
import { TgdColor } from "
|
|
3
|
-
import { TgdContext } from "
|
|
4
|
-
import { TgdDataset } from "
|
|
5
|
-
import { TgdGeometry } from "
|
|
6
|
-
import { TgdTransfo, TgdVec4 } from "
|
|
7
|
-
import { TgdTexture2D } from "
|
|
8
|
-
import { ArrayNumber4, type TgdTypeArrayForElements } from "
|
|
9
|
-
import type { TgdFormatGltf, TgdFormatGltfAccessor, TgdFormatGltfBufferView, TgdFormatGltfCamera, TgdFormatGltfEmbededData, TgdFormatGltfImage, TgdFormatGltfMaterial, TgdFormatGltfMesh, TgdFormatGltfMeshPrimitive, TgdFormatGltfNode, TgdFormatGltfScene } from "
|
|
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";
|
|
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 "
|
|
9
|
-
import { TgdDataset } from "
|
|
10
|
-
import { TgdGeometry } from "
|
|
11
|
-
import { tgdLoadImage, tgdLoadImageFromArrayBuffer } from "
|
|
12
|
-
import { TgdQuat, TgdTransfo, TgdVec3 } from "
|
|
13
|
-
import { TgdTexture2D } from "
|
|
14
|
-
import { assertTgdFormatGltf, assertTgdTypeArrayForElements, } from "
|
|
15
|
-
import { isNumber } from "
|
|
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";
|
|
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";
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcGFyc2VyL2dsdGYvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxRQUFRLENBQUEifQ==
|
package/lib/dist/parser/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./gltf
|
|
2
|
-
export * from "./mesh/wavefront
|
|
1
|
+
export * from "./gltf";
|
|
2
|
+
export * from "./mesh/wavefront";
|
|
3
3
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcGFyc2VyL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsUUFBUSxDQUFBO0FBQ3RCLGNBQWMsa0JBQWtCLENBQUEifQ==
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { forEachLine } from "../for-each-line
|
|
2
|
-
import { TgdVec3 } from "
|
|
3
|
-
import { TgdGeometry } from "
|
|
1
|
+
import { forEachLine } from "../for-each-line";
|
|
2
|
+
import { TgdVec3 } from "@tgd/math";
|
|
3
|
+
import { TgdGeometry } from "@tgd/geometry";
|
|
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";
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcHJvZ3JhbS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLFdBQVcsQ0FBQSJ9
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TgdMat2, TgdMat3, TgdMat4, TgdVec2, TgdVec3, TgdVec4 } from "
|
|
2
|
-
import { TgdProgramOptions } from "
|
|
1
|
+
import { TgdMat2, TgdMat3, TgdMat4, TgdVec2, TgdVec3, TgdVec4 } from "@tgd/math";
|
|
2
|
+
import { TgdProgramOptions } from "@tgd/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 "
|
|
2
|
-
import { TgdShaderFragment, TgdShaderVertex } from "
|
|
3
|
-
import { tgdCodeStringify } from "
|
|
1
|
+
import { TgdConsole } from "@tgd/debug";
|
|
2
|
+
import { TgdShaderFragment, TgdShaderVertex } from "@tgd/shader";
|
|
3
|
+
import { tgdCodeStringify } from "@tgd/shader/code";
|
|
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 "
|
|
2
|
-
import { ArrayNumber3, ArrayNumber4 } from "
|
|
1
|
+
import { TgdVec3, TgdVec4 } from "@tgd/math";
|
|
2
|
+
import { ArrayNumber3, ArrayNumber4 } from "@tgd/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;
|
package/lib/dist/sdf/capsule.js
CHANGED
package/lib/dist/sdf/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./capsule
|
|
2
|
-
export * from "./sphere
|
|
1
|
+
export * from "./capsule";
|
|
2
|
+
export * from "./sphere";
|
|
3
3
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvc2RmL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsV0FBVyxDQUFBO0FBQ3pCLGNBQWMsVUFBVSxDQUFBIn0=
|
package/lib/dist/shader/code.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ensureArray, TgdConsole } from "
|
|
2
|
-
import { expandFunctions, expandVariables, tgdCodeStringify, } from "./code
|
|
1
|
+
import { ensureArray, TgdConsole } from "..";
|
|
2
|
+
import { expandFunctions, expandVariables, tgdCodeStringify, } from "./code";
|
|
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
|
package/lib/dist/shader/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from "./code
|
|
2
|
-
export * from "./fragment
|
|
3
|
-
export * from "./vertex
|
|
1
|
+
export * from "./code";
|
|
2
|
+
export * from "./fragment";
|
|
3
|
+
export * from "./vertex";
|
|
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 "..";
|
|
2
|
+
import { expandFunctions, expandVariables, tgdCodeStringify as tgdCodeToString, } from "./code";
|
|
3
3
|
/**
|
|
4
4
|
* Helper to create a Vertex Shader.
|
|
5
5
|
*
|
package/lib/dist/table/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./table
|
|
1
|
+
export * from "./table";
|
|
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";
|
|
2
|
+
export * from "./texture-cube";
|
|
3
|
+
export * from "./texture-depth";
|
|
4
4
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdGV4dHVyZS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGFBQWEsQ0FBQTtBQUMzQixjQUFjLGdCQUFnQixDQUFBO0FBQzlCLGNBQWMsaUJBQWlCLENBQUEifQ==
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { TgdColor } from "
|
|
2
|
-
import type { TgdContext } from "
|
|
3
|
-
import type { TgdVec4 } from "
|
|
4
|
-
import type { TgdProgram } from "
|
|
5
|
-
import type { ArrayNumber4, TgdTextureCubeOptions } from "
|
|
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";
|
|
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, }: {
|