@smarterplan/ngx-smarterplan-locations 0.2.21 → 0.2.22
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/plan-legend/plan-legend.component.mjs +47 -0
- 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 +414 -413
- package/esm2020/lib/components/zones/zones.component.mjs +236 -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 +125 -122
- package/esm2020/lib/ngx-smarterplan-locations.service.mjs +13 -13
- package/esm2020/lib/pipes/count-audio-sweeps.pipe.mjs +26 -26
- 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 +3676 -3624
- package/fesm2015/smarterplan-ngx-smarterplan-locations.mjs.map +1 -1
- package/fesm2020/smarterplan-ngx-smarterplan-locations.mjs +3520 -3472
- 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/plan-legend/plan-legend.component.d.ts +14 -0
- 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 +36 -35
- package/lib/ngx-smarterplan-locations.service.d.ts +6 -6
- package/lib/pipes/count-audio-sweeps.pipe.d.ts +10 -10
- package/lib/radio-button/radio-button.component.d.ts +12 -12
- package/package.json +1 -1
- package/public-api.d.ts +4 -4
- package/smarterplan-ngx-smarterplan-locations.d.ts +5 -5
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import { FormGroup, FormBuilder } from '@angular/forms';
|
|
3
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
-
import { ZoneService, LayerService, BaseUserService, NavigationService, Layer, Zone, CommentService, Comment } from '@smarterplan/ngx-smarterplan-core';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class AddAudioZoneComponent implements OnInit {
|
|
7
|
-
private fb;
|
|
8
|
-
private zoneService;
|
|
9
|
-
private layerService;
|
|
10
|
-
private userService;
|
|
11
|
-
private navigationService;
|
|
12
|
-
private commentService;
|
|
13
|
-
private translate;
|
|
14
|
-
spaceID: string;
|
|
15
|
-
updatedZone: EventEmitter<any>;
|
|
16
|
-
defaultZone: Zone;
|
|
17
|
-
zones: Zone[];
|
|
18
|
-
parentZone: Zone;
|
|
19
|
-
isSubmitted: boolean;
|
|
20
|
-
fromPlan: boolean;
|
|
21
|
-
chosenScansOnPlan: string[];
|
|
22
|
-
currentOrgId: string;
|
|
23
|
-
audioLayer: Layer;
|
|
24
|
-
commentForm: FormGroup;
|
|
25
|
-
fileToUpload: File;
|
|
26
|
-
audiosForSpace: Comment[];
|
|
27
|
-
isAddingAudio: boolean;
|
|
28
|
-
chosenAudio: Comment;
|
|
29
|
-
audioZones: Zone[];
|
|
30
|
-
currentAudioZone: Zone;
|
|
31
|
-
scansModified: boolean;
|
|
32
|
-
occupiedSweeps: string[];
|
|
33
|
-
unavailableSweeps: string[];
|
|
34
|
-
working: boolean;
|
|
35
|
-
audioUploaded: boolean;
|
|
36
|
-
constructor(fb: FormBuilder, zoneService: ZoneService, layerService: LayerService, userService: BaseUserService, navigationService: NavigationService, commentService: CommentService, translate: TranslateService);
|
|
37
|
-
ngOnInit(): void;
|
|
38
|
-
setup(): Promise<void>;
|
|
39
|
-
onSubmit(): Promise<void>;
|
|
40
|
-
setSweepsAndNodeForZoneInput(zoneInput: Zone): Promise<void>;
|
|
41
|
-
onCancel(): void;
|
|
42
|
-
togglePlan(): void;
|
|
43
|
-
onSelectedSweepsFromPlan(result: {
|
|
44
|
-
"sweeps": string[];
|
|
45
|
-
"startSweepID": string;
|
|
46
|
-
}): void;
|
|
47
|
-
handleFileInput(event: Event): void;
|
|
48
|
-
onUploadAudio(): Promise<void>;
|
|
49
|
-
getAudios(): Promise<void>;
|
|
50
|
-
onCancelAudioUpload(): void;
|
|
51
|
-
onChooseAudio(audio: Comment): void;
|
|
52
|
-
/**
|
|
53
|
-
* Removes newly selected sweeps for current zone (they are in chosenScansOnPlan) from other audio zones.
|
|
54
|
-
* Rule: one sweep = one audio.
|
|
55
|
-
*/
|
|
56
|
-
removeTakenSweepsFromOtherZones(): Promise<void>;
|
|
57
|
-
/**
|
|
58
|
-
* Delete audio as Comment, all its audio Zones and file from S3 (using lambda function)
|
|
59
|
-
*/
|
|
60
|
-
onDeleteAudio(): Promise<void>;
|
|
61
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AddAudioZoneComponent, never>;
|
|
62
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AddAudioZoneComponent, "lib-add-audio-zone", never, { "spaceID": "spaceID"; "defaultZone": "defaultZone"; "zones": "zones"; "parentZone": "parentZone"; "currentAudioZone": "currentAudioZone"; }, { "updatedZone": "updatedZone"; }, never, never>;
|
|
63
|
-
}
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { FormGroup, FormBuilder } from '@angular/forms';
|
|
3
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
+
import { ZoneService, LayerService, BaseUserService, NavigationService, Layer, Zone, CommentService, Comment } from '@smarterplan/ngx-smarterplan-core';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class AddAudioZoneComponent implements OnInit {
|
|
7
|
+
private fb;
|
|
8
|
+
private zoneService;
|
|
9
|
+
private layerService;
|
|
10
|
+
private userService;
|
|
11
|
+
private navigationService;
|
|
12
|
+
private commentService;
|
|
13
|
+
private translate;
|
|
14
|
+
spaceID: string;
|
|
15
|
+
updatedZone: EventEmitter<any>;
|
|
16
|
+
defaultZone: Zone;
|
|
17
|
+
zones: Zone[];
|
|
18
|
+
parentZone: Zone;
|
|
19
|
+
isSubmitted: boolean;
|
|
20
|
+
fromPlan: boolean;
|
|
21
|
+
chosenScansOnPlan: string[];
|
|
22
|
+
currentOrgId: string;
|
|
23
|
+
audioLayer: Layer;
|
|
24
|
+
commentForm: FormGroup;
|
|
25
|
+
fileToUpload: File;
|
|
26
|
+
audiosForSpace: Comment[];
|
|
27
|
+
isAddingAudio: boolean;
|
|
28
|
+
chosenAudio: Comment;
|
|
29
|
+
audioZones: Zone[];
|
|
30
|
+
currentAudioZone: Zone;
|
|
31
|
+
scansModified: boolean;
|
|
32
|
+
occupiedSweeps: string[];
|
|
33
|
+
unavailableSweeps: string[];
|
|
34
|
+
working: boolean;
|
|
35
|
+
audioUploaded: boolean;
|
|
36
|
+
constructor(fb: FormBuilder, zoneService: ZoneService, layerService: LayerService, userService: BaseUserService, navigationService: NavigationService, commentService: CommentService, translate: TranslateService);
|
|
37
|
+
ngOnInit(): void;
|
|
38
|
+
setup(): Promise<void>;
|
|
39
|
+
onSubmit(): Promise<void>;
|
|
40
|
+
setSweepsAndNodeForZoneInput(zoneInput: Zone): Promise<void>;
|
|
41
|
+
onCancel(): void;
|
|
42
|
+
togglePlan(): void;
|
|
43
|
+
onSelectedSweepsFromPlan(result: {
|
|
44
|
+
"sweeps": string[];
|
|
45
|
+
"startSweepID": string;
|
|
46
|
+
}): void;
|
|
47
|
+
handleFileInput(event: Event): void;
|
|
48
|
+
onUploadAudio(): Promise<void>;
|
|
49
|
+
getAudios(): Promise<void>;
|
|
50
|
+
onCancelAudioUpload(): void;
|
|
51
|
+
onChooseAudio(audio: Comment): void;
|
|
52
|
+
/**
|
|
53
|
+
* Removes newly selected sweeps for current zone (they are in chosenScansOnPlan) from other audio zones.
|
|
54
|
+
* Rule: one sweep = one audio.
|
|
55
|
+
*/
|
|
56
|
+
removeTakenSweepsFromOtherZones(): Promise<void>;
|
|
57
|
+
/**
|
|
58
|
+
* Delete audio as Comment, all its audio Zones and file from S3 (using lambda function)
|
|
59
|
+
*/
|
|
60
|
+
onDeleteAudio(): Promise<void>;
|
|
61
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AddAudioZoneComponent, never>;
|
|
62
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AddAudioZoneComponent, "lib-add-audio-zone", never, { "spaceID": "spaceID"; "defaultZone": "defaultZone"; "zones": "zones"; "parentZone": "parentZone"; "currentAudioZone": "currentAudioZone"; }, { "updatedZone": "updatedZone"; }, never, never>;
|
|
63
|
+
}
|
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import { FormGroup, FormBuilder, AbstractControl } from '@angular/forms';
|
|
3
|
-
import { Zone, Plan, Layer, ZoneService, LayerService, BaseUserService, NavigationService } from '@smarterplan/ngx-smarterplan-core';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class AddZoneComponent implements OnInit {
|
|
6
|
-
private fb;
|
|
7
|
-
private zoneService;
|
|
8
|
-
private layerService;
|
|
9
|
-
private userService;
|
|
10
|
-
private navigationService;
|
|
11
|
-
zoneEdit: Zone;
|
|
12
|
-
spaceID: string;
|
|
13
|
-
images360: {
|
|
14
|
-
path: string;
|
|
15
|
-
filename: string;
|
|
16
|
-
}[];
|
|
17
|
-
navigationIDs: string[];
|
|
18
|
-
zones: Zone[];
|
|
19
|
-
newZoneDataFromEditor: any;
|
|
20
|
-
updatedZone: EventEmitter<any>;
|
|
21
|
-
chosenPlan: Plan;
|
|
22
|
-
isMuseumVisit: boolean;
|
|
23
|
-
defaultZone: Zone;
|
|
24
|
-
parentZones: Zone[];
|
|
25
|
-
carouselIsVisible: boolean;
|
|
26
|
-
zoneForm: FormGroup;
|
|
27
|
-
isSubmitted: boolean;
|
|
28
|
-
currentScanShowing: number;
|
|
29
|
-
chosenScans: number[];
|
|
30
|
-
layers: Layer[];
|
|
31
|
-
fromPlan: boolean;
|
|
32
|
-
chosenScansOnPlan: string[];
|
|
33
|
-
currentOrgId: string;
|
|
34
|
-
zoneInitialNavCount: number;
|
|
35
|
-
zoneIsMatterportFloor: boolean;
|
|
36
|
-
multipleFloors: boolean;
|
|
37
|
-
constructor(fb: FormBuilder, zoneService: ZoneService, layerService: LayerService, userService: BaseUserService, navigationService: NavigationService);
|
|
38
|
-
ngOnInit(): void;
|
|
39
|
-
updateLayers(): Promise<void>;
|
|
40
|
-
initZoneForm(): Promise<void>;
|
|
41
|
-
onSubmitZone(): Promise<void>;
|
|
42
|
-
onCancel(): void;
|
|
43
|
-
get name(): AbstractControl;
|
|
44
|
-
toggleCarousel(): void;
|
|
45
|
-
togglePlan(): void;
|
|
46
|
-
onAddScan(): void;
|
|
47
|
-
onRemoveScanImage(scan: any): void;
|
|
48
|
-
onRemoveScanPlan(scan: any): void;
|
|
49
|
-
setSweepsAndNodeForZoneInput(zoneInput: Zone): Promise<void>;
|
|
50
|
-
createLayer(name: string): Promise<Layer>;
|
|
51
|
-
loadNavigations(): Promise<any>;
|
|
52
|
-
/**
|
|
53
|
-
* Adds all sweeps of the space
|
|
54
|
-
*/
|
|
55
|
-
onAddAll(): void;
|
|
56
|
-
getDefaultZone(): Zone;
|
|
57
|
-
/**
|
|
58
|
-
* Multiple floors
|
|
59
|
-
*/
|
|
60
|
-
onChangeMultipleFloors(): void;
|
|
61
|
-
onSelectedSweepsFromPlan(result: {
|
|
62
|
-
sweeps: string[];
|
|
63
|
-
startSweepID: string;
|
|
64
|
-
}): void;
|
|
65
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AddZoneComponent, never>;
|
|
66
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AddZoneComponent, "lib-add-zone", never, { "zoneEdit": "zoneEdit"; "spaceID": "spaceID"; "images360": "images360"; "navigationIDs": "navigationIDs"; "zones": "zones"; "newZoneDataFromEditor": "newZoneDataFromEditor"; "chosenPlan": "chosenPlan"; "isMuseumVisit": "isMuseumVisit"; "defaultZone": "defaultZone"; }, { "updatedZone": "updatedZone"; }, never, never>;
|
|
67
|
-
}
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { FormGroup, FormBuilder, AbstractControl } from '@angular/forms';
|
|
3
|
+
import { Zone, Plan, Layer, ZoneService, LayerService, BaseUserService, NavigationService } from '@smarterplan/ngx-smarterplan-core';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class AddZoneComponent implements OnInit {
|
|
6
|
+
private fb;
|
|
7
|
+
private zoneService;
|
|
8
|
+
private layerService;
|
|
9
|
+
private userService;
|
|
10
|
+
private navigationService;
|
|
11
|
+
zoneEdit: Zone;
|
|
12
|
+
spaceID: string;
|
|
13
|
+
images360: {
|
|
14
|
+
path: string;
|
|
15
|
+
filename: string;
|
|
16
|
+
}[];
|
|
17
|
+
navigationIDs: string[];
|
|
18
|
+
zones: Zone[];
|
|
19
|
+
newZoneDataFromEditor: any;
|
|
20
|
+
updatedZone: EventEmitter<any>;
|
|
21
|
+
chosenPlan: Plan;
|
|
22
|
+
isMuseumVisit: boolean;
|
|
23
|
+
defaultZone: Zone;
|
|
24
|
+
parentZones: Zone[];
|
|
25
|
+
carouselIsVisible: boolean;
|
|
26
|
+
zoneForm: FormGroup;
|
|
27
|
+
isSubmitted: boolean;
|
|
28
|
+
currentScanShowing: number;
|
|
29
|
+
chosenScans: number[];
|
|
30
|
+
layers: Layer[];
|
|
31
|
+
fromPlan: boolean;
|
|
32
|
+
chosenScansOnPlan: string[];
|
|
33
|
+
currentOrgId: string;
|
|
34
|
+
zoneInitialNavCount: number;
|
|
35
|
+
zoneIsMatterportFloor: boolean;
|
|
36
|
+
multipleFloors: boolean;
|
|
37
|
+
constructor(fb: FormBuilder, zoneService: ZoneService, layerService: LayerService, userService: BaseUserService, navigationService: NavigationService);
|
|
38
|
+
ngOnInit(): void;
|
|
39
|
+
updateLayers(): Promise<void>;
|
|
40
|
+
initZoneForm(): Promise<void>;
|
|
41
|
+
onSubmitZone(): Promise<void>;
|
|
42
|
+
onCancel(): void;
|
|
43
|
+
get name(): AbstractControl;
|
|
44
|
+
toggleCarousel(): void;
|
|
45
|
+
togglePlan(): void;
|
|
46
|
+
onAddScan(): void;
|
|
47
|
+
onRemoveScanImage(scan: any): void;
|
|
48
|
+
onRemoveScanPlan(scan: any): void;
|
|
49
|
+
setSweepsAndNodeForZoneInput(zoneInput: Zone): Promise<void>;
|
|
50
|
+
createLayer(name: string): Promise<Layer>;
|
|
51
|
+
loadNavigations(): Promise<any>;
|
|
52
|
+
/**
|
|
53
|
+
* Adds all sweeps of the space
|
|
54
|
+
*/
|
|
55
|
+
onAddAll(): void;
|
|
56
|
+
getDefaultZone(): Zone;
|
|
57
|
+
/**
|
|
58
|
+
* Multiple floors
|
|
59
|
+
*/
|
|
60
|
+
onChangeMultipleFloors(): void;
|
|
61
|
+
onSelectedSweepsFromPlan(result: {
|
|
62
|
+
sweeps: string[];
|
|
63
|
+
startSweepID: string;
|
|
64
|
+
}): void;
|
|
65
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AddZoneComponent, never>;
|
|
66
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AddZoneComponent, "lib-add-zone", never, { "zoneEdit": "zoneEdit"; "spaceID": "spaceID"; "images360": "images360"; "navigationIDs": "navigationIDs"; "zones": "zones"; "newZoneDataFromEditor": "newZoneDataFromEditor"; "chosenPlan": "chosenPlan"; "isMuseumVisit": "isMuseumVisit"; "defaultZone": "defaultZone"; }, { "updatedZone": "updatedZone"; }, never, never>;
|
|
67
|
+
}
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import { Rectangle } from '../../../../helper.service';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class SelectionComponent implements OnInit {
|
|
5
|
-
constructor();
|
|
6
|
-
/**Emit a new selection */
|
|
7
|
-
onSelectionChanged: EventEmitter<Rectangle>;
|
|
8
|
-
/**Zone wich you can use a selection inside, must have the class ".selectZone" */
|
|
9
|
-
selectionableZone: HTMLElement;
|
|
10
|
-
/**HtmlElement use to display the selected zone (blue) */
|
|
11
|
-
selectionElement: HTMLElement;
|
|
12
|
-
isMousedown: boolean;
|
|
13
|
-
selection: {
|
|
14
|
-
startX: number;
|
|
15
|
-
startY: number;
|
|
16
|
-
endX: number;
|
|
17
|
-
endY: number;
|
|
18
|
-
};
|
|
19
|
-
selectionRectangle: Rectangle;
|
|
20
|
-
ngOnInit(): void;
|
|
21
|
-
/**
|
|
22
|
-
* Update the current selection
|
|
23
|
-
* Will update the selectionRectangle and Selection HTML element
|
|
24
|
-
* @param shouldEmit if true an event will be emitted through onSelectionChanged (true by default)
|
|
25
|
-
*/
|
|
26
|
-
updateSelectionElement(shouldEmit?: boolean): void;
|
|
27
|
-
/**
|
|
28
|
-
* Trigger when mouse is press down on selectionableZone
|
|
29
|
-
* @param event
|
|
30
|
-
*/
|
|
31
|
-
mousedown(event: MouseEvent): void;
|
|
32
|
-
/**
|
|
33
|
-
* Trigger when mouse is release on selectionableZone
|
|
34
|
-
* @param event
|
|
35
|
-
*/
|
|
36
|
-
mouseup(event: MouseEvent): void;
|
|
37
|
-
/**
|
|
38
|
-
* Trigger when mouse is moving on selectionableZone
|
|
39
|
-
* @param event
|
|
40
|
-
*/
|
|
41
|
-
mousemove(event: MouseEvent): void;
|
|
42
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SelectionComponent, never>;
|
|
43
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SelectionComponent, "lib-selection", never, {}, { "onSelectionChanged": "onSelectionChanged"; }, never, ["*"]>;
|
|
44
|
-
}
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { Rectangle } from '../../../../helper.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SelectionComponent implements OnInit {
|
|
5
|
+
constructor();
|
|
6
|
+
/**Emit a new selection */
|
|
7
|
+
onSelectionChanged: EventEmitter<Rectangle>;
|
|
8
|
+
/**Zone wich you can use a selection inside, must have the class ".selectZone" */
|
|
9
|
+
selectionableZone: HTMLElement;
|
|
10
|
+
/**HtmlElement use to display the selected zone (blue) */
|
|
11
|
+
selectionElement: HTMLElement;
|
|
12
|
+
isMousedown: boolean;
|
|
13
|
+
selection: {
|
|
14
|
+
startX: number;
|
|
15
|
+
startY: number;
|
|
16
|
+
endX: number;
|
|
17
|
+
endY: number;
|
|
18
|
+
};
|
|
19
|
+
selectionRectangle: Rectangle;
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
/**
|
|
22
|
+
* Update the current selection
|
|
23
|
+
* Will update the selectionRectangle and Selection HTML element
|
|
24
|
+
* @param shouldEmit if true an event will be emitted through onSelectionChanged (true by default)
|
|
25
|
+
*/
|
|
26
|
+
updateSelectionElement(shouldEmit?: boolean): void;
|
|
27
|
+
/**
|
|
28
|
+
* Trigger when mouse is press down on selectionableZone
|
|
29
|
+
* @param event
|
|
30
|
+
*/
|
|
31
|
+
mousedown(event: MouseEvent): void;
|
|
32
|
+
/**
|
|
33
|
+
* Trigger when mouse is release on selectionableZone
|
|
34
|
+
* @param event
|
|
35
|
+
*/
|
|
36
|
+
mouseup(event: MouseEvent): void;
|
|
37
|
+
/**
|
|
38
|
+
* Trigger when mouse is moving on selectionableZone
|
|
39
|
+
* @param event
|
|
40
|
+
*/
|
|
41
|
+
mousemove(event: MouseEvent): void;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectionComponent, never>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectionComponent, "lib-selection", never, {}, { "onSelectionChanged": "onSelectionChanged"; }, never, ["*"]>;
|
|
44
|
+
}
|
package/lib/components/zones/add-zone/sweep-plan-selection/sweep-plan-selection.component.d.ts
CHANGED
|
@@ -1,96 +1,96 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import { Navigation, NavigationService, Plan, Zone, ZoneService, PlanService } from '@smarterplan/ngx-smarterplan-core';
|
|
3
|
-
import { PanZoom } from 'panzoom';
|
|
4
|
-
import { Rectangle } from '../../../../helper.service';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class SweepPlanSelectionComponent implements OnInit {
|
|
7
|
-
private zoneService;
|
|
8
|
-
private navigationService;
|
|
9
|
-
private planService;
|
|
10
|
-
plans: Plan[];
|
|
11
|
-
spaceID: string;
|
|
12
|
-
chosenScansOnPlan: string[];
|
|
13
|
-
/** if comming from Edit Plan SVG Zone creation */
|
|
14
|
-
newZoneData: any;
|
|
15
|
-
navIDsZoneEdit: string[];
|
|
16
|
-
occupiedSweeps: string[];
|
|
17
|
-
unavailableSweeps: string[];
|
|
18
|
-
editingAudioZone: boolean;
|
|
19
|
-
inputZone: Zone;
|
|
20
|
-
chosenPlan: Plan;
|
|
21
|
-
/** panZoom element for adding scans */
|
|
22
|
-
panZoom: PanZoom;
|
|
23
|
-
/** divPlan (use By panZoom) */
|
|
24
|
-
divPlan: HTMLElement;
|
|
25
|
-
/** all scan buttons Element */
|
|
26
|
-
buttonElements: HTMLButtonElement[];
|
|
27
|
-
/** Scan buttons that are in the current selection */
|
|
28
|
-
buttonsInSelection: HTMLButtonElement[];
|
|
29
|
-
sweepsSelected: EventEmitter<{
|
|
30
|
-
sweeps: string[];
|
|
31
|
-
startSweepID: string;
|
|
32
|
-
}>;
|
|
33
|
-
isSettingStartSweep: boolean;
|
|
34
|
-
startSweepID: string;
|
|
35
|
-
constructor(zoneService: ZoneService, navigationService: NavigationService, planService: PlanService);
|
|
36
|
-
ngOnInit(): void;
|
|
37
|
-
ngOnChanges(): void;
|
|
38
|
-
setSweepsOfInputZone(): void;
|
|
39
|
-
getPlans(): Promise<void>;
|
|
40
|
-
onPlanClick(plan: Plan): Promise<void>;
|
|
41
|
-
addScanPoints(): Promise<void>;
|
|
42
|
-
/** Function if we are coming for svg editor workflow */
|
|
43
|
-
setScanByDraw(navigations: any[]): Promise<void>;
|
|
44
|
-
setScanInRect(img: any, coeffX: number, coeffY: number, element: {
|
|
45
|
-
angle: any;
|
|
46
|
-
cx: any;
|
|
47
|
-
cy: any;
|
|
48
|
-
x: number;
|
|
49
|
-
width: any;
|
|
50
|
-
y: number;
|
|
51
|
-
height: any;
|
|
52
|
-
}, navigations: any[]): Promise<void>;
|
|
53
|
-
setScanInCircle(img: any, coeffX: number, coeffY: number, element: {
|
|
54
|
-
angle: any;
|
|
55
|
-
cx: number;
|
|
56
|
-
cy: number;
|
|
57
|
-
rx: number;
|
|
58
|
-
ry: number;
|
|
59
|
-
}, navigations: Navigation[]): Promise<void>;
|
|
60
|
-
setScanInPolygon(img: any, coeffX: number, coeffY: number, element: {
|
|
61
|
-
segList: any;
|
|
62
|
-
}, navigations: any[]): Promise<void>;
|
|
63
|
-
clearDivPlan(): void;
|
|
64
|
-
/**
|
|
65
|
-
* Trigger each by the selectionComponent when selection change
|
|
66
|
-
* Update the current selected scan buttons
|
|
67
|
-
* @param selection new selection
|
|
68
|
-
*/
|
|
69
|
-
onSelectionChanged(selection: Rectangle): void;
|
|
70
|
-
/**
|
|
71
|
-
* Trigger when the user click to add the selected scans
|
|
72
|
-
*/
|
|
73
|
-
onSelectionAdd(): void;
|
|
74
|
-
/**
|
|
75
|
-
* Trigger when the user click to remove the selected scans
|
|
76
|
-
*/
|
|
77
|
-
onSelectionRemove(): void;
|
|
78
|
-
/**
|
|
79
|
-
* Trigger when the user click to select all scans
|
|
80
|
-
*/
|
|
81
|
-
onSelectAll(): void;
|
|
82
|
-
/**
|
|
83
|
-
* Trigger when the user change the size of the scan points
|
|
84
|
-
* @param event
|
|
85
|
-
*/
|
|
86
|
-
onChangeScanSize(event: any): void;
|
|
87
|
-
/**
|
|
88
|
-
* When a button representing a scan is clicked
|
|
89
|
-
* @param button
|
|
90
|
-
*/
|
|
91
|
-
onButtonScanClicked(button: HTMLElement): void;
|
|
92
|
-
onSaveSelection(): void;
|
|
93
|
-
onCancel(): void;
|
|
94
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SweepPlanSelectionComponent, never>;
|
|
95
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SweepPlanSelectionComponent, "lib-sweep-plan-selection", never, { "spaceID": "spaceID"; "chosenScansOnPlan": "chosenScansOnPlan"; "newZoneData": "newZoneData"; "occupiedSweeps": "occupiedSweeps"; "unavailableSweeps": "unavailableSweeps"; "editingAudioZone": "editingAudioZone"; "inputZone": "inputZone"; }, { "sweepsSelected": "sweepsSelected"; }, never, never>;
|
|
96
|
-
}
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { Navigation, NavigationService, Plan, Zone, ZoneService, PlanService } from '@smarterplan/ngx-smarterplan-core';
|
|
3
|
+
import { PanZoom } from 'panzoom';
|
|
4
|
+
import { Rectangle } from '../../../../helper.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class SweepPlanSelectionComponent implements OnInit {
|
|
7
|
+
private zoneService;
|
|
8
|
+
private navigationService;
|
|
9
|
+
private planService;
|
|
10
|
+
plans: Plan[];
|
|
11
|
+
spaceID: string;
|
|
12
|
+
chosenScansOnPlan: string[];
|
|
13
|
+
/** if comming from Edit Plan SVG Zone creation */
|
|
14
|
+
newZoneData: any;
|
|
15
|
+
navIDsZoneEdit: string[];
|
|
16
|
+
occupiedSweeps: string[];
|
|
17
|
+
unavailableSweeps: string[];
|
|
18
|
+
editingAudioZone: boolean;
|
|
19
|
+
inputZone: Zone;
|
|
20
|
+
chosenPlan: Plan;
|
|
21
|
+
/** panZoom element for adding scans */
|
|
22
|
+
panZoom: PanZoom;
|
|
23
|
+
/** divPlan (use By panZoom) */
|
|
24
|
+
divPlan: HTMLElement;
|
|
25
|
+
/** all scan buttons Element */
|
|
26
|
+
buttonElements: HTMLButtonElement[];
|
|
27
|
+
/** Scan buttons that are in the current selection */
|
|
28
|
+
buttonsInSelection: HTMLButtonElement[];
|
|
29
|
+
sweepsSelected: EventEmitter<{
|
|
30
|
+
sweeps: string[];
|
|
31
|
+
startSweepID: string;
|
|
32
|
+
}>;
|
|
33
|
+
isSettingStartSweep: boolean;
|
|
34
|
+
startSweepID: string;
|
|
35
|
+
constructor(zoneService: ZoneService, navigationService: NavigationService, planService: PlanService);
|
|
36
|
+
ngOnInit(): void;
|
|
37
|
+
ngOnChanges(): void;
|
|
38
|
+
setSweepsOfInputZone(): void;
|
|
39
|
+
getPlans(): Promise<void>;
|
|
40
|
+
onPlanClick(plan: Plan): Promise<void>;
|
|
41
|
+
addScanPoints(): Promise<void>;
|
|
42
|
+
/** Function if we are coming for svg editor workflow */
|
|
43
|
+
setScanByDraw(navigations: any[]): Promise<void>;
|
|
44
|
+
setScanInRect(img: any, coeffX: number, coeffY: number, element: {
|
|
45
|
+
angle: any;
|
|
46
|
+
cx: any;
|
|
47
|
+
cy: any;
|
|
48
|
+
x: number;
|
|
49
|
+
width: any;
|
|
50
|
+
y: number;
|
|
51
|
+
height: any;
|
|
52
|
+
}, navigations: any[]): Promise<void>;
|
|
53
|
+
setScanInCircle(img: any, coeffX: number, coeffY: number, element: {
|
|
54
|
+
angle: any;
|
|
55
|
+
cx: number;
|
|
56
|
+
cy: number;
|
|
57
|
+
rx: number;
|
|
58
|
+
ry: number;
|
|
59
|
+
}, navigations: Navigation[]): Promise<void>;
|
|
60
|
+
setScanInPolygon(img: any, coeffX: number, coeffY: number, element: {
|
|
61
|
+
segList: any;
|
|
62
|
+
}, navigations: any[]): Promise<void>;
|
|
63
|
+
clearDivPlan(): void;
|
|
64
|
+
/**
|
|
65
|
+
* Trigger each by the selectionComponent when selection change
|
|
66
|
+
* Update the current selected scan buttons
|
|
67
|
+
* @param selection new selection
|
|
68
|
+
*/
|
|
69
|
+
onSelectionChanged(selection: Rectangle): void;
|
|
70
|
+
/**
|
|
71
|
+
* Trigger when the user click to add the selected scans
|
|
72
|
+
*/
|
|
73
|
+
onSelectionAdd(): void;
|
|
74
|
+
/**
|
|
75
|
+
* Trigger when the user click to remove the selected scans
|
|
76
|
+
*/
|
|
77
|
+
onSelectionRemove(): void;
|
|
78
|
+
/**
|
|
79
|
+
* Trigger when the user click to select all scans
|
|
80
|
+
*/
|
|
81
|
+
onSelectAll(): void;
|
|
82
|
+
/**
|
|
83
|
+
* Trigger when the user change the size of the scan points
|
|
84
|
+
* @param event
|
|
85
|
+
*/
|
|
86
|
+
onChangeScanSize(event: any): void;
|
|
87
|
+
/**
|
|
88
|
+
* When a button representing a scan is clicked
|
|
89
|
+
* @param button
|
|
90
|
+
*/
|
|
91
|
+
onButtonScanClicked(button: HTMLElement): void;
|
|
92
|
+
onSaveSelection(): void;
|
|
93
|
+
onCancel(): void;
|
|
94
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SweepPlanSelectionComponent, never>;
|
|
95
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SweepPlanSelectionComponent, "lib-sweep-plan-selection", never, { "spaceID": "spaceID"; "chosenScansOnPlan": "chosenScansOnPlan"; "newZoneData": "newZoneData"; "occupiedSweeps": "occupiedSweeps"; "unavailableSweeps": "unavailableSweeps"; "editingAudioZone": "editingAudioZone"; "inputZone": "inputZone"; }, { "sweepsSelected": "sweepsSelected"; }, never, never>;
|
|
96
|
+
}
|