bbj-screen-widget 2.4.66 → 2.4.68

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.
Files changed (43) hide show
  1. package/bbj-screen-widget.d.ts +38 -33
  2. package/bbj-screen-widget.metadata.json +1 -1
  3. package/bundles/bbj-screen-widget-core.umd.js +148 -5
  4. package/bundles/bbj-screen-widget-core.umd.js.map +1 -1
  5. package/bundles/bbj-screen-widget-core.umd.min.js +1 -1
  6. package/bundles/bbj-screen-widget-core.umd.min.js.map +1 -1
  7. package/bundles/bbj-screen-widget.umd.js +1886 -401
  8. package/bundles/bbj-screen-widget.umd.js.map +1 -1
  9. package/bundles/bbj-screen-widget.umd.min.js +1 -1
  10. package/bundles/bbj-screen-widget.umd.min.js.map +1 -1
  11. package/core/bbj-screen-widget-core.metadata.json +1 -1
  12. package/core/public_api.d.ts +2 -0
  13. package/core/util/map.util.d.ts +23 -0
  14. package/core/util/scale.util.d.ts +4 -0
  15. package/esm2015/bbj-screen-widget.js +39 -34
  16. package/esm2015/core/public_api.js +3 -1
  17. package/esm2015/core/service/baidu-map.service.js +2 -2
  18. package/esm2015/core/util/map.util.js +104 -0
  19. package/esm2015/core/util/scale.util.js +33 -0
  20. package/esm2015/lib/custom-baidu-map/baidu-fence/baidu-fence.component.js +168 -88
  21. package/esm2015/lib/custom-baidu-map/baidu-lushu/baidu-lushu.component.js +222 -0
  22. package/esm2015/lib/custom-baidu-map/custom-baidu-map.component.js +5 -42
  23. package/esm2015/lib/custom-baidu-map/custom-baidu-map.module.js +6 -1
  24. package/esm2015/lib/screen-widget.module.js +7 -1
  25. package/esm2015/lib/tianditu/base-layer.js +80 -0
  26. package/esm2015/lib/tianditu/tianditu-marker/tianditu-marker.component.js +666 -0
  27. package/esm2015/lib/tianditu/tianditu.component.js +399 -0
  28. package/esm2015/lib/tianditu/tianditu.module.js +21 -0
  29. package/fesm2015/bbj-screen-widget-core.js +139 -2
  30. package/fesm2015/bbj-screen-widget-core.js.map +1 -1
  31. package/fesm2015/bbj-screen-widget.js +1581 -176
  32. package/fesm2015/bbj-screen-widget.js.map +1 -1
  33. package/lib/custom-baidu-map/baidu-fence/baidu-fence.component.d.ts +20 -2
  34. package/lib/custom-baidu-map/baidu-lushu/baidu-lushu.component.d.ts +31 -0
  35. package/lib/custom-baidu-map/custom-baidu-map.component.d.ts +1 -1
  36. package/lib/tianditu/base-layer.d.ts +20 -0
  37. package/lib/tianditu/tianditu-marker/tianditu-marker.component.d.ts +63 -0
  38. package/lib/tianditu/tianditu.component.d.ts +53 -0
  39. package/lib/tianditu/tianditu.module.d.ts +4 -0
  40. package/package.json +1 -1
  41. package/src/assets/img/screen/car.png +0 -0
  42. package/src/assets/js/BMapGL/Lushu.js +815 -0
  43. package/src/assets/js/BMapGL/Lushu.min.js +1 -0
@@ -1,7 +1,12 @@
1
- import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
1
+ import { ElementRef, EventEmitter, NgZone, OnDestroy, OnInit } from '@angular/core';
2
2
  import { BaseLayer } from '../base-layer';
3
3
  import { Subject } from 'rxjs';
