@aibee/crc-bmap 0.0.121 → 0.0.124
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 +32 -6
- package/lib/bmap.cjs.min.js.map +4 -4
- package/lib/bmap.esm.js +263 -69
- package/lib/bmap.esm.js.map +4 -4
- package/lib/bmap.esm.min.js +32 -6
- package/lib/bmap.esm.min.js.map +4 -4
- package/lib/bmap.min.js +32 -6
- package/lib/bmap.min.js.map +4 -4
- package/lib/src/elements/floor.d.ts +1 -0
- package/lib/src/elements/graphic.d.ts +2 -1
- package/lib/src/elements/index.d.ts +1 -0
- package/lib/src/elements/merge-graphic.d.ts +24 -0
- package/lib/src/loader/AibeeLoader/type.d.ts +2 -0
- package/package.json +1 -1
|
@@ -20,11 +20,12 @@ export interface Door {
|
|
|
20
20
|
material: keyof typeof DoorMaterial;
|
|
21
21
|
}
|
|
22
22
|
export type GraphicOptionsParam = Partial<GraphicOptions>;
|
|
23
|
-
type GraphicEventMap = {
|
|
23
|
+
export type GraphicEventMap = {
|
|
24
24
|
[K in keyof GraphicOptions as `change-${K}`]: {
|
|
25
25
|
value: GraphicOptions[K];
|
|
26
26
|
};
|
|
27
27
|
} & Object3DEventMap;
|
|
28
|
+
export declare const defaultGraphicOptions: GraphicOptions;
|
|
28
29
|
export declare class Graphic extends Object3D<GraphicEventMap> {
|
|
29
30
|
private context;
|
|
30
31
|
geometry: ExtrudeGeometry;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Object3D, Mesh, Vector3, BufferGeometry, LineBasicMaterial, LineSegments, ShaderMaterial } from "three";
|
|
2
|
+
import { GraphicOptions } from "src/types";
|
|
3
|
+
import { Context } from "../context";
|
|
4
|
+
import { GraphicEventMap, GraphicOptionsParam } from "./graphic";
|
|
5
|
+
export declare class MergeGraphic extends Object3D<GraphicEventMap> {
|
|
6
|
+
private context;
|
|
7
|
+
geometry: BufferGeometry;
|
|
8
|
+
material: ShaderMaterial;
|
|
9
|
+
mesh: Mesh;
|
|
10
|
+
line: LineSegments;
|
|
11
|
+
lineMaterial?: LineBasicMaterial;
|
|
12
|
+
lineGeometry?: BufferGeometry;
|
|
13
|
+
options: GraphicOptions[];
|
|
14
|
+
constructor(context: Context, options: GraphicOptionsParam[]);
|
|
15
|
+
init(): void;
|
|
16
|
+
initGeometry(): BufferGeometry<import("three").NormalBufferAttributes>;
|
|
17
|
+
initMaterial(): void;
|
|
18
|
+
initLineMaterial(): LineBasicMaterial;
|
|
19
|
+
initMesh(): void;
|
|
20
|
+
getBorderPoints(): Vector3[];
|
|
21
|
+
initLineGeometry(): void;
|
|
22
|
+
createBorder(): LineSegments<BufferGeometry<import("three").NormalBufferAttributes>, LineBasicMaterial>;
|
|
23
|
+
dispose(): void;
|
|
24
|
+
}
|