Skip to content

Commit 873d6fb

Browse files
committed
fix: fixed build for v3
1 parent 8067c95 commit 873d6fb

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

files/create-shape/src/ShapeDrawer.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
1-
import type { IDelta, IShapeDrawer, Particle } from "@tsparticles/engine";
1+
import type { IShapeDrawData, IShapeDrawer } from "@tsparticles/engine";
22

33
export class ShapeDrawer implements IShapeDrawer {
4-
draw(_context: CanvasRenderingContext2D,
5-
_particle: Particle,
6-
_radius: number,
7-
_opacity: number,
8-
_delta: IDelta,
9-
_pixelRatio: number): void {
4+
draw(_data: IShapeDrawData): void {
105
// draw the particle using the context
116
// which is already centered in the particle position
12-
// colors are already handles, just draw the shape
7+
// colors are already handled, just draw the shape
138
// the bounds are -radius to radius
149
// delta is the frame time difference between the last frame and this one, in ms, use it for animated shapes
1510
// pixelRatio is the canvas ratio used by the tsParticles instance, you may need it for density-independent shapes

0 commit comments

Comments
 (0)