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/polygonMask | petrpan-code/tsparticles/tsparticles/plugins/polygonMask/src/pathseg.d.ts | export interface SVGElementInstance extends EventTarget {
readonly correspondingElement: SVGElement;
readonly correspondingUseElement: SVGUseElement;
}
interface SVGElementInstanceList {
readonly length: number;
item(index: number): SVGElementInstance;
}
interface SVGPathSeg {
readonly pathSegTyp... | 4,200 |
0 | petrpan-code/tsparticles/tsparticles/plugins/polygonMask | petrpan-code/tsparticles/tsparticles/plugins/polygonMask/src/pathseg.js | // SVGPathSeg API polyfill
//
// This is a drop-in replacement for the SVGPathSeg and SVGPathSegList APIs that were removed from
// SVG2 (https://lists.w3.org/Archives/Public/www-svg/2015Jun/0044.html), including the latest spec
// changes which were implemented in Firefox 43 and Chrome 46.
(function () {
"use str... | 4,201 |
0 | petrpan-code/tsparticles/tsparticles/plugins/polygonMask | petrpan-code/tsparticles/tsparticles/plugins/polygonMask/src/types.ts | import type { Container, IOptions, Options } from "tsparticles-engine";
import type {
SVGPathSegArcAbs,
SVGPathSegArcRel,
SVGPathSegCurvetoCubicAbs,
SVGPathSegCurvetoCubicRel,
SVGPathSegCurvetoCubicSmoothAbs,
SVGPathSegCurvetoCubicSmoothRel,
SVGPathSegCurvetoQuadraticAbs,
SVGPathSegCurve... | 4,202 |
0 | petrpan-code/tsparticles/tsparticles/plugins/polygonMask | petrpan-code/tsparticles/tsparticles/plugins/polygonMask/src/utils.ts | import { type ICoordinates, Vector, getDistances, getStyleFromRgb, rangeColorToRgb } from "tsparticles-engine";
import type {
SVGPathSeg,
SVGPathSegLinetoHorizontalAbs,
SVGPathSegLinetoHorizontalRel,
SVGPathSegLinetoVerticalAbs,
SVGPathSegLinetoVerticalRel,
} from "./pathseg";
import type { SvgAbsol... | 4,203 |
0 | petrpan-code/tsparticles/tsparticles/plugins/polygonMask/src | petrpan-code/tsparticles/tsparticles/plugins/polygonMask/src/Enums/PolygonMaskInlineArrangement.ts | export const enum PolygonMaskInlineArrangement {
equidistant = "equidistant",
onePerPoint = "one-per-point",
perPoint = "per-point",
randomLength = "random-length",
randomPoint = "random-point",
}
export type PolygonMaskInlineArrangementAlt = "one-per-point" | "per-point" | "random-length" | "rando... | 4,204 |
0 | petrpan-code/tsparticles/tsparticles/plugins/polygonMask/src | petrpan-code/tsparticles/tsparticles/plugins/polygonMask/src/Enums/PolygonMaskMoveType.ts | export const enum PolygonMaskMoveType {
path = "path",
radius = "radius",
}
| 4,205 |
0 | petrpan-code/tsparticles/tsparticles/plugins/polygonMask/src | petrpan-code/tsparticles/tsparticles/plugins/polygonMask/src/Enums/PolygonMaskType.ts | export const enum PolygonMaskType {
inline = "inline",
inside = "inside",
outside = "outside",
none = "none",
}
| 4,206 |
0 | petrpan-code/tsparticles/tsparticles/plugins/polygonMask/src | petrpan-code/tsparticles/tsparticles/plugins/polygonMask/src/Interfaces/ISvgPath.ts | import type { SVGPathElement } from "../pathseg";
export interface ISvgPath {
element: SVGPathElement;
length: number;
path2d?: Path2D;
}
| 4,207 |
0 | petrpan-code/tsparticles/tsparticles/plugins/polygonMask/src/Options | petrpan-code/tsparticles/tsparticles/plugins/polygonMask/src/Options/Classes/PolygonMask.ts | import { type ICoordinates, type IOptionLoader, type RecursivePartial, deepExtend, isString } from "tsparticles-engine";
import type {
PolygonMaskInlineArrangement,
PolygonMaskInlineArrangementAlt,
} from "../../Enums/PolygonMaskInlineArrangement";
import type { IPolygonMask } from "../Interfaces/IPolygonMask";... | 4,208 |
0 | petrpan-code/tsparticles/tsparticles/plugins/polygonMask/src/Options | petrpan-code/tsparticles/tsparticles/plugins/polygonMask/src/Options/Classes/PolygonMaskDraw.ts | import { type IOptionLoader, OptionsColor, type RecursivePartial } from "tsparticles-engine";
import type { IPolygonMaskDraw } from "../Interfaces/IPolygonMaskDraw";
import { PolygonMaskDrawStroke } from "./PolygonMaskDrawStroke";
/**
*/
export class PolygonMaskDraw implements IPolygonMaskDraw, IOptionLoader<IPolygon... | 4,209 |
0 | petrpan-code/tsparticles/tsparticles/plugins/polygonMask/src/Options | petrpan-code/tsparticles/tsparticles/plugins/polygonMask/src/Options/Classes/PolygonMaskDrawStroke.ts | import { type IOptionLoader, OptionsColor, type RecursivePartial, isString, stringToAlpha } from "tsparticles-engine";
import type { IPolygonMaskDrawStroke } from "../Interfaces/IPolygonMaskDrawStroke";
/**
*/
export class PolygonMaskDrawStroke implements IPolygonMaskDrawStroke, IOptionLoader<IPolygonMaskDrawStroke> ... | 4,210 |
0 | petrpan-code/tsparticles/tsparticles/plugins/polygonMask/src/Options | petrpan-code/tsparticles/tsparticles/plugins/polygonMask/src/Options/Classes/PolygonMaskInline.ts | import type { IOptionLoader, RecursivePartial } from "tsparticles-engine";
import type { IPolygonMaskInline } from "../Interfaces/IPolygonMaskInline";
import { PolygonMaskInlineArrangement } from "../../Enums/PolygonMaskInlineArrangement";
import type { PolygonMaskInlineArrangementAlt } from "../../Enums/PolygonMaskInl... | 4,211 |
0 | petrpan-code/tsparticles/tsparticles/plugins/polygonMask/src/Options | petrpan-code/tsparticles/tsparticles/plugins/polygonMask/src/Options/Classes/PolygonMaskLocalSvg.ts | import type { IDimension, IOptionLoader, RecursivePartial, SingleOrMultiple } from "tsparticles-engine";
import type { IPolygonMaskLocalSvg } from "../Interfaces/IPolygonMaskLocalSvg";
/**
*/
export class PolygonMaskLocalSvg implements IPolygonMaskLocalSvg, IOptionLoader<IPolygonMaskLocalSvg> {
path: SingleOrMult... | 4,212 |
0 | petrpan-code/tsparticles/tsparticles/plugins/polygonMask/src/Options | petrpan-code/tsparticles/tsparticles/plugins/polygonMask/src/Options/Classes/PolygonMaskMove.ts | import type { IOptionLoader, RecursivePartial } from "tsparticles-engine";
import type { IPolygonMaskMove } from "../Interfaces/IPolygonMaskMove";
import { PolygonMaskMoveType } from "../../Enums/PolygonMaskMoveType";
/**
*/
export class PolygonMaskMove implements IPolygonMaskMove, IOptionLoader<IPolygonMaskMove> {
... | 4,213 |
0 | petrpan-code/tsparticles/tsparticles/plugins/polygonMask/src/Options | petrpan-code/tsparticles/tsparticles/plugins/polygonMask/src/Options/Interfaces/IPolygonMask.ts | import type { ICoordinates } from "tsparticles-engine";
import type { IPolygonMaskDraw } from "./IPolygonMaskDraw";
import type { IPolygonMaskInline } from "./IPolygonMaskInline";
import type { IPolygonMaskLocalSvg } from "./IPolygonMaskLocalSvg";
import type { IPolygonMaskMove } from "./IPolygonMaskMove";
import type ... | 4,214 |
0 | petrpan-code/tsparticles/tsparticles/plugins/polygonMask/src/Options | petrpan-code/tsparticles/tsparticles/plugins/polygonMask/src/Options/Interfaces/IPolygonMaskDraw.ts | import type { IOptionsColor } from "tsparticles-engine";
import type { IPolygonMaskDrawStroke } from "./IPolygonMaskDrawStroke";
/**
*/
export interface IPolygonMaskDraw {
enable: boolean;
/**
* @deprecated the property lineColor is deprecated, please use the new stroke.color property
*/
lineCo... | 4,215 |
0 | petrpan-code/tsparticles/tsparticles/plugins/polygonMask/src/Options | petrpan-code/tsparticles/tsparticles/plugins/polygonMask/src/Options/Interfaces/IPolygonMaskDrawStroke.ts | import type { IOptionsColor } from "tsparticles-engine";
/**
*/
export interface IPolygonMaskDrawStroke {
color: string | IOptionsColor;
opacity: number;
width: number;
}
| 4,216 |
0 | petrpan-code/tsparticles/tsparticles/plugins/polygonMask/src/Options | petrpan-code/tsparticles/tsparticles/plugins/polygonMask/src/Options/Interfaces/IPolygonMaskInline.ts | import type {
PolygonMaskInlineArrangement,
PolygonMaskInlineArrangementAlt,
} from "../../Enums/PolygonMaskInlineArrangement";
/**
*/
export interface IPolygonMaskInline {
arrangement:
| PolygonMaskInlineArrangement
| keyof typeof PolygonMaskInlineArrangement
| PolygonMaskInlineAr... | 4,217 |
0 | petrpan-code/tsparticles/tsparticles/plugins/polygonMask/src/Options | petrpan-code/tsparticles/tsparticles/plugins/polygonMask/src/Options/Interfaces/IPolygonMaskLocalSvg.ts | import type { IDimension, SingleOrMultiple } from "tsparticles-engine";
/**
*/
export interface IPolygonMaskLocalSvg {
path: SingleOrMultiple<string>;
size: IDimension;
}
| 4,218 |
0 | petrpan-code/tsparticles/tsparticles/plugins/polygonMask/src/Options | petrpan-code/tsparticles/tsparticles/plugins/polygonMask/src/Options/Interfaces/IPolygonMaskMove.ts | import type { PolygonMaskMoveType } from "../../Enums/PolygonMaskMoveType";
/**
*/
export interface IPolygonMaskMove {
radius: number;
type: PolygonMaskMoveType | keyof typeof PolygonMaskMoveType;
}
| 4,219 |
0 | petrpan-code/tsparticles/tsparticles/plugins | petrpan-code/tsparticles/tsparticles/plugins/sounds/.browserslistrc | since 2019
not dead
| 4,220 |
0 | petrpan-code/tsparticles/tsparticles/plugins | petrpan-code/tsparticles/tsparticles/plugins/sounds/.eslintignore | dist
node_modules
src/pathseg.*
| 4,221 |
0 | petrpan-code/tsparticles/tsparticles/plugins | petrpan-code/tsparticles/tsparticles/plugins/sounds/.eslintrc.js | module.exports = {
extends: [
"@tsparticles/eslint-config",
]
};
| 4,222 |
0 | petrpan-code/tsparticles/tsparticles/plugins | petrpan-code/tsparticles/tsparticles/plugins/sounds/.npmignore | report.html | 4,223 |
0 | petrpan-code/tsparticles/tsparticles/plugins | petrpan-code/tsparticles/tsparticles/plugins/sounds/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,224 |
0 | petrpan-code/tsparticles/tsparticles/plugins | petrpan-code/tsparticles/tsparticles/plugins/sounds/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,225 |
0 | petrpan-code/tsparticles/tsparticles/plugins | petrpan-code/tsparticles/tsparticles/plugins/sounds/README.md | [](https://particles.js.org)
# tsParticles Sounds Plugin
[](https://www.jsdelivr.com/package/npm/tsparticles-plugin-sounds)
[;
const version = require("./package.json").version;
module.exports = loadParticlesPlugin({ moduleName: "sounds", pluginName: "Sounds", version, dir: __dirname });
| 4,236 |
0 | petrpan-code/tsparticles/tsparticles/plugins/sounds | petrpan-code/tsparticles/tsparticles/plugins/sounds/src/SoundsInstance.ts | import {
type CustomEventArgs,
type Engine,
type IContainerPlugin,
clamp,
executeOnSingleOrMultiple,
getLogger,
isArray,
isNumber,
itemFromArray,
itemFromSingleOrMultiple,
} from "tsparticles-engine";
import { ImageDisplay, SoundsEventType } from "./enums";
import type { ImageMar... | 4,237 |
0 | petrpan-code/tsparticles/tsparticles/plugins/sounds | petrpan-code/tsparticles/tsparticles/plugins/sounds/src/enums.ts | export const enum SoundsEventType {
mute = "soundsMuted",
unmute = "soundsUnmuted",
}
export const enum ImageDisplay {
Block = "block",
None = "none",
}
| 4,238 |
0 | petrpan-code/tsparticles/tsparticles/plugins/sounds | petrpan-code/tsparticles/tsparticles/plugins/sounds/src/index.ts | import type { Container, Engine, IPlugin, RecursivePartial } from "tsparticles-engine";
import type { ISoundsOptions, SoundsOptions } from "./types";
import { Sounds } from "./Options/Classes/Sounds";
import { SoundsInstance } from "./SoundsInstance";
/**
*/
class SoundsPlugin implements IPlugin {
readonly id;
... | 4,239 |
0 | petrpan-code/tsparticles/tsparticles/plugins/sounds | petrpan-code/tsparticles/tsparticles/plugins/sounds/src/types.ts | import type { Container, CustomEventArgs, IOptions, Options } from "tsparticles-engine";
import type { ISounds } from "./Options/Interfaces/ISounds";
import type { ImageDisplay } from "./enums";
import type { Sounds } from "./Options/Classes/Sounds";
import type { SoundsIcon } from "./Options/Classes/SoundsIcon";
expo... | 4,240 |
0 | petrpan-code/tsparticles/tsparticles/plugins/sounds | petrpan-code/tsparticles/tsparticles/plugins/sounds/src/utils.ts | const notes = new Map<string, number[]>();
notes.set("C", [16.35, 32.7, 65.41, 130.81, 261.63, 523.25, 1046.5, 2093.0, 4186.01]);
notes.set("Db", [17.32, 34.65, 69.3, 138.59, 277.18, 554.37, 1108.73, 2217.46, 4434.92]);
notes.set("D", [18.35, 36.71, 73.42, 146.83, 293.66, 587.33, 1174.66, 2349.32, 4698.63]);
notes.set... | 4,241 |
0 | petrpan-code/tsparticles/tsparticles/plugins/sounds/src/Options | petrpan-code/tsparticles/tsparticles/plugins/sounds/src/Options/Classes/Sounds.ts | import type { IOptionLoader, RecursivePartial } from "tsparticles-engine";
import type { ISounds } from "../Interfaces/ISounds";
import { SoundsEvent } from "./SoundsEvent";
import { SoundsIcons } from "./SoundsIcons";
import { SoundsVolume } from "./SoundsVolume";
export class Sounds implements ISounds, IOptionLoader... | 4,242 |
0 | petrpan-code/tsparticles/tsparticles/plugins/sounds/src/Options | petrpan-code/tsparticles/tsparticles/plugins/sounds/src/Options/Classes/SoundsAudio.ts | import { type IOptionLoader, type RecursivePartial, isObject } from "tsparticles-engine";
import type { ISoundsAudio } from "../Interfaces/ISoundsAudio";
export class SoundsAudio implements ISoundsAudio, IOptionLoader<ISoundsAudio> {
loop: boolean;
source: string;
constructor() {
this.loop = false... | 4,243 |
0 | petrpan-code/tsparticles/tsparticles/plugins/sounds/src/Options | petrpan-code/tsparticles/tsparticles/plugins/sounds/src/Options/Classes/SoundsEvent.ts | import {
type IOptionLoader,
type RecursivePartial,
type SingleOrMultiple,
isArray,
isFunction,
isString,
} from "tsparticles-engine";
import type { FilterFunction } from "../../types";
import type { ISoundsEvent } from "../Interfaces/ISoundsEvent";
import { SoundsAudio } from "./SoundsAudio";
i... | 4,244 |
0 | petrpan-code/tsparticles/tsparticles/plugins/sounds/src/Options | petrpan-code/tsparticles/tsparticles/plugins/sounds/src/Options/Classes/SoundsIcon.ts | import type { IOptionLoader, RecursivePartial } from "tsparticles-engine";
import type { ISoundsIcon } from "../Interfaces/ISoundsIcon";
export class SoundsIcon implements ISoundsIcon, IOptionLoader<ISoundsIcon> {
height;
path?: string;
svg?: string;
width;
constructor() {
this.width = 24;... | 4,245 |
0 | petrpan-code/tsparticles/tsparticles/plugins/sounds/src/Options | petrpan-code/tsparticles/tsparticles/plugins/sounds/src/Options/Classes/SoundsIcons.ts | import type { IOptionLoader, RecursivePartial } from "tsparticles-engine";
import type { ISoundsIcons } from "../Interfaces/ISoundsIcons";
import { SoundsIcon } from "./SoundsIcon";
export class SoundsIcons implements ISoundsIcons, IOptionLoader<ISoundsIcons> {
mute;
unmute;
volumeDown;
volumeUp;
... | 4,246 |
0 | petrpan-code/tsparticles/tsparticles/plugins/sounds/src/Options | petrpan-code/tsparticles/tsparticles/plugins/sounds/src/Options/Classes/SoundsMelody.ts | import type { IOptionLoader, RecursivePartial } from "tsparticles-engine";
import type { ISoundsMelody } from "../Interfaces/ISoundsMelody";
import { SoundsNote } from "./SoundsNote";
export class SoundsMelody implements ISoundsMelody, IOptionLoader<ISoundsMelody> {
loop;
melodies: SoundsMelody[];
notes: S... | 4,247 |
0 | petrpan-code/tsparticles/tsparticles/plugins/sounds/src/Options | petrpan-code/tsparticles/tsparticles/plugins/sounds/src/Options/Classes/SoundsNote.ts | import type { IOptionLoader, RecursivePartial, SingleOrMultiple } from "tsparticles-engine";
import type { ISoundsNote } from "../Interfaces/ISoundsNote";
export class SoundsNote implements ISoundsNote, IOptionLoader<ISoundsNote> {
duration: number;
value: SingleOrMultiple<string>;
constructor() {
... | 4,248 |
0 | petrpan-code/tsparticles/tsparticles/plugins/sounds/src/Options | petrpan-code/tsparticles/tsparticles/plugins/sounds/src/Options/Classes/SoundsVolume.ts | import { type IOptionLoader, type RecursivePartial, isObject } from "tsparticles-engine";
import type { ISoundsVolume } from "../Interfaces/ISoundsVolume";
export class SoundsVolume implements ISoundsVolume, IOptionLoader<ISoundsVolume> {
max: number;
min: number;
step: number;
value: number;
cons... | 4,249 |
0 | petrpan-code/tsparticles/tsparticles/plugins/sounds/src/Options | petrpan-code/tsparticles/tsparticles/plugins/sounds/src/Options/Interfaces/ISounds.ts | import type { ISoundsEvent } from "./ISoundsEvent";
import type { ISoundsIcons } from "./ISoundsIcons";
import type { ISoundsVolume } from "./ISoundsVolume";
export interface ISounds {
enable: boolean;
events: ISoundsEvent[];
icons: ISoundsIcons;
volume: ISoundsVolume | number;
}
| 4,250 |
0 | petrpan-code/tsparticles/tsparticles/plugins/sounds/src/Options | petrpan-code/tsparticles/tsparticles/plugins/sounds/src/Options/Interfaces/ISoundsAudio.ts | export interface ISoundsAudio {
loop: boolean;
source: string;
}
| 4,251 |
0 | petrpan-code/tsparticles/tsparticles/plugins/sounds/src/Options | petrpan-code/tsparticles/tsparticles/plugins/sounds/src/Options/Interfaces/ISoundsEvent.ts | import type { FilterFunction } from "../../types";
import type { ISoundsAudio } from "./ISoundsAudio";
import type { ISoundsMelody } from "./ISoundsMelody";
import type { ISoundsNote } from "./ISoundsNote";
import type { SingleOrMultiple } from "tsparticles-engine";
export interface ISoundsEvent {
audio?: SingleOr... | 4,252 |
0 | petrpan-code/tsparticles/tsparticles/plugins/sounds/src/Options | petrpan-code/tsparticles/tsparticles/plugins/sounds/src/Options/Interfaces/ISoundsIcon.ts | export interface ISoundsIcon {
height: number;
path?: string;
svg?: string;
width: number;
}
| 4,253 |
0 | petrpan-code/tsparticles/tsparticles/plugins/sounds/src/Options | petrpan-code/tsparticles/tsparticles/plugins/sounds/src/Options/Interfaces/ISoundsIcons.ts | import type { ISoundsIcon } from "./ISoundsIcon";
export interface ISoundsIcons {
mute: ISoundsIcon;
unmute: ISoundsIcon;
volumeDown: ISoundsIcon;
volumeUp: ISoundsIcon;
}
| 4,254 |
0 | petrpan-code/tsparticles/tsparticles/plugins/sounds/src/Options | petrpan-code/tsparticles/tsparticles/plugins/sounds/src/Options/Interfaces/ISoundsMelody.ts | import type { ISoundsNote } from "./ISoundsNote";
export interface ISoundsMelody {
loop: boolean;
melodies: ISoundsMelody[];
notes: ISoundsNote[];
}
| 4,255 |
0 | petrpan-code/tsparticles/tsparticles/plugins/sounds/src/Options | petrpan-code/tsparticles/tsparticles/plugins/sounds/src/Options/Interfaces/ISoundsNote.ts | import type { SingleOrMultiple } from "tsparticles-engine";
export interface ISoundsNote {
duration: number;
value: SingleOrMultiple<string>;
}
| 4,256 |
0 | petrpan-code/tsparticles/tsparticles/plugins/sounds/src/Options | petrpan-code/tsparticles/tsparticles/plugins/sounds/src/Options/Interfaces/ISoundsVolume.ts | export interface ISoundsVolume {
max: number;
min: number;
step: number;
value: number;
}
| 4,257 |
0 | petrpan-code/tsparticles/tsparticles/shapes | petrpan-code/tsparticles/tsparticles/shapes/arrow/.browserslistrc | since 2019
not dead
| 4,258 |
0 | petrpan-code/tsparticles/tsparticles/shapes | petrpan-code/tsparticles/tsparticles/shapes/arrow/.eslintignore | dist
node_modules | 4,259 |
0 | petrpan-code/tsparticles/tsparticles/shapes | petrpan-code/tsparticles/tsparticles/shapes/arrow/.eslintrc.js | module.exports = {
extends: [
"@tsparticles/eslint-config",
]
};
| 4,260 |
0 | petrpan-code/tsparticles/tsparticles/shapes | petrpan-code/tsparticles/tsparticles/shapes/arrow/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-shape-... | 4,261 |
0 | petrpan-code/tsparticles/tsparticles/shapes | petrpan-code/tsparticles/tsparticles/shapes/arrow/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,262 |
0 | petrpan-code/tsparticles/tsparticles/shapes | petrpan-code/tsparticles/tsparticles/shapes/arrow/README.md | [](https://particles.js.org)
# tsParticles Arrow Shape
[](https://www.jsdelivr.com/package/npm/tsparticles-shape-arrow)
[;
const version = require("./package.json").version;
module.exports = loadParticlesShape({ moduleName: "arrow", shapeName: "Arrow", version, dir: __dirname });
| 4,273 |
0 | petrpan-code/tsparticles/tsparticles/shapes/arrow | petrpan-code/tsparticles/tsparticles/shapes/arrow/src/ArrowDrawer.ts | import { type Container, type IShapeDrawer, getRangeValue } from "tsparticles-engine";
import type { ArrowParticle } from "./ArrowParticle";
import type { IArrowData } from "./IArrowData";
export class ArrowDrawer implements IShapeDrawer {
draw(context: CanvasRenderingContext2D, particle: ArrowParticle, radius: nu... | 4,274 |
0 | petrpan-code/tsparticles/tsparticles/shapes/arrow | petrpan-code/tsparticles/tsparticles/shapes/arrow/src/ArrowParticle.ts | import type { Particle } from "tsparticles-engine";
export type ArrowParticle = Particle & {
bodyHeightFactor?: number;
headWidthFactor?: number;
heightFactor?: number;
};
| 4,275 |
0 | petrpan-code/tsparticles/tsparticles/shapes/arrow | petrpan-code/tsparticles/tsparticles/shapes/arrow/src/IArrowData.ts | import type { IShapeValues, RangeValue } from "tsparticles-engine";
export interface IArrowData extends IShapeValues {
bodyHeightFactor?: RangeValue;
headWidthFactor?: RangeValue;
heightFactor?: RangeValue;
}
| 4,276 |
0 | petrpan-code/tsparticles/tsparticles/shapes/arrow | petrpan-code/tsparticles/tsparticles/shapes/arrow/src/index.ts | import { ArrowDrawer } from "./ArrowDrawer";
import type { Engine } from "tsparticles-engine";
/**
* @param engine -
* @param refresh -
*/
export async function loadArrowShape(engine: Engine, refresh = true): Promise<void> {
await engine.addShape("arrow", new ArrowDrawer(), refresh);
}
| 4,277 |
0 | petrpan-code/tsparticles/tsparticles/shapes | petrpan-code/tsparticles/tsparticles/shapes/bubble/.browserslistrc | since 2019
not dead
| 4,278 |
0 | petrpan-code/tsparticles/tsparticles/shapes | petrpan-code/tsparticles/tsparticles/shapes/bubble/.eslintignore | dist
node_modules | 4,279 |
0 | petrpan-code/tsparticles/tsparticles/shapes | petrpan-code/tsparticles/tsparticles/shapes/bubble/.eslintrc.js | module.exports = {
extends: [
"@tsparticles/eslint-config",
]
};
| 4,280 |
0 | petrpan-code/tsparticles/tsparticles/shapes | petrpan-code/tsparticles/tsparticles/shapes/bubble/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-shape-... | 4,281 |
0 | petrpan-code/tsparticles/tsparticles/shapes | petrpan-code/tsparticles/tsparticles/shapes/bubble/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,282 |
0 | petrpan-code/tsparticles/tsparticles/shapes | petrpan-code/tsparticles/tsparticles/shapes/bubble/README.md | [](https://particles.js.org)
# tsParticles Bubble Shape
[](https://www.jsdelivr.com/package/npm/tsparticles-shape-bubble)
[;
const version = require("./package.json").version;
module.exports = loadParticlesShape({ moduleName: "bubble", shapeName: "Bubble", version, dir: __dirname });
| 4,293 |
0 | petrpan-code/tsparticles/tsparticles/shapes/bubble | petrpan-code/tsparticles/tsparticles/shapes/bubble/src/BubbleDrawer.ts | import type { IParticle, IShapeDrawer } from "tsparticles-engine";
export class BubbleDrawer implements IShapeDrawer {
afterEffect(context: CanvasRenderingContext2D, particle: IParticle, radius: number): void {
context.beginPath();
context.arc(radius / 3, -radius / 3, radius / 3, 0, Math.PI * 2, fa... | 4,294 |
0 | petrpan-code/tsparticles/tsparticles/shapes/bubble | petrpan-code/tsparticles/tsparticles/shapes/bubble/src/index.ts | import { BubbleDrawer } from "./BubbleDrawer";
import type { Engine } from "tsparticles-engine";
/**
* @param engine -
* @param refresh -
*/
export async function loadBubbleShape(engine: Engine, refresh = true): Promise<void> {
await engine.addShape("bubble", new BubbleDrawer(), refresh);
}
| 4,295 |
0 | petrpan-code/tsparticles/tsparticles/shapes | petrpan-code/tsparticles/tsparticles/shapes/cards/.browserslistrc | since 2019
not dead
| 4,296 |
0 | petrpan-code/tsparticles/tsparticles/shapes | petrpan-code/tsparticles/tsparticles/shapes/cards/.eslintignore | dist
node_modules | 4,297 |
0 | petrpan-code/tsparticles/tsparticles/shapes | petrpan-code/tsparticles/tsparticles/shapes/cards/.eslintrc.js | module.exports = {
extends: [
"@tsparticles/eslint-config",
]
};
| 4,298 |
0 | petrpan-code/tsparticles/tsparticles/shapes | petrpan-code/tsparticles/tsparticles/shapes/cards/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-shape-... | 4,299 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.