@aibee/crc-bmap 0.0.105 → 0.0.106
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/lib/bmap.cjs.min.js +1 -1
- package/lib/bmap.cjs.min.js.map +2 -2
- package/lib/bmap.esm.js +3 -3
- package/lib/bmap.esm.js.map +2 -2
- package/lib/bmap.esm.min.js +3691 -5
- package/lib/bmap.esm.min.js.map +3 -3
- package/lib/bmap.min.js +1 -1
- package/lib/bmap.min.js.map +2 -2
- package/lib/src/bmap.d.ts +6 -5
- package/lib/src/elements/graphic.d.ts +5 -5
- package/lib/src/elements/heatmap.d.ts +6 -6
- package/lib/src/elements/overlay.d.ts +1 -1
- package/lib/src/elements/poi.d.ts +4 -3
- package/lib/src/elements/select-box.d.ts +4 -4
- package/lib/src/elements/shadow.d.ts +2 -2
- package/lib/src/elements/svg-line.d.ts +2 -2
- package/lib/src/elements/svg-polygon.d.ts +6 -6
- package/lib/src/operations/selection/box-selection.d.ts +3 -3
- package/lib/src/operations/selection/selection.d.ts +11 -7
- package/package.json +2 -2
package/lib/src/bmap.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { Context } from "./context";
|
|
|
3
3
|
import { Timer, HooksName } from "./utils";
|
|
4
4
|
import { Config } from "./config";
|
|
5
5
|
import { Floor, Graphic, HeatmapDataParam, ModelOptions, PoiOptionsParam } from "./elements";
|
|
6
|
+
import { SvgLine, SvgPolygon } from "./elements";
|
|
6
7
|
import { GraphicInfo, GraphicOptions, LoadQuery } from "./types";
|
|
7
8
|
import { Plugin } from "./plugins/base";
|
|
8
9
|
interface BmapEventMap {
|
|
@@ -37,12 +38,12 @@ export declare class BMap extends EventDispatcher<BmapEventMap> {
|
|
|
37
38
|
private container;
|
|
38
39
|
config: Config;
|
|
39
40
|
context: Context;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
polarKeys: string[];
|
|
42
|
+
azimuthalKeys: string[];
|
|
43
|
+
svgLine?: SvgLine;
|
|
44
|
+
svgPolygon?: SvgPolygon;
|
|
44
45
|
basicZoom: number;
|
|
45
|
-
|
|
46
|
+
prevCameraZoom: number;
|
|
46
47
|
type: MapType;
|
|
47
48
|
floorDataMap: Map<string, GraphicInfo[]>;
|
|
48
49
|
buildingGroundMap: Map<string, GraphicInfo | null>;
|
|
@@ -27,12 +27,12 @@ type GraphicEventMap = {
|
|
|
27
27
|
} & Object3DEventMap;
|
|
28
28
|
export declare class Graphic extends Object3D<GraphicEventMap> {
|
|
29
29
|
private context;
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
geometry: ExtrudeGeometry;
|
|
31
|
+
material: MeshBasicMaterial | MeshBasicMaterial[] | ShaderMaterial[] | ShaderMaterial;
|
|
32
32
|
mesh: Mesh;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
line: LineSegments;
|
|
34
|
+
lineMaterial?: LineBasicMaterial;
|
|
35
|
+
lineGeometry?: BufferGeometry;
|
|
36
36
|
options: GraphicOptions;
|
|
37
37
|
constructor(context: Context, options: GraphicOptionsParam);
|
|
38
38
|
getCenter(): Vector3;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Context } from "../context";
|
|
2
|
-
import { Object3D, Matrix3 } from "three";
|
|
3
|
-
import { HeatmapData, DataPoint } from '@mars3d/heatmap.js';
|
|
2
|
+
import { Object3D, Mesh, Matrix3 } from "three";
|
|
3
|
+
import { Heatmap, HeatmapData, DataPoint } from '@mars3d/heatmap.js';
|
|
4
4
|
type V = 'value';
|
|
5
5
|
type X = 'x';
|
|
6
6
|
type Y = 'y';
|
|
7
7
|
export type HeatmapDataParam = HeatmapData<DataPoint<V, X, Y>>;
|
|
8
8
|
export declare class HeatmapElement extends Object3D {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
context: Context;
|
|
10
|
+
heatmap?: Heatmap<V, X, Y>;
|
|
11
|
+
div: HTMLDivElement;
|
|
12
|
+
plane?: Mesh;
|
|
13
13
|
constructor(context: Context);
|
|
14
14
|
clearHeatmap(): void;
|
|
15
15
|
loadData(data: HeatmapDataParam): void;
|
|
@@ -24,7 +24,7 @@ export declare class Overlay extends EventDispatcher<OverlayEventMap> {
|
|
|
24
24
|
y: number;
|
|
25
25
|
};
|
|
26
26
|
visible: boolean;
|
|
27
|
-
|
|
27
|
+
options: OverlayOptions;
|
|
28
28
|
placement: Placement;
|
|
29
29
|
observer: MutationObserver | null;
|
|
30
30
|
constructor(context: Context, options?: Partial<OverlayOptions>);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EventDispatcher, Object3DEventMap, Vector3 } from 'three';
|
|
2
2
|
import { Context } from '../context';
|
|
3
|
+
import { Overlay } from './overlay';
|
|
3
4
|
export interface PoiOptions {
|
|
4
5
|
texts: {
|
|
5
6
|
text: string;
|
|
@@ -38,9 +39,9 @@ export type PoiOptionsParam = Partial<PoiOptions>;
|
|
|
38
39
|
export declare class Poi extends EventDispatcher<PoiEventMap> {
|
|
39
40
|
private context;
|
|
40
41
|
div: HTMLDivElement;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
textDiv: HTMLDivElement;
|
|
43
|
+
img?: HTMLImageElement;
|
|
44
|
+
overlay: Overlay;
|
|
44
45
|
options: PoiOptions;
|
|
45
46
|
visible: boolean;
|
|
46
47
|
size: {
|
|
@@ -8,10 +8,10 @@ interface SvgLineEventMap {
|
|
|
8
8
|
}
|
|
9
9
|
export declare class SelectBox extends BaseSvg<SvgLineEventMap> {
|
|
10
10
|
context: Context;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
rect: SVGElement;
|
|
12
|
+
cornerRect: SVGElement[];
|
|
13
|
+
centerRect: SVGElement[];
|
|
14
|
+
graphic?: Graphic;
|
|
15
15
|
constructor(context: Context);
|
|
16
16
|
setEnable(enable: boolean): void;
|
|
17
17
|
registryEvent(): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Object3D, PlaneGeometry, DirectionalLight, Mesh, ShadowMaterial, Vector3 } from 'three';
|
|
2
2
|
export declare class Shadow extends Object3D {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
directionalLight: DirectionalLight;
|
|
4
|
+
plane: Mesh;
|
|
5
5
|
basicOpacity: number;
|
|
6
6
|
constructor();
|
|
7
7
|
initLight(): DirectionalLight;
|
|
@@ -8,8 +8,8 @@ interface SvgLineEventMap {
|
|
|
8
8
|
}
|
|
9
9
|
export declare class SvgLine extends BaseSvg<SvgLineEventMap> {
|
|
10
10
|
context: Context;
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
circles: SVGElement[];
|
|
12
|
+
line: SVGElement;
|
|
13
13
|
constructor(context: Context);
|
|
14
14
|
setEnable(enable: boolean): void;
|
|
15
15
|
registryEvent(): void;
|
|
@@ -7,14 +7,14 @@ interface SvgPolygonEventMap {
|
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
9
|
export declare class SvgPolygon extends BaseSvg<SvgPolygonEventMap> {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
circles: SVGElement[];
|
|
11
|
+
lines: SVGElement[];
|
|
12
|
+
isClose: boolean;
|
|
13
13
|
constructor(context: Context);
|
|
14
14
|
setEnable(enable: boolean): void;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
get lastLine(): SVGElement;
|
|
16
|
+
addCircle(circle: SVGElement): void;
|
|
17
|
+
addLine(line: SVGElement): void;
|
|
18
18
|
registryEvent(): void;
|
|
19
19
|
unRegistryEvent(): void;
|
|
20
20
|
onUpdate: () => void;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Context } from "../../context";
|
|
2
2
|
import { BaseSvg, Graphic } from "../../elements";
|
|
3
|
-
import { Frustum } from "three";
|
|
3
|
+
import { Frustum, Vector3 } from "three";
|
|
4
4
|
interface BoxSelectionEventMap {
|
|
5
5
|
"selected": {
|
|
6
6
|
list: Graphic[];
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
9
|
export declare class BoxSelection extends BaseSvg<BoxSelectionEventMap> {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
startPoint?: Vector3;
|
|
11
|
+
endPoint?: Vector3;
|
|
12
12
|
rect: SVGElement;
|
|
13
13
|
frustum: Frustum;
|
|
14
14
|
constructor(context: Context);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EventDispatcher } from "three";
|
|
2
2
|
import { Context } from "../../context";
|
|
3
3
|
import { Graphic } from "../../elements";
|
|
4
|
+
import { BoxSelection } from "./box-selection";
|
|
4
5
|
interface SelectionEventMap {
|
|
5
6
|
"select": {
|
|
6
7
|
graphics: Graphic[];
|
|
@@ -8,13 +9,16 @@ interface SelectionEventMap {
|
|
|
8
9
|
};
|
|
9
10
|
}
|
|
10
11
|
export declare class Selection extends EventDispatcher<SelectionEventMap> {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
context: Context;
|
|
13
|
+
_list: Set<Graphic>;
|
|
14
|
+
boxSelection: BoxSelection;
|
|
15
|
+
prevPanStatus?: boolean;
|
|
16
|
+
prevRotateStatus?: boolean;
|
|
17
|
+
downPoint: {
|
|
18
|
+
x: number;
|
|
19
|
+
y: number;
|
|
20
|
+
} | null;
|
|
21
|
+
isMultipleSelect: boolean;
|
|
18
22
|
constructor(context: Context);
|
|
19
23
|
get list(): Set<Graphic>;
|
|
20
24
|
enableBoxSelection(): void;
|
package/package.json
CHANGED