Giter Club home page Giter Club logo

svg-gen's People

Contributors

jwodicka avatar renovate-bot avatar

Watchers

 avatar

svg-gen's Issues

Support autoscaling in WrapText.

WrapText currently attempts to reflow text to fit, but cannot resize it.

For autoscaling, WrapText should accept a list of allowable sizes in priority order (probably largest to smallest unless we add some rule other than overflow that would force a reflow). If it cannot obtain a valid flow at one size, it should move to the next in line until it finds a valid flow or it runs out of sizes and flows to attempt.

This puts the template designer in control of what reflows are permissible, without making them manually reflow everything.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

npm
package.json
  • @testing-library/jest-dom 4.2.4
  • @testing-library/react 9.4.0
  • @testing-library/user-event 8.0.3
  • file-saver 2.0.2
  • react 16.12.0
  • react-dom 16.12.0
  • react-scripts 3.3.0

  • Check this box to trigger a request for Renovate to run again on this repository

Remove cra cruft

Some of the things create-react-app produces are only for use in their initial demo page. Expunge them from the repo; we don't need 'em!

Restructure code to separate major components

There are three major components in this project:

  • The app, which presents a template and its variables to the user and permits them to interactively adjust variables.
  • The templates, which should be clean and design-centric, so they are easy to work with for someone who is familiar with SVG but not necessarily JS.
  • The helper components, which should be neatly encapsulated so they expose clean blocks of functionality to the templates.

The code structure should reflect this general structure.

Solidify the contract that templates adhere to

A template is a standard React component, plus some additional metadata that allows us to render some props as user-editable variables.

We should document this contract in a .md file in the repo, and add some validation code to the app that checks whether an object presented as a template is valid.

Support text positioning / justification in WrapText

WrapText currently centers text both horizontally and vertically in its available range.

It should definitely support pin-to-top and pin-to-bottom, as well as left- and right-justified ragged text. If there's an acceptable justification algorithm available to us, it would also be nice to support more standard justification.

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.