mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Initial parcel building for scatterplot
This commit is contained in:
@@ -1,23 +1,24 @@
|
||||
{
|
||||
"name": "galaxy-scatterplot",
|
||||
"version": "0.0.0",
|
||||
"description": "Scatterplot visualization plugin for the Galaxy informatics framework",
|
||||
"main": " ",
|
||||
"scripts": {
|
||||
"test": "test"
|
||||
},
|
||||
"keywords": [
|
||||
"galaxy",
|
||||
"visualization",
|
||||
"d3"
|
||||
],
|
||||
"author": "Carl Eberhard",
|
||||
"license": "BSD",
|
||||
"devDependencies": {
|
||||
"grunt": "~0.4.1",
|
||||
"grunt-cli": "~0.1.9",
|
||||
"grunt-contrib-concat": "~0.3.0",
|
||||
"grunt-contrib-uglify": "~0.2.2",
|
||||
"grunt-contrib-watch": "~0.5.3"
|
||||
}
|
||||
"name": "galaxy-scatterplot",
|
||||
"version": "0.0.0",
|
||||
"description": "Scatterplot visualization plugin for the Galaxy informatics framework",
|
||||
"main": " ",
|
||||
"scripts": {
|
||||
"test": "test",
|
||||
"build": "parcel build src/scatterplot.js -d static/"
|
||||
},
|
||||
"keywords": [
|
||||
"galaxy",
|
||||
"visualization",
|
||||
"d3"
|
||||
],
|
||||
"author": "Carl Eberhard",
|
||||
"license": "BSD",
|
||||
"dependencies": {
|
||||
"backbone": "^1.3.3",
|
||||
"bootstrap": "^3.3.7",
|
||||
"d3": "^3.5.17",
|
||||
"jquery": "^3.2.1",
|
||||
"jquery-ui-bundle": "^1.12.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
import * as VisualizationModel from "mvc/visualization/visualization-model";
|
||||
import * as bootstrap from "bootstrap";
|
||||
import * as Backbone from "libs/backbone";
|
||||
import * as Backbone from "backbone";
|
||||
import * as d3 from "d3";
|
||||
import "jquery-ui-bundle";
|
||||
import * as d3 from "libs/d3";
|
||||
import "ui/peek-column-selector";
|
||||
import "ui/pagination";
|
||||
import * as VisualizationModel from "../../../../../client/galaxy/scripts/mvc/visualization/visualization-model";
|
||||
import "../../../../../client/galaxy/scripts/ui/peek-column-selector";
|
||||
import "../../../../../client/galaxy/scripts/ui/pagination";
|
||||
//TODO: Finish unlinking this from the Galaxy codebase (package it, use that way?)
|
||||
|
||||
/**
|
||||
* Two Variable scatterplot visualization using d3
|
||||
@@ -930,7 +931,7 @@ var ScatterplotDisplay = Backbone.View.extend({
|
||||
}
|
||||
var view = this,
|
||||
config = this.model.get("config"),
|
||||
meanWorker = new Worker("/plugins/visualizations/scatterplot/static/worker-stats.js");
|
||||
meanWorker = new Worker("worker-stats.js");
|
||||
meanWorker.postMessage({
|
||||
data: this.data,
|
||||
keys: [config.xColumn, config.yColumn]
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
require=function(r,e,n){function t(n,o){function i(r){return t(i.resolve(r))}function f(e){return r[n][1][e]||e}if(!e[n]){if(!r[n]){var c="function"==typeof require&&require;if(!o&&c)return c(n,!0);if(u)return u(n,!0);var l=new Error("Cannot find module '"+n+"'");throw l.code="MODULE_NOT_FOUND",l}i.resolve=f;var a=e[n]=new t.Module;r[n][0].call(a.exports,i,a,a.exports)}return e[n].exports}function o(){this.bundle=t,this.exports={}}var u="function"==typeof require&&require;t.Module=o,t.modules=r,t.cache=e,t.parent=u;for(var i=0;i<n.length;i++)t(n[i]);return t}({2:[function(require,module,exports) {
|
||||
onmessage=function(s){importScripts("numeric-column-stats.js"),postMessage(numericColumnStats(s.data.data,s.data.keys)),self.close()};
|
||||
},{}]},{},[2])
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -29,7 +29,7 @@ window.Galaxy = { root: '${ root }' };
|
||||
${h.js( 'libs/jquery/jquery',
|
||||
'libs/underscore',
|
||||
'libs/d3')}
|
||||
${h.javascript_link( root + 'plugins/visualizations/scatterplot/static/scatterplot.bundle.js' )}
|
||||
${h.javascript_link( root + 'plugins/visualizations/scatterplot/static/scatterplot.js' )}
|
||||
|
||||
<script type="text/javascript">
|
||||
function getModel(){
|
||||
|
||||
Reference in New Issue
Block a user