@eyeon/threejs-map 1.1.27 → 1.1.29

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,2 +1,9 @@
1
- import { LineCurve, Shape } from 'three';
1
+ import { BufferGeometry, LineCurve, Shape } from 'three';
2
2
  export declare function getWallShape(curve: LineCurve, thickness?: number, shape_extend?: number): Shape;
3
+ export declare function buildLineExtrudeGeometry(path: {
4
+ subPaths: Array<{
5
+ curves: Array<{
6
+ type: string;
7
+ } & LineCurve>;
8
+ }>;
9
+ }, line_thickness: number, extrude: number, shape_extend?: number, layer_name?: string): BufferGeometry | undefined;
@@ -7,10 +7,14 @@ export declare const renderOrders: {
7
7
  overlay: number;
8
8
  'building-base': number;
9
9
  base: number;
10
+ 'green-area': number;
11
+ 'parking-lane': number;
10
12
  store: number;
11
13
  'big-store': number;
12
14
  kiosk: number;
13
15
  wall: number;
16
+ 'parking-line': number;
17
+ 'parking-icon': number;
14
18
  'outer-wall': number;
15
19
  boundary: number;
16
20
  amenity: number;
@@ -23,7 +27,7 @@ export type MeshType = keyof typeof renderOrders | null;
23
27
  declare const useMaterialAndGeometry: () => {
24
28
  getRenderOrder: (mesh_type: MeshType) => number;
25
29
  getMaterial: (mesh_type: MeshType, layer_name: string, layer_color: Color | string, mesh_transparent: boolean) => MeshBasicMaterial;
26
- getGeometry: (mesh_type: MeshType, layer_name: string, extrude: number, line_thickness: number, path: any) => any;
30
+ getGeometry: (mesh_type: MeshType, layer_name: string, extrude: number, line_thickness: number, path: any) => import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap> | undefined;
27
31
  getMaterialAndGeometry: (mesh_type: MeshType, layer_name: string, layer_color: Color | string, mesh_transparent: boolean, mesh_visible: boolean, z_index: number, extrude: number, line_thickness: number, floor_index: number, path: any) => IMeshValues;
28
32
  };
29
33
  export default useMaterialAndGeometry;
@@ -2,7 +2,7 @@ import { SVGResultPaths } from 'three-stdlib';
2
2
  import { Color } from 'three';
3
3
  export declare const useMeshParams: () => {
4
4
  getMeshParams: (path: SVGResultPaths, paths: SVGResultPaths[], floor_index: number, nodeCount: number) => {
5
- mesh_type: "escalator" | "kiosk" | "amenity" | "base" | "route-path" | "overlay" | "store" | "wall" | "outer-wall" | "boundary" | "special-shape" | null;
5
+ mesh_type: "base" | "escalator" | "kiosk" | "amenity" | "route-path" | "overlay" | "green-area" | "parking-lane" | "store" | "wall" | "parking-line" | "parking-icon" | "outer-wall" | "boundary" | "special-shape" | null;
6
6
  layer_color: Color;
7
7
  extrude: number;
8
8
  z_index: number;
@@ -0,0 +1,4 @@
1
+ import { SVGLoader } from 'three/examples/jsm/loaders/SVGLoader.js';
2
+ export declare class InlineStyleSVGLoader extends SVGLoader {
3
+ parse(text: string): import('three/examples/jsm/loaders/SVGLoader.js').SVGResult;
4
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Firefox (and strict CSP) does not populate CSSStyleSheet for SVG <style> tags parsed
3
+ * via DOMParser, so three.js SVGLoader falls back to black fills. Inline class styles
4
+ * as SVG presentation attributes so colors load consistently across browsers.
5
+ */
6
+ export declare const inlineSvgStyles: (svgText: string) => string;