Git Product home page Git Product logo

canvas-snippets's Introduction

JavaScript Snippets for Atom

This package add a collection of HTML5 canvas snippets for you Atom text editor

Install

Go to Atom > Preferences... then search for Canvas snippets in Packages tab.

Usage

Example: -> to be updated soon...

[fr] context.fillRect()

context.fillRect(0, 0, 400, 230);

[qc] context.quadraticCurveTo()

ctx.quadraticCurveTo(cp1x, cp1y, x, y);

Most of snippets here are writtern originally by John hunter for textmate.

canvas-snippets's People

Contributors

iartist93 avatar

Stargazers

 avatar Petr Svoboda avatar

Watchers

James Cloos avatar  avatar

Forkers

synnr-skip

canvas-snippets's Issues

Changes required for upcoming CoffeeScript upgrade

Hi! Thanks for maintaining the canvas-snippets package!

In Atom v1.12, we are going to upgrade CoffeeScript to the latest version. This upgrade entails one potentially breaking change to the language:

Changed strategy for the generation of internal compiler variable names. Note that this means that @example function parameters are no longer available as naked example variables within the function body.

We think your package may be affected by this upgrade, in the following places:

  • The snippet variable here
  • The snippet variable here
  • The snippet variable here
  • The snippet variable here
  • The snippet variable here

These findings are based on linting packages with coffeescope. We could be wrong about some of them. When we release v1.12 beta, please test your package against it to make sure that it works. Let me know if you have any further questions; I will be happy to help!

Failed to load the canvas-snippets package

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.0.11
System: Unknown Windows Version
Thrown From: canvas-snippets package, v0.2.0

Stack Trace

Failed to load the canvas-snippets package

At Cannot find module 'underscore-plus'

Error: Cannot find module 'underscore-plus'
    at Module._resolveFilename (module.js:328:15)
    at Function.Module._resolveFilename (C:\Users\rudnei.oliveira\AppData\Local\atom\app-1.0.11\resources\app.asar\src\module-cache.js:383:52)
    at Function.Module._load (module.js:270:25)
    at Module.require (module.js:357:17)
    at require (module.js:376:17)
    at Object.<anonymous> (C:\Users\rudnei.oliveira\.atom\packages\canvas-snippets-0.2.0\lib\snippets.coffee:3:5)
    at Object.<anonymous> (C:\Users\rudnei.oliveira\.atom\packages\canvas-snippets-0.2.0\lib\snippets.coffee:1:1)
    at Module._compile (module.js:452:26)
    at Object.defineProperty.value [as .coffee] (C:\Users\rudnei.oliveira\AppData\Local\atom\app-1.0.11\resources\app.asar\src\compile-cache.js:169:21)
    at Module.load (module.js:347:32)

Commands

Config

{}

Installed Packages

# User
No installed packages

# Dev
No dev packages

Install doesn´t Work

The Installation of your package is broken, maybe the c script needs to be updated.

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.