npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@vertigis/icons

v5.3.0

Published

Icons for VertiGIS products

Downloads

124

Readme

Introduction

This project includes a collection of icons used by VertiGIS products.

Adding Icons

Make sure to run npm install before committing, as we automatically run svgo as a pre-commit hook to ensure the icons that are committed are optimized.

If you're simply adding a new icon you can place your .svg file in the icons directory. svgo will be run automatically on commit to ensure that the icons are minified and stripped of unnecessary content. You can also use npm run optimize to manually trigger a run of svgo over all the icon files.

Important notes when adding icons:

  • Convert all strokes to paths
  • Merge overlapping shapes
  • Knockout whitespace in objects
  • Do a quick manual review to make sure there are no unnecessary anchor points (extra anchors on a straight line are too common)
  • File names must not contain dashes as it is not supported by Android VectorDrawables. Use underscores instead. map-marker.svg => map_marker.svg
  • As of 2023, icons with an alternate state , such as an "off" state, should have an "_off" suffix. Stateless or "on" state icons do not use a suffix. This follows MUI's current icon naming scheme.
  • Certain elements and attributes are not supported across the web/iOS/Android platforms. Make sure your SVG is compliant with all 3 platforms. Some examples include <text>, <linearGradient>, etc.

Building the Icons

This step isn't necessary to add a new icon. This is only needed to debug issues with the CI build itself.

The project converts the .svg icons to iOS .pdf and Android .xml equivalents. The build is done automatically on our CI server, but if you wish to build them locally you will need to install Docker.

To build the icons run the following command using (if not using a bash like terminal such as git-bash, you can remove the \ and convert the command to one line):

mkdir -p dist && \
docker build -t gcx-icons . && \
docker create --name gcx-icons gcx-icons && \
docker cp gcx-icons:/gcx/icons/. ./dist/ && \
docker rm gcx-icons

This command will:

  • Build an image based on our Dockerfile. This will include the converted icons
  • Create a container from the image
  • Copy the converted icons from the container back to this project's dist folder
  • Remove the container. Note that the image still hangs around. You can delete the image using docker image rm gcx-icons if you'd like to clean it up

License

We have made these icons available for you under the Apache License Version 2.0. The only thing we ask is that you not re-sell these icons.