0.0.1 • Published 10 years ago

carapace-crop v0.0.1

Weekly downloads
-
License
-
Repository
-
Last release
10 years ago

carapace-crop

Crop for Carapace.

Build Status

Usage

var Carapace = require('carapace')
var Crop = require('carapace-crop')

Carapace
    .create(imageEl)
    .run([
        Crop.create({ width: 100, height: 100, left: 100, top: 100 })
    ], function(err, canvas){
        canvas // [object HTMLCanvasElement 100x100]
    })

Installation

$ npm install carapace-crop

Tests

$ grunt test
$ grunt test:server
$ grunt test:browser

License

MIT License, see LICENSE for details.