@expofp/floorplan
Version:
Interactive floor plan library for expos and events
21 lines • 1.78 kB
TypeScript
import { ImageDef, ImageSource, LayerDef, LineDef, Polygon, Rect, ShapeDef, TextAlignment, TextDef, TextLineDef, RenderableDefCollection, SceneDef, PointWithinSceneData, Vector2Like } from "@expofp/renderer";
import { MeshType, Line, TextLines, DefOptions } from "./types";
export declare function rectToShapeDef(rect: Rect | SVGRectElement, color?: string): ShapeDef;
export declare function meshToShapeDef(mesh: MeshType, color: string): ShapeDef;
export declare function createShapeDef(shape: Polygon | Rect, color?: string): ShapeDef;
export declare function createImageDef(source: ImageSource, bounds: Rect, options?: DefOptions & {
origin?: [number, number];
}): ImageDef;
export declare function createTextDef(textLines: TextLineDef[], bounds: Rect, padding: [number, number], alignment: TextAlignment, options?: DefOptions): TextDef;
export declare function createTextDefLines(textLines: TextLines, color: string, fontSize: number, fontUrl?: [string, string]): TextLineDef[];
export declare function createLineDef({ p0, p1 }: Line, color?: string, width?: number): LineDef;
export declare function createLayerDef(name: string, children: RenderableDefCollection, options?: DefOptions): LayerDef;
export declare function createSceneDef(layers: LayerDef[], viewboxRect: SVGRectElement | Rect, background?: string, memoryLimit?: number): SceneDef;
export declare function createShapeDot(rect: Rect, color?: string, radius?: number): ImageDef;
export declare function isDefaultScene(sceneId: string | undefined): boolean;
export declare function pickDefaultScene(data: PointWithinSceneData[]): PointWithinSceneData;
export declare function pickDefaultScenePoint(points: {
sceneId?: string;
point: Vector2Like;
}[]): Vector2Like;
//# sourceMappingURL=defs.d.ts.map