[#39144] fixed PR formatting issues

pull/9783/head
Eric Schubert 3 years ago
parent d1a9657911
commit 2f3f1b5e61
No known key found for this signature in database
GPG Key ID: 1D346C019BD4BAA2
  1. 4
      .editorconfig
  2. 4
      frontend/src/app/features/bim/bcf/api/viewpoints/bcf-viewpoint.paths.ts
  3. 3
      frontend/src/app/features/bim/bcf/helper/viewpoints.service.ts
  4. 4
      frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.service.ts

@ -443,8 +443,8 @@ ij_typescript_keep_blank_lines_in_code = 2
ij_typescript_keep_first_column_comment = true
ij_typescript_keep_indents_on_empty_lines = false
ij_typescript_keep_line_breaks = true
ij_typescript_keep_simple_blocks_in_one_line = false
ij_typescript_keep_simple_methods_in_one_line = false
ij_typescript_keep_simple_blocks_in_one_line = true
ij_typescript_keep_simple_methods_in_one_line = true
ij_typescript_line_comment_add_space = true
ij_typescript_line_comment_at_first_column = false
ij_typescript_method_brace_style = end_of_line

@ -50,9 +50,7 @@ export class BcfViewpointPaths extends BcfResourcePath {
return this.bcfViewpointsService
.request('delete', this.toPath(), {}, headers)
.pipe(
map(() => {
// no expected response payload after delete
}),
map(() => { }),
);
}
}

@ -50,8 +50,7 @@ export class ViewpointsService {
@InjectField() apiV3Service:APIV3Service;
constructor(readonly injector:Injector) {
}
constructor(readonly injector:Injector) { }
public getViewPointResource(workPackage:WorkPackageResource, index:number):BcfViewpointPaths {
const viewpointHref = (workPackage.bcfViewpoints as HalResource[])[index].href as string;

@ -41,6 +41,7 @@ import idFromLink from 'core-app/features/hal/helpers/id-from-link';
import { IfcProjectDefinition } from 'core-app/features/bim/ifc_models/pages/viewer/ifc-models-data.service';
import { BIMViewer } from '@xeokit/xeokit-bim-viewer/dist/xeokit-bim-viewer.es';
import { BcfViewpointData, CreateBcfViewpointData } from 'core-app/features/bim/bcf/api/bcf-api.model';
import { HalResource } from 'core-app/features/hal/resources/hal-resource';
export interface XeokitElements {
canvasElement:HTMLElement;
@ -226,8 +227,7 @@ export class IFCViewerService extends ViewerBridgeService {
// and redirect to a route with a place to show viewer
// ('bim.partitioned.split')
window.location.href = this.pathHelper.bimDetailsPath(
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
idFromLink(workPackage.project.href),
idFromLink((workPackage.project as HalResource).href),
workPackage.id,
index,
);

Loading…
Cancel
Save