@galacean/effects-plugin-model 1.0.0 → 1.1.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 +10 -10
- package/dist/gesture/protocol.d.ts +10 -10
- package/dist/gltf/loader-helper.d.ts +4 -2
- package/dist/index.d.ts +0 -1
- package/dist/index.js +291 -6275
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +2 -2
- package/dist/index.mjs +289 -6263
- package/dist/index.mjs.map +1 -1
- package/dist/loader.mjs +110 -5941
- package/dist/loader.mjs.map +1 -1
- package/dist/plugin/model-tree-vfx-item.d.ts +2 -2
- package/dist/plugin/model-vfx-item.d.ts +5 -2
- package/dist/runtime/animation.d.ts +1 -1
- package/dist/runtime/camera.d.ts +6 -3
- package/dist/runtime/common.d.ts +5 -2
- package/dist/runtime/light.d.ts +1 -1
- package/dist/runtime/material.d.ts +1 -1
- package/dist/runtime/math.d.ts +8 -0
- package/dist/runtime/mesh.d.ts +6 -4
- package/dist/runtime/object.d.ts +4 -2
- package/dist/runtime/scene.d.ts +7 -5
- package/dist/runtime/shadow.d.ts +4 -1
- package/dist/utility/hit-test-helper.d.ts +5 -3
- package/dist/utility/plugin-helper.d.ts +6 -6
- package/dist/utility/ri-helper.d.ts +2 -2
- package/package.json +4 -4
- package/dist/math/box3.d.ts +0 -140
- package/dist/math/euler.d.ts +0 -139
- package/dist/math/index.d.ts +0 -11
- package/dist/math/matrix2.d.ts +0 -58
- package/dist/math/matrix3.d.ts +0 -113
- package/dist/math/matrix4.d.ts +0 -264
- package/dist/math/quaternion.d.ts +0 -214
- package/dist/math/sphere.d.ts +0 -81
- package/dist/math/type.d.ts +0 -29
- package/dist/math/utilities/index.d.ts +0 -9
- package/dist/math/vector2.d.ts +0 -394
- package/dist/math/vector3.d.ts +0 -164
- package/dist/math/vector4.d.ts +0 -132
package/dist/loader.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|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
+
import type { Transform, Composition } from '@galacean/effects';
|
|
2
|
+
import { spec, VFXItem, TimelineComponent } from '@galacean/effects';
|
|
3
3
|
import { ModelTreeItem } from './model-tree-item';
|
|
4
4
|
import type { ModelItemTree, ModelTreeOptions } from '../index';
|
|
5
5
|
export declare class ModelTreeVFXItem extends VFXItem<ModelTreeItem> {
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import type { HitTestBoxParams, HitTestCustomParams, HitTestSphereParams, Composition } from '@galacean/effects';
|
|
1
|
+
import type { HitTestBoxParams, HitTestCustomParams, HitTestSphereParams, Composition, math } from '@galacean/effects';
|
|
2
2
|
import { VFXItem, spec, TimelineComponent } from '@galacean/effects';
|
|
3
3
|
import type { ModelItemBounding, ModelItemCamera, ModelItemLight, ModelItemMesh, ModelItemSkybox } from '../index';
|
|
4
4
|
import { PCamera, PLight, PSkybox } from '../runtime';
|
|
5
5
|
import { PMesh } from '../runtime';
|
|
6
|
+
import { Vector3 } from '../runtime/math';
|
|
7
|
+
type Euler = math.Euler;
|
|
6
8
|
export type ModelItem = PMesh | PCamera | PLight | PSkybox;
|
|
7
9
|
export type ModelItemOptions = ModelItemMesh | ModelItemCamera | ModelItemLight | ModelItemSkybox;
|
|
8
10
|
export declare class ModelVFXItem extends VFXItem<ModelItem> {
|
|
@@ -17,9 +19,10 @@ export declare class ModelVFXItem extends VFXItem<ModelItem> {
|
|
|
17
19
|
private overwriteSkyboxFromCache;
|
|
18
20
|
computeBoundingBox(): ModelItemBounding | undefined;
|
|
19
21
|
updateTransform(): void;
|
|
20
|
-
|
|
22
|
+
setTransform(position?: Vector3, rotation?: Euler): void;
|
|
21
23
|
onLifetimeBegin(composition: Composition, content: ModelItem): void;
|
|
22
24
|
onItemUpdate(dt: number, lifetime: number): void;
|
|
23
25
|
onItemRemoved(composition: Composition, content?: ModelItem): void;
|
|
24
26
|
getHitTestParams(force?: boolean): HitTestBoxParams | HitTestSphereParams | HitTestCustomParams | undefined;
|
|
25
27
|
}
|
|
28
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Geometry, Engine } from '@galacean/effects';
|
|
2
2
|
import { Texture } from '@galacean/effects';
|
|
3
3
|
import type { ModelSkinOptions, ModelAnimTrackOptions, ModelAnimationOptions, ModelTreeOptions } from '../index';
|
|
4
|
-
import { Matrix4 } from '
|
|
4
|
+
import { Matrix4 } from './math';
|
|
5
5
|
import { PObject } from './object';
|
|
6
6
|
import type { PSceneManager } from './scene';
|
|
7
7
|
import type { ModelTreeVFXItem } from '../plugin';
|
package/dist/runtime/camera.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import type { math } from '@galacean/effects';
|
|
1
2
|
import { spec } from '@galacean/effects';
|
|
2
3
|
import type { ModelVFXItem } from '../plugin/model-vfx-item';
|
|
3
4
|
import type { ModelItemCamera } from '../index';
|
|
4
|
-
import
|
|
5
|
-
import { Vector2, Vector3, Matrix4 } from '../math';
|
|
5
|
+
import { Vector2, Vector3, Matrix4 } from './math';
|
|
6
6
|
import { PEntity } from './object';
|
|
7
|
+
type Box3 = math.Box3;
|
|
8
|
+
type Quaternion = math.Quaternion;
|
|
7
9
|
export declare class PCamera extends PEntity {
|
|
8
10
|
width: number;
|
|
9
11
|
height: number;
|
|
@@ -34,10 +36,11 @@ export declare class PCameraManager {
|
|
|
34
36
|
insertCamera(camera: PCamera): void;
|
|
35
37
|
remove(camera: PCamera | number): void;
|
|
36
38
|
dispose(): void;
|
|
37
|
-
updateDefaultCamera(fovy: number, nearPlane: number, farPlane: number, position:
|
|
39
|
+
updateDefaultCamera(fovy: number, nearPlane: number, farPlane: number, position: Vector3, rotation: Quaternion, clipMode: number): void;
|
|
38
40
|
getCameraList(): PCamera[];
|
|
39
41
|
getDefaultCamera(): PCamera;
|
|
40
42
|
getCameraCount(): number;
|
|
41
43
|
getActiveCamera(): PCamera;
|
|
42
44
|
getAspect(): number;
|
|
43
45
|
}
|
|
46
|
+
export {};
|
package/dist/runtime/common.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import type { math } from '@galacean/effects';
|
|
1
2
|
import { Transform as EffectsTransform, spec } from '@galacean/effects';
|
|
2
|
-
import { Quaternion, Euler, Vector3, Matrix4 } from '
|
|
3
|
+
import { Quaternion, Euler, Vector3, Matrix4 } from './math';
|
|
3
4
|
import type { BaseTransform } from '../index';
|
|
5
|
+
type Euler = math.Euler;
|
|
4
6
|
export declare enum PObjectType {
|
|
5
7
|
none = 0,
|
|
6
8
|
mesh = 1,
|
|
@@ -80,7 +82,7 @@ export declare class PCoordinate {
|
|
|
80
82
|
yAxis: Vector3;
|
|
81
83
|
zAxis: Vector3;
|
|
82
84
|
constructor();
|
|
83
|
-
fromPTransform(trans: PTransform,
|
|
85
|
+
fromPTransform(trans: PTransform, invert?: boolean): this;
|
|
84
86
|
fromRotationMatrix(matrix: Matrix4): void;
|
|
85
87
|
}
|
|
86
88
|
export declare class PGlobalState {
|
|
@@ -111,3 +113,4 @@ export declare class PGlobalState {
|
|
|
111
113
|
get isOasisMode(): boolean;
|
|
112
114
|
get isGLTFMode(): boolean;
|
|
113
115
|
}
|
|
116
|
+
export {};
|
package/dist/runtime/light.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ModelItemLight } from '../index';
|
|
2
|
-
import { Vector2, Vector3 } from '
|
|
2
|
+
import { Vector2, Vector3 } from './math';
|
|
3
3
|
import { PLightType } from './common';
|
|
4
4
|
import { PEntity } from './object';
|
|
5
5
|
import type { ModelVFXItem } from '../plugin/model-vfx-item';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Material, Texture } from '@galacean/effects';
|
|
2
2
|
import { spec } from '@galacean/effects';
|
|
3
3
|
import type { ModelMaterialOptions, ModelMaterialUnlitOptions, ModelMaterialPBROptions } from '../index';
|
|
4
|
-
import { Vector3, Vector4, Matrix3 } from '
|
|
4
|
+
import { Vector3, Vector4, Matrix3 } from './math';
|
|
5
5
|
import { PMaterialType, PBlendMode, PFaceSideMode } from './common';
|
|
6
6
|
import { PObject } from './object';
|
|
7
7
|
export declare abstract class PMaterialBase extends PObject {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { math } from '@galacean/effects';
|
|
2
|
+
export declare const Vector2: typeof math.Vector2, Vector3: typeof math.Vector3, Vector4: typeof math.Vector4, Matrix3: typeof math.Matrix3, Matrix4: typeof math.Matrix4, Euler: typeof math.Euler, EulerOrder: typeof math.EulerOrder, Quaternion: typeof math.Quaternion, Box3: typeof math.Box3, Sphere: typeof math.Sphere, Ray: typeof math.Ray, DEG2RAD: number;
|
|
3
|
+
export type Vector2 = math.Vector2;
|
|
4
|
+
export type Vector3 = math.Vector3;
|
|
5
|
+
export type Vector4 = math.Vector4;
|
|
6
|
+
export type Matrix3 = math.Matrix3;
|
|
7
|
+
export type Matrix4 = math.Matrix4;
|
|
8
|
+
export type Quaternion = math.Quaternion;
|
package/dist/runtime/mesh.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { Geometry, Engine } from '@galacean/effects';
|
|
1
|
+
import type { Geometry, Engine, math } from '@galacean/effects';
|
|
2
2
|
import { spec, Mesh, Material } from '@galacean/effects';
|
|
3
3
|
import type { ModelItemMesh, ModelMaterialOptions, ModelPrimitiveOptions } from '../index';
|
|
4
4
|
import { PShadowType } from './common';
|
|
5
5
|
import { PEntity } from './object';
|
|
6
6
|
import type { PMaterial } from './material';
|
|
7
|
-
import { Matrix4, Vector3, Box3 } from '
|
|
7
|
+
import { Matrix4, Vector3, Box3 } from './math';
|
|
8
8
|
import { PSkin, PMorph } from './animation';
|
|
9
9
|
import type { PSceneStates } from './scene';
|
|
10
10
|
import type { PSkybox } from './skybox';
|
|
@@ -12,6 +12,7 @@ import type { PMaterialShadowBase, PShadowRuntimeOptions } from './shadow';
|
|
|
12
12
|
import type { ModelVFXItem } from '../plugin/model-vfx-item';
|
|
13
13
|
import { BoxMesh } from '../utility/ri-helper';
|
|
14
14
|
import type { ModelTreeVFXItem } from '../plugin';
|
|
15
|
+
type Box3 = math.Box3;
|
|
15
16
|
export declare class PMesh extends PEntity {
|
|
16
17
|
private engine;
|
|
17
18
|
/**
|
|
@@ -57,7 +58,7 @@ export declare class PMesh extends PEntity {
|
|
|
57
58
|
updateParentItem(parentItem: ModelTreeVFXItem): void;
|
|
58
59
|
updateUniformsForScene(sceneStates: PSceneStates): void;
|
|
59
60
|
updateUniformForShadow(shadowOptions: PShadowRuntimeOptions): void;
|
|
60
|
-
hitTesting(rayOrigin: Vector3, rayDirection: Vector3):
|
|
61
|
+
hitTesting(rayOrigin: Vector3, rayDirection: Vector3): Vector3[];
|
|
61
62
|
computeBoundingBox(worldMatrix: Matrix4): Box3;
|
|
62
63
|
private getItemBoundingBox;
|
|
63
64
|
getParentId(): string | undefined;
|
|
@@ -84,7 +85,7 @@ export declare class PPrimitive {
|
|
|
84
85
|
name: string;
|
|
85
86
|
effectsMesh: Mesh;
|
|
86
87
|
effectsPriority: number;
|
|
87
|
-
boundingBox: Box3;
|
|
88
|
+
boundingBox: math.Box3;
|
|
88
89
|
isCompressed: boolean;
|
|
89
90
|
shadowType: PShadowType;
|
|
90
91
|
shadowMesh?: Mesh;
|
|
@@ -143,3 +144,4 @@ export declare class PGeometry {
|
|
|
143
144
|
hasJoints(): boolean;
|
|
144
145
|
hasWeights(): boolean;
|
|
145
146
|
}
|
|
147
|
+
export {};
|
package/dist/runtime/object.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import type { spec, Mesh } from '@galacean/effects';
|
|
1
|
+
import type { spec, Mesh, math } from '@galacean/effects';
|
|
2
2
|
import type { ModelVFXItem } from '../plugin/model-vfx-item';
|
|
3
3
|
import type { BaseTransform } from '../index';
|
|
4
|
-
import type { Quaternion, Euler, Vector3, Matrix4 } from '
|
|
4
|
+
import type { Quaternion, Euler, Vector3, Matrix4 } from './math';
|
|
5
5
|
import { PObjectType, PTransform, PCoordinate } from './common';
|
|
6
6
|
import type { PSceneStates } from './scene';
|
|
7
|
+
type Euler = math.Euler;
|
|
7
8
|
export declare abstract class PObject {
|
|
8
9
|
name: string;
|
|
9
10
|
type: PObjectType;
|
|
@@ -42,3 +43,4 @@ export declare abstract class PEntity extends PObject {
|
|
|
42
43
|
set matrix(val: Matrix4);
|
|
43
44
|
get coordinate(): PCoordinate;
|
|
44
45
|
}
|
|
46
|
+
export {};
|
package/dist/runtime/scene.d.ts
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { RenderFrame, Mesh, Renderer, Texture, Engine, math, CameraOptionsEx } from '@galacean/effects';
|
|
2
2
|
import { spec } from '@galacean/effects';
|
|
3
|
-
import type {
|
|
3
|
+
import type { ModelItem, ModelVFXItem } from '../plugin/model-vfx-item';
|
|
4
4
|
import { PMesh } from './mesh';
|
|
5
5
|
import type { PCamera } from './camera';
|
|
6
6
|
import { PCameraManager } from './camera';
|
|
7
7
|
import { PLight, PLightManager } from './light';
|
|
8
|
-
import
|
|
9
|
-
import { Vector3, Matrix4, Box3 } from '../math';
|
|
8
|
+
import { Vector3, Matrix4, Box3 } from './math';
|
|
10
9
|
import { PSkybox } from './skybox';
|
|
11
10
|
import type { CompositionCache } from './cache';
|
|
12
11
|
import { PShadowManager } from './shadow';
|
|
13
12
|
import type { PEntity } from './object';
|
|
14
13
|
import { TwoStatesSet } from '../utility/ts-helper';
|
|
14
|
+
type Box3 = math.Box3;
|
|
15
|
+
type Vector2 = math.Vector2;
|
|
15
16
|
export interface PSceneOptions {
|
|
16
17
|
componentName: string;
|
|
17
18
|
renderer: Renderer;
|
|
@@ -84,7 +85,7 @@ export declare class PSceneManager {
|
|
|
84
85
|
dispose(): void;
|
|
85
86
|
addItem(item: ModelVFXItem): void;
|
|
86
87
|
removeItem(item: ModelVFXItem): void;
|
|
87
|
-
updateDefaultCamera(camera:
|
|
88
|
+
updateDefaultCamera(camera: CameraOptionsEx): void;
|
|
88
89
|
buildItem(item: ModelItem): void;
|
|
89
90
|
/**
|
|
90
91
|
* 编译运行时需要的 Shader 代码,包括 PBR、天空盒与阴影。
|
|
@@ -129,3 +130,4 @@ export declare class PSceneManager {
|
|
|
129
130
|
get shaderLightCount(): number;
|
|
130
131
|
get enableShadowPass(): boolean;
|
|
131
132
|
}
|
|
133
|
+
export {};
|
package/dist/runtime/shadow.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { RenderFrame, Mesh, Material, RenderPass, SemanticMap, Renderer, Engine } from '@galacean/effects';
|
|
2
|
-
import {
|
|
2
|
+
import { math } from '@galacean/effects';
|
|
3
|
+
import { Matrix4, Vector2, Box3 } from './math';
|
|
3
4
|
import type { PShadowType } from './common';
|
|
4
5
|
import type { PMesh, PPrimitive } from './mesh';
|
|
5
6
|
import { PMaterialBase } from './material';
|
|
@@ -7,6 +8,7 @@ import type { PLight } from './light';
|
|
|
7
8
|
import type { PSceneManager, PSceneStates } from './scene';
|
|
8
9
|
import { FBOOptions } from '../utility/ri-helper';
|
|
9
10
|
import { TwoStatesSet } from '../utility/ts-helper';
|
|
11
|
+
type Box3 = math.Box3;
|
|
10
12
|
export interface PMaterialShadowBaseOptions {
|
|
11
13
|
name: string;
|
|
12
14
|
shadowType: PShadowType;
|
|
@@ -225,3 +227,4 @@ export declare class PShadowManager {
|
|
|
225
227
|
get yFilterMeshName(): string;
|
|
226
228
|
get shadowPassList(): RenderPass[];
|
|
227
229
|
}
|
|
230
|
+
export {};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import type { Composition,
|
|
2
|
-
import {
|
|
1
|
+
import type { Composition, Region, math } from '@galacean/effects';
|
|
2
|
+
import type { Ray, Matrix4 } from '../runtime/math';
|
|
3
|
+
import { Vector3 } from '../runtime/math';
|
|
3
4
|
import type { ModelItemBounding } from '../index';
|
|
4
|
-
|
|
5
|
+
type Ray = math.Ray;
|
|
6
|
+
declare function RayIntersectsBoxWithRotation(ray: Ray, matrixData: Matrix4, bounding: ModelItemBounding): math.Vector3[] | undefined;
|
|
5
7
|
declare function RayBoxTesting(ro: Vector3, rd: Vector3, bmin: Vector3, bmax: Vector3): number | undefined;
|
|
6
8
|
declare function RayTriangleTesting(ro: Vector3, rd: Vector3, a: Vector3, b: Vector3, c: Vector3, backfaceCulling: boolean): number | undefined;
|
|
7
9
|
declare function CompositionHitTest(composition: Composition, x: number, y: number): Region[];
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type { Scene, Composition, Attribute, GeometryProps, TextureSourceOptions, TextureSourceCubeData, TextureConfigOptions, Engine } from '@galacean/effects';
|
|
1
|
+
import type { Scene, Composition, Attribute, GeometryProps, TextureSourceOptions, TextureSourceCubeData, TextureConfigOptions, Engine, math } from '@galacean/effects';
|
|
2
2
|
import { Player, spec, Transform, Mesh, Texture, Geometry, Renderer, RenderPass } from '@galacean/effects';
|
|
3
3
|
import type { GLTFCamera, GLTFImage, GLTFLight, GLTFTexture } from '@vvfx/resource-detection';
|
|
4
4
|
import type { ModelAnimationOptions, ModelMeshOptions, ModelMaterialOptions, ModelLightOptions, ModelCameraOptions, ModelSkyboxOptions, ModelSkinOptions, ModelPrimitiveOptions, ModelTextureTransform, ModelTreeOptions, ModelAnimTrackOptions } from '../index';
|
|
5
|
-
import
|
|
6
|
-
import { Matrix3, Matrix4, Vector3, Vector4 } from '../math';
|
|
5
|
+
import { Matrix3, Matrix4, Vector3, Vector4 } from '../runtime/math';
|
|
7
6
|
import type { FBOOptions } from './ri-helper';
|
|
8
7
|
import type { PMaterialBase } from '../runtime/material';
|
|
9
8
|
import type { PImageBufferData } from '../runtime/skybox';
|
|
10
9
|
import type { CompositionCache } from '../runtime/cache';
|
|
10
|
+
type Box3 = math.Box3;
|
|
11
11
|
type VertexArray = Float32Array | Int32Array | Int16Array | Int8Array | Uint32Array | Uint16Array | Uint8Array;
|
|
12
12
|
export declare class WebGLHelper {
|
|
13
13
|
static cubemapTexConfig: TextureConfigOptions;
|
|
@@ -98,7 +98,7 @@ export declare class VertexAttribBuffer {
|
|
|
98
98
|
offset: number;
|
|
99
99
|
stride: number;
|
|
100
100
|
typeSize: number;
|
|
101
|
-
getBoundingBox(box: Box3): Box3;
|
|
101
|
+
getBoundingBox(box: Box3): math.Box3;
|
|
102
102
|
}
|
|
103
103
|
declare class AttributeArray {
|
|
104
104
|
data: spec.TypedArray;
|
|
@@ -123,7 +123,7 @@ export declare class GeometryBoxProxy {
|
|
|
123
123
|
weight?: AttributeArray;
|
|
124
124
|
bindMatrices: Matrix4[];
|
|
125
125
|
create(geometry: Geometry, bindMatrices: Matrix4[]): void;
|
|
126
|
-
getBoundingBox(box: Box3): Box3;
|
|
126
|
+
getBoundingBox(box: Box3): math.Box3;
|
|
127
127
|
}
|
|
128
128
|
export declare class HitTestingProxy {
|
|
129
129
|
drawStart: number;
|
|
@@ -135,7 +135,7 @@ export declare class HitTestingProxy {
|
|
|
135
135
|
doubleSided: boolean;
|
|
136
136
|
bindMatrices: Matrix4[];
|
|
137
137
|
hasAnimation: boolean;
|
|
138
|
-
skinMatrix: Matrix4;
|
|
138
|
+
skinMatrix: math.Matrix4;
|
|
139
139
|
create(geometry: Geometry, doubleSided: boolean, bindMatrices: Matrix4[]): void;
|
|
140
140
|
getHitPoint(rayOrigin: Vector3, rayDirection: Vector3): number | undefined;
|
|
141
141
|
getPosition(index: number, vec3: Vector3, vec4: Vector4): Vector3 | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { GeometryProps, Engine } from '@galacean/effects';
|
|
2
2
|
import { Mesh } from '@galacean/effects';
|
|
3
|
-
import type { Matrix4
|
|
4
|
-
import { Vector2 } from '../math';
|
|
3
|
+
import type { Matrix4 } from '../runtime/math';
|
|
4
|
+
import { Vector2, Vector3 } from '../runtime/math';
|
|
5
5
|
export declare class FBOOptions {
|
|
6
6
|
resolution: Vector2;
|
|
7
7
|
colorAttachments: object[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/effects-plugin-model",
|
|
3
|
-
"version": "1.0.0",
|
|
3
|
+
"version": "1.1.0-alpha.0",
|
|
4
4
|
"description": "Galacean Effects player model plugin",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
"registry": "https://registry.npmjs.org"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@galacean/effects-helper": "1.0.0"
|
|
36
|
+
"@galacean/effects-helper": "1.1.0-alpha.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@vvfx/resource-detection": "0.4.2-alpha.22",
|
|
40
40
|
"@types/hammerjs": "^2.0.41",
|
|
41
41
|
"fpsmeter": "^0.3.1",
|
|
42
42
|
"hammerjs": "^2.0.6",
|
|
43
|
-
"@galacean/effects
|
|
44
|
-
"@galacean/effects": "1.0.0"
|
|
43
|
+
"@galacean/effects": "1.1.0-alpha.0",
|
|
44
|
+
"@galacean/effects-plugin-editor-gizmo": "1.1.0-alpha.0"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"dev": "vite",
|
package/dist/math/box3.d.ts
DELETED
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import type { Sphere } from './sphere';
|
|
2
|
-
import { Matrix4 } from './matrix4';
|
|
3
|
-
import { Vector3 } from './vector3';
|
|
4
|
-
/**
|
|
5
|
-
* 三维包围盒
|
|
6
|
-
*/
|
|
7
|
-
declare class Box3 {
|
|
8
|
-
min: Vector3;
|
|
9
|
-
max: Vector3;
|
|
10
|
-
constructor(min?: Vector3, max?: Vector3);
|
|
11
|
-
set(min: Vector3, max: Vector3): Box3;
|
|
12
|
-
/**
|
|
13
|
-
* 由数组构建三维包围盒
|
|
14
|
-
* @param array
|
|
15
|
-
* @returns
|
|
16
|
-
*/
|
|
17
|
-
setFromArray(array: number[]): Box3;
|
|
18
|
-
/**
|
|
19
|
-
* 由三维空间点构建三维包围盒
|
|
20
|
-
* @param points
|
|
21
|
-
* @returns
|
|
22
|
-
*/
|
|
23
|
-
setFromPoints(points: Vector3[]): Box3;
|
|
24
|
-
/**
|
|
25
|
-
* 由三维空间点(包围盒中心)和大小确定包围盒
|
|
26
|
-
* @param center
|
|
27
|
-
* @param size
|
|
28
|
-
* @returns
|
|
29
|
-
*/
|
|
30
|
-
setFromCenterAndSize(center: Vector3, size: Vector3): Box3;
|
|
31
|
-
clone(): Box3;
|
|
32
|
-
copyFrom(box: Box3): Box3;
|
|
33
|
-
makeEmpty(): Box3;
|
|
34
|
-
isEmpty(): boolean;
|
|
35
|
-
/**
|
|
36
|
-
* 获取三维包围盒中心
|
|
37
|
-
* @param target
|
|
38
|
-
* @returns
|
|
39
|
-
*/
|
|
40
|
-
getCenter(target: Vector3): Vector3;
|
|
41
|
-
/**
|
|
42
|
-
* 获取三维包围盒大小
|
|
43
|
-
* @param target
|
|
44
|
-
* @returns
|
|
45
|
-
*/
|
|
46
|
-
getSize(target: Vector3): Vector3;
|
|
47
|
-
/**
|
|
48
|
-
* 通过三维空间点扩展三维包围盒
|
|
49
|
-
* @param point
|
|
50
|
-
* @returns
|
|
51
|
-
*/
|
|
52
|
-
expandByPoint(point: Vector3): Box3;
|
|
53
|
-
/**
|
|
54
|
-
* 通过三维向量扩展三维包围盒
|
|
55
|
-
* @param vector
|
|
56
|
-
* @returns
|
|
57
|
-
*/
|
|
58
|
-
expandByVector(vector: Vector3): Box3;
|
|
59
|
-
/**
|
|
60
|
-
* 通过实数扩展三维包围盒
|
|
61
|
-
* @param scalar
|
|
62
|
-
* @returns
|
|
63
|
-
*/
|
|
64
|
-
expandByScalar(scalar: number): Box3;
|
|
65
|
-
/**
|
|
66
|
-
* 通过包围盒扩展三维包围盒
|
|
67
|
-
* @param box
|
|
68
|
-
* @returns
|
|
69
|
-
*/
|
|
70
|
-
expandByBox(box: Box3): Box3;
|
|
71
|
-
/**
|
|
72
|
-
* 判断三维包围盒与三维空间点的关系
|
|
73
|
-
* @param point
|
|
74
|
-
* @returns
|
|
75
|
-
*/
|
|
76
|
-
containsPoint(point: Vector3): boolean;
|
|
77
|
-
/**
|
|
78
|
-
* 判断 this 是否包含 other
|
|
79
|
-
* @param other
|
|
80
|
-
* @returns
|
|
81
|
-
*/
|
|
82
|
-
containsBox(other: Box3): boolean;
|
|
83
|
-
/**
|
|
84
|
-
* 判断三维包围盒 this 与 other 是否相交
|
|
85
|
-
* @param other
|
|
86
|
-
* @returns
|
|
87
|
-
*/
|
|
88
|
-
intersectsBox(other: Box3): boolean;
|
|
89
|
-
/**
|
|
90
|
-
* 判断三维包围盒和球是否相交
|
|
91
|
-
* @param sphere
|
|
92
|
-
* @returns
|
|
93
|
-
*/
|
|
94
|
-
intersectsSphere(sphere: Sphere): boolean;
|
|
95
|
-
/**
|
|
96
|
-
* 限制空间点位于三维包围盒内
|
|
97
|
-
* @param point
|
|
98
|
-
* @param target
|
|
99
|
-
* @returns
|
|
100
|
-
*/
|
|
101
|
-
clampPoint(point: Vector3, target: Vector3): Vector3;
|
|
102
|
-
/**
|
|
103
|
-
* 三维空间点到三维包围盒的距离
|
|
104
|
-
* @param point
|
|
105
|
-
* @returns
|
|
106
|
-
*/
|
|
107
|
-
distanceToPoint(point: Vector3): number;
|
|
108
|
-
/**
|
|
109
|
-
* 通过包围盒获取包围球
|
|
110
|
-
* @param target
|
|
111
|
-
* @returns
|
|
112
|
-
*/
|
|
113
|
-
getBoundingSphere(target: Sphere): Sphere;
|
|
114
|
-
/**
|
|
115
|
-
* 三维包围盒交集
|
|
116
|
-
* @param box
|
|
117
|
-
* @returns
|
|
118
|
-
*/
|
|
119
|
-
intersect(box: Box3): Box3;
|
|
120
|
-
/**
|
|
121
|
-
* 三维包围盒并集
|
|
122
|
-
* @param box
|
|
123
|
-
* @returns
|
|
124
|
-
*/
|
|
125
|
-
union(box: Box3): Box3;
|
|
126
|
-
/**
|
|
127
|
-
* 通过矩阵变化三维包围盒
|
|
128
|
-
* @param matrix
|
|
129
|
-
* @returns
|
|
130
|
-
*/
|
|
131
|
-
transform(matrix: Matrix4): Box3;
|
|
132
|
-
/**
|
|
133
|
-
* 根据向量改变三维包围盒位置
|
|
134
|
-
* @param offset
|
|
135
|
-
* @returns
|
|
136
|
-
*/
|
|
137
|
-
translate(offset: Vector3): Box3;
|
|
138
|
-
equals(other: Box3): boolean;
|
|
139
|
-
}
|
|
140
|
-
export { Box3 };
|
package/dist/math/euler.d.ts
DELETED
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import type { Vector3 } from './vector3';
|
|
2
|
-
import { Matrix4 } from './matrix4';
|
|
3
|
-
import { Quaternion } from './quaternion';
|
|
4
|
-
/**
|
|
5
|
-
* 欧拉角顺序,默认为 XYZ
|
|
6
|
-
*/
|
|
7
|
-
declare enum EulerOrder {
|
|
8
|
-
'XYZ' = 0,
|
|
9
|
-
'XZY' = 1,
|
|
10
|
-
'YXZ' = 2,
|
|
11
|
-
'YZX' = 3,
|
|
12
|
-
'ZXY' = 4,
|
|
13
|
-
'ZYX' = 5
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* 欧拉角
|
|
17
|
-
*/
|
|
18
|
-
declare class Euler {
|
|
19
|
-
private _order;
|
|
20
|
-
private _data;
|
|
21
|
-
constructor(x?: number, y?: number, z?: number, _order?: EulerOrder);
|
|
22
|
-
get x(): number;
|
|
23
|
-
set x(value: number);
|
|
24
|
-
getX(): number;
|
|
25
|
-
setX(value: number): void;
|
|
26
|
-
get y(): number;
|
|
27
|
-
set y(value: number);
|
|
28
|
-
getY(): number;
|
|
29
|
-
setY(value: number): void;
|
|
30
|
-
get z(): number;
|
|
31
|
-
set z(value: number);
|
|
32
|
-
getZ(): number;
|
|
33
|
-
setZ(value: number): void;
|
|
34
|
-
get order(): EulerOrder;
|
|
35
|
-
set order(value: EulerOrder);
|
|
36
|
-
getOrder(): EulerOrder;
|
|
37
|
-
setOrder(value: EulerOrder): void;
|
|
38
|
-
set(x: number, y: number, z: number, order?: EulerOrder): Euler;
|
|
39
|
-
/**
|
|
40
|
-
* 使用欧拉角内部数据克隆出一个新的欧拉角
|
|
41
|
-
* @returns
|
|
42
|
-
*/
|
|
43
|
-
clone(): Euler;
|
|
44
|
-
/**
|
|
45
|
-
* 将欧拉角数据拷贝给 result
|
|
46
|
-
* @param result
|
|
47
|
-
* @returns
|
|
48
|
-
*/
|
|
49
|
-
copyTo(result: Euler): Euler;
|
|
50
|
-
/**
|
|
51
|
-
* 将欧拉角数据从 source 拷贝回来
|
|
52
|
-
* @param source
|
|
53
|
-
* @returns
|
|
54
|
-
*/
|
|
55
|
-
copyFrom(source: Euler): this;
|
|
56
|
-
/**
|
|
57
|
-
* 通过变换矩阵获取欧拉角
|
|
58
|
-
* @param m
|
|
59
|
-
* @param order
|
|
60
|
-
* @returns
|
|
61
|
-
*/
|
|
62
|
-
setFromRotationMatrix(m: Matrix4, order?: EulerOrder): Euler;
|
|
63
|
-
/**
|
|
64
|
-
* 通过四元数设置欧拉角
|
|
65
|
-
* @param quat
|
|
66
|
-
* @param order
|
|
67
|
-
* @returns
|
|
68
|
-
*/
|
|
69
|
-
setFromQuaternion(quat: Quaternion, order?: EulerOrder): Euler;
|
|
70
|
-
/**
|
|
71
|
-
* 通过三维向量值设置欧拉角(无几何意义)
|
|
72
|
-
* @param v
|
|
73
|
-
* @param order
|
|
74
|
-
* @returns
|
|
75
|
-
*/
|
|
76
|
-
setFromVector3(v: Vector3, order?: EulerOrder): Euler;
|
|
77
|
-
/**
|
|
78
|
-
* 修改欧拉角顺序
|
|
79
|
-
* @param newOrder
|
|
80
|
-
* @returns
|
|
81
|
-
*/
|
|
82
|
-
reorder(newOrder: EulerOrder): Euler;
|
|
83
|
-
equals(euler: Euler): boolean;
|
|
84
|
-
/**
|
|
85
|
-
* 通过数组设置欧拉角
|
|
86
|
-
* @param array
|
|
87
|
-
* @returns
|
|
88
|
-
*/
|
|
89
|
-
fromArray(array: number[]): Euler;
|
|
90
|
-
/**
|
|
91
|
-
* 将欧拉角保存为数组
|
|
92
|
-
* @param array
|
|
93
|
-
* @returns
|
|
94
|
-
*/
|
|
95
|
-
toArray(array?: number[], offset?: number): number[];
|
|
96
|
-
/**
|
|
97
|
-
* 通过向量保存欧拉角
|
|
98
|
-
* @param array
|
|
99
|
-
* @returns
|
|
100
|
-
*/
|
|
101
|
-
toVector3(result: Vector3): Vector3;
|
|
102
|
-
/**
|
|
103
|
-
* 从输入欧拉角克隆一个欧拉角
|
|
104
|
-
* @param eular
|
|
105
|
-
* @returns
|
|
106
|
-
*/
|
|
107
|
-
static clone(eular: Euler): Euler;
|
|
108
|
-
/**
|
|
109
|
-
* 欧拉角复制
|
|
110
|
-
* @param eular
|
|
111
|
-
* @param result
|
|
112
|
-
* @returns
|
|
113
|
-
*/
|
|
114
|
-
static copyTo(eular: Euler, result: Euler): Euler;
|
|
115
|
-
/**
|
|
116
|
-
* 从矩阵中的旋转分量设置欧拉角
|
|
117
|
-
* @param m
|
|
118
|
-
* @param order
|
|
119
|
-
* @param result
|
|
120
|
-
* @returns
|
|
121
|
-
*/
|
|
122
|
-
static setFromRotationMatrix(m: Matrix4, order: EulerOrder, result: Euler): Euler;
|
|
123
|
-
/**
|
|
124
|
-
* 通过四元数设置欧拉角
|
|
125
|
-
* @param quat
|
|
126
|
-
* @param order
|
|
127
|
-
* @param result
|
|
128
|
-
* @returns
|
|
129
|
-
*/
|
|
130
|
-
static setFromQuaternion(quat: Quaternion, order: EulerOrder, result: Euler): Euler;
|
|
131
|
-
/**
|
|
132
|
-
* 修改欧拉角顺序
|
|
133
|
-
* @param euler
|
|
134
|
-
* @param newOrder
|
|
135
|
-
* @returns
|
|
136
|
-
*/
|
|
137
|
-
static reorder(euler: Euler, newOrder: EulerOrder): Euler;
|
|
138
|
-
}
|
|
139
|
-
export { Euler, EulerOrder };
|