Skip to content

About

Ported plugin collection for paint.js

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

Repository files navigation

paintdotjs-plugins

A plugin collection for paint.js.

Plugins can add effects, adjustments, and file-type support. Users can install them through the plugin browser in paint.js or by importing a .paintjs package directly.

Repository structure

Each plugin has its own directory under plugins/:

plugins/example-plugin/
├── plugin.json
├── plugin.js
├── package.json
└── assets/
    └── icon.png
  • plugin.json contains the plugin metadata.
  • plugin.js registers the plugin and implements its behavior.
  • package.json is only needed when the plugin uses npm dependencies.
  • assets/ is optional and contains images or other files used by the plugin.

Use paintDotJs.asset("icon.png") to reference a packaged asset from plugin.js.

Build locally

Install the dependencies and build the plugin catalog:

npm ci
npm run build

The generated .paintjs packages and catalog.json are written to dist/.

To test a plugin, open Settings → Plugins in paint.js and either drop the generated .paintjs file onto the page or select Install plugin….

Add a plugin

  1. Create a new directory under plugins/.
  2. Add plugin.json and plugin.js.
  3. Add any optional files to assets/.
  4. Run npm run build.
  5. Install the generated package from dist/ and test it in paint.js.

Use another plugin in this repository as a starting point. Keep metadata in plugin.json; plugin.js should contain only the implementation and registration.

Plugin API

The paint.js plugin API guide explains plugin registration, effects, controls, whole-image rendering, file types, assets, and workers.

Format plugin source files with:

npm run format

About

Ported plugin collection for paint.js

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages