@galacean/effects-plugin-editor-gizmo 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/gizmo-vfx-item.d.ts +12 -10
- package/dist/index.js +245 -384
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +2 -2
- package/dist/index.mjs +246 -385
- package/dist/index.mjs.map +1 -1
- package/dist/math-utils.d.ts +11 -0
- package/dist/raycast.d.ts +8 -6
- package/dist/shape.d.ts +2 -2
- package/dist/util.d.ts +3 -3
- package/package.json +3 -3
- package/dist/math/vec.d.ts +0 -46
package/dist/gizmo-vfx-item.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import type { GeometryDrawMode, HitTestCustomParams, Mesh, SpriteMesh, Texture
|
|
2
|
-
import { spec, Transform, VFXItem } from '@galacean/effects';
|
|
1
|
+
import type { GeometryDrawMode, HitTestCustomParams, Mesh, SpriteMesh, Texture } from '@galacean/effects';
|
|
2
|
+
import { spec, Transform, VFXItem, math } from '@galacean/effects';
|
|
3
3
|
import { GizmoSubType } from './define';
|
|
4
|
-
type mat4 = spec.mat4;
|
|
5
4
|
type vec3 = spec.vec3;
|
|
5
|
+
type TriangleLike = math.TriangleLike;
|
|
6
|
+
type Vector3 = math.Vector3;
|
|
7
|
+
declare const Vector3: typeof math.Vector3;
|
|
6
8
|
/**
|
|
7
9
|
* 包围盒类型
|
|
8
10
|
*/
|
|
@@ -17,7 +19,7 @@ export declare enum BoundingType {
|
|
|
17
19
|
*/
|
|
18
20
|
export interface GizmoItemBoundingLine {
|
|
19
21
|
type: BoundingType.line;
|
|
20
|
-
points: [
|
|
22
|
+
points: [Vector3, Vector3];
|
|
21
23
|
width: number;
|
|
22
24
|
}
|
|
23
25
|
/**
|
|
@@ -25,15 +27,15 @@ export interface GizmoItemBoundingLine {
|
|
|
25
27
|
*/
|
|
26
28
|
export interface GizmoItemBoundingBox {
|
|
27
29
|
type: BoundingType.box;
|
|
28
|
-
center?:
|
|
29
|
-
size:
|
|
30
|
+
center?: Vector3;
|
|
31
|
+
size: Vector3;
|
|
30
32
|
}
|
|
31
33
|
/**
|
|
32
34
|
* 球体包围盒类型
|
|
33
35
|
*/
|
|
34
36
|
export interface GizmoItemBoundingSphere {
|
|
35
37
|
type: BoundingType.sphere;
|
|
36
|
-
center?:
|
|
38
|
+
center?: Vector3;
|
|
37
39
|
radius: number;
|
|
38
40
|
}
|
|
39
41
|
/**
|
|
@@ -41,7 +43,7 @@ export interface GizmoItemBoundingSphere {
|
|
|
41
43
|
*/
|
|
42
44
|
export interface GizmoItemBoundingTriangle {
|
|
43
45
|
type: BoundingType.triangle;
|
|
44
|
-
triangles:
|
|
46
|
+
triangles: TriangleLike[];
|
|
45
47
|
backfaceCulling?: boolean;
|
|
46
48
|
}
|
|
47
49
|
export type GizmoItemBounding = GizmoItemBoundingBox | GizmoItemBoundingSphere | GizmoItemBoundingTriangle | GizmoItemBoundingLine;
|
|
@@ -61,9 +63,9 @@ export declare class GizmoVFXItem extends VFXItem<Mesh | undefined> {
|
|
|
61
63
|
boundingMap: Map<string, GizmoItemBounding>;
|
|
62
64
|
hitBounding?: {
|
|
63
65
|
key: string;
|
|
64
|
-
position:
|
|
66
|
+
position: Vector3;
|
|
65
67
|
};
|
|
66
|
-
mat:
|
|
68
|
+
mat: math.Matrix4;
|
|
67
69
|
wireframeMesh?: Mesh;
|
|
68
70
|
spriteMesh?: SpriteMesh;
|
|
69
71
|
private engine;
|