Spatio.Model.SlideElement (spatio_sdk v0.0.2)

One canvas object on a slide — text box, shape, image, etc. content is renderer-specific JSON (e.g. fabric.js properties: text, fill, fontSize, src). Identified by a stable id so MCP / agent operations stay idempotent across retries.

Summary

Types

t()

@type t() :: %Spatio.Model.SlideElement{
  content: %{optional(String.t()) => any()},
  createdAt: DateTime.t(),
  elementType: String.t(),
  height: float(),
  id: String.t(),
  rotation: float(),
  slideId: String.t(),
  updatedAt: DateTime.t(),
  width: float(),
  x: float(),
  y: float(),
  zIndex: integer()
}

Functions

decode(value)