Skip to content

Pixano Elements - Re-usable web components dedicated to data annotation tasks.

License

Notifications You must be signed in to change notification settings

bpioge/pixano-elements

 
 

Repository files navigation

Pixano

Pixano Elements

License Live Demo Published on npm Node.js CI

Alt text

Pixano Elements - Library of web components dedicated to data annotation tasks. A complete and ready-to-use annotation application is available at https://github.com/pixano/pixano-app.

IMPORTANT: The Pixano Web Components are a work in progress and subject to major changes until 1.0 release.

Playcode demo (interactive-segmentation, cuboid, rectangle, smart-rectangle)

Website demos

Features video

Automatic build tests on Ubuntu (latest) and node version 10, 12, 14.

Table of content

Requirements

Pixano requires WebGL to be activated in your browser. If you see the following error in you console WebGL unsupported in this browser, please activate it.

For development, you will only need Node.js installed in your environement.

  • Node installation on Windows

    Just go on official Node.js website and download the installer. Also, be sure to have git available in your PATH, npm might need it (You can find git here).

  • Node installation on Ubuntu

    You can install nodejs and npm easily with apt install, just run the following commands.

    sudo apt install nodejs
    sudo apt install npm

    Or install it with snap: sudo snap install node

  • Other Operating Systems

    You can find more information about the installation on the official Node.js website and the official NPM website.

If the installation was successful, you should be able to run the following command.

node --version
# v8.11.3

npm --version
# 6.1.0

Run demo

git clone https://github.com/pixano/pixano-elements.git
cd pixano-elements/demos/rectangle
npm i
npx serve

Components overview

The Pixano Elements are divided into packages. Each package can be installed independantly from NPM using the following command:

npm install @pixano/graphics-2d

Each package can contain multiple web components which are regrouped by affinity.

Component Status Demo
<pxn-rectangle> Published on npm demo
<pxn-polygon> Published on npm demo
<pxn-segmentation> Published on npm demo
<pxn-graph> Published on npm demo
<pxn-smart-rectangle> Published on npm demo
<pxn-cuboid-editor> Published on npm demo

Documentation

📚 Check out the TypeDoc documentation. Each package's usage and API is also documented:

You can also try the demos on our website.

Contributing

Clone and setup the repo:

git clone https://github.com/pixano/pixano-elements.git
cd pixano-elements
npm i
npm run bootstrap
npm run build

To run the demos locally, serve one of the demo folders:

npx serve demos/rectangle

Getting started

To create a new component, check our tutorial.

Please follow our coding guidelines for your contributions.

Pull request

# Fork the repo from the upstream remote repo to your personal github
# Then clone the repo into local machine to work locally and do some changes
# Then configure the git remote for the fork
git remote add upstream [email protected]:pixano/pixano-elements.git
# Important: sync your local forked repo with the remote repo
# Or use cherry-pick if you want to make sure to not include some internal commits
git pull upstream master
# Merge the changes from upstream/master into your local master branch
git checkout master
git merge upstream/master
# Then in the browser navigate to the original URL of the original pixano-elements repo
# Click on “Create Pull Request”

Change log

Releases

License

Pixano is released under the CeCILL-C license, a free software license adapted to both international and French legal matters that is fully compatible with the FSF's GNU/LGPL license.

About

Pixano Elements - Re-usable web components dedicated to data annotation tasks.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 99.2%
  • JavaScript 0.8%