ng-particles polygon mask bubble.speed and polygon.type not defined #1982
-
Hi, I'm trying to add a polygon mask to an angular website but the bubble.speed and polygon.type properties in the particlesOption are keeping me from building the app and without the type property the particles are just randomly distributed without following any pattern. I used the ISourceOptions from ng-particles to fix some issues but it doesn't seem to work for those two. I tried two of the codepen polygon mask demos (one using a svg and the other using paths) but i'm running on the same issues with both. The ngparticles examples on github works so everything seem to be imported correctly. Is there someting I'm missing or didn't understand ? Thanks for your help. EDIT : I tried to import the PolygonMaskType Enum like this
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @francoismg, I made a CodeSandbox sample here: https://codesandbox.io/s/youthful-bardeen-cncxr?file=/src/app/app.component.ts About this
it's preferred to write like this:
And Let me know if the sample works |
Beta Was this translation helpful? Give feedback.
Hi @francoismg,
I made a CodeSandbox sample here: https://codesandbox.io/s/youthful-bardeen-cncxr?file=/src/app/app.component.ts
About this
it's preferred to write like this:
And
bubble.speed
is non-existing, also particles.js don't use it, if you see that in other configurations you can safely remove since the bubble hover/click interaction is not using it.Let me know if the sample works