@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,11 +1,11 @@
|
|
|
1
1
|
/** biome-ignore-all lint/suspicious/noAssignInExpressions: <explanation> */
|
|
2
|
-
import type { TgdColor } from "
|
|
3
|
-
import type { TgdContext } from "
|
|
4
|
-
import { TgdVec4 } from "
|
|
5
|
-
import { TgdPainter } from "
|
|
6
|
-
import type { TgdPainterSpritesAtlas } from "
|
|
7
|
-
import type { TgdTexture2D } from "
|
|
8
|
-
import type { ArrayNumber4 } from "
|
|
2
|
+
import type { TgdColor } from "@tgd/color";
|
|
3
|
+
import type { TgdContext } from "@tgd/context";
|
|
4
|
+
import { TgdVec4 } from "@tgd/math";
|
|
5
|
+
import { TgdPainter } from "@tgd/painter/painter";
|
|
6
|
+
import type { TgdPainterSpritesAtlas } from "@tgd/painter/sprites";
|
|
7
|
+
import type { TgdTexture2D } from "@tgd/texture";
|
|
8
|
+
import type { ArrayNumber4 } from "@tgd/types";
|
|
9
9
|
export interface PainterSpriteOptions {
|
|
10
10
|
texture: TgdTexture2D;
|
|
11
11
|
atlas?: TgdPainterSpritesAtlas;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { TgdVec4 } from "
|
|
2
|
-
import { TgdPainter } from "
|
|
3
|
-
import { TgdPainterProgram } from "
|
|
4
|
-
import { TgdUniformBufferObject } from "
|
|
5
|
-
import { ensureTgdVec4 } from "
|
|
1
|
+
import { TgdVec4 } from "@tgd/math";
|
|
2
|
+
import { TgdPainter } from "@tgd/painter/painter";
|
|
3
|
+
import { TgdPainterProgram } from "@tgd/painter/program";
|
|
4
|
+
import { TgdUniformBufferObject } from "@tgd/uniform";
|
|
5
|
+
import { ensureTgdVec4 } from "@tgd/utils";
|
|
6
6
|
export class PainterSprite extends TgdPainter {
|
|
7
7
|
constructor(context, { texture, atlas = [
|
|
8
8
|
{
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
export * from "./axes
|
|
2
|
-
export * from "./background
|
|
3
|
-
export * from "./background-with-depth
|
|
4
|
-
export * from "./clear
|
|
5
|
-
export * from "./debug
|
|
6
|
-
export * from "./depth
|
|
7
|
-
export * from "./filter
|
|
8
|
-
export * from "./fragment-shader
|
|
9
|
-
export * from "./framebuffer
|
|
10
|
-
export * from "./framebuffer-msaa
|
|
11
|
-
export * from "./gizmo
|
|
12
|
-
export * from "./group
|
|
13
|
-
export * from "./group-camera
|
|
14
|
-
export * from "./icon
|
|
15
|
-
export * from "./lines
|
|
16
|
-
export * from "./lod
|
|
17
|
-
export * from "./logic
|
|
18
|
-
export * from "./mesh
|
|
19
|
-
export * from "./mix
|
|
20
|
-
export * from "./node/node
|
|
21
|
-
export * from "./overlay
|
|
22
|
-
export * from "./points-cloud
|
|
23
|
-
export * from "./program
|
|
24
|
-
export * from "./scissor
|
|
25
|
-
export * from "./segments
|
|
26
|
-
export * from "./skybox
|
|
27
|
-
export * from "./sprites
|
|
28
|
-
export * from "./state
|
|
29
|
-
export * from "./x-ray
|
|
1
|
+
export * from "./axes";
|
|
2
|
+
export * from "./background";
|
|
3
|
+
export * from "./background-with-depth";
|
|
4
|
+
export * from "./clear";
|
|
5
|
+
export * from "./debug";
|
|
6
|
+
export * from "./depth";
|
|
7
|
+
export * from "./filter";
|
|
8
|
+
export * from "./fragment-shader";
|
|
9
|
+
export * from "./framebuffer";
|
|
10
|
+
export * from "./framebuffer-msaa";
|
|
11
|
+
export * from "./gizmo";
|
|
12
|
+
export * from "./group";
|
|
13
|
+
export * from "./group-camera";
|
|
14
|
+
export * from "./icon";
|
|
15
|
+
export * from "./lines";
|
|
16
|
+
export * from "./lod";
|
|
17
|
+
export * from "./logic";
|
|
18
|
+
export * from "./mesh";
|
|
19
|
+
export * from "./mix";
|
|
20
|
+
export * from "./node/node";
|
|
21
|
+
export * from "./overlay";
|
|
22
|
+
export * from "./points-cloud";
|
|
23
|
+
export * from "./program";
|
|
24
|
+
export * from "./scissor";
|
|
25
|
+
export * from "./segments";
|
|
26
|
+
export * from "./skybox";
|
|
27
|
+
export * from "./sprites";
|
|
28
|
+
export * from "./state";
|
|
29
|
+
export * from "./x-ray";
|
|
30
30
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcGFpbnRlci9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLFFBQVEsQ0FBQTtBQUN0QixjQUFjLGNBQWMsQ0FBQTtBQUM1QixjQUFjLHlCQUF5QixDQUFBO0FBQ3ZDLGNBQWMsU0FBUyxDQUFBO0FBQ3ZCLGNBQWMsU0FBUyxDQUFBO0FBQ3ZCLGNBQWMsU0FBUyxDQUFBO0FBQ3ZCLGNBQWMsVUFBVSxDQUFBO0FBQ3hCLGNBQWMsbUJBQW1CLENBQUE7QUFDakMsY0FBYyxlQUFlLENBQUE7QUFDN0IsY0FBYyxvQkFBb0IsQ0FBQTtBQUNsQyxjQUFjLFNBQVMsQ0FBQTtBQUN2QixjQUFjLFNBQVMsQ0FBQTtBQUN2QixjQUFjLGdCQUFnQixDQUFBO0FBQzlCLGNBQWMsUUFBUSxDQUFBO0FBQ3RCLGNBQWMsU0FBUyxDQUFBO0FBQ3ZCLGNBQWMsT0FBTyxDQUFBO0FBQ3JCLGNBQWMsU0FBUyxDQUFBO0FBQ3ZCLGNBQWMsUUFBUSxDQUFBO0FBQ3RCLGNBQWMsT0FBTyxDQUFBO0FBQ3JCLGNBQWMsYUFBYSxDQUFBO0FBQzNCLGNBQWMsV0FBVyxDQUFBO0FBQ3pCLGNBQWMsZ0JBQWdCLENBQUE7QUFDOUIsY0FBYyxXQUFXLENBQUE7QUFDekIsY0FBYyxXQUFXLENBQUE7QUFDekIsY0FBYyxZQUFZLENBQUE7QUFDMUIsY0FBYyxVQUFVLENBQUE7QUFDeEIsY0FBYyxXQUFXLENBQUE7QUFDekIsY0FBYyxTQUFTLENBQUE7QUFDdkIsY0FBYyxTQUFTLENBQUEifQ==
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./lines
|
|
1
|
+
export * from "./lines";
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcGFpbnRlci9saW5lcy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLFNBQVMsQ0FBQSJ9
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TgdTexture2D } from "
|
|
1
|
+
import { TgdTexture2D } from "@tgd/texture";
|
|
2
2
|
import { TgdPainter } from "../painter";
|
|
3
|
-
import { TgdContext } from "
|
|
3
|
+
import { TgdContext } from "@tgd/context";
|
|
4
4
|
export interface TgdPainterLinesOptions {
|
|
5
5
|
/**
|
|
6
6
|
* Flatten array of points:
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { TgdTexture2D } from "
|
|
2
|
-
import { TgdPainter } from "../painter
|
|
3
|
-
import { TgdDataset } from "
|
|
4
|
-
import { TgdProgram } from "
|
|
5
|
-
import { TgdVertexArray } from "
|
|
6
|
-
import { tgdCanvasCreateGradientHorizontal } from "
|
|
7
|
-
import { tgdColorMakeHueWheel } from "
|
|
8
|
-
import { TgdShaderFragment, TgdShaderVertex } from "
|
|
1
|
+
import { TgdTexture2D } from "@tgd/texture";
|
|
2
|
+
import { TgdPainter } from "../painter";
|
|
3
|
+
import { TgdDataset } from "@tgd/dataset";
|
|
4
|
+
import { TgdProgram } from "@tgd/program";
|
|
5
|
+
import { TgdVertexArray } from "@tgd/vao";
|
|
6
|
+
import { tgdCanvasCreateGradientHorizontal } from "@tgd/utils";
|
|
7
|
+
import { tgdColorMakeHueWheel } from "@tgd/color";
|
|
8
|
+
import { TgdShaderFragment, TgdShaderVertex } from "@tgd/shader";
|
|
9
9
|
export class TgdPainterLines extends TgdPainter {
|
|
10
10
|
constructor(context, options) {
|
|
11
11
|
super();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./lod
|
|
1
|
+
export * from "./lod";
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcGFpbnRlci9sb2QvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxPQUFPLENBQUEifQ==
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { TgdContext } from "
|
|
2
|
-
import type { TgdInterfaceTransformable } from "
|
|
3
|
-
import { type TgdMat4 } from "
|
|
4
|
-
import type { ArrayNumber3 } from "
|
|
1
|
+
import type { TgdContext } from "@tgd/context";
|
|
2
|
+
import type { TgdInterfaceTransformable } from "@tgd/interface";
|
|
3
|
+
import { type TgdMat4 } from "@tgd/math";
|
|
4
|
+
import type { ArrayNumber3 } from "@tgd/types";
|
|
5
5
|
import { TgdPainter } from "../painter";
|
|
6
6
|
export interface TgdPainterLODOptions {
|
|
7
7
|
bbox: Readonly<{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { TgdTransfo } from "
|
|
2
|
-
import { TgdPainterGroup } from "../group
|
|
3
|
-
import { TgdPainter } from "../painter
|
|
4
|
-
import { OctreeCache } from "./cache
|
|
5
|
-
import { listBBoxes } from "./octree
|
|
1
|
+
import { TgdTransfo } from "@tgd/math";
|
|
2
|
+
import { TgdPainterGroup } from "../group";
|
|
3
|
+
import { TgdPainter } from "../painter";
|
|
4
|
+
import { OctreeCache } from "./cache";
|
|
5
|
+
import { listBBoxes } from "./octree";
|
|
6
6
|
export class TgdPainterLOD extends TgdPainter {
|
|
7
7
|
constructor(context, options) {
|
|
8
8
|
super();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { TgdCamera } from "
|
|
2
|
-
import type { TgdVec3 } from "
|
|
3
|
-
import type { ArrayNumber3, ArrayNumber4 } from "
|
|
1
|
+
import type { TgdCamera } from "@tgd/camera";
|
|
2
|
+
import type { TgdVec3 } from "@tgd/math";
|
|
3
|
+
import type { ArrayNumber3, ArrayNumber4 } from "@tgd/types";
|
|
4
4
|
export declare function listBBoxes(camera: TgdCamera, bbox: Readonly<{
|
|
5
5
|
min: Readonly<ArrayNumber3 | TgdVec3>;
|
|
6
6
|
max: Readonly<ArrayNumber3 | TgdVec3>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { TgdContext } from "
|
|
2
|
-
import { TgdMaterial } from "
|
|
3
|
-
import type { TgdDataGlb } from "
|
|
4
|
-
import { TgdTextureCube } from "
|
|
5
|
-
import type { ArrayNumber3, ArrayNumber4 } from "
|
|
1
|
+
import { TgdContext } from "@tgd/context";
|
|
2
|
+
import { TgdMaterial } from "@tgd/material";
|
|
3
|
+
import type { TgdDataGlb } from "@tgd/parser";
|
|
4
|
+
import { TgdTextureCube } from "@tgd/texture";
|
|
5
|
+
import type { ArrayNumber3, ArrayNumber4 } from "@tgd/types";
|
|
6
6
|
import { TgdPainterMesh } from "../mesh";
|
|
7
7
|
export interface TgdPainterMeshGltfMaterialDescription {
|
|
8
8
|
name: string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { TgdColor } from "
|
|
2
|
-
import { TgdDataset } from "
|
|
3
|
-
import { TgdGeometry } from "
|
|
4
|
-
import { TgdMaterial } from "
|
|
5
|
-
import { TgdMaterialGltf } from "
|
|
6
|
-
import { tgdCalcRandom } from "
|
|
7
|
-
import { TgdTexture2D, TgdTextureCube } from "
|
|
8
|
-
import { tgdCanvasCreateFill } from "
|
|
9
|
-
import { TgdPainterMesh } from "../mesh
|
|
1
|
+
import { TgdColor } from "@tgd/color";
|
|
2
|
+
import { TgdDataset } from "@tgd/dataset";
|
|
3
|
+
import { TgdGeometry } from "@tgd/geometry";
|
|
4
|
+
import { TgdMaterial } from "@tgd/material";
|
|
5
|
+
import { TgdMaterialGltf } from "@tgd/material/gltf";
|
|
6
|
+
import { tgdCalcRandom } from "@tgd/math";
|
|
7
|
+
import { TgdTexture2D, TgdTextureCube } from "@tgd/texture";
|
|
8
|
+
import { tgdCanvasCreateFill } from "@tgd/utils";
|
|
9
|
+
import { TgdPainterMesh } from "../mesh";
|
|
10
10
|
/**
|
|
11
11
|
*/
|
|
12
12
|
export class TgdPainterMeshGltf extends TgdPainterMesh {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./gltf
|
|
1
|
+
export * from "./gltf";
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvcGFpbnRlci9tZXNoL2dsdGYvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxRQUFRLENBQUEifQ==
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from "./gltf
|
|
2
|
-
export * from "./mesh
|
|
3
|
-
export * from "./normals
|
|
1
|
+
export * from "./gltf";
|
|
2
|
+
export * from "./mesh";
|
|
3
|
+
export * from "./normals";
|
|
4
4
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcGFpbnRlci9tZXNoL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsUUFBUSxDQUFBO0FBQ3RCLGNBQWMsUUFBUSxDQUFBO0FBQ3RCLGNBQWMsV0FBVyxDQUFBIn0=
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./mesh
|
|
1
|
+
export * from "./mesh";
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvcGFpbnRlci9tZXNoL21lc2gvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxRQUFRLENBQUEifQ==
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { type TgdContext, TgdLogic } from "
|
|
2
|
-
import { type TgdGeometry } from "
|
|
3
|
-
import type { TgdInterfaceTransformable } from "
|
|
4
|
-
import { type TgdMaterial } from "
|
|
5
|
-
import { TgdTransfo, type TgdTransfoOptions, TgdVec3 } from "
|
|
6
|
-
import type { TgdUniformBufferObjectCamera } from "
|
|
1
|
+
import { type TgdContext, TgdLogic } from "@tgd/context";
|
|
2
|
+
import { type TgdGeometry } from "@tgd/geometry";
|
|
3
|
+
import type { TgdInterfaceTransformable } from "@tgd/interface";
|
|
4
|
+
import { type TgdMaterial } from "@tgd/material";
|
|
5
|
+
import { TgdTransfo, type TgdTransfoOptions, TgdVec3 } from "@tgd/math";
|
|
6
|
+
import type { TgdUniformBufferObjectCamera } from "@tgd/uniform";
|
|
7
7
|
import { TgdPainter } from "../../painter";
|
|
8
8
|
export interface TgdPainterMeshOptions {
|
|
9
9
|
uniformCamera?: TgdUniformBufferObjectCamera;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { TgdLogic } from "
|
|
2
|
-
import { TgdGeometryBox } from "
|
|
3
|
-
import { TgdMaterialNormals } from "
|
|
4
|
-
import { TgdTransfo, TgdVec3 } from "
|
|
5
|
-
import { TgdProgram } from "
|
|
6
|
-
import { TgdShaderFragment } from "
|
|
7
|
-
import { TgdShaderVertex } from "
|
|
8
|
-
import { ensureArray } from "
|
|
9
|
-
import { TgdVertexArray } from "
|
|
10
|
-
import { TgdPainter } from "../../painter
|
|
1
|
+
import { TgdLogic } from "@tgd/context";
|
|
2
|
+
import { TgdGeometryBox } from "@tgd/geometry";
|
|
3
|
+
import { TgdMaterialNormals } from "@tgd/material";
|
|
4
|
+
import { TgdTransfo, TgdVec3 } from "@tgd/math";
|
|
5
|
+
import { TgdProgram } from "@tgd/program";
|
|
6
|
+
import { TgdShaderFragment } from "@tgd/shader/fragment";
|
|
7
|
+
import { TgdShaderVertex } from "@tgd/shader/vertex";
|
|
8
|
+
import { ensureArray } from "@tgd/utils";
|
|
9
|
+
import { TgdVertexArray } from "@tgd/vao";
|
|
10
|
+
import { TgdPainter } from "../../painter";
|
|
11
11
|
/**
|
|
12
12
|
*/
|
|
13
13
|
export class TgdPainterMesh extends TgdPainter {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./normals
|
|
1
|
+
export * from "./normals";
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvcGFpbnRlci9tZXNoL25vcm1hbHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxXQUFXLENBQUEifQ==
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { TgdContext } from "
|
|
2
|
-
import type { TgdGeometry } from "
|
|
3
|
-
import { TgdPainter } from "
|
|
1
|
+
import type { TgdContext } from "@tgd/context";
|
|
2
|
+
import type { TgdGeometry } from "@tgd/geometry";
|
|
3
|
+
import { TgdPainter } from "@tgd/painter/painter";
|
|
4
4
|
/**
|
|
5
5
|
* Render a totaly opaque black and white mesh
|
|
6
6
|
* with ghost material.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { TgdPainter } from "
|
|
2
|
-
import { TgdProgram } from "
|
|
3
|
-
import { webglElementTypeFromTypedArray } from "
|
|
4
|
-
import { TgdVertexArray } from "
|
|
5
|
-
import { FRAG } from "./shader.frag
|
|
6
|
-
import { VERT } from "./shader.vert
|
|
1
|
+
import { TgdPainter } from "@tgd/painter/painter";
|
|
2
|
+
import { TgdProgram } from "@tgd/program";
|
|
3
|
+
import { webglElementTypeFromTypedArray } from "@tgd/utils";
|
|
4
|
+
import { TgdVertexArray } from "@tgd/vao";
|
|
5
|
+
import { FRAG } from "./shader.frag";
|
|
6
|
+
import { VERT } from "./shader.vert";
|
|
7
7
|
/**
|
|
8
8
|
* Render a totaly opaque black and white mesh
|
|
9
9
|
* with ghost material.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./mix
|
|
1
|
+
export * from "./mix";
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcGFpbnRlci9taXgvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxPQUFPLENBQUEifQ==
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TgdPainter } from "
|
|
2
|
-
import type { TgdTexture2D } from "
|
|
1
|
+
import { TgdPainter } from "@tgd/painter/painter";
|
|
2
|
+
import type { TgdTexture2D } from "@tgd/texture";
|
|
3
3
|
export interface TgdPainterMixOptions {
|
|
4
4
|
texture1: TgdTexture2D;
|
|
5
5
|
texture2: TgdTexture2D;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { TgdDataset } from "
|
|
2
|
-
import { TgdPainter } from "
|
|
3
|
-
import { TgdProgram } from "
|
|
4
|
-
import { TgdShaderFragment } from "
|
|
5
|
-
import { TgdShaderVertex } from "
|
|
6
|
-
import { TgdVertexArray } from "
|
|
1
|
+
import { TgdDataset } from "@tgd/dataset/dataset";
|
|
2
|
+
import { TgdPainter } from "@tgd/painter/painter";
|
|
3
|
+
import { TgdProgram } from "@tgd/program";
|
|
4
|
+
import { TgdShaderFragment } from "@tgd/shader/fragment";
|
|
5
|
+
import { TgdShaderVertex } from "@tgd/shader/vertex";
|
|
6
|
+
import { TgdVertexArray } from "@tgd/vao";
|
|
7
7
|
export class TgdPainterMix extends TgdPainter {
|
|
8
8
|
constructor(context, options = {}) {
|
|
9
9
|
super();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./node
|
|
1
|
+
export * from "./node";
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcGFpbnRlci9ub2RlL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsUUFBUSxDQUFBIn0=
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TgdConsole } from "
|
|
2
|
-
import { TgdMat4 } from "
|
|
3
|
-
import { TgdTransfo } from "../../math/transfo
|
|
4
|
-
import { TgdPainter } from "../painter
|
|
1
|
+
import { TgdConsole } from "@tgd/debug";
|
|
2
|
+
import { TgdMat4 } from "@tgd/math";
|
|
3
|
+
import { TgdTransfo } from "../../math/transfo";
|
|
4
|
+
import { TgdPainter } from "../painter";
|
|
5
5
|
/**
|
|
6
6
|
* A Node can hold others Nodes or any object providing the
|
|
7
7
|
* TgdPainterNodeChild interface.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./overlay
|
|
1
|
+
export * from "./overlay";
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcGFpbnRlci9vdmVybGF5L2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsV0FBVyxDQUFBIn0=
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { TgdContext } from "
|
|
2
|
-
import { TgdEvent } from "
|
|
3
|
-
import type { TgdInputPointerEventMove, TgdInputPointerEventTap, TgdInputPointerEventTapMultiple, TgdInputPointerEventZoom } from "
|
|
4
|
-
import type { TgdTexture2D } from "
|
|
1
|
+
import type { TgdContext } from "@tgd/context";
|
|
2
|
+
import { TgdEvent } from "@tgd/event";
|
|
3
|
+
import type { TgdInputPointerEventMove, TgdInputPointerEventTap, TgdInputPointerEventTapMultiple, TgdInputPointerEventZoom } from "@tgd/index";
|
|
4
|
+
import type { TgdTexture2D } from "@tgd/texture";
|
|
5
5
|
import { TgdPainter } from "../painter";
|
|
6
6
|
export interface TgdPainterOverlayOptions {
|
|
7
7
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { TgdDataset } from "
|
|
2
|
-
import { TgdEvent } from "
|
|
3
|
-
import { TgdProgram } from "
|
|
4
|
-
import { TgdShaderFragment, TgdShaderVertex } from "
|
|
5
|
-
import { TgdVertexArray } from "
|
|
6
|
-
import { TgdPainter } from "../painter
|
|
1
|
+
import { TgdDataset } from "@tgd/dataset";
|
|
2
|
+
import { TgdEvent } from "@tgd/event";
|
|
3
|
+
import { TgdProgram } from "@tgd/program";
|
|
4
|
+
import { TgdShaderFragment, TgdShaderVertex } from "@tgd/shader";
|
|
5
|
+
import { TgdVertexArray } from "@tgd/vao";
|
|
6
|
+
import { TgdPainter } from "../painter";
|
|
7
7
|
export class TgdPainterOverlay extends TgdPainter {
|
|
8
8
|
constructor(context, { alignX = +1, alignY = +1, scaleX = 1, scaleY = 1, width, height, margin = 0, z = 0, texture, } = {}) {
|
|
9
9
|
super();
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./points-cloud
|
|
2
|
-
export * from "./points-cloud-morphing
|
|
1
|
+
export * from "./points-cloud";
|
|
2
|
+
export * from "./points-cloud-morphing";
|
|
3
3
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcGFpbnRlci9wb2ludHMtY2xvdWQvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxnQkFBZ0IsQ0FBQTtBQUM5QixjQUFjLHlCQUF5QixDQUFBIn0=
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { TgdContext } from "
|
|
2
|
-
import { type TgdCodeBloc } from "
|
|
3
|
-
import { TgdTexture2D } from "
|
|
1
|
+
import type { TgdContext } from "@tgd/context";
|
|
2
|
+
import { type TgdCodeBloc } from "@tgd/shader";
|
|
3
|
+
import { TgdTexture2D } from "@tgd/texture";
|
|
4
4
|
import { TgdPainter } from "../painter";
|
|
5
5
|
interface TgdPainterPointsCloudMorphingData {
|
|
6
6
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { tgdColorMakeHueWheel } from "
|
|
2
|
-
import { TgdDataset } from "
|
|
3
|
-
import { TgdProgram } from "
|
|
4
|
-
import { TgdShaderFragment, TgdShaderVertex } from "
|
|
5
|
-
import { TgdTexture2D } from "
|
|
6
|
-
import { tgdCanvasCreateGradientHorizontal } from "
|
|
7
|
-
import { TgdVertexArray } from "
|
|
8
|
-
import { TgdPainter } from "../painter
|
|
1
|
+
import { tgdColorMakeHueWheel } from "@tgd/color";
|
|
2
|
+
import { TgdDataset } from "@tgd/dataset";
|
|
3
|
+
import { TgdProgram } from "@tgd/program";
|
|
4
|
+
import { TgdShaderFragment, TgdShaderVertex } from "@tgd/shader";
|
|
5
|
+
import { TgdTexture2D } from "@tgd/texture";
|
|
6
|
+
import { tgdCanvasCreateGradientHorizontal } from "@tgd/utils";
|
|
7
|
+
import { TgdVertexArray } from "@tgd/vao";
|
|
8
|
+
import { TgdPainter } from "../painter";
|
|
9
9
|
export class TgdPainterPointsCloudMorphing extends TgdPainter {
|
|
10
10
|
/**
|
|
11
11
|
* Draw spheres with simple diffuse/specular material.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TgdContext } from "
|
|
2
|
-
import { TgdCodeBloc } from "
|
|
3
|
-
import { TgdTexture2D } from "
|
|
1
|
+
import { TgdContext } from "@tgd/context";
|
|
2
|
+
import { TgdCodeBloc } from "@tgd/shader";
|
|
3
|
+
import { TgdTexture2D } from "@tgd/texture";
|
|
4
4
|
import { TgdPainter } from "../painter";
|
|
5
5
|
export interface TgdPainterPointsCloudOptions {
|
|
6
6
|
name?: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { tgdColorMakeHueWheel } from "
|
|
2
|
-
import { TgdDataset } from "
|
|
3
|
-
import { TgdProgram } from "
|
|
4
|
-
import { TgdShaderFragment, TgdShaderVertex } from "
|
|
5
|
-
import { TgdTexture2D } from "
|
|
6
|
-
import { tgdCanvasCreateGradientHorizontal } from "
|
|
7
|
-
import { TgdVertexArray } from "
|
|
8
|
-
import { TgdPainter } from "../painter
|
|
1
|
+
import { tgdColorMakeHueWheel } from "@tgd/color";
|
|
2
|
+
import { TgdDataset } from "@tgd/dataset";
|
|
3
|
+
import { TgdProgram } from "@tgd/program";
|
|
4
|
+
import { TgdShaderFragment, TgdShaderVertex } from "@tgd/shader";
|
|
5
|
+
import { TgdTexture2D } from "@tgd/texture";
|
|
6
|
+
import { tgdCanvasCreateGradientHorizontal } from "@tgd/utils";
|
|
7
|
+
import { TgdVertexArray } from "@tgd/vao";
|
|
8
|
+
import { TgdPainter } from "../painter";
|
|
9
9
|
export class TgdPainterPointsCloud extends TgdPainter {
|
|
10
10
|
/**
|
|
11
11
|
* Draw spheres with simple diffuse/specular material.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { TgdContext } from "
|
|
2
|
-
import { TgdDataset, type TgdDatasetOptions, type TgdDatasetType } from "
|
|
3
|
-
import { type TgdCodeBloc, type TgdCodeFunctions, type TgdCodeVariables } from "
|
|
4
|
-
import type { TgdTypeArrayForElements, WebglAttributeType } from "
|
|
5
|
-
import type { TgdPainterFunction } from "
|
|
1
|
+
import type { TgdContext } from "@tgd/context";
|
|
2
|
+
import { TgdDataset, type TgdDatasetOptions, type TgdDatasetType } from "@tgd/dataset";
|
|
3
|
+
import { type TgdCodeBloc, type TgdCodeFunctions, type TgdCodeVariables } from "@tgd/shader";
|
|
4
|
+
import type { TgdTypeArrayForElements, WebglAttributeType } from "@tgd/types";
|
|
5
|
+
import type { TgdPainterFunction } from "@tgd/types/painter";
|
|
6
6
|
import { TgdTexture2D, TgdTextureCube } from "@tolokoban/tgd";
|
|
7
7
|
import { TgdUniformBufferObject, type TgdUniformBufferObjectOptions } from "./../uniform/uniform-buffer-object";
|
|
8
8
|
import { TgdPainter } from "./painter";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { TgdDataset } from "
|
|
2
|
-
import { TgdConsole } from "
|
|
3
|
-
import { TgdProgram } from "
|
|
4
|
-
import { TgdShaderFragment, TgdShaderVertex, tgdCodeStringify, } from "
|
|
5
|
-
import { ensureArray, webglElementTypeFromTypedArray, webglLookup } from "
|
|
6
|
-
import { TgdPainterLogic, TgdTexture2D, TgdTextureCube, TgdVertexArray } from "
|
|
7
|
-
import { TgdUniformBufferObject } from "./../uniform/uniform-buffer-object
|
|
8
|
-
import { TgdPainter } from "./painter
|
|
9
|
-
import { TgdPainterState } from "./state
|
|
1
|
+
import { TgdDataset } from "@tgd/dataset";
|
|
2
|
+
import { TgdConsole } from "@tgd/debug";
|
|
3
|
+
import { TgdProgram } from "@tgd/program";
|
|
4
|
+
import { TgdShaderFragment, TgdShaderVertex, tgdCodeStringify, } from "@tgd/shader";
|
|
5
|
+
import { ensureArray, webglElementTypeFromTypedArray, webglLookup } from "@tgd/utils";
|
|
6
|
+
import { TgdPainterLogic, TgdTexture2D, TgdTextureCube, TgdVertexArray } from "@tolokoban/tgd";
|
|
7
|
+
import { TgdUniformBufferObject } from "./../uniform/uniform-buffer-object";
|
|
8
|
+
import { TgdPainter } from "./painter";
|
|
9
|
+
import { TgdPainterState } from "./state";
|
|
10
10
|
export class TgdPainterProgram extends TgdPainter {
|
|
11
11
|
constructor(context, { onEnter, onDelete, uniforms = {}, textures = {}, varying, vert, frag, dataset, elements, drawMode, state, elementsCount, elementsOffset, instancesCount, }) {
|
|
12
12
|
super();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TgdDataset } from "
|
|
2
|
-
import { TgdGeometry } from "
|
|
1
|
+
import { TgdDataset } from "@tgd/dataset";
|
|
2
|
+
import { TgdGeometry } from "@tgd/geometry";
|
|
3
3
|
const TAU = 2 * Math.PI;
|
|
4
4
|
/**
|
|
5
5
|
* The capsule is a 3D shape made of a cylinder
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./segments
|
|
2
|
-
export * from "./segments-morphing
|
|
1
|
+
export * from "./segments";
|
|
2
|
+
export * from "./segments-morphing";
|
|
3
3
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcGFpbnRlci9zZWdtZW50cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLFlBQVksQ0FBQTtBQUMxQixjQUFjLHFCQUFxQixDQUFBIn0=
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { TgdDataset } from "
|
|
2
|
-
import { type TgdMaterial } from "
|
|
3
|
-
import { TgdTransfo } from "
|
|
4
|
-
import { TgdPainter } from "
|
|
5
|
-
import { TgdTexture2D } from "
|
|
6
|
-
import { TgdContext } from "
|
|
1
|
+
import type { TgdDataset } from "@tgd/dataset";
|
|
2
|
+
import { type TgdMaterial } from "@tgd/material";
|
|
3
|
+
import { TgdTransfo } from "@tgd/math";
|
|
4
|
+
import { TgdPainter } from "@tgd/painter/painter";
|
|
5
|
+
import { TgdTexture2D } from "@tgd/texture";
|
|
6
|
+
import { TgdContext } from "@tgd/context";
|
|
7
7
|
type DatasetOption = TgdDataset | (() => TgdDataset);
|
|
8
8
|
export type TgdPainterSegmentsMorphingOptions = {
|
|
9
9
|
/**
|