commit | f8160b25fe4ebf8167f9fcb810a42b8d3dd3cceb | [log] [tgz] |
---|---|---|
author | Ben Rohlfs <brohlfs@google.com> | Tue Mar 19 11:53:23 2019 +0000 |
committer | brohlfs <brohlfs@google.com> | Tue Mar 19 13:00:38 2019 +0100 |
tree | 6f291fa63398843f84c60996d314650f03af008f | |
parent | 86aa7ec3b6dfe0af31213e60d5a213aa94b108d7 [diff] |
Revert "Use "resemblejs" dep" This reverts commit b899ec56016293af14d14591ac51a3db5d1ece2c. Reason for revert: It is not necessary to lazily load the resemblejs library. It can be built into the plugin js, which is much simpler and easier to maintain. Will follow up with the simple fix. Change-Id: Idb522895dc80951dbc2d10a23957edd1f5918710
A plugin that provides a rich image diffing experience in PolyGerrit. Currently, the plugin features two modes: Highlight Mode and Onion Skin.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Yarn - Node package manager
Use Homebrew to install yarn on macOS:
brew install yarn
Reference here for instruction on how to install on other systems.
Clone the repo and run
yarn install
to install the dependencies.
This mode uses the Resemble.JS (1.2.1) library in its development The following features are included in this mode:
Onion Skin mode is a great way for users to notice changes in the images that might be overlooked when you look at them side by side. By overlaying the new image on top of the old image, the users can change the opacity to see the transition that were made.
The following features are included in this mode:
This plugin uses polymer-cli to test.
Inside your image-diff repo, run polymer serve
to start a local web server and open localhost:8080/test
to view your tests. See here for more info.
Reference here on how to set up your Gerrit testsite and here for PolyGerrit plugin development.