Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit def9efd

Browse files
committed
fix build
1 parent 7f166b7 commit def9efd

File tree

1 file changed

+27
-18
lines changed

1 file changed

+27
-18
lines changed

‎demo/content.ts

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -862,22 +862,27 @@ addCanvas(1.8, (ctx, width, height, animate) => {
862862

863863
const animation = statefulAnimationGenerator(
864864
canvasPointGenerator,
865-
(points: Point[]) => points as any,
865+
(points: Point[]) => points as any,
866866
() => {},
867867
)(Date.now);
868868

869-
wigglePreset(animation, {
870-
extraPoints: 2,
871-
randomness: 2,
872-
seed: Math.random(),
873-
size,
874-
}, {}, {
875-
speed: 2,
876-
});
869+
wigglePreset(
870+
animation,
871+
{
872+
extraPoints: 2,
873+
randomness: 2,
874+
seed: Math.random(),
875+
size,
876+
},
877+
{},
878+
{
879+
speed: 2,
880+
},
881+
);
877882

878883
const pointHistory: Point[][] = [];
879884
let renderCount = 0;
880-
animate((frameTime) => {
885+
animate(() => {
881886
renderCount++;
882887
const points = animation.renderPoints();
883888

@@ -889,14 +894,18 @@ addCanvas(1.8, (ctx, width, height, animate) => {
889894
}
890895

891896
for (let i = 0; i < pointHistory.length; i++) {
892-
tempStyles(ctx, () => {
893-
ctx.fillStyle = colors.secondary;
894-
ctx.globalAlpha = i / pointHistory.length;
895-
}, () => {
896-
forPoints(pointHistory[i], ({curr}) => {
897-
drawPoint(ctx, curr, i / pointHistory.length);
898-
});
899-
})
897+
tempStyles(
898+
ctx,
899+
() => {
900+
ctx.fillStyle = colors.secondary;
901+
ctx.globalAlpha = i / pointHistory.length;
902+
},
903+
() => {
904+
forPoints(pointHistory[i], ({curr}) => {
905+
drawPoint(ctx, curr, i / pointHistory.length);
906+
});
907+
},
908+
);
900909
}
901910

902911
drawClosed(ctx, points, true);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /