@galacean/effects-core 2.6.0-beta.1 → 2.6.1
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/events/types.d.ts +2 -0
- package/dist/index.js +97 -47
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +97 -48
- package/dist/index.mjs.map +1 -1
- package/dist/material/mask-ref-manager.d.ts +1 -1
- package/dist/plugins/interact/interact-item.d.ts +24 -3
- package/dist/plugins/particle/particle-system.d.ts +1 -5
- package/dist/utils/device.d.ts +1 -0
- package/package.json +1 -1
|
@@ -11,6 +11,6 @@ export declare class MaskProcessor {
|
|
|
11
11
|
private stencilClearAction;
|
|
12
12
|
constructor(engine: Engine);
|
|
13
13
|
getRefValue(): number;
|
|
14
|
-
|
|
14
|
+
setMaskOptions(data: spec.MaskOptions): void;
|
|
15
15
|
drawStencilMask(renderer: Renderer): void;
|
|
16
16
|
}
|
|
@@ -16,20 +16,36 @@ export declare class InteractComponent extends RendererComponent {
|
|
|
16
16
|
previewContent: InteractMesh | null;
|
|
17
17
|
interactData: spec.InteractContent;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* 拖拽后的惯性衰减系数,范围[0, 1], 越大惯性越强
|
|
20
|
+
* @default 0.95
|
|
20
21
|
*/
|
|
21
22
|
downgrade: number;
|
|
22
23
|
/**
|
|
23
|
-
*
|
|
24
|
+
* 拖拽后的惯性速度,范围[0, +∞), 越大惯性越强
|
|
25
|
+
* @default 25
|
|
26
|
+
* @since 2.6.0
|
|
27
|
+
*/
|
|
28
|
+
speed: number;
|
|
29
|
+
/**
|
|
30
|
+
* 拖拽时的距离映射系数,越大越容易拖动
|
|
31
|
+
* @default [1, 1]
|
|
24
32
|
*/
|
|
25
33
|
dragRatio: number[];
|
|
26
34
|
/**
|
|
27
|
-
*
|
|
35
|
+
* 拖拽范围(编辑器制作时已经设置好,特殊情况可运行时修改)
|
|
28
36
|
*/
|
|
29
37
|
dragRange: {
|
|
30
38
|
dxRange: [min: number, max: number];
|
|
31
39
|
dyRange: [min: number, max: number];
|
|
32
40
|
};
|
|
41
|
+
/**
|
|
42
|
+
* 滑动失效区域,范围[0, 1],单位 %,避免滑动触控冲突(如 iOS 右滑退出时不执行)
|
|
43
|
+
* > 若是数组形式,格式为:[top、right、bottom、left]
|
|
44
|
+
* @since 2.6.0
|
|
45
|
+
* @default 0
|
|
46
|
+
*/
|
|
47
|
+
invalidBorderRange: number | number[];
|
|
48
|
+
private invalidByBorderRange;
|
|
33
49
|
private duringPlay;
|
|
34
50
|
/** 是否响应点击和拖拽交互事件 */
|
|
35
51
|
private _interactive;
|
|
@@ -53,4 +69,9 @@ export declare class InteractComponent extends RendererComponent {
|
|
|
53
69
|
getBoundingBox(): BoundingBoxTriangle | void;
|
|
54
70
|
fromData(data: spec.InteractContent): void;
|
|
55
71
|
canInteract(): boolean;
|
|
72
|
+
/**
|
|
73
|
+
* 检查滑动手势边界
|
|
74
|
+
* @param position
|
|
75
|
+
*/
|
|
76
|
+
private checkInvalidBorderRange;
|
|
56
77
|
}
|
|
@@ -7,7 +7,7 @@ import type { Engine } from '../../engine';
|
|
|
7
7
|
import type { ValueGetter } from '../../math';
|
|
8
8
|
import type { Mesh, Renderer } from '../../render';
|
|
9
9
|
import type { Maskable } from '../../material';
|
|
10
|
-
import {
|
|
10
|
+
import { MaskProcessor } from '../../material';
|
|
11
11
|
import type { ShapeGenerator, ShapeParticle } from '../../shape';
|
|
12
12
|
import { Texture } from '../../texture';
|
|
13
13
|
import type { BoundingBoxSphere, HitTestCustomParams } from '../interact/click-handler';
|
|
@@ -211,9 +211,5 @@ export declare class ParticleSystem extends Component implements Maskable {
|
|
|
211
211
|
getBoundingBox(): void | BoundingBoxSphere;
|
|
212
212
|
getHitTestParams: (force?: boolean) => void | HitTestCustomParams;
|
|
213
213
|
fromData(data: unknown): void;
|
|
214
|
-
getMaskOptions(data: ParticleSystemProps | ParticleTrailProps): {
|
|
215
|
-
maskMode: MaskMode;
|
|
216
|
-
maskRef: number;
|
|
217
|
-
};
|
|
218
214
|
}
|
|
219
215
|
export {};
|
package/dist/utils/device.d.ts
CHANGED