Ninja Power Manifesto

    geometrizejs-extra
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.2 • Public • Published

    geometrizejs-extra

    Extra (High level APIs) for geometrizejs.

    Features

    • JPG, PNG, TIFF, GIF, BMP input formats
    • SVG, JSON, JPEG, PNG output formats
    • optimized SVG ouptut
    • ImageRunner steps iteration implementation
    • API to control the steps iteration

    Install

    npm install geometrizejs-extra 

    Usage

    import {Geometrize} from 'geometrizejs-extra'
    const job = new Geometrize({
      input: 'test/assets/bluebells.jpg',
      output: 'tmp/formUrl.svg',
      shapeTypes: [ShapeTypes.TRIANGLE],
      iterations: 1000,
      onFinish: result => {
        
      },
      onStep: step => {
        
      }
    })
    const r = await job.start()

    Options

    Related Projects

    TODO

    • magica to more formats ?
    • input from url
    • document src/options.ts
    • options in readme
    • browser tests
    • readme TOC
    • node.js tests
    • svg optimizer
    • use svg-to-png-converter to render bitmap formats

    Keywords

    none

    Install

    npm i geometrizejs-extra

    DownloadsWeekly Downloads

    3

    Version

    0.0.2

    License

    MIT

    Unpacked Size

    16.6 kB

    Total Files

    12

    Last publish

    Collaborators

    • cancerberosgx