ElementDto

data class ElementDto(val id: String, val type: String, val zIndex: Int, val points: List<String>, val strokeColor: String, val strokeWidth: Float, val alpha: Float? = null, val shapeType: String? = null, val fillColor: String? = null, val rotation: Float? = null, val cornerRadius: Float? = null, val strokeStyle: String? = null, val bend: String? = null, val startBinding: String? = null, val endBinding: String? = null, val createdAt: Long? = null, val modifiedAt: Long? = null, val samples: List<String>? = null, val strokeEnabled: Boolean? = null, val imageData: String? = null, val intrinsicWidth: Float? = null, val intrinsicHeight: Float? = null, val opacity: Float? = null, val text: String? = null, val fontFamilyKey: String? = null, val fontSize: Float? = null, val alignment: String? = null, val textTopLeft: String? = null, val wrapWidth: Float? = null)

Constructors

Link copied to clipboard
constructor(id: String, type: String, zIndex: Int, points: List<String>, strokeColor: String, strokeWidth: Float, alpha: Float? = null, shapeType: String? = null, fillColor: String? = null, rotation: Float? = null, cornerRadius: Float? = null, strokeStyle: String? = null, bend: String? = null, startBinding: String? = null, endBinding: String? = null, createdAt: Long? = null, modifiedAt: Long? = null, samples: List<String>? = null, strokeEnabled: Boolean? = null, imageData: String? = null, intrinsicWidth: Float? = null, intrinsicHeight: Float? = null, opacity: Float? = null, text: String? = null, fontFamilyKey: String? = null, fontSize: Float? = null, alignment: String? = null, textTopLeft: String? = null, wrapWidth: Float? = null)

Properties

Link copied to clipboard

Horizontal alignment inside the wrap box: LEFT, CENTER, or RIGHT.

Link copied to clipboard
val alpha: Float?
Link copied to clipboard
val bend: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Logical font family key resolved by the host's font registry.

Link copied to clipboard

Em size in world pixels.

Link copied to clipboard
val id: String
Link copied to clipboard

Raw encoded image payload, base64-encoded. Only set for Image elements. Inline (rather than external reference) so the JSON file round-trips as a single artifact.

Link copied to clipboard

Source image's intrinsic pixel height. Only set for Image elements.

Link copied to clipboard

Source image's intrinsic pixel width. Only set for Image elements.

Link copied to clipboard
Link copied to clipboard

Render-time alpha for Image / Text elements (0.0..1.0).

Link copied to clipboard

Shape / image position list, encoded as "x,y" strings. Empty for Path elements — paths use samples instead so per-sample widths are colocated. For Image, this is [topLeft, bottomRight].

Link copied to clipboard
Link copied to clipboard

Path sample list, encoded as "x,y,w" strings. One entry per stroke sample. Only set for type = "Path"; null on Shape / Image DTOs.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Tri-state Shape stroke toggle. null (omitted) and true both mean "draw stroke" so legacy exports keep rendering; false skips the stroke pass entirely (fill-only shapes).

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val text: String?

Raw text content. Only set for Text elements.

Link copied to clipboard

World-space top-left corner of a text element's wrap box, encoded as "x,y". Only set for Text elements; Shape / Path / Image use the existing points field.

Link copied to clipboard
Link copied to clipboard

World-space wrap width for a text element.

Link copied to clipboard
val zIndex: Int

Functions

Link copied to clipboard