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/plugins/easings | petrpan-code/tsparticles/tsparticles/plugins/easings/sine/.eslintrc.js | module.exports = {
extends: [
"@tsparticles/eslint-config",
]
};
| 4,000 |
0 | petrpan-code/tsparticles/tsparticles/plugins/easings | petrpan-code/tsparticles/tsparticles/plugins/easings/sine/.npmignore | report.html | 4,001 |
0 | petrpan-code/tsparticles/tsparticles/plugins/easings | petrpan-code/tsparticles/tsparticles/plugins/easings/sine/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-plugin... | 4,002 |
0 | petrpan-code/tsparticles/tsparticles/plugins/easings | petrpan-code/tsparticles/tsparticles/plugins/easings/sine/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,003 |
0 | petrpan-code/tsparticles/tsparticles/plugins/easings | petrpan-code/tsparticles/tsparticles/plugins/easings/sine/README.md | [](https://particles.js.org)
# tsParticles Easing Sine Plugin
[](https://www.jsdelivr.com/package/npm/tsparticles-plugin-easing-sine)
[;
const version = require("./package.json").version;
module.exports = loadParticlesPluginEasing({ moduleName: "sine", pluginName: "Sine", version, dir: __dirname });
| 4,014 |
0 | petrpan-code/tsparticles/tsparticles/plugins/easings/sine | petrpan-code/tsparticles/tsparticles/plugins/easings/sine/src/index.ts | import { EasingType, addEasing } from "tsparticles-engine";
/**
*/
export async function loadEasingSinePlugin(): Promise<void> {
addEasing(EasingType.easeInSine, (value) => 1 - Math.cos((value * Math.PI) / 2));
addEasing(EasingType.easeOutSine, (value) => Math.sin((value * Math.PI) / 2));
addEasing(Easing... | 4,015 |
0 | petrpan-code/tsparticles/tsparticles/plugins | petrpan-code/tsparticles/tsparticles/plugins/emitters/.browserslistrc | since 2019
not dead
| 4,016 |
0 | petrpan-code/tsparticles/tsparticles/plugins | petrpan-code/tsparticles/tsparticles/plugins/emitters/.eslintignore | dist
node_modules | 4,017 |
0 | petrpan-code/tsparticles/tsparticles/plugins | petrpan-code/tsparticles/tsparticles/plugins/emitters/.eslintrc.js | module.exports = {
extends: [
"@tsparticles/eslint-config",
]
};
| 4,018 |
0 | petrpan-code/tsparticles/tsparticles/plugins | petrpan-code/tsparticles/tsparticles/plugins/emitters/.npmignore | report.html | 4,019 |
0 | petrpan-code/tsparticles/tsparticles/plugins | petrpan-code/tsparticles/tsparticles/plugins/emitters/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)
### Features
* added range values to life duration and d... | 4,020 |
0 | petrpan-code/tsparticles/tsparticles/plugins | petrpan-code/tsparticles/tsparticles/plugins/emitters/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,021 |
0 | petrpan-code/tsparticles/tsparticles/plugins | petrpan-code/tsparticles/tsparticles/plugins/emitters/README.md | [](https://particles.js.org)
# tsParticles Emitters Plugin
[](https://www.jsdelivr.com/package/npm/tsparticles-plugin-emitters)
[;
const version = require("./package.json").version;
module.exports = loadParticlesPlugin({ moduleName: "emitters", pluginName: "Emitters", version, dir: __dirname });
| 4,032 |
0 | petrpan-code/tsparticles/tsparticles/plugins/emitters | petrpan-code/tsparticles/tsparticles/plugins/emitters/src/EmitterContainer.ts | import type { Container, ICoordinates, RecursivePartial } from "tsparticles-engine";
import type { EmitterInstance } from "./EmitterInstance";
import type { EmitterOptions } from "./types";
import type { IEmitter } from "./Options/Interfaces/IEmitter";
export type EmitterContainer = Container & {
actualOptions: Em... | 4,033 |
0 | petrpan-code/tsparticles/tsparticles/plugins/emitters | petrpan-code/tsparticles/tsparticles/plugins/emitters/src/EmitterInstance.ts | import {
type Container,
type IColorAnimation,
type ICoordinates,
type IDelta,
type IDimension,
type IHsl,
type IParticlesOptions,
PixelMode,
type RecursivePartial,
Vector,
calcPositionOrRandomFromSizeRanged,
deepExtend,
getRangeValue,
getSize,
isPointInside,
... | 4,034 |
0 | petrpan-code/tsparticles/tsparticles/plugins/emitters | petrpan-code/tsparticles/tsparticles/plugins/emitters/src/Emitters.ts | import {
type IContainerPlugin,
type ICoordinates,
type IDelta,
type RecursivePartial,
type SingleOrMultiple,
arrayRandomIndex,
executeOnSingleOrMultiple,
isArray,
isNumber,
itemFromArray,
} from "tsparticles-engine";
import { Emitter } from "./Options/Classes/Emitter";
import { ... | 4,035 |
0 | petrpan-code/tsparticles/tsparticles/plugins/emitters | petrpan-code/tsparticles/tsparticles/plugins/emitters/src/EmittersEngine.ts | import type { Engine } from "tsparticles-engine";
import type { IEmitterShape } from "./IEmitterShape";
import type { ShapeManager } from "./ShapeManager";
export type EmittersEngine = Engine & {
addEmitterShape?: (name: string, shape: IEmitterShape) => void;
emitterShapeManager?: ShapeManager;
};
| 4,036 |
0 | petrpan-code/tsparticles/tsparticles/plugins/emitters | petrpan-code/tsparticles/tsparticles/plugins/emitters/src/IEmitterShape.ts | import type { ICoordinates, IDimension } from "tsparticles-engine";
export interface IEmitterShape {
randomPosition(position: ICoordinates, size: IDimension, fill: boolean): ICoordinates;
}
| 4,037 |
0 | petrpan-code/tsparticles/tsparticles/plugins/emitters | petrpan-code/tsparticles/tsparticles/plugins/emitters/src/ShapeManager.ts | import type { Engine } from "tsparticles-engine";
import type { IEmitterShape } from "./IEmitterShape";
const shapes: Map<string, IEmitterShape> = new Map<string, IEmitterShape>();
export class ShapeManager {
private readonly _engine;
constructor(engine: Engine) {
this._engine = engine;
}
ad... | 4,038 |
0 | petrpan-code/tsparticles/tsparticles/plugins/emitters | petrpan-code/tsparticles/tsparticles/plugins/emitters/src/index.ts | import type { EmitterOptions, IEmitterModeOptions, IEmitterOptions } from "./types";
import {
type IOptions,
type IPlugin,
type RecursivePartial,
executeOnSingleOrMultiple,
isArray,
isInArray,
} from "tsparticles-engine";
import { CircleShape } from "./Shapes/Circle/CircleShape";
import { Emitte... | 4,039 |
0 | petrpan-code/tsparticles/tsparticles/plugins/emitters | petrpan-code/tsparticles/tsparticles/plugins/emitters/src/types.ts | import type { IOptions, Options, SingleOrMultiple } from "tsparticles-engine";
import type { Emitter } from "./Options/Classes/Emitter";
import type { IEmitter } from "./Options/Interfaces/IEmitter";
export interface IEmitterModeOptions {
random: IEmitterModeRandomOptions;
value: SingleOrMultiple<IEmitter>;
}
... | 4,040 |
0 | petrpan-code/tsparticles/tsparticles/plugins/emitters/src | petrpan-code/tsparticles/tsparticles/plugins/emitters/src/Enums/EmitterClickMode.ts | /**
*/
export const enum EmitterClickMode {
emitter = "emitter",
}
| 4,041 |
0 | petrpan-code/tsparticles/tsparticles/plugins/emitters/src | petrpan-code/tsparticles/tsparticles/plugins/emitters/src/Enums/EmitterShapeType.ts | export const enum EmitterShapeType {
circle = "circle",
polygon = "polygon",
square = "square",
star = "star",
}
| 4,042 |
0 | petrpan-code/tsparticles/tsparticles/plugins/emitters/src/Options | petrpan-code/tsparticles/tsparticles/plugins/emitters/src/Options/Classes/Emitter.ts | import {
AnimatableColor,
type IOptionLoader,
type IParticlesOptions,
type IRangedCoordinates,
type MoveDirection,
type MoveDirectionAlt,
type RecursivePartial,
type SingleOrMultiple,
deepExtend,
executeOnSingleOrMultiple,
setRangeValue,
} from "tsparticles-engine";
import { ... | 4,043 |
0 | petrpan-code/tsparticles/tsparticles/plugins/emitters/src/Options | petrpan-code/tsparticles/tsparticles/plugins/emitters/src/Options/Classes/EmitterLife.ts | import { type IOptionLoader, type RangeValue, type RecursivePartial, setRangeValue } from "tsparticles-engine";
import type { IEmitterLife } from "../Interfaces/IEmitterLife";
/**
*/
export class EmitterLife implements IEmitterLife, IOptionLoader<IEmitterLife> {
count?: number;
delay?: RangeValue;
duratio... | 4,044 |
0 | petrpan-code/tsparticles/tsparticles/plugins/emitters/src/Options | petrpan-code/tsparticles/tsparticles/plugins/emitters/src/Options/Classes/EmitterRate.ts | import { type IOptionLoader, type RangeValue, type RecursivePartial, setRangeValue } from "tsparticles-engine";
import type { IEmitterRate } from "../Interfaces/IEmitterRate";
/**
*/
export class EmitterRate implements IEmitterRate, IOptionLoader<IEmitterRate> {
delay: RangeValue;
quantity: RangeValue;
c... | 4,045 |
0 | petrpan-code/tsparticles/tsparticles/plugins/emitters/src/Options | petrpan-code/tsparticles/tsparticles/plugins/emitters/src/Options/Classes/EmitterSize.ts | import { type IOptionLoader, PixelMode, type RecursivePartial } from "tsparticles-engine";
import type { IEmitterSize } from "../Interfaces/IEmitterSize";
/**
*/
export class EmitterSize implements IEmitterSize, IOptionLoader<IEmitterSize> {
height;
mode: PixelMode | keyof typeof PixelMode;
width;
co... | 4,046 |
0 | petrpan-code/tsparticles/tsparticles/plugins/emitters/src/Options | petrpan-code/tsparticles/tsparticles/plugins/emitters/src/Options/Interfaces/IEmitter.ts | import type {
IAnimatableColor,
IParticlesOptions,
IRangedCoordinates,
MoveDirection,
MoveDirectionAlt,
RecursivePartial,
SingleOrMultiple,
} from "tsparticles-engine";
import type { EmitterShapeType } from "../../Enums/EmitterShapeType";
import type { IEmitterLife } from "./IEmitterLife";
i... | 4,047 |
0 | petrpan-code/tsparticles/tsparticles/plugins/emitters/src/Options | petrpan-code/tsparticles/tsparticles/plugins/emitters/src/Options/Interfaces/IEmitterLife.ts | import type { RangeValue } from "tsparticles-engine";
/**
* The particles emitter life options
*/
export interface IEmitterLife {
/**
* The count of lives the particles emitter has.
* If \<= 0 or not specified infinity will be the value.
* If the count is \> 0 it will spawn only that number of tim... | 4,048 |
0 | petrpan-code/tsparticles/tsparticles/plugins/emitters/src/Options | petrpan-code/tsparticles/tsparticles/plugins/emitters/src/Options/Interfaces/IEmitterRate.ts | /**
* The particles emitter rate options
*/
import type { RangeValue } from "tsparticles-engine";
export interface IEmitterRate {
/**
* The emitting velocity, how many seconds will pass between the next particles creation
* Decimal values allowed
*/
delay: RangeValue;
/**
* The emitt... | 4,049 |
0 | petrpan-code/tsparticles/tsparticles/plugins/emitters/src/Options | petrpan-code/tsparticles/tsparticles/plugins/emitters/src/Options/Interfaces/IEmitterSize.ts | import type { IDimension, PixelMode } from "tsparticles-engine";
/**
*/
export interface IEmitterSize extends IDimension {
mode: PixelMode | keyof typeof PixelMode;
}
| 4,050 |
0 | petrpan-code/tsparticles/tsparticles/plugins/emitters/src/Shapes | petrpan-code/tsparticles/tsparticles/plugins/emitters/src/Shapes/Circle/CircleShape.ts | import { type ICoordinates, type IDimension, getRandom } from "tsparticles-engine";
import type { IEmitterShape } from "../../IEmitterShape";
export class CircleShape implements IEmitterShape {
randomPosition(position: ICoordinates, size: IDimension, fill: boolean): ICoordinates {
const generateTheta = (x:... | 4,051 |
0 | petrpan-code/tsparticles/tsparticles/plugins/emitters/src/Shapes | petrpan-code/tsparticles/tsparticles/plugins/emitters/src/Shapes/Square/SquareShape.ts | import { type ICoordinates, type IDimension, getRandom } from "tsparticles-engine";
import type { IEmitterShape } from "../../IEmitterShape";
/**
* @param position -
* @param offset -
* @returns the offset
*/
function randomSquareCoordinate(position: number, offset: number): number {
return position + offset *... | 4,052 |
0 | petrpan-code/tsparticles/tsparticles/plugins/exports | petrpan-code/tsparticles/tsparticles/plugins/exports/image/.browserslistrc | since 2019
not dead
| 4,053 |
0 | petrpan-code/tsparticles/tsparticles/plugins/exports | petrpan-code/tsparticles/tsparticles/plugins/exports/image/.eslintignore | dist
node_modules | 4,054 |
0 | petrpan-code/tsparticles/tsparticles/plugins/exports | petrpan-code/tsparticles/tsparticles/plugins/exports/image/.eslintrc.js | module.exports = {
extends: [
"@tsparticles/eslint-config",
]
};
| 4,055 |
0 | petrpan-code/tsparticles/tsparticles/plugins/exports | petrpan-code/tsparticles/tsparticles/plugins/exports/image/.npmignore | report.html | 4,056 |
0 | petrpan-code/tsparticles/tsparticles/plugins/exports | petrpan-code/tsparticles/tsparticles/plugins/exports/image/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-plugin... | 4,057 |
0 | petrpan-code/tsparticles/tsparticles/plugins/exports | petrpan-code/tsparticles/tsparticles/plugins/exports/image/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,058 |
0 | petrpan-code/tsparticles/tsparticles/plugins/exports | petrpan-code/tsparticles/tsparticles/plugins/exports/image/README.md | [](https://particles.js.org)
# tsParticles Export Image Plugin
[](https://www.jsdelivr.com/package/npm/tsparticles-plugin-export-image)
[;
const version = require("./package.json").version;
module.exports = loadParticlesPluginExport({ moduleName: "image", pluginName: "Image", version, dir: __dirname });
| 4,069 |
0 | petrpan-code/tsparticles/tsparticles/plugins/exports/image | petrpan-code/tsparticles/tsparticles/plugins/exports/image/src/ExportImageInstance.ts | import type { Container, Engine, ExportResult, IContainerPlugin } from "tsparticles-engine";
import type { IExportImageData } from "./IExportImageData";
export class ExportImageInstance implements IContainerPlugin {
private readonly _container: Container;
private readonly _engine: Engine;
constructor(cont... | 4,070 |
0 | petrpan-code/tsparticles/tsparticles/plugins/exports/image | petrpan-code/tsparticles/tsparticles/plugins/exports/image/src/IExportImageData.ts | export interface IExportImageData {
quality?: number;
type?: string;
}
| 4,071 |
0 | petrpan-code/tsparticles/tsparticles/plugins/exports/image | petrpan-code/tsparticles/tsparticles/plugins/exports/image/src/index.ts | import type { Container, Engine, IPlugin } from "tsparticles-engine";
import { ExportImageInstance } from "./ExportImageInstance";
/**
*/
class ExportImagePlugin implements IPlugin {
readonly id;
private readonly _engine;
constructor(engine: Engine) {
this.id = "export-image";
this._eng... | 4,072 |
0 | petrpan-code/tsparticles/tsparticles/plugins/exports | petrpan-code/tsparticles/tsparticles/plugins/exports/json/.browserslistrc | since 2019
not dead
| 4,073 |
0 | petrpan-code/tsparticles/tsparticles/plugins/exports | petrpan-code/tsparticles/tsparticles/plugins/exports/json/.eslintignore | dist
node_modules | 4,074 |
0 | petrpan-code/tsparticles/tsparticles/plugins/exports | petrpan-code/tsparticles/tsparticles/plugins/exports/json/.eslintrc.js | module.exports = {
extends: [
"@tsparticles/eslint-config",
]
};
| 4,075 |
0 | petrpan-code/tsparticles/tsparticles/plugins/exports | petrpan-code/tsparticles/tsparticles/plugins/exports/json/.npmignore | report.html | 4,076 |
0 | petrpan-code/tsparticles/tsparticles/plugins/exports | petrpan-code/tsparticles/tsparticles/plugins/exports/json/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-plugin... | 4,077 |
0 | petrpan-code/tsparticles/tsparticles/plugins/exports | petrpan-code/tsparticles/tsparticles/plugins/exports/json/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,078 |
0 | petrpan-code/tsparticles/tsparticles/plugins/exports | petrpan-code/tsparticles/tsparticles/plugins/exports/json/README.md | [](https://particles.js.org)
# tsParticles Export JSON Plugin
[](https://www.jsdelivr.com/package/npm/tsparticles-plugin-export-json)
[;
const version = require("./package.json").version;
module.exports = loadParticlesPluginExport({ moduleName: "json", pluginName: "JSON", version, dir: __dirname });
| 4,089 |
0 | petrpan-code/tsparticles/tsparticles/plugins/exports/json | petrpan-code/tsparticles/tsparticles/plugins/exports/json/src/ExportJSONInstance.ts | import type { Container, Engine, ExportResult, IContainerPlugin } from "tsparticles-engine";
export class ExportJSONInstance implements IContainerPlugin {
private readonly _container: Container;
private readonly _engine: Engine;
constructor(container: Container, engine: Engine) {
this._container =... | 4,090 |
0 | petrpan-code/tsparticles/tsparticles/plugins/exports/json | petrpan-code/tsparticles/tsparticles/plugins/exports/json/src/index.ts | import type { Container, Engine, IPlugin } from "tsparticles-engine";
import { ExportJSONInstance } from "./ExportJSONInstance";
/**
*/
class ExportJSONPlugin implements IPlugin {
readonly id;
private readonly _engine;
constructor(engine: Engine) {
this.id = "export-json";
this._engine ... | 4,091 |
0 | petrpan-code/tsparticles/tsparticles/plugins/exports | petrpan-code/tsparticles/tsparticles/plugins/exports/video/.browserslistrc | since 2019
not dead
| 4,092 |
0 | petrpan-code/tsparticles/tsparticles/plugins/exports | petrpan-code/tsparticles/tsparticles/plugins/exports/video/.eslintignore | dist
node_modules | 4,093 |
0 | petrpan-code/tsparticles/tsparticles/plugins/exports | petrpan-code/tsparticles/tsparticles/plugins/exports/video/.eslintrc.js | module.exports = {
extends: [
"@tsparticles/eslint-config",
]
};
| 4,094 |
0 | petrpan-code/tsparticles/tsparticles/plugins/exports | petrpan-code/tsparticles/tsparticles/plugins/exports/video/.npmignore | report.html | 4,095 |
0 | petrpan-code/tsparticles/tsparticles/plugins/exports | petrpan-code/tsparticles/tsparticles/plugins/exports/video/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-plugin... | 4,096 |
0 | petrpan-code/tsparticles/tsparticles/plugins/exports | petrpan-code/tsparticles/tsparticles/plugins/exports/video/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,097 |
0 | petrpan-code/tsparticles/tsparticles/plugins/exports | petrpan-code/tsparticles/tsparticles/plugins/exports/video/README.md | [](https://particles.js.org)
# tsParticles Export Video Plugin
[](https://www.jsdelivr.com/package/npm/tsparticles-plugin-export-video)
[![npmjs](https://badge.fury.io/js/ts... | 4,098 |
0 | petrpan-code/tsparticles/tsparticles/plugins/exports | petrpan-code/tsparticles/tsparticles/plugins/exports/video/package.dist.json | {
"name": "tsparticles-plugin-export-video",
"version": "2.12.0",
"description": "tsParticles export video plugin",
"homepage": "https://particles.js.org",
"repository": {
"type": "git",
"url": "git+https://github.com/matteobruni/tsparticles.git",
"directory": "plugins/exports/video"
},
"keywo... | 4,099 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.