This commit is contained in:
Anton Lavrenov
2021-05-21 10:53:06 -05:00
parent 29badd7f6c
commit 2168946541
3 changed files with 1434 additions and 1445 deletions

View File

@@ -5,10 +5,10 @@
}(this, (function () { 'use strict';
/*
* Konva JavaScript Framework v8.0.0-1
* Konva JavaScript Framework v8.0.0-2
* http://konvajs.org/
* Licensed under the MIT
* Date: Sun May 09 2021
* Date: Fri May 21 2021
*
* Original work Copyright (C) 2011 - 2013 by Eric Rowell (KineticJS)
* Modified work Copyright (C) 2014 - present by Anton Lavrenov (Konva)
@@ -35,7 +35,7 @@
: {};
const Konva$2 = {
_global: glob,
version: '8.0.0-1',
version: '8.0.0-2',
isBrowser: detectBrowser(),
isUnminified: /param/.test(function (param) { }.toString()),
dblClickWindow: 400,
@@ -5680,9 +5680,7 @@
}
// CONSTANTS
var STAGE = 'Stage', STRING = 'string', PX = 'px', MOUSEOUT = 'mouseout', MOUSELEAVE = 'mouseleave', MOUSEOVER = 'mouseover', MOUSEENTER = 'mouseenter', MOUSEMOVE = 'mousemove', MOUSEDOWN = 'mousedown', MOUSEUP = 'mouseup',
// TODO: add them into "on" method docs and into site docs
POINTERMOVE = 'pointermove', POINTERDOWN = 'pointerdown', POINTERUP = 'pointerup', POINTERCANCEL = 'pointercancel', LOSTPOINTERCAPTURE = 'lostpointercapture', POINTEROUT = 'pointerout', POINTERLEAVE = 'pointerleave', POINTEROVER = 'pointerover', POINTERENTER = 'pointerenter', CONTEXTMENU = 'contextmenu', TOUCHSTART = 'touchstart', TOUCHEND = 'touchend', TOUCHMOVE = 'touchmove', TOUCHCANCEL = 'touchcancel', WHEEL = 'wheel', MAX_LAYERS_NUMBER = 5, EVENTS = [
var STAGE = 'Stage', STRING = 'string', PX = 'px', MOUSEOUT = 'mouseout', MOUSELEAVE = 'mouseleave', MOUSEOVER = 'mouseover', MOUSEENTER = 'mouseenter', MOUSEMOVE = 'mousemove', MOUSEDOWN = 'mousedown', MOUSEUP = 'mouseup', POINTERMOVE = 'pointermove', POINTERDOWN = 'pointerdown', POINTERUP = 'pointerup', POINTERCANCEL = 'pointercancel', LOSTPOINTERCAPTURE = 'lostpointercapture', POINTEROUT = 'pointerout', POINTERLEAVE = 'pointerleave', POINTEROVER = 'pointerover', POINTERENTER = 'pointerenter', CONTEXTMENU = 'contextmenu', TOUCHSTART = 'touchstart', TOUCHEND = 'touchend', TOUCHMOVE = 'touchmove', TOUCHCANCEL = 'touchcancel', WHEEL = 'wheel', MAX_LAYERS_NUMBER = 5, EVENTS = [
[MOUSEENTER, '_pointerenter'],
[MOUSEDOWN, '_pointerdown'],
[MOUSEMOVE, '_pointermove'],
@@ -6646,22 +6644,12 @@
this.colorKey = key;
shapes[key] = this;
}
/**
* get canvas context tied to the layer
* @method
* @name Konva.Shape#getContext
* @returns {Konva.Context}
*/
getContext() {
Util.warn('shape.getContext() method is deprecated. Please don not use it.');
return this.getLayer().getContext();
}
/**
* get canvas renderer tied to the layer. Note that this returns a canvas renderer, not a canvas element
* @method
* @name Konva.Shape#getCanvas
* @returns {Konva.Canvas}
*/
getCanvas() {
Util.warn('shape.getCanvas() method is deprecated. Please don not use it.');
return this.getLayer().getCanvas();
}
getSceneFunc() {

6
konva.min.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -62,9 +62,9 @@
],
"devDependencies": {
"@parcel/transformer-image": "2.0.0-beta.2",
"@size-limit/preset-big-lib": "^4.10.2",
"@size-limit/preset-big-lib": "^4.10.3",
"@types/mocha": "^8.2.2",
"canvas": "^2.7.0",
"canvas": "^2.8.0",
"chai": "4.3.4",
"filehound": "^1.17.4",
"gulp": "^4.0.2",
@@ -73,21 +73,22 @@
"gulp-exec": "^5.0.0",
"gulp-jsdoc3": "^3.0.0",
"gulp-rename": "^2.0.0",
"gulp-replace": "^1.1.2",
"gulp-replace": "^1.1.3",
"gulp-typescript": "^5.0.1",
"gulp-uglify": "^3.0.2",
"gulp-uglify-es": "^2.0.0",
"gulp-util": "^3.0.8",
"mocha": "8.3.2",
"mocha": "8.4.0",
"mocha-headless-chrome": "^3.1.0",
"parcel": "^2.0.0-beta.2",
"rollup": "^2.47.0",
"rollup": "^2.48.0",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-sourcemaps": "^0.6.3",
"rollup-plugin-typescript2": "^0.30.0",
"size-limit": "^4.10.2",
"size-limit": "^4.10.3",
"ts-mocha": "^8.0.0",
"ts-node": "^9.1.1",
"typescript": "^4.2.4"
},
"keywords": [