molstar
Version:
A comprehensive macromolecular library.
19 lines (18 loc) • 982 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.volumeStreamingControls = void 0;
var tslib_1 = require("tslib");
var jsx_runtime_1 = require("react/jsx-runtime");
/**
* Copyright (c) 2019 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author David Sehnal <david.sehnal@gmail.com>
*/
var ReactDOM = tslib_1.__importStar(require("react-dom"));
var plugin_1 = require("../../../mol-plugin-ui/plugin");
var update_transform_1 = require("../../../mol-plugin-ui/state/update-transform");
var helpers_1 = require("../helpers");
function volumeStreamingControls(plugin, parent) {
ReactDOM.render((0, jsx_runtime_1.jsx)(plugin_1.PluginContextContainer, tslib_1.__assign({ plugin: plugin }, { children: (0, jsx_runtime_1.jsx)(update_transform_1.TransformUpdaterControl, { nodeRef: helpers_1.StateElements.VolumeStreaming }) })), parent);
}
exports.volumeStreamingControls = volumeStreamingControls;
;