Giter Club home page Giter Club logo

animated-grid-lines's Introduction

Hello, welcome to my GitHub profile

Twitter Badge LinkedIn Badge Website Badge

Here are a few things that describe me:

  • 💼   I'm currently working full-time at Basedash as a full-stack developer
  • 📝   I maintain a web development blog at robertcooper.me
  • 📱   I like to build apps of my own. Two examples include Tech Job Hunt and Meat Journal.
  • ⌨️   I spend most of my time writing TypeScript on both the front-end and back-end
  • 💬   The two social platforms I'm active on are Twitter and LinkedIn, where I mostly post about web development. Feel free to connect and reach out to me there.

animated-grid-lines's People

Contributors

robertcoopercode avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

animated-grid-lines's Issues

Console.log in throttle

Hi Robert,

I appreciate your component. However, I noticed there are console.logs present in throttle.ts. I am uncertain if they were left there on purpose, but I thought it was important to bring to your attention.

Thank you!

Lines disappear before they fully leave the grid

I noticed that lines get destroyed when their "head" touches the edge of the grid. It might look better if they instead are allowed to fully leave the canvas before being destroyed.

A simple fix for this would be to virtually extend the grid beyond the edge of the canvas, by the length of the lines. In other words, don't destroy the line until the head is 5 units outside the canvas. Should be a 4-line change here:

// Check if end of canvas has been reached
const lastCoord = lineCoords[lineCoords.length - 1];
const xPos = lastCoord[0];
const yPos = lastCoord[1];
if (
xPos >= this.canvas.width ||
xPos <= 0 ||
yPos >= this.canvas.height ||
yPos <= 0
) {
this.lines.splice(index, 1);
}
}
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.