the-grid / rig Goto Github PK
View Code? Open in Web Editor NEWResponsive Image Generator
License: MIT License
Responsive Image Generator
License: MIT License
If an error is throw (because a cover doesn't have a width for example) it would be helpful to see the block or know the block ID.
Basically the same as imgflo/imgflo-url#6, removes the need for 8a6561e.
This should be doable given that it was done in imgflo/imgflo-url#2.
The API is pretty clunky at the moment, but necessarily so.
For specific graphs, the API could be simplified to something like:
css = rig.passthrough block, config, [{
selector: '#background'
query: '(max-width: 503px)'
width: 400
}]
For simple media query breakpoints with the same selector, the API could be something like:
css = rig.breakpoints block, config, graph, params,
selector: '#background'
breakpoints: [504, 1008]
widths: [500, 1000, 1200] # or heights
This means that the 500px width image would be used for the media queries like so:
@media (min-width: 503px) { /* 500px wide image */ }
@media (min-width: 504px) and (max-width: 1007px) { /* 1000px wide image */ }
@media (min-width: 1008px) { /* 1200px wide image */ }
Any number of breakpoints could be supported as long as breakpoints.length == widths.length + 1
.
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.