benaltair / epoch Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://bahai-epoch.netlify.app
Home Page: https://bahai-epoch.netlify.app
Likely this will be achieved with a bar at the bottom. When first loaded, it will show the entire timeline. There are several ways of zooming in:
When in any state other than the initial load, two things will happen. First, the date range being shown currently will be highlighted with draggable handles (in middle and either end) to adjust it. Second, another timeline will appear showing the actual dates being rendered. Specific years, months or perhaps days depending on the zoom level. This will likely be at the top and just part of the page, but faded out when zoomed all the way out to avoid redundancy. This is a large item so it should be broken up into several tasks below later.
This will be necessary for the highest level events, but may also be needed for lower level events depending on how zoom levels are rendered. Likely a faded out version of the higher level event will be shown, which can be clicked on to zoom out. Users could also click anywhere outside on the timeline to zoom out perhaps.
These events which go further should be indicated by a > border or something.
At this stage navigation is curious. I think I might keep it without any vertical or horizontal scrolling, other than navigation on the timeline. Instead, further events would be shown by drilling down and clicking on certain events to see sub-events below it.
This might need to be rethought for mobile.
Right now the events are only placed correctly if the length of the timeline equals the length of the largest event. Math is needed to adjust the proportion accordingly so that it is adjusted when the timeline is updated. This is related to #1
Sometimes events such as "12MP" or "1YP" which have a relatively short duration at a certain zoom level will have a label which doesn't fit. A strategy will need to be decided on for dealing with these.
One option is to have a different method of rendering these outside of the standard box.
Another would be something like hiding the label and just showing ...
until you hover. Thought will need to go into how to detect when a label is too large.
Right now the main issue is that the larger label is actually bumping events down the line. This will need to be addressed first.
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.