@regionerne/gis-komponent 0.0.60 → 0.0.62
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/fesm2022/regionerne-gis-komponent.mjs +176 -146
- package/fesm2022/regionerne-gis-komponent.mjs.map +1 -1
- package/lib/components/active-objects/activeObjects.component.d.ts +3 -1
- package/lib/models/widget.constants.d.ts +24 -0
- package/lib/services/drawLayerSource.service.d.ts +16 -4
- package/lib/services/layoutService.d.ts +16 -2
- package/lib/services/printDrawLayerSource.service.d.ts +5 -1
- package/package.json +1 -1
|
@@ -19,7 +19,9 @@ export declare class ActiveObjectsComponent implements OnInit, OnChanges {
|
|
|
19
19
|
private _conflictService;
|
|
20
20
|
private _undoRedo;
|
|
21
21
|
isZoomedToAll: boolean;
|
|
22
|
-
features$: import("rxjs").Observable<Feature<import("ol/geom").Geometry
|
|
22
|
+
features$: import("rxjs").Observable<Feature<import("ol/geom").Geometry, {
|
|
23
|
+
[x: string]: any;
|
|
24
|
+
}>[]>;
|
|
23
25
|
collapsed: boolean;
|
|
24
26
|
settings: GisKomponentSettings;
|
|
25
27
|
sessionDone: EventEmitter<any>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare class WidgetConstants {
|
|
2
|
+
static collapsedHeight: number;
|
|
3
|
+
static collapsedWidth: number;
|
|
4
|
+
static toolboxHeight: number;
|
|
5
|
+
static toolboxWidth: number;
|
|
6
|
+
static searchHeight: number;
|
|
7
|
+
static searchWidth: number;
|
|
8
|
+
static activeObjectsHeight: number;
|
|
9
|
+
static activeObjectsWidth: number;
|
|
10
|
+
static layerSelectorHeight: number;
|
|
11
|
+
static layerSelectorWidth: number;
|
|
12
|
+
static legendsHeight: number;
|
|
13
|
+
static legendsWidth: number;
|
|
14
|
+
static toolboxDefaultX: number;
|
|
15
|
+
static toolboxDefaultY: number;
|
|
16
|
+
static searchDefaultX: number;
|
|
17
|
+
static searchDefaultY: number;
|
|
18
|
+
static activeObjectsDefaultX: number;
|
|
19
|
+
static activeObjectsDefaultY: number;
|
|
20
|
+
static layerSelectorDefaultX: number;
|
|
21
|
+
static layerSelectorDefaultY: number;
|
|
22
|
+
static legendsDefaultX: number;
|
|
23
|
+
static legendsDefaultY: number;
|
|
24
|
+
}
|
|
@@ -6,13 +6,25 @@ export declare class DrawLayerSourceService {
|
|
|
6
6
|
private _current;
|
|
7
7
|
private _hiddenFeatures;
|
|
8
8
|
private _features;
|
|
9
|
-
features$: import("rxjs").Observable<Feature<import("ol/geom").Geometry
|
|
9
|
+
features$: import("rxjs").Observable<Feature<import("ol/geom").Geometry, {
|
|
10
|
+
[x: string]: any;
|
|
11
|
+
}>[]>;
|
|
10
12
|
private _selectedForHighlight;
|
|
11
|
-
selectedForHighlight$: import("rxjs").Observable<Feature<import("ol/geom").Geometry
|
|
13
|
+
selectedForHighlight$: import("rxjs").Observable<Feature<import("ol/geom").Geometry, {
|
|
14
|
+
[x: string]: any;
|
|
15
|
+
}>[]>;
|
|
12
16
|
source: VectorSource;
|
|
13
|
-
layer: VectorLayer<VectorSource<Feature<import("ol/geom").Geometry
|
|
17
|
+
layer: VectorLayer<VectorSource<Feature<import("ol/geom").Geometry, {
|
|
18
|
+
[x: string]: any;
|
|
19
|
+
}>>, Feature<import("ol/geom").Geometry, {
|
|
20
|
+
[x: string]: any;
|
|
21
|
+
}>>;
|
|
14
22
|
previewSource: VectorSource;
|
|
15
|
-
previewLayer: VectorLayer<VectorSource<Feature<import("ol/geom").Geometry
|
|
23
|
+
previewLayer: VectorLayer<VectorSource<Feature<import("ol/geom").Geometry, {
|
|
24
|
+
[x: string]: any;
|
|
25
|
+
}>>, Feature<import("ol/geom").Geometry, {
|
|
26
|
+
[x: string]: any;
|
|
27
|
+
}>>;
|
|
16
28
|
private _disabled;
|
|
17
29
|
constructor();
|
|
18
30
|
private _initListener;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Map } from 'ol';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export interface WidgetPositionOptions {
|
|
4
5
|
initialPosition: string;
|
|
@@ -7,15 +8,28 @@ export interface WidgetPositionOptions {
|
|
|
7
8
|
widgetHeight: number;
|
|
8
9
|
offsetX?: number;
|
|
9
10
|
offsetY?: number;
|
|
11
|
+
currentPosition?: {
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
} | null;
|
|
15
|
+
resizedContainerHeight?: number | null;
|
|
16
|
+
resizedContainerWidth?: number | null;
|
|
10
17
|
}
|
|
11
18
|
export declare class LayoutService {
|
|
12
19
|
private _map;
|
|
20
|
+
mapResizedSubject: Subject<boolean>;
|
|
13
21
|
set map(value: Map);
|
|
14
|
-
|
|
22
|
+
keepWidgetInViewPort(dragPosition: {
|
|
23
|
+
x: number;
|
|
24
|
+
y: number;
|
|
25
|
+
}, widgetName: string, widgetHeight: number, widgetWidth: number, resizedContainerHeight?: number | null, resizedContainerWidth?: number | null): {
|
|
26
|
+
x: number;
|
|
27
|
+
y: number;
|
|
28
|
+
};
|
|
29
|
+
calculateWidgetPosition({ initialPosition, widgetName, widgetWidth, widgetHeight, offsetX, offsetY, currentPosition, resizedContainerHeight, resizedContainerWidth }: WidgetPositionOptions): {
|
|
15
30
|
x: number;
|
|
16
31
|
y: number;
|
|
17
32
|
};
|
|
18
|
-
bringElementIntoViewIfNeeded(elementClass: string, offsetValue: number, collapsed: boolean): void;
|
|
19
33
|
private _savePosition;
|
|
20
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutService, never>;
|
|
21
35
|
static ɵprov: i0.ɵɵInjectableDeclaration<LayoutService>;
|
|
@@ -4,7 +4,11 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class PrintDrawLayerSourceService {
|
|
5
5
|
private _current;
|
|
6
6
|
source: VectorSource;
|
|
7
|
-
layer: VectorLayer<VectorSource<import("ol").Feature<import("ol/geom").Geometry
|
|
7
|
+
layer: VectorLayer<VectorSource<import("ol").Feature<import("ol/geom").Geometry, {
|
|
8
|
+
[x: string]: any;
|
|
9
|
+
}>>, import("ol").Feature<import("ol/geom").Geometry, {
|
|
10
|
+
[x: string]: any;
|
|
11
|
+
}>>;
|
|
8
12
|
constructor();
|
|
9
13
|
private _initListener;
|
|
10
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<PrintDrawLayerSourceService, never>;
|