DDMAL / pixel_wrapper

Rodan Pixel.js Wrapper
Other
0 stars 1 forks source link

Pixel Wrapper

A wrapper to run Pixel.js on top of Diva.js as a job in the workflow builder Rodan

Installation

Running Rodan

Using Pixel as a Rodan job

Here are some user-level instructions on adding a pixel.js job in RODAN.

Port setup

Making changes to the pixel_wrapper source code

Sometimes changes need to be done to the wrapper code found in source/js/plugins/pixel-wrapper.js, or the Pixel.js source code in source/js/plugins/Pixel.js.

If this is the case, make sure to run gulp develop:rodan from the pixel_wrapper directory after making any changes. This will compile the source code and move it to the static folder, which is used to upload the code to the server running Rodan. You won't need to restart Rodan.

If you make any changes to the css files, you'll need to move them manually the pixel_wrapper/static/css folder.

Testing

Unit testing for Pixel Wrapper is done using Selenium, and requires a web browser (FireFox, make sure you have the latest version if already installed), and its driver (geckodriver).

Differences from the standalone Pixel

This wrapper changes some of the functionality inherited from the standalone Pixel.js, as well as introducing some new ones.