mirror of
https://github.com/konvajs/konva.git
synced 2025-07-17 04:56:33 +08:00
update ignore files, update package files
This commit is contained in:
parent
71dd7c6abe
commit
0bba93c4fa
@ -7,5 +7,4 @@ branches:
|
|||||||
before_script:
|
before_script:
|
||||||
- npm install
|
- npm install
|
||||||
script:
|
script:
|
||||||
- grunt dev
|
- grunt test
|
||||||
- mocha-phantomjs test/runner.html
|
|
@ -8,15 +8,25 @@
|
|||||||
"description": "KineticJS is an HTML5 Canvas JavaScript framework that enables high performance animations, transitions, node nesting, layering, filtering, caching, event handling for desktop and mobile applications, and much more.",
|
"description": "KineticJS is an HTML5 Canvas JavaScript framework that enables high performance animations, transitions, node nesting, layering, filtering, caching, event handling for desktop and mobile applications, and much more.",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"canvas",
|
"canvas",
|
||||||
"animations"
|
"animations",
|
||||||
|
"graphic",
|
||||||
|
"html5"
|
||||||
],
|
],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"ignore": [
|
"ignore": [
|
||||||
"**/.*",
|
"**/.*",
|
||||||
"node_modules",
|
|
||||||
"bower_components",
|
|
||||||
"test",
|
"test",
|
||||||
"tests"
|
"tests",
|
||||||
|
"doc-includes",
|
||||||
|
"src",
|
||||||
|
"*.yml",
|
||||||
|
".jshitrc",
|
||||||
|
".npmignore",
|
||||||
|
".gitignore",
|
||||||
|
"Gruntfile.js",
|
||||||
|
"bower-template.json",
|
||||||
|
"server.js",
|
||||||
|
"presentation-schedule.md"
|
||||||
],
|
],
|
||||||
"main": "kinetic.js"
|
"main": "kinetic.js"
|
||||||
}
|
}
|
||||||
|
20
bower.json
20
bower.json
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "KineticJS",
|
"name": "KineticJS",
|
||||||
"version": "5.1.0",
|
"version": "5.1.1",
|
||||||
"homepage": "http://kineticjs.com/",
|
"homepage": "http://kineticjs.com/",
|
||||||
"authors": [
|
"authors": [
|
||||||
"Eric Rowell"
|
"Eric Rowell"
|
||||||
@ -8,15 +8,25 @@
|
|||||||
"description": "KineticJS is an HTML5 Canvas JavaScript framework that enables high performance animations, transitions, node nesting, layering, filtering, caching, event handling for desktop and mobile applications, and much more.",
|
"description": "KineticJS is an HTML5 Canvas JavaScript framework that enables high performance animations, transitions, node nesting, layering, filtering, caching, event handling for desktop and mobile applications, and much more.",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"canvas",
|
"canvas",
|
||||||
"animations"
|
"animations",
|
||||||
|
"graphic",
|
||||||
|
"html5"
|
||||||
],
|
],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"ignore": [
|
"ignore": [
|
||||||
"**/.*",
|
"**/.*",
|
||||||
"node_modules",
|
|
||||||
"bower_components",
|
|
||||||
"test",
|
"test",
|
||||||
"tests"
|
"tests",
|
||||||
|
"doc-includes",
|
||||||
|
"src",
|
||||||
|
"*.yml",
|
||||||
|
".jshitrc",
|
||||||
|
".npmignore",
|
||||||
|
".gitignore",
|
||||||
|
"Gruntfile.js",
|
||||||
|
"bower-template.json",
|
||||||
|
"server.js",
|
||||||
|
"presentation-schedule.md"
|
||||||
],
|
],
|
||||||
"main": "kinetic.js"
|
"main": "kinetic.js"
|
||||||
}
|
}
|
||||||
|
80
kinetic.js
80
kinetic.js
@ -1,10 +1,10 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* KineticJS JavaScript Framework v5.1.0
|
* KineticJS JavaScript Framework v5.1.1
|
||||||
* http://www.kineticjs.com/
|
* http://www.kineticjs.com/
|
||||||
* Copyright 2013, Eric Rowell
|
* Copyright 2013, Eric Rowell
|
||||||
* Licensed under the MIT or GPL Version 2 licenses.
|
* Licensed under the MIT or GPL Version 2 licenses.
|
||||||
* Date: 2014-04-03
|
* Date: 2014-04-14
|
||||||
*
|
*
|
||||||
* Copyright (C) 2011 - 2013 by Eric Rowell
|
* Copyright (C) 2011 - 2013 by Eric Rowell
|
||||||
*
|
*
|
||||||
@ -36,7 +36,7 @@ var Kinetic = {};
|
|||||||
|
|
||||||
Kinetic = {
|
Kinetic = {
|
||||||
// public
|
// public
|
||||||
version: '5.1.0',
|
version: '5.1.1',
|
||||||
|
|
||||||
// private
|
// private
|
||||||
stages: [],
|
stages: [],
|
||||||
@ -51,8 +51,36 @@ var Kinetic = {};
|
|||||||
enableTrace: false,
|
enableTrace: false,
|
||||||
traceArrMax: 100,
|
traceArrMax: 100,
|
||||||
dblClickWindow: 400,
|
dblClickWindow: 400,
|
||||||
|
/**
|
||||||
|
* Global pixel ratio configuration. KineticJS automatically detect pixel ratio of current device.
|
||||||
|
* But you may override such property, if you want to use your value.
|
||||||
|
* @property
|
||||||
|
* @default undefined
|
||||||
|
* @memberof Kinetic
|
||||||
|
* @example
|
||||||
|
* Kinetic.pixelRatio = 1;
|
||||||
|
*/
|
||||||
pixelRatio: undefined,
|
pixelRatio: undefined,
|
||||||
|
/**
|
||||||
|
* Drag distance property. If you start to drag a node you may want to wait until pointer is moved to some distance from start point,
|
||||||
|
* only then start dragging.
|
||||||
|
* @property
|
||||||
|
* @default 0
|
||||||
|
* @memberof Kinetic
|
||||||
|
* @example
|
||||||
|
* Kinetic.dragDistance = 10;
|
||||||
|
*/
|
||||||
dragDistance : 0,
|
dragDistance : 0,
|
||||||
|
/**
|
||||||
|
* Use degree values for angle properties. You may set this property to false if you want to use radiant values.
|
||||||
|
* @property
|
||||||
|
* @default true
|
||||||
|
* @memberof Kinetic
|
||||||
|
* @example
|
||||||
|
* node.rotation(45); // 45 degrees
|
||||||
|
* Kinetic.angleDeg = false;
|
||||||
|
* node.rotation(Math.PI / 2); // PI/2 radian
|
||||||
|
*/
|
||||||
angleDeg: true,
|
angleDeg: true,
|
||||||
|
|
||||||
// user agent
|
// user agent
|
||||||
@ -337,7 +365,7 @@ var Kinetic = {};
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Layer constructor. Layers are tied to their own canvas element and are used
|
* Layer constructor. Layers are tied to their own canvas element and are used
|
||||||
* to contain groups or shapes
|
* to contain groups or shapes.
|
||||||
* @constructor
|
* @constructor
|
||||||
* @memberof Kinetic
|
* @memberof Kinetic
|
||||||
* @augments Kinetic.Container
|
* @augments Kinetic.Container
|
||||||
@ -374,14 +402,38 @@ var Kinetic = {};
|
|||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FastLayer constructor. Layers are tied to their own canvas element and are used
|
* FastLayer constructor. Layers are tied to their own canvas element and are used
|
||||||
* to contain groups or shapes
|
* to contain shapes only. If you don't need node nesting, mouse and touch interactions,
|
||||||
|
* or event pub/sub, you should use FastLayer instead of Layer to create your layers.
|
||||||
|
* It renders about 2x faster than normal layers.
|
||||||
* @constructor
|
* @constructor
|
||||||
* @memberof Kinetic
|
* @memberof Kinetic
|
||||||
* @augments Kinetic.Container
|
* @augments Kinetic.Container
|
||||||
* @param {Object} config
|
* @param {Object} config
|
||||||
* @param {Boolean} [config.clearBeforeDraw] set this property to false if you don't want
|
* @param {Boolean} [config.clearBeforeDraw] set this property to false if you don't want
|
||||||
* to clear the canvas before each layer draw. The default value is true.
|
* to clear the canvas before each layer draw. The default value is true.
|
||||||
|
* @param {Number} [config.x]
|
||||||
|
* @param {Number} [config.y]
|
||||||
|
* @param {Number} [config.width]
|
||||||
|
* @param {Number} [config.height]
|
||||||
|
* @param {Boolean} [config.visible]
|
||||||
|
* @param {Boolean} [config.listening] whether or not the node is listening for events
|
||||||
|
* @param {String} [config.id] unique id
|
||||||
|
* @param {String} [config.name] non-unique name
|
||||||
|
* @param {Number} [config.opacity] determines node opacity. Can be any number between 0 and 1
|
||||||
|
* @param {Object} [config.scale] set scale
|
||||||
|
* @param {Number} [config.scaleX] set scale x
|
||||||
|
* @param {Number} [config.scaleY] set scale y
|
||||||
|
* @param {Number} [config.rotation] rotation in degrees
|
||||||
|
* @param {Object} [config.offset] offset from center point and rotation point
|
||||||
|
* @param {Number} [config.offsetX] set offset x
|
||||||
|
* @param {Number} [config.offsetY] set offset y
|
||||||
|
* @param {Boolean} [config.draggable] makes the node draggable. When stages are draggable, you can drag and drop
|
||||||
|
* the entire stage by dragging any portion of the stage
|
||||||
|
* @param {Number} [config.dragDistance]
|
||||||
|
* @param {Function} [config.dragBoundFunc]
|
||||||
|
* @param {Function} [config.clipFunc] clipping function
|
||||||
|
|
||||||
* @example
|
* @example
|
||||||
* var layer = new Kinetic.FastLayer();
|
* var layer = new Kinetic.FastLayer();
|
||||||
*/
|
*/
|
||||||
@ -4318,7 +4370,7 @@ var Kinetic = {};
|
|||||||
* brighten the pixels and negative values darken them.
|
* brighten the pixels and negative values darken them.
|
||||||
* @name brightness
|
* @name brightness
|
||||||
* @method
|
* @method
|
||||||
* @memberof Kinetic.Image.prototype
|
* @memberof Kinetic.Node.prototype
|
||||||
* @param {Number} brightness value between -1 and 1
|
* @param {Number} brightness value between -1 and 1
|
||||||
* @returns {Number}
|
* @returns {Number}
|
||||||
*/
|
*/
|
||||||
@ -6238,9 +6290,9 @@ var Kinetic = {};
|
|||||||
/**
|
/**
|
||||||
* batch draw
|
* batch draw
|
||||||
* @method
|
* @method
|
||||||
* @memberof Kinetic.Layer.prototype
|
* @memberof Kinetic.Base.prototype
|
||||||
*/
|
*/
|
||||||
Kinetic.Layer.prototype.batchDraw = function() {
|
Kinetic.BaseLayer.prototype.batchDraw = function() {
|
||||||
var that = this,
|
var that = this,
|
||||||
Anim = Kinetic.Animation;
|
Anim = Kinetic.Animation;
|
||||||
|
|
||||||
@ -9308,8 +9360,7 @@ var Kinetic = {};
|
|||||||
// set layer dimensions
|
// set layer dimensions
|
||||||
for(n = 0; n < len; n++) {
|
for(n = 0; n < len; n++) {
|
||||||
layer = layers[n];
|
layer = layers[n];
|
||||||
layer.getCanvas().setSize(width, height);
|
layer.setSize(width, height);
|
||||||
layer.hitCanvas.setSize(width, height);
|
|
||||||
layer.draw();
|
layer.draw();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -9838,6 +9889,9 @@ var Kinetic = {};
|
|||||||
},
|
},
|
||||||
getStage: function() {
|
getStage: function() {
|
||||||
return this.parent;
|
return this.parent;
|
||||||
|
},
|
||||||
|
setSize : function(width, height) {
|
||||||
|
this.canvas.setSize(width, height);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
Kinetic.Util.extend(Kinetic.BaseLayer, Kinetic.Container);
|
Kinetic.Util.extend(Kinetic.BaseLayer, Kinetic.Container);
|
||||||
@ -10057,6 +10111,10 @@ var Kinetic = {};
|
|||||||
disableHitGraph: function() {
|
disableHitGraph: function() {
|
||||||
this.setHitGraphEnabled(false);
|
this.setHitGraphEnabled(false);
|
||||||
return this;
|
return this;
|
||||||
|
},
|
||||||
|
setSize : function(width, height) {
|
||||||
|
Kinetic.BaseLayer.prototype.setSize.call(this, width, height);
|
||||||
|
this.hitCanvas.setSize(width, height);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
Kinetic.Util.extend(Kinetic.Layer, Kinetic.BaseLayer);
|
Kinetic.Util.extend(Kinetic.Layer, Kinetic.BaseLayer);
|
||||||
|
10
kinetic.min.js
vendored
10
kinetic.min.js
vendored
File diff suppressed because one or more lines are too long
11
package.json
11
package.json
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "KineticJS",
|
"name": "KineticJS",
|
||||||
"version": "5.1.0",
|
"version": "5.1.1",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"grunt-contrib-jshint": "0.8.0",
|
"grunt-contrib-jshint": "0.8.0",
|
||||||
"grunt-contrib-nodeunit": "0.3.2",
|
"grunt-contrib-nodeunit": "0.3.2",
|
||||||
@ -21,6 +21,15 @@
|
|||||||
"grunt-contrib-watch": "~0.5.3",
|
"grunt-contrib-watch": "~0.5.3",
|
||||||
"grunt-shell": "~0.6.4"
|
"grunt-shell": "~0.6.4"
|
||||||
},
|
},
|
||||||
|
"keywords": [
|
||||||
|
"canvas",
|
||||||
|
"animations",
|
||||||
|
"graphic",
|
||||||
|
"html5"
|
||||||
|
],
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/ericdrowell/KineticJS/issues"
|
||||||
|
},
|
||||||
"readmeFilename": "README.md",
|
"readmeFilename": "README.md",
|
||||||
"main": "kinetic.js",
|
"main": "kinetic.js",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
Loading…
Reference in New Issue
Block a user