-
Notifications
You must be signed in to change notification settings - Fork 672
Extending
Vilius edited this page Dec 29, 2017
·
8 revisions
miniPaint can be extended, modified by adding:
- modules - extra functionality accessed from menu.
- tools - extra tool in left sidebar.
- Register new menu on src/js/config-menu.js (example:
<li><a class="trn" data-target="effects/example.functionName" href="#">Title</a>
) - Create module file in src/js/modules/effects/example.js. From there you can import src/js/config.js, src/js/core/base-layers.js or any other file including files in
node_modules
. - Add class
example
with methodfunctionName
, which will be called on new menu click. - Add your functionality. You can check existing examples to help you.
- Test.