New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ember-paperjs

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-paperjs

The default blueprint for ember-cli addons.

  • 0.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

ember-paperjs

Ember components for using the excellent canvas SVG drawing library: PaperJS. A work in progress. Contributions welcomed.

Installation

ember install ember-paperjs

Usage

Initialise a blank Paper canvas

{{ paperjs-canvas }}
Events
  • onInit=(action "onBeforeEvent") provides the canvas element
  • onInit=(action "onInitEvent") provides the paper scope object

Create a Paper component that you can draw on

{{ paperjs-drawing }}
Options for paperjs-drawing
  • closed=true|false // automatically close shapes
  • smoothed=true|false // smooth shapes when complete
  • simplified=true|false // simplify shapes when complete (should accept a tolerances but doesn't)
  • compoundPaths=true|false // Create compound shapes (like Illustrator--not like PaperJS). Drawing inside another shape creates a boolean subtraction.
  • minDistance=5 // minimum drawing distance for each part of a path
  • maxDistance=100 // maximum drawing distance for each part of a path
  • strokeColor="black"
  • fillColor="rgba(255, 255, 244, 0.4)"
Events
  • onInit=(action "onBeforeEvent") provides the canvas element
  • onInit=(action "onInitEvent") provides the paper scope object
  • onClosed=(action "onClosedEvent") provides the path and the scope

Contributing

Installation

  • git clone <repository-url>
  • cd ember-paperjs
  • npm install

Linting

  • npm run lint:js
  • npm run lint:js -- --fix

Running tests

  • ember test – Runs the test suite on the current Ember version
  • ember test --server – Runs the test suite in "watch mode"
  • ember try:each – Runs the test suite against multiple Ember versions

Running the dummy application

For more information on using ember-cli, visit https://ember-cli.com/.

License

This project is licensed under the MIT License.

Keywords

FAQs

Package last updated on 12 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc