Comments (3)
here's an idea:
/* the container which oddly enough has no id nor is it <main> */
div.flex {
--toc: 20vw;
--gap: 10px;
}
.gutter-horizontal {
flex-basis: calc(var(--gap) * 2)
}
#split-left {
flex-basis: calc(var(--toc) - var(--gap))
}
#split-right {
flex-basis: calc(100vw - var(--toc) - var(--gap))
}
then your slit-dragging script could just change the --toc
variable and let the browser do its job.
Enjoy!
from map-gl-utils.
The documentation is generated by documentation.js so that's probably the place to raise this. I'd accept a PR that does some post-generation hackery to implement the above though.
from map-gl-utils.
I wasn't aware of this (obviously). Will check this out.
I'll think abut the PR :-)
from map-gl-utils.
Related Issues (20)
- Support regex (and maybe function) as alternative to arrays
- addVector extra props doesn't work
- Return promise from loadImage()
- Add getLineColor etc functions
- Make idempotent add/update layer style functions HOT 2
- Add fontsInUse() HOT 2
- Possibility to use outside node? HOT 4
- Support debug hover over
- Support multi-layer `on`
- setLayerSource cannot be seen in https://stevage.github.io/map-gl-utils/
- Support setMinzoom
- Error with clickPopup on line features
- Next publish? HOT 3
- Updating Vector Source
- License and commercial use HOT 1
- Typescript definitions HOT 1
- Mapbox GL JS v3 Support HOT 3
- make layer type optional in props? HOT 1
- regeneratorRuntime is not defined
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from map-gl-utils.