Skip to content

Commit

Permalink
Merge pull request #84 from nichollascarter/staging
Browse files Browse the repository at this point in the history
Publish release
  • Loading branch information
nichollascarter authored Nov 4, 2023
2 parents f6edc50 + d592d5b commit e5ec6ae
Show file tree
Hide file tree
Showing 15 changed files with 200 additions and 163 deletions.
15 changes: 14 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
## [1.1.1-rc.1](https://github.com/nichollascarter/subjx/compare/v1.1.0...v1.1.1-rc.1) (2023-01-06)


### Bug Fixes

* **core:** fixed issue on rotating to 90deg ([163e06d](https://github.com/nichollascarter/subjx/commit/163e06dabbf5ed4e956ad33ce7a0738819c59abb)), closes [#47](https://github.com/nichollascarter/subjx/issues/47)

# [1.1.0-rc.5](https://github.com/nichollascarter/subjx/compare/v1.1.0-rc.4...v1.1.0-rc.5) (2022-10-03)


### Bug Fixes

* **core:** fixed issue on rotating to 90deg ([163e06d](https://github.com/nichollascarter/subjx/commit/163e06dabbf5ed4e956ad33ce7a0738819c59abb)), closes [#47](https://github.com/nichollascarter/subjx/issues/47)

# [1.1.0](https://github.com/nichollascarter/subjx/compare/v1.0.0...v1.1.0) (2022-07-04)


Expand All @@ -8,7 +22,6 @@
* **src:** fixed undefined containerMatrix value on applying alignment ([6b20349](https://github.com/nichollascarter/subjx/commit/6b20349b3ca408297d923f64646bc69ac860245c))
* **core:** set correct transform origin, allow alignment for groupable html elements ([cf29d29](https://github.com/nichollascarter/subjx/commit/cf29d2910cbea89c83864b98d382cbfdda535531))


### Features

* **src:** add setCenterPoint method ([7995cf5](https://github.com/nichollascarter/subjx/commit/7995cf504434d98e60bfa6e240a7e14eee8372fb)), closes [#56](https://github.com/nichollascarter/subjx/issues/56)
Expand Down
2 changes: 1 addition & 1 deletion dist/js/subjx.common.js

Large diffs are not rendered by default.

29 changes: 15 additions & 14 deletions dist/js/subjx.dev.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -2462,10 +2462,9 @@ var multiplyMatrix = function multiplyMatrix(m1, m2) {
return result;
};
var matrixInvert = function matrixInvert(matrix) {
var _A = cloneMatrix(matrix);

var A = cloneMatrix(matrix);
var N = A.length;
var temp,
N = _A.length,
E = [];

for (var i = 0; i < N; i++) {
Expand All @@ -2475,46 +2474,48 @@ var matrixInvert = function matrixInvert(matrix) {
for (var _i = 0; _i < N; _i++) {
for (var j = 0; j < N; j++) {
E[_i][j] = 0;
if (_i == j) E[_i][j] = 1;
if (_i === j) E[_i][j] = 1;
}
}

for (var k = 0; k < N; k++) {
temp = _A[k][k];
temp = A[k][k];

for (var _j = 0; _j < N; _j++) {
_A[k][_j] /= temp;
E[k][_j] /= temp;
if (temp !== 0) {
for (var _j = 0; _j < N; _j++) {
A[k][_j] /= temp;
E[k][_j] /= temp;
}
}

for (var _i2 = k + 1; _i2 < N; _i2++) {
temp = _A[_i2][k];
temp = A[_i2][k];

for (var _j2 = 0; _j2 < N; _j2++) {
_A[_i2][_j2] -= _A[k][_j2] * temp;
A[_i2][_j2] -= A[k][_j2] * temp;
E[_i2][_j2] -= E[k][_j2] * temp;
}
}
}

for (var _k = N - 1; _k > 0; _k--) {
for (var _i3 = _k - 1; _i3 >= 0; _i3--) {
temp = _A[_i3][_k];
temp = A[_i3][_k];

for (var _j3 = 0; _j3 < N; _j3++) {
_A[_i3][_j3] -= _A[_k][_j3] * temp;
A[_i3][_j3] -= A[_k][_j3] * temp;
E[_i3][_j3] -= E[_k][_j3] * temp;
}
}
}

for (var _i4 = 0; _i4 < N; _i4++) {
for (var _j4 = 0; _j4 < N; _j4++) {
_A[_i4][_j4] = E[_i4][_j4];
A[_i4][_j4] = E[_i4][_j4];
}
}

return _A;
return A;
};
var computeTransformMatrix = function computeTransformMatrix(tx, _ref) {
var _ref2 = _slicedToArray(_ref, 3),
Expand Down
29 changes: 15 additions & 14 deletions dist/js/subjx.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -2466,10 +2466,9 @@
return result;
};
var matrixInvert = function matrixInvert(matrix) {
var _A = cloneMatrix(matrix);

var A = cloneMatrix(matrix);
var N = A.length;
var temp,
N = _A.length,
E = [];

for (var i = 0; i < N; i++) {
Expand All @@ -2479,46 +2478,48 @@
for (var _i = 0; _i < N; _i++) {
for (var j = 0; j < N; j++) {
E[_i][j] = 0;
if (_i == j) E[_i][j] = 1;
if (_i === j) E[_i][j] = 1;
}
}

for (var k = 0; k < N; k++) {
temp = _A[k][k];
temp = A[k][k];

for (var _j = 0; _j < N; _j++) {
_A[k][_j] /= temp;
E[k][_j] /= temp;
if (temp !== 0) {
for (var _j = 0; _j < N; _j++) {
A[k][_j] /= temp;
E[k][_j] /= temp;
}
}

for (var _i2 = k + 1; _i2 < N; _i2++) {
temp = _A[_i2][k];
temp = A[_i2][k];

for (var _j2 = 0; _j2 < N; _j2++) {
_A[_i2][_j2] -= _A[k][_j2] * temp;
A[_i2][_j2] -= A[k][_j2] * temp;
E[_i2][_j2] -= E[k][_j2] * temp;
}
}
}

for (var _k = N - 1; _k > 0; _k--) {
for (var _i3 = _k - 1; _i3 >= 0; _i3--) {
temp = _A[_i3][_k];
temp = A[_i3][_k];

for (var _j3 = 0; _j3 < N; _j3++) {
_A[_i3][_j3] -= _A[_k][_j3] * temp;
A[_i3][_j3] -= A[_k][_j3] * temp;
E[_i3][_j3] -= E[_k][_j3] * temp;
}
}
}

for (var _i4 = 0; _i4 < N; _i4++) {
for (var _j4 = 0; _j4 < N; _j4++) {
_A[_i4][_j4] = E[_i4][_j4];
A[_i4][_j4] = E[_i4][_j4];
}
}

return _A;
return A;
};
var computeTransformMatrix = function computeTransformMatrix(tx, _ref) {
var _ref2 = _slicedToArray(_ref, 3),
Expand Down
29 changes: 15 additions & 14 deletions dist/js/subjx.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -2460,10 +2460,9 @@ var multiplyMatrix = function multiplyMatrix(m1, m2) {
return result;
};
var matrixInvert = function matrixInvert(matrix) {
var _A = cloneMatrix(matrix);

var A = cloneMatrix(matrix);
var N = A.length;
var temp,
N = _A.length,
E = [];

for (var i = 0; i < N; i++) {
Expand All @@ -2473,46 +2472,48 @@ var matrixInvert = function matrixInvert(matrix) {
for (var _i = 0; _i < N; _i++) {
for (var j = 0; j < N; j++) {
E[_i][j] = 0;
if (_i == j) E[_i][j] = 1;
if (_i === j) E[_i][j] = 1;
}
}

for (var k = 0; k < N; k++) {
temp = _A[k][k];
temp = A[k][k];

for (var _j = 0; _j < N; _j++) {
_A[k][_j] /= temp;
E[k][_j] /= temp;
if (temp !== 0) {
for (var _j = 0; _j < N; _j++) {
A[k][_j] /= temp;
E[k][_j] /= temp;
}
}

for (var _i2 = k + 1; _i2 < N; _i2++) {
temp = _A[_i2][k];
temp = A[_i2][k];

for (var _j2 = 0; _j2 < N; _j2++) {
_A[_i2][_j2] -= _A[k][_j2] * temp;
A[_i2][_j2] -= A[k][_j2] * temp;
E[_i2][_j2] -= E[k][_j2] * temp;
}
}
}

for (var _k = N - 1; _k > 0; _k--) {
for (var _i3 = _k - 1; _i3 >= 0; _i3--) {
temp = _A[_i3][_k];
temp = A[_i3][_k];

for (var _j3 = 0; _j3 < N; _j3++) {
_A[_i3][_j3] -= _A[_k][_j3] * temp;
A[_i3][_j3] -= A[_k][_j3] * temp;
E[_i3][_j3] -= E[_k][_j3] * temp;
}
}
}

for (var _i4 = 0; _i4 < N; _i4++) {
for (var _j4 = 0; _j4 < N; _j4++) {
_A[_i4][_j4] = E[_i4][_j4];
A[_i4][_j4] = E[_i4][_j4];
}
}

return _A;
return A;
};
var computeTransformMatrix = function computeTransformMatrix(tx, _ref) {
var _ref2 = _slicedToArray(_ref, 3),
Expand Down
2 changes: 1 addition & 1 deletion dist/js/subjx.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "subjx",
"version": "1.1.0",
"version": "1.1.1-rc.1",
"description": "Drag, Rotate, Resize library",
"author": "Karen Sarksyan (https://github.com/nichollascarter)",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const libraryName = 'subjx';

const banner = `/*@license
* Drag/Rotate/Resize Library
* Released under the MIT license, 2018-2022
* Released under the MIT license, 2018-2023
* Karen Sarksyan
* [email protected]
*/`;
Expand Down
Loading

0 comments on commit e5ec6ae

Please sign in to comment.