npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

t3-rs-geo

v0.7.1

Published

Stylized, WebGL data driven globe

Downloads

5

Readme

t3-rs-geo

Circle CI npm MIT

t3-rs-geo is stylized, WebGL data driven globe.

Screenshot

t3-rs-geo

Example Usage

<script src="/t3-rs-geo.umd-es2015.min.js"></script>
<script>
    var globe = new t3_rs_geo.Globe(window.innerWidth, window.innerHeight, { tiles: t3_rs_geo.GRID_LQ });
    document.getElementById('elm').appendChild(globe.domElement);

    globe.ready.then(() => {
        (function tick() {
            globe.tick();
            requestAnimationFrame(tick);
        })();
    });
</script>

View the @redsift/t3-rs-geo 101 on Codepen

Interactive, High Quality example on Codepen

History

This globe started out as a fork of Robert Scanlon's encom-globe. It was converted to a standalone project as the API and direction of the component departed from the objectives of the original. Significant changes include an update to the current (Jan 2017) version of THREE.js, exposing mostly everything for customization, a rewrite as an ES6 module, use of mesh lines and SDF rendering among other changes.

Usage

...

Generating tiles

The globe requires vertex data to render the globe and the various land masses. The precompiled bundle includes a row resolution hex grid as part of the t3_rs_geo object. Higher quality JSON files are also provided and can be loaded on demand. The companion repository t3-rs-geo-tiles generates these tiles and can be used to tweak the grid and the mappings.

Works on

Chrome 56

TODO

  1. Merge scale indicator

  2. CI

  3. Hit testing and callback

  4. Fog scaling

  5. Higher res con trails

  6. Noise in trail

  7. Normalise speed

  8. Path direction

  9. Programmatic panning and animated transitions

  10. Animate base color

  11. Make wiggle a scale function

  12. HDR function

  13. Align API

  14. Atmosphere shader

  15. Ocean shader

  16. Docs / examples

Attribution

This software is substantially based on encom-globe by Robert Scanlon, licensed under MIT.

The MIT License (MIT) Copyright (c) 2014 Robert Scanlon

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.