@aibee/crc-bmap 0.0.68 → 0.0.69

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.
@@ -1,4 +1,4 @@
1
- import { Object3D, ExtrudeGeometry, MeshStandardMaterial, Mesh, Raycaster, Object3DEventMap, Vector3, BufferGeometry, LineBasicMaterial, LineSegments } from 'three';
1
+ import { Object3D, ExtrudeGeometry, Mesh, MeshBasicMaterial, Raycaster, Object3DEventMap, Vector3, BufferGeometry, LineBasicMaterial, LineSegments } from 'three';
2
2
  import { GraphicOptions } from 'src/types';
3
3
  import { Context } from '../context';
4
4
  declare const DoorType: {
@@ -40,7 +40,7 @@ export declare class Graphic extends Object3D<GraphicEventMap> {
40
40
  getPosition(): Vector3;
41
41
  init(): void;
42
42
  initGeometry(): ExtrudeGeometry;
43
- initMaterial(): MeshStandardMaterial;
43
+ initMaterial(): MeshBasicMaterial | MeshBasicMaterial[];
44
44
  initLineMaterial(): LineBasicMaterial;
45
45
  initMesh(): void;
46
46
  getBorderPoints(): Vector3[];
@@ -44,6 +44,7 @@ export declare class Poi extends EventDispatcher<PoiEventMap> {
44
44
  height: number;
45
45
  };
46
46
  position: Vector3;
47
+ userData: {};
47
48
  constructor(context: Context, options: PoiOptionsParam);
48
49
  get withinDisplayRange(): boolean;
49
50
  resetSize(): Promise<void>;
@@ -1,5 +1,5 @@
1
1
  import { Context } from "../context";
2
- import { LineBasicMaterial, MeshStandardMaterial } from "three";
2
+ import { LineBasicMaterial, MeshStandardMaterial, MeshBasicMaterial } from "three";
3
3
  interface LineMaterialOptions {
4
4
  color: string;
5
5
  opacity: number;
@@ -8,14 +8,20 @@ interface MeshStandardMaterialOptions {
8
8
  color: string;
9
9
  opacity: number;
10
10
  }
11
+ interface MeshBasicMaterialOptions {
12
+ color: string;
13
+ opacity: number;
14
+ }
11
15
  export declare class MaterialFactory {
12
16
  private context;
13
17
  private lineMaterialMap;
14
18
  private meshStandardMaterialMap;
19
+ private meshBasicMaterialMap;
15
20
  constructor(context: Context);
16
21
  generateLineMaterialKey({ color, opacity }: LineMaterialOptions): string;
17
22
  createLineMaterial({ color, opacity }: LineMaterialOptions): LineBasicMaterial;
18
23
  createMeshStandardMaterial({ color, opacity }: MeshStandardMaterialOptions): MeshStandardMaterial;
24
+ createMeshBasicMaterial({ color, opacity }: MeshBasicMaterialOptions): MeshBasicMaterial;
19
25
  dispose(): void;
20
26
  }
21
27
  export {};
@@ -6,3 +6,4 @@ export declare function strToNumber(str: string): number;
6
6
  * @returns
7
7
  */
8
8
  export declare function addAlphaToHexColor(hexColor: string, alpha: number): string;
9
+ export declare function darkenColor(hexColor: string): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aibee/crc-bmap",
3
- "version": "0.0.68",
3
+ "version": "0.0.69",
4
4
  "description": "",
5
5
  "main": "lib/bmap.min.js",
6
6
  "module": "lib/bmap.esm.min.js",