Commit Graph

14 Commits

Author SHA1 Message Date
faf0c3c96b Globe: Fix bottom when cut 2020-04-21 14:41:26 +02:00
65c9822b73 Globe: Add opacity option, Part globe WIP
- Don't run the onScroll method on load, creates a funky translate otherwise
- Bind window innerHeight via Svelte
- Path scroll smoothing option value as prop
2020-04-21 09:46:27 +02:00
33774085f0 fix globe height 2020-04-20 23:15:00 +02:00
302af713d0 Globe: Add more props settings, Randomly position globe to a continent
- Add a little delay before restarting the rotation when hovering a marker
2020-04-19 17:34:51 +02:00
4fb2c4e93a stop globe trotation on marker hover 2020-04-19 16:24:16 +02:00
caa84e10e3 add destroy on Globe + startRoation option 2020-04-19 16:13:29 +02:00
094614f83c Globe edits WIP
All checks were successful
continuous-integration/drone/push Build is passing
- Added visible continents to options
2020-04-19 14:49:52 +02:00
c531181972 globae update 2020-04-18 23:58:18 +02:00
10e32a1957 fix merge 2020-04-18 23:24:43 +02:00
50d36d4015 globe update 2020-04-17 15:09:58 +02:00
85cb624a31 Code clean 2020-04-10 12:00:11 +02:00
a4feadb80f Globe: Add hover on marker dot, Comment code 2020-04-09 23:11:13 +02:00
7a44d5b0ed ⚠️ The interactive globe has arrived (WIP but pretty good)
- Control the width/height of the globe via CSS
2020-04-09 20:22:10 +02:00
2064885997 WIP Interactive globe from Nico's sources
- The globe is a bit small? Ability to control the max-min size potentially
- Is there a reason why `globe.update()` runs every second? Sounds like a lot of resources?
- Have the ability to control the `addEventListener` of the markers to do whatever (in this case, going to a route by clicking on a link with a sapper-noscroll attribute + changing the href attribute on click - the method `goto` from Sapper scrolls back to top / maybe something to fix with the current transition issues?)
- Edited in `./index.js`:
    1. Using the class as `export default WebglGlobe` instead of Window (as Svelte or Sapper doesn't likayt)
- Edited in `Camera.js`:
    1. Commented line 218: `e.preventDefault();` would cause this error: `[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See <URL>`
2020-04-02 20:59:40 +02:00