@aibee/crc-bmap 0.12.36 → 0.12.38
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/README.md +2 -2
- package/lib/draco/draco_decoder.js +34 -34
- package/lib/draco/draco_wasm_wrapper.js +117 -117
- package/lib/icon/parkingSpace/vip.svg +7 -7
- package/lib/index.cjs +3 -3
- package/lib/index.esm.min.js +3 -3
- package/lib/index.online.esm.min.js +3 -3
- package/lib/index.online.min.js +3 -3
- package/lib/src/loader/AibeeLoader/index.d.ts +3 -1
- package/lib/src/loader/AibeeLoader/layer.d.ts +4 -4
- package/lib/src/plugins/pdr-position/imu-position.d.ts +45 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BMap } from "../../bmap";
|
|
2
2
|
import { Floor, Graphic } from "../../elements";
|
|
3
|
-
import { AibeeFloorData } from "./type";
|
|
3
|
+
import { AibeeFloorData, AibeeLayerData } from "./type";
|
|
4
4
|
import { TaskQueue, RoadData2, EventDispatcher } from "../../utils";
|
|
5
5
|
import { RENDER_VERSION } from "./utils";
|
|
6
6
|
export { RENDER_VERSION } from './utils';
|
|
@@ -48,6 +48,8 @@ export interface AibeeLoaderOptions {
|
|
|
48
48
|
mergeParkingSpace: boolean;
|
|
49
49
|
mergeGraphic: boolean;
|
|
50
50
|
renderVersion: RENDER_VERSION;
|
|
51
|
+
layers: Exclude<AibeeLayerData["l_type"], "range" | "ground">[];
|
|
52
|
+
filterPoi: (layer: AibeeLayerData['elements'][0]) => boolean;
|
|
51
53
|
}
|
|
52
54
|
export type Locale = "zh-cn" | "en" | "zh-hk";
|
|
53
55
|
export interface PlaceConfig {
|
|
@@ -2,7 +2,7 @@ import { Floor } from "../../elements";
|
|
|
2
2
|
import { AibeeFacilityLayer, AibeeFloorData, AibeeGlbLayer, AibeeGraphicLayer, AibeeGroundLayer, AibeeLaneLayer, AibeeParkingSpaceLayer, AibeeStoreLayer, AibeeTextLayer, AibeeTexture2dLayer, AibeeTexture3dLayer, AibeeWallLayer } from "./type";
|
|
3
3
|
import { AibeeLoaderOptions, Locale, PlaceConfig } from ".";
|
|
4
4
|
export declare function transformLayers(layer: AibeeFloorData["layers"][0], floor: Floor, options: AibeeLoaderOptions): void;
|
|
5
|
-
export declare function transformLayersPoi(layer: AibeeFloorData["layers"][0], floor: Floor, locale: Locale, placeConfig: PlaceConfig): void | Promise<void>;
|
|
5
|
+
export declare function transformLayersPoi(layer: AibeeFloorData["layers"][0], floor: Floor, locale: Locale, placeConfig: PlaceConfig, options: AibeeLoaderOptions): void | Promise<void>;
|
|
6
6
|
/**
|
|
7
7
|
* 转换图元
|
|
8
8
|
*/
|
|
@@ -36,17 +36,17 @@ export declare function glbLayer(layer: AibeeGlbLayer, floor: Floor): void;
|
|
|
36
36
|
* @param floor
|
|
37
37
|
*/
|
|
38
38
|
export declare function storeLayer(layer: AibeeStoreLayer, floor: Floor, options: AibeeLoaderOptions): void;
|
|
39
|
-
export declare function storeLayerPoi(layer: AibeeStoreLayer, floor: Floor, locale: Locale, placeConfig: PlaceConfig): void;
|
|
39
|
+
export declare function storeLayerPoi(layer: AibeeStoreLayer, floor: Floor, locale: Locale, placeConfig: PlaceConfig, loaderOptions: AibeeLoaderOptions): void;
|
|
40
40
|
/**
|
|
41
41
|
* 设施
|
|
42
42
|
*/
|
|
43
43
|
export declare function facilityLayer(layer: AibeeFacilityLayer, floor: Floor, options: AibeeLoaderOptions): void;
|
|
44
|
-
export declare function facilityLayerPoi(layer: AibeeFacilityLayer, floor: Floor, locale: Locale, placeConfig: PlaceConfig): void;
|
|
44
|
+
export declare function facilityLayerPoi(layer: AibeeFacilityLayer, floor: Floor, locale: Locale, placeConfig: PlaceConfig, loaderOptions: AibeeLoaderOptions): void;
|
|
45
45
|
/**
|
|
46
46
|
* 车位
|
|
47
47
|
*/
|
|
48
48
|
export declare function parkingSpaceLayer(layer: AibeeParkingSpaceLayer, floor: Floor, options: AibeeLoaderOptions): void;
|
|
49
|
-
export declare function parkingSpaceLayerPoi(layer: AibeeParkingSpaceLayer, floor: Floor, placeConfig: PlaceConfig): Promise<void>;
|
|
49
|
+
export declare function parkingSpaceLayerPoi(layer: AibeeParkingSpaceLayer, floor: Floor, placeConfig: PlaceConfig, loaderOptions: AibeeLoaderOptions): Promise<void>;
|
|
50
50
|
/**
|
|
51
51
|
* 文字
|
|
52
52
|
*/
|
|
@@ -37,6 +37,22 @@ export declare class ImuPosition {
|
|
|
37
37
|
private last_py;
|
|
38
38
|
private delta_px;
|
|
39
39
|
private delta_py;
|
|
40
|
+
private is_moving;
|
|
41
|
+
private currentMotionState;
|
|
42
|
+
private previousMotionState;
|
|
43
|
+
private walkingThreshold;
|
|
44
|
+
private stationaryThreshold;
|
|
45
|
+
private phoneUseThreshold;
|
|
46
|
+
private rotationThreshold;
|
|
47
|
+
private walkingCount;
|
|
48
|
+
private stationaryCount;
|
|
49
|
+
private phoneUseCount;
|
|
50
|
+
private stateCounter;
|
|
51
|
+
private stateChangeThreshold;
|
|
52
|
+
private static_window_size;
|
|
53
|
+
private acc_variance_buffer;
|
|
54
|
+
private rot_variance_buffer;
|
|
55
|
+
private acc_buffer;
|
|
40
56
|
init(): void;
|
|
41
57
|
/**
|
|
42
58
|
* Curr PDR object is reset.
|
|
@@ -57,6 +73,11 @@ export declare class ImuPosition {
|
|
|
57
73
|
*/
|
|
58
74
|
getPos(timestamp: number, acc: number[], rot: number[]): [number, number];
|
|
59
75
|
getDeltaPose(): [number, number];
|
|
76
|
+
/**
|
|
77
|
+
* 获取当前运动状态
|
|
78
|
+
* @returns 当前运动状态
|
|
79
|
+
*/
|
|
80
|
+
getMotionState(): string;
|
|
60
81
|
/**
|
|
61
82
|
* Step detection based on accelerometer magnitude.
|
|
62
83
|
* @param timestamp -- measure time, s.
|
|
@@ -87,6 +108,30 @@ export declare class ImuPosition {
|
|
|
87
108
|
* @returns bool -- True: detected, False: not detected.
|
|
88
109
|
*/
|
|
89
110
|
private FFTStepDetec;
|
|
111
|
+
/**
|
|
112
|
+
* 判断用户是否在移动状态
|
|
113
|
+
* @param acc 加速度数据
|
|
114
|
+
* @param rot 旋转数据
|
|
115
|
+
* @returns 是否在移动状态
|
|
116
|
+
*/
|
|
117
|
+
private isMoving;
|
|
118
|
+
/**
|
|
119
|
+
* 计算数组的平均值
|
|
120
|
+
* @param arr 数据数组
|
|
121
|
+
* @returns 平均值
|
|
122
|
+
*/
|
|
123
|
+
private calculateMean;
|
|
124
|
+
/**
|
|
125
|
+
* 计算数组的标准差
|
|
126
|
+
* @param arr 数据数组
|
|
127
|
+
* @returns 标准差
|
|
128
|
+
*/
|
|
129
|
+
private calculateStdDeviation;
|
|
130
|
+
/**
|
|
131
|
+
* 获取当前运动状态的统计数据
|
|
132
|
+
* @returns 统计数据对象
|
|
133
|
+
*/
|
|
134
|
+
getMotionStatistics(): Record<string, any>;
|
|
90
135
|
/**
|
|
91
136
|
* Get delta yaw from rotation
|
|
92
137
|
* @param timestamp: s
|