Giter Site home page Giter Site logo

oyazicioglu / svg-nest Goto Github PK

View Code? Open in Web Editor NEW

This project forked from franksandqvist/svg-nest

0.0 0.0 0.0 1.74 MB

An early attempt at porting Jack000's SVGNest into a server-side Typescript NodeJS library.

JavaScript 46.46% TypeScript 16.95% CSS 6.43% HTML 30.16%

svg-nest's Introduction

An early attempt at porting Jack000's SVGNest into a Typescript NodeJS library.

Unfortunately, I'm not too familiar with the algorithms, so I'm attempting a straight port. (So I may have gotten some of the types wrong at this point)

I'm not really happy with this port at this point, a ton of cleanup needed. There's currently no consistency in the set-up leading up to the actual nesting (some stuff is done by mutating, and some stuff done immutable).

Thinking of using Worker Threads?

Some stuff done so far;

  • XML2JS to convert the SVG into plain object
  • NPM to get clipper-lib, svg-pathdata, svgpath
  • Trying to make it as functional as possible (small classes)
  • newer JS/TS features
  • I'd say that up until launchWorkers, some good progress has been made

Any help is appreciated!

svg-nest's People

Contributors

bebbssos avatar franksandqvist 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.