@aibee/crc-bmap 0.0.15 → 0.0.16

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/src/bmap.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { EventDispatcher, Object3D } from "three";
2
2
  import { Context } from "./context";
3
3
  import { Config } from './config';
4
- import { Graphic, HeatmapDataParam, PoiOptionsParam } from "./elements";
4
+ import { Graphic, GraphicOptionsParam, HeatmapDataParam, PoiOptionsParam } from "./elements";
5
5
  import { GraphicInfo } from "./types";
6
6
  export interface LoadQuery {
7
7
  brand: string;
@@ -97,5 +97,11 @@ export declare class BMap extends EventDispatcher {
97
97
  * 取消测量面积
98
98
  */
99
99
  cancelArea(): void;
100
+ /**
101
+ * 根据nodeId 获取graphic
102
+ */
103
+ getGraphicByNodeId(nodeId: string): Graphic | null;
104
+ deleteGraphic(graphic: Graphic): void;
105
+ createGraphicByOptions(options: GraphicOptionsParam): Graphic | undefined;
100
106
  dispose(): void;
101
107
  }
@@ -3,6 +3,7 @@ import { Raycaster, Vector3 } from "three";
3
3
  import { Layer } from "./layer";
4
4
  import { Context } from "../context";
5
5
  export declare class GraphicLayer extends Layer {
6
+ graphicMap: Map<string, Graphic>;
6
7
  constructor(context: Context);
7
8
  getCenter(): Vector3;
8
9
  createGraphic(options: GraphicOptionsParam): Graphic;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aibee/crc-bmap",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "description": "",
5
5
  "main": "lib/bmap.min.js",
6
6
  "module": "lib/bmap.esm.min.js",