Skip to content

Commit

Permalink
Merge pull request #51 from nebiolabs/develop
Browse files Browse the repository at this point in the history
Version 1.0.3
  • Loading branch information
gorj-tessella authored Apr 5, 2019
2 parents 879b174 + 8ac7ca9 commit a8028ae
Show file tree
Hide file tree
Showing 31 changed files with 768 additions and 5,596 deletions.
23 changes: 9 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ the Github repository.
$("#my-plate-layout").plateLayOut({
numRows: 8,
numCols: 12,
imgSrc: "css",
readOnly: false, // optional
attributes: attributes,
updateWells: function(event, data) {
Expand Down Expand Up @@ -234,6 +233,12 @@ This function may be called at any time to load data. Well data should be passed
}
```

## createObject()
Calling this function will return the current state of the plate-map, in the form as passed into `getPlates`.
```js
$("#my-plate-layout").plateLayOut("createObject")
```

## isReadOnly()
This function will disable editing of the plates, set `flag` to true for read only mode and set `flag` to false to disable read only mode
```js
Expand Down Expand Up @@ -467,20 +472,10 @@ options for subfield id `raw_value` will be `["unit1", "unit2"]` , which is used
## Requirements
**Note** that this project was tested with _Node_ v9.10.1 and _NPM_ v5.6.0.

If this is your first time, start by installing the npm dependencies: `npm install`

Building this project also requires the libraries _gif_lib_ and _jpeg_lib_ (required the _Canvas_ npm package).
If this is your first time:
1. install the (os) dependencies of the `canvas` library: https://www.npmjs.com/package/canvas/v/1.6.11
2. run `npm install` in this directory

- On Linux/Ubuntu :
```bash
sudo apt install libgif-dev
sudo apt install libjpeg-dev
```
- On Mac OS :
```bash
brew install giflib
brew install libjpeg
```

## Project Structure
```
Expand Down
Loading

0 comments on commit a8028ae

Please sign in to comment.