This repository contains several mxlibrary sets converted from Azure Icon Collection, which is prepared for use as shape libraries on diagrams.net (formerly draw.io) application. You can easily import them into your documents on the app of online / desktop / VSCode extension versions.
The svg2mxlibrary program which I used to convert SVG icons into an XML file is also available.
The generated mxlibrary files are stored in mxlibrary
branch in the repository.
You can get them via GitHub web site.
To open app.diagrams.net with the mxlibrary imported, use the following links. The mxlibrary imported will be persisted.
To use the mxlibrary with the desktop app, you should first download mxlibrary files, then drag and drop XML files on the app.
To use the mxlibrary as custom libraries with Visual Studio Code Draw.io Integration, add the following snippet in your settings.json.
"hediet.vscode-drawio.customLibraries": [
{
"entryId": "'Official' Azure Icons Set",
"libName": "Azure Icons",
"url": "https://raw.githubusercontent.com/yaegashi/icon-collection-mxlibrary/mxlibrary/azure-icons.xml"
},
{
"entryId": "Azure Docs",
"libName": "Azure Docs",
"url": "https://raw.githubusercontent.com/yaegashi/icon-collection-mxlibrary/mxlibrary/azure-docs.xml"
},
{
"entryId": "'CDS' Azure Icons Set",
"libName": "Azure CDS",
"url": "https://raw.githubusercontent.com/yaegashi/icon-collection-mxlibrary/mxlibrary/azure-cds.xml"
},
{
"entryId": "Azure Patterns Collection",
"libName": "Azure Pattenrs",
"url": "https://raw.githubusercontent.com/yaegashi/icon-collection-mxlibrary/mxlibrary/azure-patterns.xml"
},
{
"entryId": "Logos & Brands",
"libName": "Azure Logos",
"url": "https://raw.githubusercontent.com/yaegashi/icon-collection-mxlibrary/mxlibrary/logos.xml"
},
{
"entryId": "Other Icons",
"libName": "Azure Other",
"url": "https://raw.githubusercontent.com/yaegashi/icon-collection-mxlibrary/mxlibrary/other.xml"
},
],
You need to have Node.js to build and run svg2mxlibrary.
You can run convert.sh to clone https://github.com/benc-uk/icon-collection and convert icon collection folders into mxlibrary files in "out" directory.
$ npm install --no-save svg2mxlibrary
$ ./convert.sh
Cloning into 'icon-collection'...
remote: Enumerating objects: 2842, done.
remote: Counting objects: 100% (2842/2842), done.
remote: Compressing objects: 100% (2739/2739), done.
remote: Total 2842 (delta 153), reused 1216 (delta 99), pack-reused 0
Receiving objects: 100% (2842/2842), 1.72 MiB | 1.95 MiB/s, done.
Resolving deltas: 100% (153/153), done.
Generating mxlibrary out/azure-icons.xml
Generating mxlibrary out/azure-docs.xml
Generating mxlibrary out/azure-cds.xml
Generating mxlibrary out/azure-patterns.xml
Generating mxlibrary out/logos.xml
Generating mxlibrary out/other.xml
- Azure Icon Collection by benc-uk for the great icon set collection we all benefit from.
- Azure Icon Libraries for Diagrams.net (Draw.io) by pacodelacruz directly inspires me to make this mxlibrary repository with the latest Azure Icon Collection.
- How i can use mxGraph instance in node.js is a Stack Overflow question that was a critical clue for me to successfully develop svg2mxlibrary.
I do not attribute ownership to any of icons and images in mxlibrary branch. No copyright infringement is intended. All files have been sourced from Azure Icon Collection by benc-uk, which in turn were collected by scraping the public internet and various Microsoft sites. They are compiled into mxlibrary files under fair use.
svg2mxlibrary is copyrighted under MIT license by yaegashi.