clean code, update deps

This commit is contained in:
Anton Lavrenov
2020-05-07 16:10:26 -05:00
parent d868ecc5b6
commit a2adcf5f17
5 changed files with 12 additions and 19 deletions

View File

@@ -1,7 +1,6 @@
var gulp = require('gulp');
var rename = require('gulp-rename');
var uglify = require('gulp-uglify');
var concat = require('gulp-concat');
var replace = require('gulp-replace');
var jsdoc = require('gulp-jsdoc3');
var connect = require('gulp-connect');

View File

@@ -11076,12 +11076,12 @@
Image.prototype.getWidth = function () {
var _a;
var image = this.image();
return _a = this.attrs.width, (_a !== null && _a !== void 0 ? _a : (image ? image.width : 0));
return (_a = this.attrs.width) !== null && _a !== void 0 ? _a : (image ? image.width : 0);
};
Image.prototype.getHeight = function () {
var _a;
var image = this.image();
return _a = this.attrs.height, (_a !== null && _a !== void 0 ? _a : (image ? image.height : 0));
return (_a = this.attrs.height) !== null && _a !== void 0 ? _a : (image ? image.height : 0);
};
/**
* load image from given url and create `Konva.Image` instance
@@ -15143,9 +15143,6 @@
_this._cursorChange = true;
});
anchor.on('mouseout', function () {
if (!anchor.getStage() || !anchor.getParent()) {
return;
}
anchor.getStage().content.style.cursor = '';
_this._cursorChange = false;
});

2
konva.min.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -35,23 +35,23 @@
"gulp-eslint": "^6.0.0",
"gulp-exec": "^4.0.0",
"gulp-jscpd": "0.0.8",
"gulp-jsdoc3": "^2.0.0",
"gulp-rename": "^1.4.0",
"gulp-jsdoc3": "^3.0.0",
"gulp-rename": "^2.0.0",
"gulp-replace": "^1.0.0",
"gulp-typescript": "^5.0.1",
"gulp-uglify": "^3.0.2",
"gulp-util": "^3.0.8",
"install": "^0.13.0",
"mocha": "6.2.2",
"mocha-headless-chrome": "^2.0.3",
"mocha": "7.1.2",
"mocha-headless-chrome": "^3.0.0",
"npm": "^6.14.5",
"prettier": "^1.19.1",
"rollup": "^1.27.0",
"prettier": "^2.0.5",
"rollup": "^2.8.2",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"rollup-plugin-typescript2": "^0.25.2",
"typescript": "^3.7.5"
"rollup-plugin-sourcemaps": "^0.6.1",
"rollup-plugin-typescript2": "^0.27.0",
"typescript": "^3.8.3"
},
"keywords": [
"canvas",

View File

@@ -536,9 +536,6 @@ export class Transformer extends Group {
this._cursorChange = true;
});
anchor.on('mouseout', () => {
if (!anchor.getStage() || !anchor.getParent()) {
return;
}
anchor.getStage().content.style.cursor = '';
this._cursorChange = false;
});