jwodicka / svg-gen Goto Github PK
View Code? Open in Web Editor NEWa web-based tool for producing SVGs from templates
a web-based tool for producing SVGs from templates
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.
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
react
, react-dom
)react
, react-dom
)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
Right now, WrapText
is working with some hardcoded font metrics and inheriting properties from the overall SVG. It should take that in as props and directly control it for the text boxes under its control to make it more reusable.
There needs to be some sort of UI affordance for selecting what template we want to work with.
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!
There are three major components in this project:
The code structure should reflect this general structure.
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.