index int64 0 0 | repo_id stringlengths 16 181 | file_path stringlengths 28 270 | content stringlengths 1 11.6M | __index_level_0__ int64 0 10k |
|---|---|---|---|---|
0 | petrpan-code/tsparticles/tsparticles/move/parallax | petrpan-code/tsparticles/tsparticles/move/parallax/src/ParallaxMover.ts | import { type IParticleMover, type Particle, isSsr } from "tsparticles-engine";
/**
*/
export class ParallaxMover implements IParticleMover {
/**
*/
init(): void {
// nothing to init
}
/**
* @param particle -
* @returns check if mover is enabled
*/
isEnabled(particle: ... | 3,700 |
0 | petrpan-code/tsparticles/tsparticles/move/parallax | petrpan-code/tsparticles/tsparticles/move/parallax/src/index.ts | import type { Engine } from "tsparticles-engine";
import { ParallaxMover } from "./ParallaxMover";
/**
* @param engine -
* @param refresh -
*/
export async function loadParallaxMover(engine: Engine, refresh = true): Promise<void> {
await engine.addMover("parallax", () => new ParallaxMover(), refresh);
}
| 3,701 |
0 | petrpan-code/tsparticles/tsparticles/paths | petrpan-code/tsparticles/tsparticles/paths/curves/.browserslistrc | since 2019
not dead
| 3,702 |
0 | petrpan-code/tsparticles/tsparticles/paths | petrpan-code/tsparticles/tsparticles/paths/curves/.eslintignore | dist
node_modules | 3,703 |
0 | petrpan-code/tsparticles/tsparticles/paths | petrpan-code/tsparticles/tsparticles/paths/curves/.eslintrc.js | module.exports = {
extends: [
"@tsparticles/eslint-config",
]
};
| 3,704 |
0 | petrpan-code/tsparticles/tsparticles/paths | petrpan-code/tsparticles/tsparticles/paths/curves/.npmignore | report.html | 3,705 |
0 | petrpan-code/tsparticles/tsparticles/paths | petrpan-code/tsparticles/tsparticles/paths/curves/CHANGELOG.md | # Change Log
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.12.0](https://github.com/matteobruni/tsparticles/compare/v2.11.1...v2.12.0) (2023-08-03)
**Note:** Version bump only for package tsparticles-path-c... | 3,706 |
0 | petrpan-code/tsparticles/tsparticles/paths | petrpan-code/tsparticles/tsparticles/paths/curves/LICENSE | MIT License
Copyright (c) 2020 Matteo Bruni
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, dist... | 3,707 |
0 | petrpan-code/tsparticles/tsparticles/paths | petrpan-code/tsparticles/tsparticles/paths/curves/README.md | [](https://particles.js.org)
# tsParticles Curves Path
[](https://www.jsdelivr.com/package/npm/tsparticles-path-curves)
[;
const version = require("./package.json").version;
module.exports = loadParticlesPath({ moduleName: "curves", pluginName: "Curves", version, dir: __dirname });
| 3,718 |
0 | petrpan-code/tsparticles/tsparticles/paths/curves | petrpan-code/tsparticles/tsparticles/paths/curves/src/Curves.ts | import { getRandom } from "tsparticles-engine";
/**
* @param rndFunc -
* @param period -
* @param nbHarmonics -
* @param attenHarmonics -
* @param lowValue -
* @param highValue -
* @returns the generated value
*/
export function CurvesPathGen(
rndFunc: (() => number) | null | undefined,
period: number,... | 3,719 |
0 | petrpan-code/tsparticles/tsparticles/paths/curves | petrpan-code/tsparticles/tsparticles/paths/curves/src/CurvesPathGenerator.ts | import { type Container, type IMovePathGenerator, Vector, getRandom, isFunction, isString } from "tsparticles-engine";
import { CurvesPathGen } from "./Curves";
import type { CurvesPathParticle } from "./CurvesPathParticle";
import type { ICurvesOptions } from "./ICurvesOptions";
declare global {
interface Window ... | 3,720 |
0 | petrpan-code/tsparticles/tsparticles/paths/curves | petrpan-code/tsparticles/tsparticles/paths/curves/src/CurvesPathParticle.ts | import type { IParticle, Vector } from "tsparticles-engine";
export type CurvesPathParticle = IParticle & {
curveVelocity?: Vector;
pathGen?: () => number;
};
| 3,721 |
0 | petrpan-code/tsparticles/tsparticles/paths/curves | petrpan-code/tsparticles/tsparticles/paths/curves/src/ICurvesOptions.ts | export interface ICurvesOptions {
attenHarmonics: number;
highValue: number;
lowValue: number;
nbHarmonics: number;
period: number;
rndFunc?: (() => number) | null;
}
| 3,722 |
0 | petrpan-code/tsparticles/tsparticles/paths/curves | petrpan-code/tsparticles/tsparticles/paths/curves/src/index.ts | import { CurvesPathGenerator } from "./CurvesPathGenerator";
import type { Engine } from "tsparticles-engine";
export const curvesPathName = "curvesPathGenerator";
/**
* @param engine -
* @param refresh -
*/
export async function loadCurvesPath(engine: Engine, refresh = true): Promise<void> {
await engine.addP... | 3,723 |
0 | petrpan-code/tsparticles/tsparticles/paths | petrpan-code/tsparticles/tsparticles/paths/perlinNoise/.browserslistrc | since 2019
not dead
| 3,724 |
0 | petrpan-code/tsparticles/tsparticles/paths | petrpan-code/tsparticles/tsparticles/paths/perlinNoise/.eslintignore | dist
node_modules | 3,725 |
0 | petrpan-code/tsparticles/tsparticles/paths | petrpan-code/tsparticles/tsparticles/paths/perlinNoise/.eslintrc.js | module.exports = {
extends: [
"@tsparticles/eslint-config",
]
};
| 3,726 |
0 | petrpan-code/tsparticles/tsparticles/paths | petrpan-code/tsparticles/tsparticles/paths/perlinNoise/.npmignore | report.html | 3,727 |
0 | petrpan-code/tsparticles/tsparticles/paths | petrpan-code/tsparticles/tsparticles/paths/perlinNoise/CHANGELOG.md | # Change Log
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.12.0](https://github.com/matteobruni/tsparticles/compare/v2.11.1...v2.12.0) (2023-08-03)
**Note:** Version bump only for package tsparticles-path-p... | 3,728 |
0 | petrpan-code/tsparticles/tsparticles/paths | petrpan-code/tsparticles/tsparticles/paths/perlinNoise/LICENSE | MIT License
Copyright (c) 2020 Matteo Bruni
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, dist... | 3,729 |
0 | petrpan-code/tsparticles/tsparticles/paths | petrpan-code/tsparticles/tsparticles/paths/perlinNoise/README.md | [](https://particles.js.org)
# tsParticles Perlin Noise Path
[](https://www.jsdelivr.com/package/npm/tsparticles-path-perlin-noise)
[;
const version = require("./package.json").version;
module.exports = loadParticlesPath({ moduleName: "perlin.noise", pluginName: "Perlin Noise", version, dir: __dirname });
| 3,740 |
0 | petrpan-code/tsparticles/tsparticles/paths/perlinNoise | petrpan-code/tsparticles/tsparticles/paths/perlinNoise/src/Grad.ts | export class Grad {
constructor(
readonly x: number,
readonly y: number,
readonly z: number,
) {}
dot2(x: number, y: number): number {
return this.x * x + this.y * y;
}
dot3(x: number, y: number, z: number): number {
return this.dot2(x, y) + this.z * z;
... | 3,741 |
0 | petrpan-code/tsparticles/tsparticles/paths/perlinNoise | petrpan-code/tsparticles/tsparticles/paths/perlinNoise/src/IPerlinOptions.ts | export interface IPerlinOptions {
columns: number;
draw: boolean;
height: number;
increment: number;
rows: number;
size: number;
width: number;
}
| 3,742 |
0 | petrpan-code/tsparticles/tsparticles/paths/perlinNoise | petrpan-code/tsparticles/tsparticles/paths/perlinNoise/src/PerlinNoise.ts | import { Grad } from "./Grad";
const grad3 = [
new Grad(1, 1, 0),
new Grad(-1, 1, 0),
new Grad(1, -1, 0),
new Grad(-1, -1, 0),
new Grad(1, 0, 1),
new Grad(-1, 0, 1),
new Grad(1, 0, -1),
new Grad(-1, 0, -1),
new Grad(0, 1, 1),
new Grad(0, -... | 3,743 |
0 | petrpan-code/tsparticles/tsparticles/paths/perlinNoise | petrpan-code/tsparticles/tsparticles/paths/perlinNoise/src/PerlinNoiseGenerator.ts | import { type Container, type IMovePathGenerator, type Particle, Vector, getRandom } from "tsparticles-engine";
import type { IPerlinOptions } from "./IPerlinOptions";
import { PerlinNoise } from "./PerlinNoise";
export class PerlinNoiseGenerator implements IMovePathGenerator {
container?: Container;
field: Ve... | 3,744 |
0 | petrpan-code/tsparticles/tsparticles/paths/perlinNoise | petrpan-code/tsparticles/tsparticles/paths/perlinNoise/src/index.ts | import type { Engine } from "tsparticles-engine";
import { PerlinNoiseGenerator } from "./PerlinNoiseGenerator";
export const perlinNoisePathName = "perlinNoise";
/**
* @param engine -
* @param refresh -
*/
export async function loadPerlinNoisePath(engine: Engine, refresh = true): Promise<void> {
await engine.... | 3,745 |
0 | petrpan-code/tsparticles/tsparticles/paths | petrpan-code/tsparticles/tsparticles/paths/polygon/.browserslistrc | since 2019
not dead
| 3,746 |
0 | petrpan-code/tsparticles/tsparticles/paths | petrpan-code/tsparticles/tsparticles/paths/polygon/.eslintignore | dist
node_modules | 3,747 |
0 | petrpan-code/tsparticles/tsparticles/paths | petrpan-code/tsparticles/tsparticles/paths/polygon/.eslintrc.js | module.exports = {
extends: [
"@tsparticles/eslint-config",
]
};
| 3,748 |
0 | petrpan-code/tsparticles/tsparticles/paths | petrpan-code/tsparticles/tsparticles/paths/polygon/.npmignore | report.html | 3,749 |
0 | petrpan-code/tsparticles/tsparticles/paths | petrpan-code/tsparticles/tsparticles/paths/polygon/CHANGELOG.md | # Change Log
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.12.0](https://github.com/matteobruni/tsparticles/compare/v2.11.1...v2.12.0) (2023-08-03)
**Note:** Version bump only for package tsparticles-path-p... | 3,750 |
0 | petrpan-code/tsparticles/tsparticles/paths | petrpan-code/tsparticles/tsparticles/paths/polygon/LICENSE | MIT License
Copyright (c) 2020 Matteo Bruni
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, dist... | 3,751 |
0 | petrpan-code/tsparticles/tsparticles/paths | petrpan-code/tsparticles/tsparticles/paths/polygon/README.md | [](https://particles.js.org)
# tsParticles Polygon Path
[](https://www.jsdelivr.com/package/npm/tsparticles-path-polygon)
[;
const version = require("./package.json").version;
module.exports = loadParticlesPath({ moduleName: "polygon", pluginName: "Polygon", version, dir: __dirname });
| 3,762 |
0 | petrpan-code/tsparticles/tsparticles/paths/polygon | petrpan-code/tsparticles/tsparticles/paths/polygon/src/IPolygonPathOptions.ts | export interface IPolygonPathOptions {
angle: number;
sides: number;
turnSteps: number;
}
| 3,763 |
0 | petrpan-code/tsparticles/tsparticles/paths/polygon | petrpan-code/tsparticles/tsparticles/paths/polygon/src/PolygonPathGenerator.ts | import { type Container, type ICoordinates, type IMovePathGenerator, Vector, getRandom } from "tsparticles-engine";
import type { IPolygonPathOptions } from "./IPolygonPathOptions";
import type { PolygonPathParticle } from "./PolygonPathParticle";
export class PolygonPathGenerator implements IMovePathGenerator {
d... | 3,764 |
0 | petrpan-code/tsparticles/tsparticles/paths/polygon | petrpan-code/tsparticles/tsparticles/paths/polygon/src/PolygonPathParticle.ts | import type { IParticle } from "tsparticles-engine";
export type PolygonPathParticle = IParticle & {
hexDirection?: number;
hexSpeed?: number;
hexStep?: number;
};
| 3,765 |
0 | petrpan-code/tsparticles/tsparticles/paths/polygon | petrpan-code/tsparticles/tsparticles/paths/polygon/src/index.ts | import type { Engine } from "tsparticles-engine";
import { PolygonPathGenerator } from "./PolygonPathGenerator";
export const polygonPathName = "polygonPathGenerator";
/**
* @param engine -
* @param refresh -
*/
export async function loadPolygonPath(engine: Engine, refresh = true): Promise<void> {
await engine... | 3,766 |
0 | petrpan-code/tsparticles/tsparticles/paths | petrpan-code/tsparticles/tsparticles/paths/simplexNoise/.browserslistrc | since 2019
not dead
| 3,767 |
0 | petrpan-code/tsparticles/tsparticles/paths | petrpan-code/tsparticles/tsparticles/paths/simplexNoise/.eslintignore | dist
node_modules | 3,768 |
0 | petrpan-code/tsparticles/tsparticles/paths | petrpan-code/tsparticles/tsparticles/paths/simplexNoise/.eslintrc.js | module.exports = {
extends: [
"@tsparticles/eslint-config",
]
};
| 3,769 |
0 | petrpan-code/tsparticles/tsparticles/paths | petrpan-code/tsparticles/tsparticles/paths/simplexNoise/.npmignore | report.html | 3,770 |
0 | petrpan-code/tsparticles/tsparticles/paths | petrpan-code/tsparticles/tsparticles/paths/simplexNoise/CHANGELOG.md | # Change Log
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.12.0](https://github.com/matteobruni/tsparticles/compare/v2.11.1...v2.12.0) (2023-08-03)
**Note:** Version bump only for package tsparticles-path-s... | 3,771 |
0 | petrpan-code/tsparticles/tsparticles/paths | petrpan-code/tsparticles/tsparticles/paths/simplexNoise/LICENSE | MIT License
Copyright (c) 2020 Matteo Bruni
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, dist... | 3,772 |
0 | petrpan-code/tsparticles/tsparticles/paths | petrpan-code/tsparticles/tsparticles/paths/simplexNoise/README.md | [](https://particles.js.org)
# tsParticles Simplex Noise Path
[](https://www.jsdelivr.com/package/npm/tsparticles-path-simplex-noise)
[;
const version = require("./package.json").version;
module.exports = loadParticlesPath({
moduleName: "simplex.noise",
pluginName: "Simplex Noise",
version,
dir: __dirname
});
| 3,783 |
0 | petrpan-code/tsparticles/tsparticles/paths/simplexNoise | petrpan-code/tsparticles/tsparticles/paths/simplexNoise/src/Contribution4D.ts | export interface Contribution4D {
dw: number;
dx: number;
dy: number;
dz: number;
next?: Contribution4D;
wsb: number;
xsb: number;
ysb: number;
zsb: number;
}
| 3,784 |
0 | petrpan-code/tsparticles/tsparticles/paths/simplexNoise | petrpan-code/tsparticles/tsparticles/paths/simplexNoise/src/ISimplexOptions.ts | export interface ISimplexOptions {
columns: number;
height: number;
increment: number;
layers: number;
rows: number;
size: number;
width: number;
}
| 3,785 |
0 | petrpan-code/tsparticles/tsparticles/paths/simplexNoise | petrpan-code/tsparticles/tsparticles/paths/simplexNoise/src/SimplexNoiseGenerator.ts | import { type Container, type IMovePathGenerator, type Particle, Vector, getRandom } from "tsparticles-engine";
import type { ISimplexOptions } from "./ISimplexOptions";
import type { Noise4D } from "./simplex";
import { makeNoise4D } from "./simplex";
export class SimplexNoiseGenerator implements IMovePathGenerator {... | 3,786 |
0 | petrpan-code/tsparticles/tsparticles/paths/simplexNoise | petrpan-code/tsparticles/tsparticles/paths/simplexNoise/src/index.ts | import type { Engine } from "tsparticles-engine";
import { SimplexNoiseGenerator } from "./SimplexNoiseGenerator";
export const simplexNoisePathName = "simplexNoise";
/**
* @param engine -
* @param refresh -
*/
export async function loadSimplexNoisePath(engine: Engine, refresh = true): Promise<void> {
await en... | 3,787 |
0 | petrpan-code/tsparticles/tsparticles/paths/simplexNoise | petrpan-code/tsparticles/tsparticles/paths/simplexNoise/src/simplex.ts | import type { Contribution4D } from "./Contribution4D";
/**
* @param seed -
* @returns the new seed
*/
export default function shuffleSeed(seed: Uint32Array): Uint32Array {
const newSeed = new Uint32Array(1);
newSeed[0] = seed[0] * 1664525 + 1013904223;
return newSeed;
}
const NORM_4D = 1.0 / 30.0,
... | 3,788 |
0 | petrpan-code/tsparticles/tsparticles/paths | petrpan-code/tsparticles/tsparticles/paths/svg/.browserslistrc | since 2019
not dead
| 3,789 |
0 | petrpan-code/tsparticles/tsparticles/paths | petrpan-code/tsparticles/tsparticles/paths/svg/.eslintignore | dist
node_modules | 3,790 |
0 | petrpan-code/tsparticles/tsparticles/paths | petrpan-code/tsparticles/tsparticles/paths/svg/.eslintrc.js | module.exports = {
extends: [
"@tsparticles/eslint-config",
]
};
| 3,791 |
0 | petrpan-code/tsparticles/tsparticles/paths | petrpan-code/tsparticles/tsparticles/paths/svg/.npmignore | report.html | 3,792 |
0 | petrpan-code/tsparticles/tsparticles/paths | petrpan-code/tsparticles/tsparticles/paths/svg/CHANGELOG.md | # Change Log
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.12.0](https://github.com/matteobruni/tsparticles/compare/v2.11.1...v2.12.0) (2023-08-03)
**Note:** Version bump only for package tsparticles-path-s... | 3,793 |
0 | petrpan-code/tsparticles/tsparticles/paths | petrpan-code/tsparticles/tsparticles/paths/svg/LICENSE | MIT License
Copyright (c) 2020 Matteo Bruni
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, dist... | 3,794 |
0 | petrpan-code/tsparticles/tsparticles/paths | petrpan-code/tsparticles/tsparticles/paths/svg/README.md | [](https://particles.js.org)
# tsParticles SVG Path
[](https://www.jsdelivr.com/package/npm/tsparticles-path-svg)
[](https://... | 3,795 |
0 | petrpan-code/tsparticles/tsparticles/paths | petrpan-code/tsparticles/tsparticles/paths/svg/package.dist.json | {
"name": "tsparticles-path-svg",
"version": "2.12.0",
"description": "tsParticles svg path",
"homepage": "https://particles.js.org",
"repository": {
"type": "git",
"url": "git+https://github.com/matteobruni/tsparticles.git",
"directory": "paths/svg"
},
"keywords": [
"front-end",
"fron... | 3,796 |
0 | petrpan-code/tsparticles/tsparticles/paths | petrpan-code/tsparticles/tsparticles/paths/svg/package.json | {
"name": "tsparticles-path-svg",
"version": "2.12.0",
"description": "tsParticles svg path",
"homepage": "https://particles.js.org",
"scripts": {
"build": "tsparticles-cli build",
"build:ci": "tsparticles-cli build --ci",
"version": "tsparticles-cli build -d && git add package.dist.json",
"pr... | 3,797 |
0 | petrpan-code/tsparticles/tsparticles/paths | petrpan-code/tsparticles/tsparticles/paths/svg/tsconfig.base.json | {
"extends": "@tsparticles/tsconfig/tsconfig.base.json",
"compilerOptions": {
"rootDir": "./src"
},
"include": [
"./src"
]
}
| 3,798 |
0 | petrpan-code/tsparticles/tsparticles/paths | petrpan-code/tsparticles/tsparticles/paths/svg/tsconfig.browser.json | {
"extends": ["./tsconfig.base.json", "@tsparticles/tsconfig/tsconfig.browser.json"],
"compilerOptions": {
"outDir": "./dist/browser"
}
}
| 3,799 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.