Skip to content

Commit

Permalink
Fix bugs related to animation data properties parser and parent rotat…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
elchininet committed Jun 6, 2021
1 parent 34c31b1 commit d0f1b49
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,10 @@
# Changelog

## [2.2.3] - 2021-06-06

- Fix a bug related to data animation properties parser
- Fix a bug related to parent rotation storing when using JavaScript methods

## [2.2.2] - 2021-05-28

- Fix a bug with animation positions with negative values
Expand Down
2 changes: 1 addition & 1 deletion src/constants/index.ts
Expand Up @@ -5,7 +5,7 @@ export const SCALE = Math.sqrt(3 / 2);
export const ROT_60 = Math.PI / 3;
export const ROT_45 = Math.PI / 4;
export const ROT_CMA = Math.atan(Math.SQRT2);
export const PROPS_REG_EXP = /(?: |,|^)((?:right|left|top)+)\s*:\s*(-?(?:(?:\d+)?\.\d+|\d+))(?= |,|$)/g;
export const PROPS_REG_EXP = /(?: |,|^)(right|left|top)\s*:\s*(-?\d*?\.?\d+)(?= |,|$)/g;
export const EASING_REG_EXP = /^((ease(-in|-out|-in-out)?)|linear|(step(-start|-end)))$/;

export enum VIEW {
Expand Down
1 change: 0 additions & 1 deletion src/utilities/dom.ts
Expand Up @@ -18,7 +18,6 @@ export const getParentRotations = (element: HTMLElement): Rotation[] => {
while (element.parentElement && element.parentElement !== document.documentElement) {
const parent = element.parentElement;
if (
parent.classList.contains(NAMESPACE) &&
!parent.dataset.view &&
parent.dataset.rotationAxis
) {
Expand Down

0 comments on commit d0f1b49

Please sign in to comment.