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/shapes/image/src/GifUtils
petrpan-code/tsparticles/tsparticles/shapes/image/src/GifUtils/Types/ApplicationExtension.ts
export interface ApplicationExtension { /** * 3 bytes to authenticate the application identifier */ authenticationCode: string; /** * the (raw) data of this application extension */ data: Uint8Array; /** * 8 character string identifying the application */ identifi...
4,400
0
petrpan-code/tsparticles/tsparticles/shapes/image/src/GifUtils
petrpan-code/tsparticles/tsparticles/shapes/image/src/GifUtils/Types/Frame.ts
import type { DisposalMethod } from "../Enums/DisposalMethod"; import type { IRgb } from "tsparticles-engine"; import type { PlainTextData } from "./PlainTextData"; export interface Frame { /** * _reserved for future use_ (from packed field in graphics control extension block) */ GCreserved: number; ...
4,401
0
petrpan-code/tsparticles/tsparticles/shapes/image/src/GifUtils
petrpan-code/tsparticles/tsparticles/shapes/image/src/GifUtils/Types/GIF.ts
import type { ApplicationExtension } from "./ApplicationExtension"; import type { Frame } from "./Frame"; import type { IRgb } from "tsparticles-engine"; export interface GIF { /** * all application extensions found */ applicationExtensions: ApplicationExtension[]; /** * an image filled wit...
4,402
0
petrpan-code/tsparticles/tsparticles/shapes/image/src/GifUtils
petrpan-code/tsparticles/tsparticles/shapes/image/src/GifUtils/Types/GIFDataHeaders.ts
export const enum GIFDataHeaders { /** * extension introducer */ Extension = 0x21, /** * extension label: application */ ApplicationExtension = 0xff, /** * extension label: graphic control */ GraphicsControlExtension = 0xf9, /** * extension label: plain ...
4,403
0
petrpan-code/tsparticles/tsparticles/shapes/image/src/GifUtils
petrpan-code/tsparticles/tsparticles/shapes/image/src/GifUtils/Types/GIFProgressCallbackFunction.ts
import type { ICoordinates, IDimension } from "tsparticles-engine"; export type GIFProgressCallbackFunction = ( percentageRead: number, frameCount: number, lastFrame: ImageData, framePos: ICoordinates, gifSize: IDimension, ) => void;
4,404
0
petrpan-code/tsparticles/tsparticles/shapes/image/src/GifUtils
petrpan-code/tsparticles/tsparticles/shapes/image/src/GifUtils/Types/PlainTextData.ts
import type { IDimension } from "tsparticles-engine"; export interface PlainTextData { /** * the index into the global color table for the background color of the text */ backgroundColor: number; /** * the size (in pixels) of each cell (character) in text grid */ charSize: IDimensi...
4,405
0
petrpan-code/tsparticles/tsparticles/shapes/image/src/Options
petrpan-code/tsparticles/tsparticles/shapes/image/src/Options/Classes/Preload.ts
import type { IOptionLoader, RecursivePartial } from "tsparticles-engine"; import type { IPreload } from "../Interfaces/IPreload"; export class Preload implements IPreload, IOptionLoader<IPreload> { gif: boolean; height?: number; name?: string | undefined; replaceColor?: boolean | undefined; src: s...
4,406
0
petrpan-code/tsparticles/tsparticles/shapes/image/src/Options
petrpan-code/tsparticles/tsparticles/shapes/image/src/Options/Interfaces/IPreload.ts
export interface IPreload { gif: boolean; height?: number; name?: string; replaceColor?: boolean; src: string; width?: number; }
4,407
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/line/.browserslistrc
since 2019 not dead
4,408
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/line/.eslintignore
dist node_modules
4,409
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/line/.eslintrc.js
module.exports = { extends: [ "@tsparticles/eslint-config", ] };
4,410
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/line/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,411
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/line/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,412
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/line/README.md
[![banner](https://particles.js.org/images/banner2.png)](https://particles.js.org) # tsParticles Line Shape [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/tsparticles-shape-line/badge)](https://www.jsdelivr.com/package/npm/tsparticles-shape-line) [![npmjs](https://badge.fury.io/js/tsparticles-shape-line.svg)](...
4,413
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/line/package.dist.json
{ "name": "tsparticles-shape-line", "version": "2.12.0", "description": "tsParticles line shape", "homepage": "https://particles.js.org", "repository": { "type": "git", "url": "git+https://github.com/matteobruni/tsparticles.git", "directory": "shapes/line" }, "keywords": [ "front-end", ...
4,414
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/line/package.json
{ "name": "tsparticles-shape-line", "version": "2.12.0", "description": "tsParticles line shape", "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", ...
4,415
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/line/tsconfig.base.json
{ "extends": "@tsparticles/tsconfig/tsconfig.base.json", "compilerOptions": { "rootDir": "./src" }, "include": [ "./src" ] }
4,416
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/line/tsconfig.browser.json
{ "extends": ["./tsconfig.base.json", "@tsparticles/tsconfig/tsconfig.browser.json"], "compilerOptions": { "outDir": "./dist/browser" } }
4,417
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/line/tsconfig.json
{ "extends": ["./tsconfig.base.json", "@tsparticles/tsconfig/tsconfig.json"], "compilerOptions": { "outDir": "./dist/cjs" } }
4,418
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/line/tsconfig.module.json
{ "extends": ["./tsconfig.base.json", "@tsparticles/tsconfig/tsconfig.module.json"], "compilerOptions": { "outDir": "./dist/esm" } }
4,419
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/line/tsconfig.types.json
{ "extends": ["./tsconfig.base.json", "@tsparticles/tsconfig/tsconfig.types.json"], "compilerOptions": { "outDir": "./dist/types" } }
4,420
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/line/tsconfig.umd.json
{ "extends": ["./tsconfig.base.json", "@tsparticles/tsconfig/tsconfig.umd.json"], "compilerOptions": { "outDir": "./dist/umd" } }
4,421
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/line/typedoc.json
{ "includes": "./markdown", "entryPoints": [ "./src/" ], "entryPointStrategy": "expand", "name": "tsParticles Line Shape", "includeVersion": true, "hideGenerator": true, "out": "./docs", "validation": { "invalidLink": true, "notDocumented": true } }
4,422
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/line/webpack.config.js
const { loadParticlesShape } = require("@tsparticles/webpack-plugin"); const version = require("./package.json").version; module.exports = loadParticlesShape({ moduleName: "line", shapeName: "Line", version, dir: __dirname });
4,423
0
petrpan-code/tsparticles/tsparticles/shapes/line
petrpan-code/tsparticles/tsparticles/shapes/line/src/LineDrawer.ts
import type { IParticle, IShapeDrawer } from "tsparticles-engine"; interface ILineData { cap?: CanvasLineCap; } /** */ export class LineDrawer implements IShapeDrawer { draw(context: CanvasRenderingContext2D, particle: IParticle, radius: number): void { const shapeData = particle.shapeData as ILineDa...
4,424
0
petrpan-code/tsparticles/tsparticles/shapes/line
petrpan-code/tsparticles/tsparticles/shapes/line/src/index.ts
import type { Engine } from "tsparticles-engine"; import { LineDrawer } from "./LineDrawer"; /** * @param engine - * @param refresh - */ export async function loadLineShape(engine: Engine, refresh = true): Promise<void> { await engine.addShape("line", new LineDrawer(), refresh); }
4,425
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/multiline-text/.browserslistrc
since 2019 not dead
4,426
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/multiline-text/.eslintignore
dist node_modules
4,427
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/multiline-text/.eslintrc.js
module.exports = { extends: [ "@tsparticles/eslint-config", ] };
4,428
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/multiline-text/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,429
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/multiline-text/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,430
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/multiline-text/README.md
[![banner](https://particles.js.org/images/banner3.png)](https://particles.js.org) # tsParticles Multiline Text Shape [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/tsparticles-shape-multiline-text/badge)](https://www.jsdelivr.com/package/npm/tsparticles-shape-multiline-text) [![npmjs](https://badge.fury.io/js...
4,431
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/multiline-text/package.dist.json
{ "name": "tsparticles-shape-multiline-text", "version": "2.12.0", "description": "tsParticles multiline text shape", "homepage": "https://particles.js.org", "repository": { "type": "git", "url": "git+https://github.com/matteobruni/tsparticles.git", "directory": "shapes/multiline-text" }, "key...
4,432
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/multiline-text/package.json
{ "name": "tsparticles-shape-multiline-text", "version": "2.12.0", "description": "tsParticles multiline text shape", "homepage": "https://particles.js.org", "scripts": { "build": "tsparticles-cli build", "build:ci": "tsparticles-cli build --ci", "version": "tsparticles-cli build -d && git add pac...
4,433
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/multiline-text/tsconfig.base.json
{ "extends": "@tsparticles/tsconfig/tsconfig.base.json", "compilerOptions": { "rootDir": "./src" }, "include": [ "./src" ] }
4,434
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/multiline-text/tsconfig.browser.json
{ "extends": ["./tsconfig.base.json", "@tsparticles/tsconfig/tsconfig.browser.json"], "compilerOptions": { "outDir": "./dist/browser" } }
4,435
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/multiline-text/tsconfig.json
{ "extends": ["./tsconfig.base.json", "@tsparticles/tsconfig/tsconfig.json"], "compilerOptions": { "outDir": "./dist/cjs" } }
4,436
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/multiline-text/tsconfig.module.json
{ "extends": ["./tsconfig.base.json", "@tsparticles/tsconfig/tsconfig.module.json"], "compilerOptions": { "outDir": "./dist/esm" } }
4,437
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/multiline-text/tsconfig.types.json
{ "extends": ["./tsconfig.base.json", "@tsparticles/tsconfig/tsconfig.types.json"], "compilerOptions": { "outDir": "./dist/types" } }
4,438
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/multiline-text/tsconfig.umd.json
{ "extends": ["./tsconfig.base.json", "@tsparticles/tsconfig/tsconfig.umd.json"], "compilerOptions": { "outDir": "./dist/umd" } }
4,439
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/multiline-text/typedoc.json
{ "includes": "./markdown", "entryPoints": [ "./src/" ], "entryPointStrategy": "expand", "name": "tsParticles Multiline Text Shape", "includeVersion": true, "hideGenerator": true, "out": "./docs", "validation": { "invalidLink": true, "notDocumented": true } }
4,440
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/multiline-text/webpack.config.js
const { loadParticlesShape } = require("@tsparticles/webpack-plugin"); const version = require("./package.json").version; module.exports = loadParticlesShape({ moduleName: "multiline-text", shapeName: "Multiline Text", version, dir: __dirname });
4,441
0
petrpan-code/tsparticles/tsparticles/shapes/multiline-text
petrpan-code/tsparticles/tsparticles/shapes/multiline-text/src/IMultilineTextShape.ts
import type { IShapeValues, SingleOrMultiple } from "tsparticles-engine"; export interface IMultilineTextShape extends IShapeValues { font: string; style: string; value: SingleOrMultiple<string>; weight: string; }
4,442
0
petrpan-code/tsparticles/tsparticles/shapes/multiline-text
petrpan-code/tsparticles/tsparticles/shapes/multiline-text/src/MultilineTextDrawer.ts
import { type Container, type IShapeDrawer, type SingleOrMultiple, executeOnSingleOrMultiple, isInArray, itemFromSingleOrMultiple, loadFont, } from "tsparticles-engine"; import type { IMultilineTextShape } from "./IMultilineTextShape"; import type { MultilineTextParticle } from "./MultilineT...
4,443
0
petrpan-code/tsparticles/tsparticles/shapes/multiline-text
petrpan-code/tsparticles/tsparticles/shapes/multiline-text/src/MultilineTextParticle.ts
import type { IParticle } from "tsparticles-engine"; export interface MultilineTextParticle extends IParticle { text?: string; }
4,444
0
petrpan-code/tsparticles/tsparticles/shapes/multiline-text
petrpan-code/tsparticles/tsparticles/shapes/multiline-text/src/index.ts
import type { Engine } from "tsparticles-engine"; import { MultilineTextDrawer } from "./MultilineTextDrawer"; /** * @param engine - * @param refresh - */ export async function loadMultilineTextShape(engine: Engine, refresh = true): Promise<void> { await engine.addShape("multiline-text", new MultilineTextDrawer...
4,445
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/path/.browserslistrc
since 2019 not dead
4,446
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/path/.eslintignore
dist node_modules
4,447
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/path/.eslintrc.js
module.exports = { extends: [ "@tsparticles/eslint-config", ] };
4,448
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/path/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,449
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/path/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,450
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/path/README.md
[![banner](https://particles.js.org/images/banner3.png)](https://particles.js.org) # tsParticles Path Shape [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/tsparticles-shape-path/badge)](https://www.jsdelivr.com/package/npm/tsparticles-shape-path) [![npmjs](https://badge.fury.io/js/tsparticles-shape-path.svg)](...
4,451
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/path/package.dist.json
{ "name": "tsparticles-shape-path", "version": "2.12.0", "description": "tsParticles path shape", "homepage": "https://particles.js.org", "repository": { "type": "git", "url": "git+https://github.com/matteobruni/tsparticles.git", "directory": "shapes/path" }, "keywords": [ "front-end", ...
4,452
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/path/package.json
{ "name": "tsparticles-shape-path", "version": "2.12.0", "description": "tsParticles path shape", "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", ...
4,453
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/path/tsconfig.base.json
{ "extends": "@tsparticles/tsconfig/tsconfig.base.json", "compilerOptions": { "rootDir": "./src" }, "include": [ "./src" ] }
4,454
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/path/tsconfig.browser.json
{ "extends": ["./tsconfig.base.json", "@tsparticles/tsconfig/tsconfig.browser.json"], "compilerOptions": { "outDir": "./dist/browser" } }
4,455
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/path/tsconfig.json
{ "extends": ["./tsconfig.base.json", "@tsparticles/tsconfig/tsconfig.json"], "compilerOptions": { "outDir": "./dist/cjs" } }
4,456
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/path/tsconfig.module.json
{ "extends": ["./tsconfig.base.json", "@tsparticles/tsconfig/tsconfig.module.json"], "compilerOptions": { "outDir": "./dist/esm" } }
4,457
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/path/tsconfig.types.json
{ "extends": ["./tsconfig.base.json", "@tsparticles/tsconfig/tsconfig.types.json"], "compilerOptions": { "outDir": "./dist/types" } }
4,458
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/path/tsconfig.umd.json
{ "extends": ["./tsconfig.base.json", "@tsparticles/tsconfig/tsconfig.umd.json"], "compilerOptions": { "outDir": "./dist/umd" } }
4,459
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/path/typedoc.json
{ "includes": "./markdown", "entryPoints": [ "./src/" ], "entryPointStrategy": "expand", "name": "tsParticles Path Shape", "includeVersion": true, "hideGenerator": true, "out": "./docs", "validation": { "invalidLink": true, "notDocumented": true } }
4,460
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/path/webpack.config.js
const { loadParticlesShape } = require("@tsparticles/webpack-plugin"); const version = require("./package.json").version; module.exports = loadParticlesShape({ moduleName: "path", shapeName: "Path", version, dir: __dirname });
4,461
0
petrpan-code/tsparticles/tsparticles/shapes/path
petrpan-code/tsparticles/tsparticles/shapes/path/src/IPathData.ts
import type { ICoordinates, IShapeValues } from "tsparticles-engine"; import type { SegmentType } from "./SegmentType"; export interface IPathData extends IShapeValues { half: boolean; segments: ISegmentData[]; } export interface ISegmentData { type: SegmentType; values: ICoordinates[]; }
4,462
0
petrpan-code/tsparticles/tsparticles/shapes/path
petrpan-code/tsparticles/tsparticles/shapes/path/src/PathDrawer.ts
import { type Container, type IShapeDrawer, deepExtend } from "tsparticles-engine"; import type { IPathData } from "./IPathData"; import type { PathParticle } from "./PathParticle"; import { drawPath } from "./Utils"; export class PathDrawer implements IShapeDrawer { draw(context: CanvasRenderingContext2D, particl...
4,463
0
petrpan-code/tsparticles/tsparticles/shapes/path
petrpan-code/tsparticles/tsparticles/shapes/path/src/PathParticle.ts
import type { IPathData } from "./IPathData"; import type { Particle } from "tsparticles-engine"; export type PathParticle = Particle & { pathData?: IPathData; };
4,464
0
petrpan-code/tsparticles/tsparticles/shapes/path
petrpan-code/tsparticles/tsparticles/shapes/path/src/SegmentType.ts
export const enum SegmentType { line = "line", bezier = "bezier", quadratic = "quadratic", arc = "arc", ellipse = "ellipse", }
4,465
0
petrpan-code/tsparticles/tsparticles/shapes/path
petrpan-code/tsparticles/tsparticles/shapes/path/src/Utils.ts
import type { IPathData } from "./IPathData"; import { SegmentType } from "./SegmentType"; /** * @param ctx * @param radius * @param path */ export function drawPath(ctx: CanvasRenderingContext2D, radius: number, path: IPathData): void { ctx.moveTo(path.segments[0].values[0].x * radius, path.segments[0].values...
4,466
0
petrpan-code/tsparticles/tsparticles/shapes/path
petrpan-code/tsparticles/tsparticles/shapes/path/src/index.ts
import type { Engine } from "tsparticles-engine"; import { PathDrawer } from "./PathDrawer"; /** * @param engine - * @param refresh - */ export async function loadPathShape(engine: Engine, refresh = true): Promise<void> { await engine.addShape("path", new PathDrawer(), refresh); }
4,467
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/polygon/.browserslistrc
since 2019 not dead
4,468
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/polygon/.eslintignore
dist node_modules
4,469
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/polygon/.eslintrc.js
module.exports = { extends: [ "@tsparticles/eslint-config", ] };
4,470
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/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-shape-...
4,471
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/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...
4,472
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/polygon/README.md
[![banner](https://particles.js.org/images/banner2.png)](https://particles.js.org) # tsParticles Polygon Shape [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/tsparticles-shape-polygon/badge)](https://www.jsdelivr.com/package/npm/tsparticles-shape-polygon) [![npmjs](https://badge.fury.io/js/tsparticles-shape-po...
4,473
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/polygon/package.dist.json
{ "name": "tsparticles-shape-polygon", "version": "2.12.0", "description": "tsParticles polygon shape", "homepage": "https://particles.js.org", "repository": { "type": "git", "url": "git+https://github.com/matteobruni/tsparticles.git", "directory": "shapes/polygon" }, "keywords": [ "front-...
4,474
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/polygon/package.json
{ "name": "tsparticles-shape-polygon", "version": "2.12.0", "description": "tsParticles polygon shape", "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...
4,475
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/polygon/tsconfig.base.json
{ "extends": "@tsparticles/tsconfig/tsconfig.base.json", "compilerOptions": { "rootDir": "./src" }, "include": [ "./src" ] }
4,476
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/polygon/tsconfig.browser.json
{ "extends": ["./tsconfig.base.json", "@tsparticles/tsconfig/tsconfig.browser.json"], "compilerOptions": { "outDir": "./dist/browser" } }
4,477
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/polygon/tsconfig.json
{ "extends": ["./tsconfig.base.json", "@tsparticles/tsconfig/tsconfig.json"], "compilerOptions": { "outDir": "./dist/cjs" } }
4,478
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/polygon/tsconfig.module.json
{ "extends": ["./tsconfig.base.json", "@tsparticles/tsconfig/tsconfig.module.json"], "compilerOptions": { "outDir": "./dist/esm" } }
4,479
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/polygon/tsconfig.types.json
{ "extends": ["./tsconfig.base.json", "@tsparticles/tsconfig/tsconfig.types.json"], "compilerOptions": { "outDir": "./dist/types" } }
4,480
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/polygon/tsconfig.umd.json
{ "extends": ["./tsconfig.base.json", "@tsparticles/tsconfig/tsconfig.umd.json"], "compilerOptions": { "outDir": "./dist/umd" } }
4,481
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/polygon/typedoc.json
{ "includes": "./markdown", "entryPoints": [ "./src/" ], "entryPointStrategy": "expand", "name": "tsParticles Polygon Shape", "includeVersion": true, "hideGenerator": true, "out": "./docs", "validation": { "invalidLink": true, "notDocumented": true } }
4,482
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/polygon/webpack.config.js
const { loadParticlesShape } = require("@tsparticles/webpack-plugin"); const version = require("./package.json").version; module.exports = loadParticlesShape({ moduleName: "polygon", shapeName: "Polygon", version, dir: __dirname });
4,483
0
petrpan-code/tsparticles/tsparticles/shapes/polygon
petrpan-code/tsparticles/tsparticles/shapes/polygon/src/IPolygonShape.ts
import type { IShapeValues, RangeValue } from "tsparticles-engine"; export interface IPolygonShape extends IShapeValues { sides: RangeValue; }
4,484
0
petrpan-code/tsparticles/tsparticles/shapes/polygon
petrpan-code/tsparticles/tsparticles/shapes/polygon/src/ISide.ts
import type { ISideCount } from "./ISideCount"; export interface ISide { count: ISideCount; length: number; }
4,485
0
petrpan-code/tsparticles/tsparticles/shapes/polygon
petrpan-code/tsparticles/tsparticles/shapes/polygon/src/ISideCount.ts
export interface ISideCount { denominator: number; numerator: number; }
4,486
0
petrpan-code/tsparticles/tsparticles/shapes/polygon
petrpan-code/tsparticles/tsparticles/shapes/polygon/src/PolygonDrawer.ts
import type { ICoordinates, Particle } from "tsparticles-engine"; import type { ISide } from "./ISide"; import { PolygonDrawerBase } from "./PolygonDrawerBase"; /** */ export class PolygonDrawer extends PolygonDrawerBase { getCenter(particle: Particle, radius: number): ICoordinates { return { ...
4,487
0
petrpan-code/tsparticles/tsparticles/shapes/polygon
petrpan-code/tsparticles/tsparticles/shapes/polygon/src/PolygonDrawerBase.ts
import { type ICoordinates, type IShapeDrawer, type Particle, getRangeValue } from "tsparticles-engine"; import type { IPolygonShape } from "./IPolygonShape"; import type { ISide } from "./ISide"; /** */ export abstract class PolygonDrawerBase implements IShapeDrawer { draw(context: CanvasRenderingContext2D, part...
4,488
0
petrpan-code/tsparticles/tsparticles/shapes/polygon
petrpan-code/tsparticles/tsparticles/shapes/polygon/src/TriangleDrawer.ts
import type { ICoordinates, Particle } from "tsparticles-engine"; import type { ISide } from "./ISide"; import { PolygonDrawerBase } from "./PolygonDrawerBase"; /** */ export class TriangleDrawer extends PolygonDrawerBase { getCenter(particle: Particle, radius: number): ICoordinates { return { ...
4,489
0
petrpan-code/tsparticles/tsparticles/shapes/polygon
petrpan-code/tsparticles/tsparticles/shapes/polygon/src/index.ts
import type { Engine } from "tsparticles-engine"; import { PolygonDrawer } from "./PolygonDrawer"; import { TriangleDrawer } from "./TriangleDrawer"; /** * @param engine - * @param refresh - */ export async function loadGenericPolygonShape(engine: Engine, refresh = true): Promise<void> { await engine.addShape("...
4,490
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/rounded-polygon/.browserslistrc
since 2019 not dead
4,491
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/rounded-polygon/.eslintignore
dist node_modules
4,492
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/rounded-polygon/.eslintrc.js
module.exports = { extends: [ "@tsparticles/eslint-config", ] };
4,493
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/rounded-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-shape-...
4,494
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/rounded-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...
4,495
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/rounded-polygon/README.html
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>tsParticles Rounded Polygon Shape</title> <style> /* From extension vscode.github */ /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All ri...
4,496
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/rounded-polygon/README.md
[![banner](https://particles.js.org/images/banner2.png)](https://particles.js.org) # tsParticles Rounded Polygon Shape [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/tsparticles-shape-rounded-polygon/badge)](https://www.jsdelivr.com/package/npm/tsparticles-shape-rounded-polygon) [![npmjs](https://badge.fury.io...
4,497
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/rounded-polygon/package.dist.json
{ "name": "tsparticles-shape-rounded-polygon", "version": "2.12.0", "description": "tsParticles rounded polygon shape", "homepage": "https://particles.js.org", "repository": { "type": "git", "url": "git+https://github.com/matteobruni/tsparticles.git", "directory": "shapes/rounded-polygon" }, "...
4,498
0
petrpan-code/tsparticles/tsparticles/shapes
petrpan-code/tsparticles/tsparticles/shapes/rounded-polygon/package.json
{ "name": "tsparticles-shape-rounded-polygon", "version": "2.12.0", "description": "tsParticles rounded polygon shape", "homepage": "https://particles.js.org", "scripts": { "build": "tsparticles-cli build", "build:ci": "tsparticles-cli build --ci", "version": "tsparticles-cli build -d && git add p...
4,499