Skip to content

Commit

Permalink
Merge pull request #189 from VisActor/fix/type-error-of-runtime
Browse files Browse the repository at this point in the history
fix: fix the type error of runtime
  • Loading branch information
Rui-Sun authored Dec 24, 2024
2 parents 51c9874 + e661cbd commit 1d6ff64
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/vstory-core/src/character/character-base.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { ICharacterRuntimeConfig } from './../interface/character';
import type { IGraphic } from '@visactor/vrender-core';
import { Generator, IGroup } from '@visactor/vrender-core';
import type { ICharacter } from '../interface/character';
Expand Down Expand Up @@ -104,6 +105,9 @@ export abstract class CharacterBase<T> implements ICharacter {
getAttribute() {
return this._attribute;
}
getRuntimeConfig() {
return this as ICharacterRuntimeConfig;
}

protected abstract applyConfigToAttribute(diffConfig: IUpdateConfigParams, config: IUpdateConfigParams): void;

Expand Down

0 comments on commit 1d6ff64

Please sign in to comment.