From ec73c7c0fbae416f04d9530e8f7c299c20111a97 Mon Sep 17 00:00:00 2001 From: mayank1513 Date: Mon, 13 Jan 2025 16:28:43 +0000 Subject: [PATCH] upgrade deps && docs --- .../react_particles_particles.Particles.html | 2 +- docs/functions/simulator.renderParticles.html | 2 +- ...ct_particles_particles.ParticlesProps.html | 4 +- .../simulator.ParticlesOptions.html | 22 ++--- docs/types/simulator._internal_.Vector2D.html | 2 +- pnpm-lock.yaml | 82 +++++++++---------- 6 files changed, 56 insertions(+), 58 deletions(-) diff --git a/docs/functions/react_particles_particles.Particles.html b/docs/functions/react_particles_particles.Particles.html index 08a10114..21ca6f5a 100644 --- a/docs/functions/react_particles_particles.Particles.html +++ b/docs/functions/react_particles_particles.Particles.html @@ -7,4 +7,4 @@
export const Particles = ({ options, overlay, fullScreenOverlay, ...props }: ParticlesProps) => {
const canvasRef = useRef<HTMLCanvasElement>(null);

const fsStyles = fullScreenOverlay
? { position: "fixed", top: 0, left: 0, width: "100vw", height: "100vh" }
: {};

const resolvedOverlay = overlay || fullScreenOverlay;

const style = (
resolvedOverlay ? { pointerEvents: "none", ...fsStyles, ...props.style } : props.style
) as CSSProperties;

useEffect(
() =>
canvasRef.current
? renderParticles(canvasRef.current, { ...options, overlay: resolvedOverlay })
: /* v8 ignore next */
undefined,
[options, resolvedOverlay],
);
return <canvas ref={canvasRef} style={style} {...props} data-testid="particles" />;
};
-
+
diff --git a/docs/functions/simulator.renderParticles.html b/docs/functions/simulator.renderParticles.html index 4652fc64..67bb9bca 100644 --- a/docs/functions/simulator.renderParticles.html +++ b/docs/functions/simulator.renderParticles.html @@ -1,4 +1,4 @@ renderParticles | Webgl Generative Particles

Creates and renders webgl generative particle system based simulations.

Please handle canvas size as required by your application.

+
diff --git a/docs/interfaces/react_particles_particles.ParticlesProps.html b/docs/interfaces/react_particles_particles.ParticlesProps.html index ecc67ab2..163835e2 100644 --- a/docs/interfaces/react_particles_particles.ParticlesProps.html +++ b/docs/interfaces/react_particles_particles.ParticlesProps.html @@ -1,4 +1,4 @@ -ParticlesProps | Webgl Generative Particles
interface ParticlesProps {
    fullScreenOverlay?: boolean;
    options?: ParticlesOptions;
    overlay?: boolean;
}

Hierarchy

Properties

fullScreenOverlay? +ParticlesProps | Webgl Generative Particles
interface ParticlesProps {
    fullScreenOverlay?: boolean;
    options?: ParticlesOptions;
    overlay?: boolean;
}

Hierarchy

Properties

fullScreenOverlay?: boolean
overlay?: boolean
+

Properties

fullScreenOverlay?: boolean
overlay?: boolean
diff --git a/docs/interfaces/simulator.ParticlesOptions.html b/docs/interfaces/simulator.ParticlesOptions.html index 22433d9a..875a493a 100644 --- a/docs/interfaces/simulator.ParticlesOptions.html +++ b/docs/interfaces/simulator.ParticlesOptions.html @@ -1,4 +1,4 @@ -ParticlesOptions | Webgl Generative Particles
interface ParticlesOptions {
    ageRange?: [number, number];
    angleRange?: [number, number];
    forceField?: Vector2D;
    generationRate?: number;
    maxParticles?: number;
    mouseOff?: boolean;
    origin?: [number, number];
    overlay?: boolean;
    rgba?: [number, number, number, number];
    speedRange?: [number, number];
}

