Element Dto
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
Link copied to clipboard
Link copied to clipboard
Logical font family key resolved by the host's font registry.
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
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
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.