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 🙏

© 2026 – Pkg Stats / Ryan Hefner

wire-frame-landscape

v1.2.1

Published

a visual effect using html5 canvas

Readme

Wire Frame Landscape

Description

This project is an animation configurable using Html5 canvas. You can change the size, the colors, the animation of the edges and add animations like rotation.

Installation

you can add it to your project with git

$ git clone [email protected]:nenlaith/wire-frame-landscape.git

or with npm

$ npm install --save wire-frame-landscape

Usage

Factory

To create a new wire frame, you need to call the create with the ID of the canvas wrapper or the HTMLElement and a framerate.

let wfl = WFL.create("canvas-wrapper", 42);

WFL Object

After creating the instance of a wire frame, it is already set up with default parameters but you can change them to.

functions

setLineWidth(lineWidth: integer)

SetColors(backgroundColor: string, wireColor: string): the parameters can be html color code (ex: "#3c003d") or HTML color names ( "white", "blue" etc... )

setRotation(roll: float, pitch: float, yaw: float)

setDimensions(width: number, height: number)

setDimensionsType(type: string, params: object): they are only two types: STATIC and FILL. when using STATIC, you need to set the dimensions with setDimensions(). Even if the wrapper's size, the animation will keep the same size. If you want to use FILL you need to provide the params object.

params = {
	x: number,
	y: number,
	multiplier: number
}

the multiplier is used to extend the size of the wire frame.

setPosition(x: number, y: number)

setPositionType(type: string): they are only two types: STATIC and CENTER. When using STATIC, you need to set the position with setPosition(). Even if the wrapper's size, the animation will keep the same position. the CENTER keep automatically the wire frame at the center of the canvas.

Animations Functions

The library will contain a set of animations which can control the behaviour of rotation, position, colors, dimensions. They are stored in the WFL.Animation object.

functions

linearSingleRotation(rotationAxis :string, from: number, to: number, speed: number)

Magnitudes Functions

The library will contain a set of animations which can control the behaviour of the edges. They are stored in the WFL.Magnitude object.

functions

randomSawtoothWave(amplitude_min: number, amplitude_max: number, speed: number)

Example

let wfl = WFL.create("canvas-wrapper", 42);
wfl.setSplittings(17, 17)
  .setColors("white", "blue")
  .setLineWidth(5)
  .setRotation(Math.PI / 7, - Math.PI / 7, Math.PI / 7.0)
  .setDimensionsType("FILL", { x: 1, y: 1, multiplier: 2 })
  .setAmplitudeFunction(WFL.Magnitude.randomSawtoothWave(-30, 30, 30 / 1500))
  .addAnimation(WFL.Animation.linearSingleRotation("yaw", - Math.PI / 4.0, Math.PI / 4.0, ( Math.PI / 2.0 ) / 50000))
  .addAnimation(WFL.Animation.linearSingleRotation("roll", 0, Math.PI / 10.0, ( Math.PI / 10.0 ) / 10000))
  .start();