Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
.DS_Store
data
build
node_modules
11 changes: 8 additions & 3 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,17 @@ all: minify
cp -f *.json build/
cp -rf examples build/
mkdir -p build/$(OUTPUT_DIR)
cp -rf css/images build/$(OUTPUT_DIR)/
cp -rf cinema/bandit/$(VERSION)/css/images build/$(OUTPUT_DIR)/
cp -rf cinema/components build/cinema/
cp -rf cinema/lib build/cinema/

minify:
mkdir -p build/$(OUTPUT_DIR)
cd js; cat $(FILES) | babel-minify > ../build/$(OUTPUT_DIR)/$(OUTPUT_PREFIX).js
cat css/*.css > build/$(OUTPUT_DIR)/$(OUTPUT_PREFIX).css
# XXX: Minify
#cat cinema/bandit/$(VERSION)/js/*.js | yarn run babel-minify > build/$(OUTPUT_DIR)/$(OUTPUT_PREFIX).js
# XXX: For debugging, don't minify:
cat cinema/bandit/$(VERSION)/js/*.js > build/$(OUTPUT_DIR)/$(OUTPUT_PREFIX).js
cat cinema/bandit/$(VERSION)/css/*.css > build/$(OUTPUT_DIR)/$(OUTPUT_PREFIX).css

build/cinemascience.github.io:
cd build; git clone https://github.com/cinemascience/cinemascience.github.io.git
Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"dependencies": {
"babel-minify": "^0.5.0"
}
}
33 changes: 28 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,11 @@ A multi-view application for analysis and visualization of experimental data
* With the Zoom/Pan tool selected, click on a data point to select it. This selection will persist even when mousing over other points or off the graph. Click on another data point to change the selection or click in a blank spot on the graph to clear it.
* With the Image view active, scroll over one of the images to zoom on both of them. Click-and-drag to pan.

## How to Build and Install
## How to Build
* Build the external cinema components:
```
make
```
* Install the application to a project location (default install path is build/install):
```
make install INSTALL_PREFIX=/path/to/project_directory
```

## Formatting Data for Bandit
* Data for Bandit is a SpecD Cinema Database with some added dimensions used to load data into the viewer.
Expand All @@ -35,6 +31,33 @@ There are two types of files that can be loaded in Bandit, time series data (.cs
## Issues
* On Safari, the browser may reach a limit for files opened (Safari does not release files from file:// requests until the page is closed) and refuse to load more data when loading particularly large data sets.

## Developing

This requires yarn. Download and install it from https://yarnpkg.com

Install dependecies using yarn:

yarn

After that, you should be able to run `make`.

## Browser Notes

### Firefox

Firefox 68 and later will not load files from the hard-disk to prevent unauthorized access of your filesystem by webpages. To disable this security feature:

1. Open `about:config`.
2. Find `privacy.file_unique_origin` and set it to `false`.

More information: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSRequestNotHttp#Local_File_Security_in_Firefox_68

### Chrome

Chrome will not load files from the hard-disk to prevent unauthorized access of your filesystem by webpages. To disable this security feature, run Chrome with the `--allow-file-access-from-files` command-line option.

More information: https://www.codeproject.com/Questions/1195078/How-to-fix-cross-origin-requests-are-only-supporte

## Changelog
### Version 1.1
* Significant performance improvements. Data is gradually streamed in while it loads/draws so more hangups
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2
1.1
Loading