Skip to content

Commit

Permalink
chore(release): 1.1.0-rc.5
Browse files Browse the repository at this point in the history
# [1.1.0-rc.5](v1.1.0-rc.4...v1.1.0-rc.5) (2022-10-03)

### Bug Fixes

* **core:** fixed issue on rotating to 90deg ([163e06d](163e06d)), closes [#47](#47)
  • Loading branch information
semantic-release-bot committed Oct 3, 2022
1 parent c5de0be commit 7fa162c
Show file tree
Hide file tree
Showing 8 changed files with 56 additions and 46 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# [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-rc.4](https://github.com/nichollascarter/subjx/compare/v1.1.0-rc.3...v1.1.0-rc.4) (2022-03-21)


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-rc.4",
"version": "1.1.0-rc.5",
"description": "Drag, Rotate, Resize library",
"author": "Karen Sarksyan (https://github.com/nichollascarter)",
"license": "MIT",
Expand Down

0 comments on commit 7fa162c

Please sign in to comment.