@galacean/effects-plugin-model 1.2.1 → 2.0.0-alpha.0
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/dist/gesture/index.d.ts +5 -4
- package/dist/gltf/loader-helper.d.ts +1 -3
- package/dist/index.d.ts +4 -0
- package/dist/index.js +8358 -6785
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +2 -2
- package/dist/index.mjs +8357 -6784
- package/dist/index.mjs.map +1 -1
- package/dist/loader.mjs +10070 -4913
- package/dist/loader.mjs.map +1 -1
- package/dist/plugin/const.d.ts +3 -0
- package/dist/plugin/index.d.ts +0 -2
- package/dist/plugin/model-item.d.ts +258 -0
- package/dist/plugin/model-plugin.d.ts +91 -18
- package/dist/plugin/model-tree-item.d.ts +113 -6
- package/dist/plugin/model-tree-plugin.d.ts +9 -8
- package/dist/runtime/anim-sampler.d.ts +20 -0
- package/dist/runtime/animation.d.ts +179 -26
- package/dist/runtime/cache.d.ts +75 -0
- package/dist/runtime/camera.d.ts +130 -5
- package/dist/runtime/common.d.ts +143 -4
- package/dist/runtime/light.d.ts +95 -6
- package/dist/runtime/material.d.ts +306 -1
- package/dist/runtime/math.d.ts +2 -0
- package/dist/runtime/mesh.d.ts +242 -32
- package/dist/runtime/object.d.ts +88 -10
- package/dist/runtime/scene.d.ts +156 -27
- package/dist/runtime/shader-libs/standard-shader-source.d.ts +10 -0
- package/dist/runtime/shader-libs/standard-shader.d.ts +16 -0
- package/dist/runtime/shader.d.ts +33 -1
- package/dist/runtime/skybox.d.ts +233 -9
- package/dist/utility/debug-helper.d.ts +14 -0
- package/dist/utility/hit-test-helper.d.ts +39 -3
- package/dist/utility/plugin-helper.d.ts +665 -14
- package/dist/utility/ri-helper.d.ts +67 -0
- package/dist/utility/shader-helper.d.ts +55 -0
- package/dist/utility/ts-helper.d.ts +6 -0
- package/package.json +4 -4
- package/dist/plugin/model-tree-vfx-item.d.ts +0 -15
- package/dist/plugin/model-vfx-item.d.ts +0 -28
- package/dist/runtime/shadow.d.ts +0 -230
package/dist/gesture/index.d.ts
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import type { Composition, CameraOptionsEx, spec } from '@galacean/effects';
|
|
1
|
+
import type { Composition, CameraOptionsEx, spec, VFXItem, VFXItemContent } from '@galacean/effects';
|
|
2
2
|
import { Transform } from '@galacean/effects';
|
|
3
3
|
import type { CameraGestureHandler, CameraKeyEvent } from './protocol';
|
|
4
4
|
import { CameraGestureType } from './protocol';
|
|
5
|
-
import type { ModelVFXItem } from '../plugin/model-vfx-item';
|
|
6
5
|
export declare class CameraGestureHandlerImp implements CameraGestureHandler {
|
|
7
6
|
private composition;
|
|
8
7
|
private cameraTransform;
|
|
9
8
|
private cameraCoordiante;
|
|
10
9
|
private startParams;
|
|
11
10
|
constructor(composition: Composition);
|
|
12
|
-
getItem():
|
|
11
|
+
getItem(): VFXItem<VFXItemContent> | undefined;
|
|
13
12
|
getCurrentTarget(): string;
|
|
14
13
|
getCurrentType(): CameraGestureType;
|
|
15
14
|
onKeyEvent(event: CameraKeyEvent): CameraOptionsEx;
|
|
@@ -29,9 +28,11 @@ export declare class CameraGestureHandlerImp implements CameraGestureHandler {
|
|
|
29
28
|
rotateTo(cameraID: string, quat: spec.vec4): void;
|
|
30
29
|
onFocusPoint(cameraID: string, point: spec.vec3, distance?: number): void;
|
|
31
30
|
getCameraTransform(): Transform;
|
|
32
|
-
private initKeyEvent;
|
|
33
31
|
private startGesture;
|
|
34
32
|
private moveGesture;
|
|
33
|
+
private setTransform;
|
|
34
|
+
private setPosition;
|
|
35
|
+
private setQuaternion;
|
|
35
36
|
private endGesture;
|
|
36
37
|
private updateCameraTransform;
|
|
37
38
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type { spec
|
|
1
|
+
import type { spec } from '@galacean/effects';
|
|
2
2
|
import type { BaseTransform as Transform } from '../index';
|
|
3
3
|
import { Vector3, Matrix4, Quaternion, Euler } from '../runtime/math';
|
|
4
|
-
type Euler = math.Euler;
|
|
5
4
|
export declare class LoaderHelper {
|
|
6
5
|
static getTransformFromMat4(mat: Matrix4): Transform;
|
|
7
6
|
static getEffectsTransformFromMat4(mat: Matrix4): Transform;
|
|
@@ -17,4 +16,3 @@ export declare class LoaderHelper {
|
|
|
17
16
|
static scaleTo255(val: number): number;
|
|
18
17
|
static scaleTo1(val: number): number;
|
|
19
18
|
}
|
|
20
|
-
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ export type BaseTransform = spec.BaseItemTransform;
|
|
|
4
4
|
export type ModelBaseItem = spec.BaseItem;
|
|
5
5
|
export type ModelItemCamera = spec.ModelCameraItem;
|
|
6
6
|
export type ModelItemLight = spec.ModelLightItem;
|
|
7
|
+
export type ModelCameraContent = spec.ModelCameraContent;
|
|
8
|
+
export type ModelLightContent = spec.ModelLightContent;
|
|
7
9
|
export type ModelTextureTransform = spec.ModelTextureTransform;
|
|
8
10
|
export type ModelItemBoundingBox = spec.ModelItemBoundingBox;
|
|
9
11
|
export type ModelItemBoundingSphere = spec.ModelItemBoundingSphere;
|
|
@@ -18,6 +20,8 @@ export type ModelLightOptions = spec.ModelLightOptions;
|
|
|
18
20
|
export type ModelItemMesh = spec.ModelMeshItem<'studio'>;
|
|
19
21
|
export type ModelItemSkybox = spec.ModelSkyboxItem<'studio'>;
|
|
20
22
|
export type ModelItemTree = spec.ModelTreeItem<'studio'>;
|
|
23
|
+
export type ModelMeshContent = spec.ModelMeshItemContent<'studio'>;
|
|
24
|
+
export type ModelSkyboxContent = spec.SkyboxContent<'studio'>;
|
|
21
25
|
export type ModelMeshOptions = spec.ModelMeshOptions<'studio'>;
|
|
22
26
|
export type ModelSkinOptions = spec.SkinOptions<'studio'>;
|
|
23
27
|
export type ModelPrimitiveOptions = spec.PrimitiveOptions<'studio'>;
|