@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.
@@ -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 { CompositionHitTestOptions } from '../composition';
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;
@@ -15,7 +15,7 @@ export declare abstract class EffectsObject {
15
15
  /**
16
16
  * 存储需要序列化的数据
17
17
  */
18
- defination: Record<string, any>;
18
+ definition: Record<string, any>;
19
19
  /**
20
20
  *
21
21
  * @param engine