accurat / yogurt-layout Goto Github PK
View Code? Open in Web Editor NEWA small JS layout computation library, to organize space in SVGs and canvases.
License: MIT License
A small JS layout computation library, to organize space in SVGs and canvases.
License: MIT License
We need to define a couple things:
gap
work?
div > * + * { margin-left: x }
where it's placed between childs only if the children are >1.gap
be number | [number, number]
, to allow vertical/horizontal?cc @ivanross @marcofugaro @gsimone (#1)
Hey! ๐ Great little lib, I'm playing around with it and react-three-fiber, since laying stuff out is usually painful: https://codesandbox.io/s/blissful-lake-84hxp (<= this might explode while I work on it :D )
Here's a couple of quick things:
gap
and margin
properties. In the example I wanted to add some gap between items, it would be great being able to do it without having to add a containerdirection
could default to row
like flex-direction
does in cssheight
and width
defaults (auto
probably), just to reduce boilerplateAnyway, main message is: Kudos, this is great!
cc @ivanross
Some functions (called for example debugSVG
or debugCanvas
) that print a debug grid around every block and margin/padding/gap.
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.