small licence changes

This commit is contained in:
Anton Lavrenov 2018-02-05 15:02:21 +07:00
parent 2ee0cc2528
commit 19bb7c8ecf
4 changed files with 118 additions and 162 deletions

22
LICENCE Normal file
View File

@ -0,0 +1,22 @@
MIT License
Original work Copyright (C) 2011 - 2013 by Eric Rowell (KineticJS)
Modified work Copyright (C) 2014 - present by Anton Lavrenov (Konva)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

115
konva.js
View File

@ -1,38 +1,19 @@
/* /*
* Konva JavaScript Framework v1.7.6 * Konva JavaScript Framework v1.7.6
* http://konvajs.github.io/ * http://konvajs.github.io/
* Licensed under the MIT or GPL Version 2 licenses. * Licensed under the MIT
* Date: Mon Feb 05 2018 * Date: Mon Feb 05 2018
* *
* Original work Copyright (C) 2011 - 2013 by Eric Rowell (KineticJS) * Original work Copyright (C) 2011 - 2013 by Eric Rowell (KineticJS)
* Modified work Copyright (C) 2014 - 2017 by Anton Lavrenov (Konva) * Modified work Copyright (C) 2014 - present by Anton Lavrenov (Konva)
*
* @license
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/ */
// runtime check for already included Konva // runtime check for already included Konva
(function() { (function() {
'use strict'; 'use strict';
/** /**
* @namespace Konva * @namespace Konva
*/ */
var PI_OVER_180 = Math.PI / 180; var PI_OVER_180 = Math.PI / 180;
@ -61,57 +42,57 @@
traceArrMax: 100, traceArrMax: 100,
dblClickWindow: 400, dblClickWindow: 400,
/** /**
* Global pixel ratio configuration. KonvaJS automatically detect pixel ratio of current device. * Global pixel ratio configuration. KonvaJS automatically detect pixel ratio of current device.
* But you may override such property, if you want to use your value. * But you may override such property, if you want to use your value.
* @property pixelRatio * @property pixelRatio
* @default undefined * @default undefined
* @memberof Konva * @memberof Konva
* @example * @example
* Konva.pixelRatio = 1; * Konva.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, * 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. Default is 3px. * only then start dragging. Default is 3px.
* @property dragDistance * @property dragDistance
* @default 0 * @default 0
* @memberof Konva * @memberof Konva
* @example * @example
* Konva.dragDistance = 10; * Konva.dragDistance = 10;
*/ */
dragDistance: 3, dragDistance: 3,
/** /**
* Use degree values for angle properties. You may set this property to false if you want to use radiant values. * Use degree values for angle properties. You may set this property to false if you want to use radiant values.
* @property angleDeg * @property angleDeg
* @default true * @default true
* @memberof Konva * @memberof Konva
* @example * @example
* node.rotation(45); // 45 degrees * node.rotation(45); // 45 degrees
* Konva.angleDeg = false; * Konva.angleDeg = false;
* node.rotation(Math.PI / 2); // PI/2 radian * node.rotation(Math.PI / 2); // PI/2 radian
*/ */
angleDeg: true, angleDeg: true,
/** /**
* Show different warnings about errors or wrong API usage * Show different warnings about errors or wrong API usage
* @property showWarnings * @property showWarnings
* @default true * @default true
* @memberof Konva * @memberof Konva
* @example * @example
* Konva.showWarnings = false; * Konva.showWarnings = false;
*/ */
showWarnings: true, showWarnings: true,
/** /**
* @namespace Filters * @namespace Filters
* @memberof Konva * @memberof Konva
*/ */
Filters: {}, Filters: {},
/** /**
* returns whether or not drag and drop is currently active * returns whether or not drag and drop is currently active
* @method * @method
* @memberof Konva * @memberof Konva
*/ */
isDragging: function() { isDragging: function() {
var dd = Konva.DD; var dd = Konva.DD;
@ -123,11 +104,11 @@
return false; return false;
}, },
/** /**
* returns whether or not a drag and drop operation is ready, but may * returns whether or not a drag and drop operation is ready, but may
* not necessarily have started * not necessarily have started
* @method * @method
* @memberof Konva * @memberof Konva
*/ */
isDragReady: function() { isDragReady: function() {
var dd = Konva.DD; var dd = Konva.DD;

28
konva.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -1,38 +1,19 @@
/* /*
* Konva JavaScript Framework v@@version * Konva JavaScript Framework v@@version
* http://konvajs.github.io/ * http://konvajs.github.io/
* Licensed under the MIT or GPL Version 2 licenses. * Licensed under the MIT
* Date: @@date * Date: @@date
* *
* Original work Copyright (C) 2011 - 2013 by Eric Rowell (KineticJS) * Original work Copyright (C) 2011 - 2013 by Eric Rowell (KineticJS)
* Modified work Copyright (C) 2014 - 2017 by Anton Lavrenov (Konva) * Modified work Copyright (C) 2014 - present by Anton Lavrenov (Konva)
*
* @license
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/ */
// runtime check for already included Konva // runtime check for already included Konva
(function() { (function() {
'use strict'; 'use strict';
/** /**
* @namespace Konva * @namespace Konva
*/ */
var PI_OVER_180 = Math.PI / 180; var PI_OVER_180 = Math.PI / 180;
@ -61,57 +42,57 @@
traceArrMax: 100, traceArrMax: 100,
dblClickWindow: 400, dblClickWindow: 400,
/** /**
* Global pixel ratio configuration. KonvaJS automatically detect pixel ratio of current device. * Global pixel ratio configuration. KonvaJS automatically detect pixel ratio of current device.
* But you may override such property, if you want to use your value. * But you may override such property, if you want to use your value.
* @property pixelRatio * @property pixelRatio
* @default undefined * @default undefined
* @memberof Konva * @memberof Konva
* @example * @example
* Konva.pixelRatio = 1; * Konva.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, * 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. Default is 3px. * only then start dragging. Default is 3px.
* @property dragDistance * @property dragDistance
* @default 0 * @default 0
* @memberof Konva * @memberof Konva
* @example * @example
* Konva.dragDistance = 10; * Konva.dragDistance = 10;
*/ */
dragDistance: 3, dragDistance: 3,
/** /**
* Use degree values for angle properties. You may set this property to false if you want to use radiant values. * Use degree values for angle properties. You may set this property to false if you want to use radiant values.
* @property angleDeg * @property angleDeg
* @default true * @default true
* @memberof Konva * @memberof Konva
* @example * @example
* node.rotation(45); // 45 degrees * node.rotation(45); // 45 degrees
* Konva.angleDeg = false; * Konva.angleDeg = false;
* node.rotation(Math.PI / 2); // PI/2 radian * node.rotation(Math.PI / 2); // PI/2 radian
*/ */
angleDeg: true, angleDeg: true,
/** /**
* Show different warnings about errors or wrong API usage * Show different warnings about errors or wrong API usage
* @property showWarnings * @property showWarnings
* @default true * @default true
* @memberof Konva * @memberof Konva
* @example * @example
* Konva.showWarnings = false; * Konva.showWarnings = false;
*/ */
showWarnings: true, showWarnings: true,
/** /**
* @namespace Filters * @namespace Filters
* @memberof Konva * @memberof Konva
*/ */
Filters: {}, Filters: {},
/** /**
* returns whether or not drag and drop is currently active * returns whether or not drag and drop is currently active
* @method * @method
* @memberof Konva * @memberof Konva
*/ */
isDragging: function() { isDragging: function() {
var dd = Konva.DD; var dd = Konva.DD;
@ -123,11 +104,11 @@
return false; return false;
}, },
/** /**
* returns whether or not a drag and drop operation is ready, but may * returns whether or not a drag and drop operation is ready, but may
* not necessarily have started * not necessarily have started
* @method * @method
* @memberof Konva * @memberof Konva
*/ */
isDragReady: function() { isDragReady: function() {
var dd = Konva.DD; var dd = Konva.DD;