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/updaters | petrpan-code/tsparticles/tsparticles/updaters/roll/tsconfig.json | {
"extends": ["./tsconfig.base.json", "@tsparticles/tsconfig/tsconfig.json"],
"compilerOptions": {
"outDir": "./dist/cjs"
}
}
| 4,800 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/roll/tsconfig.module.json | {
"extends": ["./tsconfig.base.json", "@tsparticles/tsconfig/tsconfig.module.json"],
"compilerOptions": {
"outDir": "./dist/esm"
}
}
| 4,801 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/roll/tsconfig.types.json | {
"extends": ["./tsconfig.base.json", "@tsparticles/tsconfig/tsconfig.types.json"],
"compilerOptions": {
"outDir": "./dist/types"
}
}
| 4,802 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/roll/tsconfig.umd.json | {
"extends": ["./tsconfig.base.json", "@tsparticles/tsconfig/tsconfig.umd.json"],
"compilerOptions": {
"outDir": "./dist/umd"
}
}
| 4,803 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/roll/typedoc.json | {
"includes": "./markdown",
"entryPoints": [
"./src/"
],
"entryPointStrategy": "expand",
"name": "tsParticles Roll Updater",
"includeVersion": true,
"hideGenerator": true,
"out": "./docs",
"validation": {
"invalidLink": true,
"notDocumented": true
}
}
| 4,804 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/roll/webpack.config.js | const { loadParticlesUpdater } = require("@tsparticles/webpack-plugin");
const version = require("./package.json").version;
module.exports = loadParticlesUpdater({ moduleName: "roll", updaterName: "Roll", version, dir: __dirname });
| 4,805 |
0 | petrpan-code/tsparticles/tsparticles/updaters/roll | petrpan-code/tsparticles/tsparticles/updaters/roll/src/RollMode.ts | export const enum RollMode {
both = "both",
horizontal = "horizontal",
vertical = "vertical",
}
| 4,806 |
0 | petrpan-code/tsparticles/tsparticles/updaters/roll | petrpan-code/tsparticles/tsparticles/updaters/roll/src/RollUpdater.ts | import {
type IDelta,
type IParticleTransformValues,
type IParticleUpdater,
type Particle,
type RecursivePartial,
} from "tsparticles-engine";
import type { IRollParticlesOptions, RollParticle, RollParticlesOptions } from "./Types";
import { initParticle, updateRoll } from "./Utils";
import { Roll }... | 4,807 |
0 | petrpan-code/tsparticles/tsparticles/updaters/roll | petrpan-code/tsparticles/tsparticles/updaters/roll/src/Types.ts | import { type IParticlesOptions, type Particle, type ParticlesOptions } from "tsparticles-engine";
import type { IRoll } from "./Options/Interfaces/IRoll";
import type { Roll } from "./Options/Classes/Roll";
export type RollParticle = Particle & {
options: RollParticlesOptions;
};
export type RollParticlesOptions... | 4,808 |
0 | petrpan-code/tsparticles/tsparticles/updaters/roll | petrpan-code/tsparticles/tsparticles/updaters/roll/src/Utils.ts | import { AlterType, type IDelta, getRandom, getRangeValue, rangeColorToHsl } from "tsparticles-engine";
import { RollMode } from "./RollMode";
import type { RollParticle } from "./Types";
/**
*
* @param particle -
*/
export function initParticle(particle: RollParticle): void {
const rollOpt = particle.options.r... | 4,809 |
0 | petrpan-code/tsparticles/tsparticles/updaters/roll | petrpan-code/tsparticles/tsparticles/updaters/roll/src/index.ts | import type { Engine } from "tsparticles-engine";
import { RollUpdater } from "./RollUpdater";
/**
* @param engine - The engine instance
* @param refresh -
*/
export async function loadRollUpdater(engine: Engine, refresh = true): Promise<void> {
await engine.addParticleUpdater("roll", () => new RollUpdater(), r... | 4,810 |
0 | petrpan-code/tsparticles/tsparticles/updaters/roll/src/Options | petrpan-code/tsparticles/tsparticles/updaters/roll/src/Options/Classes/Roll.ts | import {
type IOptionLoader,
OptionsColor,
type RangeValue,
type RecursivePartial,
setRangeValue,
} from "tsparticles-engine";
import type { IRoll } from "../Interfaces/IRoll";
import { RollLight } from "./RollLight";
import { RollMode } from "../../RollMode";
export class Roll implements IRoll, IO... | 4,811 |
0 | petrpan-code/tsparticles/tsparticles/updaters/roll/src/Options | petrpan-code/tsparticles/tsparticles/updaters/roll/src/Options/Classes/RollLight.ts | import { type IOptionLoader, type RangeValue, type RecursivePartial, setRangeValue } from "tsparticles-engine";
import type { IRollLight } from "../Interfaces/IRollLight";
export class RollLight implements IRollLight, IOptionLoader<IRollLight> {
enable;
value: RangeValue;
constructor() {
this.enab... | 4,812 |
0 | petrpan-code/tsparticles/tsparticles/updaters/roll/src/Options | petrpan-code/tsparticles/tsparticles/updaters/roll/src/Options/Interfaces/IRoll.ts | import type { IOptionsColor, RangeValue, SingleOrMultiple } from "tsparticles-engine";
import type { IRollLight } from "./IRollLight";
import type { RollMode } from "../../RollMode";
export interface IRoll {
backColor?: SingleOrMultiple<string> | IOptionsColor;
darken: IRollLight;
enable: boolean;
enli... | 4,813 |
0 | petrpan-code/tsparticles/tsparticles/updaters/roll/src/Options | petrpan-code/tsparticles/tsparticles/updaters/roll/src/Options/Interfaces/IRollLight.ts | import type { RangeValue } from "tsparticles-engine";
export interface IRollLight {
enable: boolean;
value: RangeValue;
}
| 4,814 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/rotate/.browserslistrc | since 2019
not dead
| 4,815 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/rotate/.eslintignore | dist
node_modules | 4,816 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/rotate/.eslintrc.js | module.exports = {
extends: [
"@tsparticles/eslint-config",
]
};
| 4,817 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/rotate/.npmignore | report.html | 4,818 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/rotate/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-update... | 4,819 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/rotate/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... | 4,820 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/rotate/README.md | [](https://particles.js.org)
# tsParticles Rotate Updater
[](https://www.jsdelivr.com/package/npm/tsparticles-updater-rotate)
[;
const version = require("./package.json").version;
module.exports = loadParticlesUpdater({ moduleName: "rotate", updaterName: "Rotate", version, dir: __dirname });
| 4,831 |
0 | petrpan-code/tsparticles/tsparticles/updaters/rotate | petrpan-code/tsparticles/tsparticles/updaters/rotate/src/RotateUpdater.ts | import {
AnimationStatus,
type Container,
type IDelta,
type IParticleUpdater,
type IParticleValueAnimation,
type IParticlesOptions,
type Particle,
type ParticlesOptions,
type RecursivePartial,
RotateDirection,
getRandom,
getRangeValue,
} from "tsparticles-engine";
import ... | 4,832 |
0 | petrpan-code/tsparticles/tsparticles/updaters/rotate | petrpan-code/tsparticles/tsparticles/updaters/rotate/src/index.ts | import type { Engine } from "tsparticles-engine";
import { RotateUpdater } from "./RotateUpdater";
/**
* @param engine -
* @param refresh -
*/
export async function loadRotateUpdater(engine: Engine, refresh = true): Promise<void> {
await engine.addParticleUpdater("rotate", (container) => new RotateUpdater(conta... | 4,833 |
0 | petrpan-code/tsparticles/tsparticles/updaters/rotate/src/Options | petrpan-code/tsparticles/tsparticles/updaters/rotate/src/Options/Classes/Rotate.ts | import {
type IOptionLoader,
type RecursivePartial,
RotateDirection,
type RotateDirectionAlt,
ValueWithRandom,
} from "tsparticles-engine";
import type { IRotate } from "../Interfaces/IRotate";
import { RotateAnimation } from "./RotateAnimation";
/**
* [[include:Options/Particles/Rotate.md]]
*/
e... | 4,834 |
0 | petrpan-code/tsparticles/tsparticles/updaters/rotate/src/Options | petrpan-code/tsparticles/tsparticles/updaters/rotate/src/Options/Classes/RotateAnimation.ts | import { type IOptionLoader, type RangeValue, type RecursivePartial, setRangeValue } from "tsparticles-engine";
import type { IRotateAnimation } from "../Interfaces/IRotateAnimation";
/**
*/
export class RotateAnimation implements IRotateAnimation, IOptionLoader<IRotateAnimation> {
decay: RangeValue;
enable;
... | 4,835 |
0 | petrpan-code/tsparticles/tsparticles/updaters/rotate/src/Options | petrpan-code/tsparticles/tsparticles/updaters/rotate/src/Options/Interfaces/IRotate.ts | import type { IValueWithRandom, RotateDirection, RotateDirectionAlt } from "tsparticles-engine";
import type { IRotateAnimation } from "./IRotateAnimation";
/**
* [[include:Options/Particles/Rotate.md]]
*/
export interface IRotate extends IValueWithRandom {
animation: IRotateAnimation;
direction: RotateDirec... | 4,836 |
0 | petrpan-code/tsparticles/tsparticles/updaters/rotate/src/Options | petrpan-code/tsparticles/tsparticles/updaters/rotate/src/Options/Interfaces/IRotateAnimation.ts | import type { RangeValue } from "tsparticles-engine";
/**
*/
export interface IRotateAnimation {
decay: RangeValue;
enable: boolean;
speed: RangeValue;
sync: boolean;
}
| 4,837 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/size/.browserslistrc | since 2019
not dead
| 4,838 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/size/.eslintignore | dist
node_modules | 4,839 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/size/.eslintrc.js | module.exports = {
extends: [
"@tsparticles/eslint-config",
]
};
| 4,840 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/size/.npmignore | report.html | 4,841 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/size/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-update... | 4,842 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/size/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... | 4,843 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/size/README.md | [](https://particles.js.org)
# tsParticles Size Updater
[](https://www.jsdelivr.com/package/npm/tsparticles-updater-size)
[;
const version = require("./package.json").version;
module.exports = loadParticlesUpdater({ moduleName: "size", updaterName: "Size", version, dir: __dirname });
| 4,854 |
0 | petrpan-code/tsparticles/tsparticles/updaters/size | petrpan-code/tsparticles/tsparticles/updaters/size/src/SizeUpdater.ts | import { type IDelta, type IParticleUpdater, type Particle, getRandom } from "tsparticles-engine";
import { updateSize } from "./Utils";
export class SizeUpdater implements IParticleUpdater {
init(particle: Particle): void {
const container = particle.container,
sizeOptions = particle.options.s... | 4,855 |
0 | petrpan-code/tsparticles/tsparticles/updaters/size | petrpan-code/tsparticles/tsparticles/updaters/size/src/Utils.ts | import { AnimationStatus, DestroyType, type IDelta, type Particle, clamp } from "tsparticles-engine";
/**
* @param particle -
* @param value -
* @param minValue -
* @param maxValue -
*/
function checkDestroy(particle: Particle, value: number, minValue: number, maxValue: number): void {
switch (particle.option... | 4,856 |
0 | petrpan-code/tsparticles/tsparticles/updaters/size | petrpan-code/tsparticles/tsparticles/updaters/size/src/index.ts | import type { Engine } from "tsparticles-engine";
import { SizeUpdater } from "./SizeUpdater";
/**
* @param engine -
* @param refresh -
*/
export async function loadSizeUpdater(engine: Engine, refresh = true): Promise<void> {
await engine.addParticleUpdater("size", () => new SizeUpdater(), refresh);
}
| 4,857 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/strokeColor/.browserslistrc | since 2019
not dead
| 4,858 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/strokeColor/.eslintignore | dist
node_modules | 4,859 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/strokeColor/.eslintrc.js | module.exports = {
extends: [
"@tsparticles/eslint-config",
]
};
| 4,860 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/strokeColor/.npmignore | report.html | 4,861 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/strokeColor/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-update... | 4,862 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/strokeColor/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... | 4,863 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/strokeColor/README.md | [](https://particles.js.org)
# tsParticles Stroke Color Updater
[](https://www.jsdelivr.com/package/npm/tsparticles-updater-stroke-color)
[;
const version = require("./package.json").version;
module.exports = loadParticlesUpdater({
moduleName: "stroke-color",
updaterName: "Stroke Color",
version,
dir: __dirname
});
| 4,874 |
0 | petrpan-code/tsparticles/tsparticles/updaters/strokeColor | petrpan-code/tsparticles/tsparticles/updaters/strokeColor/src/StrokeColorUpdater.ts | import {
type Container,
type IDelta,
type IParticleUpdater,
type Particle,
getHslAnimationFromHsl,
getRangeValue,
itemFromSingleOrMultiple,
rangeColorToHsl,
} from "tsparticles-engine";
import type { StrokeParticle } from "./Types";
import { updateStrokeColor } from "./Utils";
export c... | 4,875 |
0 | petrpan-code/tsparticles/tsparticles/updaters/strokeColor | petrpan-code/tsparticles/tsparticles/updaters/strokeColor/src/Types.ts | import { type HslAnimation, type Particle } from "tsparticles-engine";
export type StrokeParticle = Particle & {
strokeAnimation?: HslAnimation;
};
| 4,876 |
0 | petrpan-code/tsparticles/tsparticles/updaters/strokeColor | petrpan-code/tsparticles/tsparticles/updaters/strokeColor/src/Utils.ts | import {
AnimationStatus,
type IColorAnimation,
type IDelta,
type IParticleValueAnimation,
randomInRange,
} from "tsparticles-engine";
import type { StrokeParticle } from "./Types";
/**
* @param delta -
* @param colorValue -
* @param valueAnimation -
* @param max -
* @param decrease -
*/
func... | 4,877 |
0 | petrpan-code/tsparticles/tsparticles/updaters/strokeColor | petrpan-code/tsparticles/tsparticles/updaters/strokeColor/src/index.ts | import type { Engine } from "tsparticles-engine";
import { StrokeColorUpdater } from "./StrokeColorUpdater";
/**
* @param engine -
* @param refresh -
*/
export async function loadStrokeColorUpdater(engine: Engine, refresh = true): Promise<void> {
await engine.addParticleUpdater("strokeColor", (container) => new... | 4,878 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/tilt/.browserslistrc | since 2019
not dead
| 4,879 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/tilt/.eslintignore | dist
node_modules | 4,880 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/tilt/.eslintrc.js | module.exports = {
extends: [
"@tsparticles/eslint-config",
]
};
| 4,881 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/tilt/.npmignore | report.html | 4,882 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/tilt/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-update... | 4,883 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/tilt/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... | 4,884 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/tilt/README.md | [](https://particles.js.org)
# tsParticles Tilt Updater
[](https://www.jsdelivr.com/package/npm/tsparticles-updater-tilt)
[;
const version = require("./package.json").version;
module.exports = loadParticlesUpdater({ moduleName: "tilt", updaterName: "Tilt", version, dir: __dirname });
| 4,895 |
0 | petrpan-code/tsparticles/tsparticles/updaters/tilt | petrpan-code/tsparticles/tsparticles/updaters/tilt/src/TiltDirection.ts | /**
*/
export const enum TiltDirection {
clockwise = "clockwise",
counterClockwise = "counter-clockwise",
random = "random",
}
export type TiltDirectionAlt = "counter-clockwise";
| 4,896 |
0 | petrpan-code/tsparticles/tsparticles/updaters/tilt | petrpan-code/tsparticles/tsparticles/updaters/tilt/src/TiltUpdater.ts | import {
AnimationStatus,
type Container,
type IDelta,
type IParticleTransformValues,
type IParticleUpdater,
type Particle,
type RecursivePartial,
getRandom,
getRangeValue,
} from "tsparticles-engine";
import type { ITiltParticlesOptions, TiltParticle, TiltParticlesOptions } from "./... | 4,897 |
0 | petrpan-code/tsparticles/tsparticles/updaters/tilt | petrpan-code/tsparticles/tsparticles/updaters/tilt/src/Types.ts | import type { IParticleValueAnimation, IParticlesOptions, Particle, ParticlesOptions } from "tsparticles-engine";
import type { ITilt } from "./Options/Interfaces/ITilt";
import type { Tilt } from "./Options/Classes/Tilt";
export interface IParticleTiltValueAnimation extends IParticleValueAnimation<number> {
cosDi... | 4,898 |
0 | petrpan-code/tsparticles/tsparticles/updaters/tilt | petrpan-code/tsparticles/tsparticles/updaters/tilt/src/Utils.ts | import { AnimationStatus, type IDelta } from "tsparticles-engine";
import type { TiltParticle } from "./Types";
/**
* @param particle -
* @param delta -
*/
export function updateTilt(particle: TiltParticle, delta: IDelta): void {
if (!particle.tilt || !particle.options.tilt) {
return;
}
const t... | 4,899 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.