@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
package/lib/dist/math/transfo.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { mat4, quat } from "gl-matrix";
|
|
2
|
-
import { TgdMat4 } from "./mat4
|
|
3
|
-
import { TgdQuat } from "./quat
|
|
4
|
-
import { TgdVec3 } from "./vec3
|
|
2
|
+
import { TgdMat4 } from "./mat4";
|
|
3
|
+
import { TgdQuat } from "./quat";
|
|
4
|
+
import { TgdVec3 } from "./vec3";
|
|
5
5
|
export class TgdTransfo {
|
|
6
6
|
constructor(source) {
|
|
7
7
|
// prettier-ignore
|
package/lib/dist/math/vec2.js
CHANGED
package/lib/dist/math/vec3.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable unicorn/prefer-modern-math-apis */
|
|
2
2
|
import { vec3 } from "gl-matrix";
|
|
3
|
-
import { tgdCalcMix } from "./math
|
|
3
|
+
import { tgdCalcMix } from "./math";
|
|
4
4
|
export class TgdVec3 extends Float32Array {
|
|
5
5
|
static newFrom([x, y, z]) {
|
|
6
6
|
return new TgdVec3(x, y, z);
|
package/lib/dist/math/vec4.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { TgdContext } from "
|
|
2
|
-
import { type TgdVec3 } from "
|
|
3
|
-
import { TgdPainter } from "
|
|
4
|
-
import type { ArrayNumber3 } from "
|
|
1
|
+
import type { TgdContext } from "@tgd/context";
|
|
2
|
+
import { type TgdVec3 } from "@tgd/math";
|
|
3
|
+
import { TgdPainter } from "@tgd/painter/painter";
|
|
4
|
+
import type { ArrayNumber3 } from "@tgd/types";
|
|
5
5
|
export type TgdPainterAxesOptions = {
|
|
6
6
|
x: number;
|
|
7
7
|
y: number;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { TgdDataset } from "
|
|
2
|
-
import { TgdVec4 } from "
|
|
3
|
-
import { TgdPainter } from "
|
|
4
|
-
import { TgdProgram } from "
|
|
5
|
-
import { TgdVertexArray } from "
|
|
6
|
-
import { FRAG } from "./axes.frag
|
|
7
|
-
import { VERT } from "./axes.vert
|
|
1
|
+
import { TgdDataset } from "@tgd/dataset";
|
|
2
|
+
import { TgdVec4 } from "@tgd/math";
|
|
3
|
+
import { TgdPainter } from "@tgd/painter/painter";
|
|
4
|
+
import { TgdProgram } from "@tgd/program";
|
|
5
|
+
import { TgdVertexArray } from "@tgd/vao";
|
|
6
|
+
import { FRAG } from "./axes.frag";
|
|
7
|
+
import { VERT } from "./axes.vert";
|
|
8
8
|
export class TgdPainterAxes extends TgdPainter {
|
|
9
9
|
constructor(context, { x = 0, y = 0, z = 0, scale = 1 } = {}) {
|
|
10
10
|
super();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./axes
|
|
1
|
+
export * from "./axes";
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcGFpbnRlci9heGVzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsUUFBUSxDQUFBIn0=
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { WebglParams } from "
|
|
2
|
-
import type { TgdTexture2D } from "
|
|
1
|
+
import type { WebglParams } from "@tgd/context/webgl-params";
|
|
2
|
+
import type { TgdTexture2D } from "@tgd/texture";
|
|
3
3
|
import { TgdPainter } from "../painter";
|
|
4
4
|
export interface TgdPainterBackgroundOptions {
|
|
5
5
|
texture: TgdTexture2D;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { TgdDataset } from "
|
|
2
|
-
import { TgdProgram } from "
|
|
3
|
-
import { webglPresetCull, webglPresetDepth } from "
|
|
4
|
-
import { TgdVertexArray } from "
|
|
5
|
-
import { TgdPainter } from "../painter
|
|
6
|
-
import { TgdPainterState } from "../state
|
|
7
|
-
import { FRAG } from "./background.frag
|
|
8
|
-
import { VERT } from "./background.vert
|
|
1
|
+
import { TgdDataset } from "@tgd/dataset/dataset";
|
|
2
|
+
import { TgdProgram } from "@tgd/program";
|
|
3
|
+
import { webglPresetCull, webglPresetDepth } from "@tgd/utils";
|
|
4
|
+
import { TgdVertexArray } from "@tgd/vao";
|
|
5
|
+
import { TgdPainter } from "../painter";
|
|
6
|
+
import { TgdPainterState } from "../state";
|
|
7
|
+
import { FRAG } from "./background.frag";
|
|
8
|
+
import { VERT } from "./background.vert";
|
|
9
9
|
export class TgdPainterBackground extends TgdPainter {
|
|
10
10
|
constructor(context, { texture, x = 0, y = 0, z = 0.999999, zoom = 1, scaleX = 1, scaleY = 1, mode = "cover", } = {}) {
|
|
11
11
|
super();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./background
|
|
1
|
+
export * from "./background";
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcGFpbnRlci9iYWNrZ3JvdW5kL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsY0FBYyxDQUFBIn0=
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TgdContext } from "
|
|
2
|
-
import { TgdTexture2D } from "
|
|
1
|
+
import type { TgdContext } from "@tgd/context";
|
|
2
|
+
import { TgdTexture2D } from "@tgd/texture";
|
|
3
3
|
import { TgdPainter } from "../painter";
|
|
4
4
|
export interface TgdPainterBackgroundWithDepthOptions {
|
|
5
5
|
background: TgdTexture2D;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { TgdDataset } from "
|
|
2
|
-
import { TgdProgram } from "
|
|
3
|
-
import { TgdTexture2D } from "
|
|
4
|
-
import { webglPresetBlend, webglPresetCull, webglPresetDepth } from "
|
|
5
|
-
import { TgdVertexArray } from "
|
|
6
|
-
import { TgdPainterClear } from "../clear
|
|
7
|
-
import { TgdPainterFramebuffer } from "../framebuffer
|
|
8
|
-
import { TgdPainter } from "../painter
|
|
9
|
-
import { TgdPainterState } from "../state
|
|
10
|
-
import { FRAG } from "./background.frag
|
|
11
|
-
import { VERT } from "./background.vert
|
|
1
|
+
import { TgdDataset } from "@tgd/dataset/dataset";
|
|
2
|
+
import { TgdProgram } from "@tgd/program";
|
|
3
|
+
import { TgdTexture2D } from "@tgd/texture";
|
|
4
|
+
import { webglPresetBlend, webglPresetCull, webglPresetDepth } from "@tgd/utils";
|
|
5
|
+
import { TgdVertexArray } from "@tgd/vao";
|
|
6
|
+
import { TgdPainterClear } from "../clear";
|
|
7
|
+
import { TgdPainterFramebuffer } from "../framebuffer";
|
|
8
|
+
import { TgdPainter } from "../painter";
|
|
9
|
+
import { TgdPainterState } from "../state";
|
|
10
|
+
import { FRAG } from "./background.frag";
|
|
11
|
+
import { VERT } from "./background.vert";
|
|
12
12
|
/**
|
|
13
13
|
* Complex backgrounds can be long to render. If we use a fixed camera,
|
|
14
14
|
* we just need to render it once, store the image and the depth buffer and re-use them.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./background-with-depth
|
|
1
|
+
export * from "./background-with-depth";
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcGFpbnRlci9iYWNrZ3JvdW5kLXdpdGgtZGVwdGgvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyx5QkFBeUIsQ0FBQSJ9
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./point
|
|
2
|
-
export * from "./stencil/stencil
|
|
1
|
+
export * from "./point";
|
|
2
|
+
export * from "./stencil/stencil";
|
|
3
3
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcGFpbnRlci9kZWJ1Zy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLFNBQVMsQ0FBQTtBQUN2QixjQUFjLG1CQUFtQixDQUFBIn0=
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./point
|
|
1
|
+
export * from "./point";
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvcGFpbnRlci9kZWJ1Zy9wb2ludC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLFNBQVMsQ0FBQSJ9
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TgdContext } from "
|
|
2
|
-
import { TgdPainter } from "
|
|
1
|
+
import type { TgdContext } from "@tgd/context";
|
|
2
|
+
import { TgdPainter } from "@tgd/painter/painter";
|
|
3
3
|
import { TgdVec4 } from "@tolokoban/tgd";
|
|
4
4
|
export declare class TgdPainterDebugPoint extends TgdPainter {
|
|
5
5
|
readonly context: TgdContext;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TgdPainter } from "
|
|
2
|
-
import { TgdProgram } from "
|
|
3
|
-
import { TgdShaderFragment, TgdShaderVertex } from "
|
|
4
|
-
import { TgdVec4 } from "
|
|
1
|
+
import { TgdPainter } from "@tgd/painter/painter";
|
|
2
|
+
import { TgdProgram } from "@tgd/program";
|
|
3
|
+
import { TgdShaderFragment, TgdShaderVertex } from "@tgd/shader";
|
|
4
|
+
import { TgdVec4 } from "@tolokoban/tgd";
|
|
5
5
|
export class TgdPainterDebugPoint extends TgdPainter {
|
|
6
6
|
constructor(context) {
|
|
7
7
|
super();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./stencil
|
|
1
|
+
export * from "./stencil";
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvcGFpbnRlci9kZWJ1Zy9zdGVuY2lsL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsV0FBVyxDQUFBIn0=
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { TgdDataset } from "
|
|
2
|
-
import { TgdProgram } from "
|
|
3
|
-
import { webglStencilGet, webglStencilSet } from "
|
|
4
|
-
import { TgdVertexArray } from "
|
|
5
|
-
import { TgdPainter } from "../../painter
|
|
6
|
-
import { FRAG } from "./stencil.frag
|
|
7
|
-
import { VERT } from "./stencil.vert
|
|
1
|
+
import { TgdDataset } from "@tgd/dataset";
|
|
2
|
+
import { TgdProgram } from "@tgd/program";
|
|
3
|
+
import { webglStencilGet, webglStencilSet } from "@tgd/utils";
|
|
4
|
+
import { TgdVertexArray } from "@tgd/vao";
|
|
5
|
+
import { TgdPainter } from "../../painter";
|
|
6
|
+
import { FRAG } from "./stencil.frag";
|
|
7
|
+
import { VERT } from "./stencil.vert";
|
|
8
8
|
export class TgdPainterDebugStencil extends TgdPainter {
|
|
9
9
|
constructor(context) {
|
|
10
10
|
super();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { TgdContext } from "
|
|
2
|
-
import { type TgdFilter } from "
|
|
3
|
-
import { TgdPainter } from "
|
|
4
|
-
import type { TgdTexture2D } from "
|
|
1
|
+
import type { TgdContext } from "@tgd/context";
|
|
2
|
+
import { type TgdFilter } from "@tgd/filter";
|
|
3
|
+
import { TgdPainter } from "@tgd/painter/painter";
|
|
4
|
+
import type { TgdTexture2D } from "@tgd/texture";
|
|
5
5
|
export interface TgdPainterFilterOptions {
|
|
6
6
|
filters?: TgdFilter[];
|
|
7
7
|
texture?: TgdTexture2D;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { TgdDataset } from "
|
|
2
|
-
import { TgdFilterVerbatim } from "
|
|
3
|
-
import { TgdPainter } from "
|
|
4
|
-
import { TgdProgram } from "
|
|
5
|
-
import { TgdShaderFragment } from "
|
|
6
|
-
import { TgdShaderVertex } from "
|
|
7
|
-
import { TgdVertexArray } from "
|
|
8
|
-
import { TgdPainterState } from "../state
|
|
9
|
-
import { Framebuffers } from "./framebuffers
|
|
1
|
+
import { TgdDataset } from "@tgd/dataset/dataset";
|
|
2
|
+
import { TgdFilterVerbatim } from "@tgd/filter";
|
|
3
|
+
import { TgdPainter } from "@tgd/painter/painter";
|
|
4
|
+
import { TgdProgram } from "@tgd/program";
|
|
5
|
+
import { TgdShaderFragment } from "@tgd/shader/fragment";
|
|
6
|
+
import { TgdShaderVertex } from "@tgd/shader/vertex";
|
|
7
|
+
import { TgdVertexArray } from "@tgd/vao";
|
|
8
|
+
import { TgdPainterState } from "../state";
|
|
9
|
+
import { Framebuffers } from "./framebuffers";
|
|
10
10
|
export class TgdPainterFilter extends TgdPainter {
|
|
11
11
|
constructor(context, options) {
|
|
12
12
|
super();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./filter
|
|
1
|
+
export * from "./filter";
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcGFpbnRlci9maWx0ZXIvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxVQUFVLENBQUEifQ==
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TgdContext } from "
|
|
2
|
-
import { TgdPainter } from "
|
|
3
|
-
import { TgdShaderFragment } from "
|
|
4
|
-
import { TgdProgram } from "
|
|
1
|
+
import { TgdContext } from "@tgd/context";
|
|
2
|
+
import { TgdPainter } from "@tgd/painter/painter";
|
|
3
|
+
import { TgdShaderFragment } from "@tgd/shader/fragment";
|
|
4
|
+
import { TgdProgram } from "@tgd/program";
|
|
5
5
|
export interface TgdPainterFragmentShaderOptions {
|
|
6
6
|
/**
|
|
7
7
|
* The fragment shader have access to these uniforms and varyings:
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { TgdPainter } from "
|
|
2
|
-
import { TgdDataset } from "
|
|
3
|
-
import { TgdVertexArray } from "
|
|
4
|
-
import { TgdShaderVertex } from "
|
|
5
|
-
import { TgdProgram } from "
|
|
1
|
+
import { TgdPainter } from "@tgd/painter/painter";
|
|
2
|
+
import { TgdDataset } from "@tgd/dataset/dataset";
|
|
3
|
+
import { TgdVertexArray } from "@tgd/vao";
|
|
4
|
+
import { TgdShaderVertex } from "@tgd/shader/vertex";
|
|
5
|
+
import { TgdProgram } from "@tgd/program";
|
|
6
6
|
export class TgdPainterFragmentShader extends TgdPainter {
|
|
7
7
|
constructor(context, options) {
|
|
8
8
|
super();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./fragment-shader
|
|
1
|
+
export * from "./fragment-shader";
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcGFpbnRlci9mcmFnbWVudC1zaGFkZXIvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxtQkFBbUIsQ0FBQSJ9
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TgdContext } from "
|
|
1
|
+
import { TgdContext } from "@tgd/context";
|
|
2
2
|
import { TgdPainterFramebuffer, TgdPainterFramebufferOptions } from "./framebuffer";
|
|
3
3
|
export type TgdPainterFramebufferWithAntiAliasingOptions = Omit<TgdPainterFramebufferOptions, "antiAliasing">;
|
|
4
4
|
export declare class TgdPainterFramebufferWithAntiAliasing extends TgdPainterFramebuffer {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TgdContext } from "
|
|
2
|
-
import type { TgdTexture2D, TgdTextureDepth } from "
|
|
3
|
-
import type { TgdPainterFunction } from "
|
|
1
|
+
import { TgdContext } from "@tgd/context";
|
|
2
|
+
import type { TgdTexture2D, TgdTextureDepth } from "@tgd/texture";
|
|
3
|
+
import type { TgdPainterFunction } from "@tgd/types/painter";
|
|
4
4
|
import { TgdPainterGroup } from "./group";
|
|
5
5
|
import type { TgdPainter } from "./painter";
|
|
6
6
|
export interface TgdPainterFramebufferOptions {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { webglCreateFramebuffer, webglLookup, webglRenderbufferStorageMultisample } from "
|
|
2
|
-
import { TgdPainterGroup } from "./group
|
|
1
|
+
import { webglCreateFramebuffer, webglLookup, webglRenderbufferStorageMultisample } from "@tgd/utils";
|
|
2
|
+
import { TgdPainterGroup } from "./group";
|
|
3
3
|
export class TgdPainterFramebuffer extends TgdPainterGroup {
|
|
4
4
|
constructor(context, options) {
|
|
5
5
|
super({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { TgdCameraPerspective } from "
|
|
2
|
-
import { TgdContext } from "
|
|
3
|
-
import { TgdVec3 } from "
|
|
1
|
+
import { TgdCameraPerspective } from "@tgd/camera";
|
|
2
|
+
import { TgdContext } from "@tgd/context";
|
|
3
|
+
import { TgdVec3 } from "@tgd/math";
|
|
4
4
|
import { TgdDebugPainterHierarchy, TgdPainter } from "../painter";
|
|
5
|
-
import { TgdEvent } from "
|
|
5
|
+
import { TgdEvent } from "@tgd/event";
|
|
6
6
|
export interface TgdPainterGizmoOptions {
|
|
7
7
|
alignX: number;
|
|
8
8
|
alignY: number;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { TgdCameraPerspective } from "
|
|
2
|
-
import { TgdContext } from "
|
|
3
|
-
import { TgdMat3, TgdQuat, TgdVec3 } from "
|
|
4
|
-
import { TgdTexture2D } from "
|
|
5
|
-
import { tgdActionCreateCameraInterpolation, tgdCanvasCreate } from "
|
|
6
|
-
import { TgdPainterClear } from "../clear
|
|
7
|
-
import { TgdPainterGroupCamera } from "../group-camera
|
|
8
|
-
import { TgdPainterOverlay } from "../overlay
|
|
9
|
-
import { TgdPainter } from "../painter
|
|
10
|
-
import { TgdPainterState } from "../state
|
|
11
|
-
import { PainterTipsMask } from "./painters/mask
|
|
12
|
-
import { PainterTipsNormal } from "./painters/normal
|
|
13
|
-
import { TgdUniformBufferObject } from "
|
|
14
|
-
import { PainterAxes } from "./painters/axes
|
|
15
|
-
import { TgdEvent } from "
|
|
16
|
-
import { TgdPainterFramebuffer } from "../framebuffer
|
|
1
|
+
import { TgdCameraPerspective } from "@tgd/camera";
|
|
2
|
+
import { TgdContext } from "@tgd/context";
|
|
3
|
+
import { TgdMat3, TgdQuat, TgdVec3 } from "@tgd/math";
|
|
4
|
+
import { TgdTexture2D } from "@tgd/texture";
|
|
5
|
+
import { tgdActionCreateCameraInterpolation, tgdCanvasCreate } from "@tgd/utils";
|
|
6
|
+
import { TgdPainterClear } from "../clear";
|
|
7
|
+
import { TgdPainterGroupCamera } from "../group-camera";
|
|
8
|
+
import { TgdPainterOverlay } from "../overlay";
|
|
9
|
+
import { TgdPainter } from "../painter";
|
|
10
|
+
import { TgdPainterState } from "../state";
|
|
11
|
+
import { PainterTipsMask } from "./painters/mask";
|
|
12
|
+
import { PainterTipsNormal } from "./painters/normal";
|
|
13
|
+
import { TgdUniformBufferObject } from "@tgd/uniform";
|
|
14
|
+
import { PainterAxes } from "./painters/axes";
|
|
15
|
+
import { TgdEvent } from "@tgd/event";
|
|
16
|
+
import { TgdPainterFramebuffer } from "../framebuffer";
|
|
17
17
|
export class TgdPainterGizmo extends TgdPainter {
|
|
18
18
|
constructor(context, { alignX = +1, alignY = +1, size = 128, margin = 0 } = {}) {
|
|
19
19
|
super();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./gizmo
|
|
1
|
+
export * from "./gizmo";
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcGFpbnRlci9naXptby9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLFNBQVMsQ0FBQSJ9
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TgdContext } from "
|
|
2
|
-
import { TgdPainterProgram } from "
|
|
3
|
-
import { TgdUniformBufferObject } from "
|
|
1
|
+
import { TgdContext } from "@tgd/context";
|
|
2
|
+
import { TgdPainterProgram } from "@tgd/painter/program";
|
|
3
|
+
import { TgdUniformBufferObject } from "@tgd/uniform";
|
|
4
4
|
interface PainterAxesOptions {
|
|
5
5
|
uniformCamera: TgdUniformBufferObject;
|
|
6
6
|
size: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { TgdPainterProgram } from "
|
|
2
|
-
import { TgdUniformBufferObject } from "
|
|
3
|
-
import { RED, GREEN, BLUE } from "./consts
|
|
4
|
-
import { TgdColor } from "
|
|
5
|
-
import { TgdVec2 } from "
|
|
1
|
+
import { TgdPainterProgram } from "@tgd/painter/program";
|
|
2
|
+
import { TgdUniformBufferObject } from "@tgd/uniform";
|
|
3
|
+
import { RED, GREEN, BLUE } from "./consts";
|
|
4
|
+
import { TgdColor } from "@tgd/color";
|
|
5
|
+
import { TgdVec2 } from "@tgd/math";
|
|
6
6
|
export class PainterAxes extends TgdPainterProgram {
|
|
7
7
|
constructor(context, { uniformCamera, size, red = RED, green = GREEN, blue = BLUE }) {
|
|
8
8
|
const R = parseColor(red);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TgdContext } from "
|
|
2
|
-
import { TgdPainter } from "
|
|
1
|
+
import { TgdContext } from "@tgd/context";
|
|
2
|
+
import { TgdPainter } from "@tgd/painter/painter";
|
|
3
3
|
export declare class PainterTipsMask extends TgdPainter {
|
|
4
4
|
readonly context: TgdContext;
|
|
5
5
|
size: number;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { TgdDataset } from "
|
|
2
|
-
import { TgdPainter } from "
|
|
3
|
-
import { TgdPainterState } from "
|
|
4
|
-
import { TgdProgram } from "
|
|
5
|
-
import { TgdShaderFragment, TgdShaderVertex } from "
|
|
6
|
-
import { TgdVertexArray } from "
|
|
1
|
+
import { TgdDataset } from "@tgd/dataset";
|
|
2
|
+
import { TgdPainter } from "@tgd/painter/painter";
|
|
3
|
+
import { TgdPainterState } from "@tgd/painter/state";
|
|
4
|
+
import { TgdProgram } from "@tgd/program";
|
|
5
|
+
import { TgdShaderFragment, TgdShaderVertex } from "@tgd/shader";
|
|
6
|
+
import { TgdVertexArray } from "@tgd/vao";
|
|
7
7
|
export class PainterTipsMask extends TgdPainter {
|
|
8
8
|
constructor(context, options) {
|
|
9
9
|
super();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TgdContext } from "
|
|
2
|
-
import { TgdTexture2D } from "
|
|
3
|
-
import { TgdPainterProgram } from "
|
|
4
|
-
import { TgdUniformBufferObject } from "
|
|
1
|
+
import { TgdContext } from "@tgd/context";
|
|
2
|
+
import { TgdTexture2D } from "@tgd/texture";
|
|
3
|
+
import { TgdPainterProgram } from "@tgd/painter/program";
|
|
4
|
+
import { TgdUniformBufferObject } from "@tgd/uniform";
|
|
5
5
|
interface PainterTipsNormalOptions {
|
|
6
6
|
texture: TgdTexture2D;
|
|
7
7
|
size: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createTipsTexture } from "./tips
|
|
2
|
-
import { TgdPainterProgram } from "
|
|
3
|
-
import { TgdUniformBufferObject } from "
|
|
1
|
+
import { createTipsTexture } from "./tips";
|
|
2
|
+
import { TgdPainterProgram } from "@tgd/painter/program";
|
|
3
|
+
import { TgdUniformBufferObject } from "@tgd/uniform";
|
|
4
4
|
export class PainterTipsNormal extends TgdPainterProgram {
|
|
5
5
|
static async create(context, options) {
|
|
6
6
|
const texture = await createTipsTexture(context);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TgdContext } from "
|
|
2
|
-
import { TgdTexture2D } from "
|
|
1
|
+
import type { TgdContext } from "@tgd/context";
|
|
2
|
+
import { TgdTexture2D } from "@tgd/texture";
|
|
3
3
|
interface TipsOptions {
|
|
4
4
|
/**
|
|
5
5
|
* Resulting image will be 3*size × 2*size.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TgdColor } from "
|
|
2
|
-
import { tgdLoadCanvasFromSvg } from "
|
|
3
|
-
import { TgdTexture2D } from "
|
|
4
|
-
import { RED, GREEN, BLUE } from "./consts
|
|
1
|
+
import { TgdColor } from "@tgd/color";
|
|
2
|
+
import { tgdLoadCanvasFromSvg } from "@tgd/loader";
|
|
3
|
+
import { TgdTexture2D } from "@tgd/texture";
|
|
4
|
+
import { RED, GREEN, BLUE } from "./consts";
|
|
5
5
|
const SIZE = 128;
|
|
6
6
|
export async function createTipsTexture(context, { size = SIZE, red = RED, green = GREEN, blue = BLUE } = {}) {
|
|
7
7
|
const canvas = await tgdLoadCanvasFromSvg(makeTipsSVG(size, red, green, blue));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { TgdCamera } from "
|
|
1
|
+
import { TgdCamera } from "@tgd/camera";
|
|
2
2
|
import { TgdPainterGroup } from "./group";
|
|
3
|
-
import { TgdContext } from "
|
|
3
|
+
import { TgdContext } from "@tgd/context";
|
|
4
4
|
import { TgdPainter } from "./painter";
|
|
5
|
-
import { TgdPainterFunction } from "
|
|
5
|
+
import { TgdPainterFunction } from "@tgd/types/painter";
|
|
6
6
|
export interface TgdPainterGroupCameraOptions {
|
|
7
7
|
name?: string;
|
|
8
8
|
camera?: TgdCamera;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TgdLogic } from "
|
|
2
|
-
import type { TgdPainterFunction } from "
|
|
1
|
+
import { TgdLogic } from "@tgd/context";
|
|
2
|
+
import type { TgdPainterFunction } from "@tgd/types/painter";
|
|
3
3
|
import { type TgdDebugPainterHierarchy, TgdPainter } from "./painter";
|
|
4
4
|
export type TgdPainterGroupOptions = {
|
|
5
5
|
onEnter?(time: number, delta: number): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TgdLogic } from "
|
|
2
|
-
import { TgdConsole } from "
|
|
3
|
-
import { TgdPainter } from "./painter
|
|
4
|
-
import { TgdPainterLogic } from "./logic
|
|
1
|
+
import { TgdLogic } from "@tgd/context";
|
|
2
|
+
import { TgdConsole } from "@tgd/debug";
|
|
3
|
+
import { TgdPainter } from "./painter";
|
|
4
|
+
import { TgdPainterLogic } from "./logic";
|
|
5
5
|
/**
|
|
6
6
|
* Group several painters together.
|
|
7
7
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** biome-ignore-all lint/suspicious/noAssignInExpressions: <explanation> */
|
|
2
|
-
import type { TgdContext } from "
|
|
3
|
-
import { TgdEvent } from "
|
|
4
|
-
import { type ArrayNumber4, type TgdColor, type TgdInputPointerEventTap, TgdVec4, type WebglBlendOptions, type WebglDepthOptions, type webglPresetBlend, type webglPresetDepth } from "
|
|
5
|
-
import { TgdTexture2D } from "
|
|
2
|
+
import type { TgdContext } from "@tgd/context";
|
|
3
|
+
import { TgdEvent } from "@tgd/event";
|
|
4
|
+
import { type ArrayNumber4, type TgdColor, type TgdInputPointerEventTap, TgdVec4, type WebglBlendOptions, type WebglDepthOptions, type webglPresetBlend, type webglPresetDepth } from "@tgd/index";
|
|
5
|
+
import { TgdTexture2D } from "@tgd/texture";
|
|
6
6
|
import { type TgdPainterOverlayOptions } from "../overlay";
|
|
7
7
|
import { TgdPainter } from "../painter";
|
|
8
8
|
import type { TgdPainterSpritesAtlas } from "../sprites";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { TgdEvent } from "
|
|
2
|
-
import { ensureTgdVec4, tgdCanvasCreate, TgdPainterClear, TgdPainterFramebuffer, TgdPainterState, TgdVec4, } from "
|
|
3
|
-
import { TgdTexture2D } from "
|
|
4
|
-
import { TgdPainterOverlay } from "../overlay
|
|
5
|
-
import { TgdPainter } from "../painter
|
|
6
|
-
import { PainterSprite } from "./sprite
|
|
1
|
+
import { TgdEvent } from "@tgd/event";
|
|
2
|
+
import { ensureTgdVec4, tgdCanvasCreate, TgdPainterClear, TgdPainterFramebuffer, TgdPainterState, TgdVec4, } from "@tgd/index";
|
|
3
|
+
import { TgdTexture2D } from "@tgd/texture";
|
|
4
|
+
import { TgdPainterOverlay } from "../overlay";
|
|
5
|
+
import { TgdPainter } from "../painter";
|
|
6
|
+
import { PainterSprite } from "./sprite";
|
|
7
7
|
export class TgdPainterIcon extends TgdPainter {
|
|
8
8
|
constructor(context, options) {
|
|
9
9
|
super();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./icon
|
|
1
|
+
export * from "./icon";
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcGFpbnRlci9pY29uL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsUUFBUSxDQUFBIn0=
|