Skip to content

Commit

Permalink
fix: fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
xuefei1313 committed Dec 31, 2024
1 parent 2b4a1e2 commit 4a21ab2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class CommonSpecRuntime implements IChartCharacterRuntime {
merge(s, options[key][selector]);
} else {
const s = options[key][selector];
s.id = userId;
(s as any).id = userId;
rawSpec[key].push(s);
}
}
Expand All @@ -100,7 +100,7 @@ export class CommonSpecRuntime implements IChartCharacterRuntime {
return;
}
if (isArray(spec.data)) {
spec.data.forEach(d => {
spec.data.forEach((d: any) => {
if (!d.values) {
d.values = [];
}
Expand All @@ -115,7 +115,7 @@ export class CommonSpecRuntime implements IChartCharacterRuntime {
protected _fillDataValues(spec: any) {
this._fillSpecData(spec);
if (spec.series) {
spec.series.forEach(s => this._fillSpecData(s));
spec.series.forEach((s: any) => this._fillSpecData(s));
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class TypeWriterVisibility extends BaseVisibility {
}
const a = graphic
.animate()
.play(new TypeWriter({ text: from }, { text: to }, duration, easing as EasingType, typewriterParams));
.play(new TypeWriter({ text: from }, { text: to }, duration, easing as EasingType, typewriterParams as any));
if (!appear) {
a.reversed(true);
}
Expand Down

0 comments on commit 4a21ab2

Please sign in to comment.