SeuratJS — Attributes

attributes describe what your Raphaël elements look like when they are generated. In this example the radius of our circles is set to 3 and a 1 pixel stroke is set. Depending on the type of element you are using can determine which attibutes are valid to set here.

paper.seurat({ imageSource: 'imgs/circus.png',
                attributes: {r: 3, stroke: 1}});

Note paper is a Raphaël canvas object as defined here.

Chrome Users Because SeuratJS uses the HTML5 canvas element if you are attempting to debug from file:// as opposed to a local webserver you will need to run Chrome using the --allow-file-access-from-files flag. More info here.