Commit 663f4f97 authored by Dannon Baker's avatar Dannon Baker
Browse files

MSA visualization fix and future proofing.

parent c0e3c232
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@ const STATIC_PLUGIN_BUILD_IDS = [
    "hyphyvision",
    "jqplot/jqplot_bar",
    "media_player",
    "msa",
    "mvpapp",
    "ngl",
    "nvd3/nvd3_bar",
+0 −5
Original line number Diff line number Diff line
@@ -9,11 +9,6 @@
    "dependencies": {
        "babel-plugin-transform-export-extensions": "^6.22.0",
        "babel-preset-env": "^1.6.1",
        "backbone": "^1.3.3",
        "bootstrap": "^3.3.7",
        "es2015": "0.0.0",
        "jquery": "^3.1.1",
        "msa": "^1.0.3",
        "parcel-bundler": "^1.4.1"
    },
    "scripts": {
+21 −0

File added.

Preview size limit exceeded, changes collapsed.

+20 −0
Original line number Diff line number Diff line
import './msa.min.js';

console.debug("MSA IS", msa);
Object.assign(window.bundleEntries || {}, {
    load: function (options) {
        console.debug('OPTIONS ARE', options);
        var r = options.chart,
            i = options.dataset,
            o = r.settings,
            s = msa({
                el: $("#" + options.target),
                vis: { conserv: "true" == o.get("conserv"), overviewbox: "true" == o.get("overviewbox") },
                menu: "small",
                bootstrapMenu: "true" == o.get("menu"),
            });
        s.u.file.importURL(i.download_url, function () {
            s.render(), r.state("ok", "Chart drawn."), options.process.resolve();
        });
    },
});
+4 −0

File added.

Preview size limit exceeded, changes collapsed.