UNPKG

@ichigo_san/graphing

Version:

A lightweight UML-style diagram editor built with React Flow and Tailwind CSS

41 lines (38 loc) 1.24 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _exportNames = { configureGraphing: true }; exports.configureGraphing = void 0; require("./graphing.css"); var _index = require("./components/index.js"); Object.keys(_index).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; if (key in exports && exports[key] === _index[key]) return; Object.defineProperty(exports, key, { enumerable: true, get: function () { return _index[key]; } }); }); // Automatically include the bundled styles when the library is imported // Export a function to configure the library const configureGraphing = (options = {}) => { // Configure worker behavior globally if (options.useWorker !== undefined) { window.__GRAPHING_USE_WORKER__ = options.useWorker; } // Configure worker path if provided if (options.workerPath) { window.__GRAPHING_WORKER_PATH__ = options.workerPath; } console.log('🔧 Graphing: Library configured', { useWorker: window.__GRAPHING_USE_WORKER__, workerPath: window.__GRAPHING_WORKER_PATH__ }); }; exports.configureGraphing = configureGraphing;