Merge pull request #137 from hugomrdias/node

make konva run in node 0.12 atleast
This commit is contained in:
Anton Lavrenov 2016-03-30 09:07:53 +07:00
commit 8aa3a92902
4 changed files with 12 additions and 10 deletions

View File

@ -110,11 +110,13 @@ import 'konva/src/shapes/rect';
###5 NodeJS
Support for node 0.12.x only for now.
You have to install some deps manually to use Konva in nodejs env.
We are using [node-canvas](https://github.com/LearnBoost/node-canvas) to create canvas element.
1. Install node-canvas [https://github.com/LearnBoost/node-canvas/wiki/_pages](https://github.com/LearnBoost/node-canvas/wiki/_pages)
1. Install node-canvas dependencies [https://github.com/LearnBoost/node-canvas/wiki/_pages](https://github.com/LearnBoost/node-canvas/wiki/_pages)
2. `npm install canvas@1.2.x`
2. `npm install jsdom@3.x` (jsdom v4 require iojs)
3. `npm install konva`
@ -127,7 +129,7 @@ See [CHANGELOG.md](https://github.com/konvajs/konva/blob/master/CHANGELOG.md).
#Dev environment
Before doing all dev stuff make sure you have node installed. After that, run `npm install --dev` in the main directory to install the node module dependencies.
Before doing all dev stuff make sure you have node installed. After that, run `npm install` in the main directory to install the node module dependencies.
Run `gulp -T` to see all build options.

View File

@ -3,7 +3,7 @@
* Konva JavaScript Framework v0.11.1
* http://konvajs.github.io/
* Licensed under the MIT or GPL Version 2 licenses.
* Date: Mon Feb 29 2016
* Date: Tue Mar 15 2016
*
* Original work Copyright (C) 2011 - 2013 by Eric Rowell (KineticJS)
* Modified work Copyright (C) 2014 - 2015 by Anton Lavrenov (Konva)
@ -29,7 +29,7 @@
*/
// runtime check for already included Konva
(function(){
(function(global){
'use strict';
/**
* @namespace Konva
@ -246,7 +246,7 @@
}
Konva.document = document;
Konva.window = window;
})();
})(typeof window !== 'undefined' ? window : global);
/*eslint-disable eqeqeq, no-cond-assign, no-empty*/
(function() {

6
konva.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -29,7 +29,7 @@
*/
// runtime check for already included Konva
(function(){
(function(global){
'use strict';
/**
* @namespace Konva
@ -246,4 +246,4 @@
}
Konva.document = document;
Konva.window = window;
})();
})(typeof window !== 'undefined' ? window : global);