Skip to content

Commit

Permalink
Add defaultRobotZoom as dependency
Browse files Browse the repository at this point in the history
Signed-off-by: angatupyry <fierrofenix@gmail.com>
  • Loading branch information
Angatupyry committed Aug 30, 2023
1 parent e69257a commit d362c54
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/dashboard/src/managers/resource-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export interface ResourceConfigurationsType {
reportIssue?: string;
pickupZones?: string[];
defaultZoom?: number;
defaultRobotZoom?: number;
}

export default class ResourceManager {
Expand All @@ -24,6 +25,7 @@ export default class ResourceManager {
reportIssue: string;
pickupZones?: string[];
defaultZoom: number;
defaultRobotZoom: number;

/**
* Gets the default resource manager using the embedded resource file (aka "assets/resources/main.json").
Expand Down Expand Up @@ -59,6 +61,7 @@ export default class ResourceManager {
this.reportIssue = resources.reportIssue || 'https://github.com/open-rmf/rmf-web/issues';
this.pickupZones = resources.pickupZones || [];
this.defaultZoom = resources.defaultZoom ?? 5;
this.defaultRobotZoom = resources.defaultRobotZoom ?? 6;
}
}

Expand Down

0 comments on commit d362c54

Please sign in to comment.