4
+ import { CustomBaiduMapComponent } from '../custom-baidu-map.component';
5
+ import { NzMessageService } from 'ng-zorro-antd/message';
4
6
  export declare class BaiduFenceComponent extends BaseLayer implements OnInit, OnDestroy {
7
+ protected parent: CustomBaiduMapComponent;
8
+ protected zone: NgZone;
9
+ private message;
5
10
  lineWidth: number;
6
11
  lineColor: string;
7
12
  fillColor: string;
@@ -15,15 +20,28 @@ export declare class BaiduFenceComponent extends BaseLayer implements OnInit, On
15
20
  stopEdit$: Subject<void>;
16
21
  editLineLayer: any;
17
22
  searchText: string;
23
+ areaName: string;
18
24
  polygon: any;
19
25
  circle: any;
20
26
  scene: any;
27
+ circleEdit: any;
28
+ suggest: ElementRef<HTMLInputElement>;
29
+ polygonEdit: any;
30
+ editOverlay: any;
31
+ constructor(parent: CustomBaiduMapComponent, zone: NgZone, message: NzMessageService);
21
32
  ngOnInit(): Promise<void>;
22
33
  ngOnDestroy(): void;
23
34
  createLayers(): any[];
24
35
  updateData(): void;
25
36
  startDraw(type: string): Promise<void>;
37
+ getOptions(): {
38
+ fillColor: string;
39
+ strokeWeight: number;
40
+ strokeColor: string;
41
+ };
26
42
  updateEditData(): void;
27
43
  stopDraw(): void;
28
- search(): void;
44
+ search(): Promise<void>;
45
+ initSearch(): Promise<void>;
46
+ moveToView(id: string): void;
29
47
  }
