svelte icon indicating copy to clipboard operation
svelte copied to clipboard

Unable to display particles

Open rushkii opened this issue 1 year ago • 0 comments
trafficstars

I'm using Side Confetti presets which is provided in https://particles.js.org/ itself, but it's unable to display the particles, why? the options gave me the type error :/

err:

Type '{ autoPlay: boolean; background: { color: { value: string; }; image: string; position: string; repeat: string; size: string; opacity: number; }; backgroundMask: { composite: string; cover: { color: { value: string; }; opacity: number; }; enable: boolean; }; ... 18 more ...; motion: { ...; }; }' is not assignable to type 'RecursivePartial<IOptions>'.
  The types of 'backgroundMask.composite' are incompatible between these types.
    Type 'string' is not assignable to type 'GlobalCompositeOperation | undefined'.ts(2322)

particles.json

rushkii avatar Aug 26 '24 08:08 rushkii