@tolokoban/tgd 2.0.8 → 2.0.9
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/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 +1 -1
- package/lib/dist/camera/camera.js +3 -3
- package/lib/dist/camera/index.js +3 -3
- package/lib/dist/canvas/gizmo/gizmo.d.ts +4 -4
- package/lib/dist/canvas/gizmo/gizmo.js +7 -7
- package/lib/dist/canvas/gizmo/index.js +1 -1
- package/lib/dist/canvas/gizmo/painter/tips.d.ts +2 -2
- package/lib/dist/canvas/gizmo/painter/tips.js +3 -3
- 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/color/index.js +1 -1
- package/lib/dist/context/animation/animation-manager.d.ts +1 -1
- package/lib/dist/context/context.d.ts +8 -8
- package/lib/dist/context/context.js +8 -8
- package/lib/dist/context/index.js +2 -2
- package/lib/dist/controller/camera/index.js +1 -1
- package/lib/dist/controller/camera/orbit.d.ts +3 -3
- package/lib/dist/controller/camera/orbit.js +3 -3
- package/lib/dist/controller/index.js +1 -1
- package/lib/dist/dataset/dataset.d.ts +2 -2
- package/lib/dist/dataset/index.js +1 -1
- package/lib/dist/event/index.js +1 -1
- package/lib/dist/filter/blur.js +2 -2
- package/lib/dist/filter/chromatic-aberration.js +1 -1
- package/lib/dist/filter/filter.d.ts +2 -2
- package/lib/dist/filter/hue-rotation.js +1 -1
- package/lib/dist/filter/index.js +4 -4
- package/lib/dist/geometry/box.js +2 -2
- package/lib/dist/geometry/geometry.d.ts +2 -2
- package/lib/dist/geometry/geometry.js +1 -1
- package/lib/dist/geometry/index.js +2 -2
- package/lib/dist/index.js +23 -23
- package/lib/dist/input/index.js +3 -3
- package/lib/dist/input/inputs.d.ts +2 -2
- package/lib/dist/input/inputs.js +2 -2
- package/lib/dist/input/keyboard.d.ts +1 -1
- package/lib/dist/input/keyboard.js +1 -1
- package/lib/dist/input/pointer.d.ts +2 -2
- package/lib/dist/input/pointer.js +1 -1
- package/lib/dist/light/index.js +1 -1
- package/lib/dist/light/light.d.ts +1 -1
- package/lib/dist/light/light.js +1 -1
- package/lib/dist/loader/glb.d.ts +1 -1
- package/lib/dist/loader/glb.js +1 -1
- package/lib/dist/loader/index.js +2 -2
- package/lib/dist/material/diffuse.d.ts +4 -4
- package/lib/dist/material/diffuse.js +3 -3
- package/lib/dist/material/ghost.d.ts +3 -3
- package/lib/dist/material/ghost.js +2 -2
- package/lib/dist/material/index.js +4 -4
- package/lib/dist/material/material.d.ts +1 -1
- package/lib/dist/material/normals.d.ts +2 -2
- package/lib/dist/material/normals.js +1 -1
- package/lib/dist/math/index.js +8 -8
- package/lib/dist/math/mat3.js +1 -1
- package/lib/dist/math/mat4.js +2 -2
- package/lib/dist/math/mat4.test.js +1 -1
- package/lib/dist/math/quat.js +1 -1
- package/lib/dist/math/quat.test.js +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/vec3.test.js +1 -1
- package/lib/dist/math/vec4.js +1 -1
- package/lib/dist/math/vec4.test.js +1 -1
- package/lib/dist/painter/axis/axis.d.ts +2 -2
- package/lib/dist/painter/axis/axis.js +3 -3
- package/lib/dist/painter/axis/index.js +1 -1
- package/lib/dist/painter/background/background.d.ts +2 -2
- package/lib/dist/painter/background/background.js +2 -2
- package/lib/dist/painter/background/index.js +1 -1
- package/lib/dist/painter/clear.d.ts +2 -2
- package/lib/dist/painter/clear.js +1 -1
- 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 +4 -4
- package/lib/dist/painter/filter/index.js +1 -1
- package/lib/dist/painter/framebuffer-old.d.ts +3 -3
- package/lib/dist/painter/framebuffer-old.d.ts.map +1 -1
- package/lib/dist/painter/framebuffer-old.js +3 -3
- package/lib/dist/painter/framebuffer.js +1 -1
- package/lib/dist/painter/group.d.ts +1 -1
- package/lib/dist/painter/group.js +1 -1
- package/lib/dist/painter/index.d.ts +1 -1
- package/lib/dist/painter/index.d.ts.map +1 -1
- package/lib/dist/painter/index.js +15 -15
- package/lib/dist/painter/logic.js +1 -1
- package/lib/dist/painter/mesh/gltf/gltf.d.ts +2 -2
- package/lib/dist/painter/mesh/gltf/gltf.js +6 -6
- 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 +4 -4
- package/lib/dist/painter/mesh/mesh/mesh.js +4 -4
- 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 +2 -2
- package/lib/dist/painter/node.d.ts +1 -1
- package/lib/dist/painter/node.js +3 -3
- package/lib/dist/painter/painter.d.ts +1 -1
- package/lib/dist/painter/painter.js +1 -1
- package/lib/dist/painter/segments/index.js +1 -1
- package/lib/dist/painter/segments/segments.d.ts +3 -3
- package/lib/dist/painter/segments/segments.js +2 -2
- package/lib/dist/painter/skybox/index.js +1 -1
- package/lib/dist/painter/skybox/skybox.d.ts +4 -4
- package/lib/dist/painter/skybox/skybox.js +4 -4
- package/lib/dist/painter/state/blend.d.ts +22 -0
- package/lib/dist/painter/state/blend.d.ts.map +1 -0
- package/lib/dist/painter/state/blend.js +47 -0
- package/lib/dist/painter/state/cull.d.ts +6 -0
- package/lib/dist/painter/state/cull.d.ts.map +1 -0
- package/lib/dist/painter/state/cull.js +20 -0
- package/lib/dist/painter/state/depth.d.ts +18 -0
- package/lib/dist/painter/state/depth.d.ts.map +1 -0
- package/lib/dist/painter/state/depth.js +44 -0
- package/lib/dist/painter/state/index.d.ts +2 -0
- package/lib/dist/painter/state/index.d.ts.map +1 -0
- package/lib/dist/painter/state/index.js +2 -0
- package/lib/dist/painter/state/state.d.ts +20 -0
- package/lib/dist/painter/state/state.d.ts.map +1 -0
- package/lib/dist/painter/state/state.js +55 -0
- package/lib/dist/parser/gltf/gltf.d.ts +13 -3
- package/lib/dist/parser/gltf/gltf.d.ts.map +1 -1
- package/lib/dist/parser/gltf/gltf.js +65 -3
- 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 +2 -2
- package/lib/dist/parser/mesh/wavefront.d.ts.map +1 -1
- package/lib/dist/parser/mesh/wavefront.js +4 -4
- package/lib/dist/program/index.js +1 -1
- package/lib/dist/program/program.d.ts +2 -2
- package/lib/dist/resource/index.js +4 -4
- package/lib/dist/resource/program.d.ts +1 -1
- package/lib/dist/resource/program.js +2 -2
- package/lib/dist/resource/texture2d.d.ts +2 -2
- package/lib/dist/resource/texture2d.js +2 -2
- package/lib/dist/resource/textureCube.d.ts +2 -2
- package/lib/dist/resource/textureCube.js +2 -2
- package/lib/dist/shader/fragment.js +1 -1
- package/lib/dist/shader/index.js +2 -2
- package/lib/dist/shader/vertex.js +1 -1
- package/lib/dist/texture/index.js +2 -2
- package/lib/dist/texture/texture2d.d.ts +2 -2
- package/lib/dist/texture/texture2d.js +3 -3
- package/lib/dist/texture/textureCube.d.ts +1 -1
- package/lib/dist/texture/textureCube.js +1 -1
- package/lib/dist/types/context.d.ts +6 -6
- package/lib/dist/types/gltf.d.ts +7 -6
- package/lib/dist/types/gltf.d.ts.map +1 -1
- package/lib/dist/types/gltf.js +2 -2
- package/lib/dist/types/index.js +9 -9
- package/lib/dist/types/input-pointer.d.ts +1 -1
- package/lib/dist/types/mesh.d.ts +0 -1
- package/lib/dist/types/mesh.d.ts.map +1 -1
- package/lib/dist/utils/action/camera.d.ts +2 -2
- package/lib/dist/utils/action/camera.js +2 -2
- package/lib/dist/utils/action/index.js +1 -1
- package/lib/dist/utils/ease-func/index.js +1 -1
- package/lib/dist/utils/fetch/index.js +1 -1
- package/lib/dist/utils/index.js +6 -6
- package/lib/dist/utils/webgl.d.ts +2 -0
- package/lib/dist/utils/webgl.d.ts.map +1 -1
- package/lib/dist/utils/webgl.js +32 -1
- package/lib/dist/vao/index.js +1 -1
- package/lib/dist/vao/vao.d.ts +3 -3
- package/lib/dist/vao/vao.js +1 -1
- package/package.json +1 -1
package/lib/dist/buffer/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./buffer
|
|
1
|
+
export * from "./buffer";
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYnVmZmVyL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsVUFBVSxDQUFBIn0=
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TgdMat4, TgdVec3 } from "
|
|
2
|
-
import { TgdCamera } from "./camera
|
|
1
|
+
import { TgdMat4, TgdVec3 } from "@tgd/math";
|
|
2
|
+
import { TgdCamera } from "./camera";
|
|
3
3
|
export class TgdCameraOrthographic extends TgdCamera {
|
|
4
4
|
_matrixProjection = new TgdMat4();
|
|
5
5
|
_spaceHeight = 10;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TgdMat4, TgdVec3 } from "
|
|
2
|
-
import { TgdCamera } from "./camera
|
|
1
|
+
import { TgdMat4, TgdVec3 } from "@tgd/math";
|
|
2
|
+
import { TgdCamera } from "./camera";
|
|
3
3
|
export class TgdCameraPerspective extends TgdCamera {
|
|
4
4
|
_matrixProjection = new TgdMat4();
|
|
5
5
|
_fovy = Math.PI / 4;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TgdQuat, TgdVec3, TgdMat4 } from "
|
|
2
|
-
import { TgdMat3 } from "
|
|
3
|
-
import { TgdEvent } from "../event
|
|
1
|
+
import { TgdQuat, TgdVec3, TgdMat4 } from "@tgd/math";
|
|
2
|
+
import { TgdMat3 } from "@tgd/math/mat3";
|
|
3
|
+
import { TgdEvent } from "../event";
|
|
4
4
|
export class TgdCamera {
|
|
5
5
|
static incrementalId = 1;
|
|
6
6
|
/**
|
package/lib/dist/camera/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from "./camera
|
|
2
|
-
export * from "./camera-orthographic
|
|
3
|
-
export * from "./camera-perspective
|
|
1
|
+
export * from "./camera";
|
|
2
|
+
export * from "./camera-orthographic";
|
|
3
|
+
export * from "./camera-perspective";
|
|
4
4
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY2FtZXJhL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsVUFBVSxDQUFBO0FBQ3hCLGNBQWMsdUJBQXVCLENBQUE7QUFDckMsY0FBYyxzQkFBc0IsQ0FBQSJ9
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TgdCamera } from "
|
|
2
|
-
import { TgdContextOptions } from "
|
|
3
|
-
import { TgdEvent } from "
|
|
4
|
-
import { TgdQuat } from "
|
|
1
|
+
import { TgdCamera } from "@tgd/camera";
|
|
2
|
+
import { TgdContextOptions } from "@tgd/context";
|
|
3
|
+
import { TgdEvent } from "@tgd/event";
|
|
4
|
+
import { TgdQuat } from "@tgd/math";
|
|
5
5
|
export interface TgdCanvasGizmoOptions extends TgdContextOptions {
|
|
6
6
|
canvas?: HTMLCanvasElement;
|
|
7
7
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { TgdCameraPerspective } from "
|
|
2
|
-
import { TgdContext } from "
|
|
3
|
-
import { TgdControllerCameraOrbit } from "
|
|
4
|
-
import { TgdEvent } from "
|
|
5
|
-
import { TgdQuat, TgdMat3, TgdVec3 } from "
|
|
6
|
-
import { TgdPainterClear, TgdPainterDepth } from "
|
|
7
|
-
import { TipsPainter } from "./painter/tips
|
|
1
|
+
import { TgdCameraPerspective } from "@tgd/camera";
|
|
2
|
+
import { TgdContext } from "@tgd/context";
|
|
3
|
+
import { TgdControllerCameraOrbit } from "@tgd/controller";
|
|
4
|
+
import { TgdEvent } from "@tgd/event";
|
|
5
|
+
import { TgdQuat, TgdMat3, TgdVec3 } from "@tgd/math";
|
|
6
|
+
import { TgdPainterClear, TgdPainterDepth } from "@tgd/painter";
|
|
7
|
+
import { TipsPainter } from "./painter/tips";
|
|
8
8
|
/**
|
|
9
9
|
* The Gizmo displays the orientation of an attached camera.
|
|
10
10
|
* You can click one of the axis to force the camera to face it.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./gizmo
|
|
1
|
+
export * from "./gizmo";
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY2FudmFzL2dpem1vL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsU0FBUyxDQUFBIn0=
|
|
@@ -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 TipsPainter extends TgdPainter {
|
|
4
4
|
private readonly context;
|
|
5
5
|
private readonly texture;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TgdDataset } from "
|
|
2
|
-
import { TgdPainter } from "
|
|
3
|
-
import { tgdCanvasCreateWithContext2D } from "
|
|
1
|
+
import { TgdDataset } from "@tgd/dataset";
|
|
2
|
+
import { TgdPainter } from "@tgd/painter/painter";
|
|
3
|
+
import { tgdCanvasCreateWithContext2D } from "@tgd/utils";
|
|
4
4
|
import FRAG from "./shader.frag";
|
|
5
5
|
import VERT from "./shader.vert";
|
|
6
6
|
export class TipsPainter extends TgdPainter {
|
package/lib/dist/canvas/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./gizmo
|
|
2
|
-
export * from "./landscape
|
|
1
|
+
export * from "./gizmo";
|
|
2
|
+
export * from "./landscape";
|
|
3
3
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY2FudmFzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsU0FBUyxDQUFBO0FBQ3ZCLGNBQWMsYUFBYSxDQUFBIn0=
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./landscape
|
|
1
|
+
export * from "./landscape";
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY2FudmFzL2xhbmRzY2FwZS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGFBQWEsQ0FBQSJ9
|
package/lib/dist/color/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./color
|
|
1
|
+
export * from "./color";
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY29sb3IvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxTQUFTLENBQUEifQ==
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { TgdBuffer, TgdBufferOptions } from "
|
|
2
|
-
import { TgdCamera } from "
|
|
3
|
-
import { TgdDataset } from "
|
|
4
|
-
import { TgdInputs } from "
|
|
5
|
-
import { TgdResourceProgram, TgdResourceTexture2D, TgdResourceTextureCube } from "
|
|
6
|
-
import { TgdContextInterface, TgdProgram } from "
|
|
7
|
-
import { TgdPainterFunction as TgdPainterFunctionType } from "
|
|
8
|
-
import { TgdVertexArray } from "
|
|
1
|
+
import { TgdBuffer, TgdBufferOptions } from "@tgd/buffer";
|
|
2
|
+
import { TgdCamera } from "@tgd/camera";
|
|
3
|
+
import { TgdDataset } from "@tgd/dataset";
|
|
4
|
+
import { TgdInputs } from "@tgd/input";
|
|
5
|
+
import { TgdResourceProgram, TgdResourceTexture2D, TgdResourceTextureCube } from "@tgd/resource";
|
|
6
|
+
import { TgdContextInterface, TgdProgram } from "@tgd/types";
|
|
7
|
+
import { TgdPainterFunction as TgdPainterFunctionType } from "@tgd/types/painter";
|
|
8
|
+
import { TgdVertexArray } from "@tgd/vao";
|
|
9
9
|
import { TgdPainter } from "../painter/painter";
|
|
10
10
|
import { TgdAnimation } from "../types/animation";
|
|
11
11
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { TgdBuffer } from "
|
|
2
|
-
import { TgdCameraPerspective } from "
|
|
3
|
-
import { TgdInputs } from "
|
|
4
|
-
import { TgdResourceProgram, TgdResourceTexture2D, TgdResourceTextureCube, } from "
|
|
5
|
-
import { TgdVertexArray } from "
|
|
6
|
-
import { TgdPainterGroup } from "../painter/group
|
|
7
|
-
import { tgdCanvasCreate } from "../utils
|
|
8
|
-
import { TgdManagerAnimation } from "./animation/animation-manager
|
|
1
|
+
import { TgdBuffer } from "@tgd/buffer";
|
|
2
|
+
import { TgdCameraPerspective } from "@tgd/camera";
|
|
3
|
+
import { TgdInputs } from "@tgd/input";
|
|
4
|
+
import { TgdResourceProgram, TgdResourceTexture2D, TgdResourceTextureCube, } from "@tgd/resource";
|
|
5
|
+
import { TgdVertexArray } from "@tgd/vao";
|
|
6
|
+
import { TgdPainterGroup } from "../painter/group";
|
|
7
|
+
import { tgdCanvasCreate } from "../utils";
|
|
8
|
+
import { TgdManagerAnimation } from "./animation/animation-manager";
|
|
9
9
|
/**
|
|
10
10
|
* This class gives you a [WebGL2RenderingContext](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext) for a given canvas,
|
|
11
11
|
* through its public readonly attribute `gl`.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./context
|
|
2
|
-
export * from "../log
|
|
1
|
+
export * from "./context";
|
|
2
|
+
export * from "../log";
|
|
3
3
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY29udGV4dC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLFdBQVcsQ0FBQTtBQUN6QixjQUFjLFFBQVEsQ0FBQSJ9
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./orbit
|
|
1
|
+
export * from "./orbit";
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29udHJvbGxlci9jYW1lcmEvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxTQUFTLENBQUEifQ==
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TgdContextInterface, TgdInputPointerModifierKeys } from "
|
|
2
|
-
import { TgdEvent } from "
|
|
3
|
-
import { TgdCamera } from "
|
|
1
|
+
import { TgdContextInterface, TgdInputPointerModifierKeys } from "@tgd/types";
|
|
2
|
+
import { TgdEvent } from "@tgd/event";
|
|
3
|
+
import { TgdCamera } from "@tgd/camera";
|
|
4
4
|
export interface TgdControllerCameraOrbitZoomRequest extends TgdInputPointerModifierKeys {
|
|
5
5
|
x: number;
|
|
6
6
|
y: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { tgdEasingFunctionOutQuad } from "
|
|
2
|
-
import { clamp } from "
|
|
3
|
-
import { TgdEvent } from "
|
|
1
|
+
import { tgdEasingFunctionOutQuad } from "@tgd/utils";
|
|
2
|
+
import { clamp } from "@tgd/utils/math";
|
|
3
|
+
import { TgdEvent } from "@tgd/event";
|
|
4
4
|
export class TgdControllerCameraOrbit {
|
|
5
5
|
context;
|
|
6
6
|
eventChange = new TgdEvent();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./camera
|
|
1
|
+
export * from "./camera";
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY29udHJvbGxlci9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLFVBQVUsQ0FBQSJ9
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TgdProgram } from "
|
|
2
|
-
import { TgdBufferOptionTarget, TgdBufferOptionUsage } from "
|
|
1
|
+
import { TgdProgram } from "@tgd/types";
|
|
2
|
+
import { TgdBufferOptionTarget, TgdBufferOptionUsage } from "@tgd/buffer";
|
|
3
3
|
export type TgdDatasetType = "float" | "vec2" | "vec3" | "vec4";
|
|
4
4
|
export interface TgdDatasetOptions {
|
|
5
5
|
divisor: number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./dataset
|
|
1
|
+
export * from "./dataset";
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZGF0YXNldC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLFdBQVcsQ0FBQSJ9
|
package/lib/dist/event/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./event
|
|
1
|
+
export * from "./event";
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZXZlbnQvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxTQUFTLENBQUEifQ==
|
package/lib/dist/filter/blur.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TgdMath, TgdVec2 } from "../math
|
|
2
|
-
import { TgdFilter } from "./filter
|
|
1
|
+
import { TgdMath, TgdVec2 } from "../math";
|
|
2
|
+
import { TgdFilter } from "./filter";
|
|
3
3
|
const DEFAULT_DIRECTION = new TgdVec2(1, 0);
|
|
4
4
|
export class TgdFilterBlur extends TgdFilter {
|
|
5
5
|
constructor(options = {}) {
|
package/lib/dist/filter/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from "./blur
|
|
2
|
-
export * from "./chromatic-aberration
|
|
3
|
-
export * from "./filter
|
|
4
|
-
export * from "./hue-rotation
|
|
1
|
+
export * from "./blur";
|
|
2
|
+
export * from "./chromatic-aberration";
|
|
3
|
+
export * from "./filter";
|
|
4
|
+
export * from "./hue-rotation";
|
|
5
5
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZmlsdGVyL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsUUFBUSxDQUFBO0FBQ3RCLGNBQWMsd0JBQXdCLENBQUE7QUFDdEMsY0FBYyxVQUFVLENBQUE7QUFDeEIsY0FBYyxnQkFBZ0IsQ0FBQSJ9
|
package/lib/dist/geometry/box.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TgdDataset } from "
|
|
2
|
-
import { TgdGeometry } from "./geometry
|
|
1
|
+
import { TgdDataset } from "@tgd/dataset";
|
|
2
|
+
import { TgdGeometry } from "./geometry";
|
|
3
3
|
export class TgdGeometryBox extends TgdGeometry {
|
|
4
4
|
constructor({ sizeX = 1, sizeY = 1, sizeZ = 1, } = {}) {
|
|
5
5
|
const x = sizeX * 0.5;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TgdDataset } from "
|
|
2
|
-
import { WebglDrawMode } from "
|
|
1
|
+
import { TgdDataset } from "@tgd/dataset";
|
|
2
|
+
import { WebglDrawMode } from "@tgd/types";
|
|
3
3
|
export interface TgdGeometryOptions {
|
|
4
4
|
dataset: TgdDataset;
|
|
5
5
|
drawMode: WebglDrawMode | number;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./box
|
|
2
|
-
export * from "./geometry
|
|
1
|
+
export * from "./box";
|
|
2
|
+
export * from "./geometry";
|
|
3
3
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZ2VvbWV0cnkvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxPQUFPLENBQUE7QUFDckIsY0FBYyxZQUFZLENBQUEifQ==
|
package/lib/dist/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
export * from "./camera
|
|
2
|
-
export * from "./canvas
|
|
3
|
-
export * from "./color
|
|
4
|
-
export * from "./context
|
|
5
|
-
export * from "./controller
|
|
6
|
-
export * from "./dataset
|
|
7
|
-
export * from "./event
|
|
8
|
-
export * from "./filter
|
|
9
|
-
export * from "./geometry
|
|
10
|
-
export * from "./input
|
|
11
|
-
export * from "./light
|
|
12
|
-
export * from "./loader
|
|
13
|
-
export * from "./log
|
|
14
|
-
export * from "./material
|
|
15
|
-
export * from "./math
|
|
16
|
-
export * from "./painter
|
|
17
|
-
export * from "./painter/painter
|
|
18
|
-
export * from "./parser
|
|
19
|
-
export * from "./resource
|
|
20
|
-
export * from "./shader
|
|
21
|
-
export * from "./utils
|
|
22
|
-
export * from "./vao
|
|
23
|
-
export * from "./types
|
|
1
|
+
export * from "./camera";
|
|
2
|
+
export * from "./canvas";
|
|
3
|
+
export * from "./color";
|
|
4
|
+
export * from "./context";
|
|
5
|
+
export * from "./controller";
|
|
6
|
+
export * from "./dataset";
|
|
7
|
+
export * from "./event";
|
|
8
|
+
export * from "./filter";
|
|
9
|
+
export * from "./geometry";
|
|
10
|
+
export * from "./input";
|
|
11
|
+
export * from "./light";
|
|
12
|
+
export * from "./loader";
|
|
13
|
+
export * from "./log";
|
|
14
|
+
export * from "./material";
|
|
15
|
+
export * from "./math";
|
|
16
|
+
export * from "./painter";
|
|
17
|
+
export * from "./painter/painter";
|
|
18
|
+
export * from "./parser";
|
|
19
|
+
export * from "./resource";
|
|
20
|
+
export * from "./shader";
|
|
21
|
+
export * from "./utils";
|
|
22
|
+
export * from "./vao";
|
|
23
|
+
export * from "./types";
|
|
24
24
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxVQUFVLENBQUE7QUFDeEIsY0FBYyxVQUFVLENBQUE7QUFDeEIsY0FBYyxTQUFTLENBQUE7QUFDdkIsY0FBYyxXQUFXLENBQUE7QUFDekIsY0FBYyxjQUFjLENBQUE7QUFDNUIsY0FBYyxXQUFXLENBQUE7QUFDekIsY0FBYyxTQUFTLENBQUE7QUFDdkIsY0FBYyxVQUFVLENBQUE7QUFDeEIsY0FBYyxZQUFZLENBQUE7QUFDMUIsY0FBYyxTQUFTLENBQUE7QUFDdkIsY0FBYyxTQUFTLENBQUE7QUFDdkIsY0FBYyxVQUFVLENBQUE7QUFDeEIsY0FBYyxPQUFPLENBQUE7QUFDckIsY0FBYyxZQUFZLENBQUE7QUFDMUIsY0FBYyxRQUFRLENBQUE7QUFDdEIsY0FBYyxXQUFXLENBQUE7QUFDekIsY0FBYyxtQkFBbUIsQ0FBQTtBQUNqQyxjQUFjLFVBQVUsQ0FBQTtBQUN4QixjQUFjLFlBQVksQ0FBQTtBQUMxQixjQUFjLFVBQVUsQ0FBQTtBQUN4QixjQUFjLFNBQVMsQ0FBQTtBQUN2QixjQUFjLE9BQU8sQ0FBQTtBQUVyQixjQUFjLFNBQVMsQ0FBQSJ9
|
package/lib/dist/input/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from "./inputs
|
|
2
|
-
export * from "./keyboard
|
|
3
|
-
export * from "./pointer
|
|
1
|
+
export * from "./inputs";
|
|
2
|
+
export * from "./keyboard";
|
|
3
|
+
export * from "./pointer";
|
|
4
4
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5wdXQvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxVQUFVLENBQUE7QUFDeEIsY0FBYyxZQUFZLENBQUE7QUFDMUIsY0FBYyxXQUFXLENBQUEifQ==
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TgdInputKeyboard } from "
|
|
2
|
-
import { TgdInputPointer } from "
|
|
1
|
+
import { TgdInputKeyboard } from "@tgd/types/input-keyboard";
|
|
2
|
+
import { TgdInputPointer } from "@tgd/types/input-pointer";
|
|
3
3
|
export declare class TgdInputs {
|
|
4
4
|
private readonly canvas;
|
|
5
5
|
private _keyboard;
|
package/lib/dist/input/inputs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TgdInputKeyboardImpl } from "
|
|
2
|
-
import { TgdInputPointerImpl } from "
|
|
1
|
+
import { TgdInputKeyboardImpl } from "@tgd/input/keyboard";
|
|
2
|
+
import { TgdInputPointerImpl } from "@tgd/input/pointer";
|
|
3
3
|
export class TgdInputs {
|
|
4
4
|
canvas;
|
|
5
5
|
_keyboard = null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TgdInputKeyboard } from "
|
|
1
|
+
import { TgdInputKeyboard } from "@tgd/types/input-keyboard";
|
|
2
2
|
import { TgdEvent } from "../event";
|
|
3
3
|
export declare class TgdInputKeyboardImpl implements TgdInputKeyboard {
|
|
4
4
|
readonly eventKeyPress: TgdEvent<KeyboardEvent>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TgdEvent } from "
|
|
2
|
-
import { TgdInputPointer, TgdInputPointerEventMove, TgdInputPointerEventTap, TgdInputPointerEventZoom } from "
|
|
1
|
+
import { TgdEvent } from "@tgd/event";
|
|
2
|
+
import { TgdInputPointer, TgdInputPointerEventMove, TgdInputPointerEventTap, TgdInputPointerEventZoom } from "@tgd/types";
|
|
3
3
|
export declare class TgdInputPointerImpl implements TgdInputPointer {
|
|
4
4
|
private readonly canvas;
|
|
5
5
|
readonly eventTap: TgdEvent<Readonly<TgdInputPointerEventTap>>;
|
package/lib/dist/light/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./light
|
|
1
|
+
export * from "./light";
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbGlnaHQvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxTQUFTLENBQUEifQ==
|
package/lib/dist/light/light.js
CHANGED
package/lib/dist/loader/glb.d.ts
CHANGED
package/lib/dist/loader/glb.js
CHANGED
package/lib/dist/loader/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./glb
|
|
2
|
-
export * from "./image
|
|
1
|
+
export * from "./glb";
|
|
2
|
+
export * from "./image";
|
|
3
3
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbG9hZGVyL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsT0FBTyxDQUFBO0FBQ3JCLGNBQWMsU0FBUyxDQUFBIn0=
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { TgdProgram, TgdTexture2D, WebglAttributeType, WebglUniformType } from "
|
|
2
|
-
import { TgdVec4 } from "
|
|
1
|
+
import { TgdProgram, TgdTexture2D, WebglAttributeType, WebglUniformType } from "@tgd/types";
|
|
2
|
+
import { TgdVec4 } from "@tgd/math";
|
|
3
3
|
import { TgdMaterial } from "./material";
|
|
4
|
-
import { CodeBloc } from "
|
|
5
|
-
import { TgdLight } from "
|
|
4
|
+
import { CodeBloc } from "@tgd/shader/code";
|
|
5
|
+
import { TgdLight } from "@tgd/light";
|
|
6
6
|
export type TgdMaterialDiffuseOptions = Partial<{
|
|
7
7
|
color: TgdVec4 | TgdTexture2D;
|
|
8
8
|
light: TgdLight;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TgdVec3, TgdVec4 } from "
|
|
2
|
-
import { TgdMaterial } from "./material
|
|
3
|
-
import { TgdLight } from "
|
|
1
|
+
import { TgdVec3, TgdVec4 } from "@tgd/math";
|
|
2
|
+
import { TgdMaterial } from "./material";
|
|
3
|
+
import { TgdLight } from "@tgd/light";
|
|
4
4
|
const DEFAULT_COLOR = new TgdVec4(0.8, 0.8, 0.8, 1);
|
|
5
5
|
export class TgdMaterialDiffuse extends TgdMaterial {
|
|
6
6
|
light = new TgdLight();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TgdProgram, WebglAttributeType } from "
|
|
2
|
-
import { TgdVec4 } from "
|
|
1
|
+
import { TgdProgram, WebglAttributeType } from "@tgd/types";
|
|
2
|
+
import { TgdVec4 } from "@tgd/math";
|
|
3
3
|
import { TgdMaterial } from "./material";
|
|
4
|
-
import { CodeBloc } from "
|
|
4
|
+
import { CodeBloc } from "@tgd/shader/code";
|
|
5
5
|
export type TgdMaterialGhostOptions = Partial<{
|
|
6
6
|
color: TgdVec4;
|
|
7
7
|
exponent: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TgdVec4 } from "
|
|
2
|
-
import { TgdMaterial } from "./material
|
|
1
|
+
import { TgdVec4 } from "@tgd/math";
|
|
2
|
+
import { TgdMaterial } from "./material";
|
|
3
3
|
const DEFAULT_COLOR = new TgdVec4(0.6, 1, 0.9, 1);
|
|
4
4
|
export class TgdMaterialGhost extends TgdMaterial {
|
|
5
5
|
varyings;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from "./diffuse
|
|
2
|
-
export * from "./ghost
|
|
3
|
-
export * from "./material
|
|
4
|
-
export * from "./normals
|
|
1
|
+
export * from "./diffuse";
|
|
2
|
+
export * from "./ghost";
|
|
3
|
+
export * from "./material";
|
|
4
|
+
export * from "./normals";
|
|
5
5
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbWF0ZXJpYWwvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxXQUFXLENBQUE7QUFDekIsY0FBYyxTQUFTLENBQUE7QUFDdkIsY0FBYyxZQUFZLENBQUE7QUFDMUIsY0FBYyxXQUFXLENBQUEifQ==
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TgdProgram, WebglAttributeType } from "
|
|
1
|
+
import { TgdProgram, WebglAttributeType } from "@tgd/types";
|
|
2
2
|
import { TgdMaterial } from "./material";
|
|
3
|
-
import { CodeBloc } from "
|
|
3
|
+
import { CodeBloc } from "@tgd/shader/code";
|
|
4
4
|
export declare class TgdMaterialNormals extends TgdMaterial {
|
|
5
5
|
readonly varyings: {
|
|
6
6
|
[name: string]: WebglAttributeType;
|
package/lib/dist/math/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from "./mat3
|
|
2
|
-
export * from "./mat4
|
|
3
|
-
export * from "./math
|
|
4
|
-
export * from "./quat
|
|
5
|
-
export * from "./transfo
|
|
6
|
-
export * from "./vec2
|
|
7
|
-
export * from "./vec3
|
|
8
|
-
export * from "./vec4
|
|
1
|
+
export * from "./mat3";
|
|
2
|
+
export * from "./mat4";
|
|
3
|
+
export * from "./math";
|
|
4
|
+
export * from "./quat";
|
|
5
|
+
export * from "./transfo";
|
|
6
|
+
export * from "./vec2";
|
|
7
|
+
export * from "./vec3";
|
|
8
|
+
export * from "./vec4";
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbWF0aC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLFFBQVEsQ0FBQTtBQUN0QixjQUFjLFFBQVEsQ0FBQTtBQUN0QixjQUFjLFFBQVEsQ0FBQTtBQUN0QixjQUFjLFFBQVEsQ0FBQTtBQUN0QixjQUFjLFdBQVcsQ0FBQTtBQUN6QixjQUFjLFFBQVEsQ0FBQTtBQUN0QixjQUFjLFFBQVEsQ0FBQTtBQUN0QixjQUFjLFFBQVEsQ0FBQSJ9
|