Skip to content

Commit

Permalink
fix: bugs update version update
Browse files Browse the repository at this point in the history
  • Loading branch information
imransilvake committed Nov 27, 2020
1 parent 2f2002c commit 85d89b9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@
"stylelint": "^13.8.0",
"stylelint-order": "^4.1.0",
"ts-node": "~9.0.0",
"tslint": "~6.1.3",
"typescript": "~4.1.2",
"typescript": "~4.0.0",
"eslint": "^7.14.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-jsdoc": "30.7.8",
Expand Down
4 changes: 2 additions & 2 deletions src/app/packages/frame.pck/components/e404/e404.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ export class E404Component implements OnInit, OnDestroy {
.subscribe(event => {
// event['pageX']: get horizontal coordinates of the mouse
// window.innerWidth: browser width
const x = event.pageX * 100 / window.innerWidth;
const x = event && (event['pageX'] * 100 / window.innerWidth);

// event['pageY']: vertical coordinates of the mouse
// window.innerHeight: browser height
const y = event.pageY * 100 / window.innerHeight;
const y = event && (event['pageY'] * 100 / window.innerHeight);

// left: x > 20
// right: x < 80
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,11 @@ export class PhotographyComponent implements OnInit {
const filteredData = formattedData.filter(i => !!i.slider);

// update slider values
if (!this.sliderList.items) {
if (!this.sliderList['items']) {
this.sliderList = { ...photography, items: filteredData };
this.sliderInterval = AppOptions.intervals.photography;
} else {
this.sliderList = { ...photography, items: this.sliderList.items.concat(filteredData) };
this.sliderList = { ...photography, items: this.sliderList['items'].concat(filteredData) };
}
}

Expand Down Expand Up @@ -221,7 +221,7 @@ export class PhotographyComponent implements OnInit {
const itemHeight = (originalLandscapeHeight / originalLandscapeWidth) * itemWidth;

// assign values
this.sliderItem.landscapeHeight = itemHeight < 500 ? itemHeight : 500;
this.sliderItem['landscapeHeight'] = itemHeight < 500 ? itemHeight : 500;
}

/**
Expand Down Expand Up @@ -269,9 +269,9 @@ export class PhotographyComponent implements OnInit {
const itemHeight = (originalLandscapeHeight / originalLandscapeWidth) * itemWidth;

// assign values
this.gridItem.landscapeWidth = itemWidth;
this.gridItem.landscapeHeight = itemHeight;
this.gridItem.portraitWidth = originalPortraitWidth;
this.gridItem.portraitHeight = (itemHeight * 2) + gutterGap;
this.gridItem['landscapeWidth'] = itemWidth;
this.gridItem['landscapeHeight'] = itemHeight;
this.gridItem['portraitWidth'] = originalPortraitWidth;
this.gridItem['portraitHeight'] = (itemHeight * 2) + gutterGap;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class CardCodeComponent implements OnInit {
*
* @param object
*/
public appendClassesInLine(object: string[]) {
public appendClassesInLine(object: any) {
let text = object.text;
const classes = object.classes;

Expand Down

0 comments on commit 85d89b9

Please sign in to comment.