Properties

ageRange? +ParticlesOptions | Webgl Generative Particles
interface ParticlesOptions {
    ageRange?: [number, number];
    angleRange?: [number, number];
    forceField?: Vector2D;
    generationRate?: number;
    maxParticles?: number;
    mouseOff?: boolean;
    origin?: [number, number];
    overlay?: boolean;
    rgba?: [number, number, number, number];
    speedRange?: [number, number];
}

Properties

ageRange?: [number, number]

Min and max age of particles in seconds

-
angleRange?: [number, number]

Min and max angles in radians

+
angleRange?: [number, number]

Min and max angles in radians

[-Math.PI, Math.PI]
 
-
forceField?: Vector2D

Constant force [fx, fy] or a force field texture (Work In Progress)

-
generationRate?: number

Particle generation rate

+
forceField?: Vector2D

Constant force [fx, fy] or a force field texture (Work In Progress)

+
generationRate?: number

Particle generation rate

0.5
 
-
maxParticles?: number

Maximum number of particles

+
maxParticles?: number

Maximum number of particles

100_000
 
-
mouseOff?: boolean

Disable mouse interaction

+
mouseOff?: boolean

Disable mouse interaction

false
 
-
origin?: [number, number]

Initial origin, will update as per mouse position if mouseOff is not set

+
origin?: [number, number]

Initial origin, will update as per mouse position if mouseOff is not set

[0, 0]
 
-
overlay?: boolean

Overlay mode

+
overlay?: boolean

Overlay mode

false
 
-
rgba?: [number, number, number, number]

Particle Color

+
rgba?: [number, number, number, number]

Particle Color

[1, 0, 0, 1] -> red
 
-
speedRange?: [number, number]

Speed range [minSpeed, maxSpeed]

-
+
speedRange?: [number, number]

Speed range [minSpeed, maxSpeed]

