|
|
@ -2,6 +2,15 @@ import React, { Fragment } from 'react' |
|
|
|
import { Dropdown } from 'react-bootstrap' |
|
|
|
import { Dropdown } from 'react-bootstrap' |
|
|
|
|
|
|
|
|
|
|
|
export default function UmlDownload() { |
|
|
|
export default function UmlDownload() { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const downloadAsPng = () => { |
|
|
|
|
|
|
|
// convert serialized svg to png and download
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const downloadAsPdf = () => { |
|
|
|
|
|
|
|
// convert serialized svg to pdf and download
|
|
|
|
|
|
|
|
} |
|
|
|
return( |
|
|
|
return( |
|
|
|
<Fragment> |
|
|
|
<Fragment> |
|
|
|
<Dropdown> |
|
|
|
<Dropdown> |
|
|
@ -9,9 +18,9 @@ export default function UmlDownload() { |
|
|
|
<i className="far fa-arrow-to-bottom align-item-center d-flex justify-content-center"></i> |
|
|
|
<i className="far fa-arrow-to-bottom align-item-center d-flex justify-content-center"></i> |
|
|
|
</Dropdown.Toggle> |
|
|
|
</Dropdown.Toggle> |
|
|
|
<Dropdown.Menu> |
|
|
|
<Dropdown.Menu> |
|
|
|
<Dropdown.Item>Download as PNG</Dropdown.Item> |
|
|
|
<Dropdown.Item onClick={downloadAsPng}>Download as PNG</Dropdown.Item> |
|
|
|
<Dropdown.Divider /> |
|
|
|
<Dropdown.Divider /> |
|
|
|
<Dropdown.Item>Download as PDF</Dropdown.Item> |
|
|
|
<Dropdown.Item onClick={downloadAsPdf}>Download as PDF</Dropdown.Item> |
|
|
|
</Dropdown.Menu> |
|
|
|
</Dropdown.Menu> |
|
|
|
</Dropdown> |
|
|
|
</Dropdown> |
|
|
|
</Fragment> |
|
|
|
</Fragment> |
|
|
|