Skip to content

Commit

Permalink
refactor(map-overlay): missing property for MapOverlay Interface (#1114)
Browse files Browse the repository at this point in the history
* refactor(map-overlay): missin property for MapOverlay Interface
* refactor(mapOverlay): move from string to enum (media and mapoverlay class)
  • Loading branch information
pelord authored Dec 20, 2023
1 parent 864271d commit bb7f5e6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 16 deletions.
11 changes: 11 additions & 0 deletions src/app/pages/portal/map-overlay/map-overlay.enum.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export enum MapOverlayCssClass {
TopLeft = 'top-left',
CenterLeft = 'center-left',
BottomLeft = 'bottom-left',
TopCenter = 'top-center',
CenterCenter = 'center-center',
BottomCenter = 'bottom-center',
TopRight = 'top-right',
CenterRight = 'center-right',
BottoMRight = 'bottom-right'
}
29 changes: 13 additions & 16 deletions src/app/pages/portal/map-overlay/map-overlay.interface.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
import { Media } from '@igo2/core';

import { MapOverlayCssClass } from './map-overlay.enum';

export interface MapOverlay {
media: Array<string> /* Media device to display the mapOverlay
- options: mobile
tablet
desktop
- default: desktop
cssClass: string; /* Css class to define position of the element
- options: top-left
center-left
bottom-left
top-center
center-center
bottom-center
top-right
center-right
bottom-right
*/;
/**
* Media device to display the mapOverlay
* Desktop is the default value.
*/
media: Array<Media>;
/**
* Css class to define position of the element
*/
cssClass: MapOverlayCssClass;
fixed?: boolean; // Is element is fixed, won't be affect by animation, default to false
link?: string; // Link to open when element is clicked
imgSrc?: string; // source of the image to show
Expand Down

0 comments on commit bb7f5e6

Please sign in to comment.