@smarterplan/ngx-smarterplan-locations 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -0
- package/esm2020/lib/components/carousel/carousel.component.mjs +28 -0
- package/esm2020/lib/components/chevron/chevron.component.mjs +18 -0
- package/esm2020/lib/components/detail-location/detail-location.component.mjs +154 -0
- package/esm2020/lib/components/form-location/form-location.component.mjs +215 -0
- package/esm2020/lib/components/images/images.component.mjs +91 -0
- package/esm2020/lib/components/locations/locations.component.mjs +138 -0
- package/esm2020/lib/components/locations/map/map-popup/map-popup.component.mjs +66 -0
- package/esm2020/lib/components/locations/map/map.component.mjs +91 -0
- package/esm2020/lib/components/plans/calibration/calibration.component.mjs +484 -0
- package/esm2020/lib/components/plans/edit-plan/edit-plan.component.mjs +314 -0
- package/esm2020/lib/components/plans/plans.component.mjs +211 -0
- package/esm2020/lib/components/tab-navigation/tab-navigation.component.mjs +40 -0
- package/esm2020/lib/components/visits/visits.component.mjs +227 -0
- package/esm2020/lib/components/zones/add-zone/add-zone.component.mjs +592 -0
- package/esm2020/lib/components/zones/add-zone/selection/selection.component.mjs +77 -0
- package/esm2020/lib/components/zones/zones.component.mjs +214 -0
- package/esm2020/lib/helper.service.mjs +2 -0
- package/esm2020/lib/ngx-smarterplan-location-routing.module.mjs +49 -0
- package/esm2020/lib/ngx-smarterplan-locations.module.mjs +107 -0
- package/esm2020/lib/ngx-smarterplan-locations.service.mjs +14 -0
- package/esm2020/public-api.mjs +6 -0
- package/esm2020/smarterplan-ngx-smarterplan-locations.mjs +5 -0
- package/fesm2015/smarterplan-ngx-smarterplan-locations.mjs +3126 -0
- package/fesm2015/smarterplan-ngx-smarterplan-locations.mjs.map +1 -0
- package/fesm2020/smarterplan-ngx-smarterplan-locations.mjs +2987 -0
- package/fesm2020/smarterplan-ngx-smarterplan-locations.mjs.map +1 -0
- package/lib/components/carousel/carousel.component.d.ts +12 -0
- package/lib/components/chevron/chevron.component.d.ts +9 -0
- package/lib/components/detail-location/detail-location.component.d.ts +51 -0
- package/lib/components/form-location/form-location.component.d.ts +40 -0
- package/lib/components/images/images.component.d.ts +28 -0
- package/lib/components/locations/locations.component.d.ts +49 -0
- package/lib/components/locations/map/map-popup/map-popup.component.d.ts +22 -0
- package/lib/components/locations/map/map.component.d.ts +22 -0
- package/lib/components/plans/calibration/calibration.component.d.ts +140 -0
- package/lib/components/plans/edit-plan/edit-plan.component.d.ts +54 -0
- package/lib/components/plans/plans.component.d.ts +59 -0
- package/lib/components/tab-navigation/tab-navigation.component.d.ts +13 -0
- package/lib/components/visits/visits.component.d.ts +51 -0
- package/lib/components/zones/add-zone/add-zone.component.d.ts +154 -0
- package/lib/components/zones/add-zone/selection/selection.component.d.ts +44 -0
- package/lib/components/zones/zones.component.d.ts +66 -0
- package/lib/helper.service.d.ts +6 -0
- package/lib/ngx-smarterplan-location-routing.module.d.ts +7 -0
- package/lib/ngx-smarterplan-locations.module.d.ts +31 -0
- package/lib/ngx-smarterplan-locations.service.d.ts +6 -0
- package/package.json +39 -0
- package/public-api.d.ts +2 -0
- package/smarterplan-ngx-smarterplan-locations.d.ts +5 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CarouselComponent implements OnInit {
|
|
4
|
+
images: any;
|
|
5
|
+
currentScan: EventEmitter<number>;
|
|
6
|
+
dataEvent: string;
|
|
7
|
+
constructor();
|
|
8
|
+
ngOnInit(): void;
|
|
9
|
+
onSlide(event: any): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CarouselComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CarouselComponent, "lib-carousel", never, { "images": "images"; }, { "currentScan": "currentScan"; }, never, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ChevronComponent implements OnInit {
|
|
4
|
+
conditionShowing: boolean;
|
|
5
|
+
constructor();
|
|
6
|
+
ngOnInit(): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChevronComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChevronComponent, "lib-chevron", never, { "conditionShowing": "conditionShowing"; }, {}, never, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
5
|
+
import { MenuItem, SpaceService, BaseUserService, NavigatorService, Space } from 'ngx-smarterplan-core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class DetailLocationComponent implements OnInit {
|
|
8
|
+
private route;
|
|
9
|
+
private spaceService;
|
|
10
|
+
private router;
|
|
11
|
+
private userService;
|
|
12
|
+
private translate;
|
|
13
|
+
private navigatorService;
|
|
14
|
+
space: Space;
|
|
15
|
+
editForm: FormGroup;
|
|
16
|
+
isEditing: boolean;
|
|
17
|
+
imageToUpload: File;
|
|
18
|
+
id: string;
|
|
19
|
+
menuItems: MenuItem[];
|
|
20
|
+
isValidatingDpe: boolean;
|
|
21
|
+
selectedDpeResult: any;
|
|
22
|
+
gettingData: boolean;
|
|
23
|
+
parsedMetadata: {
|
|
24
|
+
geo_adresse: string;
|
|
25
|
+
secteur_activite: string;
|
|
26
|
+
annee_construction: string;
|
|
27
|
+
classe_consommation_energie: string;
|
|
28
|
+
classe_estimation_ges: string;
|
|
29
|
+
selected: boolean;
|
|
30
|
+
}[];
|
|
31
|
+
guestLink: string;
|
|
32
|
+
canArchive: boolean;
|
|
33
|
+
constructor(route: ActivatedRoute, spaceService: SpaceService, router: Router, userService: BaseUserService, translate: TranslateService, navigatorService: NavigatorService);
|
|
34
|
+
ngOnInit(): Promise<void>;
|
|
35
|
+
setupMenuItems(): void;
|
|
36
|
+
onEdit(): void;
|
|
37
|
+
onReturn(): void;
|
|
38
|
+
reset(): void;
|
|
39
|
+
onArchive(): Promise<void>;
|
|
40
|
+
onFormChange(event: Space): void;
|
|
41
|
+
onDpeValidate(): void;
|
|
42
|
+
onSelectChange(selectedResult: any): void;
|
|
43
|
+
onSaveResult(): Promise<void>;
|
|
44
|
+
onCancel(): void;
|
|
45
|
+
onErase(): Promise<void>;
|
|
46
|
+
onGetDpeData(): Promise<void>;
|
|
47
|
+
setGuestLink(): void;
|
|
48
|
+
setCanArchive(): Promise<void>;
|
|
49
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DetailLocationComponent, never>;
|
|
50
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DetailLocationComponent, "lib-detail-location", never, {}, {}, never, never>;
|
|
51
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { FormGroup, FormBuilder, AbstractControl } from '@angular/forms';
|
|
3
|
+
import { Space, LevelStatus, SpaceService, PropertyService, BaseUserService, MissionService, Layer, LayerService } from 'ngx-smarterplan-core';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FormLocationComponent implements OnInit {
|
|
6
|
+
private spaceService;
|
|
7
|
+
private propertyService;
|
|
8
|
+
private userService;
|
|
9
|
+
private fb;
|
|
10
|
+
private missionService;
|
|
11
|
+
private layerService;
|
|
12
|
+
form: FormGroup;
|
|
13
|
+
imageInputContainer: ElementRef;
|
|
14
|
+
imageInput: ElementRef;
|
|
15
|
+
imageBasePreview: ElementRef;
|
|
16
|
+
location: Space;
|
|
17
|
+
imageToUpload: any;
|
|
18
|
+
isSubmitted: boolean;
|
|
19
|
+
levels: Array<LevelStatus>;
|
|
20
|
+
addMissionForNewSpace: boolean;
|
|
21
|
+
imageInputText: string;
|
|
22
|
+
currentImage: string;
|
|
23
|
+
imageToBeDeleted: boolean;
|
|
24
|
+
onChange: EventEmitter<Space>;
|
|
25
|
+
constructor(spaceService: SpaceService, propertyService: PropertyService, userService: BaseUserService, fb: FormBuilder, missionService: MissionService, layerService: LayerService);
|
|
26
|
+
ngOnInit(): void;
|
|
27
|
+
initForm(): void;
|
|
28
|
+
initEditForm(): void;
|
|
29
|
+
handleImageInput(target: EventTarget): void;
|
|
30
|
+
uploadImage(spaceID: string): Promise<void>;
|
|
31
|
+
clearImageFile(): void;
|
|
32
|
+
getLayerByName(name: string): Promise<Layer>;
|
|
33
|
+
onSubmit(): Promise<void>;
|
|
34
|
+
onCancel(): void;
|
|
35
|
+
get name(): AbstractControl;
|
|
36
|
+
changeCommaToDot(): void;
|
|
37
|
+
handleInputImageText(): void;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormLocationComponent, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormLocationComponent, "lib-form-location", never, { "location": "location"; }, { "onChange": "onChange"; }, never, never>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute } from '@angular/router';
|
|
3
|
+
import { Space, Visit, MenuItem, SpaceService, VisitService, NodeService } from 'ngx-smarterplan-core';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ImagesComponent implements OnInit {
|
|
6
|
+
private route;
|
|
7
|
+
private spaceService;
|
|
8
|
+
private visitService;
|
|
9
|
+
private nodeService;
|
|
10
|
+
images: Array<any>;
|
|
11
|
+
spaceID: string;
|
|
12
|
+
currentSpace: Space;
|
|
13
|
+
currentVisit: Visit;
|
|
14
|
+
currentImages: Array<any>;
|
|
15
|
+
loading: boolean;
|
|
16
|
+
currentScanID: string;
|
|
17
|
+
menuItems: MenuItem[];
|
|
18
|
+
constructor(route: ActivatedRoute, spaceService: SpaceService, visitService: VisitService, nodeService: NodeService);
|
|
19
|
+
ngOnInit(): void;
|
|
20
|
+
setupMenuItems(): void;
|
|
21
|
+
onGoBack(): void;
|
|
22
|
+
loadImages(): Promise<void>;
|
|
23
|
+
setVisit(visit: any): void;
|
|
24
|
+
setCurrentScan(id: any): void;
|
|
25
|
+
onInventoryClick(): Promise<void>;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImagesComponent, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ImagesComponent, "lib-images", never, {}, {}, never, never>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { Router } from '@angular/router';
|
|
4
|
+
import { LevelStatus, Space, SpaceService, BaseUserService, ViewerService, NavigationService, NavigatorService, Visit, MenuItem, SearchObjectType } from 'ngx-smarterplan-core';
|
|
5
|
+
import { Subscription } from 'rxjs';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class LocationsComponent implements OnInit {
|
|
8
|
+
private spaceService;
|
|
9
|
+
private router;
|
|
10
|
+
private userService;
|
|
11
|
+
private viewerService;
|
|
12
|
+
private navigationService;
|
|
13
|
+
private navigatorService;
|
|
14
|
+
createForm: FormGroup;
|
|
15
|
+
levels: Array<LevelStatus>;
|
|
16
|
+
imageToUpload: File;
|
|
17
|
+
isAdding: boolean;
|
|
18
|
+
filteredLocations: Space[];
|
|
19
|
+
isManager: boolean;
|
|
20
|
+
isMuseumUser: boolean;
|
|
21
|
+
locations: Space[];
|
|
22
|
+
menuItems: MenuItem[];
|
|
23
|
+
userSubcription: Subscription;
|
|
24
|
+
locationIDSubscription: Subscription;
|
|
25
|
+
/** Last filtered Locations, used when we go back on all locations from the search bar location */
|
|
26
|
+
lastFiltredLocations: Space[];
|
|
27
|
+
constructor(spaceService: SpaceService, router: Router, userService: BaseUserService, viewerService: ViewerService, navigationService: NavigationService, navigatorService: NavigatorService);
|
|
28
|
+
ngOnInit(): Promise<void>;
|
|
29
|
+
findSpaceById(id: string): Space;
|
|
30
|
+
/**
|
|
31
|
+
* Update when we change the selected location in filter (search bar)
|
|
32
|
+
* @param id for a location, if null display all last filtred location
|
|
33
|
+
*/
|
|
34
|
+
changeSelectedLocation(id?: string): void;
|
|
35
|
+
refresh(): void;
|
|
36
|
+
ngOnDestroy(): void;
|
|
37
|
+
setupMenuItems(): void;
|
|
38
|
+
updateUserRights(): void;
|
|
39
|
+
isManagerForSpace(spaceID: string): boolean;
|
|
40
|
+
resetList(): Promise<void>;
|
|
41
|
+
onAddLocation(): void;
|
|
42
|
+
handleImageInput(files: FileList): void;
|
|
43
|
+
onFormChange(event: any): void;
|
|
44
|
+
onVisitClick(loc: Space, visit: Visit): Promise<void>;
|
|
45
|
+
applyResultsSearchBar(results: Space[]): void;
|
|
46
|
+
getSearchType(): SearchObjectType;
|
|
47
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LocationsComponent, never>;
|
|
48
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LocationsComponent, "lib-locations", never, {}, {}, never, never>;
|
|
49
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { NgZone, OnInit } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
import { Marker } from 'leaflet';
|
|
4
|
+
import { Space, Visit } from 'ngx-smarterplan-core';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class MapPopupComponent implements OnInit {
|
|
7
|
+
private router;
|
|
8
|
+
private ngZone;
|
|
9
|
+
space: Space;
|
|
10
|
+
marker: Marker;
|
|
11
|
+
popuparea: HTMLElement;
|
|
12
|
+
isOnPopup: boolean;
|
|
13
|
+
isMuseumUser: boolean;
|
|
14
|
+
constructor(router: Router, ngZone: NgZone);
|
|
15
|
+
ngOnInit(): void;
|
|
16
|
+
openPopup(): void;
|
|
17
|
+
closePopup(): void;
|
|
18
|
+
onClickVisitFirst(): void;
|
|
19
|
+
onVisitClick(visit: Visit): Promise<void>;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MapPopupComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MapPopupComponent, "lib-map-popup", never, {}, {}, never, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ComponentFactoryResolver, Injector, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { Space } from 'ngx-smarterplan-core';
|
|
3
|
+
import { Map, Marker } from "leaflet";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class MapComponent implements OnChanges {
|
|
6
|
+
private componentFactoryResolver;
|
|
7
|
+
private injector;
|
|
8
|
+
constructor(componentFactoryResolver: ComponentFactoryResolver, injector: Injector);
|
|
9
|
+
spaces: Space[];
|
|
10
|
+
options: {
|
|
11
|
+
layers: import("leaflet").TileLayer[];
|
|
12
|
+
zoom: number;
|
|
13
|
+
center: import("leaflet").LatLng;
|
|
14
|
+
};
|
|
15
|
+
layers: any[];
|
|
16
|
+
map: any;
|
|
17
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
18
|
+
onMapReady(map: Map): void;
|
|
19
|
+
createPopupComponent(space: Space, marker: Marker): any;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MapComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MapComponent, "lib-map", never, { "spaces": "spaces"; }, {}, never, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { ElementRef, OnInit } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
+
import { Zone, MenuItem, Plan, Space, Navigation, PlanService, ZoneService, SpaceService, NavigationService, MatterportImportService } from 'ngx-smarterplan-core';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class CalibrationComponent implements OnInit {
|
|
7
|
+
private matterportImportService;
|
|
8
|
+
private planService;
|
|
9
|
+
private route;
|
|
10
|
+
private router;
|
|
11
|
+
private zoneService;
|
|
12
|
+
private spaceService;
|
|
13
|
+
private navigationService;
|
|
14
|
+
private translate;
|
|
15
|
+
/** Item to display for the navbar */
|
|
16
|
+
menuItems: MenuItem[];
|
|
17
|
+
/** Canvas (Plan) */
|
|
18
|
+
canvas: any;
|
|
19
|
+
/** CanvasDiv (Div that contain the canvas + matterport iframe) */
|
|
20
|
+
canvasDiv: ElementRef;
|
|
21
|
+
/** Size of the canvas & matterport iframe */
|
|
22
|
+
canvasSize: {
|
|
23
|
+
w: number;
|
|
24
|
+
h: number;
|
|
25
|
+
};
|
|
26
|
+
/** Zoom ratio of the canvas/plan */
|
|
27
|
+
canvasZoom: number;
|
|
28
|
+
/** Opacity for matterport iframe */
|
|
29
|
+
opacity: number;
|
|
30
|
+
/** Current rotation for matterport, [0-360], matterport rotation is bind to input range */
|
|
31
|
+
rotation: number;
|
|
32
|
+
/** Previous rotation, use to calculate the deltaRotation to rotate, when user change rotation value using range input */
|
|
33
|
+
prevRotation: number;
|
|
34
|
+
/** Current Camera Pose */
|
|
35
|
+
cameraPose: any;
|
|
36
|
+
/** True when the user is currently rotating with the input range, the matterport rotation events will be ignored */
|
|
37
|
+
isRotatingRange: boolean;
|
|
38
|
+
/** Rotating queue event to send to matterport */
|
|
39
|
+
rotatingQueueEvent: number[];
|
|
40
|
+
/** True when Vertical symmetry is enabled */
|
|
41
|
+
reflectV: boolean;
|
|
42
|
+
/** True when Horizontal symmetry is enabled */
|
|
43
|
+
reflectH: boolean;
|
|
44
|
+
chosenPlan: Plan;
|
|
45
|
+
spaceID: string;
|
|
46
|
+
currentSpace: Space;
|
|
47
|
+
currentZone: Zone;
|
|
48
|
+
chosenPlanIsPdf: boolean;
|
|
49
|
+
/** First Point in visit, used to determine the calibration */
|
|
50
|
+
firstMarkVisit: {
|
|
51
|
+
x: number;
|
|
52
|
+
y: number;
|
|
53
|
+
};
|
|
54
|
+
/** Second Point in visit, used to determine the calibration */
|
|
55
|
+
secondMarkVisit: {
|
|
56
|
+
x: number;
|
|
57
|
+
y: number;
|
|
58
|
+
};
|
|
59
|
+
/** Equivalent of 'firstMarkVisit' in canvas */
|
|
60
|
+
firstMarkPlan: {
|
|
61
|
+
x: number;
|
|
62
|
+
y: number;
|
|
63
|
+
};
|
|
64
|
+
/** Equivalent of 'secondMarkVisit' in canvas */
|
|
65
|
+
secondMarkPlan: {
|
|
66
|
+
x: number;
|
|
67
|
+
y: number;
|
|
68
|
+
};
|
|
69
|
+
/** Calibration result, (offsetX, offsetY, x, y) */
|
|
70
|
+
calibrage: any;
|
|
71
|
+
/** Is in preview mode (see scan result) */
|
|
72
|
+
preview: boolean;
|
|
73
|
+
/** Matterport is loading */
|
|
74
|
+
loading: boolean;
|
|
75
|
+
panzoom: any;
|
|
76
|
+
currentNavigations: Navigation[];
|
|
77
|
+
positions: {
|
|
78
|
+
navID: string;
|
|
79
|
+
planID: string;
|
|
80
|
+
x: number;
|
|
81
|
+
y: number;
|
|
82
|
+
}[];
|
|
83
|
+
floors: any[];
|
|
84
|
+
currentFloor: any;
|
|
85
|
+
zoomCanBeChanged: boolean;
|
|
86
|
+
constructor(matterportImportService: MatterportImportService, planService: PlanService, route: ActivatedRoute, router: Router, zoneService: ZoneService, spaceService: SpaceService, navigationService: NavigationService, translate: TranslateService);
|
|
87
|
+
ngOnDestroy(): void;
|
|
88
|
+
ngOnInit(): Promise<void>;
|
|
89
|
+
/** **********************************************************************************************
|
|
90
|
+
* MENU NAV BAR
|
|
91
|
+
*********************************************************************************************** */
|
|
92
|
+
setupMenuItems(): void;
|
|
93
|
+
/** **********************************************************************************************
|
|
94
|
+
* CANVAS
|
|
95
|
+
*********************************************************************************************** */
|
|
96
|
+
/** Display the plan */
|
|
97
|
+
configureCanvas(): Promise<void>;
|
|
98
|
+
/** Update size of the canvas/matterport */
|
|
99
|
+
resizeView(size: any): void;
|
|
100
|
+
/** Draw something on the canvas */
|
|
101
|
+
drawImage(url: string, x?: number, y?: number, icone?: boolean): void;
|
|
102
|
+
/** Get the size for the canvas, based on the plan size, keeping the ratio */
|
|
103
|
+
getSizeForCanvas(w: any, h: any): {
|
|
104
|
+
w: any;
|
|
105
|
+
h: any;
|
|
106
|
+
};
|
|
107
|
+
/** [TODO] Convert a PDF to a Canvas */
|
|
108
|
+
pdfToCanvas(): Promise<void>;
|
|
109
|
+
/** User click to user Symmetry Vertical */
|
|
110
|
+
onReflectV(): void;
|
|
111
|
+
/** User click to user Symmetry Horizontal */
|
|
112
|
+
onReflectH(): void;
|
|
113
|
+
/** **********************************************************************************************
|
|
114
|
+
* MATTERPORT
|
|
115
|
+
*********************************************************************************************** */
|
|
116
|
+
/** Launch matterport */
|
|
117
|
+
launchViewer(): Promise<void>;
|
|
118
|
+
/** When the <input> range, for rotation, change */
|
|
119
|
+
onRotationChange(): Promise<void>;
|
|
120
|
+
/** Process the rotating event queue, send event one by one to matterport */
|
|
121
|
+
processRotatingQueueEvent(): Promise<void>;
|
|
122
|
+
/** **********************************************************************************************
|
|
123
|
+
* USER ACTIONS
|
|
124
|
+
*********************************************************************************************** */
|
|
125
|
+
/** Preview calibration */
|
|
126
|
+
onPreview(): Promise<void>;
|
|
127
|
+
calibrate(): Promise<void>;
|
|
128
|
+
/** Place sweeps */
|
|
129
|
+
onPlaceSweeps(): Promise<void>;
|
|
130
|
+
/** Save calibration */
|
|
131
|
+
onSave(): Promise<void>;
|
|
132
|
+
/** Reset the canvas */
|
|
133
|
+
onReset(): void;
|
|
134
|
+
/** Cancel, leave */
|
|
135
|
+
onCancel(): void;
|
|
136
|
+
onFloorClick(floor: any): Promise<void>;
|
|
137
|
+
onActivateZoomChange(): void;
|
|
138
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalibrationComponent, never>;
|
|
139
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalibrationComponent, "lib-calibration", never, {}, {}, never, never>;
|
|
140
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
+
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
|
4
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
5
|
+
import { Zone, Plan, Space, MenuItem, PlanService, ZoneService, VisitService, SpaceService } from 'ngx-smarterplan-core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class EditPlanComponent implements OnInit {
|
|
8
|
+
private planService;
|
|
9
|
+
private route;
|
|
10
|
+
private router;
|
|
11
|
+
private modalService;
|
|
12
|
+
private zoneService;
|
|
13
|
+
private visitService;
|
|
14
|
+
private spaceService;
|
|
15
|
+
private translate;
|
|
16
|
+
dialog: any;
|
|
17
|
+
dialogZone: any;
|
|
18
|
+
loadingModal: any;
|
|
19
|
+
spaceID: string;
|
|
20
|
+
chosenPlan: Plan;
|
|
21
|
+
editedPlan: Plan;
|
|
22
|
+
loading: boolean;
|
|
23
|
+
svgEditor: any;
|
|
24
|
+
svgEditorIframe: any;
|
|
25
|
+
navigations: string[];
|
|
26
|
+
zones: Zone[];
|
|
27
|
+
isNewZone: boolean;
|
|
28
|
+
newZoneData: any;
|
|
29
|
+
editorUrl: any;
|
|
30
|
+
editedZone: Zone;
|
|
31
|
+
images360: any;
|
|
32
|
+
/**
|
|
33
|
+
* Options for svgEditor
|
|
34
|
+
*/
|
|
35
|
+
private config;
|
|
36
|
+
currentSpace: Space;
|
|
37
|
+
menuItems: MenuItem[];
|
|
38
|
+
constructor(planService: PlanService, route: ActivatedRoute, router: Router, modalService: NgbModal, zoneService: ZoneService, visitService: VisitService, spaceService: SpaceService, translate: TranslateService);
|
|
39
|
+
ngOnInit(): Promise<void>;
|
|
40
|
+
setupMenuItems(): void;
|
|
41
|
+
switchAction(event: any): Promise<void>;
|
|
42
|
+
resetNavigations(): Promise<void>;
|
|
43
|
+
onLoad(svgEditor: any): Promise<void>;
|
|
44
|
+
onSave(redirect: boolean): Promise<void>;
|
|
45
|
+
updateSvg(): Promise<void>;
|
|
46
|
+
newSvg(): Promise<void>;
|
|
47
|
+
onCancel(): Promise<void>;
|
|
48
|
+
loadSvg(): Promise<void>;
|
|
49
|
+
loadPdf(): Promise<void>;
|
|
50
|
+
onLoadImg(img: any): Promise<void>;
|
|
51
|
+
onNewZone(event: any): void;
|
|
52
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EditPlanComponent, never>;
|
|
53
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EditPlanComponent, "lib-edit-plan", never, {}, {}, never, never>;
|
|
54
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormGroup, FormBuilder } from '@angular/forms';
|
|
3
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
5
|
+
import { Zone, Space, Plan, MenuItem, SpaceService, PlanService } from 'ngx-smarterplan-core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class PlansComponent implements OnInit {
|
|
8
|
+
private route;
|
|
9
|
+
private router;
|
|
10
|
+
private spaceService;
|
|
11
|
+
private planService;
|
|
12
|
+
private fb;
|
|
13
|
+
private translate;
|
|
14
|
+
spaceID: string;
|
|
15
|
+
currentSpace: Space;
|
|
16
|
+
plans: Plan[];
|
|
17
|
+
indexDetails: number;
|
|
18
|
+
loading: boolean;
|
|
19
|
+
uploadingPlan: boolean;
|
|
20
|
+
planForm: FormGroup;
|
|
21
|
+
isCurrentPlanForZone: boolean;
|
|
22
|
+
canvas: any;
|
|
23
|
+
scale: number;
|
|
24
|
+
panzoom: any;
|
|
25
|
+
currentZone: Zone;
|
|
26
|
+
fileToUpload: File;
|
|
27
|
+
chosenPlanIsPdf: boolean;
|
|
28
|
+
zones: Zone[];
|
|
29
|
+
menuItems: MenuItem[];
|
|
30
|
+
constructor(route: ActivatedRoute, router: Router, spaceService: SpaceService, planService: PlanService, fb: FormBuilder, translate: TranslateService);
|
|
31
|
+
ngOnInit(): void;
|
|
32
|
+
setupMenuItems(): void;
|
|
33
|
+
onGoBack(): void;
|
|
34
|
+
onPlanClick(plan?: Plan): Promise<void>;
|
|
35
|
+
configureCanvas(): Promise<void>;
|
|
36
|
+
drawImage(url: string, x?: number, y?: number): void;
|
|
37
|
+
getPlans(): Promise<void>;
|
|
38
|
+
getChoosenPlan(): Plan;
|
|
39
|
+
removeImage(): void;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
onCalibrateClick(): void;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
*/
|
|
47
|
+
onEditClick(): void;
|
|
48
|
+
onUploadClick(): void;
|
|
49
|
+
addPlan(target: EventTarget): void;
|
|
50
|
+
addPlanFromCache(file: File, plan: Plan): void;
|
|
51
|
+
onSavePlan(): Promise<void>;
|
|
52
|
+
onCancelUpload(): void;
|
|
53
|
+
onCurrentPlanClick(): Promise<void>;
|
|
54
|
+
onDownloadClick(): Promise<void>;
|
|
55
|
+
onDownloadAsPng(): Promise<void>;
|
|
56
|
+
onRemoveClick(): Promise<void>;
|
|
57
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PlansComponent, never>;
|
|
58
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PlansComponent, "lib-plans", never, {}, {}, never, never>;
|
|
59
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
import { MenuItem } from 'ngx-smarterplan-core';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class TabNavigationComponent {
|
|
6
|
+
private router;
|
|
7
|
+
onGoBack: EventEmitter<void>;
|
|
8
|
+
menuItems: MenuItem[];
|
|
9
|
+
constructor(router: Router);
|
|
10
|
+
onClick(url: string, parameter: any, index: number): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabNavigationComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TabNavigationComponent, "lib-tab-navigation", never, { "menuItems": "menuItems"; }, { "onGoBack": "onGoBack"; }, never, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormGroup, FormBuilder, AbstractControl } from '@angular/forms';
|
|
3
|
+
import { ActivatedRoute } from '@angular/router';
|
|
4
|
+
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
|
5
|
+
import { Visit, MenuItem, MatterportImportService, CaptureService, NodeService, SpaceService, VisitService } from 'ngx-smarterplan-core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class VisitsComponent implements OnInit {
|
|
8
|
+
private fb;
|
|
9
|
+
private matterportImportService;
|
|
10
|
+
private captureService;
|
|
11
|
+
private nodeService;
|
|
12
|
+
private spaceService;
|
|
13
|
+
private route;
|
|
14
|
+
private modalService;
|
|
15
|
+
private visitService;
|
|
16
|
+
spaceId: string;
|
|
17
|
+
visitIndexDetails: number;
|
|
18
|
+
visitForm: FormGroup;
|
|
19
|
+
isEditing: boolean;
|
|
20
|
+
visitSubmitted: boolean;
|
|
21
|
+
captureDate: number;
|
|
22
|
+
currentSpace: any;
|
|
23
|
+
visits: Visit[];
|
|
24
|
+
closeResult: string;
|
|
25
|
+
private content;
|
|
26
|
+
modalReference: any;
|
|
27
|
+
canCancelImport: boolean;
|
|
28
|
+
imagesProcessed: number;
|
|
29
|
+
totalImages: number;
|
|
30
|
+
menuItems: MenuItem[];
|
|
31
|
+
constructor(fb: FormBuilder, matterportImportService: MatterportImportService, captureService: CaptureService, nodeService: NodeService, spaceService: SpaceService, route: ActivatedRoute, modalService: NgbModal, visitService: VisitService);
|
|
32
|
+
ngOnInit(): void;
|
|
33
|
+
setupMenuItems(): void;
|
|
34
|
+
onGoBack(): void;
|
|
35
|
+
resetVisits(): Promise<void>;
|
|
36
|
+
initVisitForm(input?: Visit): void;
|
|
37
|
+
onToggleDetail(index: any): void;
|
|
38
|
+
onAddVisit(): void;
|
|
39
|
+
onEdit(visit: any): void;
|
|
40
|
+
onSubmitVisit(): Promise<void>;
|
|
41
|
+
get model3D(): AbstractControl;
|
|
42
|
+
get name(): AbstractControl;
|
|
43
|
+
onCancel(): void;
|
|
44
|
+
onDelete(visit: Visit, index: any): Promise<void>;
|
|
45
|
+
private getDismissReason;
|
|
46
|
+
launchImport(model3D: any, surface: any, node: any, imagesOnly?: boolean): Promise<void>;
|
|
47
|
+
private cancelImport;
|
|
48
|
+
onImport(visit: Visit): void;
|
|
49
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VisitsComponent, never>;
|
|
50
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VisitsComponent, "lib-visits", never, {}, {}, never, never>;
|
|
51
|
+
}
|