@galacean/effects-core 2.6.6 → 2.6.8

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.
@@ -1,6 +1,6 @@
1
1
  import { Quaternion } from '@galacean/effects-math/es/core/quaternion';
2
2
  import { Vector3 } from '@galacean/effects-math/es/core/vector3';
3
- import type { Color } from '@galacean/effects-math/es/core/color';
3
+ import { Color } from '@galacean/effects-math/es/core/color';
4
4
  import type { Skeleton } from './skeleton';
5
5
  import type { Transform } from '../../transform';
6
6
  export declare class NodeTransform {
@@ -1,4 +1,4 @@
1
- import type { Color } from '@galacean/effects-math/es/core/color';
1
+ import { Color } from '@galacean/effects-math/es/core/color';
2
2
  import type { VFXItem } from '../../vfx-item';
3
3
  import type { Transform } from '../../transform';
4
4
  import { NodeTransform } from './pose';
@@ -26,6 +26,7 @@ export declare class TextComponent extends BaseRenderComponent {
26
26
  protected readonly ALPHA_FIX_VALUE: number;
27
27
  constructor(engine: Engine, props?: spec.TextComponentData);
28
28
  onUpdate(dt: number): void;
29
+ onDestroy(): void;
29
30
  fromData(data: spec.TextComponentData): void;
30
31
  updateWithOptions(options: spec.TextContentOptions): void;
31
32
  updateTexture(flipY?: boolean): void;
@@ -161,6 +162,7 @@ export declare class TextComponentBase {
161
162
  * @returns
162
163
  */
163
164
  updateTexture(flipY?: boolean): void;
165
+ protected disposeTextTexture(): void;
164
166
  private getFontDesc;
165
167
  private setupOutline;
166
168
  private setupShadow;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/effects-core",
3
- "version": "2.6.6",
3
+ "version": "2.6.8",
4
4
  "description": "Galacean Effects runtime core for the web",
5
5
  "module": "./dist/index.mjs",
6
6
  "main": "./dist/index.js",