Giter Site home page Giter Site logo

icon-collection-mxlibrary's Introduction

Azure Icon Collection mxlibrary for diagrams.net (formerly draw.io)

Introduction

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.

How to use

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.

Icon Galleries Links
'Official' Azure Icons Set Open app.diagrams.net with azure-icons.xml
Azure Docs Open app.diagrams.net with azure-docs.xml
'CDS' Azure Icons Set Open app.diagrams.net with azure-cds.xml
Azure Patterns Collection Open app.diagrams.net with azure-patterns.xml (watch out, >1500 icons!)
Logos & Brands Open app.diagrams.net with logos.xml
Other Icons Open app.diagrams.net with other.xml

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"
        },
    ],

How to convert SVG icons to mxlibrary

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

Credits

Ownership & copyright

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.

icon-collection-mxlibrary's People

Contributors

yaegashi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.