@aibee/crc-bmap 0.8.1 → 0.8.2

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.
@@ -48,7 +48,9 @@ export declare class Poi2 extends Object3D<PoiEventMap2> {
48
48
  initText(): void;
49
49
  initSize(): void;
50
50
  init(): Promise<void>;
51
- private _initScale;
51
+ protected _initScale: ({ zoom }: {
52
+ zoom: number;
53
+ }) => void;
52
54
  resetZ(): void;
53
55
  getBox(v3: Vector3): Box2;
54
56
  renderBoxHelper(x?: number, y?: number): void;
@@ -6,6 +6,7 @@ import { Floor, Poi2, PoiOptions2 } from "../../elements";
6
6
  import { Tween } from "@tweenjs/tween.js";
7
7
  import { NavigationProcessInfo, PositionNavigation, PositionNavigationConfig } from "./position-navigation";
8
8
  import TaskQueue from "src/utils/taskQueue";
9
+ import { StartRotateHelperPoi } from "./start-rotate-helper-poi";
9
10
  export type Point = [number, number];
10
11
  export { NavigationProcessInfo };
11
12
  interface EventMap {
@@ -48,6 +49,8 @@ export declare class Navigation extends Plugin<EventMap> {
48
49
  options: NavigationConfig;
49
50
  pathTween: Tween<any> | null;
50
51
  startPoi: Poi2 | null;
52
+ startRotateHelperPoi: StartRotateHelperPoi | null;
53
+ needStartRotateHelperPoi: boolean;
51
54
  movedDistance: number;
52
55
  pathStart: [number, number];
53
56
  tweenUtil: TweenUtil;
@@ -64,6 +67,9 @@ export declare class Navigation extends Plugin<EventMap> {
64
67
  onNavigationInfo: ({ info }: {
65
68
  info: NavigationProcessInfo;
66
69
  }) => void;
70
+ showStartRotateHelperPoi(): void;
71
+ hideStartRotateHelperPoi(): void;
72
+ setStartPoiPosition(x: number, y: number): void;
67
73
  toPositionByTask(pos: [number, number]): void;
68
74
  pauseAnimation(): void;
69
75
  continueAnimation(): void;
@@ -0,0 +1,24 @@
1
+ import { DataTexture, Texture } from "three";
2
+ import { BMap } from "../../bmap";
3
+ import { Poi2 } from "src/elements";
4
+ interface StartRotateHelperPoiOptions {
5
+ size: [number, number];
6
+ }
7
+ export declare class StartRotateHelperPoi extends Poi2 {
8
+ bmap: BMap;
9
+ config: StartRotateHelperPoiOptions;
10
+ static canvas: HTMLCanvasElement;
11
+ static ctx: CanvasRenderingContext2D;
12
+ static textureMap: Map<number, Texture>;
13
+ constructor(bmap: BMap, config: StartRotateHelperPoiOptions);
14
+ addDebug(): void;
15
+ setAngle(angle: number): void;
16
+ _initIcon(texture: Texture): void;
17
+ initSize(): void;
18
+ draw(angle: number): void;
19
+ getImageData(): ImageData;
20
+ getTexture(imageData: ImageData): DataTexture;
21
+ dispose(): void;
22
+ static dispose(): void;
23
+ }
24
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aibee/crc-bmap",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
4
4
  "description": "",
5
5
  "main": "lib/bmap.min.js",
6
6
  "module": "lib/bmap.esm.js",