update CHANGELOG with new version

This commit is contained in:
Anton Lavrenov 2022-04-27 09:21:24 -05:00
parent 81cf46c18a
commit 83fe1565c7
4 changed files with 40 additions and 20 deletions

View File

@ -3,6 +3,9 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).
### 8.3.4 (2022-04-27)
- Better exports definitions. Importing `Konva` should work better in different bundlers and test environments.
- `imageSmoothingEnabled` option for `node.toDataURL()`, `node.toCanvas()` and `node.toImage()`
## 8.3.5 (2022-03-21)

View File

@ -8,7 +8,7 @@
* Konva JavaScript Framework v8.3.5
* http://konvajs.org/
* Licensed under the MIT
* Date: Mon Apr 11 2022
* Date: Wed Apr 27 2022
*
* Original work Copyright (C) 2011 - 2013 by Eric Rowell (KineticJS)
* Modified work Copyright (C) 2014 - present by Anton Lavrenov (Konva)
@ -370,17 +370,6 @@
getMatrix() {
return this.m;
}
/**
* set to absolute position via translation
* @method
* @name Konva.Transform#setAbsolutePosition
* @returns {Konva.Transform}
* @author ericdrowell
*/
setAbsolutePosition(x, y) {
var m0 = this.m[0], m1 = this.m[1], m2 = this.m[2], m3 = this.m[3], m4 = this.m[4], m5 = this.m[5], yt = (m0 * (y - m5) - m1 * (x - m4)) / (m0 * m3 - m1 * m2), xt = (x - m4 - m2 * yt) / m0;
return this.translate(xt, yt);
}
/**
* convert transformation matrix back into node's attributes
* @method

4
konva.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -9,10 +9,38 @@
"lib",
"cmj"
],
"main": "./lib/index-node.js",
"main": "./cmj/index-node.js",
"browser": "./lib/index.js",
"typings": "./lib/index-types.d.ts",
"type": "module",
"exports": {
".": {
"node": {
"require": "./cmj/index-node.js",
"import": "./lib/index-node.js",
"default": "./lib/index-node.js"
},
"require": "./cmj/index.js",
"import": "./lib/index.js",
"default": "./lib/index.js"
},
"./cmj": {
"import": "./lib/index.js",
"require": "./cmj/index-node.js",
"node": "./cmj/index-node.js",
"default": "./cmj/index.js"
},
"./cmj/*": {
"import": "./lib/*.js",
"require": "./cmj/*.js",
"default": "./cmj/*.js"
},
"./lib/*": {
"import": "./lib/*.js",
"require": "./cmj/*.js",
"default": "./lib/*.js"
}
},
"scripts": {
"start": "npm run test:watch",
"compile": "npm run clean && npm run tsc && cp ./src/index-types.d.ts ./lib/index-types.d.ts && npm run rollup && cp ./package-cmj.json ./cmj/package.json && cp ./src/index-types.d.ts ./cmj/index-types.d.ts",
@ -60,12 +88,12 @@
}
],
"devDependencies": {
"@parcel/transformer-image": "2.4.1",
"@parcel/transformer-image": "2.5.0",
"@size-limit/preset-big-lib": "^7.0.8",
"@types/mocha": "^9.1.0",
"@types/mocha": "^9.1.1",
"canvas": "^2.9.1",
"chai": "4.3.6",
"filehound": "^1.17.5",
"filehound": "^1.17.6",
"gulp": "^4.0.2",
"gulp-concat": "^2.6.1",
"gulp-connect": "^5.7.0",
@ -79,9 +107,9 @@
"gulp-util": "^3.0.8",
"mocha": "9.2.2",
"mocha-headless-chrome": "^4.0.0",
"parcel": "2.4.1",
"parcel": "2.5.0",
"process": "^0.11.10",
"rollup": "^2.70.1",
"rollup": "^2.70.2",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-sourcemaps": "^0.6.3",