MCPcopy Index your code
hub / github.com/Barrior/JParticles

github.com/Barrior/JParticles @v3.5.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v3.5.0 ↗ · + Follow
186 symbols 463 edges 50 files 71 documented · 38%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

JParticles

Testing Coverage Gzip Size NPM Version NPM Download Dependencies

English | 中文

Official Site & API Documentation

Animation Effects

Introduction

JParticles(abbreviation for JavaScript particles) is a lightweight JavaScript library for build some cool particle effects in WEB page base on Canvas.

Concept

The main Concept of API design are: The Write Less, Do More and Keep It Simple And Stupid. Hope the library is easy-to-use, high performance and easy-to-maintain.

Compatibility

The library should work fine on the following browsers (because of this compatibility table) :

  • IE 9+
  • Safari 6+
  • Opera 15+
  • Firefox 21+
  • Chrome 23+

For not support browsers it will fail quietly.

Communication

If you have any questions or ideas to help JParticles make progress, you are welcome to put forward your views to issues or discussions. Thanks.

Changelog

Detailed changes for each release are documented in the release notes.

License

MIT

Copyright (c) 2016-present, Barrior

Extension points exported contracts — how you extend this code

Window (Interface)
* 添加 window 对象兼容属性
src/types/global.d.ts
GeneralElement (Interface)
(no doc)
src/common/base.ts
Options (Interface)
(no doc)
src/types/particle.d.ts
ShapeData (Interface)
(no doc)
src/common/shape.ts
IElement (Interface)
(no doc)
src/types/particle.d.ts
Options (Interface)
(no doc)
src/types/wave-loading.d.ts
IElement (Interface)
(no doc)
src/types/wave-loading.d.ts

Core symbols most depended-on inside this repo

on
called by 17
src/common/events.ts
trigger
called by 16
src/common/events.ts
degreesToRadians
called by 14
src/utils/math.ts
randomInRange
called by 14
src/utils/random.ts
isElement
called by 10
src/utils/checking.ts
randomSpeed
called by 9
src/utils/random.ts
calcQuantity
called by 7
src/utils/math.ts
isPlainObject
called by 6
src/utils/checking.ts

Shape

Function 87
Method 64
Class 17
Interface 15
Enum 3

Languages

TypeScript100%

Modules by API surface

samples/js/require.min.js28 symbols
src/particle.ts17 symbols
src/wave-loading.ts16 symbols
src/wave.ts14 symbols
src/common/base.ts14 symbols
src/utils/checking.ts11 symbols
src/snow.ts10 symbols
src/line.ts8 symbols
scripts/logger.mjs8 symbols
src/utils/dom.ts6 symbols
src/common/shape.ts6 symbols
src/common/mask.ts6 symbols

For agents

$ claude mcp add JParticles \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact