@smarterplan/ngx-smarterplan-locations 0.2.20 → 0.2.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/esm2020/lib/components/carousel/carousel.component.mjs +27 -27
- package/esm2020/lib/components/chevron/chevron.component.mjs +17 -17
- package/esm2020/lib/components/detail-location/detail-location.component.mjs +154 -154
- package/esm2020/lib/components/form-location/form-location.component.mjs +237 -237
- package/esm2020/lib/components/images/images.component.mjs +90 -90
- package/esm2020/lib/components/locations/locations.component.mjs +141 -141
- package/esm2020/lib/components/locations/map/map-popup/map-popup.component.mjs +65 -65
- package/esm2020/lib/components/locations/map/map.component.mjs +90 -90
- package/esm2020/lib/components/plans/calibration/calibration.component.mjs +468 -468
- package/esm2020/lib/components/plans/edit-plan/edit-plan.component.mjs +324 -324
- package/esm2020/lib/components/plans/plans.component.mjs +210 -210
- package/esm2020/lib/components/tab-navigation/tab-navigation.component.mjs +41 -41
- package/esm2020/lib/components/visits/visits.component.mjs +235 -235
- package/esm2020/lib/components/zones/add-audio-zone/add-audio-zone.component.mjs +230 -230
- package/esm2020/lib/components/zones/add-zone/add-zone.component.mjs +294 -294
- package/esm2020/lib/components/zones/add-zone/selection/selection.component.mjs +76 -76
- package/esm2020/lib/components/zones/add-zone/sweep-plan-selection/sweep-plan-selection.component.mjs +413 -414
- package/esm2020/lib/components/zones/zones.component.mjs +232 -232
- package/esm2020/lib/helper.service.mjs +134 -134
- package/esm2020/lib/ngx-smarterplan-location-routing.module.mjs +49 -49
- package/esm2020/lib/ngx-smarterplan-locations.module.mjs +122 -122
- package/esm2020/lib/ngx-smarterplan-locations.service.mjs +13 -13
- package/esm2020/lib/pipes/count-audio-sweeps.pipe.mjs +27 -0
- package/esm2020/lib/radio-button/radio-button.component.mjs +26 -26
- package/esm2020/public-api.mjs +8 -8
- package/esm2020/smarterplan-ngx-smarterplan-locations.mjs +4 -4
- package/fesm2015/smarterplan-ngx-smarterplan-locations.mjs +3627 -3648
- package/fesm2015/smarterplan-ngx-smarterplan-locations.mjs.map +1 -1
- package/fesm2020/smarterplan-ngx-smarterplan-locations.mjs +3475 -3494
- package/fesm2020/smarterplan-ngx-smarterplan-locations.mjs.map +1 -1
- package/lib/components/carousel/carousel.component.d.ts +12 -12
- package/lib/components/chevron/chevron.component.d.ts +9 -9
- package/lib/components/detail-location/detail-location.component.d.ts +51 -51
- package/lib/components/form-location/form-location.component.d.ts +45 -45
- package/lib/components/images/images.component.d.ts +28 -28
- package/lib/components/locations/locations.component.d.ts +50 -50
- package/lib/components/locations/map/map-popup/map-popup.component.d.ts +22 -22
- package/lib/components/locations/map/map.component.d.ts +22 -22
- package/lib/components/plans/calibration/calibration.component.d.ts +140 -140
- package/lib/components/plans/edit-plan/edit-plan.component.d.ts +55 -55
- package/lib/components/plans/plans.component.d.ts +59 -59
- package/lib/components/tab-navigation/tab-navigation.component.d.ts +13 -13
- package/lib/components/visits/visits.component.d.ts +51 -51
- package/lib/components/zones/add-audio-zone/add-audio-zone.component.d.ts +63 -63
- package/lib/components/zones/add-zone/add-zone.component.d.ts +67 -67
- package/lib/components/zones/add-zone/selection/selection.component.d.ts +44 -44
- package/lib/components/zones/add-zone/sweep-plan-selection/sweep-plan-selection.component.d.ts +96 -96
- package/lib/components/zones/zones.component.d.ts +67 -67
- package/lib/helper.service.d.ts +53 -53
- package/lib/ngx-smarterplan-location-routing.module.d.ts +7 -7
- package/lib/ngx-smarterplan-locations.module.d.ts +35 -35
- package/lib/ngx-smarterplan-locations.service.d.ts +6 -6
- package/lib/pipes/count-audio-sweeps.pipe.d.ts +10 -0
- package/lib/radio-button/radio-button.component.d.ts +12 -12
- package/package.json +2 -2
- package/public-api.d.ts +4 -4
- package/smarterplan-ngx-smarterplan-locations.d.ts +5 -5
- package/esm2020/lib/components/plan-legend/plan-legend.component.mjs +0 -47
- package/lib/components/plan-legend/plan-legend.component.d.ts +0 -14
|
@@ -1,140 +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 '@smarterplan/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
|
-
}
|
|
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 '@smarterplan/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
|
+
}
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import { NgZone, 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 '@smarterplan/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
|
-
private ngZone;
|
|
17
|
-
dialog: any;
|
|
18
|
-
dialogZone: any;
|
|
19
|
-
loadingModal: any;
|
|
20
|
-
spaceID: string;
|
|
21
|
-
chosenPlan: Plan;
|
|
22
|
-
editedPlan: Plan;
|
|
23
|
-
loading: boolean;
|
|
24
|
-
svgEditor: any;
|
|
25
|
-
svgEditorIframe: any;
|
|
26
|
-
navigations: string[];
|
|
27
|
-
zones: Zone[];
|
|
28
|
-
isNewZone: boolean;
|
|
29
|
-
newZoneData: any;
|
|
30
|
-
editorUrl: any;
|
|
31
|
-
editedZone: Zone;
|
|
32
|
-
images360: any;
|
|
33
|
-
/**
|
|
34
|
-
* Options for svgEditor
|
|
35
|
-
*/
|
|
36
|
-
private config;
|
|
37
|
-
currentSpace: Space;
|
|
38
|
-
menuItems: MenuItem[];
|
|
39
|
-
constructor(planService: PlanService, route: ActivatedRoute, router: Router, modalService: NgbModal, zoneService: ZoneService, visitService: VisitService, spaceService: SpaceService, translate: TranslateService, ngZone: NgZone);
|
|
40
|
-
ngOnInit(): Promise<void>;
|
|
41
|
-
setupMenuItems(): void;
|
|
42
|
-
switchAction(event: any): Promise<void>;
|
|
43
|
-
resetNavigations(): Promise<void>;
|
|
44
|
-
onLoad(svgEditor: any): Promise<void>;
|
|
45
|
-
onSave(redirect: boolean): Promise<void>;
|
|
46
|
-
updateSvg(): Promise<void>;
|
|
47
|
-
newSvg(): Promise<void>;
|
|
48
|
-
onCancel(): Promise<void>;
|
|
49
|
-
loadSvg(): Promise<void>;
|
|
50
|
-
loadPdf(): Promise<void>;
|
|
51
|
-
onLoadImg(img: any): Promise<void>;
|
|
52
|
-
onNewZone(event: any): void;
|
|
53
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EditPlanComponent, never>;
|
|
54
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EditPlanComponent, "lib-edit-plan", never, {}, {}, never, never>;
|
|
55
|
-
}
|
|
1
|
+
import { NgZone, 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 '@smarterplan/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
|
+
private ngZone;
|
|
17
|
+
dialog: any;
|
|
18
|
+
dialogZone: any;
|
|
19
|
+
loadingModal: any;
|
|
20
|
+
spaceID: string;
|
|
21
|
+
chosenPlan: Plan;
|
|
22
|
+
editedPlan: Plan;
|
|
23
|
+
loading: boolean;
|
|
24
|
+
svgEditor: any;
|
|
25
|
+
svgEditorIframe: any;
|
|
26
|
+
navigations: string[];
|
|
27
|
+
zones: Zone[];
|
|
28
|
+
isNewZone: boolean;
|
|
29
|
+
newZoneData: any;
|
|
30
|
+
editorUrl: any;
|
|
31
|
+
editedZone: Zone;
|
|
32
|
+
images360: any;
|
|
33
|
+
/**
|
|
34
|
+
* Options for svgEditor
|
|
35
|
+
*/
|
|
36
|
+
private config;
|
|
37
|
+
currentSpace: Space;
|
|
38
|
+
menuItems: MenuItem[];
|
|
39
|
+
constructor(planService: PlanService, route: ActivatedRoute, router: Router, modalService: NgbModal, zoneService: ZoneService, visitService: VisitService, spaceService: SpaceService, translate: TranslateService, ngZone: NgZone);
|
|
40
|
+
ngOnInit(): Promise<void>;
|
|
41
|
+
setupMenuItems(): void;
|
|
42
|
+
switchAction(event: any): Promise<void>;
|
|
43
|
+
resetNavigations(): Promise<void>;
|
|
44
|
+
onLoad(svgEditor: any): Promise<void>;
|
|
45
|
+
onSave(redirect: boolean): Promise<void>;
|
|
46
|
+
updateSvg(): Promise<void>;
|
|
47
|
+
newSvg(): Promise<void>;
|
|
48
|
+
onCancel(): Promise<void>;
|
|
49
|
+
loadSvg(): Promise<void>;
|
|
50
|
+
loadPdf(): Promise<void>;
|
|
51
|
+
onLoadImg(img: any): Promise<void>;
|
|
52
|
+
onNewZone(event: any): void;
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EditPlanComponent, never>;
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EditPlanComponent, "lib-edit-plan", never, {}, {}, never, never>;
|
|
55
|
+
}
|
|
@@ -1,59 +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 '@smarterplan/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
|
-
}
|
|
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 '@smarterplan/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
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { Router } from '@angular/router';
|
|
3
|
-
import { MenuItem } from '@smarterplan/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
|
-
}
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
import { MenuItem } from '@smarterplan/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
|
+
}
|
|
@@ -1,51 +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 '@smarterplan/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): Promise<void>;
|
|
45
|
-
private getDismissReason;
|
|
46
|
-
launchImport(model3D: any, surface: any, node: any, imagesOnly?: boolean): Promise<boolean>;
|
|
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
|
-
}
|
|
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 '@smarterplan/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): Promise<void>;
|
|
45
|
+
private getDismissReason;
|
|
46
|
+
launchImport(model3D: any, surface: any, node: any, imagesOnly?: boolean): Promise<boolean>;
|
|
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
|
+
}
|