Skip to content

spatial-monorepo


spatial-monorepo / core/src / exportFloorSVG

Function: exportFloorSVG()

exportFloorSVG(floorId, data, options?): Promise`<string>`

Defined in: packages/core/src/export/floorSVG.ts:172

Export a floor as a well-formed SVG string.

Parameters

floorId

string

The id of the LevelFeature to export.

data

FloorSVGData

Slice data: levels + units arrays.

options?

SVGExportOptions = {}

SVGExportOptions (scale, includeDataLayers).

Returns

Promise`<string>`

A valid SVG string.

Released under commercial licensing.