+
diff --git a/docs/types/simulator._internal_.Vector2D.html b/docs/types/simulator._internal_.Vector2D.html index cac106b4..94a68d21 100644 --- a/docs/types/simulator._internal_.Vector2D.html +++ b/docs/types/simulator._internal_.Vector2D.html @@ -1 +1 @@ -Vector2D | Webgl Generative Particles
Vector2D: [number, number]
+Vector2D | Webgl Generative Particles
Vector2D: [number, number]
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f0ca1271..eb212a13 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -61,10 +61,10 @@ importers: version: link:../../packages/shared next: specifier: ^15.1.4 - version: 15.1.4(@babel/core@7.26.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1) + version: 15.1.4(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1) nextjs-darkmode: specifier: ^1.0.9 - version: 1.0.9(@types/react@19.0.6)(next@15.1.4(@babel/core@7.26.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1))(react@19.0.0) + version: 1.0.9(@types/react@19.0.6)(next@15.1.4(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1))(react@19.0.0) nextjs-themes: specifier: ^4.0.5 version: 4.0.5(@types/react@19.0.6)(next@15.1.4(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1))(react@19.0.0) @@ -79,7 +79,7 @@ importers: version: 0.0.5(@types/react@19.0.6)(react@19.0.0) react18-loaders: specifier: ^1.1.4 - version: 1.1.4(@types/react@19.0.6)(next@15.1.4(@babel/core@7.26.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1))(react@19.0.0) + version: 1.1.4(@types/react@19.0.6)(next@15.1.4(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1))(react@19.0.0) webgl-generative-particles: specifier: workspace:* version: link:../../lib @@ -113,7 +113,7 @@ importers: version: link:../../packages/shared nextjs-darkmode: specifier: ^1.0.9 - version: 1.0.9(@types/react@19.0.6)(next@15.1.4(@babel/core@7.26.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1))(react@19.0.0) + version: 1.0.9(@types/react@19.0.6)(next@15.1.4(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1))(react@19.0.0) react: specifier: ^19.0.0 version: 19.0.0 @@ -122,10 +122,10 @@ importers: version: 19.0.0(react@19.0.0) react18-loaders: specifier: ^1.1.4 - version: 1.1.4(@types/react@19.0.6)(next@15.1.4(@babel/core@7.26.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1))(react@19.0.0) + version: 1.1.4(@types/react@19.0.6)(next@15.1.4(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1))(react@19.0.0) react18-themes: specifier: ^3.2.0 - version: 3.2.0(@types/react@19.0.6)(next@15.1.4(@babel/core@7.26.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1))(react@19.0.0) + version: 3.2.0(@types/react@19.0.6)(next@15.1.4(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1))(react@19.0.0) webgl-generative-particles: specifier: workspace:* version: link:../../lib @@ -242,10 +242,10 @@ importers: version: link:../../scripts next: specifier: 10 - 14 - version: 15.1.4(@babel/core@7.26.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1) + version: 15.1.4(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1) nextjs-darkmode: specifier: ^1.0.9 - version: 1.0.9(@types/react@19.0.6)(next@15.1.4(@babel/core@7.26.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1))(react@19.0.0) + version: 1.0.9(@types/react@19.0.6)(next@15.1.4(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1))(react@19.0.0) nextjs-themes: specifier: ^4.0.5 version: 4.0.5(@types/react@19.0.6)(next@15.1.4(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1))(react@19.0.0) @@ -257,7 +257,7 @@ importers: version: 4.1.8(react-dom@19.0.0(react@19.0.0))(react@19.0.0) react18-loaders: specifier: ^1.1.4 - version: 1.1.4(@types/react@19.0.6)(next@15.1.4(@babel/core@7.26.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1))(react@19.0.0) + version: 1.1.4(@types/react@19.0.6)(next@15.1.4(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1))(react@19.0.0) webgl-generative-particles: specifier: workspace:* version: link:../../lib @@ -1462,11 +1462,11 @@ packages: '@rushstack/eslint-patch@1.10.5': resolution: {integrity: sha512-kkKUDVlII2DQiKy7UstOR1ErJP8kUKAQ4oa+SQtM0K+lPdmmjj0YnnxBgtTVYH7mUKtbsxeFC9y0AmK7Yb78/A==} - '@shikijs/engine-oniguruma@1.26.1': - resolution: {integrity: sha512-F5XuxN1HljLuvfXv7d+mlTkV7XukC1cawdtOo+7pKgPD83CAB1Sf8uHqP3PK0u7njFH0ZhoXE1r+0JzEgAQ+kg==} + '@shikijs/engine-oniguruma@1.26.2': + resolution: {integrity: sha512-mlN7Qrs+w60nKrd7at7XkXSwz6728Pe34taDmHrG6LRHjzCqQ+ysg+/AT6/D2LMk0s2lsr71DjpI73430QP4/w==} - '@shikijs/types@1.26.1': - resolution: {integrity: sha512-d4B00TKKAMaHuFYgRf3L0gwtvqpW4hVdVwKcZYbBfAAQXspgkbWqnFfuFl3MDH6gLbsubOcr+prcnsqah3ny7Q==} + '@shikijs/types@1.26.2': + resolution: {integrity: sha512-PO2jucx2FIdlLBPYbIUlMtWSLs5ulcRcuV93cR3T65lkK5SJP4MGBRt9kmWGXiQc0f7+FHj/0BEawditZcI/fQ==} '@shikijs/vscode-textmate@10.0.1': resolution: {integrity: sha512-fTIQwLF+Qhuws31iw7Ncl1R3HUDtGwIipiJ9iU+UsDUwMhegFcQKQHd51nZjb7CArq0MvON8rbgCGQYWHUKAdg==} @@ -3759,8 +3759,8 @@ packages: mdast-util-mdx-expression@2.0.1: resolution: {integrity: sha512-J6f+9hUp+ldTZqKRSg7Vw5V6MqjATc+3E4gf3CFNcuZNWD8XdyI6zQ8GqH7f8169MM6P7hMBRDVGnn7oHB9kXQ==} - mdast-util-mdx-jsx@3.1.3: - resolution: {integrity: sha512-bfOjvNt+1AcbPLTFMFWY149nJz0OjmewJs3LQQ5pIyVGxP4CdOqNVJL6kTaM5c68p8q82Xv3nCyFfUnuEcH3UQ==} + mdast-util-mdx-jsx@3.2.0: + resolution: {integrity: sha512-lj/z8v0r6ZtsN/cGNNtemmmfoLAFZnjMbNyLzBafjzikOM+glrjNHPlf6lQDOTccj9n5b0PPihEBbhneMyGs1Q==} mdast-util-mdx@3.0.0: resolution: {integrity: sha512-JfbYLAW7XnYTTbUsmpu0kdBUVe+yKVJZBItEjwyYJiDJuZ9w4eeaqks4HQO+R7objWgS2ymV60GYpI14Ug554w==} @@ -6169,8 +6169,8 @@ snapshots: '@gerrit0/mini-shiki@1.26.1': dependencies: - '@shikijs/engine-oniguruma': 1.26.1 - '@shikijs/types': 1.26.1 + '@shikijs/engine-oniguruma': 1.26.2 + '@shikijs/types': 1.26.2 '@shikijs/vscode-textmate': 10.0.1 '@humanfs/core@0.19.1': {} @@ -6495,7 +6495,7 @@ snapshots: '@types/react': 19.0.6 react: 19.0.0 optionalDependencies: - next: 15.1.4(@babel/core@7.26.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1) + next: 15.1.4(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1) '@microsoft/tsdoc-config@0.16.2': dependencies: @@ -6738,12 +6738,12 @@ snapshots: '@rushstack/eslint-patch@1.10.5': {} - '@shikijs/engine-oniguruma@1.26.1': + '@shikijs/engine-oniguruma@1.26.2': dependencies: - '@shikijs/types': 1.26.1 + '@shikijs/types': 1.26.2 '@shikijs/vscode-textmate': 10.0.1 - '@shikijs/types@1.26.1': + '@shikijs/types@1.26.2': dependencies: '@shikijs/vscode-textmate': 10.0.1 '@types/hast': 3.0.4 @@ -9694,7 +9694,7 @@ snapshots: transitivePeerDependencies: - supports-color - mdast-util-mdx-jsx@3.1.3: + mdast-util-mdx-jsx@3.2.0: dependencies: '@types/estree-jsx': 1.0.5 '@types/hast': 3.0.4 @@ -9715,7 +9715,7 @@ snapshots: dependencies: mdast-util-from-markdown: 2.0.2 mdast-util-mdx-expression: 2.0.1 - mdast-util-mdx-jsx: 3.1.3 + mdast-util-mdx-jsx: 3.2.0 mdast-util-mdxjs-esm: 2.0.1 mdast-util-to-markdown: 2.1.2 transitivePeerDependencies: @@ -10026,7 +10026,7 @@ snapshots: neo-async@2.6.2: {} - next@15.1.4(@babel/core@7.26.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1): + next@15.1.4(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1): dependencies: '@next/env': 15.1.4 '@swc/counter': 0.1.3 @@ -10036,7 +10036,7 @@ snapshots: postcss: 8.4.31 react: 19.0.0 react-dom: 19.0.0(react@19.0.0) - styled-jsx: 5.1.6(@babel/core@7.26.0)(react@19.0.0) + styled-jsx: 5.1.6(react@19.0.0) optionalDependencies: '@next/swc-darwin-arm64': 15.1.4 '@next/swc-darwin-x64': 15.1.4 @@ -10052,10 +10052,10 @@ snapshots: - '@babel/core' - babel-plugin-macros - nextjs-darkmode@1.0.9(@types/react@19.0.6)(next@15.1.4(@babel/core@7.26.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1))(react@19.0.0): + nextjs-darkmode@1.0.9(@types/react@19.0.6)(next@15.1.4(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1))(react@19.0.0): dependencies: '@types/react': 19.0.6 - r18gs: 2.0.2(@types/react@19.0.6)(next@15.1.4(@babel/core@7.26.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1))(react@19.0.0) + r18gs: 2.0.2(@types/react@19.0.6)(next@15.1.4(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1))(react@19.0.0) react: 19.0.0 transitivePeerDependencies: - next @@ -10063,10 +10063,10 @@ snapshots: nextjs-themes@4.0.5(@types/react@19.0.6)(next@15.1.4(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1))(react@19.0.0): dependencies: '@types/react': 19.0.6 - r18gs: 2.0.2(@types/react@19.0.6)(next@15.1.4(@babel/core@7.26.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1))(react@19.0.0) + r18gs: 2.0.2(@types/react@19.0.6)(next@15.1.4(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1))(react@19.0.0) react: 19.0.0 optionalDependencies: - next: 15.1.4(@babel/core@7.26.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1) + next: 15.1.4(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1) no-case@3.0.4: dependencies: @@ -10531,19 +10531,19 @@ snapshots: queue-microtask@1.2.3: {} - r18gs@1.1.3(@types/react@19.0.6)(next@15.1.4(@babel/core@7.26.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1))(react@19.0.0): + r18gs@1.1.3(@types/react@19.0.6)(next@15.1.4(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1))(react@19.0.0): dependencies: '@types/react': 19.0.6 react: 19.0.0 optionalDependencies: - next: 15.1.4(@babel/core@7.26.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1) + next: 15.1.4(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1) - r18gs@2.0.2(@types/react@19.0.6)(next@15.1.4(@babel/core@7.26.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1))(react@19.0.0): + r18gs@2.0.2(@types/react@19.0.6)(next@15.1.4(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1))(react@19.0.0): dependencies: '@types/react': 19.0.6 react: 19.0.0 optionalDependencies: - next: 15.1.4(@babel/core@7.26.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1) + next: 15.1.4(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1) r18gs@3.0.1(@types/react@19.0.6)(react@19.0.0): dependencies: @@ -10577,21 +10577,21 @@ snapshots: react-refresh@0.14.2: {} - react18-loaders@1.1.4(@types/react@19.0.6)(next@15.1.4(@babel/core@7.26.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1))(react@19.0.0): + react18-loaders@1.1.4(@types/react@19.0.6)(next@15.1.4(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1))(react@19.0.0): dependencies: '@types/react': 19.0.6 - r18gs: 2.0.2(@types/react@19.0.6)(next@15.1.4(@babel/core@7.26.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1))(react@19.0.0) + r18gs: 2.0.2(@types/react@19.0.6)(next@15.1.4(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1))(react@19.0.0) react: 19.0.0 optionalDependencies: - next: 15.1.4(@babel/core@7.26.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1) + next: 15.1.4(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1) - react18-themes@3.2.0(@types/react@19.0.6)(next@15.1.4(@babel/core@7.26.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1))(react@19.0.0): + react18-themes@3.2.0(@types/react@19.0.6)(next@15.1.4(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1))(react@19.0.0): dependencies: '@types/react': 19.0.6 - r18gs: 1.1.3(@types/react@19.0.6)(next@15.1.4(@babel/core@7.26.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1))(react@19.0.0) + r18gs: 1.1.3(@types/react@19.0.6)(next@15.1.4(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1))(react@19.0.0) react: 19.0.0 optionalDependencies: - next: 15.1.4(@babel/core@7.26.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1) + next: 15.1.4(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.1) react@19.0.0: {} @@ -11111,12 +11111,10 @@ snapshots: strip-json-comments@3.1.1: {} - styled-jsx@5.1.6(@babel/core@7.26.0)(react@19.0.0): + styled-jsx@5.1.6(react@19.0.0): dependencies: client-only: 0.0.1 react: 19.0.0 - optionalDependencies: - '@babel/core': 7.26.0 sucrase@3.35.0: dependencies: