This project has been moved to https://github.com/mind-elixir/plugins/tree/main/packages/export-mindmap. This repository will no longer be maintained.
@mind-elixir/export-html is a plugin of mind-elixir-core. You can use @mind-elixir/export-html to export a .html file.
npm i @mind-elixir/export-html file-saver
import MindElixir from 'mind-elixir'
import exportHtml from '@mind-elixir/export-html'
const mind = new MindElixir(options)
mind.install(exportHtml)
mind.init(data)
const blob = await mind.exportHtml() // get blob
mind.exportHtmlFile(fileName) // download fileimport { data2Html } from '@mind-elixir/export-html'
// use this way to avoid creating instance
const blob = await data2Html(JSON.parse(JSON.stringify(data))) // data returned by getData()@mind-elixir/[email protected] -> mind-elixir 1.x
@mind-elixir/[email protected] -> mind-elixir 2.x
@mind-elixir/[email protected] -> mind-elixir 3.x