export function loadProvenanceGraphVis(data, parent, options) {
    if (options === void 0) { options = {}; }
    parent.insertAdjacentHTML('beforeend', "<aside class=\"provenance-layout-vis\"></aside>");
    var c;
    return function () {
        if (!c) {
            c = Promise.all([data, System.import('./provvis')]).then(function (args) { return args[1].create(args[0], parent, options); });
        }
        return c;
    };
}
export function loadStoryVis(graph, parent, main, options) {
    parent.insertAdjacentHTML('beforeend', "<aside class=\"provenance-story-vis\"></aside>");
    var c;
    return function () {
        if (!c) {
            c = Promise.all([graph, System.import('./storyvis')]).then(function (args) { return args[1].createStoryVis(args[0], parent, main, options); });
        }
        return c;
    };
}
//# sourceMappingURL=vis_loader.js.map