Code Monkey home page Code Monkey logo

svg-transformers's Introduction

svg-transformers

Rewrite rules for SVG using Scala's XML API for conversion in mapping applications.

This project is still under development and may change drastically between commits. At this point, this is for demonstration purposes only.

Capabilities

Currently this project can:

  • Increase the size of stroke-weights globally by a given factor
  • Add a fill to <g> tags that have direct children who possess a user-specified attribute and user-specified values.
    • Attribute can be prefixed/namespaced (eg: namespace:id="4") or unprefixed/namespaced (eg: id="4")
  • Accept an SVG from a specified filepath or a URL
  • Process the SVG in a streaming fashion

To-Do

  • Optimize for performance
  • Make a fully command-line accessible application
  • Translate zoom levels of a map to stroke-increase factors
  • Write more robust tests for edge cases instead of basic sanity checks.
  • Write documentation

Installation

  1. Clone this repository locally with git clone https://github.com/GeoffreyPS/svg-transformers
  2. If you are missing javac, install Oracle or OpenJDK.
  3. If you are missing sbt install sbt
  4. Run sbt build within your cloned directory

svg-transformers's People

Contributors

geoffreyps avatar

Watchers

 avatar

Forkers

woodrad

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.