Skip to content

Commit

Permalink
Remove nice spaces for the linter
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner authored and renovate[bot] committed Aug 26, 2024
1 parent 3fb8712 commit 15fb9bf
Show file tree
Hide file tree
Showing 16 changed files with 51 additions and 129 deletions.
7 changes: 1 addition & 6 deletions src/auth/FormElement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,6 @@ export default class GmfAuthForm extends GmfBaseElement {

/**
* Calls the authentication service changePassword method.
*
* @param evt the event
*/
changePassword(evt: Event): void {
Expand Down Expand Up @@ -457,7 +456,6 @@ export default class GmfAuthForm extends GmfBaseElement {

/**
* Calls the authentication service login method.
*
* @param evt Event from the form submit action.
*/
login(evt: Event): void {
Expand Down Expand Up @@ -503,7 +501,6 @@ export default class GmfAuthForm extends GmfBaseElement {

/**
* Calls the authentication service logout method.
*
* @param evt Event from the form submit action.
*/
logout(evt: Event): void {
Expand Down Expand Up @@ -536,7 +533,6 @@ export default class GmfAuthForm extends GmfBaseElement {

/**
* Calls the authentication service resetPassword method.
*
* @param evt Event from the form submit action.
*/
resetPassword(evt: Event): void {
Expand Down Expand Up @@ -591,8 +587,7 @@ export default class GmfAuthForm extends GmfBaseElement {
}

/**
* Set an error notification
*
* Set an error notification.
* @param errors List of errors
* @param messageType Type of message
*/
Expand Down
9 changes: 0 additions & 9 deletions src/auth/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ let userTransformer = (user: User) => user;

/**
* Method defined in the aim to be overridden.
*
* @param fn The callback function to apply after login.
*/
export function setOnSuccessfulLoginFunction(fn: typeof userTransformer): void {
Expand Down Expand Up @@ -66,22 +65,19 @@ export enum RouteSuffix {
export class AuthenticationService {
/**
* The authentication url without trailing slash.
*
* @private
*/
baseUrl_: string;

/**
* The user.
*
* @private
*/
user_: User;

/**
* Don't request a new user object from the back-end after
* logging out if the logged-in user's role has this role.
*
* @private
*/
noReloadRole_: undefined | gmfOptionsGmfAuthenticationNoReloadRole;
Expand All @@ -93,7 +89,6 @@ export class AuthenticationService {
constructor() {
/**
* The authentication url without trailing slash.
*
* @private
*/
this.baseUrl_ = null;
Expand All @@ -111,7 +106,6 @@ export class AuthenticationService {
/**
* Don't request a new user object from the back-end after
* logging out if the logged-in user's role has this role.
*
* @private
*/
this.noReloadRole_ = null;
Expand All @@ -137,7 +131,6 @@ export class AuthenticationService {

/**
* Check whether the user is connected or not like on load.
*
* @private
*/
checkConnection_(): void {
Expand Down Expand Up @@ -165,7 +158,6 @@ export class AuthenticationService {
/**
* Load the authentication service, which sends an async request to
* determine whether the user is currently connected or not.
*
* @private
*/
load_(): void {
Expand Down Expand Up @@ -262,7 +254,6 @@ export class AuthenticationService {

/**
* Check the user to have a user with all parameters in all cases.
*
* @param data Ajax response.
* @returns Response.
*/
Expand Down
8 changes: 2 additions & 6 deletions src/canvas/DesktopElement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -503,8 +503,7 @@ export default class GmfDesktopCanvas extends BaseElement {

/**
* Panel resizing:
* Store initial mouse position, listen to drag event and resize elements
*
* Store initial mouse position, listen to drag event and resize elements.
* @param {PanelResize} panelResizeEvent Interface to store the details of the drag event
* @param {HTMLElement} separator Element separating the elements to resize
* @param {HTMLElement} leftElement Left element to resize
Expand Down Expand Up @@ -540,8 +539,7 @@ export default class GmfDesktopCanvas extends BaseElement {

/**
* Panel resizing:
* Compute drag offset, change element position or width accordingly
*
* Compute drag offset, change element position or width accordingly.
* @param {PanelResize} panelResizeEvent Interface to store the details of the mouse down event
* @returns {MouseEvent} The drag event
*/
Expand Down Expand Up @@ -598,7 +596,6 @@ export default class GmfDesktopCanvas extends BaseElement {

/**
* Resize the data (left) panel when dragging the separator
*
* @param {MouseEvent} event The mouse down event
* @param {ShadowRoot} desktopCanvas The desktop canvas
* @returns {MouseEvent} The mouse down event
Expand All @@ -616,7 +613,6 @@ export default class GmfDesktopCanvas extends BaseElement {

/**
* Resize the tool (right) panel when dragging the separator
*
* @param {MouseEvent} event The mouse down event
* @param {ShadowRoot} desktopCanvas The desktop canvas
* @returns {MouseEvent} The mouse down event
Expand Down
2 changes: 0 additions & 2 deletions src/download/Csv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ export class DownloadCsvService {

/**
* Generate a CSV.
*
* @param {Object<string, any>[]} data Entries/objects to include in the CSV.
* @param {GridColumnDef[]} columnDefs Column definitions.
* @returns {string} The CSV file as string.
Expand Down Expand Up @@ -116,7 +115,6 @@ export class DownloadCsvService {

/**
* Generate a CSV and start a download with the generated file.
*
* @param {Object<string, any>[]} data Entries/objects to include in the CSV.
* @param {GridColumnDef[]} columnDefs Column definitions.
* @param {string} fileName The CSV file name, without the extension.
Expand Down
1 change: 0 additions & 1 deletion src/download/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import {saveAs} from 'file-saver';

/**
* A function to start a download for a file.
*
* @param {string} content The content of the file to download.
* @param {string} fileName The name of the file to download.
* @param {string | undefined} opt_fileType The type of the file to download.
Expand Down
3 changes: 1 addition & 2 deletions src/lidar/Config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,7 @@ export class LidarprofileConfigService {
}

/**
* Initialize the service variables from Pytree profile_config_gmf2 route
*
* Initialize the service variables from Pytree profile_config_gmf2 route.
* @returns Promise<void | Response> The server configuration.
*/
initProfileConfig(): Promise<void | Response> {
Expand Down
38 changes: 16 additions & 22 deletions src/lidar/Manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,23 +81,23 @@ export class LidarprofileManager {
map_: undefined | OlMap;

/**
* The hovered point attributes in D3 profile highlighted on the 2D map
* The hovered point attributes in D3 profile highlighted on the 2D map.
*/
cartoHighlight: OlOverlay;

/**
* The hovered point geometry (point) in D3 profile highlighted on the 2D map
* The hovered point geometry (point) in D3 profile highlighted on the 2D map.
*/
lidarPointHighlight: OlLayerVector<OlSourceVector<OlGeomGeometry>>;

/**
* The profile footpring represented as a LineString represented
* with real mapunites stroke width
* with real mapunites stroke width.
*/
lidarBuffer: OlLayerVector<OlSourceVector<OlGeomGeometry>>;

/**
* The variable where all points of the profile are stored
* The variable where all points of the profile are stored.
*/
profilePoints: GmfLidarprofileUtilsLidarprofilePoints;

Expand All @@ -118,7 +118,7 @@ export class LidarprofileManager {
debouncer = debounce(() => this.updateData_(), 200);
/**
* Provides a service to manage a D3js component to be used to draw an lidar point cloud profile chart.
* Requires access to a Pytree webservice: https://github.com/sitn/pytree
* Requires access to a Pytree webservice: https://github.com/sitn/pytree.
*/
constructor() {
/**
Expand All @@ -138,15 +138,15 @@ export class LidarprofileManager {
this.map_ = null;

/**
* The hovered point attributes in D3 profile highlighted on the 2D map
* The hovered point attributes in D3 profile highlighted on the 2D map.
*/
this.cartoHighlight = new olOverlay({
offset: [0, -15],
positioning: 'bottom-center',
});

/**
* The hovered point geometry (point) in D3 profile highlighted on the 2D map
* The hovered point geometry (point) in D3 profile highlighted on the 2D map.
*/
this.lidarPointHighlight = new olLayerVector({
className: 'canvas2d',
Expand All @@ -163,15 +163,15 @@ export class LidarprofileManager {

/**
* The profile footpring represented as a LineString represented
* with real mapunites stroke width
* with real mapunites stroke width.
*/
this.lidarBuffer = new olLayerVector({
className: 'canvas2d',
source: new olSourceVector({}),
});

/**
* The variable where all points of the profile are stored
* The variable where all points of the profile are stored.
*/
this.profilePoints = this.getEmptyProfilePoints_();

Expand Down Expand Up @@ -200,7 +200,7 @@ export class LidarprofileManager {
}

/**
* Clears the profile footprint
* Clears the profile footprint.
*/
clearBuffer(): void {
if (this.lidarBuffer) {
Expand All @@ -211,17 +211,15 @@ export class LidarprofileManager {
}

/**
* Set the line for the profile
*
* Set the line for the profile.
* @param line that defines the profile
*/
setLine(line: undefined | OlGeomLineString): void {
this.line_ = line;
}

/**
* Set the map used by the profile
*
* Set the map used by the profile.
* @param map The map.
*/
setMap(map: OlMap): void {
Expand All @@ -247,8 +245,7 @@ export class LidarprofileManager {
}

/**
* Load profile data (lidar points) by successive Levels Of Details using asynchronous requests
*
* Load profile data (lidar points) by successive Levels Of Details using asynchronous requests.
* @param clippedLine an array of the clipped line coordinates
* @param distanceOffset the left side of D3 profile domain at current zoom and pan configuration
* @param resetPlot whether to reset D3 plot or not
Expand Down Expand Up @@ -356,8 +353,7 @@ export class LidarprofileManager {
}

/**
* Request to Pytree service for a range of Level Of Detail (LOD)
*
* Request to Pytree service for a range of Level Of Detail (LOD).
* @param minLOD minimum Level Of Detail of the request
* @param maxLOD maximum Level Of Detail of the request
* @param iter the iteration in profile requests cycle
Expand Down Expand Up @@ -430,8 +426,7 @@ export class LidarprofileManager {
}

/**
* Process the binary array return by Pytree (cPotree)
*
* Process the binary array return by Pytree (cPotree).
* @param profile binary array returned by cPotree executable called by Pytree
* @param iter the iteration in profile requests cycle
* @param distanceOffset the left side of D3 profile domain at current zoom and pan configuration
Expand Down Expand Up @@ -609,8 +604,7 @@ export class LidarprofileManager {
}

/**
* Callback method used by the debouncer to update the profile data
*
* Callback method used by the debouncer to update the profile data.
* @private
*/
updateData_(): void {
Expand Down
8 changes: 3 additions & 5 deletions src/lidar/Measure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ export default class {
pEnd_: GmfLidarprofileUtilsLidarPoint;

/**
* Measure tool for the d3 chart
*
* Measure tool for the d3 chart.
* @param gmfLidarprofileManagerInstance
* gmf lidar profile manager instance
*/
Expand All @@ -68,7 +67,7 @@ export default class {
}

/**
* Clear the current measure
* Clear the current measure.
*/
clearMeasure(): void {
this.pStart_ = {};
Expand All @@ -92,7 +91,7 @@ export default class {
}

/**
* Activate the measure tool
* Activate the measure tool.
*/
setMeasureActive(): void {
const svg = d3select(
Expand All @@ -106,7 +105,6 @@ export default class {

/**
* Measure and display height after two click on the profile.
*
* @param event Event .
*/
measureHeight(event: MouseEvent): void {
Expand Down
Loading

0 comments on commit 15fb9bf

Please sign in to comment.