export mind map as image

Export Mind Map as Image

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "export mind map as image" with this command: npx skills add ssshooter/mind-elixir-core/ssshooter-mind-elixir-core-export-mind-map-as-image

Export Mind Map as Image

Mind Elixir recommends using @zumer/snapdom for high-quality image exports. This tool allows you to convert the SVG nodes directly into image formats.

  1. Installation

Install @zumer/snapdom as a dependency.

npm install @zumer/snapdom

  1. Usage

Use the snapdom function to capture the mind map nodes and download them.

import { snapdom } from '@zumer/snapdom' // Assuming mind is your MindElixir instance

const downloadImage = async () => { // 1. Capture the nodes const result = await snapdom(mind.nodes)

// 2. Download as JPG or PNG await result.download({ format: 'jpg', // or 'png' filename: 'mind-map-export', }) }

  1. Creating a Trigger

You can add a button to your UI to trigger this function.

<button id="export-btn">Export Image</button>

<script> document.getElementById('export-btn').addEventListener('click', downloadImage) </script>

Note: The built-in mind.exportSvg() method is deprecated. Please use the method above for new projects.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

streaming mindmap rendering

No summary provided by upstream source.

Repository SourceNeeds Review
General

customize markdown

No summary provided by upstream source.

Repository SourceNeeds Review
General

mind elixir plaintext format

No summary provided by upstream source.

Repository SourceNeeds Review