@eyeon/threejs-map 1.1.26 → 1.1.28

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.
@@ -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" | "store" | "wall" | "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
+ }
@@ -1,6 +1,16 @@
1
1
  import { MapConfigProps } from '../interfaces';
2
2
  import { Color } from 'three';
3
3
  export declare const hex_to_color: (hex_code: string) => Color;
4
+ export declare const ensureColor: (color: Color | string | {
5
+ r: number;
6
+ g: number;
7
+ b: number;
8
+ }) => Color;
9
+ export declare const getDarkerColor: (color: Color | string | {
10
+ r: number;
11
+ g: number;
12
+ b: number;
13
+ }, factor?: number) => Color;
4
14
  export declare const getSvgIconHTML: (icon: string) => string | undefined;
5
15
  export declare const FormatPhoneNumber: (numberStr: string) => string;
6
16
  export declare const getMediaProxyUrl: (imageUrl: string, mapConfig: MapConfigProps) => string;
@@ -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;