mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge branch 'dev' into visualization_header
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
import $ from "jquery";
|
||||
window.jQuery = window.$ = window.jquery = $;
|
||||
@@ -1,9 +1,14 @@
|
||||
import * as bootstrap from "bootstrap";
|
||||
import "./jqglobals";
|
||||
// This is a really annoying hack to get bootstrap/jqui jquery bindings available correctly.
|
||||
/* global $ */
|
||||
import * as Backbone from "backbone";
|
||||
import * as d3 from "d3";
|
||||
import "jquery-ui-bundle";
|
||||
import * as _ from "underscore";
|
||||
import "../../../../../client/galaxy/scripts/ui/peek-column-selector";
|
||||
import "../../../../../client/galaxy/scripts/ui/pagination";
|
||||
import "jquery-ui-bundle";
|
||||
import "bootstrap";
|
||||
|
||||
//TODO: Finish unlinking this from the Galaxy codebase (package it, use that way?)
|
||||
|
||||
var Visualization = Backbone.Model.extend({
|
||||
@@ -244,7 +249,7 @@ export function scatterplot(renderTo, config, data) {
|
||||
//console.log( 'grid.h.lines:', grid.h.lines );
|
||||
return grid;
|
||||
}
|
||||
var grid = renderGrid();
|
||||
renderGrid();
|
||||
|
||||
//// .................................................................... datapoints
|
||||
var datapoints = content
|
||||
@@ -305,7 +310,7 @@ export function scatterplot(renderTo, config, data) {
|
||||
$(".chart-info-box").remove();
|
||||
axis.redraw();
|
||||
_redrawDatapointsClipped();
|
||||
grid = renderGrid();
|
||||
renderGrid();
|
||||
|
||||
$(svg.node()).trigger("zoom.scatterplot", {
|
||||
scale: zoom.scale(),
|
||||
@@ -627,7 +632,7 @@ var ScatterplotConfigEditor = Backbone.View.extend({
|
||||
.save()
|
||||
.fail(function(xhr, status, message) {
|
||||
console.error(xhr, status, message);
|
||||
editor.trigger("save:error", view);
|
||||
editor.trigger("save:error", this);
|
||||
alert("Error loading data:\n" + xhr.responseText);
|
||||
})
|
||||
.then(function() {
|
||||
@@ -805,7 +810,8 @@ ScatterplotConfigEditor.templates = {
|
||||
*/
|
||||
var ScatterplotDisplay = Backbone.View.extend({
|
||||
initialize: function(attributes) {
|
||||
(this.data = null), (this.dataset = attributes.dataset);
|
||||
this.data = null;
|
||||
this.dataset = attributes.dataset;
|
||||
this.lineCount = this.dataset.metadata_data_lines || null;
|
||||
},
|
||||
|
||||
@@ -815,8 +821,8 @@ var ScatterplotDisplay = Backbone.View.extend({
|
||||
var view = this,
|
||||
config = this.model.get("config"),
|
||||
//TODO: very tied to datasets - should be generalized eventually
|
||||
baseUrl = window.parent && parent.galaxy_config ? parent.galaxy_config.root : "/",
|
||||
xhr = jQuery.getJSON(baseUrl + "api/datasets/" + this.dataset.id, {
|
||||
baseUrl = window.parent && window.parent.galaxy_config ? window.parent.galaxy_config.root : "/",
|
||||
xhr = $.getJSON(baseUrl + "api/datasets/" + this.dataset.id, {
|
||||
data_type: "raw_data",
|
||||
provider: "dataset-column",
|
||||
limit: config.pagination.perPage,
|
||||
@@ -978,9 +984,9 @@ var ScatterplotDisplay = Backbone.View.extend({
|
||||
if (!this.data) {
|
||||
return;
|
||||
}
|
||||
var view = this,
|
||||
config = this.model.get("config"),
|
||||
meanWorker = new Worker("worker-stats.js");
|
||||
var view = this;
|
||||
var config = this.model.get("config");
|
||||
var meanWorker = new window.Worker("worker-stats.js");
|
||||
meanWorker.postMessage({
|
||||
data: this.data,
|
||||
keys: [config.xColumn, config.yColumn]
|
||||
|
||||
Reference in New Issue
Block a user