View Source Idmlx.Konva.Export (idmlx v0.2.1)

Provides functionality for exporting InDesign spreads to KonvaJS format.

Summary

Functions

Converts a spread to KonvaJS JSON format.

Functions

call(page, assigns \\ %{}, mode \\ :wireframes)

Converts a spread to KonvaJS JSON format.

Parameters

  • page: The page or spread to convert
  • assigns: Map of element name to assigned text content
  • mode: Rendering mode (:filled or :wireframes)

Returns

JSON string representing the KonvaJS stage