@@ -0,0 +1,31 @@
1
+ import { NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
+ import { LazyService } from '@delon/util';
3
+ import { CustomBaiduMapComponent } from '../custom-baidu-map.component';
4
+ export declare class BaiduLushuComponent implements OnInit, OnChanges, OnDestroy {
5
+ private parent;
6
+ private lazy;
7
+ private zone;
8
+ speed: number;
9
+ icon: string;
10
+ iconWidth: number;
11
+ iconHeight: number;
12
+ showPolyline: boolean;
13
+ polylineColor: string;
14
+ autoStart: boolean;
15
+ enableRotation: boolean;
16
+ defaultContent: string;
17
+ data: any[];
18
+ lushu: any;
19
+ inited: boolean;
20
+ polyline: any;
21
+ constructor(parent: CustomBaiduMapComponent, lazy: LazyService, zone: NgZone);
22
+ ngOnInit(): void;
23
+ ngOnChanges(changes: SimpleChanges): void;
24
+ ngOnDestroy(): void;
25
+ update(): void;
26
+ start(): void;
27
+ stop(): void;
28
+ pause(): void;
29
+ clear(): void;
30
+ setSpeed(speed: number): void;
31
+ }
@@ -50,7 +50,7 @@ export declare class CustomBaiduMapComponent implements OnInit, OnDestroy, OnCha
50
50
  mapClick: EventEmitter<any>;
51
51
  container: ElementRef;
52
52
  children: any[];
53
- destroy$: Subject<unknown>;
53
+ destroy$: Subject<void>;
54
54
  destroyed: boolean;
55
55
  overlaysMap: {};
56
56
  private inited;
@@ -0,0 +1,20 @@
1
+ import { NgZone, OnInit, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
2
+ import { TiandituComponent } from './tianditu.component';
3
+ import { Subject } from 'rxjs';
4
+ export declare abstract class BaseLayer implements OnInit, OnDestroy, OnChanges {
5
+ protected parent: TiandituComponent;
6
+ protected zone: NgZone;
7
+ inited: boolean;
8
+ layers: any[];
9
+ overlays: any[];
10
+ destroy$: Subject<void>;
11
+ constructor(parent: TiandituComponent, zone: NgZone);
12
+ ngOnInit(): Promise<void>;
13
+ ngOnChanges(changes: SimpleChanges): void;
14
+ ngOnDestroy(): void;
15
+ init(): void;
16
+ updateOverlays(): Promise<void>;
17
+ removeOverlays(): void;
18
+ getTextOptions(font: any): any;
19
+ abstract createOverlays(): any[];
20
+ }
@@ -0,0 +1,63 @@
1
+ import { EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
+ import { BaseLayer } from '../base-layer';
3
+ import { FileUrlService } from '../../shared/service/file-url.service';
4
+ import { NzContextMenuService } from 'ng-zorro-antd/dropdown';
5
+ import { TiandituComponent } from '../tianditu.component';
6
+ export declare class TiandituMarkerComponent extends BaseLayer implements OnInit, OnDestroy, OnChanges {
7
+ protected parent: TiandituComponent;
8
+ protected zone: NgZone;
9
+ private fileUrlService;
10
+ private nzContextMenuService;
11
+ iconUrl: string;
12
+ iconWidth: number;
13
+ iconHeight: number;
14
+ iconOffsetX: number;
15
+ iconOffsetY: number;
16
+ toCenter: boolean;
17
+ showLabel: boolean;
18
+ showLabelMinZoom: number;
19
+ labelFont: any;
20
+ stroke: string;
21
+ strokeWidth: number;
22
+ labelOffsetX: number;
23
+ labelOffsetY: number;
24
+ selectedMapZoom: number;
25
+ unselectOnClickBlank: boolean;
26
+ groups: any[];
27
+ data: any[];
28
+ makerClick: EventEmitter<any>;
29
+ selectedId: string;
30
+ onClick: EventEmitter<any>;
31
+ layers: any[];
32
+ inited: boolean;
33
+ optionsMap: {};
34
+ clickData: any;
35
+ clickTimeout: any;
36
+ menu: any;
37
+ subMarkers: any[];
38
+ dataMap: {};
39
+ groupData: {};
40
+ lastSelect: any;
41
+ currentSelectedId: string;
42
+ textLayer: any;
43
+ constructor(parent: TiandituComponent, zone: NgZone, fileUrlService: FileUrlService, nzContextMenuService: NzContextMenuService);
44
+ ngOnInit(): Promise<void>;
45
+ ngOnChanges(changes: SimpleChanges): void;
46
+ ngOnDestroy(): void;
47
+ init(): void;
48
+ createOptions(group?: any): {
49
+ icon: any;
50
+ };
51
+ updateTextVisible(zoom?: number): void;
52
+ createOverlays(): any[];
53
+ getIconOptions(group: any): any;
54
+ openInfo(content: any, e: any): void;
55
+ addPickEvent(options: any): void;
56
+ select(id: any, options?: {
57
+ move?: boolean;
58
+ resetLayer?: boolean;
59
+ force?: boolean;
60
+ }): void;
61
+ resetLayerData(group: string): void;
62
+ updateSize(item: any, scale: number): void;
63
+ }
@@ -0,0 +1,53 @@
1
+ import { ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
+ import { LazyService } from '@delon/util';
3
+ import { ScaleSubject, WidgetRef } from 'bbj-widget-base';
4
+ import { Subject } from 'rxjs';
5
+ export declare class TiandituComponent implements OnInit, OnChanges, OnDestroy {
6
+ private lazy;
7
+ private elementRef;
8
+ private zone;
9
+ private scale$;
10
+ private widgetRef;
11
+ coordinateType: string;
12
+ dragging: boolean;
13
+ zoom: number;
14
+ data: any[];
15
+ dataChange: EventEmitter<any>;
16
+ zoomChange: EventEmitter<any>;
17
+ mapClick: EventEmitter<any>;
18
+ container: ElementRef<HTMLElement>;
19
+ destroy$: Subject<void>;
20
+ edit: boolean;
21
+ children: any[];
22
+ map: any;
23
+ centerLng: number;
24
+ centerLat: number;
25
+ destroyed: boolean;
26
+ private inited;
27
+ init$: Promise<unknown>;
28
+ constructor(lazy: LazyService, elementRef: ElementRef, zone: NgZone, scale$: ScaleSubject, widgetRef: WidgetRef);
29
+ ngOnInit(): Promise<void>;
30
+ initMap(): Promise<void>;
31
+ ngOnChanges(changes: SimpleChanges): void;
32
+ ngOnDestroy(): void;
33
+ createLngLat(lng: number, lat: number): any;
34
+ transferCoordinate(latlng: {
35
+ lat: number;
36
+ lng: number;
37
+ }): {
38
+ lat: number;
39
+ lng: number;
40
+ };
41
+ setCenter(lng: number, lat: number): void;
42
+ setCenterAndZoom(lng: number, lat: number, zoom: number): void;
43
+ /**
44
+ * 根据经纬度范围设置中心和缩放等级
45
+ * @param minLng
46
+ * @param maxLng
47
+ * @param minLat
48
+ * @param maxLat
49
+ */
50
+ setRectCenterAndZoom(minLng: number, maxLng: number, minLat: number, maxLat: number): void;
51
+ mapLoaded(map: any): Promise<void>;
52
+ decodePolygon(coordinate: string, encodeOffsets: number[], encodeScale: number): any[];
53
+ }
@@ -0,0 +1,4 @@
1
+ import { WidgetService } from 'bbj-widget-base';
2
+ export declare class TiandituModule {
3
+ constructor(widgetService: WidgetService);
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bbj-screen-widget",
3
- "version": "2.4.66",
3
+ "version": "2.4.68",
4
4
  "dependencies": {
5
5
  "@fullcalendar/angular": "~5.5.0",
6
6
  "@fullcalendar/daygrid": "~5.5.0",
Binary file