Skip to content

Commit

Permalink
Merge pull request #12 from VisActor/fix/load-shadowRoot
Browse files Browse the repository at this point in the history
fix: shadow root is not loaded
  • Loading branch information
xiaoluoHe authored Jun 18, 2024
2 parents c3892e3 + 7565d9c commit 1f96971
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions packages/vstory/src/animate/typewirter.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ACustomAnimate, createLine, createSymbol, getTextBounds } from '@visactor/vrender-core';
import { ACustomAnimate, createLine, getTextBounds, registerShadowRootGraphic } from '@visactor/vrender-core';
import type { IGraphic } from '@visactor/vrender-core';
import { isArray } from '@visactor/vutils';

registerShadowRootGraphic();
export class TypeWriter extends ACustomAnimate<{ text: string }> {
declare valid: boolean;
declare target: IGraphic;
Expand All @@ -19,15 +19,6 @@ export class TypeWriter extends ACustomAnimate<{ text: string }> {
}

onBind(): void {
// const symbol = createSymbol({
// x: this.target.attribute.x,
// y: this.target.attribute.y,
// symbolType: 'circle',
// size: 6,
// fill: 'red'
// });
// this.target.parent.add(symbol);
// console.log(this.target);
this.fromText = this.from?.text ?? '';
this.toText = this.to?.text ?? '';
if (!this.toText || isArray(this.toText)) {
Expand Down

0 comments on commit 1f96971

Please sign in to comment.