mind-elixir-core icon indicating copy to clipboard operation
mind-elixir-core copied to clipboard

Can you support the display of pictures?

Open jeesun opened this issue 3 years ago • 2 comments

Very good and beautiful tool.Unfortunately, images are not supported

jeesun avatar Aug 25 '22 13:08 jeesun

It may not support in the short term 😂

SSShooter avatar Aug 29 '22 01:08 SSShooter

It may not support in the short term 😂

That's ok.Hope it can support in the future.👍

jeesun avatar Aug 31 '22 09:08 jeesun

<img src="img/url/here">

find the node and attach it at your own risk... thinking of it more

Possibly a link-like functionality with the IMG opening in a modal.

syonfox avatar Dec 13 '22 06:12 syonfox

Done

nodeData = {
  topic: 'node topic',
  id: 'bd1c24420cd2c2f5',
  style: { fontSize: '32', color: '#3298db', background: '#ecf0f1' },
  parent: null,
  tags: ['Tag'],
  icons: ['😀'],
  hyperLink: 'https://github.com/ssshooter/mind-elixir-core',
  image: {
    url: 'https://raw.githubusercontent.com/ssshooter/mind-elixir-core/master/images/logo.png', // required
    // you need to query the height and width of the image and calculate the appropriate value to display the image
    height: 90, // required
    width: 300, // required
  },
  children: [
    {
      topic: 'child',
      id: 'xxxx',
      // ...
    },
  ],
}

SSShooter avatar Mar 16 '23 14:03 SSShooter