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

flying-canvas

v1.2.2

Published

flying-canvas

Downloads

5

Readme

flying-canvas Build Status

yarn version NuGet version

flying-canvas is awesome. LOL!

flying-canvas demo image Check out the live example: https://www.subidote.com/flying-canvas

Use it this way

1 Download and Install flying-canvas

2 Include dependences

2.1 Include flying-canvas.min.js by referencing the necessary files

You will find .js and .css files in dist folder.

<script src="../dist/flying-canvas.min.js"></script>
<link rel="stylesheet" href="../dist/flying-canvas.min.css">

2.2 Initialize the plugin

<script>
    flyingCanvas.init({
        showWings: false,
        animation: false
    });
</script>

When the canvas pane bumps into the edges a function can be executed specifying bumpIntoEdgeFn

<script>
    flyingCanvas.init({
        showWings: false,
        bumpIntoEdgeFn: function(){
            console.log("Choca 1!");
        },
        animation: false
    });
</script>

2.3 Show a picture

Use src: "./void.png" to load a pinture in the canvas.

<script>
    flyingCanvas.init({
        src: "./void.png"
    });
</script>

2.3 Awesome

<script>
    flyingCanvas.init({
        width: 200,
        height: 400,
        showWings: false,
        bumpIntoEdgeFn: function(){
            console.log("Choca 1!");
        },
        zIndex: 300,
        awesome: 2 // This will render the picture of the column
    });
</script>

3 Configuration options

| option | default | description | | :------------------- | :----- | :--------------------- | | flyingCanvas.init() | - | Initializes the component allowing several parameters in json format. | | width | 350 | Width of the canvas. | | height | 400 | Height of the canvas. | | pictureFrameWidth | 75 | Working on this now! | | src | null | Route to an image. | | flyingCanvas.loadImage() | - | Loads new images this way: flyingCanvas.loadImage("newImage.jpg"). | | flyingCanvas.clearImage() | - | Removes the image | | animation | boolean | In the case of false the component will not have movement when created. | | hidden | boolean | In the case of false the component will be hidden by default. | | showWings | boolean | Show wings| | awesome | unknown | Awesome stuff will happen. | | flyingCanvas.start() | - | Starts the movement of the canvas. | | flyingCanvas.stop() | - | Stops the movement. | | flyingCanvas.hide() | - | Hides the component. Does not destroy. The component will continue running in the background. | | flyingCanvas.show() | - | Shows the component again. |

Development

sudo npm install -g eslint

sudo npm install -g grunt-cli

grunt build

License

flying-canvas is MIT licensed.