@galacean/effects-core 2.9.0-alpha.1 → 2.9.0-alpha.2
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/components/component.d.ts +4 -0
- package/dist/components/composition-component.d.ts +1 -4
- package/dist/components/renderer-component.d.ts +8 -1
- package/dist/components/shape-component.d.ts +2 -0
- package/dist/effects-object.d.ts +1 -1
- package/dist/index.js +327 -224
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +327 -224
- package/dist/index.mjs.map +1 -1
- package/dist/material/types.d.ts +2 -0
- package/dist/math/shape/build-adaptive-bezier.d.ts +1 -1
- package/dist/math/shape/circle.d.ts +1 -1
- package/dist/math/shape/ellipse.d.ts +1 -1
- package/dist/math/shape/graphics-path.d.ts +1 -1
- package/dist/math/shape/poly-star.d.ts +1 -1
- package/dist/math/shape/polygon.d.ts +1 -1
- package/dist/math/shape/rectangle.d.ts +1 -1
- package/dist/math/shape/shape-path.d.ts +1 -1
- package/dist/math/shape/shape-primitive.d.ts +1 -1
- package/dist/math/shape/triangle.d.ts +1 -1
- package/dist/plugins/interact/click-handler.d.ts +5 -0
- package/dist/plugins/text/text-item.d.ts +1 -1
- package/dist/scene.d.ts +0 -1
- package/dist/vfx-item.d.ts +18 -3
- package/package.json +1 -1
|
@@ -59,6 +59,10 @@ export declare abstract class Component extends EffectsObject {
|
|
|
59
59
|
* 当属性被动画修改时调用
|
|
60
60
|
*/
|
|
61
61
|
onApplyAnimationProperties(): void;
|
|
62
|
+
/**
|
|
63
|
+
* 当父级或间接父级发生改变时调用
|
|
64
|
+
*/
|
|
65
|
+
onParentChanged(): void;
|
|
62
66
|
setVFXItem(item: VFXItem): void;
|
|
63
67
|
fromData(data: any): void;
|
|
64
68
|
dispose(): void;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import type { Ray } from '@galacean/effects-math/es/core/ray';
|
|
2
1
|
import * as spec from '@galacean/effects-specification';
|
|
3
|
-
import type {
|
|
4
|
-
import type { Region, TrackAsset } from '../plugins';
|
|
2
|
+
import type { TrackAsset } from '../plugins';
|
|
5
3
|
import { VFXItem } from '../vfx-item';
|
|
6
4
|
import { Component } from './component';
|
|
7
5
|
export interface SceneBinding {
|
|
@@ -47,7 +45,6 @@ export declare class CompositionComponent extends Component {
|
|
|
47
45
|
onEnable(): void;
|
|
48
46
|
onDisable(): void;
|
|
49
47
|
onDestroy(): void;
|
|
50
|
-
hitTest(ray: Ray, x: number, y: number, regions: Region[], force?: boolean, options?: CompositionHitTestOptions): boolean;
|
|
51
48
|
/**
|
|
52
49
|
* 递归收集场景树中的直接子元素(DFS 前序)
|
|
53
50
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Material } from '../material';
|
|
1
|
+
import type { Material, Maskable } from '../material';
|
|
2
2
|
import { MaskProcessor } from '../material';
|
|
3
3
|
import { BoundingBoxInfo } from '../plugins/interact/mesh-collider';
|
|
4
4
|
import { Component } from './component';
|
|
@@ -9,6 +9,12 @@ import type { Renderer } from '../render/renderer';
|
|
|
9
9
|
*/
|
|
10
10
|
export declare class RendererComponent extends Component {
|
|
11
11
|
materials: Material[];
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
* Internal utility.
|
|
15
|
+
* Not part of the public API — do not rely on this in your code.
|
|
16
|
+
*/
|
|
17
|
+
frameClipMasks: Maskable[];
|
|
12
18
|
/**
|
|
13
19
|
* @hidden
|
|
14
20
|
* Internal utility.
|
|
@@ -26,6 +32,7 @@ export declare class RendererComponent extends Component {
|
|
|
26
32
|
set material(material: Material);
|
|
27
33
|
onEnable(): void;
|
|
28
34
|
onDisable(): void;
|
|
35
|
+
onParentChanged(): void;
|
|
29
36
|
/**
|
|
30
37
|
* 获取包围盒信息
|
|
31
38
|
*/
|
|
@@ -123,6 +123,7 @@ export interface PolygonAttribute extends ShapeAttributes {
|
|
|
123
123
|
* @since 2.1.0
|
|
124
124
|
*/
|
|
125
125
|
export declare class ShapeComponent extends RendererComponent implements Maskable {
|
|
126
|
+
private static readonly tempMVP;
|
|
126
127
|
private shapeDirty;
|
|
127
128
|
private materialDirty;
|
|
128
129
|
private graphicsPath;
|
|
@@ -151,6 +152,7 @@ export declare class ShapeComponent extends RendererComponent implements Maskabl
|
|
|
151
152
|
getBoundingBox(): BoundingBoxTriangle;
|
|
152
153
|
getBoundingBoxInfo(): BoundingBoxInfo;
|
|
153
154
|
private buildGeometryFromPath;
|
|
155
|
+
private computeScreenScale;
|
|
154
156
|
private buildPath;
|
|
155
157
|
private updateMaterials;
|
|
156
158
|
private updatePaintMaterial;
|